/* 色の組（2026-10-23 見た目の仕上げ）: 夜のゲームセンターの筐体。暗い藍の地（HSL 222° 44% 24%）・白に近い字・押しボタンの山吹色。engine.js の BG / FIELD / INK / DIM / AMBER と同じ */
:root{--bg:#223258;--card:#2b3c64;--ink:#f4f6fb;--dim:#c4d0e9;--accent:#f4c95d;--accent-ink:#2a1d02;--red:#f18074;--line:#576fa8}
*{box-sizing:border-box}
/* 一番後ろ（枠の外）の色は全作品共通なので、ここでは塗らない */
html,body{margin:0;height:100%;color:var(--ink);overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.shell-stage{background:var(--bg)}
.yk-cv{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.yk-cv[hidden]{display:none}
kbd{display:inline-block;min-width:30px;padding:1px 6px;margin:0 2px;border:2px solid var(--ink);border-bottom-width:4px;border-radius:4px;text-align:center;font:inherit;font-weight:bold;background:transparent;color:var(--ink)}

/* 地の上のボタン・欄（共通の .ui-btn.sub は白い地なので、筐体の地に合わせて一段明るい面＋金属の線にする） */
.shell-stage .ui-btn.sub:not(.sh-sh *){background:var(--card);color:var(--ink);border:2px solid var(--line);box-shadow:none}
.shell-stage .ui-btn.sub:not(.sh-sh *):hover{background:#334571}
.shell-stage .ui-btn:not(.sh-sh *){border-radius:6px;box-shadow:none;background-image:none}
.shell-stage .sh-tabs button[aria-selected="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.shell-stage .ui-input{background:var(--card);color:var(--ink);border-color:var(--dim)}

/* ホーム（共通の shell.home）。絵は CPU 同士のデモ（押しても何も起きない）、下に操作の一言 */
.yk-home .sh-art{background:var(--bg);outline:1.5px solid var(--line);outline-offset:-1.5px;pointer-events:none}
.yk-art{position:absolute;inset:0;width:100%;height:100%;display:block}
.yk-how{position:absolute;left:0;right:0;bottom:0;margin:0;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:10px 12px;border-top:1.5px solid var(--line);background:var(--bg);font-size:19px;font-weight:bold;pointer-events:none}
.yk-how span{font-size:28px;line-height:1;color:var(--accent);margin-right:4px}
.yk-home .sh-rule{color:var(--ink);font-weight:bold}
.yk-home .ui-note{display:none}   /* 部屋の入り方は「詳しく」の中に回す */
.yk-bd{position:absolute;left:0;right:0;bottom:0;width:100%;height:170px;display:block}
/* 詳しく・遊び方・設定・ランキング（共通の shell.panel の中身） */
.yk-det,.yk-set{display:flex;flex-direction:column;gap:10px;font-size:19px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.yk-det p,.yk-set p{margin:0}
.yk-nav{display:flex;gap:10px;flex-wrap:wrap}
.yk-set input{user-select:text;-webkit-user-select:text}

/* 結果（共通の shell.result）に足す一行。「もう一度」を表より上に出す（遊び終えてすぐ押せるように） */
.yk-res{background:rgba(34,50,88,.97)}
.yk-res li.me{background:rgba(244,201,93,.2)}
.yk-res .sh-rb{order:1}
.yk-res ol{order:2}
.yk-res .sh-sh{order:3}
.yk-res li{border-radius:4px}
.yk-rs{margin:0;display:flex;gap:18px;flex-wrap:wrap;justify-content:center;font-size:20px;color:var(--dim)}
.yk-rs .up{color:var(--accent);font-weight:bold;font-size:24px}

.yk-lbl{font-size:17px;color:var(--dim);margin-top:6px}
.yk-recs{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;font-size:19px}
.yk-recs span{display:flex;flex-direction:column;align-items:flex-start;padding:8px 0;border-bottom:1.5px solid var(--line)}
.yk-recs i{font-style:normal;font-size:16px;color:var(--dim)}
.yk-recs b{font-size:34px;line-height:1.2;color:var(--accent);font-variant-numeric:tabular-nums}
.yk-rank li span:last-child{font-variant-numeric:tabular-nums}
.yk-sub{font-size:17px;color:var(--dim);line-height:1.6}
.yk-rank{list-style:none;margin:0;padding:0;font-size:20px}
.yk-rank li{display:flex;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.yk-rank li span:first-child{width:3.2em;color:var(--dim)}
.yk-rank li span:last-child{margin-left:auto}
.yk-rank li.me{color:var(--accent);font-weight:bold}
/* 行全体が押せる。高さ 48px（44px 以上） */
.yk-tg{display:flex;gap:14px;align-items:center;min-height:48px;padding:6px 0;font-size:20px;cursor:pointer}
.yk-tg input{width:30px;height:30px;margin:0;accent-color:var(--accent);flex:none;cursor:pointer}
