/* 配車ゲームの面 (/game/)。体系の正 = 台帳 busdoko-game-2026-10 §5x (P4 今風の高級感)。
   字 = 端末の字体 1 つ (site.css の body と同じ並び・Web フォント 0)・太さは 500 (文・継承) / 600 (語) / 700 (値・h1 / h2)・大きさは 12 / 14 / 16 / 20・字間 0 (ワードマークの副題だけ)・行送り 1.2 / 1.3 / 1.6・数字は全部 tnum・薄い灰の字は置かない (E12 §4n)。
   色 = 本文の黒 (ダークは白系)・青緑 (選択と手引き)・琥珀 (注意)・朱 (危ない)・系統の 7 色だけ。盤の部品は角 4 以下・影はバスの地面の影だけ。
   一覧・開始・右の列の表面 (§5aa) は白いカード + 1 px の線 + 影 2 層・角 12。390 を先に設計し、一覧は広い画面で 1200px 幅 */
.game{--g-ink:var(--k-ink);--g-acc:var(--k-green);--g-amber:var(--k-amber);--g-red:var(--k-red);--g-face:var(--k-paper);--g-edge:var(--k-rule-strong);--g-press:var(--k-ground);--g-rule:var(--k-rule);--g-track:var(--k-rule);--g-slot:var(--k-rule-strong);
  max-width:600px;margin:0 auto;color:var(--g-ink);font-family:var(--k-font);line-height:1.6;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}
/* E10 §4l: --g-* は --k-* を参照するだけ (ダークは kit の token が切り替える) */
.game b,.game strong,.game h3{font-weight:600}
.game h1,.game h2{font-weight:700}
.game .game-n{font-size:inherit;font-weight:700} /* 1 行の情報の中の数字 (game.js の numB)・大きさは行のまま */
.game :is(h1,h2,h3,h4){line-height:1.3}
.game-start p{color:var(--g-ink)}
/* ボタンの体系 (§5x 診断 1): 白の面 + 1 px の縁 + 角 4・押した時は一段濃く 0.97 倍 (120 ms)・使えない時は中身を 0.35 */
.game-btn:not(.k-btn),.game-iconbtn:not(.k-btn),.game-step:not(.k-btn),.game-busy:not(.k-btn){border:1px solid var(--g-edge);border-radius:4px;background:var(--g-face);color:var(--g-ink)}
.game-btn:not(.k-btn){min-height:var(--tap-min);min-width:var(--tap-min);padding:0 16px;font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.game-btn--main:not(.k-btn){background:var(--g-acc);border-color:var(--g-acc);color:var(--k-on-green)}

.game-btn:disabled{cursor:default}
.game-btn:disabled{border-style:dashed}.game-step__b:disabled,.game-step__b.is-empty{outline:1px dashed var(--g-edge);outline-offset:-3px} /* 押せないボタンは字と絵を本文の色のまま枠を破線に (薄い字の禁止・面白さの直し §5) */
.game-btn:not(.k-btn):active:not(:disabled),.game-iconbtn:not(.k-btn):active,.game-step__b:not(.k-btn):active:not(:disabled),.game-busy:not(.k-btn):active,.game-route__sel:active,.game-card:active,.game-cand:active{background:var(--g-press);transform:scale(.97)}
.game-btn--main:not(.k-btn):active:not(:disabled){background:var(--g-acc);filter:brightness(.92)}
.game-btn,.game-iconbtn,.game-step__b,.game-busy,.game-route__sel,.game-card,.game-cand{transition:transform .12s ease-out,background-color .12s ease-out}
.game-iconbtn{flex:none;width:var(--tap-min);height:var(--tap-min);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
#game-sound:not([data-level="off"]) .game-sound__x,#game-sound[data-level="off"] .game-sound__wave{display:none}
.game #game-sound{flex-direction:column;gap:0;font:600 12px/12px var(--k-font)} /* 効果音の段 (フリートのゲームの音 2026-10-29): 44 × 44 の中に絵 24 + 段の語 12 (小 / 中 / 大 / オフ)・全文は aria-label */
#game-pause[aria-pressed="false"] .game-pause__play,#game-pause[aria-pressed="true"] .game-pause__bars{display:none}
:is(.game-btn,.game-iconbtn,.game-step__b,.game-busy,.game-route__sel,.game-card,.game-cand,.game-link):focus-visible{outline:2px solid var(--g-acc);outline-offset:2px}
/* ステージ一覧 (§5aa A / C〜G)。面の地 --k-ground に紙のカード --k-paper (ダークも同じ token)・1 px の線 + 影 2 層・角 12。
   字は 12 / 14 / 16 / 20 / 28 だけ・数字は tnum・色は本文の黒と青緑 1 色 */
.game{--g-ground:var(--k-ground);--g-card:var(--k-paper);--g-line:var(--k-rule);--g-chip:var(--k-ground);--g-glass:var(--k-paper);--g-sh1:0 1px 2px rgba(0,0,0,.06);--g-sh:0 1px 2px rgba(0,0,0,.06);--g-sh-up:0 8px 24px rgba(0,0,0,.18)}

:root:has(#game){--g-page:#f4f2ec} /* = --k-ground (body は .game の外なので値を写す) */
[data-theme="dark"]:root:has(#game){--g-page:#161a19}
body:has(#game){background:var(--g-page)} /* 面の地 = --k-ground の値 */
.game:has(>:is(.game-list,.game-start):not([hidden])){max-width:none}
/* 昼 / 夜の絵は 2 枚を置いて片方だけ見せる (隠れた方は lazy なので読まない) */
.game-art--night{display:none}
[data-theme="dark"] .game-art--day{display:none}
[data-theme="dark"] .game-art--night{display:block}
/* A ヒーロー: 390 = 上に地図 180・下に全幅のパネル / 768 以上 = 高さ 440 の地図の左下にすりガラスのパネル (幅 420) */
.game-hero:not([hidden]){display:block;position:relative;margin:12px 0 24px;border:1px solid var(--g-line);border-radius:12px;overflow:hidden;background:var(--g-card);box-shadow:var(--g-sh)}
.game-hero__view{position:relative;height:180px;overflow:hidden;background:var(--g-ground)}
.game-hero__art,.game-hero__map{position:absolute;inset:0;width:100%;height:100%}
img.game-hero__art{left:-48px;width:calc(100% + 96px);max-width:none;object-fit:cover;animation:game-drift 160s ease-in-out infinite alternate} /* live の SVG と同じ幅と流し方 (切り替えで跳ねない) */
.game-hero__map{opacity:0;pointer-events:none}
.game-hero__map.is-on{opacity:1}
.game-hero__view.is-live .game-hero__art{display:none} /* live の絵が描けたら PNG を隠す (同じ構図の PNG なので切り替えで跳ねない・重ねない) */
/* 遠景 = 左右に 48 px ずつ広い SVG を 160 秒かけて左右に流す (0.6 px/s・動きを減らす設定では止める) */
.game-hero__map{overflow:hidden}
.game-hero__map svg{position:absolute;top:0;left:-48px;display:block;max-width:none;animation:game-drift 160s ease-in-out infinite alternate}
@keyframes game-drift{from{transform:translateX(-48px)}to{transform:translateX(48px)}}
@media (prefers-reduced-motion:reduce){.game-hero__map svg,img.game-hero__art{animation:none}}
.game-hero__bus{position:absolute;z-index:2;left:8px;right:auto;bottom:8px;width:160px;pointer-events:none} /* 横から見たバスの 1 枚絵 (§5ac-4・390 は 160 × 73・768 以上は 240 × 110) */ /* 横は案内の板のすぐ右 (768 以上 = 板の右端 436 + 隙間 24・下端は板と同じ 16 = 板は器の外の hero の余白 8 から 24 なので器の下端から 16・390 = 左 8 下 8・§4n-3)。寸法を変えたら game-draw.js の HERO_COVER も (タグがこの下に入らないように) */
.game-hero__bus svg,.game-report__bus svg{width:100%;height:auto}
.game-report__bus{flex:none;width:160px;margin:0 0 -8px auto}
@media (min-width:768px){.game-hero__bus{left:460px;right:auto;bottom:16px;width:240px}.game-report__bus{width:240px;margin:-8px 0 -8px auto}}
.game-hero__diff{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:4px;background:var(--g-glass);box-shadow:var(--g-sh1)}
.game-hero__diff:empty{display:none}
.game-hero__panel{display:flex;flex-direction:column;gap:4px;padding:16px}
.content .game-hero__panel p{margin:0}
.game-hero__kicker{display:flex;align-items:baseline;gap:8px;font-size:var(--fs-sm)}
.game-hero__kicker b{font-size:.75rem}
.content .game-hero__name{display:flex;align-items:center;margin:2px 0 4px;padding:0;border:0;font-size:var(--fs-lg);line-height:1.3;font-weight:700}
.game-hero__line{font-size:var(--fs-sm)}
.game-hero__go{margin-top:12px;text-decoration:none} /* 形 (高さ 44・枠 1.5・角丸 10) は kit の .k-btn・字は下の §4am 1 */
@media (min-width:768px){
  .game-hero__view{height:438px} /* 枠の線 1 px × 2 と合わせて 440 */
  .game-hero__panel{position:absolute;left:24px;bottom:24px;width:420px;box-sizing:border-box;padding:24px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--g-sh)}
  .game-hero__go{align-self:flex-start}
}
/* C カード: 390 = 1 列の横長 (左に絵 132 × 132・「はじめての人はここから」は絵に収まらないので名前の上の行) / 640 以上 = 2 列 / 1024 以上 = 4 列 × 2 段の縦長 (絵 282 × 176)。カード全体が 1 つのリンク */
.content .game-stages{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;list-style:none}
.content .game-stages li{margin:0;min-width:0}
.game-stage-row{position:relative;display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"art first" "art body";align-items:start;gap:0 12px;height:100%;box-sizing:border-box;padding:12px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh);color:var(--g-ink);text-decoration:none;overflow:hidden;transition:transform .15s ease-out,box-shadow .15s ease-out}
.game-card__art{grid-area:art;position:relative;width:132px;height:132px;border-radius:8px;overflow:hidden;background:var(--g-ground)}
.game-card__art img{width:100%;height:100%;object-fit:cover}
.game-card__art img.game-art--day{display:block}
[data-theme="dark"] .game-card__art img.game-art--day{display:none}
.game-stage-first{grid-area:first;justify-self:start;margin:0 0 8px;padding:4px 8px;border-radius:4px;background:var(--k-green);color:var(--k-ink);font-size:.75rem;font-weight:600;line-height:1.3}
.game-stage-body{grid-area:body;display:flex;flex-direction:column;gap:8px;min-width:0;font-size:var(--fs-sm)}
.game-stage-title{display:flex;align-items:flex-start;gap:8px;font-size:var(--fs-md);font-weight:700;line-height:1.3}
.game-stage-no{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:24px;height:24px;box-sizing:border-box;padding:0 8px;border-radius:4px;background:var(--g-chip);font-size:var(--fs-sm);font-weight:600;line-height:1.2}
.game-stage-title .game-stage-no{margin-top:2px}
.game-hero__name .game-stage-no{margin-right:8px}
.game-stage-meta,.game-stage-goal,.game-stage-best{color:var(--g-ink)}
.game-stage-meta{display:flex;align-items:center;gap:8px}.game-stage-meta .bus-icon{flex:none} /* 一覧のバスの印 (横から見た 24 px・§5ac-4) */
.game-stage-rec{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;color:var(--g-ink)}
.game-stars-mini{display:inline-flex;gap:2px}
.game-stars-mini .game-star{display:block}
.game-star path{fill:none;stroke:var(--g-acc);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.game-star.is-on path{fill:var(--g-acc)}
/* D 難しさ = 角の丸い棒 5 本 (塗り = 青緑・空 = 1 px の線) + 「難しさ」12 */
.game-diff-wrap{display:inline-flex;align-items:center;gap:8px}
.game-diff__k{font-size:.75rem;font-weight:600}
.game-diff{display:block;flex:none}
.game-diff rect{fill:none;stroke:var(--g-acc);stroke-width:1}
.game-diff rect.is-on{fill:var(--g-acc)}
@media (min-width:640px){.content .game-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){
  .content .game-stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  .game-stage-row{display:flex;flex-direction:column;gap:0;padding:0}
  .game-stage-first{position:absolute;top:8px;left:8px;margin:0}
  .game-card__art{width:100%;height:auto;aspect-ratio:282/176;border-radius:0}
  .game-stage-body{gap:8px;padding:16px}
}
@media (min-width:1024px) and (hover:hover){
  .game-stage-row:hover{transform:translateY(-2px);box-shadow:var(--g-sh-up)}
}
.game-stage-row:focus-visible{outline:2px solid var(--g-acc);outline-offset:2px}
.game-stage-row{transition:transform .16s ease-out,box-shadow .16s ease-out}
@media (hover:hover){.game-stage-row:hover{transform:translateY(-2px);box-shadow:var(--g-sh-up)}}
.game-stage-row:active{transform:translateY(1px);box-shadow:var(--g-sh1)} /* 押した時は 1 px 沈む (§5ac-6) */
/* F 遊び方 (H1 の下にあった説明を一覧の下へ・3 行) */
.game-howto{margin:32px 0 0;padding:16px 24px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh)}
.content .game-howto h2{margin:0 0 8px;padding:0;border:0;font-size:var(--fs-lg)}
.content .game-howto p{margin:4px 0 0;font-size:var(--fs-sm)}
/* 広告の枠の間の内容 (§5ab): データの出所・ステージの街・このステージ・このステージの系統。白いカードで、枠と上の操作の間を 150 px 以上に保つ */
.game-source,.game-towns,.game-about,.game-played{margin:24px 0 0;padding:16px 24px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh)}
.game-ad-gap{min-height:150px;box-sizing:border-box}
.content .game-source h2,.content .game-towns h2,.content .game-about h2,.content .game-played h2{margin:0 0 8px;padding:0;border:0;font-size:var(--fs-lg)}
.content :is(.game-source,.game-about,.game-played) p{margin:4px 0 0;font-size:var(--fs-sm)}
.content .game-towns ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.content .game-towns li{display:flex;flex-direction:column;gap:4px;margin:0;font-size:var(--fs-sm)}
.game-towns li b{font-size:var(--fs-md)}
.content .game-played__list{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0 0;padding:0;list-style:none}
.content .game-played__list li{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:var(--fs-md);font-weight:600}
.game-played__list li::before{content:"";flex:none;width:4px;height:18px;background:var(--rc,var(--g-ink))}
.game-played__list a{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap-min);min-height:var(--tap-min);color:var(--g-acc)}
@media (min-width:1024px){.content .game-towns ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px}}
/* 広告の枠 (§5ab): 「広告」の字 + 箱の高さの予約 (390 で 250・1024 以上で 280 = 跳ね 0)。ADS_PREVIEW=1 の build は 1 px の破線の箱 */
.game-ad{margin:32px 0 0}
.content .game-ad__label{margin:0 0 4px;font-size:.75rem;font-weight:600}
.game-ad__box{min-height:250px}
.game-ad ins.adsbygoogle{display:block;min-height:250px}
.game-ad--preview .game-ad__box{border:1px dashed var(--g-edge);border-radius:12px}
@media (min-width:1024px){.game-ad__box,.game-ad ins.adsbygoogle{min-height:280px}}
.game-play-after:not([hidden]){display:block;margin:24px 0 0}
.game-play-after .game-howto{margin:0}
.game-result__go{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:16px 0 0}
.game-btn--link{display:inline-flex;align-items:center;text-decoration:none}
a.game-link{display:inline-flex;align-items:center}
/* 開始の面: 左に小さな地図 (120 × 180)・右にステージ名 20 W6 と 3 行・下にボタン (はじめる + 下に「手引きをもう一度」) */
.game-start__go{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px} /* 10: 上の行の下 8 と合わせて 16 */
.game-start__go .game-hero__go{margin-top:0}
.game-btn--line:not(.k-btn){border-color:var(--g-acc);background:transparent;color:var(--g-acc);font-size:var(--fs-sm)} /* 線のボタン = 青緑の 1 px の縁と字・地は透明 */
.game-start__back{align-self:flex-start;margin-top:4px}
.game-start .game-btn--line,.game-start__go .game-hero__go{flex:1 1 auto}
@media (min-width:768px){.game-start .game-btn--line,.game-start__go .game-hero__go{flex:0 0 auto}}
.game-link{min-height:var(--tap-min);padding:0 4px;border:0;background:transparent;color:var(--g-acc);font:inherit;font-size:var(--fs-sm);text-decoration:underline;cursor:pointer}
/* 台数の部品 [ − | n 台 | + ] = 1 つの枠・押す所は各 44 × 44・記号は 16 px の 2 px の線 */
.game-route .game-step{grid-area:step}
.game-step{flex:none;display:inline-flex;align-items:stretch;height:calc(var(--tap-min) + 2px)}
.game-step__b:not(.k-btn){display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:100%;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--g-ink);cursor:pointer}
.game-step__b:disabled{cursor:default}
.game-step__n{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:0 4px;border-left:1px solid var(--g-edge);border-right:1px solid var(--g-edge);font-size:var(--fs-sm);white-space:nowrap}
.game-step__n b{margin-right:2px;font-size:var(--fs-md)}
/* ステージ名 + 目標の 1 行 (§5x 診断 9) */
.game-playhead{display:grid;grid-template-columns:1fr auto;grid-template-areas:"name btns" "goal btns";align-items:center;column-gap:12px;margin:0 0 8px}
.game-playhead__name{grid-area:name}
.game-playhead__goal{grid-area:goal}
.game-playhead__btns{grid-area:btns;display:inline-flex;gap:8px}
.content .game-playhead__name{margin:0;padding:0;border:0;font-size:var(--fs-md);font-weight:700;line-height:1.3}
.content .game-playhead__goal{margin:2px 0 0;font-size:var(--fs-sm)}
/* 上段 (§5x 診断 3): 項目名 12 W6 (字間 0.06 em) の下に数 20 W6・手持ちはバスの形・右に音と一時停止・下に 1 日の線 */
.game-hud{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 0;padding:12px 16px 8px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh1)} /* 時刻・運んだ・手持ち = 1 枚のカードの 3 つの区切り (§5aa I) */
.game-hud__item+.game-hud__item{margin-left:16px;padding-left:16px;border-left:1px solid var(--g-line)}
.game-hud__item{display:inline-flex;flex-direction:column;gap:2px;color:var(--g-ink)}
.game-hud__k{font-size:.75rem;font-weight:600;line-height:1.2}
.game-hud__time{display:inline-flex;align-items:center;gap:4px}
.game-hud__icon{display:inline-flex}
.game-hud__v{font-size:var(--fs-lg);font-weight:600;line-height:1.2;color:var(--g-ink)}
.game-garage{display:inline-flex;align-items:center;gap:4px;min-height:24px;color:var(--g-ink)}
.game-bus{flex:none;display:block}
/* 手持ちが増えた時、車庫のバスの形が左から滑り込む (0.6 秒・台帳 §4f-1) */
.game-garage svg.is-arrive{animation:game-garage .6s ease-out}
@keyframes game-garage{from{transform:translateX(-16px);opacity:0}to{transform:none;opacity:1}}
/* 1 日の線 = 3 px の線・ラッシュは琥珀の区間・次の一手の時刻に細い印・今の位置に 2 px の印 */
.game-day{flex-basis:100%;display:block;padding:8px 0 2px}
.game-day__track{position:relative;display:block;height:3px;background:var(--g-track)}
.game-day__fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--g-acc)}
.game-day__rush{position:absolute;top:0;bottom:0;background:var(--g-amber)}
.game-day__mark{position:absolute;top:-3px;width:1px;height:9px;background:var(--g-ink);opacity:.5}
.game-day__now{position:absolute;top:-5px;width:2px;height:13px;margin-left:-1px;background:var(--g-ink)}
.game-day__hours{position:relative;display:none;height:16px;margin-top:4px}
.game-day__hours span{position:absolute;transform:translateX(-50%);font-size:.75rem;font-weight:600;line-height:1.2}
.game-day__hours span:first-child{transform:none}
.game-day__hours span:last-child{transform:translateX(-100%)}
/* 遊んでいる間ずっと見える 1 行 (いちばん混んでいる停 + 祭りの予告) */
.game-goal{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin:8px 0 4px;color:var(--g-ink);font-size:var(--fs-sm)}
.game-load-error{color:var(--g-red-t);font-weight:600}
.game-goal__event{flex-basis:100%;color:var(--g-ink);font-weight:600}
.game-tip{position:absolute;left:12px;right:12px;bottom:16px;z-index:2;margin:0;padding:8px 12px;border:1px solid var(--g-edge);border-left:4px solid var(--g-acc);border-radius:4px;background:var(--g-face);font-size:var(--fs-sm)} /* 初めの案内 = 盤の下の縁に重ねる (§5ad R1 / R2・列と盤の上の高さを使わない) */
.game-choice{z-index:2}
.game-guide,.game-pop,.game-candbar{z-index:3} /* 盤の上の重なりの順 = 吹き出し (手引き・「+ 1 台」・候補の帯) 3 > 札・初めの案内・選択の場面 2 > 地図の出典 1 (1024 以上は出典が盤の右下に重なる・§5ad B2) */
/* 盤 (地図 + 上の canvas・§5x-4)。地図が読めるまでと読めない時は地図の地の色 */
.game{--game-map:#f6f5f1}
/* 行きたい場所の 6 色 + 未定 (盤の待つ人の点・停の中央の点・凡例・内訳の棒)。系統の 7 色と別の、彩度を抑えた色相の離れた組 */
.game{--game-kind-home:#b8705a;--game-kind-shop:#b88a3a;--game-kind-school:#8c8a3a;--game-kind-park:#5a855c;--game-kind-station:#4b72a0;--game-kind-hospital:#a85a7c;--game-kind-none:#8a9090}
[data-theme="dark"] .game{--game-kind-home:#d08a72;--game-kind-shop:#d2a35a;--game-kind-school:#a9a75a;--game-kind-park:#82aa82;--game-kind-station:#7d9fc8;--game-kind-hospital:#c47a98;--game-kind-none:#6b7177}
[data-theme="dark"] .game,.game-board[data-night="1"]{--game-map:#1b1d22}
.game-board{position:relative;width:min(100%,calc((100vh - 170px) * 2 / 3));margin:0 auto;aspect-ratio:2/3;overflow:hidden;background:var(--game-map);border:1px solid var(--g-edge);border-radius:4px}
.game-tiles{position:absolute;inset:0}
.game-tiles svg{display:block}
:is(.game-tiles,.game-hero__map) .gm-tag{transition:opacity .16s ease-out}:is(.game-tiles,.game-hero__map) .gm-tag.is-faint{opacity:.35} /* 駒が近い間のタグ (E4 の直し 1) */
.game-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:manipulation}
/* 次の一手のカード: 2 列・1 px の縁 + 角 4・絵 + 題 16 W6 + 説明 14 */
.game-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.game-card__pict{display:block;color:var(--g-acc)}
.game-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:96px;padding:12px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-face);color:var(--g-ink);font:inherit;font-size:var(--fs-sm);text-align:left;cursor:pointer}
.game-card:hover{border-color:var(--g-acc);box-shadow:inset 4px 0 0 var(--g-acc)}
.game-card b{font-size:var(--fs-md);font-weight:600}
.game-card span{color:var(--g-ink);font-size:var(--fs-sm)}
/* 系統の一覧 (§5x 診断 2)。390 = 盤の下に縦に積む・行の間は 1 px の線 */
.game-routes{display:flex;flex-direction:column;gap:8px;margin:8px 0 0;padding:1px 1px 2px} /* 系統の行 = 白いカード (§5aa I・影は 1 層目だけ) */
.game-route{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"sel step" "nums step";align-items:center;column-gap:8px;min-height:56px;padding:8px 4px 8px 16px;border:1px solid var(--g-line);border-radius:12px;box-shadow:inset 4px 0 0 var(--rc,var(--g-ink)),var(--g-sh1);background:var(--g-card)}
.game-route.is-sel{background:var(--g-press);border-color:var(--g-acc);box-shadow:inset 4px 0 0 var(--rc,var(--g-ink)),inset 0 0 0 1px var(--g-acc),var(--g-sh1)}
.game-route__sel{grid-area:sel;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:var(--tap-min);padding:2px 4px;border:0;border-radius:4px;background:transparent;color:var(--g-ink);font:inherit;text-align:left;cursor:pointer}
.game-route__top{display:flex;align-items:center;gap:8px}
.game-route__name{font-size:var(--fs-md);font-weight:600;white-space:nowrap}
.game-route__buses{display:inline-flex;gap:4px}
.game-bus__win{fill:var(--k-paper)} /* バスの窓 = 系統の色の車体の上の白 (昼 / 夜とも・小さな印なので面の明るさに効かない) */
.game-route__nums{grid-area:nums;display:flex;gap:12px;padding:0 4px;font-size:var(--fs-sm);white-space:nowrap}
.game-route__nums b{font-weight:600}
.game-route__tag{flex:none;padding:0 4px;border:1px solid var(--g-edge);border-radius:4px;font-size:.75rem;font-weight:600;line-height:1.2}
.game-route__name>.game-route__tag{padding:0;border:0;color:inherit} /* 名前のプレートの中の印 (急行 / 大型 / 区間) = 縁なし・字はプレートと同じ色・名前と印の間はプレートの gap 8 (区間の切替で出入りしてもプレートの高さは名前の行で決まる) */
.game-route__key{display:none}
.game-route__mark{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-md);font-weight:600;white-space:nowrap;color:var(--g-ink)}
.game-route__mark::before{content:"";flex:none;width:4px;height:18px;background:var(--rc,var(--g-ink))}
.game-pop__row.game-route{display:flex;min-height:0;padding:0;border:0;box-shadow:none}
/* 板の部品 (§5x の面): 停留所のカード・次の一手・候補の場面の上の帯・「+ 1 台」は同じ形 = 白の面 + 1 px の縁 + 角 4・題 16 W6 */
.game-panel,.game-stopcard,.game-choice,.game-candbar,.game-pop,.game-guide,.game-rush{background:var(--g-face);color:var(--g-ink);border:1px solid var(--g-edge);border-radius:4px}
/* 停留所のカード: 390 = 盤の下端から出る板 (高さは中身・最大で盤の 60 %)・1024 以上 = 右の列の一覧の上 */
.game-stopcard{position:absolute;left:0;right:0;bottom:0;z-index:2;max-height:60%;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:8px 12px 12px;border-width:1px 0 0;border-radius:4px 4px 0 0}
.game-stopcard[hidden]{display:none}
.game-stopcard__head{display:flex;align-items:center;gap:8px;padding:0 0 4px}
.game-stopcard__pict svg{display:block;width:20px;height:20px}
.game-stopcard__name{flex:1;font-size:var(--fs-md);font-weight:600}
.game-stopcard__wait{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:600}
.game-stopcard .game-routes,.game-stopcard .game-route:first-of-type{border-top:1px solid var(--g-rule)}
.game-route__open{flex:none}
/* 帯を押した所の「+ 1 台」= 系統の印 + 台数の部品 / 重なる帯は系統の印を並べて選ぶ */
.game-pop{position:absolute;display:flex;align-items:center;gap:12px;padding:4px 4px 4px 12px}
.game-pop__q{font-size:var(--fs-sm);font-weight:600}
.game-pop__mark{display:inline-flex;align-items:center;min-height:var(--tap-min);padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--g-ink);cursor:pointer;font:inherit}
.game-pop__mark:active{background:var(--g-press)}
/* 候補の場面の上の帯 (盤の上端) と、1024 以上の右の列の候補の行 (盤の候補 = 青緑の 8 px の破線と同じ印) */
.game-candbar{position:absolute;left:12px;right:12px;top:12px;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 12px;border-left:4px solid var(--g-acc);font-size:var(--fs-sm);font-weight:600}
.game-candbar p{flex:1;margin:0}
.game-cand{flex:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border:0;border-bottom:1px solid var(--g-rule);border-radius:0;background:transparent;color:var(--g-ink);font:inherit;font-size:var(--fs-sm);text-align:left;cursor:pointer}
.game-cand::after{content:"";flex:none;margin-left:auto;width:28px;height:0;border-top:3px dashed var(--g-acc)}
.game-legend,.game-upnext{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:8px 0 0;color:var(--g-ink);font-size:var(--fs-sm)}
.game-upnext{flex-wrap:nowrap;align-items:baseline} /* 次の出来事 = 箱にしない行 (§5ad R1)・中身は省かず 2 行まで折り返す (R6・見出しは左に 1 行) */
.game-upnext #game-upnext-text{min-width:0}
.game-legend span{display:inline-flex;align-items:center;gap:4px}
.game-upnext__k{font-size:.75rem;font-weight:600}
/* 1 日の運行報告 (§5x の面): 白の面 + 1 px の縁の 1 枚・題 20 W6・数 20 (tnum)・星は 2 px の青緑の線 (得た星は塗る) */
.game-report{margin:0 0 16px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-face)}
.game-report__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:12px 16px;border-bottom:1px solid var(--g-rule)}
@media (max-width:767px){.game-report__head{display:grid;grid-template-columns:1fr auto;align-items:center}.game-report__kicker{grid-column:1;grid-row:1}.game-report__head .game-stars{grid-column:1;grid-row:2}.game-report__bus{grid-column:2;grid-row:1 / 3;width:132px;margin:0}} /* 390 は見出しと星の右にバスの絵 (絵だけの行で左に空白を作らない) */
.content .game-report__kicker{margin:0;font-size:.75rem;font-weight:600;color:var(--g-ink)}
.game-report__body{padding:16px}
.content .game-report__body h2{margin:0 0 4px;padding:0;border:0;font-size:var(--fs-lg);font-weight:700}
.content .game-report__k{margin:24px 0 8px;padding:0;border:0;font-size:.75rem;font-weight:600}
.content .game-report__n{margin:0;font-size:var(--fs-sm);font-weight:600}
.game-report__n #game-report-n{font-size:var(--fs-lg);font-weight:600}
.game-report__star{display:inline-flex}
.game-report__star.is-on svg{animation:game-star-in .18s ease-out both;animation-delay:inherit}
@keyframes game-star-in{from{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:none;opacity:1}} /* 星が 180 ms ずつずれて pop (§5ac-6) */
@keyframes game-grow{from{transform:scaleX(0)}to{transform:none}}
@keyframes game-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
.game-kinds__bar,.game-line__fill{transform-origin:left center;animation:game-grow .4s ease-out .2s both} /* 棒は 400 ms で伸びる */
.game-chart__plot{animation:game-reveal .4s ease-out .2s both}
/* 行きたい場所ごとの内訳 = 1 px の縁の横棒 (中を行きたい場所の色で塗る) */
.game-kinds__wrap{overflow-x:auto}
.game-kinds__table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.content .game-kinds__table th,.content .game-kinds__table td{padding:8px 12px 8px 0;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid var(--g-rule);background:none}
.game-kinds__table th{font-weight:600;white-space:nowrap}
.game-kinds__name{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.game-kinds__name svg{flex:none}
.game-kinds__table td{white-space:nowrap}
.game-kinds__barcell{width:100%}
.content .game-kinds__table td.game-kinds__barcell{padding-right:0}
.game-kinds__track{display:block;height:10px;border:1px solid var(--g-edge);border-radius:0;background:var(--g-face)}
.game-kinds__bar{display:block;height:100%;min-width:2px}
/* 星 2 / 星 3 の線 (1 日の線と同じ 3 px・今回 = 青緑・自己ベスト = 輪) */
.game-line{padding:24px 0 24px}
.game-line__track{position:relative;height:3px;background:var(--g-track)}
.game-line__fill{position:absolute;left:0;top:0;bottom:0;background:var(--g-acc)}
.game-line__tick{position:absolute;top:-5px;bottom:-5px;width:2px;margin-left:-1px;background:var(--g-ink)}
.game-line__tick span{position:absolute;bottom:100%;right:0;padding-bottom:2px;font-size:.75rem;font-weight:600;white-space:nowrap}
.game-line__tick--2 span{top:100%;bottom:auto;padding:2px 0 0}
.game-line__best{position:absolute;top:50%;width:12px;height:12px;margin:-8px 0 0 -8px;border:2px solid var(--g-ink);border-radius:50%;background:var(--g-face)}
/* 共有 = 同じボタンの体系 (白の面 + 1 px の縁 + 角 4・44 × 44) */
.game-share{margin:24px 0 0}
.game-share .share-label{color:var(--g-ink);font-size:.75rem;font-weight:600}
.game-share .share-btn{width:var(--tap-min);height:var(--tap-min);border:1px solid var(--g-edge);border-radius:4px;background:var(--g-face);color:var(--g-ink)}
.game-share__msg{font-size:var(--fs-sm)}
.game-stars{display:flex;gap:4px;margin:0}
.game-next{margin:0;color:var(--g-ink);font-size:var(--fs-sm)}
.game-try{margin:4px 0 0;font-size:var(--fs-sm)}
.game-srv-note{margin:4px 0 0;color:var(--g-ink);font-size:var(--fs-sm)} /* 今日の 1 日の送信が届かない回の 1 行 (本文の色) */
.game-streak{margin:4px 0 0;color:var(--g-ink);font-size:var(--fs-sm)} /* 今日の 1 日の連続日数 (PR-V15 §4am 3・本文の大きさ・太字は数字だけ) */
.game-stats{display:grid;grid-template-columns:auto 1fr;gap:0 16px;margin:12px 0 0}
.game-stats dt,.game-stats dd{padding:8px 0;border-bottom:1px solid var(--g-rule)}
.game-stats dt{color:var(--g-ink);font-size:var(--fs-sm)}
.game-stats dd{margin:0;font-size:var(--fs-md);font-weight:600}
.game-chart svg{display:block;width:100%;height:auto}
.content .game-taken{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px;padding:0;list-style:none}
.content .game-taken li{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:72px;margin:0;padding:8px;border:1px solid var(--g-edge);border-radius:4px;font-size:.75rem;text-align:center}
.game-taken__stop{max-width:9em;overflow-wrap:anywhere} /* 待合所を建てた停の名前 (§5ad B1) */
.game-taken__h{font-weight:600}
.game-taken li b{font-size:.75rem}
.content .game-taken li.game-taken__none{border:0;padding:0;font-size:var(--fs-sm)}
/* ラッシュの合図 (D3-1): 盤の上端の板 (左に 4 px の琥珀) */
.game-rush{position:absolute;right:12px;top:12px;display:flex;align-items:center;gap:8px;margin:0;width:max-content;max-width:calc(100% - 24px);padding:8px 16px 8px 12px;border-left:4px solid var(--g-amber);border-radius:8px;box-shadow:var(--g-sh1);font-size:var(--fs-sm);font-weight:600;pointer-events:none} /* 出来事の知らせ = 盤の右上 (§5ac-6) */
.game-rush.is-ok,.game-rush.is-bus{border-left-color:var(--g-acc)}
.game-rush[hidden],.game-curtain[hidden]{display:none}
.game-rush svg{flex:none}
.game-curtain{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--g-page) 55%,transparent);pointer-events:none;transition:opacity .16s ease-out} /* 一時停止の幕 */
.game-curtain__btn{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:var(--tap-min);margin:0;padding:8px 16px;border:0;border-radius:8px;background:var(--g-face);box-shadow:var(--g-sh1);color:var(--g-ink);font:inherit;line-height:1.2;cursor:pointer;pointer-events:auto} /* 幕は操作を通し、中のボタンだけ押せる = 押すと再開 (E14 §4p C) */
.game-curtain__btn b{font-size:var(--fs-md);font-weight:600}
.game-curtain__btn span{font-size:var(--fs-sm);font-weight:500}
.game-curtain.is-leaving{transform:none}
.game-arc{display:block;overflow:visible}.game-arc__body{transition:transform .3s linear}.game-arc__sun{fill:var(--g-amber)}.game-arc__moon{display:none;fill:var(--g-ink)}
.game-arc.is-night .game-arc__sun{display:none}.game-arc.is-night .game-arc__moon{display:inline}
@keyframes game-tick{40%{transform:translateY(-2px)}to{transform:none}}
.is-tick{display:inline-block;animation:game-tick .18s ease-out}
.game-choice{position:absolute;left:12px;right:12px;bottom:12px;max-height:calc(100% - 24px);overflow-y:auto;padding:16px}
.content .game-choice__title{margin:0 0 12px;padding:0;border:0;font-size:var(--fs-md);font-weight:600}
/* 手引き (§5x の面): 1 px の縁 + 左に 4 px の青緑 (尾は付けない)。置き場は game.js が盤の 4 隅から選び、指す停へ 2 px の線を引く。
   盤の外の部品を指す時は、その部品を青緑の 2 px で囲む (.is-guide) */
