/* レース対戦（ボート）：水面の深い青と、ターンマークの橙。アプリの丸いカード・LINE Seed JP に合わせる */
:root{--ink:#0f1c26;--deep:#0d2233;--turf:#1f6b9a;--gold:#ffb347;--accent:#ff7a1a;--red:#e0523a;--card:rgba(255,255,255,.95);--glass:rgba(8,20,32,.7);
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%;margin:0}
body{overflow:hidden;color:var(--ink);font-family:"LINE Seed JP","Hiragino Sans","Noto Sans JP",sans-serif;line-height:1.6;
  /* 平らな一色にしない：写真＋斜めの細い線＋暗いグラデーション */
  background:
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 14px),
    linear-gradient(180deg,rgba(6,18,30,.55),rgba(6,18,30,.9)),
    var(--deep) url(../media/sports/face-boat.jpg) center/cover no-repeat;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}
button{font:inherit;color:inherit}
#view{position:fixed;inset:0;width:100%;height:100%;display:block;outline:none}
/* 準備・結果の画面では3Dの上に薄い模様と影をかける */
.r-backdrop{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .4s;
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 2px,transparent 2px 16px),radial-gradient(120% 90% at 30% 20%,rgba(6,18,30,.25),rgba(6,18,30,.78))}
body.is-setup .r-backdrop,body.is-result .r-backdrop{opacity:1}

