/* SHITMATE Chess: "Chess in the park" look (owner 11-19). v2 after "generic + cheap + doesn't look like a park":
 * (11-20: the park photo is gone — pink checker backdrop, chessboard title and boss board; see park.js),
 * site pink #ff24b8 on the main call, real Tom stickers instead of emoji. Loaded after chess.css; boss colours stay on the board. */
/* 11-20 owner: no brown text / brown UI (looked dark). Chess = black & white board + site pink; white panels, cool greys. */
:root { --ink: #121417; --gold: #ffcf3f; --pink: #ff24b8; --pink-d: #c80f8a; --text: #121417; --muted: #5b6270; --panel: #ffffff; --line: #d9dde3;
  --wood: #ffffff; --wood-d: #c80f8a; --grass: #3f8a3a; --sky: #8fd6fb; --cream: #ffffff; --leaf: #2f7a3a; --park: #1f5c3b; --park-d: #153f29; }
html, body { background: #3d6b33; color: var(--text); }
#app { background: none; }
.screen { z-index: 1; }
h2, h3 { color: var(--ink); }
h3 { color: var(--park); }
.sub { color: var(--muted); }

/* ── Backdrop (11-20 owner: no photo, chess-like, bright, not white-only): SHITMATE pink with a big soft checker ── */
:root { --sq-a: #ffffff; --sq-b: #ff7fcf; }
.park { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(#ffffff2e 0 25%, transparent 0 50%) 50% 0 / 128px 128px, radial-gradient(130% 90% at 50% 0%, #ffd3ee 0, #ff9bd9 55%, #ff5cc4 100%); }
body[data-screen="game"] .park { background: repeating-conic-gradient(#ffffff40 0 25%, transparent 0 50%) 50% 0 / 128px 128px, linear-gradient(180deg, #ffe6f5, #ffc2e7); }

/* ── Title stage: a big board in perspective, real figurines standing on it (park.js) ── */
#giant { position: relative; overflow: visible; align-self: stretch; width: 100%; }
.tb-tilt { position: absolute; left: 50%; bottom: 2%; width: min(128vw, 88dvh, 860px); aspect-ratio: 1; transform: translateX(-50%) perspective(1000px) rotateX(50deg); transform-origin: 50% 100%; }
.tb-board { position: absolute; inset: 0; display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); border: 10px solid var(--ink); border-radius: 8px;
  box-shadow: 0 0 0 6px #fff, 0 30px 0 6px #c80f8a55; background: var(--ink); }
.tb-board i.l { background: var(--sq-a); } .tb-board i.d { background: var(--sq-b); }
.tb-layer { position: absolute; inset: 0; pointer-events: none; }
.tb-pc { position: absolute; display: block; padding: 0; border: 0; background: none; }
.tb-pc .pc { inset: 0; filter: drop-shadow(0 5px 3px #0006); }
.tb-tom { pointer-events: auto; cursor: pointer; transform-origin: 50% 95%; animation: breathe 3.6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.tb-tom.bump { animation: tomBump .45s cubic-bezier(.3,1.7,.5,1), breathe 3.6s .45s ease-in-out infinite; }
.tb-tom:focus-visible { outline: 3px solid #1d6fd6; outline-offset: 2px; border-radius: 12px; }
@keyframes breathe { 50% { transform: scale(1.015, 1.03); } }
@keyframes tomBump { 0% { transform: scale(.92, 1.08); } 60% { transform: scale(1.04, .97); } }
.tom-say { position: absolute; z-index: 20; max-width: min(46vw, 260px); background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 7px 12px 8px;
  font: 700 clamp(13px, 1.6vw, 17px)/1.25 'TPA HUD', sans-serif; box-shadow: 0 4px 0 var(--ink); pointer-events: none; transform-origin: 0 50%; }
.tom-say[hidden] { display: none; }
.tom-say::after { content: ''; position: absolute; left: -11px; top: 14px; width: 16px; height: 16px; background: #fff; border: 3px solid var(--ink); border-right: 0; border-top: 0; transform: rotate(45deg); }
.tom-say.pop { animation: sayPop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes sayPop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tb-tom, .tb-tom.bump { animation: none; } }

/* ── Buttons: white with black ink, NYC Parks green + site pink for the main calls ── */
.btn { --c: #ffffff; --c2: #eef0f4; color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, var(--c), var(--c2));
  box-shadow: 0 4px 0 var(--ink); text-shadow: none; }
.btn:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(3px); }
.btn.big { --c: #24704a; --c2: var(--park); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #0004; box-shadow: 0 5px 0 var(--ink); }
.btn.big:active { box-shadow: 0 1px 0 var(--ink); }
.btn.sm { border-width: 2px; box-shadow: 0 3px 0 var(--ink); border-radius: 8px; }
.btn:disabled { filter: grayscale(.7); opacity: .6; cursor: default; }
.btn.dirty { --c: #3a3d45; --c2: #121417; color: #fff; }
.btn.report { --c: #ff5a5a; --c2: #d93030; color: #fff; }
.round { background: var(--cream); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.btn:focus-visible, .round:focus-visible, .rung:focus-visible { outline: 3px solid #1d6fd6; outline-offset: 3px; }
.pg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pg .k { fill: currentColor; }

/* ── Title: logo top, Tom at the table in the middle, one dock at the bottom ── */
#menu { justify-content: space-between; gap: 10px; padding-top: max(16px, env(safe-area-inset-top)); pointer-events: none; }
#menu > * { pointer-events: auto; }
#menu > .stage { pointer-events: none; flex: 1 1 auto; min-height: 30dvh; }
.back-hub { color: #fff; background: #14201acc; padding: 6px 10px; border-radius: 8px; }
.logo-chess { margin: 22px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; filter: drop-shadow(0 6px 10px #0006); font-weight: 400; }
.l-shit { font: clamp(30px, min(9vw, 6dvh), 64px)/.9 'TPA Display', Impact, sans-serif; color: #fff; text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink); }
.l-shit b { font-weight: 400; color: var(--pink); }
.l-chess { display: flex; border: 4px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); }
.l-chess i { display: grid; place-items: center; width: clamp(46px, min(15vw, 9.5dvh), 96px); aspect-ratio: 1; font: normal clamp(34px, min(11vw, 7dvh), 74px)/1 'TPA Display', Impact, sans-serif; background: #fff; color: var(--ink); }
.l-chess i:nth-child(odd) { background: #121417; color: #fff; }
.dock { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(560px, 100%); margin-bottom: 4px; }
.dock-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; width: 100%; }
.dock-main .btn.big { min-height: 76px; font-size: clamp(24px, 6.5vw, 34px); gap: 12px; justify-content: center; padding: 0 14px; }
.dock-main .btn.big .pg { width: 38px; height: 38px; stroke-width: 2.2; }
.dock-main small { display: none; }
.btn.road { --c: #ff3cc2; --c2: var(--pink-d); }
.btn .ico { display: grid; place-items: end center; width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #f3ead0; border: 3px solid var(--ink); }
.btn .ico .pc-face { width: 56px; }
.dock-icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.btn.tile { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 2px 6px; font-size: clamp(8px, 2.3vw, 11px); min-width: 0; letter-spacing: .04em; --c: #ffffff; --c2: #eef0f4; }
.btn.tile .pg { width: 30px; height: 30px; color: var(--park); }
.btn.tile[data-tpc-button]::before { content: ''; width: 30px; height: 30px; background: var(--park);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v10H10l-5 4v-4H4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v10H10l-5 4v-4H4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── Bars + cards ── */
.bar h2 { color: #fff; text-shadow: 0 3px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.stars-total { color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; }
.modal { background: #0d2a4a66; backdrop-filter: blur(3px); }
.card { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.card h2 { color: var(--ink); }
.card p, .card p b { color: var(--ink); } .card p { color: var(--muted); }
.seg legend { color: var(--wood-d); }
.seg label { border-color: var(--line); background: #fff; }
.seg label:has(input:checked) { border-color: var(--ink); background: #fff1c2; }
.seg small { color: var(--muted); }
input[type=radio], input[type=checkbox] { accent-color: #f0502e; }
.toast { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.credits { color: var(--muted); }

/* ── Boss select: a chessboard. Bosses (their king) two ranks apart, Tom's knight hops the L (game.js drawLadder) ── */
#map { background: none; padding-bottom: 0; }
.bb-scroll { flex: 1 1 auto; width: 100%; overflow-y: auto; padding: 8px 0 200px; -webkit-overflow-scrolling: touch; }
.bboard { --sq: calc(min(100vw - 28px, 520px) / 8); position: relative; list-style: none; margin: 0 auto; padding: 0; width: calc(var(--sq) * 8); height: calc(var(--sq) * var(--rows));
  background: repeating-conic-gradient(var(--sq-b) 0 25%, var(--sq-a) 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2);
  border: 6px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 5px #fff, 0 10px 0 5px #c80f8a55; box-sizing: content-box; }
.bb-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.bb-path path { fill: none; stroke: var(--ink); stroke-width: .07; stroke-dasharray: .16 .14; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.bb-path path.done { stroke: #fff; stroke-width: .16; stroke-dasharray: none; opacity: 1; filter: drop-shadow(0 0 .04px var(--ink)); }
.bboard .rung, .bboard .bb-me { all: unset; position: absolute; display: block; left: calc(var(--f) * var(--sq)); bottom: calc(var(--r) * var(--sq)); width: var(--sq); height: var(--sq); z-index: 2; }
.bb-node { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-pc { position: absolute; left: -22%; right: -22%; bottom: 6%; aspect-ratio: 1; display: block; transform-origin: 50% 92%; transition: transform .2s; }
.bb-pc .pc { inset: 0; }
.bb-no { position: absolute; left: -8px; top: -6px; z-index: 3; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; display: grid; place-items: center;
  font: 12px/1 'TPA Display', Impact, sans-serif; color: #fff; background: var(--ink); border: 2px solid #fff; }
.bb-name { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); z-index: 3; white-space: nowrap; font: 11px/1 'TPA Display', Impact, sans-serif;
  color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 3px 6px; }
.bb-name i { font-style: normal; color: #d99a00; letter-spacing: -.05em; }
.bb-lock { position: absolute; right: -6px; bottom: -4px; z-index: 3; font-size: 16px; }
.rung.locked .bb-pc { filter: brightness(0) opacity(.5); }
.rung.locked .bb-name { color: #fff; background: #121417aa; border-color: transparent; }
.rung.won .bb-pc { transform: translate(-12%, 6%) rotate(-78deg); filter: saturate(.75); }
.rung.cur::before, .rung.on::before { content: ''; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 4px var(--pink); background: #ff24b833; }
.rung.cur::before { animation: curGlow 1.4s ease-in-out infinite; }
.rung.cur .bb-pc { animation: bbBob 2.2s ease-in-out infinite; }
.rung.on::before { box-shadow: inset 0 0 0 4px var(--ink), 0 0 0 3px var(--pink); }
.rung.final .bb-no { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.bb-me { z-index: 4 !important; pointer-events: none; }
.bb-me .bb-pc { filter: drop-shadow(0 0 6px #fff); }
@keyframes curGlow { 50% { background: #ff24b866; } }
@keyframes bbBob { 50% { transform: translateY(-5%); } }
@media (prefers-reduced-motion: reduce) { .rung.cur .bb-pc, .rung.cur::before { animation: none; } }
/* the sheet for the boss you tapped */
.boss-sheet { --c: #ff24b8; position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; width: min(540px, calc(100% - 20px));
  display: grid; grid-template-columns: 70px 1fr; grid-template-areas: 'pic txt' 'acts acts'; gap: 8px 12px; align-items: center;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 6px 0 var(--ink); }
.boss-sheet.pop { animation: sheetIn .25s cubic-bezier(.3,1.5,.5,1); }
@keyframes sheetIn { from { transform: translate(-50%, 14px); opacity: .4; } }
.bs-pic { grid-area: pic; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; display: grid; place-items: end center; border: 3px solid var(--ink);
  background: color-mix(in srgb, var(--c) 45%, #fff); }
.bs-pic .pc-face { width: 66px; } .bs-pic.locked .pc-face { filter: brightness(0); }
.bs-txt { grid-area: txt; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bs-txt b { font: 19px 'TPA Display', Impact, sans-serif; } .bs-txt small { color: var(--pink-d); font-weight: 700; } .bs-txt em { color: var(--muted); font-style: normal; font-size: 13px; }
.bs-st { margin-top: 3px; display: flex; gap: 2px; }
.boss-sheet .acts { grid-area: acts; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.boss-sheet .btn.fight { --c: #ff4fc6; --c2: var(--pink); color: #fff; min-height: 52px; font-size: 22px; text-shadow: 0 2px 0 #0004; }
.star { background: #0001; } .star.on { background: var(--gold); filter: drop-shadow(0 1px 0 var(--ink)); }

/* ── Shame + locker on cream ── */
.shame-card { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.shame-card figcaption { background: #fff; color: var(--ink); } .shame-card figcaption small { color: var(--muted); }
.item { background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.item.on { background: #fff1c2; border-color: var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 0 4px var(--gold); }
.item small { color: var(--muted); }

/* ── Game: tournament board, white rim + black ink frame ── */
#game { background: none; }
.board { border-radius: 6px; box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--ink), 0 22px 0 4px #2f6a2f55; }
.sq .rk, .sq .fl { color: #0008; }
.side { background: #fffffff0; border: 3px solid var(--ink); border-radius: 16px; padding: 6px 10px; box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.who small { color: var(--muted); }
.avatar { background: #dff2ff; border: 3px solid var(--ink); }
.pot .adv { color: #e2601a; }
.coach { color: var(--ink); background: #ffffffd9; border-radius: 12px; padding: 4px 10px; min-height: 36px; }
.coach:empty { background: transparent; }
.coach.warn { color: #c62828; } .coach.good { color: #1f7a2e; } .coach.special { color: #1d63b8; }
.coach.tom-great, .coach.tom-mate { color: #c80f8a; } .coach.tom-good { color: #1f7a2e; } .coach.tom-meh { color: #5b6270; } .coach.tom-bad { color: #d4541e; } .coach.tom-awful, .coach.tom-missed { color: #c62828; }
.coach.demo { background: #fffffff0; }
.bubble { border: 2px solid var(--ink); }
.banner { color: #fff; -webkit-text-stroke: 3px var(--ink); }
.banner.mate { color: var(--gold); }
@media (min-aspect-ratio: 4/3) and (min-width: 900px) { .side { padding: 12px; } }

/* Clocks */
.clock-run { flex: none; margin-left: 6px; font: 20px/1 'TPA Display', Impact, sans-serif; color: var(--ink); background: #eef2e6; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.clock-run[hidden] { display: none; }
.clock-run.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.clock-run.on.low { background: #ff6b6b; color: #fff; animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { transform: scale(1.05); } }

/* Stickers */
.emotes { position: fixed; left: 50%; bottom: max(80px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 8px; box-shadow: 0 6px 0 var(--ink); width: min(420px, 94vw); }
.emotes[hidden] { display: none; }
.emo { aspect-ratio: 1; padding: 2px; border-radius: 10px; border: 2px solid transparent; background: #fff; }
.emo:hover, .emo:focus-visible { border-color: var(--ink); transform: scale(1.06); }
.emo img { width: 100%; height: 100%; object-fit: contain; }
.emote-pop { position: fixed; z-index: 55; width: 120px; height: 120px; pointer-events: none; opacity: 0; transform: scale(.3) rotate(-10deg); transition: .25s cubic-bezier(.3,1.6,.5,1); }
.emote-pop img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 0 #0004); }
.emote-pop.on { opacity: 1; transform: none; }
.emote-pop.foe { right: 12px; top: 90px; } .emote-pop.me { left: 12px; bottom: 120px; }

/* Draw offer inside the coach line */
.draw-ask { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Online pieces with an account photo for a head */
.pc-face.photo { border-radius: 50% 50% 46% 46%; box-shadow: 0 0 0 2px #000; background-color: #ddd; }
.pc.fig .pc-face.photo::after { display: none; }
.horse.photo-horse .h-face.photo { border-radius: 0; box-shadow: none; }

/* ── Online lobby ── */
#online { background: none; }
.lobby { width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: stretch; background: var(--cream); border: 3px solid var(--ink); border-radius: 20px; padding: 16px; box-shadow: 0 8px 0 var(--ink); }
.me-card { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.me-card b { font: 20px 'TPA Display', Impact, sans-serif; }
.me-card small { color: var(--muted); } .me-card a { color: #1d63b8; font-weight: 700; }
.clocks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clocks legend { font: 14px 'TPA Display', Impact, sans-serif; color: var(--wood-d); margin-bottom: 6px; }
.clocks label { cursor: pointer; }
.clocks input { position: absolute; opacity: 0; pointer-events: none; }
.clock { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink); }
.clock b { font: 26px 'TPA Display', Impact, sans-serif; } .clock small { font-size: 12px; color: var(--muted); text-align: center; }
.clocks input:checked + .clock { background: var(--gold); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.clocks input:focus-visible + .clock { outline: 3px solid #1d63b8; outline-offset: 2px; }
.lobby .btn.big { width: 100%; }
.friend h3 { margin: 4px 0 8px; text-align: center; width: auto; }
.join input { flex: 1; min-width: 0; max-width: 200px; height: 46px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 12px; font: 20px 'TPA Display', Impact, sans-serif; letter-spacing: .2em; text-transform: uppercase; background: #fff; color: var(--ink); }
.lobby.is-waiting > :not(.waiting):not(.me-card) { display: none; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.waiting[hidden] { display: none; }
.waiting b { font: 18px 'TPA Display', Impact, sans-serif; }
.waiting p { margin: 0; color: var(--muted); }
.wait-tom { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--ink); background: #dff2ff url('/pearlo/stickers/eyes-closed.webp') center/cover; animation: bob 1.6s ease-in-out infinite; }
.code { font: 32px 'TPA Display', Impact, sans-serif; letter-spacing: .15em; background: #fff; border: 3px dashed var(--ink); border-radius: 12px; padding: 4px 14px; }
.sub.small { font-size: 12px; margin: 0 auto; } #online-note.warn { color: #c62828; font-weight: 700; }

/* Ratings list */
.ratings { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 60dvh; overflow-y: auto; }
.ratings li { display: grid; grid-template-columns: 26px 36px 1fr auto auto; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 10px; }
.ratings li.empty { display: block; text-align: center; color: var(--muted); }
.ratings i { font-style: normal; font-family: 'TPA Display', Impact, sans-serif; }
.ratings .r-pic { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: #dff2ff center/cover; }
.ratings b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ratings small { color: var(--muted); font-size: 11px; }
.ratings .r-score { font: 18px 'TPA Display', Impact, sans-serif; }

/* End card rating */
.rating-up { display: inline-flex; align-items: baseline; gap: 6px; font: 40px 'TPA Display', Impact, sans-serif; }
.rating-up small { flex-basis: auto !important; font-size: 18px; } .rating-up.up small { color: #1f8a2e !important; } .rating-up.down small { color: #c62828 !important; }
.end-why, .end-line { color: var(--ink) !important; } .end-line { color: var(--wood-d) !important; }
.end-review { color: #e2601a; }
#game { --bs: min(88vw, calc(100dvh - 250px), 700px); }
@media (min-aspect-ratio: 4/3) and (min-width: 900px) { #game { --bs: min(calc(100dvh - 110px), 740px); } }
.bar > :first-child { justify-self: start; }
@media (max-width: 600px) {
  #game.is-online #me .who > div { display: none; }
  #game.is-online #me .pot { flex: 0 1 auto; }
  #game.is-online .clock-run { font-size: 17px; min-width: 64px; padding: 5px 6px; }
}

/* ── Title layouts ── */
@media (min-aspect-ratio: 3/2) and (min-width: 900px) {
  .dock { width: min(940px, 84vw); flex-direction: row; align-items: stretch; }
  .dock-main { width: auto; flex: 1.3; }
  .dock-icons { flex: 1.6; }
  .dock-icons .btn.tile { font-size: 10px; }
  .dock-icons .btn.tile { min-height: 76px; }
}

/* ── Board: white tournament frame, black ink edge (no photo texture) ── */
.board-wrap::before { content: ''; position: absolute; inset: calc(var(--bs) * -.035); border-radius: 12px; z-index: -1;
  background: #fff; box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px #c80f8a55; }
.board { border-radius: 4px; box-shadow: 0 0 0 2px #0006; }

/* Loading cover (11-25): the title waits until the face pictures are in, then fades in (game.js boot) */
.boot { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; transition: opacity .25s; }
#app:not(.booting) .boot { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
#app.booting .screen, #app.booting .back-hub { visibility: hidden; }
.boot-logo { font-family: 'TPA Display', system-ui, sans-serif; font-size: clamp(34px, 10vw, 60px); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.boot-logo b { color: var(--pink); font-weight: 400; }
.boot-dots { display: flex; gap: 8px; }
.boot-dots i { width: 14px; height: 14px; background: var(--ink); animation: boot-hop .9s ease-in-out infinite; }
.boot-dots i:nth-child(2) { background: #fff; outline: 2px solid var(--ink); animation-delay: .15s; }
.boot-dots i:nth-child(3) { animation-delay: .3s; }
.boot-txt { font-family: 'TPA HUD', system-ui, sans-serif; font-weight: 700; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
@keyframes boot-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .boot-dots i { animation: none; } }