.game-guide{position:absolute;left:12px;top:12px;width:min(360px,calc(100% - 24px));display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px 12px 8px 12px;border-left:4px solid var(--g-acc);font-size:var(--fs-sm)}
.game-guide__text{display:flex;flex-direction:column;gap:4px}
.game-guide__goal{font-weight:600}
.game-guide p{flex:1;margin:0}
.game-guide .game-btn{flex:none;align-self:flex-end}
/* 指す停の無い欄 (is-free) = 箱は盤の 45 % まで。文の側だけを箱の中でスクロールし、「次へ」の行は常に見せる (2 巡目の直し §1・390 と 1280 × 650 で S0 の「次へ」が箱の外に切れていた) */
.game-guide.is-free{max-height:45%}
.game-guide.is-free:not(.is-stack){grid-template-rows:minmax(0,1fr) auto}
.game-guide.is-free.is-stack{grid-template-rows:auto minmax(0,1fr) auto}
.game-guide.is-free .game-guide__text{align-self:stretch;min-height:0;overflow-y:auto}
.game-guide-note{margin:0 0 12px;padding:8px 12px;border:1px solid var(--g-edge);border-left:4px solid var(--g-acc);border-radius:4px;font-size:var(--fs-sm)}
.is-guide{outline:2px solid var(--g-acc);outline-offset:2px;box-shadow:0 0 0 6px color-mix(in srgb,var(--g-acc) 22%,transparent)} /* 手引きが指す部品 = 青緑の輪 + 外の淡い輪 */
.game-guide__tail{position:absolute;width:12px;height:12px;background:var(--g-face);border:solid var(--g-edge);border-width:0 1px 1px 0;pointer-events:none} /* 吹き出しの尾 (向きと位置は game.js) */
.game-guide__tail[hidden]{display:none}
/* 幅 1024 以上 = 2 列 (左 盤・右 操作の列 320〜400 px・台帳 §5i C13)。右の列は上から ステージ名 → 上段 + 1 日の線 → (カード) → 系統 → 凡例 → 次の出来事 (§5x 診断 9)。
   盤の高さは game.js が --game-play-h (画面の高さ − 盤の上端までの高さ − 24px) で渡す。幅は 640 px で、縦横比は画面の高さで変わる。
   DOM は 390 と同じ 1 つで、並べ方だけを grid で変える (隠す部品は hidden 属性のまま・:not([hidden]) で display を付ける) */
