.mini-main { width:min(1020px,calc(100% - 32px)); margin:24px auto 50px; }
.mini-heading { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.mini-heading .game-art { width:80px; aspect-ratio:1; flex:none; border:1px solid var(--line); border-radius:20px; }
.mini-heading h1 { color:var(--gold); font-size:36px; line-height:1.08; overflow-wrap:anywhere; }
.mini-heading p { color:var(--muted); margin-top:5px; font-size:13px; }
.mini-page .bar #sound { margin-inline-start:0; }
.mini-page .bar #settings { margin-inline-start:auto; }
.game-art { background-color:var(--art-bg,#332535); background-image:var(--art-image); background-size:cover; background-position:center; background-repeat:no-repeat; }
.art-casino { --art-image:url('/casino-logo.webp'); --art-bg:#103e33; }
.art-maze { --art-image:url('/maze-logo.webp'); --art-bg:#17243b; }
.art-triple-t { --art-image:url('/triple-t-logo.webp'); --art-bg:#793f33; }
.art-cooking { --art-image:url('/cooking-logo.webp'); --art-bg:#542535; image-rendering:pixelated; }
.art-draw { --art-image:url('/draw-logo.webp'); --art-bg:#3c2145; }
.art-relay { --art-image:url('/relay-logo.webp'); --art-bg:#164d57; }
.cover.game-art { background-image:none; display:grid; place-items:center; }
.cover.game-art::before { content:""; width:130px; height:130px; max-width:70%; aspect-ratio:1; background-image:var(--art-image); background-size:cover; background-position:center; border-radius:25%; }
.game-card:has(.art-maze) h2 { background:linear-gradient(110deg,#bbcaff,#89d5df); }
.game-card:has(.art-casino) h2 { background:linear-gradient(110deg,#ffdf94,#91d7ac); }
.game-card:has(.art-triple-t) h2 { background:linear-gradient(110deg,#ffc3a1,#ef98b5); }
.game-card:has(.art-cooking) h2 { background:linear-gradient(110deg,#ffce86,#f49d83); }
.game-card:has(.art-draw) h2 { background:linear-gradient(110deg,#efb4ff,#a6b7ff); }
.game-card:has(.art-relay) h2 { background:linear-gradient(110deg,#93e4c5,#91c8fa); }
.game-card:has(.game-art) h2 { background-clip:text; -webkit-background-clip:text; color:transparent; }
[data-theme="light"] .game-card:has(.game-art) h2 { filter:brightness(.55) saturate(1.4); }
.cover.game-art::after { background:none; }
.mini-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(210px,235px); gap:22px; align-items:start; }
.mini-play,.mini-side { min-width:0; }
#mini-stage { display:grid; place-items:center; overflow:hidden; background:#161521; border:1px solid #6f504d; border-radius:18px; box-shadow:0 12px 30px #0002; }
#mini-stage canvas { display:block; width:100%; height:auto; image-rendering:pixelated; }
.mini-side { border-top:1px solid var(--line); padding-top:12px; }
#mini-actions { display:grid; gap:8px; margin:12px 0; }
#mini-status,#mini-help { color:var(--muted); font-size:13px; line-height:1.45; margin:8px 0; }
#mini-stats { display:grid; gap:7px; font-variant-numeric:tabular-nums; color:var(--gold); font-weight:700; }
#mini-stats p:first-child { font-size:24px; line-height:1.2; margin-bottom:6px; }
#mini-stats p:not(:first-child) { font-size:14px; color:var(--muted); }
.mini-page .bar { gap:10px; flex-wrap:wrap; }
.mini-page #account-action { margin-left:auto; }
.mini-page .bar #settings { margin-inline-start:0; }
[data-game="draw"] .mini-heading h1 { color:#e6b6f3; }
[data-game="relay"] .mini-heading h1 { color:#8fddcf; }
[data-theme="light"] [data-game="draw"] .mini-heading h1 { color:#70417b; }
[data-theme="light"] [data-game="relay"] .mini-heading h1 { color:#226759; }
.kitchen-order { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.kitchen-order figure { margin:0; width:58px; padding:4px; border-bottom:2px solid var(--line); text-align:center; }
.kitchen-order figure[data-ready="true"] { border-color:#8fddaf; }
.kitchen-order img { width:48px; height:48px; image-rendering:pixelated; }
.kitchen-order figcaption { font-size:10px; color:var(--muted); }
[data-game="maze"] #mini-stage canvas { image-rendering:auto; }
#mini-help ul { padding-left:18px; }
#touch-controls:not([hidden]) { display:flex; gap:5px; flex-wrap:wrap; justify-content:center; padding-top:10px; }
#touch-controls button { min-width:43px; min-height:44px; touch-action:none; }
#touch-controls.direction-pad:not([hidden]) { display:grid; grid-template-columns:repeat(3,44px); grid-template-areas:". up ." "left down right"; }
.direction-pad button:nth-child(1) { grid-area:up; }
.direction-pad button:nth-child(2) { grid-area:left; }
.direction-pad button:nth-child(3) { grid-area:down; }
.direction-pad button:nth-child(4) { grid-area:right; }
[data-game="triple-t"] main { user-select:none; }
.mini-records { margin-top:20px; border-top:1px solid var(--line); padding-top:10px; }
.mini-records h2 { font-size:17px; }
.mini-records ol { padding-left:24px; overflow-wrap:anywhere; }
.mini-records li { padding-block:7px; }
.mini-record-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:12px; }
.mini-records li strong { color:var(--gold); font-variant-numeric:tabular-nums; white-space:nowrap; }
.mini-records li .player-name { max-width:100%; }
.mini-records .mini-records-empty { list-style:none; color:var(--muted); }
.triple-board { width:min(calc(100% - 20px),440px); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:10px; padding:10px; border:1px solid #9e6b52; border-radius:8px; background:#3c2b2a; }
.triple-board button { aspect-ratio:1; border:1px solid #aa785a; border-radius:6px; padding:6px; background:#614335; display:grid; place-items:center; }
.triple-board button:empty { background:#513a35; }
.triple-board button:empty:hover:not(:disabled) { background:#805140; }
.triple-board button:disabled { opacity:1; }
.triple-board button svg { display:block; width:72%; height:auto; color:#ffc099; }
.triple-board button img { width:90%; height:90%; object-fit:contain; animation:piece-arrive .18s ease-out; }
.triple-board { background:#382a29; border:0; padding:14px; gap:10px; }
.triple-board button { background:#765141; box-shadow:inset 0 2px #ffe3b822,0 3px #251918; border-radius:12px; }
.triple-board button:empty { background:#493833; }
.mini-page[data-game="triple-t"] #mini-stage { background:#302429; }
@keyframes piece-arrive { from { opacity:.3; transform:scale(.8); } to { opacity:1; transform:scale(1); } }
@media (prefers-reduced-motion:reduce) { .triple-board button img { animation:none; } }
.triple-board button[data-winner="true"] { border-color:#f2cca0; background:#426854; }
#mini-actions select { background:var(--panel); color:inherit; border:1px solid var(--line); border-radius:6px; min-height:38px; padding:5px 8px; font:inherit; }
@media (max-width:720px) {
  .mini-layout { grid-template-columns:1fr; gap:16px; }
  .mini-heading { gap:10px; }
  .mini-heading h1 { font-size:26px; }
  .mini-heading .game-art { width:72px; }
}

/* Private to the three game routes; sketch rooms and hall cards share this stylesheet. */
.solo-game {
  --solo-print:url('/hall-solo.webp');
  --solo-paper:#f6ecd6; --solo-metal:#b79a69; --solo-rule:#bea57859;
  --solo-title-ground:#172929; --solo-trim:#78583e;
  --solo-wood:linear-gradient(#30282270,#382b268c),url('/timber.webp') center / 440px auto;
}
.solo-game[data-game="triple-t"] { --solo-print:url('/hall-table.webp'); }
:root[data-theme=light] .solo-game {
  --solo-paper:#302c23; --solo-metal:#785e35; --solo-rule:#866e464f;
  --solo-title-ground:#eee9dc; --solo-trim:#98764d;
}
.solo-game .mini-heading {
  position:relative; isolation:isolate; min-height:102px; padding:14px 18px; gap:14px;
  border-block:1px solid var(--solo-rule); background-color:var(--solo-title-ground);
}
.solo-game .mini-heading::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:0 0 0 32%;
  background:var(--solo-print) right 58% / cover;
  mask-image:linear-gradient(90deg,transparent 0%,#0002 20%,black 62%);
}
.solo-game .mini-heading .game-art {
  width:60px; border:1px solid var(--solo-metal); border-radius:7px;
}
.solo-game .solo-title { min-width:0; max-width:57%; }
.solo-game .mini-heading h1 { color:var(--solo-paper); font-size:38px; line-height:1.06; text-wrap:balance; }
.solo-game .mini-heading p { color:var(--muted); font:italic 16px/1.25 var(--woodays-type,Georgia,serif); }
.solo-game #mini-actions select { border-color:var(--solo-rule); background:var(--input); color:inherit; }
.solo-game .mini-side { border-color:var(--solo-rule); }
.solo-game .mini-records { border-color:var(--solo-rule); }
.solo-game .mini-records h2 { display:flex; align-items:center; gap:10px; font-size:21px; color:var(--solo-paper); }
.solo-game .mini-records h2::after { content:""; flex:1; border-top:1px solid var(--solo-rule); }
.solo-game .mini-records li:not(:last-child) { border-bottom:1px solid var(--line); }
.solo-game .mini-records li::marker { color:var(--solo-metal); font-variant-numeric:tabular-nums; }
.solo-game #mini-help summary { cursor:pointer; min-height:44px; padding-block:10px; color:var(--solo-paper); }
.solo-game #touch-controls button { border-color:var(--solo-rule); box-shadow:inset 0 -2px #0002; }
@media(max-width:720px) {
  .solo-game .mini-main { margin-top:16px; }
  .solo-game .mini-heading { min-height:84px; margin-bottom:16px; padding:10px; gap:10px; }
  .solo-game .mini-heading .game-art { width:48px; }
  .solo-game .mini-heading h1 { font-size:29px; }
  .solo-game .mini-heading p { font-size:14px; }
}
@media(max-width:450px) {
  .solo-game .mini-heading::before { left:49%; mask-image:linear-gradient(90deg,transparent,#0002 42%,black); }
  .solo-game .solo-title { max-width:calc(100% - 68px); }
  .solo-game .mini-heading h1 { font-size:26px; }
}