/* 読み込み中 */
.r-loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;font-weight:700}
.r-spin{width:42px;height:42px;border-radius:50%;border:4px solid rgba(255,255,255,.25);border-top-color:var(--gold);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* カード */
.r-card{background:var(--card);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.35);}
.r-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:99px;border:0;background:#e6eef4;color:var(--ink);font-weight:800;font-size:16px;cursor:pointer}
.r-btn:focus-visible,.r-chip:focus-visible,.r-seg button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.r-primary{background:linear-gradient(180deg,#2f86c0,#1a5a86);color:#fff;box-shadow:0 4px 14px rgba(26,90,134,.4)}
.r-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.r-note{margin:6px 0 0;font-size:13px;opacity:.72;line-height:1.5}
.r-chip{min-height:36px;padding:0 14px;border-radius:99px;border:0;background:rgba(31,107,154,.12);font-weight:700;font-size:13px;cursor:pointer}

/* 出走の準備 */
.r-setup{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:calc(10px + var(--sat)) calc(12px + var(--sar)) calc(10px + var(--sab)) calc(12px + var(--sal))}
.r-setup-card{width:min(900px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden}
.r-setup-head{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 12px;padding:12px 16px 8px;border-bottom:1px solid rgba(0,0,0,.06)}
.r-setup-head>div{flex:1 1 150px;min-width:0} /* 狭い画面では見出しを150px以上残し、ボタン類は次の行（右寄せ）へ送る（1文字ずつ縦に折れないように） */
.r-setup-head small{font-size:13px;font-weight:700;letter-spacing:.18em;color:var(--turf)}
.r-setup-head h1{margin:0;font-size:19px;line-height:1.3;font-weight:800}
.r-back{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.06);text-decoration:none;font-size:26px;line-height:1;color:inherit}
.r-setup-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;padding:8px 16px}
.r-col{min-width:0}
fieldset{border:0;margin:0 0 8px;padding:0;min-width:0}
legend{font-weight:800;font-size:14px;padding:0;margin-bottom:4px}
legend small{font-weight:700;font-size:13px;color:var(--turf);margin-left:6px}
.r-seg{display:flex;flex-wrap:wrap;gap:6px}
.r-seg button{min-height:40px;padding:0 12px;border-radius:12px;border:2px solid transparent;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08);font-weight:700;font-size:14px;cursor:pointer}
.r-seg button.on{border-color:var(--turf);background:#e8f3fa;color:#123c5a}
.r-seg-s button{min-height:36px;padding:0 10px;font-size:13px}
.r-row{display:flex;align-items:center;gap:10px;margin:6px 0}
.r-row>span{flex:none;width:4.2em;font-size:13px;font-weight:700;opacity:.8}
.r-field{display:flex;align-items:center;gap:10px}
.r-field span{flex:none;width:4.2em;font-size:13px;font-weight:700;opacity:.8}
.r-field input{flex:1;min-width:0;min-height:40px;border-radius:12px;border:2px solid #d3e0ea;padding:0 12px;font:inherit;font-size:16px;font-weight:700;background:#fff;-webkit-user-select:text;user-select:text}
.r-field input:focus{outline:none;border-color:var(--turf)}
.r-swatches{display:flex;flex-wrap:wrap;gap:6px}
.r-swatches button{width:30px;height:30px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.15);cursor:pointer;padding:0}
.r-swatches button.on{box-shadow:0 0 0 3px var(--turf)}
.r-stat{display:grid;grid-template-columns:4.2em 1fr 2.4em;align-items:center;gap:8px;margin:2px 0}
.r-stat span{font-size:13px;font-weight:700;opacity:.8}
.r-stat b{text-align:right;font-variant-numeric:tabular-nums}
.r-stat input{width:100%;accent-color:var(--turf);touch-action:pan-x}
.r-toggle{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;min-height:36px;cursor:pointer}
.r-toggle input{width:20px;height:20px;accent-color:var(--turf)}
.r-setup-foot{padding:8px 16px 12px;border-top:1px solid rgba(0,0,0,.06);display:flex;justify-content:flex-end}
.r-setup-foot .r-btn{min-width:200px;font-size:18px}

/* レース中の表示 */
.r-hud{position:fixed;inset:0;pointer-events:none;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.r-hud button{pointer-events:auto}
.r-hud-tl{position:absolute;left:calc(10px + var(--sal));top:calc(8px + var(--sat));display:flex;flex-direction:column;gap:6px}
.r-rank{display:flex;align-items:baseline;gap:2px;background:var(--glass);border-radius:14px;padding:2px 14px;}
.r-rank b{font-size:40px;font-weight:800;line-height:1.1;color:var(--gold);font-variant-numeric:tabular-nums}
.r-rank span{font-size:15px;font-weight:700;opacity:.85}
.r-stam{background:var(--glass);border-radius:12px;padding:4px 10px;width:170px;}
.r-stam span{font-size:13px;font-weight:700;opacity:.85}
.r-stam i{display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:2px}
.r-stam em{display:block;height:100%;width:100%;border-radius:99px;background:linear-gradient(90deg,#e0523a,#e8c45a 35%,#7fd46a);transition:width .2s}
.r-hud-tc{position:absolute;left:50%;top:calc(8px + var(--sat));transform:translateX(-50%);text-align:center;background:var(--glass);border-radius:14px;padding:4px 16px;min-width:150px;}
.r-sect{font-size:13px;font-weight:800;color:var(--gold);letter-spacing:.08em}
.r-togo{display:flex;align-items:baseline;justify-content:center;gap:4px;font-weight:700}
.r-togo b{font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.r-togo span{font-size:13px;opacity:.85}
.r-hud-tr{position:absolute;right:calc(10px + var(--sar));top:calc(8px + var(--sat));display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.r-clock{background:var(--glass);border-radius:12px;padding:2px 12px;text-align:right;}
.r-clock b{display:block;font-size:20px;font-variant-numeric:tabular-nums;line-height:1.3}
.r-clock small{display:block;font-size:13px;opacity:.85;font-variant-numeric:tabular-nums}
#hMap{width:150px;height:75px;background:var(--glass);border-radius:12px;}
.r-hud-btns{display:flex;gap:6px}
.r-mini{min-width:44px;min-height:40px;border-radius:12px;border:0;background:var(--glass);color:#fff;font-weight:800;font-size:13px;cursor:pointer;}
.r-whips{position:absolute;right:calc(14px + var(--sar));bottom:calc(150px + var(--sab));display:flex;gap:4px}
.r-whips i{width:9px;height:20px;border-radius:4px;background:var(--gold);box-shadow:0 1px 3px rgba(0,0,0,.5)}
.r-whips i.used{background:rgba(255,255,255,.22)}
.r-msg{position:absolute;left:50%;top:36%;transform:translate(-50%,-50%);font-size:22px;font-weight:800;white-space:nowrap;opacity:0;transition:opacity .25s;background:var(--glass);padding:6px 18px;border-radius:99px}
.r-msg.on{opacity:1}
.r-keys{position:absolute;left:50%;bottom:calc(10px + var(--sab));transform:translateX(-50%);font-size:13px;font-weight:700;opacity:.8;background:var(--glass);padding:4px 14px;border-radius:99px;white-space:nowrap}
body.is-touch .r-keys{display:none}
.r-touch{display:none}
body.is-intro .r-hud,body.is-result .r-hud{opacity:0;pointer-events:none}
body.is-intro .r-hud *,body.is-result .r-hud *{pointer-events:none}
body.is-touch .r-touch{display:block}
body.is-touch .r-whips{bottom:calc(170px + var(--sab))}
/* 左手：手綱のレバー（上＝促す、下＝抑える。離しても位置はそのまま） */
.r-lever{position:absolute;left:calc(14px + var(--sal));bottom:calc(12px + var(--sab));width:84px;height:min(210px,52vh);display:flex;flex-direction:column;align-items:center;pointer-events:auto;touch-action:none}
.r-lever small{font-size:13px;font-weight:800;opacity:.9}
.r-lever-track{position:relative;flex:1;width:54px;margin:3px 0;border-radius:27px;background:linear-gradient(180deg,rgba(232,196,90,.45),rgba(255,255,255,.12) 50%,rgba(120,170,255,.35));border:2px solid rgba(255,255,255,.4)}
.r-lever-track .mid{position:absolute;left:6px;right:6px;top:50%;height:2px;background:rgba(255,255,255,.6)}
.r-lever-knob{position:absolute;left:50%;top:50%;width:62px;height:40px;margin:-20px 0 0 -31px;border-radius:14px;background:linear-gradient(180deg,#fff,#d9e2da);box-shadow:0 3px 10px rgba(0,0,0,.45)}
/* 右手：進路（横になぞる）とムチ */
.r-steer{position:absolute;right:calc(130px + var(--sar));bottom:calc(16px + var(--sab));width:min(240px,30vw);height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding-top:10px;pointer-events:auto;touch-action:none;border-radius:22px;background:rgba(14,24,20,.28);border:2px dashed rgba(255,255,255,.25)}
.r-steer-rail{position:relative;width:86%;height:8px;border-radius:99px;background:rgba(255,255,255,.3)}
.r-steer-knob{position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.45)}
.r-steer small{font-size:13px;font-weight:800;opacity:.85;margin-top:22px}
.r-whip{position:absolute;right:calc(14px + var(--sar));bottom:calc(16px + var(--sab));width:104px;height:104px;border-radius:50%;border:4px solid rgba(255,255,255,.75);background:radial-gradient(circle at 35% 30%,#ff8a64,#c63c22);color:#fff;font-size:22px;font-weight:800;box-shadow:0 6px 18px rgba(0,0,0,.45);pointer-events:auto;touch-action:none}
.r-whip:active,.r-whip.hit{transform:scale(.94)}
.r-whip.off{filter:grayscale(.8) brightness(.8)}
.r-go{position:absolute;left:50%;top:66%;transform:translate(-50%,-50%);width:150px;height:150px;border-radius:50%;border:5px solid #fff;background:radial-gradient(circle at 35% 30%,#7fe07a,#2c8a3e);color:#fff;font-size:40px;font-weight:800;box-shadow:0 8px 26px rgba(0,0,0,.45);pointer-events:auto;touch-action:none;animation:pulse .6s ease-in-out infinite alternate}
@keyframes pulse{to{transform:translate(-50%,-50%) scale(1.06)}}

.r-skip{position:fixed;right:calc(14px + var(--sar));bottom:calc(14px + var(--sab));min-height:44px;padding:0 18px;border-radius:99px;border:0;background:var(--glass);color:#fff;font-weight:800;cursor:pointer;z-index:5}
.r-count{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%);font-size:min(120px,26vh);font-weight:800;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.6);pointer-events:none}
.r-flash{position:fixed;left:50%;top:40%;transform:translate(-50%,-50%);font-size:min(64px,15vh);font-weight:800;color:var(--gold);text-shadow:0 4px 18px rgba(0,0,0,.7);pointer-events:none;white-space:nowrap;animation:pop .5s ease-out}
@keyframes pop{from{transform:translate(-50%,-50%) scale(.6);opacity:0}}

/* 結果・一時停止・説明 */
.r-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:calc(10px + var(--sat)) calc(12px + var(--sar)) calc(10px + var(--sab)) calc(12px + var(--sal));background:rgba(4,12,20,.4);z-index:10}
.r-small{padding:18px 22px;text-align:center}
.r-small h2{margin:0}
.r-result{width:min(640px,100%);max-height:100%;display:flex;flex-direction:column;padding:12px 16px}
.r-result h2{margin:0;font-size:22px;text-align:center}
.r-sub{margin:0;text-align:center;font-size:13px;opacity:.75}
.r-table-wrap{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;margin-top:6px}
.r-table{width:100%;border-collapse:collapse;font-size:14px}
.r-table th{font-size:13px;opacity:.7;font-weight:700;text-align:left;padding:2px 6px}
.r-table td{padding:5px 6px;border-top:1px solid rgba(0,0,0,.06);font-variant-numeric:tabular-nums;white-space:nowrap}
.r-table td.nm{white-space:nowrap;font-weight:700}
.r-table td.nm .n{display:inline-block;max-width:9em;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.r-table td.nm .me-mark{font-style:normal;color:#d65c34;font-size:14px;margin-right:3px}
@media (max-width:420px){.r-table th,.r-table td{padding-left:3px;padding-right:3px}.r-table th{white-space:nowrap}.r-table td.nm .n{max-width:6.5em}.r-table tr:has(.demo) td.nm .n{max-width:4.6em}.r-table .cpu,.r-table .ghost,.r-table .demo{margin-left:3px;padding:0 4px}}
.r-table tr.me td{background:rgba(232,196,90,.25)}
.r-table tr.me td:first-child{border-radius:10px 0 0 10px}.r-table tr.me td:last-child{border-radius:0 10px 10px 0}
.waku{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;font-size:13px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.cpu{display:inline-block;margin-left:5px;padding:0 5px;border-radius:5px;background:#5b6b64;color:#fff;font-size:13px;line-height:1.3;font-weight:800;letter-spacing:.06em;vertical-align:2px}
.ghost{display:inline-block;margin-left:5px;padding:0 5px;border-radius:5px;background:#6a5bb0;color:#fff;font-size:13px;line-height:1.3;font-weight:800;vertical-align:2px}
.demo{display:inline-block;margin-left:5px;padding:0 5px;border-radius:5px;background:var(--red);color:#fff;font-size:13px;line-height:1.3;font-weight:800;vertical-align:2px}
.r-tut{width:min(520px,100%);max-height:100%;overflow-y:auto;padding:18px 20px}
.r-tut-step h3{margin:0 0 6px;font-size:20px}
.r-tut-step p{margin:0;font-size:15px}
.r-tut-step .ill{display:flex;align-items:center;justify-content:center;height:84px;margin:0 0 10px;border-radius:14px;background:linear-gradient(180deg,#9fd0ff,#dff1ff 58%,#2f78a8 59%,#174e74);font-size:40px}
.r-tut-dots{display:flex;gap:6px;justify-content:center;margin-top:10px}
.r-tut-dots i{width:8px;height:8px;border-radius:50%;background:rgba(0,0,0,.18)}
.r-tut-dots i.on{background:var(--turf)}

/* 横持ちのスマホ（高さが低い）：詰めて1画面に入れる */
@media (max-height:480px){
  .r-setup-head{padding:6px 12px 4px}
  .r-setup-head h1{font-size:16px}
  .r-setup-grid{padding:4px 12px;gap:0 14px}
  fieldset{margin-bottom:4px}
  .r-seg button{min-height:36px;padding:0 10px;font-size:13px}
  .r-setup-foot{padding:6px 12px 8px}
  .r-setup-foot .r-btn{min-height:44px}
  .r-rank b{font-size:30px}
  .r-stam{width:140px}
  .r-togo b{font-size:20px}
  #hMap{width:120px;height:60px}
  .r-clock b{font-size:16px}
  .r-lever{height:min(190px,56vh);width:76px}
  .r-whip{width:92px;height:92px;font-size:20px}
  .r-steer{height:92px;right:calc(118px + var(--sar))}
  .r-go{width:120px;height:120px;font-size:32px;top:73%}
  .r-count{top:36%}
  .r-result{padding:8px 12px}
  .r-result h2{font-size:18px}
  .r-table td{padding:3px 6px;font-size:13px}
  .r-btns{margin-top:6px}
  .r-btns .r-btn{min-height:42px}
}
/* 縦持ち・狭い画面：準備画面は1列に */
@media (max-width:640px){
  .r-setup-grid{grid-template-columns:1fr}
  .r-steer{width:36vw}
}
@media (prefers-reduced-motion:reduce){.r-go{animation:none}.r-flash{animation:none}}

/* ===== ここからボート専用 ===== */
.r-setup-foot{align-items:center;gap:12px}
.r-setup-foot .r-note{flex:1;margin:0}
/* モーター抽選 */
.b-motor{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:14px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.b-motor-no{flex:none;width:76px;height:76px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(160deg,#173a55,#0d2233);color:#fff;box-shadow:inset 0 0 0 3px rgba(255,179,71,.6)}
.b-motor-no b{font-size:34px;line-height:1;font-variant-numeric:tabular-nums;color:var(--gold)}
.b-motor-no small{font-size:13px;font-weight:800;opacity:.8}
.b-motor-no.spin b{animation:flick .08s steps(1) infinite}
@keyframes flick{50%{opacity:.55}}
.b-motor-no.got{animation:got .5s ease-out}
@keyframes got{from{transform:scale(1.25)}}
.b-motor-info{flex:1;min-width:0;font-size:13px;line-height:1.5}
.b-motor-info p{margin:0}
.b-motor-info .bars{display:grid;grid-template-columns:3.4em 1fr 2.6em;gap:2px 6px;align-items:center;font-weight:700}
.b-motor-info .bars i{display:block;height:8px;border-radius:99px;background:#e3ebf1;overflow:hidden}
.b-motor-info .bars em{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2f86c0,#ffb347)}
.b-motor-info .bars b{text-align:right;font-variant-numeric:tabular-nums}
.b-draw{flex:none;min-height:44px;padding:0 16px;font-size:15px}
.b-draw[disabled]{opacity:.4;cursor:default}
.b-prop{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:13px;font-weight:800}
.b-prop input{width:100%;accent-color:var(--accent);touch-action:pan-x}

/* レース中 */
.b-chips{display:flex;gap:6px}
.b-lap,.b-entry{background:var(--glass);border-radius:10px;padding:2px 10px;font-size:13px;font-weight:800}
.b-lap{color:var(--gold)}
.b-motor-hud{display:flex;flex-direction:column;background:var(--glass);border-radius:10px;padding:3px 10px;font-size:13px;font-weight:700;line-height:1.4}
.b-motor-hud b{font-size:13px;color:#cfe8ff}
.b-time{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}
.b-speed{background:var(--glass);border-radius:12px;padding:2px 12px;text-align:right;display:flex;align-items:baseline;gap:4px}
.b-speed b{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.2;min-width:2.2em}
.b-speed small{font-size:13px;opacity:.85}
.b-wake{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(46px + var(--sab));padding:3px 12px;border-radius:99px;background:var(--glass);font-size:13px;font-weight:800;opacity:.35;transition:opacity .15s,background .15s}
.b-wake::before{content:"〰 ";}
.b-wake.on{opacity:1;background:rgba(224,82,58,.88)}
.b-wake{transform:translateX(calc(-100% - 4px))}
.b-wake.hit{animation:b-hit .45s ease-out}
@keyframes b-hit{0%{transform:translateX(calc(-100% - 4px)) translateY(0) scale(1.18)}30%{transform:translateX(calc(-100% - 4px)) translateY(-6px) scale(1.1)}60%{transform:translateX(calc(-100% - 4px)) translateY(2px)}100%{transform:translateX(calc(-100% - 4px)) translateY(0)}}
.b-speed b.hit{display:inline-block;color:#ff8a70;animation:b-hit2 .45s ease-out}
@keyframes b-hit2{0%{transform:translateY(-4px)}50%{transform:translateY(2px)}100%{transform:none}}
/* スリップストリーム（前の艇の真後ろ） */
.b-slip{position:absolute;left:50%;transform:translateX(4px);bottom:calc(46px + var(--sab));padding:3px 12px;border-radius:99px;background:var(--glass);font-size:13px;font-weight:800;opacity:.35;transition:opacity .15s,background .15s}
.b-slip::before{content:"≫ ";}
.b-slip.on{opacity:1;background:rgba(58,140,224,.9)}
/* 画面の大時計 */
.b-clock{position:absolute;left:50%;top:calc(64px + var(--sat));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px}
.b-clock-face{position:relative;width:118px;height:118px;border-radius:50%;background:radial-gradient(circle,#fbfbf6 60%,#e6e6de);border:5px solid #1f2a33;box-shadow:0 6px 20px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.b-clock-win{position:absolute;inset:4px;border-radius:50%;background:conic-gradient(#ffd23a 0 30deg,transparent 30deg 330deg,rgba(216,52,42,.3) 330deg)}
.b-clock-hand{position:absolute;left:50%;top:8px;width:4px;height:calc(50% - 8px);margin-left:-2px;background:#d8342a;border-radius:2px;transform-origin:50% 100%}
.b-clock-face b{position:relative;font-size:34px;font-weight:800;color:#111;text-shadow:none;font-variant-numeric:tabular-nums}
.b-clock small{font-size:13px;font-weight:800;background:var(--glass);padding:1px 10px;border-radius:99px}
.b-clock.win .b-clock-face{border-color:#ffd23a;box-shadow:0 0 0 4px rgba(255,210,58,.5),0 6px 20px rgba(0,0,0,.45)}
.b-st{position:absolute;left:50%;top:calc(70px + var(--sat));transform:translateX(-50%);font-size:30px;font-weight:800;background:var(--glass);padding:2px 18px;border-radius:14px;font-variant-numeric:tabular-nums}
.b-st.good{color:#7dff8a}.b-st.bad{color:#ff6b4a}
/* 左手：レバー */
.b-lever{position:absolute;left:calc(14px + var(--sal));bottom:calc(12px + var(--sab));width:84px;height:min(220px,56vh);display:flex;flex-direction:column;align-items:center;pointer-events:auto;touch-action:none}
.b-lever small{font-size:13px;font-weight:800;opacity:.9} /* 2026-11-05 スマホのレビュー：10〜11px → 13px */
.b-lever-track{position:relative;flex:1;width:54px;margin:3px 0;border-radius:27px;background:rgba(255,255,255,.12);border:2px solid rgba(255,255,255,.45);overflow:hidden}
.b-lever-fill{position:absolute;left:0;right:0;bottom:0;height:50%;background:linear-gradient(0deg,rgba(47,134,192,.55),rgba(255,179,71,.8))}
.b-lever-track .mid{position:absolute;left:6px;right:6px;top:50%;height:2px;background:rgba(255,255,255,.6)}
.b-lever-knob{position:absolute;left:50%;top:50%;width:50px;height:34px;margin:-17px 0 0 -25px;border-radius:12px;background:linear-gradient(180deg,#fff,#d4dde4);box-shadow:0 3px 10px rgba(0,0,0,.45)}
/* 右手：ハンドル */
.b-handle{position:absolute;right:calc(14px + var(--sar));bottom:calc(10px + var(--sab));width:min(300px,40vw);height:150px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;pointer-events:auto;touch-action:none;border-radius:24px;background:rgba(8,20,32,.25);border:2px dashed rgba(255,255,255,.25)}
.b-wheel{position:absolute;left:50%;top:44%;width:104px;height:104px;border-radius:50%;border:10px solid rgba(255,255,255,.92);box-shadow:0 3px 12px rgba(0,0,0,.45),inset 0 0 0 2px rgba(0,0,0,.2);transform:translate(-50%,-50%)}
.b-wheel i{position:absolute;left:50%;top:-2px;bottom:50%;width:8px;margin-left:-4px;background:rgba(255,255,255,.92);border-radius:4px}
.b-wheel::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:#fff}
.b-handle small{font-size:13px;font-weight:800;opacity:.85;margin-bottom:6px}
body.is-touch .b-wake,body.is-touch .b-slip{bottom:calc(14px + var(--sab))}
/* 結果・ルール */
.b-kima{margin:2px 0 0;text-align:center;font-weight:800;color:#c2560d}
.r-table td.bad{color:var(--red);font-weight:800}
.b-rules{width:min(640px,100%)}
.b-rules h2{margin:0 0 6px;font-size:20px}
.b-rules h3{margin:10px 0 2px;font-size:15px}
.b-rules p,.b-rules li{font-size:14px;margin:0}
.b-rules ul{margin:0;padding-left:1.2em}
@media (max-height:480px){
  .b-clock{top:calc(52px + var(--sat))}
  .b-clock-face{width:92px;height:92px}
  .b-clock-face b{font-size:26px}
  .b-lever{height:min(200px,60vh);width:76px}
  .b-handle{height:126px}
  .b-wheel{width:86px;height:86px;border-width:8px}
  .b-speed b{font-size:20px}
  .b-motor-hud{display:none}
  .b-motor-no{width:60px;height:60px}.b-motor-no b{font-size:26px}
  .b-st{font-size:24px}
}
.b-lever-mid{position:absolute;left:0;right:0;top:50%;margin-top:3px;text-align:center;font-size:13px;font-weight:800;opacity:.8}
.b-clock.risky .b-clock-face{border-color:#ff5b3a}
/* ボート：メッセージは ST の表示と重ならない高さに */
.r-msg{top:58%}
/* 準備画面の背景：艇庫の写真（garage-boat.jpg）に暗い重ね。3Dの水面の上にかぶせる */
body.is-setup .r-backdrop{background:
  repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 16px),
  linear-gradient(180deg,rgba(6,18,30,.5),rgba(6,18,30,.82)),
  url(../media/game/garage-boat.jpg) center/cover no-repeat}
/* 手助け：スタートの「あと○秒で全速」・レース中のレバーの目安 */
.b-guide{position:absolute;left:50%;top:calc(218px + var(--sat));transform:translateX(-50%);font-size:20px;font-weight:800;white-space:nowrap;background:var(--glass);padding:4px 18px;border-radius:99px;font-variant-numeric:tabular-nums;border:2px solid transparent}
.b-guide.soon{color:#ffd23a;border-color:rgba(255,210,58,.6)}
.b-guide.go{color:#0f1c26;background:#7dff8a;animation:pulse .5s ease-in-out infinite alternate}
.b-guide.bad{color:#fff;background:rgba(214,64,40,.9)}
.b-guide.calm{font-size:15px;opacity:.85;top:auto;bottom:calc(178px + var(--sab))}
@keyframes pulse{to{transform:translateX(-50%) scale(1.08)}}
.b-lever-tgt{position:absolute;left:-2px;right:-2px;top:50%;height:6px;margin-top:-3px;background:#7dff8a;box-shadow:0 0 8px #7dff8a;border-radius:3px;pointer-events:none;z-index:1}
/* パソコン（タッチでない）でもレバーは目盛りとして見せる（マウスでも動かせる）。ハンドルは←→キー */
body:not(.is-touch) .r-touch{display:block}
body:not(.is-touch) .b-handle{display:none}
body:not(.is-touch) .b-guide.calm{bottom:calc(40px + var(--sab))}
@media (max-height:480px){
  .b-guide{top:calc(172px + var(--sat));font-size:16px;padding:2px 14px}
  .b-guide.calm{font-size:13px;bottom:calc(142px + var(--sab))}
}
/* ST の表示は大時計の下（時計と重ねない） */
.b-st{top:calc(194px + var(--sat))}
@media (max-height:480px){.b-st{top:calc(150px + var(--sat))}}
/* 低い画面（スマホ横持ち）では、レース中の目安は時計の下の上端に（艇と重ねない） */
@media (max-height:480px){.b-guide.calm{top:calc(58px + var(--sat));bottom:auto}}
/* レース中の目安（.run）：画面の下寄り（自分の艇の下・引き波の札の上）に、小さく1行で。遠くのコース・ターンマーク・次のマークの札を隠さない（2026-11-05）。
   スタート前の「あと○秒で全速」（.run なし）は今までどおり大時計の下 */
.b-guide.run{top:auto;bottom:calc(150px + var(--sab));font-size:16px;padding:3px 14px}
.b-guide.run.calm{font-size:15px}
.b-guide.run.go{animation:none}
body:not(.is-touch) .b-guide.run{bottom:calc(46px + var(--sab))}
@media (max-height:480px){
  .b-guide.run,.b-guide.run.calm{top:auto;bottom:calc(78px + var(--sab));font-size:13px;padding:2px 12px}
  body:not(.is-touch) .b-guide.run{bottom:calc(78px + var(--sab))}
}

/* 幅420px以下（スマホ縦）：見出しは「‹」と同じ行に1行で、ボタン類はその下の行へ。下の「出走する」は横いっぱい・説明はその上 */
@media (max-width:420px){
  .r-setup-head>div{flex-basis:calc(100% - 56px)}
  .r-setup-head .r-chip,.r-setup-head .a-mute-head{min-height:34px;padding:0 10px;font-size:13px}
  .r-setup-head .sm-who .r-chip{line-height:34px}
  .r-setup-foot{flex-wrap:wrap}
  .r-setup-foot .r-note,.r-setup-foot .r-err{flex:1 1 100%}
  .r-setup-foot .r-note:empty,.r-setup-foot .r-err:empty{display:none}
  .r-setup-foot .r-btn{flex:1 1 100%;min-width:0}
  .r-field{flex-wrap:wrap;gap:2px 10px}
  .r-field span{width:auto;flex:1 1 100%}
}

/* ---------- スマホの文字の量（docs/work-20261104/mobile-text。4競技で同じ決まり） ----------
   走っている間の言葉は1つだけ・全角12字まで・遊ぶ所（画面のまん中）に重ねない。長い説明は遊び方の「くわしく」と決まりの画面へ */
/* 知らせ（hud.message）：画面の中に収める（左右の余白と safe-area）。万一長くても折り返して見せる */
.r-msg{width:max-content;max-width:calc(100vw - 24px - var(--sal) - var(--sar));white-space:normal;text-align:center;font-size:clamp(15px,2.6vw,22px);line-height:1.3}
/* 準備の画面のプレオープンの帯：スマホ・低い画面では1行＋Xへの案内（同じ内容は遊び方の画面の帯と、はじめの確認に出ている） */
@media (max-height:480px),(max-width:700px){
  #setup .po-box{margin:4px 0;padding:6px 12px}
  #setup .po-box .po-sub:not(:last-child){display:none}
  #setup .po-box .po-sub{margin:0}
}
/* 遊び方：1枚＝絵・見出し・短い1行。長い説明は「くわしく ▸」の中（スマホははじめ閉じる） */
.r-tut-step .tut-short{margin:0;font-size:17px;font-weight:800;line-height:1.45}
.r-more{margin:4px 0 0}
.r-more summary{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:14px;font-weight:800;color:var(--turf);cursor:pointer;list-style:none}
.r-more summary::-webkit-details-marker{display:none}
.r-more summary::after{content:'▸';margin-left:6px;transition:transform .15s}
.r-more[open] summary::after{transform:rotate(90deg)}
.r-tut-step .r-more p{font-size:13.5px;line-height:1.6}
@media (max-height:480px){
  .r-tut{padding:10px 16px}
  .r-tut-step .ill{height:64px;min-height:0;margin-bottom:6px}
  .r-tut-step h3{font-size:18px;margin-bottom:2px}
  .r-tut .r-btns{margin-top:8px}
}
/* ボート：知らせは今までどおり 58% の高さ（大時計の下・艇の上） */
.r-msg{transform:translate(-50%,-50%)}
/* 縦持ち：大時計は上の帯（順位・地図・ボタン）の下へ。ST・スタートの目安はその下（重ねない） */
@media (max-width:700px) and (orientation:portrait){
  .b-clock{top:calc(186px + var(--sat))}
  .b-clock-face{width:92px;height:92px}
  .b-clock-face b{font-size:26px}
  .b-st{top:calc(310px + var(--sat))}
  .b-guide{top:calc(312px + var(--sat))}
}
/* 選手名のラベル：2行（「選手名」＋小さく「アカウントの表示名」）。3行に折れないように */
.r-field:has(.r-field-sub) span{width:auto}
.r-field-sub{display:block;font-size:13px;font-weight:700;opacity:.75;white-space:nowrap}

/* ---------- モンキーターンの勝負ボタン（2026-11-05） ---------- */
.b-monkey{position:absolute;right:calc(18px + var(--sar));bottom:calc(172px + var(--sab));width:76px;height:76px;border-radius:50%;border:3px solid rgba(255,255,255,.85);
  color:#fff;font:900 20px/1 system-ui,-apple-system,"Hiragino Sans",sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  pointer-events:auto;touch-action:none;box-shadow:0 4px 16px rgba(0,0,0,.45);background:#2d6fd1;z-index:6}
.b-monkey small{font-size:13px;font-weight:800;opacity:.85}
body.is-touch .b-monkey small{display:none}
.b-monkey.t0{background:radial-gradient(circle at 35% 30%,#7fb2ff,#1f56b8)}
.b-monkey.t1{background:radial-gradient(circle at 35% 30%,#fff38a,#e0a800);color:#3a2a00}
.b-monkey.t2{background:radial-gradient(circle at 35% 30%,#ff8a7a,#c8141a);box-shadow:0 0 18px rgba(255,60,40,.8)}
.b-monkey.t3{background:conic-gradient(#ff4d4d,#ffb84d,#fff04d,#5dff6a,#4dc3ff,#9b6bff,#ff4d4d);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6);animation:mkSpin 1.2s linear infinite;box-shadow:0 0 24px rgba(255,255,255,.9)}
@keyframes mkSpin{to{filter:hue-rotate(360deg)}}
body:not(.is-touch) .b-monkey{bottom:calc(64px + var(--sab));right:calc(22px + var(--sar));width:66px;height:66px;font-size:17px}
@media (max-height:480px){.b-monkey{bottom:calc(136px + var(--sab));width:62px;height:62px;font-size:16px}}
/* カットイン（押した直後・期待度が高いときだけ）：画面の上半分に短く。色で期待度（黄・緑・赤・金・虹。虹は確定） */
.b-mkcut{position:absolute;left:0;right:0;top:12%;height:30%;pointer-events:none;z-index:7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.b-mkcut-in{display:flex;align-items:center;gap:14px;padding:0 28px;height:100%;width:100%;justify-content:center;
  background:linear-gradient(100deg,transparent 0 6%,var(--mk,#fff) 6% 94%,transparent 94%);animation:mkIn .9s ease-out forwards}
.b-mkcut-in b{font:900 min(44px,9vh)/1 system-ui,-apple-system,"Hiragino Sans",sans-serif;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.45),0 0 18px rgba(0,0,0,.4);letter-spacing:.04em}
.b-mkcut-face{height:92%;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}
.b-mkcut-face .hm{fill:var(--lane,#d33a2c)}.b-mkcut-face .vs{fill:#15181c}
/* 黄：平らな明るいレモン色（光らない・縁なし）。金と並べて見分けられるように */
.b-mkcut[data-cut=yellow] .b-mkcut-in{background:linear-gradient(100deg,transparent 0 6%,#fff04a 6% 94%,transparent 94%)}
.b-mkcut[data-cut=yellow] b{color:#4a3c00;text-shadow:none}
.b-mkcut[data-cut=green]{--mk:rgba(30,170,80,.92)}
.b-mkcut[data-cut=red]{--mk:rgba(220,30,30,.94)}
/* 金：濃い金の地（金属の照り返しの縞）に、白い光の縁と、きらめく粒 */
.b-mkcut[data-cut=gold] .b-mkcut-in{position:relative;
  background:linear-gradient(100deg,transparent 0 6%,#5c3a00 6%,#9a6a0a 18%,#e8c25a 32%,#fff4c4 38%,#c8961e 46%,#7a4f04 60%,#d9a93a 74%,#f7dc8a 82%,#8a5a06 94%,transparent 94%);
  filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 16px rgba(255,214,90,.8))}
.b-mkcut[data-cut=gold] .b-mkcut-in::before,.b-mkcut[data-cut=gold] .b-mkcut-in::after{content:"";position:absolute;inset:6% 9%;pointer-events:none;
  background-image:radial-gradient(circle,#fff 0 1.6px,transparent 2.6px),radial-gradient(circle,#fff 0 1.2px,transparent 2.2px),radial-gradient(circle,#fffbe0 0 2px,transparent 3.4px);
  background-size:46px 38px,71px 53px,97px 61px;background-position:5px 7px,31px 22px,60px 12px;animation:mkSparkle .45s steps(2) infinite alternate}
.b-mkcut[data-cut=gold] .b-mkcut-in::after{background-position:24px 19px,8px 40px,77px 33px;animation-delay:.22s}
.b-mkcut[data-cut=gold] b{color:#fff;text-shadow:0 2px 0 #5c3a00,0 0 10px rgba(255,255,255,.9)}
@keyframes mkSparkle{from{opacity:.25}to{opacity:1}}
.b-mkcut[data-cut=rainbow] .b-mkcut-in{background:linear-gradient(100deg,transparent 0 6%,#ff4d4d 6%,#ffb84d 22%,#fff04d 38%,#5dff6a 54%,#4dc3ff 70%,#9b6bff 94%,transparent 94%)}
@keyframes mkIn{0%{transform:translateX(-100%) skewX(-12deg);opacity:.2}18%{transform:translateX(0) skewX(-12deg);opacity:1}80%{transform:translateX(0) skewX(-12deg);opacity:1}100%{transform:translateX(30%) skewX(-12deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.b-mkcut-in{animation:none}.b-monkey.t3{animation:none}.b-mkcut-in::before,.b-mkcut-in::after{animation:none!important}}
.mk-table td{white-space:normal;font-size:13px;vertical-align:top}.mk-table td:first-child{font-weight:800}

/* ログイン中は能力を動かせない理由と厩舎への道（stats-lock.js） */
.r-lockstat{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.5}
.r-lockstat a{display:inline-block;margin-left:8px;white-space:nowrap}
#stats input:disabled{opacity:.55}
/* 準備の画面の用語（2026-11-05 ペルソナレビュー B3） */
.r-first{opacity:.9;font-weight:700}
.r-glossary dl{margin:2px 0 6px;font-size:13px;line-height:1.5}
.r-glossary dt{font-weight:800;margin-top:6px}
.r-glossary dd{margin:0 0 0 1em}
/* 指で押しやすく（2026-11-05 ペルソナレビュー B4） */
@media (pointer:coarse){
  .r-seg button,.r-seg-s button{min-height:44px;min-width:44px}
  .r-setup-head .r-chip{min-height:44px}
}
/* 結果のボタン（2026-11-05 ペルソナレビュー B7）：スマホでは「もう一度」を1つだけ大きく先頭に。見返しの2つは2列、そのほかは小さく1列に並べる */
@media (pointer:coarse) and (max-width:900px){
  #result .r-btns{gap:6px}
  #result .r-btns .r-primary{order:-2;flex:1 1 100%;min-height:52px;font-size:18px}
  #result .r-btns #rpFullBtn,#result .r-btns #rpPhotoBtn,#result .r-btns #rpKimaBtn,#result .r-btns #replayBtn,#result .r-btns #replayFullBtn{order:-1;flex:1 1 40%;min-height:44px;padding:0 10px;font-size:13px}
  #result .r-btns .r-btn:not(.r-primary):not(#rpFullBtn):not(#rpPhotoBtn):not(#rpKimaBtn):not(#replayBtn):not(#replayFullBtn){flex:1 1 26%;min-height:44px;padding:0 8px;font-size:13px}
}
/* 結果の「次は」の1行（2026-11-05 ペルソナレビュー C7。相撲の .b-tip と同じ形） */
.r-tip{display:block;margin:6px 0 0;font-size:14px;font-weight:700;line-height:1.45;text-align:left;opacity:1}
.r-tip b{display:inline-block;margin-right:8px;padding:0 8px;border-radius:6px;background:#1f6b9a;color:#fff;font-size:13px}

/* ---------- 縦持ち（スマホ）：下の操作（レバー・ハンドル・勝負ボタン）と文字を重ねない・一時停止を親指の届く所へ（2026-11-05 スマホのレビュー） ----------
   下から：レバー（左・高さ約220px）・ハンドル（右・150px）・勝負ボタン（右・下から172〜248px）。
   その上に 引き波／スリップの札（下から246px）、さらに上にレース中の目安（下から294px・画面の幅に収める）。
   一時停止は左（レバーの上・下から244px）：右の中ほどは勝負ボタンなので避ける */
@media (max-width:700px) and (orientation:portrait){
  /* 引き波／スリップの札：艇と黄色い輪に重ならないよう、上の時計の下へ（2026-11-06 ユーザーの iPhone） */
  body.is-touch .b-wake,body.is-touch .b-slip{top:calc(178px + var(--sat));bottom:auto} /* 上の表示（順位・周回・モーター・地図・ルールの列）の下 */
  .b-guide.run,.b-guide.run.calm{bottom:calc(294px + var(--sab));max-width:calc(100vw - 32px - var(--sal) - var(--sar));white-space:normal;text-align:center;font-size:14px}
  body.is-touch #pauseBtn{position:fixed;left:calc(14px + var(--sal));bottom:calc(244px + var(--sab));min-width:52px;min-height:44px;z-index:6}
}

/* ---------- おまかせレバーの札・「ブレーキまで」のゲージ（2026-11-05） ----------
   札：競輪の「ペダル おまかせ」と同じ形。「手動」の時に押すとおまかせに戻る（A キーでも）。スマホはレバーの右下 */
.r-auto{align-self:flex-start;font-size:13px;font-weight:800;color:#fff;background:var(--glass);padding:2px 10px;border-radius:99px}
.r-auto b{padding:0 6px;border-radius:99px;background:#3d6fd1}
.r-auto b[data-mode="手動"]{background:#7c8094}
button.r-auto{border:0;font-family:inherit;line-height:inherit;pointer-events:auto;cursor:pointer;touch-action:manipulation}
button.r-auto[hidden]{display:none}
.r-auto b[data-mode="手動"]::after{content:' ↺ おまかせへ';font-size:13px;opacity:.9}
body.is-touch .r-auto{position:fixed;left:calc(106px + var(--sal));bottom:calc(14px + var(--sab));min-height:36px}
body.is-touch .r-auto b[data-mode="手動"]::after{content:' ↺'}
/* ゲージ：レース中の目安（.b-guide.run）のすぐ上に。バーはブレーキまでの残り（ターンの中は曲がれる速さに対する今の速さ） */
.b-brake{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(186px + var(--sab));display:flex;align-items:center;gap:8px;background:var(--glass);padding:3px 12px;border-radius:99px;font-size:14px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.b-brake i{display:block;width:120px;height:10px;border-radius:5px;background:rgba(255,255,255,.2);overflow:hidden}
.b-brake em{display:block;height:100%;width:0;background:#7dc8ff;border-radius:5px}
.b-brake.soon{color:#ffd23a}.b-brake.soon em{background:#ffd23a}
.b-brake.bad{color:#fff;background:rgba(214,64,40,.9)}.b-brake.bad em{background:#fff}
.b-brake.go{color:#7dff8a}.b-brake.go em{background:#7dff8a}
body:not(.is-touch) .b-brake{bottom:calc(84px + var(--sab))}
@media (max-height:480px){.b-brake,body:not(.is-touch) .b-brake{bottom:calc(110px + var(--sab));font-size:13px;padding:2px 10px}.b-brake i{width:90px}}
/* 縦持ち：目安の帯は2行に折り返すことがある（2026-11-05 実画面）ので、ゲージはその上（下から 356px） */
@media (max-width:700px) and (orientation:portrait){.b-brake{bottom:calc(356px + var(--sab))}}
/* ハンドルの目安：枠の左（内へ）／右（外へ）を光らせる。目安の帯が伝言で隠れている間も見える */
.b-handle[data-want="in"]{border-left:6px solid #7dff8a;box-shadow:inset 14px 0 18px -10px rgba(125,255,138,.8)}
.b-handle[data-want="out"]{border-right:6px solid #7dff8a;box-shadow:inset -14px 0 18px -10px rgba(125,255,138,.8)}

/* 2026-11-06 スマホの点検：レース中・結果の文字は 13px 以上（2連率・ペラ・km/h・全速・結果の表の見出し・枠の数字・CPU／あなた／出遅れの札・結果の説明） */
/* 共通の部品（preopen.js の「バグ・ご意見はXで」・online.js の参加ポイントの説明）も、ボートの画面では 13px 以上に（2026-11-06。元の部品は変えない） */
.po-x{font-size:13px!important}
.w-sub{font-size:13px!important}

/* スマホ（タッチ）ではキーの名前を出さない（遊び方・説明の「（パソコンは ◯）」。2026-11-06） */
body.is-touch .r-pc-key{display:none}
@media (hover:none) and (pointer:coarse){.r-pc-key{display:none}} /* まだ一度も触っていない時（遊び方が最初に開く時）も、指で使う画面なら出さない */
/* 欠場のときの「結果へ」（レース中）：右下はハンドルなので、右の中ほどに出す（2026-11-09） */
body:not(.is-intro) #skipBtn{bottom:auto;top:46%}

/* 遊び方の動く絵（boat-tut.js。2026-11-09） */
.r-tut-step .ill.bt-ill{height:auto;padding:0;background:none;font-size:inherit}
.bt-svg{display:block;width:100%;height:auto;max-height:150px;border-radius:14px}
@media (max-height:560px){ .bt-svg{max-height:96px} }
/* 技の練習 */
.bt-drills-head{font-weight:800;margin:0 0 6px}
.bt-drills-head b{color:#ffd23f}
.bt-drills{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bt-drills li{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.06)}
.bt-drills li i{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:900;color:#173b57}
.bt-drills li.ok i{background:#9cffb0;border-color:#9cffb0}
.bt-drills li span{display:flex;flex-direction:column;line-height:1.3}
.bt-drills li small{opacity:.75}
/* かんたん操作：スタート後のレバーは薄く（おまかせ） */
body.b-easy .b-lever{transition:opacity .3s}
/* PC のキーの説明：かんたん操作と本格で入れかえ */
.bk-easy{display:none}
body.b-easy .bk-easy{display:block}
body.b-easy .bk-pro{display:none}
body.is-touch .bk-easy,body.is-touch .bk-pro{display:none!important}

/* 勝ちの戻し（2026-11-10） */
.r-win{margin:8px 0 0;padding:6px 10px;border-radius:10px;background:rgba(255,214,90,.18);font-size:14px;line-height:1.5}