@media (min-width:1024px){
  .content:has(.game){max-width:1200px;padding-top:16px} /* 遊ぶ面の容れ物だけ広げる (盤を 640 px 以上に・他の面は変えない)・header の下端から題の上端まで 16 (§4ad 1) */
  .game{width:fit-content;min-width:600px;max-width:1160px}
  .game h1{margin:0 0 8px}
  .game-result{max-width:600px}
  .content:has(:is(.game-list,.game-start):not([hidden])){max-width:1232px} /* 一覧と開始の面は中身 1200 (カード 282 × 4 + 隙間 24 × 3・開始の面はヒーローと同じ大きさ) */
  .game:has(>:is(.game-list,.game-start):not([hidden])){width:auto;max-width:1200px}
}
/* 遊ぶ面の 2 列は 960 から (1000 × 900 で 計器 / 盤 / 系統 を 1 画面目に・入口と開始の面の幅は 1024 のまま・10-29 レイアウトの微調整 1) */
@media (min-width:960px){
  .content:has(.game-play:not([hidden])){max-width:1200px;padding-top:16px}
  .game:has(>.game-play:not([hidden])){width:fit-content;min-width:600px;max-width:1160px}
  .game-play:not([hidden]){display:grid;grid-template-columns:auto 400px;grid-template-rows:auto auto auto auto 1fr;
    grid-template-areas:"board head" "board hud" "board status" "board routes" "board .";column-gap:24px;justify-content:start} /* E13 §4o 1: 右の列は普通に流れてページが scroll・左の列 (盤 + 凡例) は sticky */
  .game-boardcol{grid-area:board;align-self:start;position:sticky;top:16px}
  .game-playhead{grid-area:head}
  .game-hud{grid-area:hud}
  .game-day__hours{display:block}
  .game-board{width:min(640px,calc(min(100vw,1200px) - 482px));height:var(--game-board-h,600px);margin:0} /* 482 = 本文の左右 32 + 右の列 400 + 列の間 16 + 卓の padding 32 と縁 2 (1000 で横のはみ出し 0) */ /* 幅 640 px で固定・高さ = 画面の高さ − 上下 16 − 凡例の行 − 8 (game-board.js が渡す・盤と凡例が 1 画面に入る) */
  .game-routes{grid-area:routes}
  .game-route__key{display:inline-block;min-width:1em;font-size:.75rem;font-weight:600}
  .game-routes{gap:8px}
  /* 系統カードを 2 行に詰める (E4 の直し 2・1280 × 800 で 3 系統がスクロール無しで収まる)。選ぶボタンは 2 行をまたぎ、数字の行はその下段に重ねて押した時はボタンに通す */
  .game-route{grid-template-rows:auto auto;grid-template-areas:"sel step" "sel step";min-height:0;column-gap:8px;padding:4px 2px 4px 16px}
  .game-route__sel{grid-row:1/3;grid-column:1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 8px;padding:4px 4px 24px}
  .game-route__top,.game-route__name{line-height:1.2}
  .game-route__sel{padding-left:2px;padding-right:2px;column-gap:8px}.game-route__buses{gap:1px} /* 名前と 24 px のバス 6 台を 1 行に (400 の列で 232 px) */
  .game-route__nums{grid-row:2;grid-column:1;align-self:end;padding:0 8px 4px;line-height:1.2;pointer-events:none}
  /* 台数の部品は買うボタンの有無で幅を変えない (§5ad R10): [− 44 | n 台 36 | + か 買う 62] = 142 px (枠の線を入れて 146)・カードの列の間 6 px と右の余白 2 px で、左の 232 px に名前とバス 6 台の 1 行と 待ち / 運んだ / 帯 / 成績 の 1 行が収まる。
     買うは「買う」と値段の 2 行 (字は 12 px のまま)。待ちと運んだの間は 8 px・帯は成績の字の左で終わる */
  .game-route .game-step__n{min-width:36px;padding:0 2px}
  .game-route .game-route__add{width:44px;min-width:0;margin:0} /* 「−」「+」は 44 × 44 (§4aj 4)・買うは値段の 1 行の幅 (下の game-buy の規則) */
  .game-route .game-step__buy{width:auto;min-width:0;margin:0}
  .game-route__nums{gap:8px;padding:0 4px 4px}
  .game-board:has(>.game-guide:not([hidden])) .game-tip{right:calc(360px + 24px)} /* 手引きの箱 (幅 360・右下) が出ている間は出来事の知らせをその左 12 px 手前までに (重ならない・文は 2 行まで・§5ad R8) */
}
@media (prefers-reduced-motion:reduce){.game *{transition:none!important;animation:none!important}}
/* 板の出入り (§5x 診断 10): 入る = 0.16 秒で 8 px 下から・出る = .is-leaving で 0.16 秒 (game.js が hidden を後で付ける) */
@keyframes game-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.game-stopcard:not([hidden]),.game-choice:not([hidden]),.game-candbar:not([hidden]),.game-pop:not([hidden]),.game-guide:not([hidden]),.game-tip:not([hidden]){animation:game-in .16s ease-out}
.is-leaving{opacity:0;transform:translateY(8px);transition:opacity .16s ease-in,transform .16s ease-in}
@keyframes game-toast{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.game-rush:not([hidden]){animation:game-toast .24s ease-out}
.game-rush.is-leaving{transform:translateX(24px)}
@media (prefers-reduced-motion:reduce){.game-stopcard,.game-choice,.game-candbar,.game-pop,.game-guide,.game-tip,.game-rush{animation:none!important;transition:none!important}}
/* ───── E5 (台帳 §5ad §2): 予算・評判・ミッション・出来事・買う・系統の成績・称号 ───── */
.game{--g-up:var(--k-text-up);--g-red-t:var(--k-text-down)}
.game-hud__break{flex-basis:100%;height:0}
.game-hud__break+.game-hud__item{margin-left:0;padding-left:0;border-left:0}
.game-rep{display:inline-flex;align-items:center;gap:8px}
.game-rep__bar{position:relative;display:block;width:72px;height:8px;border-radius:4px;background:var(--g-track);overflow:hidden}
.game-rep__fill{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--g-acc);transition:width .3s ease-out}
.game-rep[data-tone="mid"] .game-rep__fill{background:var(--g-amber)}
.game-rep[data-tone="low"] .game-rep__fill{background:var(--g-red)}
.game-rep[data-tone="low"] .game-hud__v{color:var(--g-red-t)}
/* ミッション 2 行 (目標の 1 行の下・旗 + 文 + 進み具合) */
.game-playhead{grid-template-areas:"name btns"}
.game-playinfo{margin:8px 0 0}
.game-missions{display:flex;flex-direction:column;gap:4px;margin:4px 0 0;padding:0;list-style:none}
.game-mission{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--g-ink);line-height:1.3}
.game-mission svg{flex:none}
.game-mission__t{flex:1 1 auto;min-width:0}
.game-mission__v{flex:none;font-weight:600;white-space:nowrap}
.game-mission.is-done .game-mission__v{color:var(--g-up)}
.game-mission.is-failed .game-mission__v{color:var(--g-red-t)}
/* 1 日の線の祭りの帯と出来事の印 (予告から) */
.game-day__fest{position:absolute;top:0;bottom:0;background:var(--game-kind-park);opacity:.55}
.game-day__ev{position:absolute;top:50%;display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;transform:translate(-50%,-50%);border:1px solid var(--g-edge);border-radius:50%;background:var(--g-face)}
.game-day__ev[hidden],.game-day__fest[hidden]{display:none}
/* 次の一手 3 枚・出来事の 2 枚 (効果の数字 = 良い 青 / 悪い 赤) */
.game-cards{grid-template-columns:1fr}
.game-cards .game-card{min-height:0}
@media (max-width:767px){.game-cards .game-card{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;row-gap:2px;align-items:start}.game-cards .game-card .game-card__pict{grid-row:1 / 4}}
@media (min-width:768px){.game-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.game-fx{display:flex;flex-direction:column;gap:4px}
.game-card .game-fx__l,.game-fx__l{font-size:var(--fs-sm);font-weight:600}
.game-card .game-fx__l.is-up,.game-fx__l.is-up{color:var(--g-up)}
.game-card .game-fx__l.is-plus{color:var(--g-plus)}
.game-card .game-fx__l.is-down,.game-fx__l.is-down{color:var(--g-red-t)}
.game-card:disabled{cursor:not-allowed;border-style:dashed;box-shadow:none}
/* 予算で買うボタン (値段は黒字・足りない時も押せる = 押すと案内) */
.game-buy{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 12px;border:1px solid var(--g-edge);border-radius:8px;background:var(--g-face);color:var(--g-ink);font:inherit;font-size:.75rem;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer}
.game-buy b{font-weight:600}
.game-buy:hover{border-color:var(--g-acc)}
.game-step__buy{min-width:88px;margin-left:2px}
.game-route__buys{grid-area:buys;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 4px 2px 0}
.game-route.is-sel{grid-template-areas:"sel step" "nums step" "buys buys"}
.game-pop__buys{display:flex;gap:8px;margin-top:8px}
.game-pop__buys .game-route__buys{padding:0}
/* 乗車率の帯と成績の字 */
.game-grade{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border:1px solid var(--g-edge);border-radius:4px;font-size:.75rem;font-weight:600;line-height:1.2;color:var(--g-ink)}
.game-grade[data-g="A"],.game-grade[data-g="B"]{border-color:var(--g-up);color:var(--g-up)}
.game-grade[data-g="E"]{border-color:var(--g-red);color:var(--g-red-t)}
.game-route__nums{align-items:center}
/* 停留所カードの行き先の内訳と待合所 */
.game-stopcard__dest{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:var(--fs-sm)}
.game-dest{display:inline-flex;align-items:center;gap:4px}
.game-stopcard__shelter{display:flex;align-items:center;gap:8px;margin:0;font-size:var(--fs-sm)}
.game-cand--stop{display:flex;align-items:center;gap:8px}
/* 結果の収支・成績表・称号 */
.game-money dd.is-down{color:var(--g-red-t)}
.game-bonus{margin:4px 0 0;font-size:var(--fs-sm);font-weight:600;color:var(--g-up)}
.game-grades__wrap{overflow-x:auto} /* 系統の多い日の 390 で表が溢れたら横に送る (表の容れ物の規則) */
.game-grades__t{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.game-grades__t th,.game-grades__t td{padding:8px 4px;border-bottom:1px solid var(--g-rule);text-align:center;font-weight:700} /* 表の数字は値 700 (E12 §4n 7) */
.game-grades__t thead th{font-size:.75rem;font-weight:600}
.game-grades__t tbody th{text-align:left}
.game-grades__note{margin:4px 0 0;font-size:.75rem}
.game-missions--result{margin:0}
.game-shelf{margin:24px 0 0}
.game-shelf h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.game-shelf__stars{font-size:var(--fs-sm);font-weight:600}
.game-shelf__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 0;padding:0;list-style:none}
@media (min-width:768px){.game-shelf__list{grid-template-columns:repeat(4,minmax(0,1fr))}}
.game-title{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:8px;align-items:center;padding:8px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card)}
.game-title>:first-child{grid-row:1 / 3} /* 紋章 (li の最初の子) は題字と説明の 2 行にまたがる。紋章が包みの要素になっても配置が崩れない形 */
.game-title b{font-size:var(--fs-sm);font-weight:600}
.game-title span{font-size:.75rem}
.game-title:not(.is-on){border-style:dashed;background:transparent}
.game-newtitles{margin-top:8px}
/* 上の欄の予算と評判の絵 (§5ad-3c・16 px・字の左に 2 行ぶん) */
.game-hud__item--money,.game-hud__item--rep{display:inline-grid;grid-template-columns:auto auto;column-gap:8px;row-gap:2px;align-items:center;justify-content:start}
.game-hud__ico{grid-row:1 / 3;display:inline-flex}
.game-hud__ico:empty{display:none}
/* 1024 以上の右の列: ミッションは 1 行ずつ (14 px・進み具合は右端・§5ad R1) */
@media (min-width:960px){.game-playinfo{margin:8px 0 0}.game-mission__t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-mission__t .game-ph{display:inline}}
/* 右の列を詰める (§5ad R1): 次の出来事の見出しは 1 行・ミッションの行の外の余白 0・上段の内側の余白 */
.game-upnext__k{flex:none;white-space:nowrap}
.content .game-missions{margin:4px 0 0;padding:0}
.content .game-mission{margin:0;padding:0}
@media (min-width:960px){.game-hud{padding:8px 16px 8px;row-gap:8px}}
@media (min-width:960px){.content .game-upnext{margin:4px 0 0}.content .game-legend{margin:8px 0 0}.game-playinfo{margin:4px 0 0}.game-goal{margin:2px 0 0}.game-routes{margin-top:4px}.game-day__hours{margin-top:2px}}
@media (max-width:959px){.game-hud{margin-bottom:8px}}
/* 営業所 (台帳 §4h / §5ae)。390 で先に設計 (1 列・カードは縦)・1024 以上は 2 列 (左 = 一覧と受け取る / 右 = 店と等級) */
.game-depotrow{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;gap:8px 12px;min-height:128px;box-sizing:border-box;margin:24px 0 0;padding:12px 16px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh1)} /* 高さは受け取るボタンが出た形で予約 (跳ね 0) */
.game-depotrow__pict{display:flex;gap:2px}
.game-depotrow__pict svg{display:block}
.game-depotrow .game-depotrow__text{margin:0;font-size:var(--fs-sm);font-weight:600}
.game-depotrow__acts{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}
.game-depotrow__acts[hidden]{display:none}
.game-depotrow__acts .game-btn{display:inline-flex;align-items:center;text-decoration:none}
.game-shelf__grade{font-size:var(--fs-sm);font-weight:600}
.game-claimed{position:fixed;left:50%;bottom:24px;z-index:20;transform:translateX(-50%);display:flex;align-items:center;gap:8px;margin:0;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:8px 16px 8px 12px;border:1px solid var(--g-edge);border-left:4px solid var(--g-acc);border-radius:8px;background:var(--g-face);color:var(--g-ink);box-shadow:var(--g-sh-up);font-size:var(--fs-sm);font-weight:600;pointer-events:none}
.game-claimed[hidden]{display:none}
.game-depot__back{margin:0 0 8px}
.game-depot__back a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-size:var(--fs-sm);font-weight:600}
.game-depot__head{padding:16px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh1)}
.game-depot__head h2{margin:0 0 8px}
.game-depot__clock{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 8px}
.game-depot__time{font-size:var(--fs-sm);font-weight:600;font-variant-numeric:tabular-nums}
.game-depot__k{margin:0;font-size:.75rem;font-weight:600}
.game-depot__closed{font-size:var(--fs-sm)}
.game-depot__chart{position:relative;height:96px;margin:4px 0 8px;padding-top:0}
.game-depot__chart svg{display:block;width:100%;height:72px}
.game-depot__bar{fill:var(--g-acc);opacity:.4}
.game-depot__bar.is-now{opacity:1}
.game-depot__base{stroke:var(--g-line);stroke-width:1}
.game-depot__now{position:absolute;top:0;bottom:24px;left:calc(var(--p,0) * 100%);width:0;border-left:2px solid var(--g-ink)}
/* 今の印の札は線の右 (5 時) から線の左 (24 時) へ時刻に比例してずらし、図の端から出さない */
.game-depot__ticks{position:relative;display:block;height:24px}
.game-depot__ticks span{position:absolute;top:4px;transform:translateX(-50%);font-size:.75rem;font-variant-numeric:tabular-nums}
.game-depot__ticks span:first-child{transform:none}
.game-depot__ticks span:last-child{transform:translateX(-100%)}
.game-depotrow__pict .is-off,.game-depot__item .is-off{opacity:.35}
.game-shelf__grade{margin-left:12px}
.game-shelf__grade[hidden]{display:none}
/* 資金 / 累計 / 受け取れる はラベル + 数字 + 単位の 1 組ずつで折り返す (組の途中では折らない) */
.game-depot__sum{display:flex;flex-wrap:wrap;gap:4px 24px;margin:0;font-size:var(--fs-sm)}
.game-depot__sum>div{display:flex;align-items:baseline;gap:12px;white-space:nowrap}
.game-depot__sum dt{font-weight:600}
.game-depot__sum dd{margin:0;font-variant-numeric:tabular-nums}
.game-depot__cols{display:grid;gap:16px;margin:24px 0 0}
.game-depot__main h3,.game-depot__side h3{margin:0 0 8px}
.game-depot__sub{margin:12px 0 4px;font-size:var(--fs-sm);font-weight:600}
.game-depot__none{margin:0 0 8px;font-size:var(--fs-sm)}
.game-depot__none[hidden]{display:none}
.game-depot .game-depot__list,.game-depot .game-depot__cards,.game-depot .game-depot__ladder{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.game-depot__card{display:grid;gap:4px;padding:12px 16px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh1);font-size:var(--fs-sm)}
.game-depot__town{font-size:1rem;font-weight:600}
.game-depot__marks{display:flex;flex-wrap:wrap;gap:4px 8px}
.game-depot__nums{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:4px 0 0}
.game-depot__nums dt{font-weight:600}
.game-depot__nums dd{margin:0;font-variant-numeric:tabular-nums}
.game-depot__claim{margin:12px 0 0}
.game-depot__claim[hidden]{display:none}
.game-depot__claim .game-btn:not(.k-btn){width:100%;min-height:48px;border-radius:8px}
.game-depot__lead{margin:0 0 8px;font-size:.75rem}
.game-depot__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-depot__item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 8px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);font-size:var(--fs-sm);text-align:center}
.game-depot__item.is-on{border-color:var(--g-acc);box-shadow:0 0 0 1px var(--g-acc)}
.game-depot__item b{font-weight:600}
.game-depot__item .game-btn{width:100%;padding:0 8px}
.game-depot__item svg{display:block}
.game-depot__sample{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;min-height:96px}
.game-depot__swatch{display:flex;flex-basis:100%;justify-content:center}
.game-depot__swatch i{width:24px;height:8px;border:1px solid var(--g-line)}
.game-depot__swatch i:first-child{border-radius:4px 0 0 4px}
.game-depot__swatch i:last-child{border-radius:0 4px 4px 0}
.game-depot__item>.game-btn,.game-depot__item>.game-depot__state{margin-top:auto}
.game-depot__state{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--tap-min);box-sizing:border-box;border-radius:8px;background:var(--g-chip);font-weight:600}
/* 押せない時のボタン (資金が足りない・受け取る額が 0) は薄くせず破線の枠に (薄い灰の字を出さない・字は本文の色) */
.game-depot .game-btn:not(.k-btn):disabled,.game-depotrow .game-btn:not(.k-btn):disabled{opacity:1;border:1px dashed var(--g-edge);background:transparent;color:var(--g-ink)}
.game-depot__short{font-size:.75rem;color:var(--g-red-t)}
.game-depot .game-depot__ladder{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.game-depot__ladder li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;border:1px solid var(--g-line);border-radius:8px;font-size:.75rem;text-align:center}
.game-depot__ladder li b{font-size:var(--fs-sm)}
.game-depot__ladder li.is-on{border-color:var(--g-acc);background:var(--g-chip)}
.game-depot__grade{margin:16px 0 0}
.game-depot__grade p{margin:8px 0 0;font-size:var(--fs-sm)}
.game-depot-new{margin:0 0 8px;font-size:var(--fs-sm);font-weight:600;color:var(--g-acc)}
@media (min-width:1024px){
  .game-depot__cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
  .game-depot__cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-depot__sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px} /* 資金 / 累計 / 受け取れる を 1 行に (390 は組ごとに折り返す) */
  .game-depotrow{grid-template-columns:auto minmax(0,1fr) auto;min-height:72px}
  .game-depotrow__acts{grid-column:auto}
}
/* ───── E8 操作卓 (台帳 §4j 層 2〜5・方向 A 運行管理室) ─────
   卓 = 盤と操作の列を 1 枚にまとめた鉄紺の面 (グラデーションはこの卓の面 1 か所だけ)。卓の中は昼 / 夜とも暗い計器盤で、字は白系 1 つ + 意味の色。
   ボタンは全部キーキャップ (上面の光 + 下辺 3 px・押すと沈む)。数字は本文と同じ端末の字体の tabular-nums (E12 §4n 1) */
.game{--d-face:var(--k-display);--d-base:var(--k-display);--d-edge:var(--k-display);--d-well:var(--k-display);--d-well-edge:rgba(255,255,255,.06);--d-key:var(--k-display);--d-key-hi:transparent;--d-key-edge:var(--k-display);
  --d-ink:var(--k-display-ink);--d-acc:var(--k-led);--d-amber:var(--k-led);--d-red:var(--k-display-down);--d-up:var(--k-led);--d-sel:var(--k-led);--d-rule:rgba(255,255,255,.06)}
/* ワードマーク (大 = 一覧 / 開始 / 結果 / 営業所・小 = 遊ぶ) */
.game-mark{display:flex;align-items:center;gap:12px;margin:4px 0 16px}
.game-mark__seal{flex:none;display:block;filter:drop-shadow(0 2px 0 rgba(10,16,24,.25))}
.game-mark__words{min-width:0}
.content .game-mark h1{margin:0;padding:0;border:0;font-size:var(--fs-lg);font-weight:700;line-height:1.3;color:var(--g-ink)}
.content .game-mark__sub{margin:2px 0 0;font-size:.75rem;font-weight:600;letter-spacing:.06em;line-height:1.2;color:var(--g-ink)}
.game:has(>.game-play:not([hidden])) .game-mark{margin:0 0 8px;gap:8px}
.game:has(>.game-play:not([hidden])) .game-mark__seal{width:32px;height:32px}
.content .game:has(>.game-play:not([hidden])) .game-mark h1{font-size:var(--fs-md)}
/* 卓 (遊ぶ面)。390 = 画面の幅いっぱい (角 0)・1024 以上 = 盤 + 右の列の 2 列を 1 枚に */
/* E9 §4k 方針 4: 卓の地は紙 (鉄紺の面はやめる)。鉄紺は計器 5 つの盤面 (.game-hud = kit の計器の枠) の中だけ = 暗い色の変数はそこで入れる */
.game-play:not([hidden]){display:block;margin:0 -16px;padding:8px 16px 16px;background:var(--p-ground);color:var(--p-ink)}
.game-play .game-hud{--g-ink:var(--d-ink);--g-acc:var(--d-acc);--g-amber:var(--d-amber);--g-red:var(--d-red);--g-red-t:var(--d-red);--g-up:var(--d-up);--g-face:var(--k-display);--g-edge:rgba(255,255,255,.12);--g-press:var(--k-display);
  --g-rule:var(--d-rule);--g-track:rgba(255,255,255,.12);--g-slot:var(--k-display-ink);--g-line:var(--d-rule);--g-card:var(--k-display);--g-chip:var(--k-display);--g-sh1:0 0 0 transparent;--g-sh:0 0 0 transparent;--g-glass:var(--k-display);--g-page:var(--k-display);color:var(--d-ink)}
