/* ハイパースキージャンプ：雪山の白と空色に、ジャンプスーツの赤。ポップなマンガの見た目。
   見出しは Dela Gothic One、本文は M PLUS Rounded 1c。明るい見た目ひとつに固定する（ゲームの絵が明るいため）。 */
:root {
  color-scheme: light;
  --cola: #1d2440;
  --cola2: #2e3d63;
  --yellow: #ffd21a;
  --red: #e2352a;
  --cream: #fffaf0;
  --green: #2a8f4a;
  --head: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --body: "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: manipulation; overscroll-behavior: none; background: #cfe8ff; color: var(--cola); font-family: var(--body); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ---- HUD ---- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud-left {
  position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px));
  padding: 8px 14px 10px; width: min(300px, calc(100vw - 92px));
  background: var(--cream); border: 3px solid var(--cola); border-radius: 12px; box-shadow: 0 4px 0 var(--cola);
}
#hud-stage { font-family: var(--head); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud-info { font-size: 13px; font-weight: 800; margin-top: 2px; }
#hud-info b { color: var(--red); }
.meter { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; font-weight: 800; }
.mbar { flex: 1; height: 12px; background: #e9dcc0; border: 2px solid var(--cola); border-radius: 7px; overflow: hidden; }
.mbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a3a14, var(--cola)); }
.mbar.hot i { background: linear-gradient(90deg, #ff6a3a, var(--red)); }
.sysbtns { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(70px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.ic { width: 46px; height: 46px; border-radius: 10px; border: 3px solid var(--cola); background: var(--cream); color: var(--cola); display: grid; place-items: center; padding: 3px 0 2px; box-shadow: 0 3px 0 var(--cola); }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic span { font-size: 9px; line-height: 1; font-weight: 800; }
#sound { position: fixed; z-index: 30; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); width: 46px; height: 46px; border-radius: 10px; border: 3px solid var(--cola); background: var(--cream); color: var(--cola); display: grid; place-items: center; box-shadow: 0 3px 0 var(--cola); }
#sound svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sound .spk { fill: currentColor; }
#sound .mute { display: none; }
#sound.off .wave { display: none; }
#sound.off .mute { display: inline; }

/* 行動ボタン */
#acts { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; pointer-events: auto; width: min(560px, calc(100vw - 24px)); }
.act { flex: 1; height: 86px; border-radius: 18px; border: 4px solid var(--cola); display: grid; place-content: center; gap: 2px; box-shadow: 0 6px 0 var(--cola); touch-action: none; color: var(--cola); }
.act b { font-family: var(--head); font-size: 21px; font-weight: 400; }
.act small { font-size: 11px; font-weight: 800; opacity: .75; }
.act.one { background: var(--red); color: #fff; height: 120px; }
.act.one b { font-size: 40px; text-shadow: 0 3px 0 var(--cola); }
@keyframes want { to { filter: brightness(1.15); transform: scale(1.05); } }
body:not(.touch) #acts { display: none; }

/* 飛び出す文字 */
#pops { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.pop { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); font-family: var(--head); font-size: var(--s, 26px); color: #fff; -webkit-text-stroke: 2px var(--cola); paint-order: stroke fill; text-shadow: 0 3px 0 var(--cola); white-space: nowrap; animation: pop 0.8s ease-out forwards; }
.pop.y { color: var(--yellow); }
.pop.r { color: var(--red); }
.pop.b { color: #7fb2ff; }
.pop.g { color: #4cd964; }
.pop.big { animation: popBig 1.6s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes pop { from { opacity: 1; margin-top: 0; } 70% { opacity: 1; } to { opacity: 0; margin-top: -60px; } }
@keyframes popBig { from { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.2); opacity: 1; } 25% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); } 85% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.08); } }

/* 結果のカード */
#card {
  position: fixed; z-index: 25; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(420px, calc(100vw - 32px));
  padding: 18px 20px 16px; background: var(--cream); color: var(--cola); border: 4px solid var(--cola); border-radius: 16px; text-align: center;
  box-shadow: 0 7px 0 var(--cola), 0 14px 40px rgba(0,0,0,.35); animation: cardIn .35s cubic-bezier(.2,1.5,.4,1);
}
@keyframes cardIn { from { transform: translateX(-50%) translateY(40px); opacity: 0; } }
#card h2 { font-family: var(--head); font-weight: 400; font-size: 30px; margin: 2px 0 6px; }
#card.lose h2 { color: var(--red); }
#card.win h2 { color: var(--green); }
#card p { margin: 4px 0; line-height: 1.5; font-size: 14px; font-weight: 800; }
#card .big { font-family: var(--head); font-weight: 400; font-size: 24px; }
#card .rec { color: var(--red); }
#card .unit { font-family: var(--head); font-size: 17px; color: #e8691a; }
#card .lie { font-size: 12px; color: #2b59c3; }
#card.boom h2 { color: #e8691a; }
#card .btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
#card button { padding: 10px 18px; font-weight: 800; font-size: 15px; border: 3px solid var(--cola); border-radius: 10px; background: var(--yellow); color: var(--cola); box-shadow: 0 4px 0 var(--cola); }
#card button.sub { background: #fff; }

/* メニュー */
#menu { position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: linear-gradient(180deg, #5fb0ff 0%, #bfe2ff 45%, #f4f8ff 75%, #ffffff 100%); }
#menu::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.22) 8px, transparent 9px) 0 0 / 56px 56px; }
.menu-in { position: relative; max-width: 760px; margin: 0 auto; padding: calc(26px + env(safe-area-inset-top, 0px)) 16px 40px; text-align: center; }
.kicker { margin: 0; display: inline-block; padding: 3px 12px; background: var(--cola); color: var(--yellow); font-weight: 800; letter-spacing: .12em; font-size: 13px; border-radius: 20px; }
#menu h1 { font-family: var(--head); font-weight: 400; font-size: clamp(50px, 14vw, 96px); line-height: 1.02; margin: 10px 0 12px; color: #fff; -webkit-text-stroke: 4px var(--cola); paint-order: stroke fill; text-shadow: 0 6px 0 var(--cola); }
#menu .sub { line-height: 1.7; font-size: 14px; font-weight: 800; margin: 0 0 14px; }
#menu .sub small { color: #b3261e; }
.rules { list-style: none; padding: 0; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; max-width: 700px; }
.rules li { background: rgba(255,246,226,.8); border: 2px solid var(--cola); border-radius: 10px; padding: 8px; font-size: 12px; line-height: 1.5; font-weight: 800; }
.rules b { display: block; font-family: var(--head); font-weight: 400; font-size: 15px; color: var(--red); }
#stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.st { text-align: left; padding: 10px 12px; border-radius: 12px; border: 3px solid var(--cola); background: var(--cream); color: var(--cola); display: grid; gap: 2px; box-shadow: 0 4px 0 var(--cola); }
.st .no { font-size: 11px; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.st .nm { font-family: var(--head); font-size: 17px; }
.st .rec { font-size: 11px; font-weight: 800; opacity: .75; }
.st.done { background: #e4f6e0; }
.st.free { background: #fff3c4; grid-column: 1 / -1; }
.st:disabled { opacity: .4; cursor: default; box-shadow: none; }
#total { margin-top: 16px; font-size: 12px; font-weight: 800; opacity: .75; }

/* 横長の画面：ボタンは右下にまとめて、ボトルにかぶらないように */
@media (min-width: 701px) and (min-aspect-ratio: 23/20) {
  #acts { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); transform: none; width: 340px; }
  #card { width: min(480px, calc(100vw - 32px)); }
}
@media (max-width: 700px) {
  #hud-left { padding: 6px 10px 8px; }
  #hud-stage { font-size: 13px; }
  .act { height: 78px; }
  .act b { font-size: 18px; }
  .act.one { height: 108px; }

  .menu-in { padding-bottom: 120px; }
}

/* ---- メニュー：あそびかた と コース を見分けやすく ---- */
#menu { --mk:#c8261c;--mk-ink:#fff; }
#menu .sec { display: flex; align-items: center; gap: 8px; width: 100%; margin: 18px 0 10px; font-size: 16px; font-weight: 900; letter-spacing: .06em; text-align: left; }
#menu .sec i { font-style: normal; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mk); color: var(--mk-ink); font-size: 14px; font-weight: 900; }
#menu .sec small { font-size: 11px; font-weight: 700; opacity: .7; letter-spacing: 0; }
#menu .sec::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .25; }
#menu .howto { width: 100%; box-sizing: border-box; text-align: left; border: 2px dashed color-mix(in srgb, currentColor 45%, transparent); border-radius: 14px; padding: 2px 14px 12px; margin: 4px 0 6px; background: color-mix(in srgb, currentColor 7%, transparent); }
#menu .howto .sec { margin-top: 10px; }
#menu .howto .sec::after { display: none; }
#menu .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: step; }
#menu .steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; counter-increment: step; font-size: 12.5px; line-height: 1.45; background: none; border: 0; padding: 0; box-shadow: none; }
#menu .steps li::before { content: counter(step); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; border: 2px solid var(--mk); color: inherit; }
#menu .steps b { display: block; font-size: 14.5px; font-weight: 900; }
#menu .steps span { opacity: .8; }
#menu .howto .cues { margin: 10px 0 0; }
#menu .ctrl { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 12px; line-height: 1.9; }
#menu .ctrl em { font-style: normal; font-weight: 900; font-size: 10.5px; padding: 1px 7px; margin-right: 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 15%, transparent); }
#menu .st, #menu .stages button { position: relative; padding-right: 46px; }
#menu .st:not(:disabled)::after, #menu .stages button:not(:disabled)::after { content: "▶"; position: absolute; right: 10px; left: auto; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--mk); color: var(--mk-ink); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
#menu .st:disabled, #menu .stages button:disabled { border-style: dashed; }
#menu .st:disabled::after, #menu .stages button:disabled::after { content: "🔒"; position: absolute; right: 12px; left: auto; top: 50%; transform: translateY(-50%); font-size: 15px; background: none; }

/* ---- ハイパースキージャンプで足したもの ---- */
#hud-info { line-height: 1.5; }
#hud-info .gear { color: var(--red); }
#acts { width: min(420px, calc(100vw - 24px)); }
.act.one { background: var(--red); height: 104px; transition: background .15s; }
.act.one small { color: #fff; opacity: .85; }
.act.one.flight { background: #2b59c3; }
.act.one.zone { background: #ff8a00; animation: want .25s ease-in-out infinite alternate; }
.act.one.land { background: #1e9e4a; }
.act.one.held { transform: translateY(4px); box-shadow: 0 2px 0 var(--cola); }
@media (min-width: 701px) and (min-aspect-ratio: 23/20) { #acts { width: 300px; } }

/* キャラ選び */
#cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
#cats button { padding: 6px 12px; border-radius: 99px; border: 3px solid var(--cola); background: #fff; font-weight: 800; font-size: 14px; color: var(--cola); box-shadow: 0 3px 0 var(--cola); }
#cats button.on { background: var(--yellow); }
#chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ch { padding: 6px 6px 8px; border-radius: 12px; border: 3px solid var(--cola); background: var(--cream); color: var(--cola); display: grid; justify-items: center; gap: 2px; box-shadow: 0 4px 0 var(--cola); }
.ch canvas { width: 110px; height: 80px; }
.ch b { font-family: var(--head); font-weight: 400; font-size: 15px; }
.ch span { font-size: 10.5px; font-weight: 800; opacity: .75; line-height: 1.35; }
.ch span.sz { opacity: 1; color: #b5281f; font-size: 10px; }
.ch.on { background: #fff3c4; outline: 4px solid var(--red); outline-offset: 1px; }
#voices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#voices button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 3px solid var(--cola); background: var(--cream); color: var(--cola); box-shadow: 0 4px 0 var(--cola); }
#voices button b { display: block; font-family: var(--head); font-weight: 400; font-size: 16px; }
#voices button span { font-size: 11px; font-weight: 800; opacity: .75; }
#voices button.on { background: #fff3c4; outline: 4px solid var(--red); outline-offset: 1px; }

/* 結果のカード */
#card .judges { display: flex; gap: 4px; justify-content: center; margin: 8px 0 4px; }
#card .jd { flex: 1; max-width: 76px; border: 2px solid var(--cola); border-radius: 8px; padding: 3px 2px; background: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2,1.6,.4,1); }
#card .jd.show { opacity: 1; transform: scale(1); }
#card .jd small { display: block; font-size: 9px; font-weight: 800; opacity: .7; }
#card .jd b { font-family: var(--head); font-weight: 400; font-size: 17px; }
#card .jd i { display: block; font-style: normal; font-size: 8.5px; color: #b3261e; min-height: 1em; }
#card .kind { font-family: var(--head); font-weight: 400; font-size: 18px; color: #e8691a; }
#card .extra { font-size: 12px; color: #2b59c3; }
@media (max-width: 700px) { #card { padding: 12px 12px 12px; } #card h2 { font-size: 24px; } }

/* ふりがな ON：メニューの2行以上の説明だけ行の間を広げる（読みが上の行にぶつからないように） */
body.furi #menu .steps li, body.furi #menu .sub, body.furi .ch span, body.furi #voices button span { line-height: 2.05; }
body.furi #menu .steps b { margin-top: 4px; }

/* スマホの横持ち（画面が低い）：ボタンを低くして右下へ */
@media (max-height: 500px) and (min-aspect-ratio: 4/3) {
  #acts { left: auto; right: max(12px, env(safe-area-inset-right, 0px)); transform: none; width: 240px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .act.one { height: 76px; }
  .act.one b { font-size: 26px; }
  #hud-left { width: min(260px, 40vw); }
}

/* タイトル「ハイパースキージャンプ」は1行が7文字なので、スマホ幅でもはみ出さない大きさに */
#menu h1 { font-size: clamp(40px, 12.5vw, 92px); }
/* クリア印（メニュー）と全国順位（結果のカード） */
.st .clr { background: var(--red); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 11px; }
#card .rank { font-weight: 800; }
#card .rank b { font-size: 1.25em; color: var(--red); }

/* 2026-11-23：情報の枠を小さく（ジャンプが見えるように） */
#hud-left { padding: 5px 10px 6px; width: auto; max-width: min(300px, calc(100vw - 140px)); }
#hud-stage { font-size: 13px; }
#hud-info { font-size: 12px; line-height: 1.35; margin-top: 0; }
#hud-info .rv { color: #7c3aed; }
@media (max-width: 700px) {
  #hud-left { left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); padding: 3px 8px 4px; border-width: 2px; border-radius: 9px; box-shadow: 0 2px 0 var(--cola); max-width: calc(100vw - 128px); }
  #hud-stage { font-size: 11px; }
  #hud-info { font-size: 11px; line-height: 1.3; }
  .sysbtns { top: calc(62px + env(safe-area-inset-top, 0px)); gap: 6px; right: 8px; }
  .sysbtns .ic { width: 40px; height: 40px; border-width: 2px; box-shadow: 0 2px 0 var(--cola); }
  #sound { width: 40px; height: 40px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); border-width: 2px; }
  .act.one { height: 92px; }
}
/* 2026-11-23：ジャンプのボタンを小さく（画面のどこをタップしても同じなので、目印として足りる大きさに） */
#acts { width: min(320px, calc(100vw - 32px)); }
.act.one { height: 72px; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 var(--cola); }
.act.one b { font-size: 28px; }
.act.one small { font-size: 10px; }
@media (min-width: 701px) and (min-aspect-ratio: 23/20) { #acts { width: 240px; } }
@media (max-width: 700px) { .act.one { height: 64px; } .act.one b { font-size: 26px; } }
@media (max-height: 500px) and (min-aspect-ratio: 4/3) { #acts { width: 200px; } .act.one { height: 58px; } .act.one b { font-size: 22px; } }

/* 宿敵：結果のカード */
#card .gap { font-weight: 800; color: #7c3aed; }
#card .gap b { font-size: 1.35em; }
#card .nem { font-weight: 800; background: #f1e9ff; border-radius: 10px; padding: 4px 10px; display: inline-block; }
.pop.big.long { animation-duration: 3.2s; } /* 宿敵の登場：読めるように長く */

/* 2026-11-23：始まりのライバルの紹介（ふつうの太さの字の板） */
#rvcard { position: fixed; z-index: 25; left: 50%; top: calc(118px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -8px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
  width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 10px 18px 12px; border-radius: 14px; background: rgba(255,250,240,.96); border: 3px solid #7c3aed; box-shadow: 0 4px 0 #1d2440;
  font-family: "M PLUS Rounded 1c", sans-serif; color: #1d2440; text-align: center; }
#rvcard.on { opacity: 1; transform: translate(-50%, 0); }
#rvcard p { margin: 0; }
#rvcard .t { font-size: 20px; font-weight: 800; color: #7c3aed; }
#rvcard .t b { font-size: 24px; }
#rvcard .r { font-size: 16px; font-weight: 800; }
#rvcard .r b { color: #e2352a; font-size: 19px; }
#rvcard .w { margin-top: 4px; font-size: 15px; font-weight: 500; }
#rvcard .s { margin-top: 6px; font-size: 17px; font-weight: 800; background: #f1e9ff; border-radius: 10px; padding: 4px 10px; }
@media (min-width: 701px) { #rvcard { top: 24%; } }
/* スマホの縦持ち：ボタンは画面の下の端まで */
@media (max-width: 700px) { #acts { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 700px) { #rvcard { max-width: calc(100vw - 112px); padding: 8px 12px 10px; } #rvcard .t { font-size: 18px; } #rvcard .t b { font-size: 21px; } }

/* 2026-11-23：失敗を見せ場に。結果カードは絵を隠さない（パソコンは右・スマホは下で低く）、着地の写真（作品）・芸術点・芸術審判・失敗図鑑 */
#card .top { display: flex; gap: 10px; align-items: center; text-align: left; }
#card .top .head { flex: 1; min-width: 0; }
#card .top h2 { font-size: 22px; margin: 0 0 2px; line-height: 1.2; }
#card .top .big { margin: 0; font-size: 26px; }
#card .top .kind { margin: 0; font-size: 13px; }
#card .photo { margin: 0; flex: 0 0 44%; max-width: 190px; background: #fff; border: 3px solid var(--cola); border-radius: 6px; padding: 3px 3px 2px; box-shadow: 0 3px 0 var(--cola); transform: rotate(-2deg); }
#card .photo.fail { border-color: #8a5a2b; box-shadow: 0 0 0 3px #e8c27a, 0 4px 0 var(--cola); }
#card .photo img { display: block; width: 100%; border-radius: 2px; }
#card .photo figcaption { font-size: 11px; font-weight: 800; line-height: 1.3; padding: 2px 1px 0; text-align: center; }
#card .new { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10px; transform: rotate(-6deg); }
#card .arts { font-size: 14px; }
#card .arts b { color: #7c3aed; font-size: 1.15em; }
#card .arts small { display: block; font-size: 11px; color: #7c3aed; }
#card .jd.art { border-color: #7c3aed; background: #f6f0ff; }
#card .jd.art small { color: #7c3aed; opacity: 1; }
#card .jd.art.stand.show { transform: translateY(-6px) scale(1.12); box-shadow: 0 4px 0 #7c3aed; }
#card .jd.art.stand.show b { color: #7c3aed; }
@media (min-width: 701px) {
  #card { left: auto; right: 16px; bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); transform: none; width: min(400px, 40vw); max-height: calc(100vh - 84px); overflow-y: auto; animation: cardInR .35s cubic-bezier(.2,1.5,.4,1); }
  @keyframes cardInR { from { transform: translateX(40px); opacity: 0; } }
}
@media (max-width: 700px) {
  #card { max-height: 54vh; overflow-y: auto; padding: 10px 10px 10px; }
  #card p { font-size: 12.5px; margin: 2px 0; line-height: 1.4; }
  #card .top h2 { font-size: 19px; }
  #card .top .big { font-size: 22px; }
  #card .judges { margin: 4px 0 2px; }
  #card .btns { margin-top: 6px; position: sticky; bottom: -10px; background: var(--cream); padding: 6px 0 2px; }
}
/* 怖気づいたとき：ボタンを点滅させて「押せば飛べる」を知らせる */
.act.balk { background: #ff8a2a !important; animation: balkBlink .3s steps(2) infinite; }
@keyframes balkBlink { 50% { filter: brightness(1.25); transform: scale(1.05); } }
/* 失敗図鑑（メニュー） */
#zukan { margin-top: 14px; }
#zukan .zk { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
#zukan .z { display: grid; gap: 1px; padding: 6px 8px; border: 2px dashed rgba(29,36,64,.4); border-radius: 10px; background: rgba(255,255,255,.55); text-align: left; }
#zukan .z b { font-size: 13px; }
#zukan .z small { font-size: 10.5px; line-height: 1.35; opacity: .75; }
#zukan .z.on { border-style: solid; border-color: #7c3aed; background: #f6f0ff; }
#zukan .z.on b { color: #7c3aed; }
#card .photo figcaption small { display: block; font-size: 9.5px; opacity: .7; }

/* ---- 結果カードの整理（目標の板・全国順位・審判は小さく・はんこ）と、とめるメニュー ---- */
#card .goal { margin: 8px 0 4px; padding: 6px 10px; border-radius: 12px; background: #f1e9ff; border: 2px solid #c9b2f5; }
#card .goal-big { margin: 0; font-size: 15px; color: #5b21b6; line-height: 1.35; }
#card .goal-big b { font-family: var(--head); font-weight: 400; font-size: 1.7em; color: #e2352a; margin-left: 2px; }
#card .goal-big.champ { font-family: var(--head); font-weight: 400; font-size: 26px; color: #b07d00; }
#card .goal-big.champ small { display: block; font-family: var(--body, inherit); font-size: 12px; font-weight: 800; color: #6b5310; }
#card .goal-big .gold { color: #b07d00; }
#card .goal-sub { margin: 2px 0 0; font-size: 11.5px; color: #6b5310; }
#card .goal-say { margin: 4px 0 0; font-size: 13px; color: #1d2440; }
#card .goal-say small { margin-left: 8px; font-size: 11px; opacity: .7; }
#card .rank { font-size: 14px; }
#card .rank small { font-size: 11px; opacity: .65; }
#card .rank em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: #e2352a; color: #fff; font-size: 12px; }
#card .tk { margin: 2px 0 0; display: inline-block; padding: 0 7px; border-radius: 8px; background: #e8f4ff; color: #2b59c3; font-size: 11px; }
#card .bst { margin: 0; font-size: 11px; opacity: .7; }
#card .photo { position: relative; }
#card .stamps { display: flex; flex-wrap: wrap; gap: 4px; }
#card .photo .stamps { position: absolute; right: -6px; top: -8px; flex-direction: column; align-items: flex-end; }
#card .st { display: inline-block; padding: 1px 7px; border: 2px solid currentColor; border-radius: 6px; background: rgba(255,255,255,.92); font-size: 11px; transform: rotate(8deg); }
#card .st.rec { color: #e2352a; } #card .st.art { color: #7c3aed; } #card .st.top { color: #b07d00; background: #fff6cc; font-size: 13px; }
/* 審判：5人は小さく（顔ぶれと点数とひとこと）、芸術審判は大きく最後に */
#card .judges { align-items: flex-end; }
#card .jd { padding: 2px 1px; max-width: 58px; }
#card .jd b { font-size: 14px; }
#card .jd small { font-size: 8.5px; }
#card .jd i { position: relative; margin: 2px auto 0; width: max-content; max-width: 70px; padding: 1px 4px; border-radius: 6px; background: #fff3c4; color: #8a3a00; font-size: 10px; font-weight: 800; min-height: 0; }
#card .jd.art { flex: 1.5; max-width: 90px; padding: 4px 2px; }
#card .jd.art b { font-size: 22px; }
#card .jd.art small { font-size: 10px; }
#card .arts small { font-weight: 800; }
#card .btns button.small { padding: 8px 12px; font-size: 13px; }
#card .btns { flex-wrap: nowrap; }
/* カードの間：右の縦ボタン・下のジャンプボタンは隠す（はみ出して散らかって見える） */
body.carded .sysbtns, body.carded #acts { visibility: hidden; }
/* 遊んでいる間のふりがなボタンは「とめる」の中へ */
body.playing #furi-btn { display: none; }
#pause { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(20,24,48,.45); }
#pause.hidden { display: none; }
#pause .pin { width: min(340px, calc(100vw - 32px)); padding: 16px; border: 3px solid var(--cola); border-radius: 16px; background: var(--cream); box-shadow: 0 6px 0 var(--cola); text-align: center; }
#pause .pt { margin: 0 0 10px; font-family: var(--head); font-size: 22px; }
#pause button { width: 100%; padding: 11px 10px; margin: 4px 0; border: 3px solid var(--cola); border-radius: 10px; background: #fff; color: var(--cola); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--cola); }
#pause .go { background: var(--yellow); font-size: 18px; }
#pause .prow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; margin: 4px 0; }
#pause .prow button { font-size: 13px; }
#pause .home { background: #ffe1dc; }
/* メニュー：台の札の日本一・くわしい遊び方はたたむ・下の実況欄で中身が隠れないように */
#stages .topm { color: #b07d00; }
.howto .more { margin-top: 6px; font-size: 12px; }
.howto .more summary { cursor: pointer; font-weight: 800; color: #2b59c3; }
#menu .menu-in { padding-bottom: 120px; }
#card .btns button { white-space: nowrap; padding: 10px 14px; }
#card .btns button.small { padding: 8px 10px; }
body:not(.playing) #yokoyari.empty { display: none; }

/* 王冠と本気（裏の日本一） */
.cr { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 6px; background: #ffd21a; color: #3a2a00; font-style: normal; font-size: .85em; font-weight: 900; border: 1.5px solid #6b5310; }
.cr.ura { background: #ffb3a7; color: #5a0f08; border-color: #a1261b; }
#crowns { margin: 2px 0 8px; font-weight: 800; font-size: 14px; }
#crowns small { opacity: .7; font-size: 12px; }
#card .goal-big.champ.ura { color: #a1261b; font-size: 22px; }
#card .goal-sub.ura { color: #a1261b; font-weight: 800; }
#card .goal-big .red { color: #a1261b; }
#card .st.ura { color: #a1261b; background: #ffe9e5; font-size: 13px; }