.game-play .game-playhead{padding:0} /* 390 はマーク / ステージ名 / 計器 / 盤の左端を 16 に・960 以上は計器の箱の縁に揃う (10-29 の 6) */
.game-play .game-board{border:0;border-radius:6px;box-shadow:0 0 0 1px var(--k-rule-strong)}
@media (min-width:960px){
  .game-play:not([hidden]){display:grid;box-sizing:border-box;margin:0;padding:12px 16px 12px 12px;border-radius:12px;column-gap:16px;box-shadow:0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
}
/* 計器の窓 (上段) = 卓の中の一段暗い窓 */
.game-play .game-hud{position:relative}
.game-play .game-hud__item+.game-hud__item{border-left-color:var(--d-rule)}
.game-hud__v{font-weight:700;font-variant-numeric:tabular-nums}
/* 桁の箱 (時刻 / 運んだ・予算 = 料金箱)。桁は game.js が .game-dg に分け、料金箱の変わった桁だけ Web Animations で回す (300 ms)・時刻は即時に替わる (E13 §4o 2) */
.game-dg{position:relative;display:inline-block;min-width:.72em;margin:0 1px;padding:0 2px;border-radius:3px;background:var(--k-display);box-shadow:inset 0 0 0 1px var(--k-display);text-align:center;line-height:1.2}
.game-dg--sep{min-width:0;margin:0;padding:0;background:none;box-shadow:none}
.game-odo__unit{margin-left:4px;font-size:var(--fs-sm);font-weight:600}
/* 評判 = 針の計器 (0〜100・帯は低い彩度の 赤 / 琥珀 / 緑・針は --rep・数字は中央の下) */
.game-play .game-rep{display:inline-grid;grid-template-columns:auto;justify-items:center;gap:0}
.game-play .game-rep__bar{display:none}
.game-gauge{display:block;overflow:visible}
.game-gauge__band{fill:none;stroke-width:6;stroke-linecap:butt}
.game-gauge__band--low{stroke:var(--k-red)}.game-gauge__band--mid{stroke:var(--k-amber)}.game-gauge__band--ok{stroke:var(--k-green)}
.game-gauge__tick{fill:none;stroke:var(--k-rule-strong);stroke-width:1.5;stroke-linecap:round}
.game-gauge__needle{transform-origin:36px 36px;transform:rotate(calc(var(--rep,70) * 1.8deg - 90deg));transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.game-gauge__needle path{fill:none;stroke:var(--k-display-ink);stroke-width:2.5;stroke-linecap:round}
.game-gauge__hub{fill:var(--k-display-ink);stroke:var(--k-display);stroke-width:1.5}
.game-play .game-rep .game-hud__v{margin-top:0;font-size:var(--fs-md);line-height:1.2}
.game-play .game-rep[data-tone="low"] .game-hud__v{color:var(--d-red)}
/* 1 日の帯 = 運行ダイヤの帯 (目盛り 5〜24・ラッシュは琥珀の帯・今の時刻の針) */
.game-play .game-day__track{height:6px;border-radius:1px;background:var(--k-display);box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}
.game-play .game-day__fill{background:var(--k-green)}
.game-play .game-day__rush{background:var(--k-amber)}
.game-play .game-day__mark{top:-4px;height:14px;background:var(--k-display-ink);opacity:.7}
.game-play .game-day__now{top:-7px;width:2px;height:20px;background:var(--k-display-ink);box-shadow:none}
.game-play .game-day__now::before{content:"";position:absolute;left:-4px;top:-5px;border:5px solid transparent;border-top:6px solid var(--k-display-ink);border-bottom:0}
/* ボタンは全部 kit の .k-btn (game-kit.css・E9 §4k 方針 3)。kit の形でない押せる面 (2 択のカード・候補) は紙のキー = 紙の地 + 下辺 3 px の厚み・押すと沈む */
.game :is(.game-card,.game-cand){border:1px solid var(--p-rule);border-radius:12px;background:var(--k-paper);color:var(--p-ink);box-shadow:0 1px 2px rgba(0,0,0,.06)}
[data-theme="dark"] .game :is(.game-card,.game-cand){background:var(--k-paper);box-shadow:0 5px 10px rgba(0,0,0,.35)}
.game :is(.game-card,.game-cand):active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 2px rgba(0,0,0,.18),0 0 0 var(--k-rule)}
.game .k-btn svg{color:currentColor}
/* 台数の部品 = − と + の 2 つのキー + 間の暗い表示窓 */
.game-play .game-step{gap:4px;border:0;background:none;box-shadow:none;height:auto;padding-bottom:4px}
.game-play .game-step__b{height:var(--tap-min)}
.game-play .game-step__n{align-self:center;height:34px;border:0;border-radius:4px;background:var(--k-display);box-shadow:inset 0 0 0 1px var(--k-display);color:var(--k-display-ink)}
.game-play .game-step__n b{font-weight:700}
/* LED (警告 = 琥珀 / 赤の小さな点 + 光) */
@media (prefers-reduced-motion:reduce){.game-gauge__needle{transition:none}} /* 桁の動きは game.js の dgSet (Web Animations) が動きを減らす設定で止める */
.game-play .game-curtain{background:rgba(17,25,33,.3)} /* 一時停止の幕 = 盤を薄く暗くするだけ (卓の色で塗りつぶさない) */
/* 系統カード = 運行表の行 (左に系統の色の帯 + 都営の方面板風の系統番号の板・バスのベイ (空は点線)・成績は角印) */
.game-play .game-route{border:1px solid var(--p-rule);border-radius:10px;background:var(--k-paper);box-shadow:inset 5px 0 0 var(--rc,var(--k-display)),0 1px 2px rgba(0,0,0,.06)}
.game-play .game-route.is-sel{background:var(--k-paper);border-color:var(--k-green);box-shadow:inset 5px 0 0 var(--rc,var(--k-display)),inset 0 0 0 1px var(--k-green),0 1px 2px rgba(0,0,0,.06)}
.game-play .game-route__name,.game-play .game-route__mark{padding:0 4px;border:2px solid var(--rc,var(--k-display-ink));border-radius:3px;background:var(--k-paper);color:var(--k-display);font-weight:600;line-height:1.2}
.game-play .game-route__mark::before{display:none}
.game-play .game-route__buses{gap:2px}
.game-play .game-route__buses [stroke="var(--g-slot)"]{stroke-dasharray:2.2 1.8}
.game-play .game-route__nums b{font-weight:700}
.game-play .game-grade{border-width:1.5px;border-radius:2px;background:transparent;transform:rotate(-4deg)}
@media (min-width:960px){.game-play .game-route__name{padding:0 4px;border-width:1.5px;line-height:1.2}.game-play .game-route__buses{gap:0}.game-play .game-route__sel{column-gap:4px}.game-play .game-route__top{gap:4px}}
/* 次の出来事の旗 (帯の上・琥珀) */
.game-day__flag{position:absolute;bottom:100%;margin-left:-2px;margin-bottom:2px;color:var(--g-amber);line-height:0;pointer-events:none}
.game-day__flag[hidden]{display:none}
.game-play .game-day__flag{color:var(--k-amber)}
/* 車庫のベイ = 床の暗い区画 + 白の区画線 (空きは点線) */
.game-bay{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:3px;background:var(--k-display);box-shadow:inset 0 0 0 1px var(--k-display)}
.game-bay.is-empty{background:transparent;box-shadow:none;border:1.5px dashed var(--k-rule-strong)}
.game-garage .game-bay svg{display:block}
.game-garage{gap:2px}
/* 系統カードの待つ人の絵と脈動 (待ち 12 人以上) */
.game-route.is-pulse{animation:game-pulse 1.4s ease-in-out infinite}
@keyframes game-pulse{0%,100%{outline:2px solid transparent;outline-offset:0}50%{outline:2px solid var(--k-red);outline-offset:2px}}
@media (prefers-reduced-motion:reduce){.game-route.is-pulse{animation:none;outline:2px solid var(--k-red)}.game-day__flag{transition:none}}
/* 配達の硬貨 1 粒 (盤 → 予算) */
.game-coin{position:fixed;left:-7px;top:-7px;z-index:40;width:14px;height:14px;border-radius:50%;background:var(--k-amber);box-shadow:inset 0 0 0 2px var(--k-amber);pointer-events:none}
.game-coin[hidden]{display:none}
/* ===== 開始と一覧のヒーロー (§4j 層 2・5) = 卓の上に 1 枚絵と運行指令のカード。卓の色の変数は遊ぶの面と同じ ===== */
/* E9: 一覧の運行指令 = 紙の地 + 場面の絵 (鉄紺の面はやめる) */
.game-hero:not([hidden]){margin:12px -16px 24px;padding:8px;border:0;border-radius:0;background:var(--p-ground);color:var(--p-ink);box-shadow:inset 0 -1px 0 var(--p-rule)}
.game-hero__view{border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
.game-hero__panel{margin-top:8px;padding:16px 12px 12px;border-radius:12px;background:var(--k-paper);color:var(--p-ink);box-shadow:inset 0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
.game-hero .game-link,.game-hero a:not(.k-btn){color:var(--k-green)}
.game-hero__diff{background:var(--k-paper);color:var(--p-ink);box-shadow:inset 0 0 0 1px var(--p-rule)}
.game-hero .game-diff rect{stroke:var(--k-amber)}.game-hero .game-diff rect.is-on{fill:var(--k-amber)}
@media (min-width:768px){
  .game-hero:not([hidden]){margin:12px 0 8px;padding:8px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--p-rule)}
  .game-hero__panel{margin-top:0;padding:24px 24px 16px;background:var(--k-paper);-webkit-backdrop-filter:none;backdrop-filter:none}
}
.game-hero__kicker{align-self:flex-start;padding:2px 8px;border-radius:4px;background:var(--k-green);color:var(--k-ink);font-weight:700}
.game-hero__kicker b{color:var(--k-ink)}
.content .game-hero p.game-hero__kicker,.content .game-hero p.game-hero__kicker b{color:var(--k-ink)}
.game-hero .game-stage-no{background:var(--k-green);color:var(--k-ink);box-shadow:none}
[data-theme="dark"] .game-hero:not([hidden]){background:var(--k-paper)}
[data-theme="dark"] .game-hero__panel{background:var(--k-paper);color:var(--k-ink);box-shadow:inset 0 0 0 1px var(--k-rule)}
[data-theme="dark"] .game-hero a:not(.k-btn),[data-theme="dark"] .game-hero .game-link{color:var(--k-ink)}
[data-theme="dark"] .game-hero__diff{background:var(--k-paper);color:var(--k-ink);box-shadow:inset 0 0 0 1px var(--k-rule)}
.content .game-hero .game-hero__name{font-size:var(--fs-lg);font-weight:700}
@media (max-width:420px){.content .game-mark__sub{white-space:nowrap}}
/* ===== 一覧の卓 (§4j 層 2・5): ステージのカード・営業所の 1 行・称号の紋章の棚 ===== */
/* 一覧の台 (E9 §4k 方針 1) = 盤と同じ淡い紙の地。ステージのカードは紙のカード (絵を大きく)・営業所の 1 行と称号の棚も紙の上 */
.game-deck{margin:0 -16px;padding:16px 16px 0;background:var(--p-ground);color:var(--p-ink)}
@media (min-width:768px){.game-deck{margin:0;padding:16px 16px 0;border-radius:12px;box-shadow:0 0 0 1px var(--p-rule)}}
.game-deck .game-stage-row{border:1px solid var(--p-rule);border-radius:14px;background:var(--k-paper);color:var(--p-ink);box-shadow:0 1px 2px rgba(0,0,0,.06);overflow:hidden}
[data-theme="dark"] .game-deck .game-stage-row{border-color:var(--k-rule);background:var(--k-paper);box-shadow:0 8px 18px rgba(0,0,0,.35)}
.game-deck .game-stage-row:active{transform:translateY(4px);box-shadow:0 0 0 var(--k-rule)}
.game-deck .game-card__art{box-shadow:inset 0 -1px 0 var(--p-rule)}
.game-deck .game-stage-no{background:var(--k-green);color:var(--k-ink);box-shadow:none}
.game-deck .game-stage-name{font-weight:700}
.game-deck .game-diff rect{stroke:var(--k-amber)}.game-deck .game-diff rect.is-on{fill:var(--k-amber)}
/* 営業所の 1 行 = 紙の上のくぼみ */
.game-deck .game-depotrow{border:0;border-radius:12px;background:var(--k-paper);color:var(--p-ink);box-shadow:inset 0 0 0 1px var(--p-rule),inset 0 1px 2px rgba(0,0,0,.06)}
[data-theme="dark"] .game-deck .game-depotrow{background:rgba(255,255,255,.06)}
/* 称号の棚: 取った称号 = 真鍮の縁の札・まだの称号 = 点線の空きの区画 */
.game-deck .game-shelf{margin-top:24px;padding:12px;border-radius:12px;background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--p-rule)}
[data-theme="dark"] .game-deck .game-shelf{background:rgba(255,255,255,.06)}
.content .game-deck .game-shelf h2{margin-top:0;color:var(--p-ink)}
.game-deck .game-shelf__list{position:relative;padding-bottom:8px;border-bottom:4px solid var(--k-rule)}
.game-deck .game-title{border:0;border-radius:10px;background:var(--k-paper);color:var(--p-ink);box-shadow:0 0 0 2px var(--k-amber)}
[data-theme="dark"] .game-deck .game-title{background:var(--k-paper);box-shadow:0 0 0 2px var(--k-amber)}
.game-deck .game-title:not(.is-on){background:transparent;box-shadow:none;border:1.5px dashed var(--k-rule-strong)}
.content .game-deck .game-shelf__list{margin-left:0;margin-right:0;padding-left:0}
/* ===== 結果の面 = 卓から出る日報の紙 (§4j 層 2・300 ms で卓から上がる) ===== */
.game-reportdeck{margin:12px -16px 16px;padding:8px 8px 2px;border-top:1px solid var(--k-display);background:var(--d-face);box-shadow:0 2px 0 var(--d-edge),0 1px 2px rgba(0,0,0,.06)}
@media (min-width:768px){.game-reportdeck{margin:12px 0 16px;padding:16px 16px 8px;border:1px solid var(--d-edge);border-top-color:var(--k-display);border-radius:12px}}
.game-reportdeck .game-report{margin:0 0 8px;border:0;border-radius:3px;background:var(--k-paper);box-shadow:0 1px 0 rgba(0,0,0,.25),0 8px 18px rgba(6,10,14,.35)}
[data-theme="dark"] .game-reportdeck .game-report{background:var(--k-paper)}

.game-reportdeck .game-report__head{border-bottom:2px solid var(--g-ink)}
.game-result:not([hidden]) .game-report{animation:game-rise .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes game-rise{from{transform:translateY(28px);opacity:0}to{transform:none;opacity:1}}
/* 星 = 真鍮の星 (塗り + 濃い縁 + 上の光の線)・角印 = 星の欄を朱の四角の判で囲む */
.game-report .game-star path{stroke:var(--k-amber)}
.game-report .game-star.is-on path{fill:var(--k-amber);stroke:var(--k-amber)}
.game-report .game-stars{padding:4px 8px;border:2px solid var(--k-red);border-radius:3px;transform:rotate(-3deg)}
[data-theme="dark"] .game-report .game-stars{border-color:var(--k-red)}
.game-report__n #game-report-n,.game-report__n #game-week-n{font-size:var(--fs-lg);font-weight:700;line-height:1.2}
.game-reportdeck .game-result__go .game-btn:not(.k-btn){border-radius:8px}
@media (prefers-reduced-motion:reduce){.game-result:not([hidden]) .game-report{animation:none}}
.game-reportdeck .game-line__tick span{background:var(--k-paper)} /* 目盛りの字は紙の上 (字の裏に紙の色を敷いて棒の色と重ねない) */
[data-theme="dark"] .game-reportdeck .game-line__tick span{background:var(--k-paper)}
/* ===== 営業所の計器 (時計・時間帯の図は E9 の計器の枠の中) ===== */
.game-depot__clock{gap:8px 12px}
.game-dial{display:block;flex:none}
.game-dial__h,.game-dial__m{transition:transform .6s cubic-bezier(.3,1.4,.5,1)}
.game-depot__time{font-size:var(--fs-md);font-weight:700}
.game-depot__chart{padding:8px 8px 0;border-radius:6px;background:var(--d-well);box-shadow:inset 0 0 0 1px var(--d-well-edge),inset 0 2px 4px rgba(0,0,0,.35);height:auto}
.game-depot__chart svg{height:72px}
/* ===== 板の部品 (§4j 層 2): 2 択と次の一手 = 卓の下から滑り込む板・知らせ・手引き・停留所カード・候補の帯 = 卓の板 ===== */
.game-play :is(.game-panel,.game-stopcard,.game-choice,.game-candbar,.game-pop,.game-guide,.game-rush,.game-tip){border:0;border-radius:12px;background:var(--k-paper);color:var(--p-ink);box-shadow:0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
.game-play .game-tip{box-shadow:inset 5px 0 0 var(--k-amber),0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
.game-board>.game-tip{margin:0} /* 記事の p の余白 (.content :where(.game) p) を盤の上の案内に付けない = 盤の下端から 16 (E14 ステップ 6) */
.game-board:has(>.game-stopcard:not([hidden])) .game-tip{bottom:calc(var(--game-card-h,0px) + 16px)} /* 停留所カードが開いている間は案内をカードの上端の 16 px 上に (重ねない・E14 §4p-2・ステップ 6) */
.game-board:has(>.game-choice:not([hidden])) .game-tip{top:12px;bottom:auto} /* 2 択が出ている間は知らせを盤の上の縁へ (カードに重ねない) */
.game-play .game-choice:not([hidden]){animation:game-slide .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes game-slide{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.content .game-play .game-choice__title{display:inline-block;padding:2px 12px;border-radius:4px;background:var(--k-green);color:var(--k-ink);font-weight:700}
.game-play .game-cards .game-card{border-radius:8px}
@media (prefers-reduced-motion:reduce){.game-play .game-choice:not([hidden]){animation:none}}
.game-board:has(>.game-tip:not([hidden])):has(>.game-choice:not([hidden])) .game-choice{max-height:calc(100% - 92px)} /* 知らせ (2 行まで) の下から始める */
.game-play .game-hud__item--money{flex:0 0 46%;box-sizing:border-box} /* 予算の桁が増えても評判の計器の位置を動かさない */
/* 1024 以上は評判の数を針の右に (2 行目の高さを詰め、系統カードを 1 枚でも多く見せる) */
@media (min-width:960px){.game-play .game-rep{display:inline-flex;align-items:flex-end;gap:8px}.game-play .game-rep .game-hud__v{line-height:1.2}.game-play .game-gauge{width:60px;height:34px}}
/* 一時停止の幕の札 = 卓の札 */
.game-play .game-curtain__btn{border-radius:10px;background:var(--k-paper);color:var(--p-ink);box-shadow:0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
/* 評判の LED (見出しの右の小さな点・注意 = 琥珀・危ない = 赤・良い時は消灯) */
.game-play .game-hud__item--rep .game-hud__k::after{content:"";display:inline-block;width:7px;height:7px;margin-left:8px;border-radius:50%;vertical-align:1px;background:var(--k-display);box-shadow:inset 0 0 0 1px var(--k-display)}
.game-play .game-hud__item--rep:has(.game-rep[data-tone="mid"]) .game-hud__k::after{background:var(--k-amber);box-shadow:none}
.game-play .game-hud__item--rep:has(.game-rep[data-tone="low"]) .game-hud__k::after{background:var(--k-red);box-shadow:none;animation:game-led 1s steps(2,jump-none) infinite}
@keyframes game-led{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.game-play .game-hud__item--rep .game-hud__k::after{animation:none}}
@media (max-width:520px){.game-depot .game-depot__ladder{grid-template-columns:repeat(3,minmax(0,1fr))}} /* 390 は 3 + 2 段 (「10,000,000 円」が 1 区画に収まる幅) */
/* ===== 卓の外の面 = 日報と同じ生成りの紙 (21:30 親の所見 1): 鉄紺の細い縁 + 紙の地 + 見出しの下に 2 px の線。広告の箱はそのまま ===== */
.game :is(.game-howto,.game-source,.game-towns,.game-about,.game-played){border:1px solid var(--k-rule);border-radius:3px;background:var(--k-paper);box-shadow:0 1px 0 rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.06)}
[data-theme="dark"] .game :is(.game-howto,.game-source,.game-towns,.game-about,.game-played){border-color:var(--k-rule);background:var(--k-paper);box-shadow:0 1px 0 rgba(0,0,0,.4),0 6px 14px rgba(0,0,0,.3)}
.content .game :is(.game-howto,.game-source,.game-towns,.game-about,.game-played) h2{padding-bottom:8px;border-bottom:2px solid var(--g-ink);font-weight:700}
/* ===== 卓の中の「次の出来事」「星の目標」「ミッション」= 計器の群れの 1 枚 (21:30 親の所見 3): 1 px の暗い縁 + わずかに明るい地 ===== */
.game-play :is(.game-upnext,.game-playinfo){box-sizing:border-box;padding:8px 12px;border-radius:8px;background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--p-rule),inset 0 1px 2px rgba(0,0,0,.06)}
.game-play .game-playinfo{margin-top:8px}
@media (min-width:960px){
  .content .game-play .game-upnext{margin:8px 0 0;padding:8px 12px 2px;border-radius:8px 8px 0 0;box-shadow:inset 1px 1px 0 var(--p-rule),inset -1px 0 0 var(--p-rule)}
  .game-play .game-playinfo{margin:0;padding:2px 12px 8px;border-radius:0 0 8px 8px;box-shadow:inset 1px -1px 0 var(--p-rule),inset -1px 0 0 var(--p-rule)}
}
.content .game-deck h2{padding-top:0;border-top:0} /* 台の中の見出しはサイトの上の線を引かない */
.game-deck .game-star path,.game-hero .game-star path{stroke:var(--k-amber)}.game-deck .game-star.is-on path,.game-hero .game-star.is-on path{fill:var(--k-amber);stroke:var(--k-amber)} /* 卓の上の星も真鍮 (日報と同じ素材) */

/* ===== E9 §4k 営業所 = 場面の絵の面 (淡い紙の地・鉄紺は計器の枠の中だけ・部品は game-kit.css の .k-*) ===== */
.game{--p-ground:var(--k-ground);--p-ink:var(--k-ink);--p-rule:var(--k-rule)}

.game-depot{margin:0 -16px;padding:0 16px 24px;background:var(--p-ground);color:var(--p-ink)}
@media (min-width:768px){.game-depot{margin:0;border-radius:12px;overflow:hidden}}
.game-depot .game-depot__back{margin:0;padding:4px 0}
.game-depot .game-depot__head{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.game-depot__stage{position:relative;margin:0 -16px}
.game-depot__scene{position:relative;height:220px;overflow:hidden;background:var(--p-rule)}
.game-depot__scene>svg{display:block;width:100%;height:100%}
.game-depot .game-depot__title{position:absolute;top:12px;left:16px;margin:0;font-size:var(--fs-lg)}
.game-depot__dock{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:-24px 16px 0}
.game-depot .game-depot__sum{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.game-depot .game-depot__sum>div{display:inline-flex;align-items:baseline;gap:8px;white-space:nowrap}
.game-depot .game-depot__sum dt{font-size:.75rem;font-weight:700}
.game-depot .game-depot__sum dd{margin:0;font-size:var(--fs-sm);font-weight:700}
.game-depot .game-depot__claim{margin:0}
.game-depot .game-depot__claim .k-btn{width:100%;min-height:52px}
.game-depot__meter{margin:16px 0 0;color:var(--k-display-ink)}
.game-depot__meter .game-depot__k{color:var(--k-display-ink)}
.game-depot__meter .game-depot__chart{padding:8px 8px 0;border-radius:6px;background:var(--k-display);box-shadow:inset 0 0 0 1px var(--k-display),inset 0 2px 4px rgba(0,0,0,.35)}
.game-depot__meter .game-depot__bar{fill:var(--k-green);opacity:1}
.game-depot__meter .game-depot__bar.is-now{fill:var(--k-amber)}
.game-depot__meter .game-depot__base{stroke:var(--k-display)}
.game-depot__meter .game-depot__now{left:calc(8px + var(--p,0) * (100% - 16px));border-left-color:var(--k-display-ink);box-shadow:none}
.game-depot__meter .game-depot__ticks span{color:var(--k-display-ink)}
/* 下の段 = 紙の枠 3 枚 (営業所の一覧 / 店 / 等級)・1024 以上は 左 (一覧 + 等級) / 右 (店) */
.game-depot .game-depot__cols{display:grid;gap:16px;margin:24px 0 0}
.game-depot .game-depot__cols>.k-panel{min-width:0}
.game-depot .game-depot__cols h3{margin:0 0 12px;font-size:var(--fs-md)}
.game-depot .game-depot__list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.game-depot .game-depot__card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:var(--fs-sm)}
.game-depot__pict{display:block;width:96px;height:72px;object-fit:cover;border-radius:6px;box-shadow:0 0 0 2px var(--p-rule)}
.game-depot__body{display:grid;gap:8px;min-width:0}
.game-depot .game-depot__town{font-size:var(--fs-sm);font-weight:600}
.game-depot__best{display:flex;align-items:center;gap:8px}
.game-depot .game-depot__marks{display:flex;flex-wrap:wrap;gap:4px}
.game-depot__plate{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1.5px solid var(--k-ink);border-radius:4px;background:var(--k-paper);color:var(--k-ink);font-size:.75rem;font-weight:700;white-space:nowrap}
.game-depot .game-depot__nums{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.game-depot .game-depot__nums>div{display:inline-flex;align-items:baseline;gap:8px;white-space:nowrap}
.game-depot .game-depot__nums dt{font-size:.75rem;font-weight:700}
.game-depot .game-depot__nums dd{margin:0;font-weight:700}
.game-depot .game-depot__sub{margin:16px 0 4px;font-size:var(--fs-sm);font-weight:600}
.game-depot .game-depot__shop>.game-depot__sub:first-of-type{margin-top:0}
.game-depot .game-depot__lead{margin:0 0 8px;font-size:.75rem}
/* 陳列 = hero のバス 1 台 (390 で 200 px・1280 で 320 px)・塗り替えは 0.4 s */
.game-depot__show{display:flex;justify-content:center;margin:4px 0 12px}
.game-depot__show svg{display:block;width:200px;height:auto;transition:opacity .4s}
.game-depot__swatches,.game-depot__builds{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.game-depot__swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-depot__builds{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
.game-depot__sw,.game-depot__build{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 8px;border-radius:10px;background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--p-rule);font-size:var(--fs-sm);text-align:center}
[data-theme="dark"] .game-depot__sw,[data-theme="dark"] .game-depot__build{background:rgba(255,255,255,.06)}
.game-depot__sw.is-on,.game-depot__build.is-on{box-shadow:inset 0 0 0 2px var(--k-green)}
.game-depot__sw b,.game-depot__build b{font-weight:600}
.game-depot__sw .k-btn,.game-depot__build .k-btn{width:100%;margin-top:auto}
.game-depot__sw>.k-lock,.game-depot__build>.k-lock{position:absolute;top:6px;right:6px}
.game-depot__bpict{display:flex;align-items:flex-end;justify-content:center;width:100%;height:72px}
.game-depot__bpict svg{display:block;max-width:100%;max-height:72px}
.game-depot__build.is-locked .game-depot__bpict{filter:grayscale(.6) brightness(.95)}
.game-depot .game-depot__short{display:grid;gap:4px;width:100%;font-size:.75rem;font-weight:700;color:var(--p-ink)}
/* 等級 = メダルの梯子 5 段 + 次までの進み棒 */
.game-depot .game-depot__grade{margin:0}
.game-depot .game-depot__ladder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
.game-depot .game-depot__ladder li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;border:0;border-radius:8px;background:none;font-size:var(--fs-sm);text-align:center}
.game-depot .game-depot__ladder li.is-on{background:color-mix(in srgb,var(--k-green) 10%,transparent);box-shadow:inset 0 0 0 2px var(--k-green)}
.game-depot .game-depot__ladder li span:last-child{white-space:nowrap;font-weight:700}
html[lang="en"] .game-depot .game-depot__ladder li span:last-child{white-space:normal} /* 英語の「10,000,000 yen」は 14 では 1 区画に入らないので yen を次の行へ (E12) */
.game-depot__next{margin:12px 0 0}
.game-depot .game-depot__grade p{margin:8px 0 0;font-size:var(--fs-sm);font-weight:700}
.game-depot .game-about{margin-top:24px}
.game-coin--depot{left:0;top:0}
@media (max-width:520px){.game-depot .game-depot__ladder{grid-template-columns:repeat(3,minmax(0,1fr))}} /* 390 は 3 + 2 段 (「10,000,000 円」が 1 区画に収まる幅) */
@media (min-width:768px){
  .game-depot__scene{height:360px}
  .game-depot__dock{flex-direction:row;align-items:center;justify-content:center;margin-top:-32px}
  .game-depot .game-depot__claim .k-btn{width:auto;min-width:240px}
  .game-depot__show svg{width:320px}
}
@media (min-width:1024px){
  .game-depot__scene{height:400px}
  .game-depot .game-depot__cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"main shop" "grade shop";align-items:start}
  .game-depot__main{grid-area:main}.game-depot__shop{grid-area:shop}.game-depot__grade{grid-area:grade}
  .game-depot__swatches{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.game-depot__show svg{transition:none}}
.game-depot .game-dg{color:var(--k-ink)}
.game-depot .game-dg--sep{color:inherit}
.game-depot :is(.game-depot__title,h2),.game-depot .game-about h2{font-weight:700}
.game-depot :is(h3,h4,.game-depot__sum dt,.game-depot__nums dt,.game-depot__sw>b,.game-depot__build>b,.game-depot__k,.game-depot__ladder b){font-weight:600}
[data-theme="dark"] .game-play :is(.game-route,.game-panel,.game-stopcard,.game-choice,.game-candbar,.game-pop,.game-guide,.game-rush,.game-tip,.game-curtain__btn){background:var(--k-paper);box-shadow:0 0 0 1px var(--k-rule),0 10px 24px rgba(0,0,0,.35)}
[data-theme="dark"] .game-play .game-route{box-shadow:inset 5px 0 0 var(--rc,var(--k-paper)),0 0 0 1px var(--k-rule)}
[data-theme="dark"] .game-play .game-route.is-sel{background:var(--k-paper);box-shadow:inset 5px 0 0 var(--rc,var(--k-paper)),inset 0 0 0 2px var(--k-green)}
[data-theme="dark"] .game-play :is(.game-upnext,.game-playinfo){background:rgba(255,255,255,.06)}
[data-theme="dark"] .game-play .game-grade[data-g="E"]{border-color:currentColor;color:var(--k-text-down)}
/* 390: 場面は幅いっぱい (角丸なし)・チップ 3 つは「ラベルの下に数字」の縦組みで 1 段に並べる */
@media (max-width:767px){.game-depot__scene.k-scene{border-radius:0}}
@media (max-width:520px){
  .game-depot__dock{margin:-24px 8px 0}
  .game-depot .game-depot__sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .game-depot .game-depot__sum dd{font-size:var(--fs-sm);white-space:nowrap}
  .game-depot .game-depot__card{grid-template-columns:72px minmax(0,1fr);gap:8px}
  .game-depot__pict{width:72px;height:54px}
  .game-depot .game-depot__nums>div{white-space:normal;min-width:0;max-width:100%;height:auto;min-height:36px}
  .game-depot__best{flex-wrap:wrap}
  .game-depot .game-depot__town{overflow-wrap:anywhere}
  .game-depot .game-depot__sum .game-dg{min-width:0;margin:0;padding:0;background:none;box-shadow:none;color:inherit} /* 390 は桁の箱を外して数字だけ (3 つを 1 段に収める) */
  .game-depot .game-depot__sum .game-odo__unit{margin-left:2px}
}
/* E9: 一覧のステージのカード = 絵を幅いっぱいに (390 も 1024 以上と同じ縦の形) */
@media (max-width:1023px){
  .game-stage-row{display:flex;flex-direction:column;gap:0;padding:0}
  .game-stage-first{position:absolute;top:8px;left:8px;z-index:1;margin:0}
  .game-card__art{width:100%;height:auto;aspect-ratio:282/176;border-radius:0}
  .game-stage-body{gap:8px;padding:16px 16px 16px}
}
/* E9: 390 の場面の構図 = 箱は 220 のまま・絵を 280 に描いて下に揃え、上の空を 60 px 切る (構内と車両を大きく) */
@media (max-width:767px){
  .game .game-depot__scene.k-scene{height:220px}
  .game .game-depot__scene.k-scene>svg{position:absolute;left:0;bottom:0;height:280px}
}
/* E9: 一覧の営業所の行 = 構内の小さな絵 + 文 + ボタン・まだ取っていない称号は凹んだ紙のタイル (点線の箱はやめる) */
.game-deck .game-depotrow{min-height:0;padding:12px}
.game-deck .game-depotrow__pict{display:block;width:132px;height:80px;border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px var(--p-rule)}
.game-deck .game-depotrow__pict>svg{display:block;width:100%;height:100%}
.game-deck .game-depotrow .game-depotrow__text{}
.game-deck .game-title:not(.is-on){border:0;background:var(--k-paper);box-shadow:inset 0 1px 2px rgba(0,0,0,.06),inset 0 0 0 1px var(--p-rule)}
[data-theme="dark"] .game-deck .game-title:not(.is-on){background:var(--k-paper);box-shadow:inset 0 2px 4px rgba(0,0,0,.3),inset 0 0 0 1px var(--k-rule)}
/* E10 §4l UX 1: 開始の面 = その街の地図 1 枚 (一覧の hero と同じ作り) + 出発する hero のバス + 判子付きの切符 + 「出発」 (通りの場面は外した) */
.game-ticket__stamp{position:absolute;top:12px;right:12px}
.content .game-ticket p.game-hero__kicker{flex-wrap:wrap;margin-right:56px} /* 判子 (44 px + 右 12 px) の下に字を入れない・`.content .game-hero__panel p{margin:0}` より強く・入らない時は句の途中で割らずリンクごと次の行へ */
.game-ticket .game-start__go{position:relative;padding-top:16px}
.game-ticket .game-start__go::before{content:"";position:absolute;left:0;right:0;top:0;border-top:2px dashed var(--k-rule-strong);pointer-events:none} /* 切符の目打ち */
@media (max-width:767px){
  .game-ticket .game-hero__panel{position:relative}
  .game-start .game-ticket .game-hero__view{height:200px}
}
@media (min-width:768px){ /* 切符は地図と同じ升に重ねて下に寄せる (絶対配置だと行が増えた時に上へはみ出して切れる・升は切符より低くならない・`.game .game-hero__view+.game-hero__panel` の上の余白より強く) */
  .game-start .game-ticket:not([hidden]){display:grid}
  .game-start .game-ticket .game-hero__view{grid-area:1/1;height:auto;min-height:438px}
  .game-start .game-ticket .game-hero__view+.game-hero__panel{grid-area:1/1;position:relative;left:auto;bottom:auto;align-self:end;margin:6px 0 16px 16px}
}
[data-theme="dark"] .game-ticket .game-ticket__stamp{color:var(--k-text-down);filter:none} /* 判子は赤のまま・ダークは字の赤で地との差を取る */
/* E9: 結果の面 = 紙の地の上の日報 (鉄紺の卓はやめる)・上に日報の机の場面 (判子 + 金属の星が 1 つずつ落ちる) */
.game-reportdeck{border:0;background:var(--p-ground);box-shadow:none}
@media (min-width:768px){.game-reportdeck{border:0;border-radius:14px;box-shadow:inset 0 0 0 1px var(--p-rule)}}
.game-reportdeck .game-report{border-radius:12px;background:var(--k-paper);color:var(--p-ink);overflow:hidden;box-shadow:inset 0 0 0 1px var(--p-rule),0 1px 2px rgba(0,0,0,.06)}
[data-theme="dark"] .game-reportdeck .game-report{background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--k-rule),0 10px 22px rgba(0,0,0,.3)}
.game-reportdeck .game-report__head{display:block;padding:0 0 8px;border-bottom:2px solid var(--p-rule)}
.game-reportdeck .game-report__scene{border-radius:0;height:220px}
.game-reportdeck .game-report__scene>svg{display:block;width:100%;height:100%}
@media (min-width:768px){.game-reportdeck .game-report__scene.k-scene{height:300px}}
/* 390 は机の上の紙 + 星 (横 270〜1010) だけを幅いっぱいに切り出す */
@media (max-width:767px){.game-reportdeck .game-report__scene.k-scene{height:auto;aspect-ratio:740/400;border-radius:0}.game-reportdeck .game-report__scene.k-scene>svg{position:absolute;left:-36.5%;bottom:0;width:173%;max-width:none;height:auto;aspect-ratio:1280/400}}
.game-reportdeck .game-report__kicker{margin:8px 16px 0}
.game-reportdeck .game-report__head .game-stars{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap}
.game-reportdeck .game-report__bus{display:none}
.game-reportdeck .game-line__tick span{background:var(--k-paper)}
[data-theme="dark"] .game-reportdeck .game-line__tick span{background:var(--k-paper)}
[data-theme="dark"] .game-reportdeck .game-link,[data-theme="dark"] .game-reportdeck a:not(.k-btn){color:var(--k-ink)}
/* E9: 一覧の卓の上辺 = 東京湾を望む街の遠景 + 8 つのステージの旗 */
.game-deck .game-deck__scene{margin:0 0 16px;border-radius:12px}
.game-deck .game-deck__scene>svg{display:block;width:100%;height:100%}
/* 390 は 8 本の旗 (横 130〜1050) が全部入るように切り出す */
@media (max-width:767px){.game-deck .game-deck__scene.k-scene{height:auto;aspect-ratio:920/400}.game-deck .game-deck__scene.k-scene>svg{position:absolute;left:-14.1%;bottom:0;width:139.2%;max-width:none;height:auto;aspect-ratio:1280/400}}
@media (min-width:768px){.game-deck .game-deck__scene.k-scene{height:280px}}
/* 店のカードのボタンと「選択中」「設置済み」のリボンは下辺に揃える (足りない額の進み棒はその上) */
.game-depot__sw>.k-btn,.game-depot__sw>.k-tag,.game-depot__build>.k-btn,.game-depot__build>.k-tag{margin-top:auto}
.content .game-depot__swatches,.content .game-depot__builds{margin-left:0;margin-right:0;padding-left:0}
/* 開始の面の主ボタンの下の 1 行 (手引きが付く時だけ・本文の色・14) */
.content .game-start .game-start__note{margin:8px 0 0;font-size:var(--fs-sm);color:inherit}
.game-start__note[hidden]{display:none}
@media (min-width:768px){.game-ticket .game-start__go #game-go{min-width:200px}} /* 主の「出発」を副より細くしない */
@media (max-width:767px){.game-ticket .game-start__go #game-go{flex:1 1 100%}} /* 390 は主の「出発」を幅いっぱいに (副はその下) */
/* ===== E10 §4l: UI の層 = 紙 + 墨 + 都営の緑 1 系統 (琥珀は表示器の数字と硬貨・赤は危険と判子)・マット (光沢・gradient・強い影 0)。色は --k-* の token だけ ===== */
/* UX 9: 押せる物とカードの 3 状態 (hover / 押下 / 焦点)・120ms */
.game :is(.k-btn,.game-btn,.game-iconbtn,.game-route__sel,.game-route,.game-stage-row,.game-title,.game-depot__sw,.game-depot__build,.game-card,.game-cand,.game-depotrow){transition:background-color 120ms ease-out,border-color 120ms ease-out,box-shadow 120ms ease-out,transform 120ms ease-out}
.game :is(.k-btn,.game-btn,.game-iconbtn,.game-step__b,.game-busy,.game-route__sel,.game-card,.game-cand,.game-link,.game-stage-row,.game-title,.game-depot__sw,.game-depot__build):focus-visible{outline:3px solid var(--k-focus);outline-offset:3px}
.is-guide{outline:3px solid var(--k-focus);outline-offset:3px;box-shadow:none}
@media (hover:hover){
  .game :is(.game-stage-row,.game-route,.game-card,.game-cand,.game-depotrow):hover{border-color:var(--k-rule-strong)}
  .game .game-title:not(.is-on):hover{background:var(--k-ground)}
}
.game :is(.game-stage-row,.game-card,.game-cand):active{transform:translateY(1px)}
@media (prefers-reduced-motion:reduce){.game *{transition:none!important}}
/* 器 = 平らな紙 (1 px の罫・角 12・影 1 種) */
.game :is(.game-card,.game-cand,.game-hero__panel,.game-deck .game-stage-row,.game-reportdeck .game-report,.game-play .game-route,.game-play .game-panel,.game-play .game-candbar,.game-play .game-pop,.game-play .game-rush,.game-play .game-tip,.game-play .game-curtain__btn){border:1px solid var(--k-rule);border-radius:12px;background:var(--k-paper);color:var(--k-ink);box-shadow:var(--k-shadow-1)}
.game :is(.game-howto,.game-source,.game-towns,.game-about,.game-played){border:1px solid var(--k-rule);border-radius:12px;background:var(--k-paper);box-shadow:none}
.game-play :is(.game-choice,.game-stopcard,.game-guide){border:1px solid var(--k-rule);border-radius:12px;background:var(--k-paper);color:var(--k-ink);box-shadow:var(--k-shadow-2)}
.game :is(.game-deck,.game-reportdeck){box-shadow:none;border:0;background:transparent}
.game-play:not([hidden]){background:var(--k-ground)}
@media (min-width:960px){.game-play:not([hidden]){border:1px solid var(--k-rule);box-shadow:none}}
.game-hero:not([hidden]){box-shadow:none}
.game-hero__view{box-shadow:0 0 0 1px var(--k-rule)}
/* 見出しの帯 (リボンの置き換え・字は墨・左に緑の 4 × 20) を使う所の古い色を外す */
.content .game-play .game-choice__title{display:block;padding:0 0 0 12px;border-radius:0;background:none;color:var(--k-ink);box-shadow:inset 4px 0 0 var(--k-green);font-size:var(--fs-md);font-weight:600}
.game-hero__kicker,.content .game-hero p.game-hero__kicker{padding:0;border-radius:0;background:none;color:var(--k-ink)}
/* 番号の印・「はじめての人はここから」 = 色地に字を置かない (墨の線か緑の線) */
.game :is(.game-hero,.game-deck) .game-stage-no,.game-stage-no{background:none;color:var(--k-ink);box-shadow:inset 0 0 0 1.5px var(--k-ink)}
.game-stage-first{border-radius:4px;background:var(--k-paper);color:var(--k-ink);box-shadow:inset 0 0 0 1.5px var(--k-green)}
/* 星 = 塗りの印 (取った星は硬貨の琥珀 + 墨の線・まだの星は線だけ)・難しさの点は墨 */
.game :is(.game-deck,.game-hero) .game-star path{fill:none;stroke:var(--k-rule-strong)}
.game :is(.game-deck,.game-hero) .game-star.is-on path{fill:var(--k-amber);stroke:var(--k-ink)}
.game :is(.game-deck,.game-hero) .game-diff rect{stroke:var(--k-ink)}
.game :is(.game-deck,.game-hero) .game-diff rect.is-on{fill:var(--k-ink)}
.game-hero__diff{border-radius:4px;background:var(--k-paper);color:var(--k-ink);box-shadow:inset 0 0 0 1px var(--k-rule)}
/* 一覧の棚の題 (営業所の記章) = 1 px の罫・選択中は緑の 2 px */
.game-deck .game-shelf__list{border-bottom:1px solid var(--k-rule)}
.game-deck .game-shelf,.game-deck .game-depotrow{background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--k-rule)}
.game-deck .game-title{border:0;background:var(--k-paper);box-shadow:inset 0 0 0 1px var(--k-rule)}
.game-deck .game-title.is-on{box-shadow:inset 0 0 0 2px var(--k-green)}
.game-deck .game-title:not(.is-on){border:1.5px dashed var(--k-rule-strong);background:transparent;box-shadow:none}
/* 遊ぶの卓: 系統カード = 紙 + 方面板 (白い地・墨の線・左の帯だけ系統色) + 44 の − / + + 台数の数字 (黒い箱を消す) */
.game-play .game-route.is-sel{border-color:var(--k-green);box-shadow:inset 0 0 0 1px var(--k-green),var(--k-shadow-1)}
.game-play .game-route__name.k-plate,.game-play .game-route__mark{padding:0 8px 0 12px;border:1.5px solid var(--k-ink);border-radius:4px;background:var(--k-paper);color:var(--k-ink);box-shadow:inset 6px 0 0 var(--rc,var(--k-ink));font-weight:600}
.game-play .game-step__n{height:auto;padding:0 4px;background:none;box-shadow:none;color:var(--k-ink)}
.game-play .game-step__n b{font-size:var(--fs-md)}
.game-play .game-bay{background:var(--k-ground);box-shadow:inset 0 0 0 1px var(--k-rule)}
.game-play .game-board{box-shadow:0 0 0 1px var(--k-rule-strong)}
.game-play .game-tip{box-shadow:inset 4px 0 0 var(--k-amber),var(--k-shadow-1)}
/* 成績の 1 字 = 墨の線の正方形 (S / A は緑・D / E は赤・B / C は墨) */
.game .game-grade.k-grade{border-radius:0;background:none;box-shadow:inset 0 0 0 1.5px currentColor;color:var(--k-ink)}
.game .game-grade.k-grade:is([data-g="S"],[data-g="A"]){color:var(--k-text-up)}
.game .game-grade.k-grade:is([data-g="D"],[data-g="E"]){color:var(--k-text-down)}
/* UX 2: 営業所 = 場面の絵 (下辺の舗装まで) → 直下に紙の受付の帯 (値 3 つを等幅 + 右端に「受け取る」) → 表示器 */
.game-depot .game-depot__title{position:static;margin:0 0 12px}
.game-depot .game-depot__dock{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;margin:12px 0 0;padding:16px}
.game-depot .game-depot__dock .game-depot__sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;justify-content:stretch}
.game-depot .game-dg{min-width:0;margin:0;padding:0;background:none;box-shadow:none;color:inherit}
.game-depot .game-depot__dock .game-depot__sum dt{font-size:var(--fs-sm)}
.game-depot .game-depot__dock .game-depot__sum dd{font-size:var(--fs-md);white-space:nowrap}
.game-depot .game-depot__dock .game-depot__sum dd#game-depot-claimable{font-size:var(--fs-lg)} /* 面の主値は受け取れる額 1 つ (E12 §4n 6・資金と累計は 16) */
.game-depot .game-depot__dock .game-depot__claim .k-btn{width:auto;min-width:200px;min-height:48px}
@media (max-width:767px){
  .game-depot .game-depot__dock{grid-template-columns:minmax(0,1fr);padding:12px}
  .game-depot .game-depot__dock .game-depot__sum>.k-value{display:grid;grid-template-columns:auto;justify-items:start;gap:4px;min-width:0}
  .game-depot .game-depot__dock .game-depot__claim .k-btn{width:100%}
}
.game-depot .game-depot__meter{margin:16px 0 0;color:var(--k-display-ink)}
.game-dial circle{fill:var(--k-display);stroke:rgba(255,255,255,.12)}
.game-dial path{stroke:var(--k-display-ink)}
.game-depot__sw.is-on,.game-depot__build.is-on{box-shadow:inset 0 0 0 2px var(--k-green)}
.game-depot__pict{box-shadow:0 0 0 1px var(--k-rule)}
/* 棒は直角 (端を丸めない) */
.game :is(.game-day__track,.game-day__fill,.game-line,.game-line__track,.game-line__fill,.game-rep,.game-rep__fill){border-radius:0}
/* UX 4: 2 択の効果の行は墨の字 (色を付けない) */
.game-choice .game-fx__l,.game-choice .game-card .game-fx__l.is-up,.game-choice .game-card .game-fx__l.is-down{color:var(--k-ink)}
/* ダークの字の緑 (塗りの緑は地との差が足りない) */
[data-theme="dark"] .game :is(.game-link,a:not(.k-btn)){color:var(--k-ink)}
/* 琥珀は表示器の数字と硬貨だけ = 紙の上の注意は赤 (危険) か緑 (手引き) に */
.game-play .game-tip{box-shadow:inset 4px 0 0 var(--k-green),var(--k-shadow-1)}
.game-depot__meter .game-depot__bar.is-now{fill:var(--k-led)}
.game-play .game-rush{border-left:4px solid var(--k-green);box-shadow:var(--k-shadow-2)} /* 知らせ = 浮く物 */
@media (max-width:767px){.game-depot :is(.game-depot__build,.game-depot__sw) .k-value{flex-wrap:wrap;justify-content:center;min-width:0;max-width:100%;white-space:normal}}
@media (min-width:768px){.game-depot .game-depot__dock{margin-left:-16px;margin-right:-16px}} /* 受付の帯を場面の絵と同じ幅に */
/* UX 6: 人数の棒 = 直角の矩形 (溝は罫の色・帯は緑 1 色・行き先の色は行頭の印に任せる) */
.game-kinds__track{height:8px;border:0;border-radius:0;background:var(--k-rule)}
.game-kinds__bar{background:var(--k-green)}
.game-play .game-route .game-step__buy{width:auto;min-width:0;padding:0 12px} /* 系統カードの「買う」は値段の幅まで広げる (はみ出す字 0・字と縁 12) */
/* E11 §4m: 表示器 = 3 列の格子 (1 行目 時刻 2 列 + 下に運行の帯 | 評判 2 行ぶん・横の罫 1 本・2 行目 予算 | 運んだ | 手持ち)。
   セル 5 つは同じ形 (ラベル 12 + 4 + 値 --k-num 20 + 単位 14・左揃え・baseline 揃え)・印 0・縦の罫 0・余白 16 (390 は 12) */
.game-play .game-hud.k-display{--hud-up:color-mix(in srgb,var(--k-green) 55%,var(--k-display-ink));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"clock clock rep" "day day rep" "rule rule rule" "money done hand" "crule crule crule" "comp comp comp";align-items:start;gap:0 16px;margin:0 0 16px;padding:16px;border:0;border-radius:8px;background:var(--k-display);box-shadow:none;color:var(--k-display-ink)}
.game-play .game-hud.k-display .game-hud__item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;margin:0;padding:0;border:0;flex:none}
.game-play .game-hud.k-display .game-hud__item--clock{grid-area:clock}
.game-play .game-hud.k-display .game-hud__item--rep{grid-area:rep;align-self:stretch;justify-self:end} /* 評判は表示器の右の内側の縁へ (E12 §4n-2 2) */
.game-play .game-hud.k-display .game-hud__item--money{grid-area:money}
.game-play .game-hud.k-display .game-hud__item--done{grid-area:done}
.game-play .game-hud.k-display .game-hud__item--hand{grid-area:hand}
.game-hud.k-display .game-hud__k{display:block;margin:0;font:600 12px/1.2 var(--k-font);font-variant-numeric:tabular-nums;color:var(--k-display-ink)}
.game-hud.k-display .game-hud__k::after{content:none}
.game-hud.k-display .game-odo{min-width:0;text-align:left;justify-content:flex-start}
.game-hud__num{font-variant-numeric:tabular-nums}
.game-hud.k-display .game-hud__v{font:700 16px/1.2 var(--k-num);font-variant-numeric:tabular-nums;color:var(--k-led)}
.game-hud.k-display .game-hud__item--clock .game-hud__v{font-size:20px} /* 上の段の 2 計器 (時刻と評判) は 20・下の段の 3 値は 16 (E12 §4n 6 / §4n-2 2) */
.game-hud.k-display .game-hud__u,.game-hud.k-display .game-odo__unit{margin-left:4px;font:500 12px/1.2 var(--k-font);font-variant-numeric:tabular-nums;color:var(--k-display-ink)}
.game-hud.k-display .game-hud__val,.game-hud.k-display .game-garage{display:inline-flex;align-items:baseline;gap:0;min-height:0;color:var(--k-led)}
.game-hud.k-display .game-dg{min-width:0;margin:0;padding:0;border-radius:0;background:none;box-shadow:none;line-height:inherit}
/* 評判 = 半円 56 px・線 6 px・3 区分 (不透明度 .7)・目盛の線 0・針 2 px・軸 4 px・数字は弧の下の中央 */
.game-play .game-hud.k-display .game-rep{display:flex;flex-direction:column;align-items:center;gap:4px;width:72px}
.game-hud.k-display .game-gauge{width:72px;height:auto}
.game-hud.k-display .game-gauge__band{stroke-width:7.7;stroke-linecap:butt;opacity:.7}
.game-hud.k-display .game-gauge__tick{display:none}
.game-hud.k-display .game-gauge__needle path{stroke-width:2.6;stroke-linecap:butt}
.game-hud.k-display .game-gauge__hub{r:2.6px;stroke:none}
.game-play .game-hud.k-display .game-rep .game-hud__v{font-size:20px;line-height:1.2} /* 上の段の 2 計器 (時刻と評判) は 20 (E12 §4n-2 2) */
.game-play .game-hud.k-display .game-rep[data-tone="low"] .game-hud__v{color:var(--k-display-down)}
/* 運行の帯 = 6 px・溝 .14・過ぎた分・ラッシュ (.45)・今 = 2 × 14 の縦線・次の出来事 = 2 × 10 の線・目盛は帯の下 4 px */
.game-play .game-hud.k-display .game-day{grid-area:day;display:block;margin:8px 0 0;padding:0}
.game-play .game-hud.k-display .game-day__track{height:6px;border-radius:0;background:rgba(255,255,255,.14);box-shadow:none}
.game-play .game-hud.k-display .game-day__fill{background:var(--hud-up)}
.game-play .game-hud.k-display .game-day__rush{background:var(--k-led);opacity:.45}
.game-play .game-hud.k-display .game-day__fest{opacity:.45}
.game-play .game-hud.k-display .game-day__now{top:-4px;width:2px;height:14px;margin-left:-1px;background:var(--k-display-ink);box-shadow:none}
.game-play .game-hud.k-display .game-day__now::before{content:none}
.game-play .game-hud.k-display .game-day__flag{top:-2px;bottom:auto;width:2px;height:10px;margin:0 0 0 -1px;background:var(--k-led);color:transparent}
.game-play .game-hud.k-display .game-day__hours{display:block;height:16px;margin:4px 0 0}
.game-hud.k-display .game-day__hours span,.game-depot__meter .game-depot__ticks span{top:0;font:500 12px/1.2 var(--k-num);font-variant-numeric:tabular-nums;color:var(--k-display-ink)}
.game-hud__rule{display:block;height:1px;background:rgba(255,255,255,.08)}
.game-play .game-hud.k-display .game-hud__rule{grid-area:rule;margin:16px 0}
.game-hud.k-display .game-garage svg,.game-hud.k-display .game-bay{display:none}
@media (max-width:767px){.game-play .game-hud.k-display{column-gap:12px;padding:12px}}
@media (min-width:960px){.game-play .game-hud.k-display{margin:0 0 16px;padding:16px}}
/* 営業所の表示器も同じ形 (時刻のセル + 罫 + 運行の重みの棒 = 同じ幅・隙間 2 px・今 = 2 px の線・目盛 5 / 9 / 17 / 24)・時計の絵は外した */
.game-depot .game-depot__meter.k-display{--hud-up:color-mix(in srgb,var(--k-green) 55%,var(--k-display-ink));padding:16px;border-radius:8px;box-shadow:none}
.game-depot__meter .game-depot__clock{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0}
.game-depot__meter .game-depot__clock .game-depot__k{flex-basis:100%}
.game-depot .game-depot__meter .game-depot__k{margin:0;font:600 12px/1.2 var(--k-font);font-variant-numeric:tabular-nums;color:var(--k-display-ink)}
.game-depot .game-depot__meter .game-depot__time{font:700 16px/1.2 var(--k-num);font-variant-numeric:tabular-nums;color:var(--k-led)}
.game-depot .game-depot__meter .game-depot__time .game-dg{color:inherit}
.game-depot__meter .game-depot__closed{font:600 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums;color:var(--k-display-ink)}
.game-depot__meter .game-hud__rule{margin:16px 0}
.game-depot .game-depot__meter .game-depot__chart{height:auto;margin:4px 0 0;padding:0;border-radius:0;background:none;box-shadow:none}
.game-depot__bars{position:relative;display:flex;align-items:flex-end;gap:2px;height:64px;box-shadow:inset 0 -1px 0 rgba(255,255,255,.14)}
.game-depot__bars .game-depot__bar{flex:1 1 0;min-width:0;background:var(--hud-up);opacity:.7}
.game-depot__bars .game-depot__bar.is-now{background:var(--k-led);opacity:1}
.game-depot__meter .game-depot__bars .game-depot__now{position:absolute;top:0;bottom:-4px;left:0;width:2px;margin-left:-1px;border:0;background:var(--k-display-ink)}
.game-depot__meter .game-depot__ticks{height:16px;margin:4px 0 0}
@media (max-width:767px){.game-depot .game-depot__meter.k-display{padding:12px}}
/* E11 §4m d: 系統のカード = 3 段 (札 | − n + / バスと待つ人の絵 / 待ち・運んだ・棒・判定)。
   選ぶボタンは 1〜2 段目の全幅 (台数の部品は 1 段目の右に重ねる)・3 段目の列の幅はカードをまたいで同じ・判定は右端 */
.game-play .game-route{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;grid-template-areas:none;align-items:start;column-gap:16px;row-gap:8px;min-height:0;padding:12px 12px 12px 16px}
.game-play .game-route .game-route__sel{grid-area:1 / 1 / 2 / 2;min-width:0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;min-height:0;padding:0}
.game-play .game-route .game-route__top{flex:1 0 100%;box-sizing:border-box;min-height:44px;padding-right:176px;line-height:1.2}
.game-play .game-route .game-route__buses{gap:2px}
.game-play .game-route .game-step{grid-area:1 / 2 / 2 / 3;z-index:1;align-self:start;height:auto;padding:0}
.game-play .game-route .game-route__nums{grid-area:2 / 1 / 3 / 3;display:grid;grid-template-columns:88px 96px minmax(0,1fr) 24px;align-items:center;column-gap:8px;padding:0;line-height:1.2;align-self:auto}
.game-play .game-route .game-route__buys{grid-area:3 / 1 / 4 / 3}
.game-stopcard .game-route .k-btn{margin-top:0} /* 停の札の中のカードも同じ高さ (札のボタンの上 16 を台数の部品に掛けない) */
/* 次の出来事と目標 = ラベルの列 | 値の列・目標の進み具合は右揃え */
.game-play .game-upnext{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:8px;align-items:baseline}
.game-play .game-goal{row-gap:8px}
/* 選択肢 = カードは同じ高さ (格子の行は 1fr)・絵 24 は左上・題 16 太字・文 14・効果の 1 行 14 は上 8 で下に揃える */
.game .game-cards{grid-auto-rows:1fr;gap:16px}
.game .game-card{gap:8px;padding:16px}
.game .game-card .game-card__pict{width:24px;height:24px}
.game .game-card b{font-size:14px;font-weight:600}
.game .game-card>span:not(.game-fx){font-size:14px}
.game .game-card .game-fx{margin-top:auto;padding-top:0;font-size:14px}
/* 停の札・手引き・知らせ = 内側 16・ボタンの上 16 */
.game :is(.game-stopcard,.game-guide,.game-choice).k-panel{padding:16px}
.game-guide #game-guide-next,.game-stopcard .k-btn{margin-top:16px}
/* 一覧の切符と開始の面 = 行の間 8・ボタンの上 16 */
.game .game-hero__panel{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px}
.game .game-hero__panel :is(.game-btn,.k-btn):first-of-type{margin-top:8px}
.game-play .game-routes{gap:16px}
.game-hud.k-display .game-hud__v.game-odo,.game-hud.k-display .game-hud__v.game-digits{display:inline-flex;align-items:baseline;line-height:1.2}
.game .game-hero__view+.game-hero__panel{margin-top:16px}
/* 営業所: 方面板の間 8・時給と溜まっている額 = ラベル 14 + 値 20 の 2 列・店のカードは同じ高さで名前 / 値段 / ボタンを下に揃える・見本 40・等級の区画は同じ幅 */
.game-depot .game-depot__marks{gap:8px}
.game-depot .game-depot__nums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:8px 0 0}
.game-depot .game-depot__nums>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.game-depot .game-depot__nums dt{font-size:14px}
.game-depot .game-depot__nums dd{margin:0;font:700 16px/1.2 var(--k-num);font-variant-numeric:tabular-nums}
.game-depot :is(.game-depot__swatches,.game-depot__builds){grid-auto-rows:1fr;gap:16px}
.game-depot :is(.game-depot__sw,.game-depot__build){display:flex;flex-direction:column;align-items:flex-start;gap:8px;height:100%;box-sizing:border-box;padding:16px}
.game-depot :is(.game-depot__sw,.game-depot__build)>b{margin-top:auto}
.game-depot :is(.game-depot__sw,.game-depot__build)>.k-value{font-size:var(--fs-md);font-weight:700} /* 値段 16 700 (E12 §4n 7) */
.game-depot .game-depot__sw .k-swatch{width:40px;height:40px}
.game-depot .game-depot__ladder{gap:8px}
.content .game-play .game-upnext{margin:16px 0 0}
@media (min-width:960px){
  .content .game-play .game-upnext{margin:16px 0 0;padding:12px 16px 4px}
  .game-play .game-playinfo{padding:4px 16px 12px}
  .game-play .game-goal{margin:0}
}
.game-play .game-missions{gap:4px 8px}
@media (min-width:960px){.game-play .game-hud.k-display{margin:0}.content .game-play .game-upnext{margin-top:16px}}
/* 本文の既定 (.content p / li の em の余白) を尺に揃える (詳細度は .content p と同じ・個別の指定が勝つ) */
.content :where(.game) p{margin:8px 0}
.content :where(.game) li{margin:4px 0}
.content .game :is(.game-depot__card,.game-depot__sw,.game-depot__build,.game-title){margin:0}
.content .game .game-shelf__list{padding-left:0}
.game .game-shelf__list{gap:16px}
.game .game-title{padding:12px}
.game :is(.game-hero__panel,.game-depot__sw,.game-depot__build,.k-panel)>:last-child{margin-bottom:0}
.content .game .game-grades__t{margin:0}
.content .game .game-taken{gap:16px}
.game-depot .game-depot__ladder{gap:4px} /* 1280 の英語で「10,000,000 yen」が 1 区画に収まる隙間 (区画は枠の無い列なので箱と箱の 16 の対象外) */
@media (max-width:520px){.content .game-play .game-legend{column-gap:4px}} /* 390 で「行きたい場所」の凡例を 1 行に (8 では 386 px で 374 px に入らない・尺の 4) */
/* E13 §4o 6 凡例の行 = 盤の直下 8・「行きたい場所」の凡例だけ (地図の出所は footer の 1 行・§4ad 2) */
.game-legendrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 16px;margin:16px 0 0} /* 盤と「全体」の間 16 (PR-V16・1024 以上は盤の高さの式の − 16 と組) */
.content .game-play .game-legendrow>.game-legend{margin:0}
/* E13 §4o 3 状況の箱 = 1 枚の紙 (見出し無し): 次の出来事 / 運んだの進み (星 2 / 星 3 の目盛) / 目標の旗 / いちばん混む停。ラベルの列は 96 で揃える */
.game-play .game-status{grid-area:status;display:flex;flex-direction:column;gap:8px;margin:16px 0;padding:12px 16px;border-radius:8px;background:var(--k-paper);color:var(--k-ink);box-shadow:inset 0 0 0 1px var(--p-rule)}
.content .game-play .game-status>*{margin:0;padding:0;border-radius:0;background:none;box-shadow:none} /* 中の行は器を持たない (夜の 次の出来事 の地も外す) */
.game-play .game-status .game-missions{margin:0}
.game-starbar{display:grid;grid-template-columns:96px auto minmax(0,1fr);column-gap:8px;align-items:start}
.game-starbar__k,.game-busy__k{font:600 12px/1.2 var(--k-font);padding-top:2px}
.game-starbar__v{min-width:48px;font:700 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.game-starbar__track{position:relative;display:block;height:32px}
.game-starbar__bar{position:absolute;left:0;right:0;top:4px;height:8px;background:var(--k-rule)}
.game-starbar__fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--k-green)}
.game-starbar__tick{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-2px;background:var(--k-ink)}
.game-starbar__m{position:absolute;top:16px;font:700 12px/1.2 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.game-starbar__m3{right:0}
.game-starbar__m2{right:max(calc((1 - var(--r2)) * 100%), 72px)} /* 星 2 の字は目盛の左に揃える (星 3 の字と重なる幅では左へ逃がす) */
.game-play .game-busy{display:grid;grid-template-columns:96px minmax(0,1fr) auto 16px;column-gap:8px;align-items:center;width:100%;min-height:var(--tap-min);margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--k-ink);font:inherit;font-size:14px;text-align:left;cursor:pointer;box-shadow:none}
.game-play .game-busy:disabled{cursor:default}
.game-play .game-busy:disabled .game-busy__name{font-weight:600}
.game-busy__name{min-width:0;overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.game-busy__n{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.game-busy__go{font-size:16px;font-weight:700;line-height:1;text-align:center}
.game-play .game-busy:not(:disabled):hover .game-busy__name,.game-play .game-busy[aria-pressed="true"] .game-busy__name{text-decoration:underline;text-underline-offset:3px}
.game-meter[data-tone="red"] .game-meter__v,.game-busy__n[data-tone="red"]{color:var(--k-text-down)}
/* E13 §4o 4 + §4o-2 系統カード = 2 段 (内側 8・段の間 8・高さの目安 108 = 44 + 8 + 40 + 8 × 2)。1 段目 [番号] 方面板 [タグ] バスの形 × 6 …… [− n 台 +] か 買う / 2 段目 計器 2 つ (右の計器の行の右端に 運んだ n 人) */
.game-play .game-route{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;grid-template-areas:none;row-gap:8px;column-gap:8px;padding:8px 8px 8px 16px}
.game-play .game-route .game-route__sel{grid-area:1 / 1 / 2 / 2;min-width:0;display:flex;align-items:center;min-height:44px;padding:0}
.game-play .game-route .game-route__top{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:44px;padding:0} /* 名前とバス 6 台を 1 行に (390 で 192 / 198)・買うで右の部品が広い時はバスが 2 行目へ回る (重ならない) */
.game-route__k{font:600 12px/1.2 var(--k-font);white-space:nowrap}
.game-play .game-route .game-route__buses{display:inline-flex;flex:none;gap:2px}
.game-play .game-route .game-route__buses svg{width:16px;height:16px} /* 390 は 16 (名前 + 6 台 = 168 が 買う のある時の左 180 に入る)・1024 以上は 20 */
@media (min-width:960px){.game-play .game-route .game-route__buses{gap:1px}.game-play .game-route .game-route__buses svg{width:20px;height:20px}}
/* 台数の部品 = [− 44] [n 台 36] [+ 44 か 買う 2 行 (買う / 値段)]。買うを 2 行にして幅を値段の幅に留める = 名前とバスの行が 1 行に収まる */
.game-play .game-route .game-step__n{min-width:36px;padding:0 2px}
.game-play .game-route .game-step__buy{flex-direction:row;justify-content:center;gap:4px;width:auto;min-width:0;padding:0 12px;line-height:1.2;white-space:nowrap} /* 買うは 1 行 (字 14 + 値段の字 12・§4aj 4)。台数の部品は grid の auto の列 = 中身の幅のまま折れない */
.game-play .game-route .game-step__buy b{font-size:12px} /* 値段は 12 700 (§5ad R10 と同じ・足りない時は赤) */
.game-play .game-route .game-route__nums{grid-area:2 / 1 / 3 / 3;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:12px} /* 棒の下端を揃える・待ちの計器は中身の幅 (1 桁は数字の幅の空白で揃えて跳ねない)・乗車率と運んだが残りの幅 */
.game-play .game-route .game-step{grid-area:1 / 2 / 2 / 3;align-self:center}
.game-meter{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:4px;min-width:0} /* ラベルの行 (+ 右端に運んだ) → 棒。狭い所 (停の札の中) では 運んだ が棒の上の 2 行目の右端へ回る (字は切らない) */
.game-meter__h{flex:none;display:flex;align-items:baseline;gap:4px}
.game-meter__k{font:600 12px/1.2 var(--k-font);white-space:nowrap}
.game-meter__v{font:700 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.game-route__done{flex:none;display:flex;align-items:baseline;gap:4px;margin-left:auto;white-space:nowrap}
.game-route__done b{font:700 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums}
.game-meter__bar{flex:0 0 100%;position:relative;display:block;height:8px;background:var(--k-rule)}
.game-meter__fill{position:absolute;left:0;top:0;bottom:0;background:var(--k-ink)}
.game-meter--load .game-meter__fill{background:var(--k-green)}
.game-meter[data-tone="amber"] .game-meter__fill{background:var(--k-amber)}
.game-meter[data-tone="red"] .game-meter__fill{background:var(--k-red)}
.game-play .game-route .game-route__buys{grid-area:3 / 1 / 4 / 3}
.game-stopcard .game-route .k-btn{margin-top:0} /* 停の札の中のカードも同じ高さ (札のボタンの上 16 を台数の部品に掛けない) */

/* E14 §4p E 吹き出し「+ 1 台」= 盤の幅 − 8 まで・買い物の行は入らなければ次の行へ折り返す (390 で幅 396 が盤 374 からはみ出した) */
.game-play .game-pop{flex-wrap:wrap;row-gap:8px;max-width:calc(100% - 8px);box-sizing:border-box}
.game-play .game-pop__buys{min-width:0;margin-top:0}

/* E18 隣り合う部品の距離 (検査 = scripts/check-spacing.mjs・箱と箱 / 箱と含む箱の縁 16・アイコンと字 8・箱の中の字と縁 8 / 左右 12・隙間は 4 / 8 / 16 / 24 / 32) */
.game-play .game-route{column-gap:16px;padding:16px} /* 系統カード: 内側 16 (左は色の帯 5 を含めて前と同じ 16)・札とボタン / 台数の部品の間も 16 */
.game-play .game-stopcard{gap:16px;padding:16px} /* 停留所のカード: 行と行・縁と中身を 16 */
.game-stopcard__head{gap:16px;padding:0}
.game-playhead__btns{gap:16px} /* 音と一時停止の 2 つのボタンの間 */
.game-playhead{margin-bottom:16px}
.game-legend{column-gap:16px}
.game-stage-title{gap:8px} /* 番号の箱と名前の間 = 今日の 1 日の板と同じ 8 */
.game-stage-title .game-stage-no{margin-top:-1px} /* 16: 箱の中の番号の字を名前の 1 行目の字の中心に (行の高さ 1.3 の名前は箱 24 より 3 低い・差 1.09 → 0.5 以内) */
@media (max-width:1023px){.content .game-stages{gap:16px}}
.game-stage-first{top:16px;left:16px}
@media (min-width:768px){.game-stage-first{top:16px;left:16px}}
.game-hero .game-hero__diff{top:16px;right:16px}
.game .game-title{padding:16px}
.game-shelf__list{gap:16px}
.game-depotrow{padding:16px;column-gap:16px}
.game-tip{left:16px;right:16px}
.game-board>.game-tip{bottom:16px}
.game-guide{left:16px;top:16px;width:min(360px,calc(100% - 32px))}
.game-choice{left:16px;right:16px;bottom:16px;max-height:calc(100% - 32px)}
.game-rush{right:16px;top:16px;max-width:calc(100% - 32px)}
.game-board:has(>.game-choice:not([hidden])) .game-tip{top:16px}
@media (min-width:960px){.game-board:has(>.game-guide:not([hidden])) .game-tip{right:calc(360px + 32px)}}
.content .game-play .game-choice__title{margin-bottom:16px}
.game-share .share-btns{gap:16px}
.game-share{column-gap:16px}
.game-result__go{gap:16px}
.content .game-taken li{padding:8px 12px}
.game-depot__sw,.game-depot__build{padding:16px}
.game-depot__swatches,.game-depot__builds{gap:16px}
#game-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap} /* 1 項目 = 点 + 印 + 字 の 1 つの塊 (点だけが前の行に残らない)・項目の間は .game-legend の 16 */
#game-legend>span>svg:last-of-type{margin-right:4px} /* 印と字の間 = 8 (gap 4 + 4)・点と印の間 4 */
.game-play .game-route__key{margin-right:8px} /* 番号と方面板の間 = 16 (1024 以上) */
.game-playhead{margin-bottom:16px} /* ボタンの下の縁 (2 px の影) から計器の枠まで 16 */
.game-play #game-routes{margin-top:0}
.game-play-after:not([hidden]){margin-top:16px} /* 遊ぶ面の下端から遊び方まで 32 */
#game-shelf{padding:16px}
#game-daily{padding:16px}
#game-depotrow{padding:16px}
.game-depot__sw>.k-lock,.game-depot__build>.k-lock{top:16px;right:16px}
.game-depot .game-depot__shop,.game-depot .game-depot__grade{padding:16px}
@media (max-width:767px){.game-depot .game-depot__meter.k-display{padding:16px}}
.game-depot .game-depot__dock{margin-top:16px}
.game-play .game-pop{column-gap:16px;padding:16px} /* 「+ 1 台」の吹き出し: 札とボタンの間・縁と中身を 16 */
/* E18 の 3 回目: 見える縁どうしで 16 / 24 / 32 に揃える */
.game-play .game-pop{max-width:calc(100% - 32px)} /* 盤の縁の内側から左右 16 (位置は game.js の renderPop) */
@media (max-width:767px){
  .game-hero:not([hidden]){margin-bottom:12px} /* 卓の上の 12 と合わせて今日の 1 日と卓の絵の間を 24 */
  .game-reportdeck{padding-bottom:0}
  .game-reportdeck .game-report{margin-bottom:0} /* 390 は卓の地が見えないので、日報と「このステージの系統」の間は 24 だけ */
}
.game :is(.game-hero__panel,.game-depot__sw,.game-depot__build,.k-panel)>.k-btn:last-child{margin-bottom:2px} /* 最後のボタンの下の縁 (2 px の影) を枠の余白 16 に食い込ませない */
@media (min-width:960px){.game-play:not([hidden]){padding:16px}} /* 1024 以上の遊ぶ面の枠: 中身と縁を 4 辺とも 16 (系統の一覧の下のボタンから遊び方まで 16 + 縁 + 16) */
/* E20 §4aa 設計 3 / 4: 店の品は 1 品 1 行 (絵 | 名前 + 値段 (+ あと n 円) | ボタン)・390 でも 1 行。塗装の絵 = その色の小さなバス 96 px (押すと上の大きなバスが試し塗り)・拡張の絵 72 px */
.game .game-depot :is(.game-depot__swatches,.game-depot__builds){grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:16px}
.game .game-depot :is(.game-depot__sw,.game-depot__build){display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:0 16px;height:auto;padding:16px;text-align:left}
.game .game-depot .game-depot__build{grid-template-columns:72px minmax(0,1fr) auto}
.game .game-depot .game-depot__pict{display:block;width:96px;height:44px;margin:0;padding:0;border:0;border-radius:6px;background:none;cursor:pointer}
.game .game-depot .game-depot__pict svg{display:block;width:96px;height:44px}
.game .game-depot .game-depot__bpict{width:72px;height:48px}
.game .game-depot .game-depot__bpict svg{width:72px;height:48px;max-height:48px}
.game .game-depot .game-depot__txt{display:grid;justify-items:start;gap:4px;min-width:0}
.game .game-depot .game-depot__txt>b{display:flex;align-items:center;gap:4px;margin:0;font-weight:600}
.game .game-depot .game-depot__txt .k-lock{width:16px;height:16px}
.game .game-depot .game-depot__txt>.k-value{justify-content:flex-start;font-size:var(--fs-md);font-weight:700}
.game .game-depot .game-depot__txt>.game-depot__short{width:100%}
.game .game-depot :is(.game-depot__sw,.game-depot__build)>:is(.k-btn,.k-tag){width:auto;margin:0;white-space:nowrap}
.game .game-depot .game-depot__sw{cursor:pointer}
.game .game-depot .game-depot__sw.is-try{box-shadow:inset 0 0 0 2px var(--k-amber)}
.game .game-depot .game-depot__pict:focus-visible{outline:3px solid var(--k-focus);outline-offset:2px}
.game-depot .game-depot__try{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.game-depot .game-depot__try[hidden]{display:none}
/* ===== v2 PR-V3 面 (台帳 §5ba)。プラス = 青・マイナス = 赤 (字の色は意味のある色だけ)・項目名 600・値 700・隙間は 4 / 8 / 16 / 24 ===== */
.game{--g-plus:var(--k-text-plus);--g-minus:var(--k-text-down)}
.game-play .game-hud{--g-plus:var(--k-display-plus);--g-minus:var(--k-display-down)}
[data-tone="up"]>b,b[data-tone="up"],.game-hud__v[data-tone="up"],dd[data-tone="up"]{color:var(--g-plus)}
[data-tone="down"]>b,b[data-tone="down"],.game-hud__v[data-tone="down"],dd[data-tone="down"]{color:var(--g-minus)}
/* 上の欄の 2 行目 = 残高 | 今日の損益 | 運んだ | 手持ち (4 つ・中身の幅で並べ端から端へ) */
.game-play .game-hud.k-display{grid-template-columns:repeat(4,auto);grid-template-areas:"clock clock clock rep" "day day day rep" "rule rule rule rule" "money profit done hand" "crule crule crule crule" "comp comp comp comp";justify-content:space-between;column-gap:8px}
.game-play .game-hud.k-display .game-hud__item--profit{grid-area:profit}
.game-play .game-hud__item--money{flex:none}
.game-hud.k-display #game-profit .game-odo__unit:first-child{margin:0 2px 0 0;font:inherit;color:inherit} /* 損益の符号 (+ / −) は数字と同じ字と色 */
/* 今日の予定 (状況の箱の先頭の行): 見出し 96 + 絵 16・時刻・場所の組を並べる (終わった物は結果の色) */
.game-play .game-plan{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:8px;align-items:baseline;font-size:var(--fs-sm)}
.game-plan__k{font:600 12px/1.2 var(--k-font)}
.game-plan__list{display:flex;flex-wrap:wrap;gap:4px 16px}
.game-plan__i{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.game-plan__i b{font-weight:700;font-variant-numeric:tabular-nums}
.game-plan__i .game-evicon,.game-evicon{flex:none;display:block}
/* 系統カードの 3 段目 = 1 時間の損益 + 足りない物 (左)・区間運行の切替 + 急行 (右) */
.game-route__ops{display:flex;flex-direction:column;align-items:stretch;gap:16px} /* 損益の行 → 切替と買うの行 (右寄せ)・足りない物の印が出ても高さが跳ねない */
.game-route__pl{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);line-height:20px;white-space:nowrap}
.game-route__pl .game-route__diag{margin-left:8px} /* 値と印の間 16 */
.game-route__pl .game-route__k{font:600 12px/20px var(--k-font)}
.game-route__pl b{font-weight:700;font-variant-numeric:tabular-nums}
.game-route__diag{padding:0 4px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--k-amber);color:var(--k-ink);font:700 12px/20px var(--k-font)} /* 高さ 20 = 損益の行と同じ (下の切替まで 16 ちょうど) */
.game-route__opb{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:16px;min-height:44px}
/* 区間運行の区間 (面白さの直し §3): 区間運行が入の時だけ 2 行 = 項目名 (600) + (前へのボタン / 停の名前 / 先へのボタン)。名前が長い停は名前の所で折る (行の高さは 44 以上) */
.game-span{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-top:-8px}
.game-span__k{flex:none;font:600 12px/20px var(--k-font)}
.game-span .game-step{flex:0 1 auto;min-width:0;height:auto;min-height:var(--tap-min)}
.game-span .game-step__n{flex:0 1 auto;min-width:0;white-space:normal;text-align:center}
.game-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px}
.game-toggle__sw{flex:none;display:block}
.game-toggle__t{fill:var(--k-rule-strong)}
.game-toggle__k{fill:var(--k-paper);transition:transform .15s ease-out}
.game-toggle[aria-pressed="true"] .game-toggle__t{fill:var(--k-green)}
.game-toggle[aria-pressed="true"] .game-toggle__k{transform:translateX(12px)}
@media (prefers-reduced-motion:reduce){.game-toggle__k{transition:none}}
/* 運休の系統・運行の候補・振替輸送 = 同じカードの形 (左 = 名前 + 状態 / 下 = 1 行・右 = 押す所) */
.game-play .game-route .game-route__ops{grid-area:3 / 1 / 4 / 3;margin:0;padding:8px 0 0}
.game-play .game-route .game-route__buys{grid-area:4 / 1 / 5 / 3;margin-top:4px} /* 3 段目の切替と買うの間 16 (段の間 8 + 4 + 買うの上の 4) */
.game-play .game-routes{padding-bottom:0} /* 最後のカードから遊び方まで 32 */
.game-play .game-route:is(.game-route--susp,.game-route--cand,.game-route--relay){align-items:center}
.game-play .game-route:is(.game-route--susp,.game-route--cand,.game-route--relay)>.game-route__top{grid-area:1 / 1 / 2 / 2;min-height:44px;gap:16px}
.game-play .game-route.game-route--relay>.game-route__top{gap:8px}
.game-play .game-route:is(.game-route--susp,.game-route--cand,.game-route--relay)>.game-route__note{grid-area:2 / 1 / 3 / 3}
.game-play .game-route:is(.game-route--susp,.game-route--cand)>.game-route__note+.game-route__note{grid-area:3 / 1 / 4 / 3}
.game-play .game-route:is(.game-route--susp,.game-route--cand)>.game-route__open,.game-play .game-route.game-route--relay>.game-step{grid-area:1 / 2 / 2 / 3;justify-self:end}
.game-route__note{font-size:var(--fs-sm);line-height:1.5}
.game-route__open{display:inline-flex;align-items:center;gap:4px;min-height:44px}
.game-route__open svg{flex:none}
.game-route__state{padding:0 4px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--k-rule-strong);font:700 12px/1.6 var(--k-font)}
.game-play .game-route.game-route--cand{border-style:dashed}
.game-route--cand .game-route__k{font:600 12px/1.2 var(--k-font)}
.game-route--relay{--rc:var(--k-gold)}
.game-play .game-route--relay .game-route__name{border:0;padding:0;background:none;color:inherit}
.game-route--relay .game-step__n{min-width:72px}
.game-relay__back{width:auto!important;padding:0 8px!important;font:600 12px/1.2 var(--k-font)}
/* 盤の出来事の印 (絵 + 残りの分)・猛暑 / 雨の 1 行は盤の上端 */
.game-evmarks{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;overflow:hidden;z-index:1}
.game-evmark{position:absolute;display:inline-flex;align-items:center;gap:8px;padding:2px 8px 2px 4px;border-radius:12px;background:var(--k-paper);box-shadow:0 0 0 1px var(--k-rule-strong),0 1px 2px rgba(0,0,0,.12);color:var(--k-ink);font:700 12px/1.2 var(--k-font);white-space:nowrap;transform:translate(-50%,calc(-100% - 16px))}
.game-evmark.is-group{box-shadow:0 0 0 2px var(--k-gold),0 1px 2px rgba(0,0,0,.12)}
.game-heatband{position:absolute;left:16px;right:16px;top:16px;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:0;padding:4px 12px;border-radius:8px;background:var(--k-paper);box-shadow:0 0 0 1px var(--k-amber);color:var(--k-ink);font-size:var(--fs-sm);pointer-events:none}
.game-heatband[hidden]{display:none}
.game-heatband__i{display:inline-flex;align-items:center;gap:8px}
.game-heatband b{font-weight:700}
/* 話し手の顔 (手引き 64 / 390 で 4 行を超える時は上に 48・知らせ 40) */
.game-face{flex:none;display:block;width:var(--face,64px);height:var(--face,64px);border-radius:50%;overflow:hidden}
.game-face svg{display:block;width:100%;height:100%}
.game-guide{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start}
.game-guide>.game-face{grid-row:1 / 3}
.game-guide>.game-face[hidden],.game-guide>.game-face:empty{display:none}
.game-guide>.game-btn{grid-column:2;justify-self:start}
.game-guide.is-stack{grid-template-columns:minmax(0,1fr)}
.game-guide.is-stack>.game-face{grid-row:auto;--face:48px}
.game-guide.is-stack>.game-btn{grid-column:1}
.game-rush.has-face{padding-left:8px}
.game-tw{opacity:0}
.game-tw.is-on,.is-typed .game-tw{opacity:1}
/* 結果の面: 収支の 3 行 (項目名の下に小さな注)・出来事の結果 (絵 + 時刻と名前 + 判定) */
.game-money dt span{display:block;font-size:.75rem;font-weight:500}
.game-money dd{font-weight:700;font-variant-numeric:tabular-nums}
.game-evresults{display:flex;flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.game-evresults li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;column-gap:8px;align-items:center;font-size:var(--fs-sm)}
.game-evresults__t{min-width:0}
.game-evresults li b{font-weight:700;white-space:nowrap}
.game-evresults li.game-evresults__none{display:block}
.game-ph{display:inline-block} /* 案内文の節 (、。 で折る・10-21 の所見 4) */
.game-nm{word-break:keep-all;overflow-wrap:anywhere} /* 停の名前は語の途中で折らない (前後の <wbr> と空白でだけ折る・1 語が行より長い時だけ中で折る) */
.game-evmark.is-below{transform:translate(-50%,16px)}
.game-evmark.is-spot{transform:translate(-50%,-50%)} /* 置き場を選んだ印 = left / top は箱の中心 (§4ak 2・Gfx.nameSpot の候補の順) */
.game-dest{gap:8px} /* 行き先の印と字 = 8 */
@media (max-width:959px){.game-play .game-pop__buys{margin-top:8px}} /* 吹き出しの台数の部品と「大型」の間 16 */
/* 週の流れ (PR-V4・台帳 §5bb)。hidden の部品は display を付けない (display の上書きの罠・メモリ css-hidden-display-override-trap) */
.game :is(.game-starbar,.game-starbar__track,.game-hud__wd,.game-weekprog,.game-weekreport,.game-report,.game-stars,.game-try,.game-line,.game-report__k,.game-share,.game-btn,.game-next,.game-start__note)[hidden]{display:none!important}
/* HUD = 時刻の左に曜日と d / 5 日目 (16・本文の白)・時刻 (20・琥珀) と baseline で揃える */
.game-hud__clockrow{display:inline-flex;align-items:baseline;gap:8px;min-width:0}
.game-hud.k-display .game-hud__wd{font:600 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--k-display-ink)}
.game-hud.k-display .game-hud__wd b{font-weight:700}
/* 週の進み = 5 列 (390 は 64 px まで・768 以上は 80 px・列の間 8)。棒の幅は列 − 24 = 棒と棒の隙間 32・人数 12 / 棒 64 / 曜日 14 / 損益 12。終えた日は緑・あふれた日は朱・今日は太い縁・まだの日は空の枠 */
.content .game-wk{display:grid;grid-template-columns:repeat(5,minmax(0,64px));gap:8px;margin:0;padding:0;list-style:none}
@media (min-width:768px){.content .game-wk{grid-template-columns:repeat(5,minmax(0,80px))}}
.game-wk__d{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;margin:0;padding:0}
.game-wk__n,.game-wk__pl{display:block;min-height:15px;font:700 12px/1.25 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--g-ink)}
.game-wk__pl{font-weight:600}
.game-wk__bar{--wk-fill:var(--k-green);position:relative;display:block;width:calc(100% - 24px);height:64px;background:var(--k-rule)} /* 灰の track (縁なし) = 行きたい場所ごとの横の棒と同じ・まだ来ていない日も空の箱にしない */
.game-wk__bar::before{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--p,0%);background:var(--wk-fill)}
.game-wk__wd{font:600 14px/1.2 var(--k-font);color:var(--g-ink)}
.game-wk__d[data-today] .game-wk__wd{font-weight:700}
.content .game-wk__note{margin:8px 0 0;font-size:.75rem;line-height:1.4}
/* 週の結果の面: 共有の欄は 1 日の結果から移して使う */
.game-weekreport__share:empty{display:none}
.game-guide.is-tip .game-guide__goal{display:none}
/* 報告カードの中の称号 (1 日の新しい称号・この週の称号): 390 は 1 列 (紋章 64 と字が並ぶ幅)・768 以上は 2 列・紋章 (svg か丸の印) は 2 行ぶん・幅は紋章の大きさ */
.game-report .game-shelf__list{grid-template-columns:minmax(0,1fr)}
@media (min-width:768px){.game-report .game-shelf__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.game-report .game-title{grid-template-columns:auto minmax(0,1fr)}
.game-report .game-title{column-gap:16px} /* 紋章 (丸の器 = 箱) と字の間を 16 (§5bb 12 の間隔の検査) */
.game-start__go{gap:16px} /* 開始の面のボタンとボタンの間を 16 (続ける / 新しい週・出発 / 自由) */
/* 住民の声 (PR-V5・台帳 §4ac / §5bc): 盤の停の上 (入らなければ下) に紙の吹き出し 1 つ。紙の地・1.5 px の墨の縁・角 4・停へ向く尾 (--tail = 吹き出しの左から尾の中心まで)。
   左に話す人の行きたい場所の印 16 px (色 = 意味の色: 良い 青 / 悪い 赤 / 中立 墨)・文は 14 600 の墨・幅は盤の 60 % まで・押せない・読み上げない (aria-hidden) */
.game-voice{position:absolute;left:0;top:0;z-index:1;display:flex;align-items:flex-start;gap:8px;box-sizing:border-box;max-width:60%;margin:0;padding:8px 12px 8px 8px;border:1.5px solid var(--k-ink);border-radius:4px;background:var(--k-paper);color:var(--k-ink);font:600 14px/1.4 var(--k-font);pointer-events:none;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.game-voice[hidden]{display:none}
.content .game-voice{margin:0} /* .content p の上下の余白を消す (置き場の top が停の側へずれて尾の間が詰まる) */
.game-voice::after{content:"";position:absolute;left:calc(var(--tail,50%) - 5px);bottom:-6px;width:10px;height:10px;box-sizing:border-box;background:var(--k-paper);border-right:1.5px solid var(--k-ink);border-bottom:1.5px solid var(--k-ink);transform:rotate(45deg)}
.game-voice.is-below::after{top:-6px;bottom:auto;border:0;border-left:1.5px solid var(--k-ink);border-top:1.5px solid var(--k-ink)}
.game-voice__who{flex:none;display:flex;align-items:center;width:16px;height:20px;color:var(--k-ink)} /* 16 px の印を 1 行目の字の高さ (14 × 1.4) の中ほどに */
.game-voice[data-tone="good"] .game-voice__who{color:var(--g-plus)}
.game-voice[data-tone="bad"] .game-voice__who{color:var(--g-minus)}
.game-voice__text{min-width:0}
.game-voice:not([hidden]){animation:game-in .16s ease-out}
@media (prefers-reduced-motion:reduce){.game-voice{animation:none!important;transition:none!important}}
/* §4ad 3 幅 1280 以上 = 3 列 (左 300 = ステージ名 → 表示器 → 状況の箱・中央 = 盤 + 凡例 (sticky のまま)・右 400 = 系統カード → 候補 → 振替輸送 (scroll の箱は作らない))。
   1024〜1279 は上の 2 列のまま。DOM は同じ 1 つで並べ方だけを grid で変える。盤の幅 = 容れ物の中身 1126 (.game の上限 1160 − 卓の縁と余白 34) − 左 300 − 右 400 − 列の間 16 × 2 = 394 (640 が上限)・高さは game-board.js の式のまま */
@media (min-width:1280px){
  .game-play:not([hidden]){grid-template-columns:300px auto 400px;grid-template-rows:auto auto auto 1fr;grid-template-areas:"head board routes" "hud board routes" "status board routes" ". board routes"}
  .game-board{width:min(640px,calc(min(100vw,1200px) - 806px))}
  .game-routes{align-self:start}
  /* 表示器は左の 300 で 3 行に折る: 時刻 + 評判 → 運行の帯 → 罫 → 残高 + 今日の損益 → 運んだ + 手持ち */
  .game-play .game-hud.k-display{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"clock rep" "day day" "rule rule" "money profit" "done hand" "crule crule" "comp comp";justify-content:stretch}
  .game-play .game-hud.k-display :is(.game-hud__item--done,.game-hud__item--hand){margin-top:16px}
  /* 盤が 394 になるので、次の一手の 3 枚は 390 と同じ 1 列 (3 列では 1 枚 110 px で字が折れる)・手引きの箱 (360) が出ている間も案内は盤の幅いっぱいの下の縁 (箱は上の縁) */
  .game-cards{grid-template-columns:minmax(0,1fr)}
  .game-cards .game-card{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;row-gap:2px;align-items:start}
  .game-cards .game-card .game-card__pict{grid-row:1 / 4}
  .game-board:has(>.game-guide:not([hidden])) .game-tip{right:16px}
  /* 目標の旗の文は 300 で切らずに節で折る (1024〜1279 の 400 の列は 1 行で切る形のまま)・文と結果 (n / m・できませんでした) が 1 行に入らない時は結果を次の行の右端へ */
  .game-mission{flex-wrap:wrap;row-gap:0}
  .game-mission__t{overflow:visible;white-space:normal}
  .game-mission__t .game-ph{display:inline-block}
  .game-mission__v{margin-left:auto}
  .game-play .game-playhead{padding-right:0} /* 一時停止のボタンの右の縁から盤まで 16 (列の間と同じ) */
  .game-plan__i{flex-wrap:wrap;row-gap:0;white-space:normal} /* 左の列 (300) で長い停の名前は時刻の次の行へ (箱の右の縁から字まで 12 以上) */
  .game-play .game-pop{row-gap:16px} /* 盤 394 では「+ 1 台」の吹き出しが 2 段に折れる = 系統の箱と大型のボタンの間も 16 */
  /* 系統カードを詰める (§4ad 続き 1・情報は落とさない・ボタンの高さ 44 は不変):
     走っている系統 = 1 時間の損益 (名前の下に値の 2 段) と 区間運行 / 急行 を同じ 1 行に・急行のボタンは名前の下に値段の 2 段 (入らない時は今の 2 行へ折れる)
     運行の候補 = プレート・「運行の候補」の下に停留所 / 新しい停 の 1 行・右に「運行を始める」を 1 行に */
  .game-play .game-route .game-route__ops{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:16px;row-gap:8px;padding:0}
  .game-play .game-route__pl{display:grid;grid-template-columns:auto auto;grid-template-areas:"k d" "v v";justify-content:start;align-items:center;column-gap:16px;row-gap:0;line-height:20px} /* 名前と足りない物の印の間 16 (字と箱) */
  .game-play .game-route__pl>.game-route__k{grid-area:k}
  .game-play .game-route__pl>b:not(.game-route__diag){grid-area:v}
  .game-play .game-route__pl>.game-route__diag{grid-area:d;margin-left:0}
  .game-play .game-route__opb{margin-left:auto;flex-wrap:nowrap;align-items:center} /* 区間運行と急行はどちらも 44 の 1 行・上端を揃える (§4aj 5) */
  .game-play .game-route--cand>.game-buy.game-route__open,.game-play .game-route__opb .game-buy{flex-direction:row;gap:4px;padding-top:0;padding-bottom:0;white-space:nowrap} /* 値段つきは 1 行 (字 14 + 値段の字 12) */
  .game-play .game-route[data-r]:not(.game-route--cand):not(.game-route--susp):not(.game-route--relay){row-gap:4px}
  .game-play .game-route .game-route__buys{margin-top:8px} /* 段の間 4 + 8 + 買うの上の 4 = 切替と大型のボタンの間 16 */
  .game-play .game-route.game-route--cand{grid-template-columns:auto minmax(0,1fr) auto;column-gap:16px;row-gap:0}
  .game-play .game-route.game-route--cand>.game-route__top{display:contents}
  .game-play .game-route.game-route--cand>.game-route__top>.game-route__name{grid-area:1 / 1 / 3 / 2;align-self:center}
  .game-play .game-route.game-route--cand>.game-route__top>.game-route__k{grid-area:1 / 2 / 2 / 3;align-self:end}
  .game-play .game-route.game-route--cand>.game-route__note{grid-area:2 / 2 / 3 / 3;align-self:start}
  .game-play .game-route.game-route--cand>.game-route__note+.game-route__note{grid-area:3 / 2 / 4 / 3}
  .game-play .game-route.game-route--cand>.game-route__open{grid-area:1 / 3 / 3 / 4}
  /* 左の列は 3 つとも sticky (§4ad 第 3 回): カードが溢れてページが scroll しても、盤・表示器・状況の箱は見えたまま・右のカードだけが動く。止まる位置は game-board.js の fitSide が測って渡す */
  .game-play .game-playhead{position:sticky;top:16px;align-self:start}
  .game-play .game-hud{position:sticky;top:var(--side-hud-top,78px);align-self:start}
  .game-play .game-status{position:sticky;top:var(--side-status-top,371px);align-self:start}
}
/* 盤の幅を 1440 以上で戻す (§4ad 続き 2): 遊ぶ面が出ている間だけ容れ物を min(100vw − 80, 1520) へ広げる (一覧・開始・結果の面は 1200 のまま)。
   盤 = 容れ物 − 左右の余白 32 − 遊ぶ面の枠と内側 34 − 左 300 − 右 400 − 列の間 32 = 1440 で 562・1518 以上で 640 */
@media (min-width:1440px){
  .content:has(.game-play:not([hidden])){max-width:min(calc(100vw - 80px),1520px)}
  .game:has(.game-play:not([hidden])){max-width:none}
  .game-board{width:min(640px,calc(min(100vw - 80px,1520px) - 798px))}
}
/* §4ad 4 区間運行の切替: on の間はスイッチの文「区間運行 中」を選択中の色 (字は 600 のまま)・プレートの横に「区間」(運休のラベルと同じ部品) */
.game-toggle[aria-pressed="true"]{--k-text:var(--k-text-up)}
.game-play .game-route__top>.game-route__state--short{flex:none}
/* ===== PR-V7 苦情 (台帳 §4ae 3〜4) ===== */
/* 表示器の 5 行目 (全幅・罫の下): 項目名 12 600 + 朱の棒 8 px (0〜50 件で満ちる) + 値 16 700 (0 は表示器の字の色・1 以上は朱)。390 も同じ grid */
.game-play .game-hud.k-display .game-hud__rule--complaints{grid-area:crule}
.game-play .game-hud.k-display .game-hud__item--complaints{grid-area:comp;flex-direction:row;align-items:center;gap:8px}
.game-hud.k-display .game-hud__item--complaints .game-hud__k{flex:none}
.game-cbar{flex:1 1 auto;min-width:0;height:8px;background:rgba(255,255,255,.14)}
.game-cbar__fill{display:block;width:0;height:100%;background:var(--k-display-down)}
.game-hud.k-display .game-hud__item--complaints .game-hud__val{flex:none;min-width:56px;justify-content:flex-end}
.game-hud.k-display .game-hud__item--complaints .game-hud__val[data-tone="down"]>*{color:var(--k-display-down)}
/* 状況の箱の 1 行 (評判が 70 未満の間だけ): 評判と減りの数は朱の太字 */
.game-play .game-status .game-reploss{font-size:14px;line-height:20px;color:var(--k-ink)}
/* 結果の面: 運んだ人数の次の行に 苦情 n 件 (0 は本文の色・1 以上は朱) */
.content .game-report__complaints{margin:4px 0 0;font-size:var(--fs-sm);font-weight:600;line-height:1.4}
/* 停留所のカードの 1 行 (苦情が出た停だけ) */
.game-stopcard__complaints{margin:0;font-size:14px;line-height:20px}
/* バスのカード (§4al 1): 器は .game-stopcard の規則のまま。名前と種の印は 1 つの組 (×は右端)・乗客の棒は系統カードの乗車率の計器と同じ型・次の停と戻す途中の 1 行は本文の小 */
.game-buscard__title{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.game-buscard__title .game-stopcard__name{flex:none}
.game-buscard__load .game-meter{flex-wrap:wrap}
.game-buscard__pax{font-size:var(--fs-sm);font-weight:600}
.game-buscard__next,.game-buscard__note{font-size:var(--fs-sm)}
.game .game-buscard p{margin:0} /* 行と行の間はカードの gap 16 だけ (記事の p の余白を足さない) */
.game-stopcard .game-buscard__back{margin-top:0}
/* ===== PR-V9 PC は 1 画面 (台帳 §4ag・§5bf 2 の 2〜4) ===== */
/* 入らない行 (game.js の fitColumns が 1280 以上でだけ付ける)・「他 n 本 / 他 n 件」の 1 行は押せない文 (本文の色・600) */
.game-play .is-fitout{display:none!important}
.game-play .game-more{margin:0;font-size:var(--fs-sm);font-weight:600;line-height:20px;color:var(--k-ink)}
@media (min-width:1280px){
  /* 右の列の 1 行 (高さ 44): 色の縦線・番号・名前 600・区間・バスの台数 → 右寄せで 待ち / 1 時間の損益 → 右端に「+」(台数の部品と同じ 44)。
     押す所 = 行の左 (game-line__sel) で、押すとその系統のカードに開く。続く行は 1 枚の表 (間 0・罫 1 本) */
  .game-play .game-route.game-line{display:flex;align-items:center;gap:16px;height:54px;min-height:0;box-sizing:border-box;padding:4px 4px 4px 16px;border-radius:10px} /* 行 54 = ボタン 44 + 上下 4 + 行の罫 1 × 2・右端の「+」は罫の内側から上下右 4 (§4aj 3) */
  .game-play .game-route.game-line.is-joined{margin-top:-17px;border-top-left-radius:0;border-top-right-radius:0}
  .game-play .game-route.game-line.is-joinnext{border-bottom-left-radius:0;border-bottom-right-radius:0}
  .game-play .game-line__sel{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;height:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;white-space:nowrap}
  .game-play button.game-line__sel{cursor:pointer}
  .game-play .game-line__sel .game-route__key{margin-right:4px} /* 番号の字と名前の間 16 */
  .game-play .game-route.game-line .game-line__name{padding:0;border:0;background:none;line-height:20px} /* 名前は方面板の枠なしの字 (行の高さ 44 では板の箱と行の縁が 16 取れない) */
  .game-play .game-line--cand .game-line__sel{gap:16px}
  .game-play .game-line__bus{flex:none;display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);line-height:20px}
  .game-play .game-line__bus svg{width:20px;height:20px}
  .game-play .game-line__live{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);line-height:20px;font-variant-numeric:tabular-nums}
  .game-play .game-line__wait{min-width:72px;font-weight:600;text-align:right} /* 待ち / 損益は行をまたいで右の縁を揃える (待ち 99 人 / −9,999 円 が入る幅) */
  .game-play .game-line__wait[data-tone="down"]{font-weight:700}
  .game-play .game-line__pl{min-width:72px;font-weight:600;text-align:right}
  .game-play .game-line__note{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--fs-sm);line-height:20px}
  .game-play .game-route.game-line .game-route__add,.game-play .game-line>.game-route__open{flex:none;width:44px;height:44px;margin:0} /* 行の右端は「+」1 つ (44 × 44・買う時はカードを開く) */
  .game-play .game-line>.game-route__note{flex:none;padding-right:16px;font-size:var(--fs-sm);line-height:20px}
  .game-play .game-line--relay>.game-step{flex:none;align-self:center;height:44px;padding:0}
  .game-play .game-status .game-more{padding:0}
}
@media (min-width:1280px){.game-play .game-line .game-route__state{padding:0;border:0;background:none;line-height:20px}} /* 行の「区間」は枠なしの字 (名前と同じ理由) */
/* ===== PR-V12 ボタンと箱の揃え (台帳 §4aj・規則の本体は game-kit.css の .k-btn) ===== */
/* 0. 行や一覧の中のボタン (系統のカードと行・「+ 1 台」の吹き出し・停の札・振替輸送・ステージ名の行の音と一時停止) は厚み無し。下辺の厚みは単独で置くボタンだけ */
.game :is(.game-route,.game-pop,.game-stopcard,.game-playhead) .k-btn,.game :is(.game-route,.game-pop,.game-stopcard,.game-playhead) .k-btn:active{box-shadow:none;margin-bottom:0}
.game :is(#game-report,#game-weekreport) .k-btn{margin-bottom:2px} /* 結果の面の単独のボタンは下辺の厚み 2 の分を空ける (共有のボタンと「次の日へ」の間・箱の下の縁まで 16) */
/* 0. 値段つきのボタン (買う / 急行 / 大型 / 待合所 / バスを買う) = 1 行 (字 14 + 値段の字 12)・2 行にしない */
.game .game-buy{flex-direction:row;gap:4px;white-space:nowrap;line-height:1.2}
.game .game-buy b{font-size:12px}
/* 6. 出発の面: 「出発」と「手引きをもう一度」の上端を揃える */
.game .game-hero__panel .game-start__go>:is(.game-btn,.k-btn){margin-top:0;align-self:auto}
.game :is(.game-start__go,.game-result__go) .k-btn{font-size:16px} /* PR-V15 §4am 1: 出発の面と結果の面の押す物は §4aj 0 の字 16 (kit の既定 14 は値段つきの行の物) */
/* 9. いちばん混む停: 長い停の名前はボタンの中で切る */
.game-play .game-busy .game-busy__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 1. 07:00 の一手のカード (1 列に並ぶ 390 と 1280 以上) = 絵 + 名前 + 効果の 1 行と説明の行 (高さ 100 以下)・3 枚の高さは 1fr で揃え、説明と効果の間は空けない */
@media (max-width:767px),(min-width:1280px){
  .game .game-cards .game-card{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:start;align-items:center;column-gap:8px;row-gap:4px;min-height:0;padding:8px 16px;line-height:1.35}
  .game .game-cards .game-card>.game-card__pict{grid-row:1;grid-column:1}
  .game .game-cards .game-card>b{grid-row:1;grid-column:2;min-width:0}
  .game .game-cards .game-card>.game-fx{grid-row:1;grid-column:3;margin:0;white-space:nowrap}
  .game .game-cards .game-card>span:not(.game-fx){grid-row:2;grid-column:2 / 4}
  .game .game-cards{gap:16px}
}
.game-stopcard__info{display:contents}
/* 2. 停のカード: 1280 以上は中の系統を右の列の行と同じ 1 行の部品に (番号の空きは置かない・行の間 8)・閉じる × は見出しの中で停の名前と縦の中心を揃える */
.game-stopcard__head .k-btn,.game-stopcard .game-stopcard__x{margin-top:0}
@media (min-width:1280px){
  .game-play .game-stopcard .game-line .game-route__key{display:none}
  .game-play .game-stopcard{gap:8px;max-height:calc(100% - 24px)} /* 札の中の間は 8・札の上に停が見える 24 を残す */
  .game-play .game-stopcard p{margin:0}
  .game-play .game-stopcard__info{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
  .game-play .game-stopcard .k-btn{margin-top:0}
  /* 続く行は右の列と同じ 1 枚の表 (間 0・罫 1 本) */
  .game-play .game-stopcard .game-route.game-line+.game-route.game-line{margin-top:-9px;border-top-left-radius:0;border-top-right-radius:0}
  .game-play .game-stopcard .game-route.game-line:has(+.game-route.game-line){border-bottom-left-radius:0;border-bottom-right-radius:0}
}
/* 7. 区間運行の切替: 2 つの字を同じ升目に重ね、幅は広い方の字に固定 (押しても幅も位置も変わらない) */
.game-toggle__l{display:inline-grid}
.game-toggle__l>span{grid-area:1 / 1;white-space:nowrap}
.game-toggle__l>.is-off{visibility:hidden}
/* 4. 台数の部品: 右の「+」が「買う 60,000 円」に替わっても「−」の位置を動かさない = 部品の幅を買う時の幅 (ja 205・en 212 の実測 + 余り) に固定し、差は「n 台」の幅で吸収する */
.game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step{min-width:208px;justify-content:flex-end}
.game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step>.game-step__n{flex:1 1 auto}
:lang(en) .game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step{min-width:216px}
.game-play .game-pop>.game-pop__row.game-route{flex:1 1 auto;min-width:0;max-width:100%} /* 「+ 1 台」の吹き出しの行は吹き出しの内側の幅まで (390 で縁から 16) */
/* 10. 共有のボタン (日の結果・週の結果) も同じ規則 = 44 × 44 の印のボタン・枠 1.5・角丸 10 (古い .share-btn の 枠 1 / 角丸 4 を上書き) */
.game .game-share .share-btn.k-btn{border:1.5px solid var(--k-line);border-radius:10px;background:var(--k-face);color:var(--k-text)}

/* ===== PR-V11 やさしく始めて日ごとに手ごわく (台帳 §4ai) ===== */
/* 1. 時計の速さのボタン (一時停止の隣): 高さ 44・枠 1.5・角丸 10・厚み無し (§4aj 0)。幅は広い方の字「×1.5」+ 左右 12 に固定 (段で幅を変えない) */
.game .game-iconbtn.game-speed{width:auto;min-width:60px;padding:0 12px;font:600 14px/1.2 var(--k-font);font-variant-numeric:tabular-nums;white-space:nowrap}
/* 3. 危険の時の助言のカード: 盤の下の縁に重ねる (2 択と同じ置き方)・顔 64 + 状況と一手の 2 文 + ボタン 2 つ (高さ 44・上端を揃える・単独のボタン) */
.game-advice{position:absolute;left:12px;right:12px;bottom:12px;z-index:3;max-height:calc(100% - 24px);overflow-y:auto;display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:start;padding:16px}
.game-advice[hidden]{display:none}
.game-advice>.game-face{grid-row:1;grid-column:1}
.game-advice__text{grid-row:1;grid-column:2;display:flex;flex-direction:column;gap:8px;min-width:0}
.game .game-advice__text p{margin:0}
.game-advice__move{font-weight:700}
.game-advice__btns{grid-row:2;grid-column:1 / 3;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:16px}
.game-board:has(>.game-advice:not([hidden])) .game-tip{top:12px;bottom:auto} /* 助言のカードが出ている間は知らせを盤の上の縁へ (カードに重ねない) */
.game-board:has(>.game-tip:not([hidden])):has(>.game-advice:not([hidden])) .game-advice{max-height:calc(100% - 92px)}
@media (min-width:960px){
  .game-advice{left:16px;right:16px;bottom:16px;max-height:calc(100% - 32px)}
  .game-board:has(>.game-advice:not([hidden])) .game-tip{top:16px}
}
/* 1279 以下の停のカードの系統の行: 台数の部品が 208 に固定 (V12 §4aj 4) で名前の列は 390 で 82 しか無く、16 px のバス 6 台 (106) の 6 台目が「−」の下に隠れていた (V12 の検査の「はみ出す 11 件」) → カードの中だけバスの印を 12 px に (6 台 = 77・§4aj 0) */
@media (max-width:1279px){.game-play .game-stopcard .game-route .game-route__buses{gap:1px}.game-play .game-stopcard .game-route .game-route__buses svg{width:12px;height:12px}}
/* 389 以下は台数の部品の固定幅 (208 / en 216・V12 §4aj 4) を外す (§5bj 裁定 2): 360 の停のカードで en の名前の字が枠からはみ出して「−」に 6 px 重なっていた → 部品は中身の幅・名前の列が残りを取る */
@media (max-width:389px){.game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step,:lang(en) .game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step{min-width:0}.game-play .game-route:not(.game-route--relay):not(.game-line--relay) .game-step>.game-step__n{flex:0 0 auto}}
/* ===== PR-V8 盤のズーム (台帳 §4af) ===== */
/* k 1 は縦のページの scroll を残し (2 本の指のピンチだけ盤が受ける)・k > 1 は 1 本の指で盤を動かす (game.js が data-zoomed を付ける) */
.game-canvas{touch-action:pan-y}
.game-board[data-zoomed="1"] .game-canvas{touch-action:none}
/* 縁の印 (§4af 4): 視点の外の出来事と候補の系統・押せる物の大きさ 44 (§4aj 0)・出来事の印と同じ紙の色と縁 */
.game-edgemarks{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.game-edgemark{position:absolute;pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;margin:0;padding:0 12px 0 8px;border:0;border-radius:22px;background:var(--k-paper);box-shadow:0 0 0 1px var(--k-rule-strong),0 1px 2px rgba(0,0,0,.12);color:var(--k-ink);font:700 12px/1.2 var(--k-font);white-space:nowrap;cursor:pointer}
.game-edgemark:focus-visible{outline:2px solid var(--g-acc);outline-offset:2px}
.game-edgemark__rc{flex:none;width:12px;height:12px;border-radius:50%;background:var(--rc)}
/* 「全体」(§4af 5): 凡例の行の右端・高さ 44 (§4aj 0) */
.game-legendrow>.game-zoomall{flex:none;min-width:44px;min-height:44px;margin-left:auto;padding:0 12px;white-space:nowrap}
.content .game-play .game-legendrow{flex-wrap:nowrap}.content .game-play .game-legendrow>.game-legend{flex:1 1 auto;min-width:0;line-height:22px;row-gap:0} /* 凡例が長い en でも「全体」は同じ行の右端・凡例は自分の幅で折り返す (2 行でも 22 × 2 で行は 44 のまま・1280 × 650 の 1 画面を保つ) */
@media (max-width:959px){.game-legendrow>.game-zoomall{margin-bottom:2px}} /* 1023 以下は状況の箱が凡例の行の下に来る = ボタンの下の縁 (影 2 px) から箱まで 16 (PR-V16) */

/* ===== アプリとしてホーム画面に追加 (ゲーム専用の登録・専用の面 /<lang>/game/app/ = pages/game-app.ejs・配線 = game-app.js・正 = _shared/audits/fleet-game-pwa-install-2026-10-26/DESIGN.md §4 / §5) ===== */
/* 入口 = 一覧の面の遊び方の節の末尾の補助の行に文字のリンク 1 本 (本文の大きさ・リンクの色)。区切りの字は置かず、狭い幅では要素の間で折る
   (行の間 8・横 16・各リンクは字の途中で折らない)。ホーム画面のアイコンから開いている時は隠す (JS 0) */
.content .game-howto .game-aux{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 0}
.game-aux .game-link,.game-app__links .game-link{padding:0;white-space:nowrap}
@media (display-mode:standalone){.game-aux__app{display:none}}
/* 専用の面は紙のカード 1 枚・1 列 (390 も 1280 も本文の列の幅 600)。字は本文の色と良い色とリンクの色だけ (灰の字なし)・隙間は 4 / 8 / 16 / 24・押せる物は 44 以上 */
.game-app__card{margin:16px 0 0;padding:16px 24px 24px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh)}
.content .game-app h1{margin:0 0 8px;font-size:var(--fs-lg);line-height:1.3}
.game-app .game-app__lead{margin:0 0 16px}
.game-app .game-app__msg{display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:16px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-ground);font-weight:600}
.game-app .game-app__msg--ok{color:var(--k-text-up)}
.game-app__check,.game-app__ic{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.game-app__check{width:24px;height:24px}
.game-app__ic{width:20px;height:20px;margin-right:4px;vertical-align:-4px}
.game-app .game-app__ask{margin:0 0 16px}
.game-app .game-app__ask p{margin:0 0 8px}
.game-app .game-app__plat h2{margin:0 0 8px;padding:0;border:0;font-size:var(--fs-md)}
.game-app .game-app__list{display:grid;gap:8px;margin:0;padding-left:24px}
.game-app .game-app__note{margin:8px 0 0;padding-left:24px}
.game-app .game-app__note--ic{display:flex;align-items:flex-start}
.game-app .game-app__note--ic .game-app__ic{margin-top:calc((1lh - 20px) / 2)}
.game-app__other{margin:16px 0 0}
.game-app__other>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-weight:600;list-style:none}
.game-app__other>summary::-webkit-details-marker{display:none}
.game-app__other>summary::before{content:"";border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent currentColor}
.game-app__other[open]>summary::before{transform:rotate(90deg)}
.game-app__other .game-app__plat{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--g-line)}
.game-app__other .game-app__plat:first-child{margin-top:8px}
.game-app .game-app__links{display:flex;flex-direction:column;align-items:flex-start;margin:24px 0 0}
/* ===== 友人と比べる (専用の面 /<lang>/game/friends/ = pages/game-friends.ejs・配線 = game-friends.js・結果の面の表と車庫の色 = game.js・正 = _shared/audits/fleet-game-feature-parity-2026-10-26/FRIEND-AND-CARD-DESIGN.md v5 §2-5) ===== */
/* 専用の面は /game/app/ と同じ紙のカード 1 枚・1 列。字は本文の色と良い色とリンクの色だけ (灰の字なし)・隙間は 4 / 8 / 16 / 24・押せる物は 44 以上 */
.game-fr__card{margin:16px 0 0;padding:16px 24px 24px;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card);box-shadow:var(--g-sh)}
.content .game-fr h1{margin:0 0 8px;line-height:1.3}
.game-fr .game-fr__lead{margin:0 0 16px}
.game-fr__sec{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--g-line)}
.content .game-fr .game-fr__sec h2{margin:0 0 8px;padding:0;border:0}
.content .game-fr .game-fr__sec h3{margin:16px 0 8px;padding:0;border:0}
.game-fr .game-fr__sec p{margin:0 0 8px}
.game-fr .game-fr__acts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.game-fr .game-fr__acts .k-btn{min-height:44px}
.game-fr .game-fr__code{margin:8px 0;font-size:var(--fs-lg);font-weight:700;letter-spacing:.12em}
.game-fr .game-fr__ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;padding:8px 16px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-ground)}
.game-fr .game-fr__msg{margin:8px 0;padding:8px 16px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-ground);font-weight:600;overflow-wrap:anywhere}
.game-fr .game-fr__ops{display:grid;gap:4px;margin:0;padding-left:24px}
.game-fr .game-fr__ops li{text-wrap:pretty} /* 行末の 1〜2 字の孤立 (「…消えるだけで / す」) を均す (site.css の .content p と同じ形) */
.game-fr .game-fr__add label{display:block;font-weight:600}
.game-fr .game-fr__hint{margin:4px 0 8px}
.game-fr__row{display:flex;gap:8px}
.game-fr__row input{flex:1 1 auto;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--g-edge);border-radius:4px;background:var(--g-card);color:var(--g-ink);font:inherit;letter-spacing:.08em;text-transform:uppercase}
.game-fr .game-fr__count{font-weight:600}
.game-fr .game-fr__list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.game-fr .game-fr__list li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:44px;padding:8px 0;border-bottom:1px solid var(--g-rule)}
.game-fr .game-fr__name{flex:1 1 12em;min-width:0;font-weight:600;overflow-wrap:anywhere}
.game-fr .game-fr__today{white-space:nowrap}
.game-fr .game-fr__state{margin:8px 0 0}
.game-fr .game-fr__links{display:flex;flex-direction:column;align-items:flex-start;margin:24px 0 0}
.game-fr__links .game-link{padding:0;white-space:nowrap}
/* 一番下の使いやすさの評価欄 (裁定 d) = 紙のカードの中・節と同じ罫と隙間 (24 / 16)・中身の見た目は site.css の .feedback のまま (ゲームの結果の欄と同じ) */
.game-fr .feedback{margin:24px 0 0;padding:16px 0 0;border-top:1px solid var(--g-line)}
/* 結果の面の友人の表 (補足 1 つ・セルは中央・名はセルの中で折り返す・390 で溢れない) */
.game-friends{margin:16px 0 0}
.game-frtable__wrap{overflow-x:auto}
.game-frtable{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.content .game-frtable th,.content .game-frtable td{padding:8px 4px;text-align:center;vertical-align:middle;border:0;border-bottom:1px solid var(--g-rule);background:none}
.content .game-frtable thead th{font-weight:600;white-space:nowrap}
.content .game-frtable tbody th{font-weight:600;overflow-wrap:anywhere}
.game-frtable td{white-space:nowrap}
.content .game-frtable tr.is-you th,.content .game-frtable tr.is-you td{box-shadow:inset 0 -2px 0 var(--k-green)}
.game-frtable__days{display:inline-block;margin-left:4px;padding:0 4px;border:1px solid var(--g-edge);border-radius:4px;font-weight:600;white-space:nowrap}
.game-frtable__stars{display:inline-flex;gap:2px;vertical-align:middle}
.game-friends__none,.game-friends__state{margin:8px 0 0}
.game-friends__link{margin:8px 0 0}
.game-frnew__pict{display:flex;justify-content:center}
.game-frnew__pict~span{word-break:keep-all} /* 開いた色のラベルの文は i18n の <wbr> (「で」の直後) だけで折る (「友人 1 人で / 開きました」・停の名前の game-nm と同じ形) */
/* 車庫の面の友人と開く色 (塗装の選びの 2 つ目の並び) と追い越しの印 */
.game-depot__pass{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:var(--fs-sm)}
.game-depot__friends .game-depot__txt>span{word-break:keep-all} /* 色のラベルの文 (右の「選ぶ」の分だけ狭い) は i18n の <wbr> だけで折る (「友人 1 人で / 開きます」) */
.game-depot__friends .game-depot__lead .game-link{display:flex;width:fit-content} /* 友人の面へのリンクは説明文の末尾に続けず常に次の行 (ja / en とも・高さ 44 と縦の中央は a.game-link のまま) */
/* ===== 10-29 ゲームの面 レイアウトの微調整 (フリートの /game 総点検・指示の番号を各行に) ===== */
#game-legend{column-gap:16px} /* 3: 凡例の項目と項目の間 16 (390 も・項目は塊なので折り返しても点だけの行にならない) */
@media (max-width:520px){.game-shelf__list{grid-template-columns:minmax(0,1fr)}} /* 2: 390 の称号の棚は 1 列 (2 列では字の列が 75〜83 px でタイトルが語の途中で折れた)・カードの中は紋章 + 字の横並びのまま */
.game-mission{display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:8px;align-items:start} /* 4: 目標の行 = 旗 | 文 | 値・文が 2 行でも旗は 1 行目の中央 (同じ役の行を同じ形に) */
.game-mission svg{justify-self:center;margin-top:calc((1lh - 16px) / 2)}
.game-mission__v{margin-left:0}
.game-play .game-plan{align-items:center} /* 5: 「今日の予定」の項目名を値 (頭に 24 px の印) の中心に */
.game-play .game-plan__i span,.game-play .game-weekbar .game-starbar__v{font-weight:700} /* 5: 状況の箱の値の太さ = 今日の予定と週の合計だけ 700・他は 400 (等価な羅列にしない) */
.game-play .game-starbar:not(.game-weekbar) .game-starbar__v,.game-play #game-upnext-text,.game-play #game-upnext-text b,.game-play .game-busy .game-busy__name,.game-play .game-busy:disabled .game-busy__name{font-weight:400}
@media (max-width:767px){.game-hero:not([hidden]){margin-bottom:8px}} /* 8: 今日の 1 日の板の下端から卓の絵まで 24 (板の下 8 + 卓の上 16) */
.game-deck+.game-ad,.game-deck~.game-howto{margin-top:24px} /* 8: 卓の下 (padding 0) から次の箱まで 24 */
@media (min-width:768px){.game:has(>.game-list:not([hidden])) .game-mark{margin-left:16px}} /* 9: 入口のマークを卓の中身 (卓の padding 16 の内側) の左端に・開始の面は券の左右の padding を 0 にしてマークと説明の箱と同じ端に (下の 10) */
.game-ticket{padding:16px} /* 10: 出発の券の中身を上下の箱と同じ左右の端に (今日の 1 日の板 #game-daily と同じ 16) */
.game-playhead__name .game-stage-no{margin-right:8px} /* 13: 遊ぶ面のステージ名の番号も同じ箱 + 間 8 */
.content .game-playhead__name{display:flex;align-items:flex-start}.game-playhead__name .game-stage-no{margin-top:-2px} /* 名前が 2 行の時も箱は 1 行目の字の中心に */
.game-play .game-playhead{column-gap:8px} /* 13: 名前とボタンの間を尺の 8 に (1280 の左の列で「1 新宿駅西口」が 1 行に入る) */
.game-towns__route{white-space:nowrap} /* 14: 町の一覧の系統名 (「都 05-1」) は中で折らない */
.content .game-fr .game-fr__ops{gap:8px}.content .game-fr .game-fr__ops li{margin:0} /* 15: 友人の面の操作の一覧の行の間 8 (li の 4 + 4 の足し算をやめる) */
.content .game-start .game-start__go>.game-start__note{flex:1 1 100%;margin:-8px 0 0} /* 10: 「はじめに手引きが出ます」は出発の直下 8 (並びの gap 16 − 8)・副のボタンはその下 16 */
#game-daily,.game-hero.game-ticket:not([hidden]){padding:16px 16px 0} /* 8 / 10: 板の地は見えないので、見える板 (絵と白いカード) の下端から次の箱まで = 下 8 + 卓の上 16 (入口)・下 8 と説明の箱の上 24 の重なり (開始の面) で 24 */
.game:has(>.game-list:not([hidden])) .game-hero:not([hidden]),.game-start .game-hero:not([hidden]){margin-bottom:8px}
.game .game-title{grid-template-rows:1fr auto auto 1fr} /* 11: タイトルと説明は 1 つの塊で紋章の中央に (背の高いカードでも間を広げない・余りは上下の 1fr へ) */
.game .game-title>:first-child{grid-row:1 / 5;align-self:center}
.game .game-title>b{grid-row:2;grid-column:2}.game .game-title>b+span{grid-row:3;grid-column:2}
.content .game-start .game-start__back{margin-top:0;padding-left:0} /* 10: 「ステージ一覧へ」の字の左端を上の箱に揃える (押せる幅は右の 4 と高さ 44 のまま)・上のボタンから 8 */
@media (min-width:768px){.game-hero.game-ticket:not([hidden]){padding:16px 0 0}} /* 10: 768 以上の券 (地は見えない) はマーク / 説明の箱と同じ左右の端 */
@media (min-width:1280px){.game-play .game-playhead__btns{gap:8px}} /* 13: 1280 の左の列 (300) は番号の箱の分だけ名前の幅が要る = 3 つのボタンの間を 8 (押せる物の間隔 8 のまま)・名前は 1 行 */
