/* Tock party skin (owner: claude, Daniel 1615: "Jackbox/Kahoot style, fun colours, animations").
   Loaded last. Re-colours and re-shapes everything; the page grid (style.css "Game table layout") is untouched.
   Fonts are self-hosted (SIL OFL, licences next to the files). */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/fredoka-latin.woff2?v=59d6989cc7") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/nunito-latin.woff2?v=08f7d1338b") format("woff2"); }

:root {
  color-scheme: light;
  --tk-font-display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --tk-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pt-ink: #1d0b45;            /* outlines + chunky shadows */
  --pt-night: #2a0f63;          /* page */
  --pt-night-2: #4a1fa8;
  --pt-pink: #ff3d8b; --pt-yellow: #ffd23f; --pt-blue: #3fa7ff; --pt-green: #22c55e;
  --pt-orange: #ff8a3d; --pt-teal: #19d3c5; --pt-purple: #9b5cff; --pt-red: #f0334f; --pt-amber: #f59e0b;
  --pt-pop: 0 2px 0 var(--pt-ink);
  --pt-pop-sm: 0 1px 0 var(--pt-ink);
  --pt-line: 2px solid var(--pt-ink);

  --tk-bg: var(--pt-night); --tk-bg-2: #f1ecff; --tk-surface: #ffffff; --tk-border: #d8cdf7;
  --tk-text: var(--pt-ink); --tk-text-muted: #64558f;
  --tk-accent: var(--pt-pink); --tk-accent-ink: #ffffff;
  --tk-tile-face: #ffffff; --tk-tile-ink: var(--pt-ink);
  --tk-vowel: var(--pt-yellow); --tk-consonant: #ffffff; --tk-num-small: #8fd0ff; --tk-num-large: #ffb36b;
  --tk-good: #15a34a; --tk-bad: var(--pt-red); --tk-warn: var(--pt-amber);
  --tk-shadow: var(--pt-pop-sm);
  --tk-radius-sm: 12px; --tk-radius: 16px; --tk-radius-lg: 22px;
  --ink: var(--pt-ink); --muted: #64558f; --paper: #f1ecff; --line: #d8cdf7; --orange: var(--pt-pink); --blue: #e6f3ff; --green: #dcfce7;
}

/* ---------- Page ---------- */
:root, html { background: var(--pt-night); }
body {
  min-height: 100vh; font-family: var(--tk-font-body); color: #fff;
  background:
    radial-gradient(circle at 12% 8%, rgb(255 61 139 / .35), transparent 32%),
    radial-gradient(circle at 88% 18%, rgb(63 167 255 / .32), transparent 34%),
    radial-gradient(circle at 70% 92%, rgb(255 210 63 / .22), transparent 36%),
    radial-gradient(rgb(255 255 255 / .07) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(160deg, var(--pt-night-2), var(--pt-night) 55%, #1b0846);
  background-attachment: fixed;
}
:root { font-family: var(--tk-font-body); }
h1, h2, h3, h4, .brand-mark, .primary, .secondary, .tile, .score, .points, .round-tag, .share-code, .target strong, .round-clock strong { font-family: var(--tk-font-display); }
button, input, select { font-family: var(--tk-font-body); }

/* Buttons: chunky, outlined, press down */
.primary, .secondary, .tk-btn, #shuffle-tiles, .sound {
  border: var(--pt-line); border-radius: 999px; box-shadow: var(--pt-pop);
  font-family: var(--tk-font-display); font-weight: 500; letter-spacing: .01em;
  transition: transform .12s var(--tk-ease-pop), box-shadow .12s, background .15s, filter .15s;
}
.primary { background: var(--pt-pink); color: #fff; padding: 14px 24px; font-size: 17px; }
.primary:hover { background: #ff5c9e; transform: translateY(-2px) rotate(-1deg); box-shadow: 0 4px 0 var(--pt-ink); }
.secondary { background: #fff; color: var(--pt-ink); padding: 12px 18px; font-size: 15px; }
.secondary:hover { background: var(--pt-yellow); transform: translateY(-2px); box-shadow: 0 4px 0 var(--pt-ink); }
.primary:not(:disabled):active, .secondary:not(:disabled):active, #shuffle-tiles:not(:disabled):active { transform: translateY(5px); box-shadow: 0 0 0 var(--pt-ink); }
button:disabled { opacity: .45; }
.primary:disabled:hover, .secondary:disabled:hover { transform: none; box-shadow: var(--pt-pop); background: inherit; }
.quiet { color: inherit; font-weight: 600; font-size: 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 4px solid var(--pt-yellow); outline-offset: 3px; }
input, select { border: var(--pt-line) !important; border-radius: 14px; background: #fff; color: var(--pt-ink); font-weight: 600; }
input:focus { box-shadow: 0 0 0 4px rgb(255 210 63 / .7); }

/* ---------- Header + footer ---------- */
.site-header { border-bottom: 0; padding-block: 18px; }
.brand { color: #fff; }
.brand-mark { font-weight: 600; letter-spacing: 0; font-size: 44px; display: inline-flex; align-items: center; text-shadow: 0 2px 0 var(--pt-ink); }
.brand-mark > span:first-child { color: var(--pt-yellow); display: inline-block; animation: pt-wobble 3s ease-in-out infinite; }
.brand-dot { color: var(--pt-pink); }
.header-tag { color: rgb(255 255 255 / .7); }
.header-actions .quiet { color: #fff; }
.sound { background: #fff; color: var(--pt-ink); font-size: 14px; padding: 9px 16px; }
.sound[aria-pressed="true"] { background: var(--pt-green); color: #fff; }
footer { border-top: 0; color: rgb(255 255 255 / .65); font-size: 12px; }
footer > span:first-child, .footer-muted { color: #fff; }

/* ---------- Home ---------- */
.eyebrow { color: rgb(255 255 255 / .8); font-size: 12px; letter-spacing: .14em; }
.live-dot { background: var(--pt-green); box-shadow: 0 0 0 4px rgb(34 197 94 / .3); animation: pt-blink 1.4s ease-in-out infinite; }
h1 { color: #fff; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 0 var(--pt-ink); }
h1 em { font-family: var(--tk-font-display); font-style: normal; color: var(--pt-yellow); letter-spacing: 0; font-weight: 600; display: inline-block; transform: rotate(-2deg); }
.hero-description, .hero-notes { color: rgb(255 255 255 / .85); font-size: 16px; }
.hero-notes span { background: rgb(255 255 255 / .12); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.entry-card { background: #fff; color: var(--pt-ink); border: var(--pt-line); border-radius: var(--tk-radius-lg); box-shadow: 0 5px 0 var(--pt-ink); }
.entry-top { color: var(--muted); font-size: 13px; }
.step-badge { background: var(--pt-yellow); color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 999px; padding: 4px 10px; font-size: 11px; }
.entry-card label { font-size: 14px; font-weight: 600; }
.entry-card input { font-size: 17px; padding: 13px 14px; }
.or { color: var(--muted); font-family: var(--tk-font-display); font-style: normal; font-size: 14px; }
.join-controls input { font-size: 15px; letter-spacing: .12em; }
.format-control label { font-size: 13px; color: var(--muted); }
.format-control select { font-size: 14px; }
.form-error { color: var(--pt-red); font-weight: 600; }
.hero-art { background: var(--pt-blue); border: var(--pt-line); border-radius: 26px; box-shadow: 6px 8px 0 var(--pt-ink); color: var(--pt-ink); transform: rotate(1.5deg); }
.pill { background: #fff; border: 2px solid var(--pt-ink); font-weight: 600; font-size: 10px; }
.tiny-caps { font-weight: 600; }
.ring-bg { stroke: rgb(29 11 69 / .18); stroke-width: 12; }
.ring-track { stroke: var(--pt-pink); stroke-width: 12; }
.art-clock > div, .art-clock strong { color: var(--pt-ink); }
.art-clock strong { font-family: var(--tk-font-display); font-weight: 600; letter-spacing: 0; }
.art-clock strong span, .art-clock small { color: var(--pt-ink); font-weight: 600; }
.clock-spark { color: var(--pt-yellow); text-shadow: 0 2px 0 var(--pt-ink); animation: pt-spin 6s linear infinite; }
.art-word span { background: #fff; border: 2px solid var(--pt-ink); box-shadow: var(--pt-pop-sm); border-radius: 12px; font-family: var(--tk-font-display); font-weight: 600; animation: pt-bob 2.4s ease-in-out infinite; }
.art-word span:nth-child(2n) { animation-delay: .3s; }
.art-word span:nth-child(3n) { animation-delay: .6s; }
.art-word span:nth-child(2), .art-word.second span:nth-child(2) { background: var(--pt-yellow); }
.mini-avatar { border: 2px solid var(--pt-ink); background: var(--pt-yellow); }
.mini-avatar.peach { background: var(--pt-pink); color: #fff; }
.mini-avatar.mint { background: var(--pt-teal); }
.art-bottom p { color: var(--pt-ink); font-weight: 600; }
.floating-label { background: var(--pt-pink); border: var(--pt-line); border-radius: 14px; box-shadow: var(--pt-pop); font-family: var(--tk-font-display); font-weight: 500; animation: pt-float 3s ease-in-out infinite; }
.round-strip { border-top: 0; }
.round-strip > div { background: #fff; color: var(--pt-ink); border: var(--pt-line); border-radius: 20px; padding: 14px 18px; box-shadow: var(--pt-pop); flex: 1; }
.round-icon { background: var(--pt-blue); color: #fff; border: 2px solid var(--pt-ink); border-radius: 14px; font-family: var(--tk-font-display); font-weight: 600; }
.round-icon.orange { background: var(--pt-orange); }
.round-icon.green { background: var(--pt-green); }
.round-strip b { font-size: 16px; font-family: var(--tk-font-display); }
.round-strip small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Game shell: panels are white cards with thick outlines ---------- */
.play-area, .score-panel, .tk-info-panel, .tk-answers-panel {
  background: #fff; color: var(--pt-ink); border: var(--pt-line); border-radius: 24px; box-shadow: 0 4px 0 var(--pt-ink);
}
.tk-answers-panel, .tk-info-panel { box-shadow: 0 4px 0 var(--pt-ink); }
.play-area { padding: 26px; }
.room-bar h2, .room-bar .eyebrow { color: #fff; }
.room-bar h2 span { font-family: var(--tk-font-display); background: var(--pt-yellow); color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 12px; padding: 2px 10px; box-shadow: var(--pt-pop-sm); }
.room-actions .quiet { color: #fff; }
.tk-info-panel .room-bar h2, .tk-info-panel .room-bar .eyebrow, .tk-info-panel .room-actions .quiet { color: var(--pt-ink); }
.tk-info-panel .room-bar { border-bottom: 2px dashed var(--line); padding-bottom: 12px; }
.tk-info-panel .round-header h2, .round-header h2 { font-weight: 600; letter-spacing: 0; color: var(--pt-ink); }
.round-header .eyebrow, .panel-label { color: var(--muted); }
.round-tag { background: var(--pt-ink); color: #fff; border: 0; font-weight: 600; font-size: 12px; padding: 7px 12px; }
.round-description { color: var(--muted); font-size: 15px; font-weight: 500; }
.tie-break { background: var(--pt-yellow); border: 2px solid var(--pt-ink); font-weight: 600; }
.panel-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.score-note { border-top: 2px dashed var(--line); }
.score-note > span { color: var(--pt-pink); }
.score-note p, .connection { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- Players ---------- */
.player-row { position: relative; margin: 10px 0; padding: 8px 10px; border-radius: 16px; background: var(--paper); border: 2px solid transparent; transition: background .2s; }
.player-row.is-you { border-color: var(--pt-ink); background: #fff; box-shadow: var(--pt-pop-sm); }
.player-row.is-away { opacity: .55; }
.avatar { position: relative; height: 44px; width: 44px; border: 2px solid var(--pt-ink); overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; }
.player-row.is-ready .avatar { animation: pt-bounce .6s var(--tk-ease-pop); }
.player-name { font-size: 15px; font-weight: 600; }
.player-name small { font-size: 12px; font-weight: 600; color: var(--muted); }
.score { font-weight: 600; font-size: 26px; letter-spacing: 0; min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; }
.score.bump { animation: pt-bump .7s var(--tk-ease-pop); color: var(--pt-pink); }
.score-plus { position: absolute; right: 8px; top: -6px; background: var(--pt-green); color: #fff; border: 2px solid var(--pt-ink); border-radius: 999px; padding: 1px 8px; font: 600 14px/1.3 var(--tk-font-display); pointer-events: none; animation: pt-float-away 1.6s ease-out forwards; }
/* Champion crown (last game's winner, kept through Play again) */
.pt-crown { position: absolute; left: 50%; top: -17px; width: 30px; height: 22px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 2px 0 var(--pt-ink)); pointer-events: none; z-index: 1; }
.pt-crown.drop { animation: pt-crown-drop 1s var(--tk-ease-pop) both; }
.pt-champ-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); border: 2px solid var(--pt-ink); font: 600 11px/1.5 var(--tk-font-display); vertical-align: 2px; }

/* ---------- Tiles ---------- */
.tile-board { gap: 8px; perspective: 600px; }
.tile {
  position: relative; height: 66px; background: #fff; color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 14px;
  box-shadow: var(--pt-pop); font-family: var(--tk-font-display); font-weight: 600; font-size: 34px; will-change: transform;
}
.tile.vowel { background: var(--pt-yellow); border-color: var(--pt-ink); box-shadow: var(--pt-pop); }
.tile-board.numbers .tile { background: var(--pt-blue); color: #fff; text-shadow: 0 2px 0 var(--pt-ink); }
.tile-board.numbers .tile.large { background: var(--pt-orange); }
.tile.empty, .tile-board.numbers .tile.empty { background: rgb(29 11 69 / .06); color: rgb(29 11 69 / .25); border: 2px dashed rgb(29 11 69 / .25); box-shadow: none; text-shadow: none; }
.tile.deal { animation: pt-deal .55s var(--tk-ease-pop) both; }
.tile.flying { z-index: 2; }
.tile-board .tile:nth-child(9n+1).deal { --pt-tilt: -8deg; }
.tile-board .tile:nth-child(2n).deal { --pt-tilt: 9deg; }
#shuffle-tiles { background: var(--pt-purple); color: #fff; font-size: 17px; padding: 0 22px; min-block-size: 48px; box-shadow: var(--pt-pop); border: var(--pt-line); }
#shuffle-tiles:hover { background: #ad79ff; box-shadow: 0 4px 0 var(--pt-ink); transform: translateY(-2px); }
#shuffle-tiles:active { box-shadow: 0 0 0 var(--pt-ink); }
#shuffle-tiles::before { content: "🔀"; }

/* ---------- Clock ---------- */
.round-clock { width: 150px; height: 150px; border-radius: 50%; background: #fff; border: var(--pt-line); box-shadow: var(--pt-pop); }
.round-clock .ring-bg { stroke: var(--paper); stroke-width: 16; }
.round-clock .ring-track { stroke: var(--pt-green); stroke-width: 16; transition: stroke .4s; }
.round-clock.warm .ring-track { stroke: var(--pt-amber); }
.round-clock.urgent .ring-track { stroke: var(--pt-red); }
.round-clock strong { font-weight: 600; font-size: 52px; letter-spacing: 0; color: var(--pt-ink); }
.round-clock.urgent { animation: pt-throb 1s ease-in-out infinite; }
.round-clock.urgent strong { color: var(--pt-red); }
.tk-countin { background: #fff; }
.tk-countin__n { color: var(--pt-pink); text-shadow: 0 2px 0 var(--pt-ink); }
.round-clock.tk-clock { width: 190px; height: 190px; }
.target { color: var(--muted); font-weight: 600; font-size: 13px; }
.target strong { display: inline-block; margin-top: 8px; padding: 6px 22px; background: var(--pt-ink); color: var(--pt-yellow); border-radius: 18px; font-size: 54px; font-weight: 600; letter-spacing: .06em; box-shadow: 0 3px 0 var(--pt-pink); animation: pt-pop-in .6s var(--tk-ease-pop) both; }

/* ---------- Choosing tiles / ready ---------- */
.selection > p { color: var(--muted); font-size: 15px; font-weight: 600; }
.pick-buttons button { min-width: 140px; font-size: 20px; padding: 16px 22px; }
#vowel { background: var(--pt-yellow); color: var(--pt-ink); }
#consonant { background: var(--pt-blue); color: #fff; }
.number-pick { min-width: 96px !important; }
.number-pick:nth-child(5n+1) { background: var(--pt-blue); color: #fff; }
.number-pick:nth-child(5n+2) { background: var(--pt-green); color: #fff; }
.number-pick:nth-child(5n+3) { background: var(--pt-yellow); }
.number-pick:nth-child(5n+4) { background: var(--pt-orange); color: #fff; }
.number-pick:nth-child(5n+5) { background: var(--pt-pink); color: #fff; }
.tk-ready { background: var(--paper); box-shadow: none; border: 2px dashed var(--line); }
.tk-ready h3 { font-family: var(--tk-font-display); font-size: 26px; margin: 0; }
.tk-ready-roster li { background: #fff; border: 2px solid var(--line); font-weight: 600; }
.tk-ready-roster li[data-ready="true"] { border-color: var(--pt-green); box-shadow: none; animation: pt-pop-in .4s var(--tk-ease-pop); }
.tk-ready-roster li[data-ready="true"] strong { color: var(--tk-good); }
#ready { font-size: 22px; padding: 16px 34px; }
#ready[aria-pressed="false"] { background: var(--pt-green); color: #fff; animation: pt-glow 1.6s ease-in-out infinite; }
.tk-seg span { border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); font-size: 17px; }
.tk-seg input:checked + span { background: var(--pt-pink); color: #fff; box-shadow: inset 0 0 0 2px var(--pt-ink), var(--pt-pop-sm); }
.tk-seg legend { color: var(--muted); font-weight: 600; }

/* ---------- Lobby ---------- */
.lobby h2 { font-weight: 600; letter-spacing: 0; color: var(--pt-ink); font-size: 36px; }
.lobby p { color: var(--muted); font-size: 15px; font-weight: 500; }
.share-code { font-family: var(--tk-font-display); font-weight: 600; background: var(--pt-ink); color: var(--pt-yellow); border: 0; border-radius: 18px; box-shadow: 0 4px 0 var(--pt-pink); font-size: 40px; letter-spacing: .25em; }
.lobby #start { font-size: 22px; padding: 18px 36px; }

/* ---------- Answer form + words ---------- */
.answer-form input { font-family: var(--tk-font-display); font-size: 22px; letter-spacing: .1em; }
#save-answer { white-space: nowrap; }
.answer-hint, .submission-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.answer-hint.error { color: var(--pt-red); }
.tk-words-card, .tk-whiteboard, .tk-calculator { box-shadow: none; background: #fff; }
.tk-words-card > h3, .tk-own-result h3 { font-family: var(--tk-font-display); font-size: 22px; color: var(--pt-ink); letter-spacing: 0; text-transform: none; }
.candidate-list li, .tk-words-card li { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; font-family: var(--tk-font-display); }
.candidate-list li.is-new { animation: pt-slide-in .35s var(--tk-ease-pop) both; }
.tk-words-card li:first-child { background: #fff6cc; border-color: var(--pt-ink); box-shadow: var(--pt-pop-sm); }
.tk-word-points { background: var(--pt-ink); color: #fff; box-shadow: none; }
.tk-best-score { color: var(--pt-pink); }
.tk-best-score b { font-size: 2.2rem; text-shadow: 0 2px 0 var(--pt-ink); }

/* ---------- Numbers board ---------- */
.tk-number-keys button, .tk-operator-keys button { border: 2px solid var(--pt-ink); border-radius: 14px; box-shadow: var(--pt-pop-sm); font-weight: 600; }
.tk-number-keys button { background: var(--pt-blue); color: #fff; text-shadow: 0 2px 0 var(--pt-ink); }
.tk-number-keys button[data-large] { background: var(--pt-orange); }
.tk-number-keys .tk-result-tile, .tk-result-tile { background: var(--pt-green); color: #fff; box-shadow: var(--pt-pop-sm); }
.tk-operator-keys button[data-number-op] { background: var(--pt-yellow); color: var(--pt-ink); font-size: 26px; }
.tk-operator-keys #number-backspace, .tk-operator-keys #number-clear { background: #fff; color: var(--muted); }
.tk-step-list { background: var(--paper); border: 2px dashed var(--line); }
.tk-step-row { animation: pt-slide-in .35s var(--tk-ease-pop) both; }
.tk-step-row b { color: var(--pt-pink); }
.tk-calc-expression { background: var(--pt-ink); color: #fff; border-radius: 14px; }
.tk-calc-result[data-state="exact"] { color: var(--tk-good); animation: pt-bump .6s var(--tk-ease-pop); }
.tk-answer-locked { border: 2px solid var(--tk-good); box-shadow: none; background: #ecfdf3; }
.tk-auto-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--pt-amber); color: var(--pt-ink); border: 2px solid var(--pt-ink); font: 600 12px/1.4 var(--tk-font-display); }

/* ---------- Results ---------- */
.result-list { display: grid; gap: 10px; }
.result-row { border: 2px solid var(--pt-ink); border-radius: 18px; padding: 12px 14px; background: #fff; box-shadow: var(--pt-pop-sm); animation: pt-slide-in .45s var(--tk-ease-pop) both; animation-delay: calc(var(--i, 0) * 120ms); }
.result-row.is-scorer { background: #ecfdf3; }
.result-row b { font-size: 16px; font-family: var(--tk-font-display); }
.result-row small { font-size: 13px; font-weight: 600; color: var(--muted); }
.result-answer { font-family: var(--tk-font-display); font-weight: 500; }
.points { background: var(--pt-ink); color: #fff; border-radius: 12px; font: 600 18px/1 var(--tk-font-display); padding: 9px 12px; }
.result-row.is-scorer .points { background: var(--pt-green); border: 2px solid var(--pt-ink); animation: pt-pop-in .5s var(--tk-ease-pop) both; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
.solution { background: var(--paper); border: 2px dashed var(--line); border-radius: 16px; font-size: 15px; font-weight: 600; }
.solution b { color: var(--muted); font-size: 12px; }
.result-footer { color: var(--muted); font-size: 14px; font-weight: 600; }
.tk-own-result { background: var(--paper); }
.tk-own-result strong, .tk-own-result .points { color: var(--pt-pink); text-shadow: 0 2px 0 var(--pt-ink); }
.tk-discovery-group { border: 2px solid var(--line); box-shadow: none; border-radius: 16px; }
.tk-discovery-group:first-child { border-color: var(--pt-ink); box-shadow: var(--pt-pop-sm); background: #fff6cc; }
.tk-discovery-group[data-length] h4 b { color: var(--pt-pink); }
.tk-discoveries h3 { font-family: var(--tk-font-display); }

/* Word verdicts at the reveal (Daniel 1615): three looks that never get confused.
   real & scoring = green pill · real = plain, tap for meaning · not a word = red, struck, not tappable · can't make = amber, labelled */
.tk-result-candidates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-word { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--pt-ink); font: 500 14px/1.4 var(--tk-font-display); letter-spacing: .04em; }
.pt-word--best { background: #dcfce7; border-color: var(--tk-good); }
.pt-word--fake { background: #ffe4e8; border-color: var(--pt-red); color: #b0142d; }
.pt-word--cant { background: #fff4d6; border-color: var(--pt-amber); color: #8a5300; }
.pt-word small { font: 600 10px/1 var(--tk-font-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; display: inline-block; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font: 600 12px/1.3 var(--tk-font-body); color: var(--muted); }
.pt-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; border: 2px solid; }
.pt-legend .is-best::before { background: #dcfce7; border-color: var(--tk-good); }
.pt-legend .is-fake::before { background: #ffe4e8; border-color: var(--pt-red); }
.pt-legend .is-cant::before { background: #fff4d6; border-color: var(--pt-amber); }
.tk-scoring-word.pt-none { color: var(--muted); }

/* ---------- Final scores: podium + confetti ---------- */
.pt-finale { text-align: center; padding: 6px 0 10px; }
.pt-finale h2 { font-size: clamp(28px, 4vw, 44px); margin: 6px 0 4px; color: var(--pt-ink); animation: pt-pop-in .7s var(--tk-ease-pop) both; animation-delay: 1.6s; }
.pt-finale > p { color: var(--muted); font-size: 16px; font-weight: 600; margin: 0 auto 18px; max-width: 420px; animation: pt-fade .5s both; animation-delay: 1.9s; }
.pt-podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 2vw, 16px); min-height: 300px; margin: 0 auto 18px; max-width: 560px; }
.pt-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-step .avatar { width: clamp(54px, 9vw, 76px); height: clamp(54px, 9vw, 76px); box-shadow: var(--pt-pop-sm); animation: pt-pop-in .5s var(--tk-ease-pop) both; animation-delay: calc(var(--d) + .5s); }
.pt-step .pt-crown { width: 42px; height: 30px; top: -26px; }
.pt-step-name { font: 600 clamp(14px, 2vw, 18px)/1.15 var(--tk-font-display); color: var(--pt-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: pt-fade .4s both; animation-delay: calc(var(--d) + .6s); }
.pt-block { width: 100%; height: var(--h); display: grid; align-content: start; justify-items: center; padding-top: 10px; border: var(--pt-line); border-bottom-width: 0; border-radius: 18px 18px 0 0; color: #fff; text-shadow: 0 2px 0 var(--pt-ink); transform-origin: bottom; animation: pt-rise .8s var(--tk-ease-pop) both; animation-delay: var(--d); }
.pt-block b { font: 600 clamp(30px, 5vw, 46px)/1 var(--tk-font-display); }
.pt-block span { font: 600 13px/1.4 var(--tk-font-display); }
.pt-step[data-place="1"] .pt-block { background: var(--pt-pink); }
.pt-step[data-place="2"] .pt-block { background: var(--pt-blue); }
.pt-step[data-place="3"] .pt-block { background: var(--pt-orange); }
.pt-rest { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 420px; display: grid; gap: 6px; }
.pt-rest li { display: flex; justify-content: space-between; padding: 8px 14px; border-radius: 14px; background: var(--paper); font: 500 15px/1.3 var(--tk-font-display); animation: pt-slide-in .4s both; animation-delay: 1.8s; }
.pt-finale-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#play-again { font-size: 21px; padding: 16px 30px; background: var(--pt-green); }
.pt-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 20; }

/* ---------- Dialogs + toast ---------- */
dialog { background: #fff; color: var(--pt-ink); border: var(--pt-line); border-radius: 24px; box-shadow: 0 6px 0 var(--pt-ink); }
dialog::backdrop { background: rgb(29 11 69 / .6); }
dialog h2 { font-family: var(--tk-font-display); font-weight: 600; letter-spacing: 0; }
dialog p { color: var(--muted); font-size: 15px; }
dialog[open] { animation: pt-pop-in .35s var(--tk-ease-pop); }
.dialog-close { color: var(--pt-ink); }
.toast { background: var(--pt-ink); border: 2px solid #fff; border-radius: 999px; font-weight: 600; animation: pt-toast .4s var(--tk-ease-pop); }
/* Daniel 2348: the pink dotted underline read like a spellcheck error, so dictionary links now use a calm green dotted underline that goes solid on hover. */
.tk-word-link { text-decoration: underline dotted var(--tk-good); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tk-word-link:hover, .tk-word-link:focus-visible { color: var(--tk-good); text-decoration-style: solid; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .brand-mark { font-size: 36px; }
  .hero-copy h1 { font-size: 46px; }
  .play-area { padding: 18px; }
  .tile { height: 54px; font-size: 27px; border-width: 2.5px; border-radius: 11px; }
  .round-clock { width: 124px; height: 124px; }
  .round-clock strong { font-size: 42px; }
  .target strong { font-size: 42px; }
  .pick-buttons button { min-width: 120px; font-size: 18px; }
  .player-row { margin: 6px 0; }
  .round-strip > div { width: 100%; }
}
@media (max-width: 400px) {
  .tile { height: 44px; font-size: 22px; border-width: 2px; border-radius: 9px; box-shadow: 0 3px 0 var(--pt-ink); }
  .tile-board { gap: 4px; }
  .primary { padding: 12px 16px; font-size: 15px; }
  .share-code { font-size: 30px; }
  .pt-podium { min-height: 250px; }
}

/* ---------- Motion ---------- */
@keyframes pt-deal { 0% { transform: translateY(-60px) rotate(var(--pt-tilt, -6deg)) scale(.4); opacity: 0; } 60% { transform: translateY(6px) rotate(0) scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes pt-pop-in { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: none; } }
@keyframes pt-slide-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pt-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes pt-bump { 0%, 100% { transform: none; } 40% { transform: scale(1.45); } }
@keyframes pt-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-10px); } }
@keyframes pt-float-away { 0% { transform: translateY(6px) scale(.6); opacity: 0; } 20% { transform: none; opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes pt-crown-drop { 0% { transform: translate(-50%, -60px) rotate(-40deg); opacity: 0; } 60% { transform: translate(-50%, 4px) rotate(4deg); opacity: 1; } 100% { transform: translateX(-50%) rotate(-8deg); } }
@keyframes pt-throb { 50% { box-shadow: 0 3px 0 var(--pt-ink), 0 0 0 10px rgb(240 51 79 / .25); } }
@keyframes pt-glow { 50% { box-shadow: var(--pt-pop), 0 0 0 8px rgb(34 197 94 / .3); } }
@keyframes pt-wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
@keyframes pt-bob { 50% { transform: translateY(-5px); } }
@keyframes pt-float { 50% { transform: rotate(-7deg) translateY(-6px); } }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@keyframes pt-blink { 50% { opacity: .4; } }
@keyframes pt-toast { from { transform: translate(-50%, 30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Info box room bar (left column ≥1200 and the tablet strip): wrap, smaller controls, never spill into the board (round_ui 1628). */
.tk-info-panel { overflow: hidden; }
.tk-info-panel .room-bar { flex-wrap: wrap; gap: 10px; }
.tk-info-panel .room-bar > div:first-child { min-width: 0; }
.tk-info-panel .room-bar h2 { font-size: 18px; white-space: nowrap; }
.tk-info-panel .room-bar h2 span { font-size: 16px; padding: 1px 7px; letter-spacing: .08em; }
.tk-info-panel .room-actions { flex-wrap: wrap; gap: 8px; }
.tk-info-panel .room-actions .secondary { padding: 7px 12px; font-size: 13px; box-shadow: var(--pt-pop-sm); }
.tk-info-panel .room-actions .quiet { padding: 7px 4px; font-size: 13px; }
.tk-info-panel .round-description { font-size: 14px; overflow-wrap: anywhere; }
.pt-word--fake s { text-decoration: line-through 2px; }
.pt-word--fake s.tk-invalid-word { color: inherit; }
#shuffle-tiles { display: flex; margin: 4px auto 0; }
.answer-form input::placeholder { font: 500 15px/1.2 var(--tk-font-body); letter-spacing: 0; text-transform: none; }
.target strong { display: table; margin: 8px auto 0; }
.tk-operator-keys #number-backspace, .tk-operator-keys #number-clear { grid-column: span 2; font-size: 15px; }
/* Wider players column when there is no info box (lobby, finale), so "Alice (you)" isn't cut off. */
@media (min-width: 761px) { .game-layout:not(.has-info-panel):not(.has-answer-panel) { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); } }
.tk-settings { max-width: 520px; margin-inline: auto; }
/* Home on phones: chips wrap, the tilted preview card never pushes the page sideways (sweep @414/430). */
.hero-notes { flex-wrap: wrap; }
.home { overflow-x: clip; }
@media (max-width: 760px) { .hero-art { transform: rotate(.8deg); box-shadow: 4px 6px 0 var(--pt-ink); } }
@media (max-width: 480px) { .entry-buttons { flex-wrap: wrap; } .entry-buttons .or { display: none; } .join-controls { flex-basis: 100%; } .hero-copy { min-width: 0; } }
.player-name small .pt-champ-tag { margin: 0 2px 0 0; vertical-align: 0; }

/* Lighter weight pass (Daniel 1637: "everything is too thick"): headings 500, body 400, slimmer shadows. */
h1, .lobby h2, .pt-finale h2, .tk-info-panel .round-header h2, .round-header h2 { font-weight: 500; }
h1 { letter-spacing: 0; }
.brand-mark { font-weight: 500; }
body, .round-description, .lobby p, .selection > p, .answer-hint, .submission-count, .result-footer, .pt-finale > p, dialog p { font-weight: 400; }
.tk-countin__n, .tk-best-score b, .tk-own-result strong, .tk-own-result .points, .tk-answer-locked strong, .pt-block b, .target strong, .share-code, .round-clock strong, .score, .tile { font-weight: 500; }
.tk-scoring-word, .tk-calc-expression, .tk-calc-result { font-weight: 500; }
/* Default "bold" (700) on b/strong/h3/h4 reads heavy in Fredoka: settle them at 500. */
h2, h3, h4, b, strong, .result-row b, .round-strip b, .player-name, .tk-ready h3, .tk-words-card > h3, .tk-own-result h3, .tk-discoveries h3 { font-weight: 500; }
.panel-label, .eyebrow, .tiny-caps, .step-badge, .pill, .round-tag, .entry-card label { font-weight: 500; }
.tk-own-result .tk-scoring-word.pt-none { font-size: 1.4rem; color: var(--muted); text-shadow: none; }
.tk-own-result-points, .tk-own-result strong.tk-own-result-points { text-shadow: none; }

/* Keep the party colours while easing the heavy type and hard drop shadows. */
h1, .brand-mark, .clock-spark, .tk-countin__n, .tk-best-score b,
.tile-board.numbers .tile, .tk-number-keys button, .tk-own-result strong, .pt-block { text-shadow: none; }
.play-area, .score-panel, .tk-answers-panel, .tk-info-panel, .entry-card { box-shadow: 0 2px 0 var(--pt-ink); }

/* Word verdicts v2 (Daniel 1646): crossed out = doesn't exist (grey); red = real but can't be accepted (tap for why). Neither offers a definition. */
button.pt-word { cursor: help; font: inherit; font: 500 14px/1.4 var(--tk-font-display); letter-spacing: .04em; }
.pt-word--fake { background: #f3f1f8; border-color: #cfc8e3; color: #7a6f99; }
.pt-word--fake s.tk-invalid-word { color: inherit; text-decoration: line-through 2px; }
.pt-word--bad { background: #ffe4e8; border-color: var(--pt-red); color: #b0142d; }
.pt-why { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--pt-red); color: #fff; font: 600 11px/1 var(--tk-font-body); }
button.pt-word:hover, button.pt-word:focus-visible { transform: translateY(-1px); box-shadow: 0 2px 0 currentColor; }
.pt-legend .is-fake::before { background: #f3f1f8; border-color: #cfc8e3; }
.pt-legend .is-bad::before { background: #ffe4e8; border-color: var(--pt-red); }
#definition-dialog[data-verdict="bad"] { border-color: var(--pt-red); }
#definition-dialog[data-verdict="bad"] #definition-title { color: #b0142d; }
#definition-dialog[data-verdict="fake"] #definition-title { text-decoration: line-through 3px; color: #7a6f99; }
.tk-verdict { font-size: 16px; font-weight: 500; color: var(--pt-ink) !important; }

/* Final standings (Daniel 1658): everyone, top to bottom, under the podium. Ties share a place ("=3rd"). */
.pt-standings { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 440px; display: grid; gap: 6px; text-align: left; }
.pt-standings li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: var(--paper); border: 2px solid transparent; font: 500 16px/1.3 var(--tk-font-display); animation: pt-slide-in .4s var(--tk-ease-pop) both; animation-delay: calc(1.7s + var(--i) * 90ms); }
.pt-standings li[data-place="1"] { background: #fff6cc; border-color: var(--pt-ink); }
.pt-standings .avatar { width: 32px; height: 32px; border-width: 2px; }
.pt-rank { min-width: 3.2em; font-weight: 600; color: var(--muted); }
.pt-standings li[data-place="1"] .pt-rank { color: var(--pt-pink); }
.pt-standing-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-standings b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Phones (Daniel 1685): lighter, smaller type and slimmer buttons so the board has room. Desktop unchanged. */
@media (max-width: 760px) {
  body { font-size: 15px; }
  h1, h2, h3, h4, b, strong, .primary, .secondary, .tile, .score, .points, .round-tag, .player-name, .tk-ready h3, .tk-words-card > h3, .tk-own-result h3, .result-row b, .round-header h2, .lobby h2, .pt-finale h2 { font-weight: 500; }
  .primary, .secondary, .sound, #shuffle-tiles { box-shadow: 0 2px 0 var(--pt-ink); border-width: 2px; }
  .primary { padding: 10px 16px; font-size: 15px; }
  .secondary { padding: 8px 12px; font-size: 14px; }
  .primary:hover, .secondary:hover, #shuffle-tiles:hover { transform: none; box-shadow: 0 2px 0 var(--pt-ink); }
  #shuffle-tiles { min-block-size: 40px; font-size: 15px; padding: 0 16px; }
  #ready { font-size: 18px; padding: 12px 26px; }
  .lobby #start, #play-again { font-size: 18px; padding: 13px 26px; }
  .pick-buttons button { min-width: 104px; font-size: 16px; padding: 12px 16px; }
  .play-area, .score-panel, .tk-info-panel, .tk-answers-panel { box-shadow: 0 3px 0 var(--pt-ink); border-radius: 18px; }
  .play-area { padding: 14px; }
  .tile { font-weight: 500; box-shadow: 0 2px 0 var(--pt-ink); }
  .round-clock { width: 104px; height: 104px; box-shadow: 0 2px 0 var(--pt-ink); }
  .round-clock strong { font-size: 36px; font-weight: 500; }
  .round-clock .ring-bg, .round-clock .ring-track { stroke-width: 12; }
  .target strong { font-size: 34px; padding: 4px 16px; font-weight: 500; box-shadow: 0 2px 0 var(--pt-pink); }
  .answer-form input { font-size: 18px; padding: 10px 12px; }
  .round-header h2, .tk-info-panel .round-header h2 { font-size: 20px; }
  .lobby h2 { font-size: 26px; }
  .share-code { font-size: 30px; box-shadow: 0 3px 0 var(--pt-pink); }
  .score { font-size: 20px; }
  .avatar { width: 36px; height: 36px; border-width: 2px; }
  .player-name { font-size: 14px; }
  .candidate-list li, .tk-words-card li { min-block-size: 38px; font-size: 1rem; }
  .tk-best-score b { font-size: 1.6rem; text-shadow: none; }
  .tk-number-keys button, .tk-operator-keys button { min-block-size: 44px; border-width: 2px; box-shadow: 0 2px 0 var(--pt-ink); font-weight: 500; }
  .result-row { padding: 10px; box-shadow: 0 2px 0 var(--pt-ink); }
  .points { font-size: 15px; padding: 7px 9px; }
  .tk-own-result strong, .tk-own-result .points { font-size: 1.8rem; text-shadow: none; }
  .pt-block b { font-size: 28px; }
  .brand-mark { font-size: 32px; text-shadow: 0 2px 0 var(--pt-ink); }
  .hero-copy h1 { font-size: 38px; text-shadow: 0 3px 0 var(--pt-ink); }
}
@media (max-width: 760px) { .play-area { min-height: 0; } .tk-words-card, .tk-answers-panel { padding: 14px; } }

/* Show your working (Daniel 1693): every numbers answer at the reveal as whiteboard lines, one operation each. */
.result-row.has-working { flex-wrap: wrap; }
.result-row.has-working .result-answer { order: 3; flex: 1 1 100%; max-width: none; text-align: left; font-family: inherit; }
.tk-working { list-style: none; margin: 8px 0 0; padding: 10px 14px; display: grid; gap: 2px; background: #fff; border: 2px solid var(--line); border-radius: 12px; font-variant-numeric: tabular-nums; }
.tk-working li { display: grid; grid-template-columns: minmax(0, max-content) 1.2em auto; align-items: baseline; justify-content: start; column-gap: 8px; min-height: 30px; font-size: 18px; font-weight: 500; color: var(--pt-ink, var(--ink)); border-bottom: 1px dashed #e3e6f2; }
.tk-working li > span:first-child { white-space: nowrap; }
.tk-working li > span[aria-hidden] { text-align: center; color: var(--muted); }
.tk-working li b { font-family: var(--tk-font-display); font-size: 19px; font-weight: 600; }
.tk-working__total { grid-template-columns: auto auto 1fr !important; margin-top: 4px; padding-top: 6px; border-top: 2px solid var(--pt-ink, var(--ink)); border-bottom: 0; }
.tk-working__total > span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tk-working__total em { justify-self: end; font-style: normal; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff4d6; color: #7a4b00; white-space: nowrap; }
.tk-working__total.is-exact em { background: #dcfce7; color: #0b4a2a; }
.solution .tk-working { margin-top: 6px; }
.tk-own-result .tk-working { margin: 4px 0 8px; }
@media (max-width: 760px) { .tk-working { padding: 8px 10px; } .tk-working li { font-size: 16px; min-height: 28px; } .tk-working li b { font-size: 17px; } }

/* How to solve it (Daniel 1696): the possible solution stays behind a button until someone wants it. */
.tk-how { padding: 0; }
.tk-how > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; }
.tk-how > summary::-webkit-details-marker { display: none; }
.tk-how__label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font-family: var(--tk-font-display); font-size: 15px; font-weight: 500; box-shadow: 0 3px 0 var(--pt-ink); transition: transform .12s, box-shadow .12s; }
.tk-how__label::after { content: "▸"; transition: transform .2s; }
.tk-how[open] .tk-how__label::after { transform: rotate(90deg); }
.tk-how > summary:hover .tk-how__label { transform: translateY(-1px); box-shadow: 0 4px 0 var(--pt-ink); }
.tk-how > summary:active .tk-how__label { transform: translateY(2px); box-shadow: 0 1px 0 var(--pt-ink); }
.tk-how > summary:focus-visible { outline: 3px solid var(--pt-blue); outline-offset: 2px; }
.tk-how > summary small { color: var(--muted); font-size: 13px; font-weight: 600; }
.tk-how > b, .tk-how > .tk-working { margin-inline: 14px; }
.tk-how > b { display: block; }
.tk-how[open] { padding-bottom: 14px; }
.tk-how[open] > :not(summary) { animation: pt-fade .3s both; }
@media (max-width: 760px) { .tk-how__label { font-size: 14px; padding: 8px 14px; box-shadow: 0 2px 0 var(--pt-ink); } }

/* Clear all (Daniel 1718): wipes the whole whiteboard. A real button beside Undo line, coral so it reads as "start over". */
.tk-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-step-actions #save-answer { margin-left: auto; }
.tk-clear-all { display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 0 16px; border: 2px solid var(--pt-pink); border-radius: 999px; background: #fff; color: #c2185b; font-family: var(--tk-font-display); font-size: 15px; font-weight: 500; box-shadow: 0 2px 0 var(--pt-pink); cursor: pointer; }
.tk-clear-all::before { content: "✕"; font-size: 13px; }
.tk-clear-all:hover:not(:disabled) { background: #fff0f6; }
.tk-clear-all:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.tk-clear-all:disabled { opacity: .4; cursor: default; box-shadow: none; }
.tk-clear-all:focus-visible { outline: 3px solid var(--pt-blue); outline-offset: 2px; }
@media (max-width: 480px) { .tk-step-actions #save-answer { flex: 1 1 100%; margin-left: 0; } }

/* Leaving the table (Daniel 1741): a row slides out instead of vanishing. */
.player-row.is-leaving { animation: pt-row-out .42s ease-in forwards; pointer-events: none; }
@keyframes pt-row-out { to { opacity: 0; transform: translateX(24px); max-height: 0; margin-block: 0; padding-block: 0; } }
@media (prefers-reduced-motion: reduce) { .player-row.is-leaving { animation: none; display: none; } }

/* Lock in as final (Daniel 1750): looks unlike the line keys; armed state is unmistakable. */
#save-answer.tk-lock-final { white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
#save-answer.tk-lock-final.is-armed { background: var(--pt-yellow); color: var(--pt-ink); border-color: var(--pt-ink); box-shadow: 0 3px 0 var(--pt-ink); animation: pt-armed .9s ease-in-out infinite alternate; }
@keyframes pt-armed { to { box-shadow: 0 3px 0 var(--pt-ink), 0 0 0 5px rgba(255, 210, 63, .45); } }
.tk-final-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 480px) { .tk-final-note { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .tk-lock-final.is-armed { animation: none; } }

/* Live leaderboard (Daniel 1754): rank badge, gold leader row with crown, rows slide when places change. */
.player-row { display: flex; align-items: center; gap: 10px; }
.player-row .player-name { flex: 1; min-width: 0; }
.player-row .pt-rank { flex: 0 0 26px; box-sizing: border-box; padding: 0; aspect-ratio: 1; display: grid; place-items: center; width: 26px; height: 26px; min-width: 0; max-width: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--pt-ink); color: var(--pt-ink); font: 600 13px/1 var(--tk-font-display); font-variant-numeric: tabular-nums; }
.player-row.is-leader { background: #fff7d1; border-color: var(--pt-ink); }
.player-row.is-leader .pt-rank { background: var(--pt-yellow); }
.player-row.is-leader .score { color: #b45309; }
.player-row.is-moving { z-index: 2; }
.player-row.is-rising { box-shadow: 0 0 0 3px rgba(34, 197, 94, .45); }
.player-row.is-falling { opacity: .85; }

/* Phones: the leaderboard sits right under the board (above your words/result except while the clock runs) and reads bolder. */
@media (max-width: 760px) {
  .game-layout[data-phase]:not([data-phase="playing"]):not([data-phase="countin"]).has-answer-panel:not(.has-info-panel) { grid-template-areas: "board" "players" "answers"; }
  .game-layout[data-phase]:not([data-phase="playing"]):not([data-phase="countin"]).has-info-panel.has-answer-panel { grid-template-areas: "board" "players" "answers" "info"; }
  .score-panel { border-width: 3px; background: #fff; }
  .score-panel .panel-label { margin: -14px -14px 10px; padding: 10px 14px; border-radius: 15px 15px 0 0; background: var(--pt-ink); color: #fff; font-size: 13px; letter-spacing: .08em; }
  .score-panel .panel-label span { color: #fff; }
  .score-panel .score { font-size: 22px; }
  .score-panel .score-note { display: none; }
}

/* Update notice (Daniel 1759): a slim bar at the bottom; never reloads on its own. */
.tk-update-bar { position: fixed; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font-weight: 600; font-size: 14px; box-shadow: 0 3px 0 var(--pt-ink); animation: pt-fade .3s both; }
.tk-update-bar .primary { padding: 8px 16px; font-size: 14px; }
@media (max-width: 480px) { .tk-update-bar { border-radius: 18px; bottom: 10px; } }

/* Next-round vote (Daniel 1770): everyone taps; avatars tick off; the last tap moves on. */
.result-footer { flex-wrap: wrap; gap: 10px; }
.tk-next-vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin-left: auto; }
.tk-next-vote #next.is-voted { background: #dcfce7; color: #0b4a2a; border-color: var(--pt-ink); opacity: 1; margin-top: 6px; }
.tk-next-vote #next small { font-size: .8em; opacity: .8; }
.tk-next-count { margin: 0; font-size: 14px; color: var(--muted); }
.tk-next-count b { color: var(--pt-ink); font-variant-numeric: tabular-nums; }
.tk-next-roster { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; justify-content: flex-end; }
.tk-next-roster li { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); max-width: 160px; }
.tk-next-roster li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-next-roster .avatar { width: 26px; height: 26px; border-width: 2px; flex: none; }
.tk-next-roster li.is-ready { border-color: var(--pt-ink); background: #dcfce7; color: var(--pt-ink); }
.tk-next-roster li.is-ready::after { content: "✓"; position: absolute; left: 18px; top: -6px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--pt-green); color: #fff; font-size: 11px; border: 2px solid var(--pt-ink); animation: pt-pop-in .35s var(--tk-ease-pop) both; }
@media (max-width: 480px) { .tk-next-vote { margin-left: 0; width: 100%; justify-content: stretch; } .tk-next-vote #next { flex: 1 1 100%; } .tk-next-roster { justify-content: flex-start; } }

/* Ready-stage veil (Daniel 1776): letters stay blurred until the clock starts, so nobody gets a head start. */
.tile-board.is-veiled .tile:not(.empty) { color: transparent; text-shadow: 0 0 14px rgba(29, 11, 69, .55); filter: blur(1.5px); user-select: none; }
.tile-board.is-veiled.numbers .tile:not(.empty) { text-shadow: 0 0 14px rgba(255, 255, 255, .8); }
.tk-veil-note { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Same-colour tiles (Daniel 1776): vowels look like consonants; nothing relies on colour to tell them apart. */
.tk-plain-toggle { font-family: var(--tk-font-display); min-width: 44px; }
/* Daniel 1938: the button previews its own effect. A yellow A beside a white B; pressed (same colour) turns the A white. */
.tk-plain-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-left: 12px; padding-right: 12px; }
.tk-plain-toggle[aria-pressed="true"] { background: #fff; color: var(--pt-ink); }
.tk-mini-tile { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--pt-ink); border-radius: 5px; background: #fff; font-family: var(--tk-font-display); font-size: 12px; font-weight: 700; line-height: 1; transition: background-color .25s ease; }
.tk-mini-tile.is-vowel { background: var(--pt-yellow); }
.tk-plain-toggle[aria-pressed="true"] .tk-mini-tile.is-vowel { background: #fff; }
@media (max-width: 560px) {
  .site-header { gap: 12px; padding-inline: 12px; }
  .header-actions { gap: 8px; }
  .tk-plain-toggle { padding: 7px 8px; }
}
.tk-plain-tiles .tile.vowel { background: #fff; }
/* Daniel 1935: the home preview's yellow vowels (gOod, tIme) demo the Aa toggle, so the button does something on the menu too. */
.art-word span { transition: background-color .35s ease; }
.tk-plain-tiles .art-word span:nth-child(2) { background: #fff; }

/* Numbers veil + unsolvable card (Daniel 1825). */
.tk-unsolvable { border-style: solid; border-color: var(--pt-ink); background: #fff4d6; }
.tk-unsolvable b { color: #7a4b00; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.tk-unsolvable p { margin: 6px 0 0; font-weight: 600; }

/* Scratch work (Daniel 1836): everything a player tried, small and faded; removed or unfinished lines struck through. */
.tk-scratch { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(29, 11, 69, .04); font-size: 12px; color: var(--muted); }
.tk-scratch > span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.tk-scratch ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.tk-scratch li { white-space: nowrap; }
.tk-scratch li.is-removed { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .7; }
.tk-conundrum-answer { border-style: solid; }

/* Target reels (Daniel 1853): three 0–9 reels spin and stop left to right on the target. */
.tk-reels { display: flex !important; width: max-content; margin: 8px auto 0; gap: .06em; line-height: 1.1; }
.tk-reel { display: inline-block; height: 1.1em; overflow: hidden; }
.tk-reel__strip { display: flex; flex-direction: column; transform: translateY(calc((20 + var(--d)) * -1.1em)); }
.tk-reel__strip > span { display: block; height: 1.1em; text-align: center; font-variant-numeric: tabular-nums; }
.tk-reels.is-spinning .tk-reel__strip { animation: tk-reel-spin calc(900ms + var(--i) * 450ms) cubic-bezier(.15, .7, .25, 1.08) both; }
@keyframes tk-reel-spin { from { transform: translateY(0); filter: blur(1.5px); } 80% { filter: blur(0); } to { transform: translateY(calc((20 + var(--d)) * -1.1em)); } }
@media (prefers-reduced-motion: reduce) { .tk-reels.is-spinning .tk-reel__strip { animation: none; } }

/* Best possible word (Daniel 1875): gold burst + badge on the sole finder's row. */
.result-row.is-best-possible { background: #fff7d1; border-color: var(--pt-ink); box-shadow: 0 0 0 3px var(--pt-yellow), var(--pt-pop-sm); }
.tk-best-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font: 600 12px/1.2 var(--tk-font-display); animation: tk-best-pop .7s var(--tk-ease-pop) both; animation-delay: calc(var(--i, 0) * 120ms + 600ms); }
@keyframes tk-best-pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.15) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.result-row.is-best-possible { animation: pt-slide-in .45s var(--tk-ease-pop) both, tk-best-burst 1.1s ease-out both; animation-delay: calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms + 500ms); }
@keyframes tk-best-burst { 0% { box-shadow: 0 0 0 3px var(--pt-yellow), 0 0 0 0 rgba(255, 210, 63, .8); } 100% { box-shadow: 0 0 0 3px var(--pt-yellow), 0 0 0 18px rgba(255, 210, 63, 0); } }
.pt-word { white-space: nowrap; }
.result-row { position: relative; }
@media (prefers-reduced-motion: reduce) { .tk-best-badge, .result-row.is-best-possible { animation: none; } }

/* Round splash (Daniel 1890): a title card sweeps in when the round type changes; the conundrum one is the big show. */
.tk-splash { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(29, 11, 69, .35); pointer-events: none; animation: pt-fade .2s both; }
.tk-splash.is-out { animation: tk-splash-out .45s ease-in forwards; }
.tk-splash__card { display: grid; justify-items: center; gap: 6px; max-width: 100%; padding: 22px 34px; border: 3px solid var(--pt-ink); border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--pt-ink); text-align: center; animation: tk-splash-in .6s var(--tk-ease-pop) both; }
.tk-splash__icon { font-size: 40px; line-height: 1; }
.tk-splash__card strong { font: 600 clamp(34px, 9vw, 64px)/1 var(--tk-font-display); color: var(--pt-ink); letter-spacing: .02em; }
.tk-splash__card small { font-size: 15px; font-weight: 600; color: var(--muted); }
.tk-splash--conundrum .tk-splash__card { background: var(--pt-yellow); padding: 28px 40px; animation: tk-splash-in .6s var(--tk-ease-pop) both, tk-splash-wobble .5s ease-in-out .6s 2; }
.tk-splash--conundrum .tk-splash__icon { font-size: 56px; }
.tk-splash--conundrum .tk-splash__card strong { font-size: clamp(42px, 12vw, 84px); color: var(--pt-ink); }
.tk-splash--conundrum .tk-splash__card small { color: var(--pt-ink); }
@keyframes tk-splash-in { 0% { transform: translateX(-60vw) rotate(-14deg) scale(.6); opacity: 0; } 70% { transform: translateX(3vw) rotate(3deg) scale(1.05); opacity: 1; } 100% { transform: none; } }
@keyframes tk-splash-wobble { 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
@keyframes tk-splash-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tk-splash, .tk-splash__card, .tk-splash--conundrum .tk-splash__card { animation: none; } }

/* How to play (Daniel 1945/1950/1957): codex owns copy + markup; claude styles it. Calm and skimmable: compact type, thin colour accents, no big tiles. */
#rules.tk-rules { max-width: 680px; width: min(680px, calc(100vw - 32px)); padding: 24px 26px; }
.tk-rules .eyebrow { margin: 0; }
.tk-rules h2 { margin: 2px 0 14px; font-size: 24px; }
.tk-rules h3 { margin: 0 0 6px; font-family: var(--tk-font-display); font-size: 15px; font-weight: 600; color: var(--pt-ink); }
.tk-rules p, .tk-rules li { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: #463d63; }
.tk-rules strong { color: var(--pt-ink); font-weight: 600; }
.tk-rules-flow ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.tk-rules-flow li::marker { color: var(--pt-purple); font-weight: 700; }
.tk-rules-grid { display: grid; gap: 0; margin: 14px 0; border-top: 1px solid #e6e1f2; }
.tk-rule-card { --card: var(--pt-amber); padding: 10px 0 10px 14px; border-bottom: 1px solid #e6e1f2; box-shadow: inset 3px 0 0 var(--card); }
.tk-rule-card:nth-child(2) { --card: var(--pt-blue); }
.tk-rule-card:nth-child(3) { --card: var(--pt-pink); }
.tk-rule-card p:last-child { margin-bottom: 0; }
.tk-rules-bonus { padding: 10px 14px; border-radius: 12px; background: #fff6d6; }
.tk-rules-bonus h3::before { content: "★ "; color: var(--pt-amber); }
.tk-rules-bonus ul { margin: 0; padding-left: 1.2em; }
.tk-rules-bonus li::marker { color: var(--pt-amber); }
@media (max-width: 700px) { #rules.tk-rules { padding: 20px 16px; max-height: 88vh; } }
.tk-rules .dialog-close { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; top: 8px; right: 8px; line-height: 1; }
.tk-rules-lede { margin: 0 0 14px !important; font-size: 15px !important; }
.tk-rules-flow ol { gap: 6px; }
.tk-rule-card { padding: 12px 0 12px 16px; }
.tk-rule-card h3 { font-size: 16px; margin-bottom: 8px; }
.tk-rule-card h3 span { margin-left: 6px; font: 500 12px/1 var(--tk-font-body); color: #7a7096; }
.tk-rule-card b { display: block; margin-bottom: 2px; font: 600 11px/1.4 var(--tk-font-display); letter-spacing: .08em; text-transform: uppercase; color: #7a7096; }
.tk-rule-goal { color: var(--pt-ink) !important; font-weight: 600; margin-bottom: 10px !important; }
.tk-rule-how { margin-bottom: 10px; }
.tk-rule-how ol { margin: 0; padding-left: 1.3em; }
.tk-rule-how li { margin-bottom: 3px; }
.tk-rule-how li::marker { color: var(--card); font-weight: 700; }
.tk-rules-bonus li { margin-bottom: 4px; }
/* Daniel 1970: "How it works" folds away; Goal + Scoring stay visible. Revert: artifacts/retired/*-before-rules-dropdown-1970.* */
.tk-rule-how { margin-bottom: 8px; }
.tk-rule-how summary { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; list-style: none; font: 600 13px/1.4 var(--tk-font-display); color: var(--pt-ink); }
.tk-rule-how summary::-webkit-details-marker { display: none; }
.tk-rule-how summary span { text-decoration: underline dotted 1.5px; text-decoration-color: var(--card); text-underline-offset: 4px; }
.tk-rule-how summary:hover span { text-decoration-style: solid; }
.tk-rule-how summary::after { content: "▾"; font-size: 13px; color: var(--card); }
.tk-rule-how[open] summary::after { content: "▴"; }
.tk-rule-how summary:focus-visible { outline: 2px solid var(--pt-purple); outline-offset: 2px; border-radius: 4px; }
.tk-rule-how[open] ol { margin-top: 4px; }
/* Daniel 1975: while any modal dialog is open, the page behind can't scroll (wheel/touch over the backdrop) and dialog scrolling doesn't chain to it. */
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
/* Daniel 1978/1979: Scoring sits above the How it works dropdown. */
.tk-rule-card .tk-rule-score { margin-bottom: 2px !important; }
.tk-rule-card .tk-rule-how:last-child { margin-bottom: 0; }
/* Daniel 1991: best-possible bonus shown as its own +1 chip on the corner of the points box (box shows word points only). */
.result-row .points { position: relative; }
.tk-bonus-chip { position: absolute; top: -10px; right: -10px; padding: 3px 6px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-green); color: #fff; font: 700 11px/1 var(--tk-font-display); text-shadow: none; box-shadow: var(--pt-pop-sm); animation: pt-pop-in .4s var(--tk-ease-pop) both; animation-delay: calc(var(--i, 0) * 120ms + 800ms); }
.tk-own-result .tk-bonus-chip { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; font-size: 13px; padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) { .tk-bonus-chip { animation: none; } }
/* Daniel 1996: conundrum Give up (two taps), then a quiet waiting card; tiles re-blur via .is-veiled. */
.tk-give-up { display: block; margin: 10px auto 0; padding: 8px 16px; min-height: 44px; border: 0; background: transparent; color: #6b6290; font: 600 14px/1 var(--tk-font-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; }
.tk-give-up:hover { color: var(--pt-ink); }
.tk-give-up.is-armed { border: 2px solid var(--pt-red); border-radius: 999px; background: #fff0f2; color: #b0142d; text-decoration: none; }
.tk-gave-up { margin: 14px 0 6px; padding: 14px 16px; border: 2px dashed #b9b1d6; border-radius: 16px; background: #f7f4ff; text-align: center; }
.tk-gave-up b { display: block; font: 600 18px/1.2 var(--tk-font-display); color: var(--pt-ink); }
.tk-gave-up p { margin: 4px 0 0; color: #5b5280; font-size: 14px; }
/* Daniel 2002/2015: the live dot's 4px glow ring sat outside .home (overflow-x: clip) and was cut on the left; inset it, and stop flex squashing the dot on narrow phones. */
.live-dot { flex: none; margin-left: 4px; }
/* Daniel 2025: +1 chip uses the Best possible word badge colours so they read as the same thing. */
.tk-bonus-chip { background: var(--pt-yellow); color: var(--pt-ink); }

/* Daniel 2037: on phones the GOOD TIMES card sat below New game. Unwrap .hero-copy so its pieces join the .home grid, then order intro → card → New game → round strip. Desktop untouched. */
@media (max-width: 760px) {
  .home { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { max-width: 520px; }
  .hero-art { order: 1; margin-top: 30px; }
  .hero-copy > .entry-card { order: 2; margin-top: 40px; }
  .round-strip { order: 3; margin-top: 35px; }
}
/* Daniel 2043: "Standard match · 10 rounds" is the longest option; on narrow phones stack the label and give the select the full width so it never truncates. */
@media (max-width: 440px) { .format-control { flex-direction: column; align-items: stretch; gap: 8px; } .format-control select { margin-left: 0; width: 100%; max-width: none; } }
/* Daniel 2056/2059/2064: keep the lobby QR below the player rows inside the Players card; show it on TVs/laptops only. */
.tk-qr { display: none; margin: 16px 0 8px; }
@media (min-width: 1000px) {
  .tk-qr:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; background: #fff; border: 2px solid var(--pt-ink); border-radius: 24px; box-shadow: 0 2px 0 var(--pt-ink); }
  .tk-qr__img { width: 100%; max-width: 200px; aspect-ratio: 1; background: #fff; border: var(--pt-line); border-radius: 16px; box-shadow: 0 4px 0 var(--pt-ink); padding: 4px; }
  .tk-qr__img svg { display: block; width: 100%; height: 100%; }
  .tk-qr figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 220px; }
  .tk-qr figcaption b { display: block; font-family: var(--tk-font-display); font-size: 20px; color: var(--pt-ink); margin-bottom: 2px; }
}
/* Arriving from a QR or invite link: say which room, so the only job left is a name. */
.tk-join-hint { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #fff6d6; border: 2px solid var(--pt-ink); color: var(--pt-ink); font-size: 14px; line-height: 1.45; }
.entry-card.is-joining .join-controls button { background: var(--pt-yellow); }
/* Daniel 2076: arrived from a QR/invite with no saved name. Ask for one and point at the name box (the code is already filled in). */
.tk-join-hint__ask { display: block; font-family: var(--tk-font-display); font-size: 20px; margin-bottom: 2px; }
.entry-card.needs-name #name { border-color: var(--pt-pink) !important; box-shadow: 0 0 0 4px #ff3d8b33; animation: tk-name-nudge 1.6s ease-in-out 3; }
@keyframes tk-name-nudge { 50% { box-shadow: 0 0 0 9px #ff3d8b22; } }
@media (prefers-reduced-motion: reduce) { .entry-card.needs-name #name { animation: none; } }
.entry-card.is-joining .format-control { display: none; } /* joiners don't pick the match length; the host already did */
/* Daniel 2081: small "Change name" link. Desktop: right of "Same tiles. Same clock." in the Players panel. Phones: under the Players card (the score note is hidden there). */
.tk-rename { margin-left: auto; flex: none; background: transparent; border: 0; padding: 8px 4px; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.tk-rename:hover { color: var(--pt-ink); }
.tk-rename--mobile { display: none; }
@media (max-width: 760px) { .tk-rename--mobile { display: block; order: 2; justify-self: center; margin: -8px auto 0; color: #e6dcff; font-size: 14px; } .tk-rename--mobile:hover { color: #fff; } }
#rename-dialog { max-width: 400px; }
#rename-dialog h2 { margin: 0 0 18px; font-size: 26px; }
#rename-dialog input { font-size: 17px; }
.tk-rename-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
/* Daniel 2091: room not found. One notice (red edge), empty code box glowing so the next step is obvious. */
.entry-card.room-gone .tk-join-hint { background: #ffe3ea; border-color: #b4234f; }
.entry-card.room-gone .tk-join-hint__ask { color: #9b1c43; }
.entry-card.room-gone #code { border-color: var(--pt-pink) !important; box-shadow: 0 0 0 4px #ff3d8b33; }
/* Daniel 2104: errors in the New game card use the same box as "Room not found" (red edge), sitting at the top of the card. */
.tk-entry-error { background: #ffe3ea; border-color: #b4234f; }
.tk-entry-error:empty { display: none; }
.tk-entry-error .tk-join-hint__ask { color: #9b1c43; }
/* Daniel 2111: match-length pill in the lobby card's top-right corner (host taps to cycle; guests see a live label). */
.tk-format-cycle { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; white-space: nowrap; }
.tk-format-cycle span { font-size: 16px; line-height: 1; }
.tk-format-cycle.is-static { box-shadow: none; border-style: dashed; color: var(--muted); cursor: default; }
@media (max-width: 760px) { .tk-format-cycle { position: static; margin: 0 auto 22px; } }
/* Daniel 2141: "Show more" in Dictionary discoveries, styled like the How to play "How it works" dropdown. */
.tk-more-toggle { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--pt-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.tk-more-toggle span { text-decoration: none; font-weight: 600; } /* Daniel 2363: no underline, the ▾/▴ arrow is the affordance */
.tk-more-toggle::after { content: "▾"; font-size: .9em; }
.tk-more-toggle[aria-expanded="true"]::after { content: "▴"; }
.tk-more-toggle:hover span { color: var(--pt-pink); }
.tk-discovery-more { margin-top: 8px; padding-top: 8px; border-top: 2px dashed #e4ddf6; }
/* Daniel 2166/2172: lobby voting. Home switch, lobby banner, ballot chips (Ready-roster style), leader/tie highlight, host tie picker. */
.tk-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 6px 14px 6px 6px; border: 2px solid var(--pt-ink); border-radius: 999px; background: #fff; color: var(--pt-ink); font-weight: 700; box-shadow: 0 2px 0 var(--pt-ink); cursor: pointer; }
.tk-switch__knob { width: 40px; height: 24px; border-radius: 999px; background: #e4ddf6; position: relative; transition: background .2s; }
.tk-switch__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--pt-ink); box-sizing: border-box; transition: transform .2s var(--tk-ease-pop, ease); }
.tk-switch[aria-checked="true"] .tk-switch__knob { background: var(--pt-green); }
.tk-switch[aria-checked="true"] .tk-switch__knob::after { transform: translateX(16px); }
.tk-vote-control { margin-top: 10px; }
@media (max-width: 440px) { .tk-vote-control { flex-direction: row; align-items: center; } .tk-switch { margin-left: auto; } }
.tk-vote-banner { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 8px 14px; border-radius: 999px; background: #fff6d6; border: 2px solid var(--pt-ink); color: var(--pt-ink) !important; font-weight: 700; font-size: 14px; }
.tk-vote-seg legend small { font-weight: 500; margin-left: 6px; color: var(--muted); }
.tk-vote-seg label { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.tk-vote-seg label.is-leading > span { box-shadow: inset 0 0 0 3px var(--pt-green), var(--pt-pop-sm); }
.tk-vote-seg label.is-tied > span { box-shadow: inset 0 0 0 3px var(--pt-yellow); }
.tk-ballots { display: flex; justify-content: center; flex-wrap: wrap; min-height: 24px; font-style: normal; }
.tk-ballot { margin: 0 -4px; }
.tk-ballot .avatar { width: 24px; height: 24px; border-width: 2px; }
.tk-ballot.is-new { animation: pt-pop-in .35s var(--tk-ease-pop, ease) both; }
.tk-voting > p { margin-top: 4px; }
#start small { font-size: .78em; font-weight: 600; opacity: .85; }
.tk-tie-dialog { max-width: 420px; }
.tk-tie-dialog h2 { margin: 0 0 6px; font-size: 26px; }
.tk-tie-dialog .tk-seg { margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .tk-ballot.is-new { animation: none; } .tk-switch__knob, .tk-switch__knob::after { transition: none; } }
.tk-tie-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tk-tie-options button { flex: 1 1 90px; min-height: 52px; font-size: 18px; }
.tk-voting.is-locked .tk-vote-seg { opacity: .75; }
/* Ballot faces are .avatar spans inside .tk-seg labels; undo the option-button span styling on them. */
.tk-seg .tk-ballot .avatar { display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; min-inline-size: 0; padding: 0; border-radius: 50%; box-shadow: none; font-size: 9px; overflow: hidden; }
.tk-seg .tk-ballot .avatar img { width: 100%; height: 100%; }
/* Daniel 2179: "Match length" / "Players vote on settings" read as faint; keep them a touch smaller than "Your name" but bolder and darker. */
.entry-card .format-control label { font-size: 14px; font-weight: 700; color: #3d2f6e; letter-spacing: .01em; }
/* Daniel 2187: the spinning ✦ is gone from the lobby; pull the content up into its space. */
.lobby { padding-top: 12px; }
/* Lobby jump audit (Daniel 2263): no sticky board in the lobby (a growing Players list slid it down), and a steady Let's play width. */
.game-layout[data-phase="lobby"] #play-area { position: relative; top: auto; } /* relative, not static: .tk-format-cycle anchors to it (Daniel 2345) */
.lobby #start { width: min(100%, 400px); font-variant-numeric: tabular-nums; }
.lobby > .eyebrow:first-child, .lobby > .tk-format-cycle + .eyebrow { margin-top: 0; }
@media (max-width: 760px) { .lobby { padding-top: 0; } .tk-format-cycle { margin-bottom: 14px; } }
/* Daniel 2196: on wide screens the home page hugged the middle. Let it use the width (up to 1600px, header and footer too; Daniel 2199 "a tad further") and open the gap between the intro and the GOOD TIMES card. Same layout, same order. */
@media (min-width: 1100px) {
  main:has(> #home:not([hidden])), body:has(#home:not([hidden])) footer, body:has(#home:not([hidden])) .site-header { max-width: 1600px; }
  .home { column-gap: clamp(65px, 11vw, 220px); overflow-clip-margin: 24px; } /* let the tilted card's LIVE MULTIPLAYER label overhang (there's a 55px+ gutter here) */
}
/* Daniel 2205: every discoveries header on one line ("6 letters    6 of 24 · Show more ▾"), however narrow the card. */
.tk-discovery-group h4 { flex-wrap: nowrap; min-width: 0; }
.tk-discovery-group h4 b, .tk-discovery-group h4 small { white-space: nowrap; }
.tk-discovery-group h4 small { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.tk-discovery-group h4 .tk-more-toggle { min-height: 0; }
/* Daniel 2221: a second, compact target down by the calculator controls, so it stays in sight while you work (same dark/yellow look as the big one). */
.tk-target-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; background: var(--pt-ink); color: var(--pt-yellow); box-shadow: 0 3px 0 var(--pt-pink); }
.tk-target-mini small { font-size: 10px; letter-spacing: .12em; color: #cfc4f5; font-weight: 600; }
.tk-target-mini b { font-family: var(--tk-font-display); font-size: 24px; letter-spacing: .12em; line-height: 1; font-weight: 600; }
/* Daniel 2228: give "Next round →" the same breathing room the green Ready state got (gap above it), and a touch more between the button and the player chips. */
.tk-next-vote { row-gap: 12px; }
.tk-next-vote #next { margin-top: 6px; }
.tk-next-vote { column-gap: 20px; } /* codex 2240: more room between Next round and "1/3 ready" */
/* Daniel 2243: small red "Turn voting off" under the voting banner (host only, before 3 players ever join). */
.tk-vote-head { display: flex; flex-direction: column; align-items: center; margin: 0 auto 14px; overflow: hidden; }
.tk-vote-head .tk-vote-banner { margin: 0; }
.tk-voting-off { display: block; margin: 0 auto; padding: 4px 6px; min-height: 28px; overflow: hidden; background: none; border: 0; color: #c0264f; font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; opacity: .8; cursor: pointer; }
.tk-voting-off:hover, .tk-voting-off:focus-visible { opacity: 1; color: #9b1c43; }
.tk-voting-off.is-armed { opacity: 1; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 800; text-decoration: none; }
/* Daniel 2339: the lobby room code is a click/tap-to-copy button (codex: behaviour in app.js; claude: this look). Same box as before,
   plus a faint copy icon (::after), a hover lift, a yellow focus ring, and a pink "Copied ✓" chip on the top edge while .is-copied (::before). */
button.share-code { position: relative; display: block; width: 100%; max-width: 310px; margin: 20px auto; padding: 15px 44px; line-height: 1.2; text-align: center; text-indent: .25em; cursor: copy; transition: transform .15s ease, box-shadow .15s ease; }
button.share-code::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: currentColor; opacity: .45; transition: opacity .15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='3'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%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='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='3'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E") center / contain no-repeat; }
button.share-code:hover { background: var(--pt-ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--pt-pink); }
button.share-code:hover::after, button.share-code:focus-visible::after { opacity: .9; }
button.share-code:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pt-pink); }
button.share-code:focus-visible { outline: 3px solid var(--pt-yellow); outline-offset: 4px; }
button.share-code::before { content: "Copied ✓"; position: absolute; top: 0; left: 50%; padding: 4px 10px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-pink); color: #fff; box-shadow: var(--pt-pop-sm); font: 600 12px/1 var(--tk-font-display); letter-spacing: .04em; text-indent: 0; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .12s ease, transform .2s var(--tk-ease-pop, ease); }
button.share-code.is-copied::before { opacity: 1; transform: translate(-50%, -60%); }
button.share-code.is-copied::after { opacity: .9; }
@media (max-width: 760px) { button.share-code { padding: 13px 40px; } button.share-code:hover { box-shadow: 0 3px 0 var(--pt-pink); transform: none; } }
@media (prefers-reduced-motion: reduce) { button.share-code, button.share-code::before { transition: none; } button.share-code:hover, button.share-code:not(:disabled):active { transform: none; } }
/* Daniel 2375/2384: solved-in time, slim. Green text, no pill; only rendered when the player solved it. */
.tk-time { margin-left: 8px; color: #15803d; font: 600 13px/1 var(--tk-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-own-time { margin: 2px 0 0; color: #15803d; font: 600 15px/1.2 var(--tk-font-display); font-variant-numeric: tabular-nums; }
.tk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Daniel 2411: numbers fastest-solve +1 (codex: unique earliest exact manual solve among 2+ solvers; ties → none). Reuses the best-word badge + the +1 chip; the winner's ⚡ time goes bold. */
.tk-time.is-fastest { font-weight: 800; color: #166534; }
/* Daniel 2433: the crown on the avatar = current score leader (live). The reigning champion (last game's winner, p.champion) gets a gold 🏆 badge after the name
   and "Reigning champ" on the line below, so the two never look the same. A long name truncates; the tag never does. */
.player-name .pn-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.player-name .pn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-name .pt-champ-tag { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-left: 0; padding: 0; font-size: 12px; line-height: 1; vertical-align: 0; border-width: 1.5px; border-color: #c99a06; background: #fff4c2; box-shadow: none; } /* Daniel 2458: lighter, not bold */
.pt-champ-line { color: #a16207; font-weight: 800; }
.pt-champ-tag.drop { animation: pt-pop-in .5s var(--tk-ease-pop) both; }
@media (prefers-reduced-motion: reduce) { .pt-champ-tag.drop { animation: none; } }
/* Daniel 2659-2684: SOLO CHALLENGE on the home page. Desktop/tablet: a white card (same family as New game) under the GOOD TIMES card, filling the
   space beside New game, so the page gets no taller. Phones (≤760px): no extra card; a quiet link at the foot of New game switches THE SAME card into
   solo mode (.entry-card.is-solo). Friends mode is always the default; invite links win (no solo link while .is-joining). */
.hero-side { align-self: start; display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.hero-side > .hero-art { align-self: stretch; }
.tk-solo { background: #fff; color: var(--pt-ink); border: var(--pt-line); border-radius: 22px; box-shadow: 0 5px 0 var(--pt-ink); padding: 20px 22px 18px; }
.tk-solo__head { display: flex; align-items: center; gap: 12px; }
.tk-solo__badge, .entry-top .tk-solo-badge { font: 600 11px/1 var(--tk-font-body); letter-spacing: .14em; background: var(--pt-teal); color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 999px; padding: 6px 10px; box-shadow: 0 2px 0 var(--pt-ink); white-space: nowrap; }
.tk-solo h2 { margin: 0; font: 500 22px/1.15 var(--tk-font-display); letter-spacing: 0; }
.tk-solo h2 em { font-style: normal; color: var(--pt-pink); }
.tk-solo__lede { margin: 10px 0 14px; font-size: 14px; color: #5b4b8a; line-height: 1.5; }
.tk-solo__row { display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap; }
.tk-len__label { font-size: 14px; font-weight: 700; color: #3d2f6e; }
.tk-solo__go { margin-left: auto; min-height: 48px; background: var(--pt-teal); color: var(--pt-ink); border: var(--pt-line); border-radius: 999px; padding: 12px 22px; font: 500 17px/1 var(--tk-font-display); box-shadow: 0 4px 0 var(--pt-ink); white-space: nowrap; }
.tk-solo__go:hover { background: #3fe0d3; }
.tk-solo__go:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pt-ink); }
.tk-solo__go:focus-visible, .tk-len button:focus-visible, .tk-solo-link__btn:focus-visible, .tk-solo-form__back:focus-visible { outline: 3px solid var(--pt-yellow); outline-offset: 3px; }
.tk-solo__rules { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #5b4b8a; }
/* 5 | 10 selector: the vote switch's shape, but neutral (no green "on"); a white pill slides under the chosen length. Radio-group semantics (codex 2665). */
.tk-len { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 108px; min-height: 46px; padding: 4px; border: var(--pt-line); border-radius: 999px; background: #e4ddf6; box-shadow: 0 2px 0 var(--pt-ink); }
.tk-len__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; border: var(--pt-line); box-sizing: border-box; transition: transform .22s var(--tk-ease-pop, ease); pointer-events: none; }
.tk-len[data-value="10"] .tk-len__thumb { transform: translateX(100%); }
.tk-len button { position: relative; min-width: 0; padding: 0; background: none; border: 0; border-radius: 999px; box-shadow: none; color: #7a6aa8; font: 600 18px/1 var(--tk-font-display); }
.tk-len button[aria-checked="true"] { color: var(--pt-ink); }
.tk-len button:not(:disabled):active { transform: none; }
/* Phone-only pieces stay out of the way on wider screens. */
.tk-solo-link, .tk-solo-only { display: none; }
@media (max-width: 760px) {
  .hero-side { display: contents; }
  .tk-solo { display: none; }
  .tk-solo-link { display: block; margin: 16px 0 0; padding-top: 10px; border-top: 2px dashed #e4ddf6; text-align: center; }
  .tk-solo-link__btn { min-height: 44px; padding: 6px 8px; background: none; border: 0; box-shadow: none; color: #5b4b8a; font-size: 15px; font-weight: 600; }
  .tk-solo-link__btn b { color: var(--pt-ink); text-decoration: underline; text-decoration-color: var(--pt-teal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .entry-card.is-joining .tk-solo-link, .entry-card.room-gone .tk-solo-link { display: none; }
  .entry-card.is-solo .tk-friends-only, .entry-card.is-solo > .format-control, .entry-card.is-solo .entry-buttons, .entry-card.is-solo .tk-solo-link, .entry-card.is-solo #join-hint { display: none !important; }
  .entry-card.is-solo .tk-solo-only { display: inline-block; }
  .entry-card.is-solo .entry-top span.tk-solo-only:not(.step-badge) { display: inline; }
  .tk-solo-form .format-control { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .tk-solo-form .format-control label { margin: 0; }
  .tk-solo-form .tk-solo__rules { gap: 2px 14px; font-size: 13px; }
  .tk-solo-form__btns { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 16px; }
  .tk-solo-form__btns .tk-solo__go { margin: 0; width: 100%; padding: 15px; }
  .tk-solo-form__back { min-height: 44px; color: #5b4b8a !important; font-size: 15px !important; font-weight: 600; }
  .entry-card.is-solo .tk-solo-form { animation: pt-pop-in .35s var(--tk-ease-pop, ease) both; }
}
@media (prefers-reduced-motion: reduce) { .tk-len__thumb { transition: none; } .entry-card.is-solo .tk-solo-form { animation: none; } }
/* Tablets/small laptops: the right column is narrower and the GOOD TIMES card taller, so tighten the solo card to keep it level with New game. */
@media (min-width: 761px) and (max-width: 1100px) { .hero-side { gap: 30px; } .tk-solo { padding: 16px 18px 14px; } .tk-solo__lede { display: none; } .tk-solo__head { margin-bottom: 12px; } .tk-solo h2 { font-size: 20px; } .tk-solo__rules { margin-top: 10px; font-size: 12px; } }
/* Solo game screen (Daniel 2661): no room code, invite, QR or "same tiles" note; a SOLO CHALLENGE title instead. */
.tk-solo-bar { display: none; }
body.solo-game .tk-solo-bar { display: block; }
body.solo-game .tk-room-id, body.solo-game #invite, body.solo-game #room-qr-card, body.solo-game .score-note > span, body.solo-game .score-note > p, body.solo-game .panel-label #player-count { display: none !important; }
body.solo-game .tk-solo-bar h2 { margin: 0; }
/* Auto-pick: the real picker buttons, disabled, with the chosen one popping on each deal (data-seq changes → re-rendered → animation replays). */
.tk-autopick { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 6px 14px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-teal); color: var(--pt-ink); font: 600 13px/1 var(--tk-font-body); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 0 var(--pt-ink); }
.tk-autopick__dots { display: inline-flex; gap: 3px; }
.tk-autopick__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: tk-dot 1s ease-in-out infinite; }
.tk-autopick__dots i:nth-child(2) { animation-delay: .15s; } .tk-autopick__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tk-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.tk-solo-pick .pick-buttons button:disabled { opacity: .55; cursor: default; }
.tk-solo-pick .pick-buttons button.is-auto { opacity: 1; outline: 3px solid var(--pt-yellow); outline-offset: 3px; animation: tk-autopress .3s var(--tk-ease-pop, ease) both; }
@keyframes tk-autopress { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(3px) scale(.96); box-shadow: 0 0 0 var(--pt-ink); } 100% { transform: translateY(0) scale(1); } }
/* Ready: one big button, then the 3-second count-in. */
.tk-ready--solo { text-align: center; }
.tk-ready--solo p { max-width: 420px; margin-left: auto; margin-right: auto; }
#ready.tk-ready-go { min-width: 220px; font-size: 26px; padding: 18px 40px; background: var(--pt-green); color: #fff; border: var(--pt-line); box-shadow: 0 5px 0 var(--pt-ink); animation: pt-glow 1.6s ease-in-out infinite; }
#ready.tk-ready-go:disabled { animation: none; opacity: .7; }
/* Finale: your score, Play again, Challenge friends. */
.tk-solo-finale { text-align: center; }
.tk-solo-score { display: inline-flex; flex-direction: column; align-items: center; margin: 14px auto 6px; padding: 18px 34px 14px; background: var(--pt-ink); color: var(--pt-yellow); border-radius: 24px; box-shadow: 0 5px 0 var(--pt-pink); animation: pt-pop-in .6s var(--tk-ease-pop, ease) both; }
.tk-solo-score strong { font: 600 72px/1 var(--tk-font-display); }
.tk-solo-score span { margin-top: 4px; color: #cfc4f5; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tk-solo-finale .pt-finale-actions { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 14px; }
/* Daniel 4711/4719: red Leave spans both buttons; the white card gets a little more room */
.tk-solo-finale { padding-block: 22px 30px; }
.tk-solo-finale .tk-solo-leave { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 0; padding: 12px 26px; border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-red); color: #fff; font: 500 19px/1 Fredoka, sans-serif; box-shadow: 0 3px 0 var(--pt-ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.tk-solo-finale .tk-solo-leave:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 4px 0 var(--pt-ink); }
.tk-solo-finale .tk-solo-leave:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pt-ink); }
.tk-solo-finale .tk-solo-leave:focus-visible { outline: 3px solid var(--pt-yellow, #ffd23f); outline-offset: 3px; }
.tk-solo-finale .tk-solo-leave:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) { .tk-solo-finale .pt-finale-actions { grid-template-columns: 1fr; } .tk-solo-finale .pt-finale-actions > * { width: 100%; } }
.tk-solo-finale .pt-finale-actions .tk-solo__go { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tk-autopick__dots i, .tk-solo-pick .pick-buttons button.is-auto, #ready.tk-ready-go, .tk-solo-score { animation: none; } }
/* Solo numbers deal in one go, so the auto-chosen mix is shown on the Ready card. */
.tk-picked { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 6px 6px 6px 14px; border: 2px solid var(--pt-ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: #5b4b8a; box-shadow: 0 2px 0 var(--pt-ink); animation: pt-pop-in .45s var(--tk-ease-pop, ease) both; }
.tk-picked b { padding: 5px 12px; border-radius: 999px; background: var(--pt-ink); color: var(--pt-yellow); font: 600 15px/1 var(--tk-font-display); }
@media (prefers-reduced-motion: reduce) { .tk-picked { animation: none; } }
/* Daniel 2785-2806: SOLO PERSONAL BEST (1A sticker + 2B avatar coin). Saved on this device only (localStorage), separately for 5 and 10 rounds.
   Gold ★ (never 🏆, which means "reigning champ"). Sticker: top-right corner of the solo card (desktop) / New game card in solo mode (phone). */
.tk-solo, .entry-card.is-solo { position: relative; }
.pb-sticker { position: absolute; top: -20px; right: 10px; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 6px 12px 7px; background: linear-gradient(180deg, #ffe066, #ffc21a); color: var(--pt-ink); border: var(--pt-line); border-radius: 14px; box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(6deg); pointer-events: none; }
.pb-sticker small { font: 700 9px/1 var(--tk-font-body); letter-spacing: .14em; color: #7a5200; white-space: nowrap; }
.pb-sticker b { font: 600 22px/1.1 var(--tk-font-display); white-space: nowrap; }
.pb-sticker.is-empty { background: #fff; border-style: dashed; transform: rotate(4deg); }
.pb-sticker.is-empty b { font-size: 17px; color: #5b4b8a; }
.pb-sticker.bump { animation: pb-bump .45s var(--tk-ease-pop, ease); }
@keyframes pb-bump { 50% { transform: rotate(6deg) scale(1.08); } }
.tk-solo__head { padding-right: 150px; }
@media (max-width: 1100px) { .tk-solo__head { padding-right: 136px; } }
.pb-sticker--card { display: none; }
@media (max-width: 760px) { .entry-card.is-solo .pb-sticker--card { display: flex; top: -20px; right: 10px; } .entry-card.is-solo .entry-top span.tk-solo-only:not(.step-badge) { display: none !important; } }
/* 2B: a gold coin with your best on the bottom corner of YOUR avatar (crown stays on top). */
.pb-coin { position: absolute; right: -7px; bottom: -5px; min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; background: linear-gradient(180deg, #ffe066, #ffc21a); border: 2px solid var(--pt-ink); color: var(--pt-ink); font: 600 11px/1 var(--tk-font-display); z-index: 1; }
/* Solo finale: NEW PERSONAL BEST tag + previous best line. */
.pb-newbest { display: block; width: max-content; margin: 8px auto 0; padding: 7px 16px; border: var(--pt-line); border-radius: 999px; background: linear-gradient(180deg, #ffe066, #ffc21a); color: var(--pt-ink); font: 600 15px/1 var(--tk-font-display); letter-spacing: .06em; box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(-2deg); animation: pt-pop-in .6s var(--tk-ease-pop, ease) .3s both; }
.pb-prev { color: #7a5200 !important; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pb-sticker.bump, .pb-newbest { animation: none; } }
/* Tablets: smaller sticker so the solo title keeps room (codex 2826 edge fix follow-up). */
@media (min-width: 761px) and (max-width: 900px) { .tk-solo .pb-sticker { top: -30px; transform: rotate(6deg) scale(.82); transform-origin: top right; } .tk-solo .pb-sticker.is-empty { transform: rotate(4deg) scale(.82); } .tk-solo__head { padding-right: 0; margin-top: 14px; } }

/* Narrow phones / Safari text zoom (Daniel #countdown 3132): keep badges on one line, let the note wrap beside them,
   and keep the solo link's arrow attached to its words. */
.entry-top { flex-wrap: wrap; row-gap: 8px; }
.entry-top .step-badge, .entry-top .tk-solo-badge { white-space: nowrap; flex: none; }
.entry-top > span:not(.step-badge) { flex: 1 1 140px; min-width: 0; }
.tk-solo-link__btn b { white-space: nowrap; }
.tk-switch, .tk-switch__text { white-space: nowrap; }
.format-control.tk-vote-control label { min-width: 0; }

/* Daniel #countdown 3155: the tilted GOOD TIMES card and its LIVE MULTIPLAYER label were cut off on the right.
   .home clips sideways overflow, and Safari ignores overflow-clip-margin, so keep the card and label fully inside instead. */
@media (min-width: 761px) {
  .hero-side { padding-right: 22px; }
  .hero-art .floating-label { right: -10px; }
}

/* ---- Chaos mode (claude, Daniel #tock 3440-3445) ------------------------------------------------
   The home card flips (app.js flipChaos) to a dark "chaos twin": plum face, hazard edge, rule cards.
   Name / Start / Join are shared with the classic face. */
.tk-chaos-toggle { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: var(--pt-line); border-radius: 999px; background: #22104a; color: var(--pt-yellow); font: 600 14px/1 var(--tk-font-display); letter-spacing: .02em; box-shadow: 0 2px 0 var(--pt-ink); cursor: pointer; transition: transform .15s var(--tk-ease-pop, ease), background .15s; }
.tk-chaos-toggle:hover { transform: rotate(-3deg) scale(1.04); }
.tk-chaos-toggle:focus-visible { outline: 3px solid var(--pt-pink); outline-offset: 3px; }
.tk-chaos-toggle__chaos, .tk-chaos-only { display: none; }
.entry-card.is-chaos .tk-chaos-toggle { background: var(--pt-yellow); color: var(--pt-ink); }
.entry-card.is-chaos .tk-chaos-toggle__classic, .entry-card.is-chaos .tk-classic-only { display: none; }
.entry-card.is-chaos .tk-chaos-toggle__chaos { display: inline; }
.entry-card.is-chaos .entry-top span.tk-chaos-only { display: inline; }
.entry-card.is-joining .tk-chaos-toggle { display: none; }

.entry-card.is-flipping { pointer-events: none; will-change: transform; }
.entry-card.is-chaos { position: relative; background: #1b0d3c; color: #fff; border-color: var(--pt-ink); overflow: hidden; }
.entry-card.is-chaos::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: repeating-linear-gradient(-45deg, var(--pt-yellow) 0 12px, var(--pt-ink) 12px 24px); }
.entry-card.is-chaos .entry-top { color: #cbbdf5; }
.entry-card.is-chaos .entry-top .step-badge { background: var(--pt-pink); color: #fff; }
.entry-card.is-chaos label, .entry-card.is-chaos .format-control label, .entry-card.is-chaos .or { color: #efe9ff; }
.entry-card.is-chaos > .format-control, .entry-card.is-chaos .pb-sticker { display: none !important; }
.entry-card.is-chaos #create { background: linear-gradient(95deg, var(--pt-pink), #ff8a3d); }

.tk-chaos { display: grid; gap: 14px; margin: 4px 0 18px; }
.tk-chaos[hidden] { display: none; }
.tk-chaos__title { margin: 0; font: 700 34px/0.95 var(--tk-font-display); letter-spacing: .04em; color: #fff; text-shadow: 3px 0 0 var(--pt-pink), -3px 0 0 var(--pt-teal); animation: tk-chaos-glitch 1.6s steps(2, end) 2; }
.tk-chaos__title span { margin-left: .3em; color: var(--pt-yellow); text-shadow: none; }
@keyframes tk-chaos-glitch { 0%, 100% { transform: none; } 30% { transform: translate(2px, -1px) skewX(-4deg); } 60% { transform: translate(-2px, 1px); } }
.tk-chaos__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-chaos-rule { display: grid; gap: 6px; align-content: start; text-align: left; padding: 14px; min-height: 0; border: 2px solid #5b3fa0; border-radius: 16px; background: #2b1859; color: #e6defc; box-shadow: none; font: 500 13px/1.35 var(--tk-font-body); cursor: pointer; transition: transform .18s var(--tk-ease-pop, ease), background .18s, border-color .18s; }
.tk-chaos-rule b { font: 600 17px/1.15 var(--tk-font-display); color: #fff; }
.tk-chaos-rule:hover { border-color: #8f72e0; }
.tk-chaos-rule[aria-checked="true"] { background: var(--pt-yellow); border-color: var(--pt-ink); color: #3d2f6e; box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(-1deg); }
.tk-chaos-rule[aria-checked="true"] b { color: var(--pt-ink); }
.tk-chaos-rule:focus-visible { outline: 3px solid var(--pt-pink); outline-offset: 3px; }
.tk-chaos__len { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: #efe9ff; }
.entry-card[data-chaos-face="hardcore"] .tk-chaos__len { display: none; }
.tk-chaos .format-control { margin: 0; }
.tk-chaos-seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 108px; min-height: 46px; padding: 4px; border: var(--pt-line); border-radius: 999px; background: #3a2470; box-shadow: 0 2px 0 var(--pt-ink); }
.tk-chaos-seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--pt-yellow); border: var(--pt-line); box-sizing: border-box; transition: transform .22s var(--tk-ease-pop, ease); pointer-events: none; }
.tk-chaos-seg[data-value="5"] .tk-chaos-seg__thumb { transform: translateX(100%); }
.tk-chaos-seg button { position: relative; min-width: 0; padding: 0; background: none; border: 0; border-radius: 999px; box-shadow: none; color: #cbbdf5; font: 600 18px/1 var(--tk-font-display); }
.tk-chaos-seg button[aria-checked="true"] { color: var(--pt-ink); }
.tk-chaos-seg button:focus-visible { outline: 3px solid var(--pt-pink); outline-offset: 3px; }
/* Lobby: breathing room between the chaos pill and SAVE A SEAT… (Daniel #tock 3634).
   A bottom margin on the original inline-flex pill did not affect the following line. */
.lobby > .tk-chaos-pill { display: flex; width: max-content; margin: 0 auto 22px; }
@media (max-width: 760px) { .lobby > .tk-chaos-pill { margin-bottom: 16px; } }
.tk-chaos-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: var(--pt-line); border-radius: 999px; background: #22104a; color: var(--pt-yellow); font: 600 13px/1 var(--tk-font-display); box-shadow: 0 2px 0 var(--pt-ink); white-space: nowrap; }
@media (max-width: 480px) { .tk-chaos__rules { grid-template-columns: 1fr; } .tk-chaos__title { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .tk-chaos__title { animation: none; } .tk-chaos-toggle, .tk-chaos-rule, .tk-chaos-seg__thumb { transition: none; } .tk-chaos-toggle:hover { transform: none; } }
/* Hardcore reminders (claude, Daniel #tock 3474): skull splash when the round type changes + a hazard strip
   above the round header for the whole round. */
.tk-splash--hardcore .tk-splash__card { position: relative; overflow: hidden; background: #1b0d3c; border-color: var(--pt-ink); padding-top: 30px; animation: tk-splash-in .6s var(--tk-ease-pop) both, tk-hardcore-shake .4s ease-in-out .6s 2; }
.tk-splash--hardcore .tk-splash__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(-45deg, var(--pt-yellow) 0 12px, var(--pt-ink) 12px 24px); }
.tk-splash--hardcore .tk-splash__card strong { color: #fff; text-shadow: 3px 0 0 var(--pt-pink), -3px 0 0 var(--pt-teal); }
.tk-splash--hardcore .tk-splash__card small { color: var(--pt-yellow); font-size: 17px; }
@keyframes tk-hardcore-shake { 0%, 100% { transform: none; } 25% { transform: rotate(-2deg) translateX(-3px); } 75% { transform: rotate(2deg) translateX(3px); } }
.tk-hardcore-strip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; padding: 7px 14px; border: var(--pt-line); border-radius: 999px; background: repeating-linear-gradient(-45deg, #22104a 0 14px, #2b1859 14px 28px); color: var(--pt-yellow); font: 600 14px/1.1 var(--tk-font-display); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 0 var(--pt-ink); }
@media (prefers-reduced-motion: reduce) { .tk-splash--hardcore .tk-splash__card { animation: none; } }

/* What's-new banner on the home hero (claude, Daniel #tock 3549). */
.tk-news { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; padding: 8px 14px 8px 8px; border: var(--pt-line); border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font: 600 14px/1.25 var(--tk-font-display); box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(-1deg); animation: tk-news-pop .6s var(--tk-ease-pop, ease) both; }
.tk-news__tag { padding: 4px 9px; border-radius: 999px; background: var(--pt-pink); color: #fff; font-size: 11px; letter-spacing: .14em; }
.tk-news b { font-weight: 700; }
@keyframes tk-news-pop { from { opacity: 0; transform: translateY(-8px) rotate(-4deg) scale(.9); } to { opacity: 1; transform: rotate(-1deg); } }
@media (max-width: 480px) { .tk-news { font-size: 13px; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .tk-news { animation: none; } }
/* Daniel 3554: the blinking live dot moved from the eyebrow into the NEW banner to pull the eye up there. */
.tk-news .live-dot { width: 10px; height: 10px; margin-left: 4px; }
.tk-news__item { white-space: nowrap; }
.tk-news__item + .tk-news__item::before { content: "·"; margin-right: 8px; opacity: .6; }
@media (max-width: 480px) { .tk-news { gap: 6px 10px; } .tk-news__item + .tk-news__item::before { display: none; } }
/* Straight once it has landed: a resting tilt blurs small text (codex 3555). */
.tk-news { transform: none; }
@keyframes tk-news-pop { from { opacity: 0; transform: translateY(-8px) rotate(-3deg) scale(.92); } to { opacity: 1; transform: none; } }
/* Phones: one line, no paragraphing (Daniel 3556); the solo-bonus item is dropped to make room. */
@media (max-width: 480px) { .tk-news { flex-wrap: nowrap; gap: 8px; font-size: 13px; max-width: 100%; } .tk-news__item--wide { display: none; } }
/* Daniel 3557: crisper and lighter. Body font instead of the display face; no faux-bold. */
.tk-news { font: 600 14px/1.25 var(--tk-font-body); -webkit-font-smoothing: antialiased; }
.tk-news b { font-weight: 700; }
.tk-news__tag { font-weight: 700; }
@media (max-width: 480px) { .tk-news { font-size: 13px; } }
.tk-news b { font-weight: inherit; }
/* Daniel 3562: keep the slant. Only the yellow pill behind is tilted (a pseudo-element); the text stays straight, so it stays crisp. */
.tk-news { position: relative; isolation: isolate; background: none; border-color: transparent; box-shadow: none; }
.tk-news::before { content: ""; position: absolute; inset: 0; z-index: -1; border: var(--pt-line); border-radius: inherit; background: var(--pt-yellow); box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(-1.5deg); }
/* Daniel 3566: whole banner slanted again, text included. A static rotate after the pop-in (animation fill "backwards",
   not "both") lets the browser re-draw the text crisply instead of keeping a blurry animated layer. */
.tk-news { background: var(--pt-yellow); border-color: var(--pt-ink); box-shadow: 0 3px 0 var(--pt-ink); transform: rotate(-1.5deg); animation: tk-news-pop2 .6s var(--tk-ease-pop, ease) backwards; }
.tk-news::before { content: none; }
@keyframes tk-news-pop2 { from { opacity: 0; transform: translateY(-8px) rotate(-4deg) scale(.92); } to { opacity: 1; transform: rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .tk-news { animation: none; } }
/* Daniel 3569: same size, more aggressive. Neon green with a dark rim (it sits on yellow), a glowing pulse ring and a faster, harder blink. */
.tk-news .live-dot { background: #2dff6a; box-shadow: 0 0 0 2px var(--pt-ink), 0 0 8px 3px rgb(45 255 106 / .9); animation: tk-led 0.9s steps(1, end) infinite, tk-led-glow 0.9s ease-out infinite; }
@keyframes tk-led { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
@keyframes tk-led-glow { 0% { box-shadow: 0 0 0 2px var(--pt-ink), 0 0 4px 1px rgb(45 255 106 / .9); } 30% { box-shadow: 0 0 0 2px var(--pt-ink), 0 0 12px 5px rgb(45 255 106 / .95); } 100% { box-shadow: 0 0 0 2px var(--pt-ink), 0 0 4px 1px rgb(45 255 106 / .6); } }
@media (prefers-reduced-motion: reduce) { .tk-news .live-dot { animation: none; } }
/* Daniel 3572: no hard blink. Back to the original smooth 1.4 s fade; keeps the brighter neon + a glow that breathes with it. */
.tk-news .live-dot { animation: pt-blink 1.4s ease-in-out infinite, tk-led-breathe 1.4s ease-in-out infinite; }
@keyframes tk-led-breathe { 0%, 100% { box-shadow: 0 0 0 2px var(--pt-ink), 0 0 10px 4px rgb(45 255 106 / .95); } 50% { box-shadow: 0 0 0 2px var(--pt-ink), 0 0 3px 1px rgb(45 255 106 / .5); } }
@media (prefers-reduced-motion: reduce) { .tk-news .live-dot { animation: none; } }

/* Quiet "Tock is now an app" touches (Daniel #tock 3665: text, not buttons). app.js shows them only where installing works. */
.site-header { position: relative; }
.tk-app-hint { position: absolute; top: calc(100% - 6px); right: max(24px, 3vw); z-index: 4; display: flex; align-items: flex-start; gap: 6px; max-width: 300px; margin: 0; color: rgb(255 255 255 / .82); font: 600 13px/1.35 var(--tk-font-body); text-align: right; pointer-events: none; }
.tk-app-hint[hidden], .tk-app-note[hidden] { display: none; }
.tk-app-hint__arrow { order: 2; flex: none; width: 30px; height: 26px; margin-top: -10px; color: var(--pt-yellow); }
.tk-app-hint b { color: #fff; }
.tk-app-note { color: var(--pt-yellow); font-weight: 700; letter-spacing: .02em; }
.tk-app-note span { opacity: .9; }
@media (max-width: 760px) { .tk-app-hint { right: 16px; max-width: 230px; font-size: 12px; } }
@media (max-width: 760px) { footer:has(.tk-app-note:not([hidden])) { flex-wrap: wrap; row-gap: 10px; } footer .tk-app-note { order: -1; flex-basis: 100%; text-align: center; } }
.tk-app-hint.no-arrow .tk-app-hint__arrow { display: none; }

/* ---- Daily Tock (claude, Daniel #tock 4729-4774): home card (mock A), banner, results v3, played-with board ---- */
.hero-art.tk-daily { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tk-daily .dl-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tk-daily .dl-num { text-align: center; font: 600 64px/1 Fredoka, sans-serif; color: var(--pt-ink); }
.tk-daily .dl-num small { display: block; margin-bottom: 6px; font: 600 13px Nunito, sans-serif; letter-spacing: .2em; color: var(--pt-ink); opacity: .7; }
.tk-daily .dl-strip { display: flex; gap: 10px; justify-content: center; }
.tk-daily .dl-strip i { display: grid; place-items: center; width: 58px; height: 64px; border: 2px solid var(--pt-ink); border-radius: 12px; background: #fff; color: var(--pt-ink); font: 600 20px Fredoka, sans-serif; font-style: normal; box-shadow: 0 3px 0 var(--pt-ink); }
.tk-daily .dl-strip i:nth-child(odd) { transform: rotate(-3deg); } .tk-daily .dl-strip i:nth-child(even) { transform: rotate(2deg); }
.tk-daily .dl-strip i.y { background: var(--pt-yellow, #ffd23f); } .tk-daily .dl-strip i.p { background: var(--pt-pink, #ff3d8b); color: #fff; }
.tk-daily .dl-line { margin: 0; text-align: center; font: 500 17px Nunito, sans-serif; color: var(--pt-ink); }
.tk-daily .dl-go { border: 2px solid var(--pt-ink); border-radius: 999px; background: var(--pt-yellow, #ffd23f); color: var(--pt-ink); font: 500 22px Fredoka, sans-serif; padding: 13px 32px; box-shadow: 0 4px 0 var(--pt-ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.tk-daily .dl-go:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--pt-ink); } .tk-daily .dl-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pt-ink); }
.tk-daily .dl-go:focus-visible, .tk-news__go:focus-visible, .dl-copy:focus-visible, .dl-hide:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tk-daily .dl-foot { display: flex; justify-content: space-between; gap: 12px; font: 600 13px Nunito, sans-serif; color: var(--pt-ink); opacity: .85; }
.tk-daily .dl-foot[hidden] { display: none; }
.tk-daily.is-done .dl-strip { opacity: .55; }
.tk-news__go { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .tk-daily .floating-label { bottom: auto; top: -14px; right: -6px; } .tk-daily .dl-strip i { width: 48px; height: 54px; font-size: 17px; } .tk-daily .dl-num { font-size: 54px; } }
/* results card v3 */
.dl-share { margin: 6px auto 24px; display: inline-flex; flex-direction: column; gap: 10px; align-items: center; padding: 16px 22px; border: 2px dashed var(--pt-ink); border-radius: 16px; background: #fffbe8; }
.dl-share--compact { margin: 0; padding: 12px 14px; background: #fffbe8; }
.dl-rounds { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dl-rounds span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dl-rounds i { display: grid; place-items: center; width: 54px; height: 50px; border: 2px solid var(--pt-ink); border-radius: 9px; font: 600 24px Fredoka, sans-serif; font-style: normal; color: var(--pt-ink); }
.dl-rounds i.g { background: #22c55e; color: #fff; } .dl-rounds i.a { background: var(--pt-yellow, #ffd23f); } .dl-rounds i.r { background: var(--pt-red); color: #fff; }
.dl-rounds b { font: 500 11px Nunito, sans-serif; color: #5a4a8a; }
.dl-rank { font: 600 14px Nunito, sans-serif; color: var(--pt-ink); }
.dl-copy { border: 2px solid var(--pt-ink); border-radius: 999px; background: #fff; color: var(--pt-ink); font: 500 16px Fredoka, sans-serif; padding: 8px 18px; box-shadow: 0 3px 0 var(--pt-ink); cursor: pointer; }
.dl-wait { color: var(--muted); }
#daily-next:disabled { opacity: .7; cursor: default; }
@media (max-width: 480px) { .dl-rounds i { width: 46px; height: 44px; font-size: 20px; } .dl-rounds { gap: 6px; } }
/* played-with board */
.dl-friends { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line); }
.dl-friends ol { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.dl-friends li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); font: 500 15px Fredoka, sans-serif; }
.dl-friends li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-friends li em { font: 500 13px Nunito, sans-serif; font-style: normal; color: var(--muted); }
.dl-friends__empty { justify-content: center !important; color: var(--muted); font: 500 13px Nunito, sans-serif !important; }
.dl-hide { border: 0; background: none; padding: 0; color: var(--muted); font: 500 12px Nunito, sans-serif; text-decoration: underline; cursor: pointer; }
#daily-practice { font-size: 21px; padding: 16px 30px; background: var(--pt-green); }
@media (max-width: 760px) { #daily-practice { font-size: 18px; padding: 13px 26px; } }
.tk-daily .dl-card { flex: 1; justify-content: center; }
@media (min-width: 761px) { .tk-daily .floating-label { bottom: -18px; } }
/* Daniel 4781: no Daily card on the home page; an already-played daily opens this small dialog from the banner. */
.tk-daily-dialog { width: min(440px, calc(100vw - 32px)); border: 2px solid var(--pt-ink); border-radius: 22px; padding: 26px 22px 20px; background: #fff; color: var(--pt-ink); text-align: center; box-shadow: 0 6px 0 var(--pt-ink); }
.tk-daily-dialog::backdrop { background: rgb(20 8 50 / .6); }
.tk-daily-dialog .eyebrow { justify-content: center; color: var(--muted); margin-bottom: 14px; }
.tk-daily-dialog .dialog-close { position: absolute; top: 10px; right: 12px; }
.dl-friends--dialog { text-align: left; border-top: 0; margin-top: 16px; padding-top: 0; }
.dl-friends__list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.dl-friends__list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); font: 500 15px Fredoka, sans-serif; }
.dl-friends__list em { font: 500 13px Nunito, sans-serif; font-style: normal; color: var(--muted); }
.dl-next { margin: 12px 0 0; font: 600 13px Nunito, sans-serif; color: var(--muted); }
/* Daniel 4787/4789: NEW friends pill under "Nice run"; fixed height so swapping its text never moves anything. */
.dl-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin: 2px auto 14px; padding: 0 18px 0 10px; border: 2px solid var(--pt-ink); border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--pt-ink); font: 500 16px Fredoka, sans-serif; color: var(--pt-ink); transform: rotate(-1.5deg); cursor: pointer; white-space: nowrap; }
.dl-pill > b { background: var(--pt-pink); color: #fff; border-radius: 999px; padding: 3px 9px; font: 600 12px Nunito, sans-serif; letter-spacing: .08em; }
.dl-pill__faces { display: inline-flex; padding-left: 6px; } .dl-pill__faces:empty { display: none; }
.dl-pill__faces i { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -6px; border: 2px solid var(--pt-ink); border-radius: 50%; font: 600 11px Fredoka, sans-serif; font-style: normal; color: var(--pt-ink); }
.dl-pill:focus-visible { outline: 3px solid var(--pt-yellow); outline-offset: 3px; }
.tk-daily-finale .dl-rank { display: block; min-height: 1.4em; }
.tk-daily-finale > .dl-pill { display: flex; width: max-content; max-width: 100%; }
@media (max-width: 420px) { .dl-pill { font-size: 14px; gap: 8px; padding-right: 12px; } }
.dl-friends.is-flash { animation: dl-flash 1.2s ease; } @keyframes dl-flash { 30% { box-shadow: 0 0 0 4px var(--pt-yellow); } }
@media (prefers-reduced-motion: reduce) { .dl-friends.is-flash { animation: none; } }

/* Daniel 4792: the whole yellow banner is the Daily button. 4790: left column sits a little higher on desktop. */
button.tk-news { cursor: pointer; text-align: left; transition: transform .12s ease, box-shadow .12s ease; }
button.tk-news:hover { transform: rotate(-1deg) translateY(-1px); box-shadow: 0 5px 0 var(--pt-ink); }
button.tk-news:active { transform: rotate(-1deg) translateY(2px); box-shadow: 0 1px 0 var(--pt-ink); }
button.tk-news:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tk-news__go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Daniel 4906: leave the Daily banner in place and give the content below it (plus the blue game card) a small 8px drop. */
@media (min-width: 761px) { .hero-copy { margin-top: -28px; } .hero-side { margin-top: 20px; } }
/* Daniel 4795: more air between "Nice run" and the friends pill. */
.pt-finale.tk-daily-finale > h2 { margin-bottom: 26px !important; }
.tk-daily-finale > .dl-pill { margin-top: 6px; margin-bottom: 20px; }
/* Daniel 4796: no squishing; give each block its own space. */
.pt-finale.tk-daily-finale > .tk-solo-score { margin-bottom: 22px; }
.pt-finale.tk-daily-finale > h2 { margin-top: 0; margin-bottom: 28px !important; }
.tk-daily-finale > .dl-pill { margin-bottom: 28px; }
.tk-daily-finale > .dl-share { margin: 0 auto 36px; padding: 20px 26px; gap: 14px; }
.tk-daily-finale .pt-finale-actions { gap: 16px; }
@media (max-width: 480px) { .pt-finale.tk-daily-finale > h2 { margin-bottom: 22px !important; } .tk-daily-finale > .dl-pill { margin-bottom: 22px; } .tk-daily-finale > .dl-share { margin-bottom: 28px; padding: 16px 14px; } }
/* Daniel 4806: one 2s attention move on the friends pill when the Daily results appear (no looping). */
.tk-daily-finale > .dl-pill { animation: dl-slam 2s cubic-bezier(.2,.9,.3,1.2) .5s both; }
@keyframes dl-slam {
  0% { transform: rotate(-1.5deg) scale(1); box-shadow: 0 3px 0 var(--pt-ink); }
  12% { transform: rotate(-4deg) scale(1.08); }
  24% { transform: rotate(1deg) scale(.97); box-shadow: 0 1px 0 var(--pt-ink), 0 0 0 0 rgb(255 210 63 / .9); }
  36% { transform: rotate(-1.5deg) scale(1.02); }
  60% { box-shadow: 0 3px 0 var(--pt-ink), 0 0 0 10px rgb(255 210 63 / 0); }
  100% { transform: rotate(-1.5deg) scale(1); box-shadow: 0 3px 0 var(--pt-ink); }
}
@media (prefers-reduced-motion: reduce) { .tk-daily-finale > .dl-pill { animation: none; } }

.dl-left { margin: 0 0 12px; font: 600 14px Nunito, sans-serif; color: var(--muted); }
/* Daniel 4821: on the solo/Daily final screen the main white card must fit without scrolling.
   The solo room bar ("Just you vs the clock" + Leave) is dead space there: the card has its own Leave. */
body.solo-game #game:has(.game-layout[data-phase="finished"]) > .room-bar { display: none; }
body.solo-game .game-layout[data-phase="finished"] .play-area { padding-top: 26px; padding-bottom: 26px; }
/* Daniel 4821: the Daily final card must fit the screen. Desktop uses the width instead of stacking. */
@media (min-width: 1000px) {
  .pt-finale.tk-daily-finale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 56px; row-gap: 0; align-items: center; justify-items: center; max-width: 980px; margin: 0 auto; }
  .tk-daily-finale > .eyebrow { grid-column: 1 / -1; margin-bottom: 26px; }
  .tk-daily-finale > .tk-solo-score { grid-column: 1; grid-row: 2; margin-bottom: 22px; }
  .pt-finale.tk-daily-finale > h2 { grid-column: 1; grid-row: 3; margin-bottom: 22px !important; }
  .tk-daily-finale > .dl-pill { grid-column: 1; grid-row: 4; margin: 0; }
  .tk-daily-finale > .dl-share { grid-column: 2; grid-row: 2 / 4; margin: 0 0 24px; align-self: end; }
  .tk-daily-finale > .pt-finale-actions { grid-column: 2; grid-row: 4; width: 100%; max-width: 460px; }
  .tk-daily-finale #daily-next { white-space: nowrap; }
}
/* Daniel 4832: on phones the round info is a compact header ABOVE the board, not at the bottom. */
@media (max-width: 760px) {
  .game-layout.has-info-panel:not(.has-answer-panel) { grid-template-areas: "info" "board" "players"; }
  .game-layout.has-info-panel.has-answer-panel { grid-template-areas: "info" "board" "answers" "players"; }
  .game-layout.has-info-panel .tk-info-panel { padding: 12px 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; }
  .tk-info-panel .room-bar { grid-column: 1 / -1; padding-bottom: 8px; margin: 0 0 4px; }
  .tk-info-panel .room-bar h2 { font-size: 16px; }
  .tk-info-panel .round-header { display: contents; }
  .tk-info-panel .round-header .eyebrow { grid-column: 1; margin: 0; font-size: 11px; }
  .tk-info-panel .round-header h2 { grid-column: 1; font-size: 20px; margin: 0; line-height: 1.15; }
  .tk-info-panel .round-header .pill, .tk-info-panel .round-tag { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .tk-info-panel .round-description { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; }
}
/* Daniel 4845: on desktop the New game card and the solo card should sit on the first screen.
   Same layout and alignment; only vertical air is trimmed. */
@media (min-width: 1000px) {
  .home { padding-top: 40px; }
  .hero-copy .tk-news { margin-bottom: 32px; }
  .hero-copy .eyebrow { margin-bottom: 6px; }
  .hero-copy h1 { line-height: 1.02; margin: 8px 0 14px; }
  .hero-description { line-height: 1.6; margin: 0 0 4px; }
  .hero-notes { margin-top: 14px; }
  .entry-card { margin-top: 20px; }
  .hero-art { min-height: 470px; }
  .hero-art .art-clock { width: 220px; height: 220px; margin: 4px auto 8px; }
  .hero-art .art-clock strong { font-size: 64px; }
  .hero-art { padding-top: 20px; padding-bottom: 16px; }
  .hero-side .tk-solo { margin-top: 26px; }
}
/* Daniel 4851: banner looked blurry/over-bold after becoming a button. Keep its transform static (a transform
   transition keeps rotated text on a soft GPU layer) and use the banner's normal 600 weight for "Play →". */
button.tk-news { transition: box-shadow .12s ease, filter .12s ease; -webkit-font-smoothing: antialiased; }
button.tk-news:hover { transform: rotate(-1.5deg); box-shadow: 0 5px 0 var(--pt-ink); filter: brightness(1.04); }
button.tk-news:active { transform: rotate(-1.5deg); box-shadow: 0 1px 0 var(--pt-ink); }
.tk-news__go, .tk-news b { font-weight: inherit; }

/* Daniel 4854: back to the exact element the crisp banner used (<p>, made clickable); no filters or smoothing overrides. */
.tk-news[data-daily-go] { cursor: pointer; -webkit-font-smoothing: auto; filter: none; transition: box-shadow .12s ease; }
.tk-news[data-daily-go]:hover { box-shadow: 0 5px 0 var(--pt-ink); filter: none; }
.tk-news[data-daily-go]:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Daniel 4858: a narrower middle gap on desktop; both columns grow a little to close it (not completely). */
@media (min-width: 1100px) {
  .home { column-gap: clamp(48px, 5vw, 110px); }
  .hero-copy { max-width: 600px; }
  .hero-copy .entry-card { max-width: 600px; }
  .hero-description { max-width: 520px; }
}
/* Daniel 4867: the first desktop screen is the hero only. The rounds strip and footer start just below the fold,
   never peeking at the bottom edge (80px header + 40px home padding = 120px above the hero row). */
@media (min-width: 1000px) {
  .home { grid-template-rows: minmax(calc(100vh - 120px + 28px), auto) auto; }
}

/* Word of the day (Daniel 4883, mock approved 4897) */
.tk-wotd-hint { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 12px; border: 1.5px dashed #e0b400; border-radius: 999px; background: #fff6cc; color: #7a5a00; font: 600 13px Nunito, sans-serif; }
.tk-bonus-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-bonus-list span { padding: 3px 10px; border: 1.5px solid #c9bdf5; border-radius: 999px; background: #efeaff; color: var(--pt-ink); font: 600 12px Nunito, sans-serif; }
.is-wotd { color: #b8860b; }
.tk-wotd-pop { position: fixed; left: 50%; top: 38%; z-index: 60; pointer-events: none; padding: 18px 30px; border: 3px solid var(--pt-ink); border-radius: 22px; background: linear-gradient(120deg, var(--pt-yellow), #ff9fc4); box-shadow: 0 6px 0 var(--pt-ink); color: var(--pt-ink); text-align: center; font: 600 30px Fredoka, sans-serif; transform: translate(-50%, -50%) rotate(-3deg); animation: tk-wotd-in .5s cubic-bezier(.2,.9,.3,1.3) both; transition: opacity .4s ease; }
.tk-wotd-pop small { display: block; margin-top: 4px; font: 700 15px Nunito, sans-serif; }
.tk-wotd-pop.is-out { opacity: 0; }
@keyframes tk-wotd-in { from { opacity: 0; transform: translate(-50%, -40%) rotate(-8deg) scale(.7); } }
@media (max-width: 480px) { .tk-wotd-pop { font-size: 24px; padding: 14px 20px; width: max-content; max-width: 90vw; } }
@media (prefers-reduced-motion: reduce) { .tk-wotd-pop { animation: none; } }

/* Daniel 4926: end-of-Daily teaser; never names the word. */
.dl-secret { margin: -8px auto 18px; font: 600 14px Nunito, sans-serif; color: var(--muted); letter-spacing: .02em; }
.dl-secret.is-found { color: #b8860b; }
@media (min-width: 1000px) { .tk-daily-finale > .dl-secret { grid-column: 1; grid-row: 5; margin: 16px 0 0; } }

/* ===== Reactions + Daily streak (claude, Daniel #tock 4970/4979/4986) ===== */
.rx-e { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }
.rx-add { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(29, 11, 69, .25); background: transparent; font-size: 13px; line-height: 1; vertical-align: middle; cursor: pointer; opacity: .6; filter: grayscale(1); transition: opacity .15s, filter .15s, border-color .15s; }
.rx-add:hover, .rx-add:focus-visible, .rx-add.is-used { opacity: 1; filter: none; border-color: rgba(29, 11, 69, .5); }
.rx-add:focus-visible { outline: 3px solid var(--pt-pink, #ff3d8b); outline-offset: 2px; }
.rx-counts { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.rx-count { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(29, 11, 69, .07); font: 700 13px var(--tk-font-body, Nunito, sans-serif); color: rgba(29, 11, 69, .75); }
.rx-count.is-mine { background: #fff1b8; color: var(--pt-ink, #1d0b45); }
.rx-pick { position: fixed; z-index: 60; display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: #fff; border: 2px solid var(--pt-ink, #1d0b45); box-shadow: 0 4px 0 var(--pt-ink, #1d0b45); animation: rx-pick-in .16s ease-out both; }
.rx-pick button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.rx-pick button:hover, .rx-pick button:focus-visible { background: #f1ecff; outline: none; }
.rx-pick button.is-mine { background: #fff1b8; }
@keyframes rx-pick-in { from { opacity: 0; transform: translateY(4px); } }
.result-row { position: relative; }
.rx-pop { position: absolute; z-index: 6; top: -16px; right: 90px; display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(29, 11, 69, .2); box-shadow: 0 3px 10px rgba(29, 11, 69, .15); font-size: 20px; line-height: 1; pointer-events: none; animation: rx-pop 2.4s ease-out var(--d, 0ms) both; }
.rx-pop small { font: 700 12px var(--tk-font-body, Nunito, sans-serif); color: var(--pt-ink, #1d0b45); }
@keyframes rx-pop { 0% { opacity: 0; translate: 0 8px; } 12%, 70% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .rx-pop { animation: rx-fade 2.4s linear var(--d, 0ms) both; } .rx-pick { animation: none; } }
@keyframes rx-fade { 0%, 100% { opacity: 0; } 10%, 80% { opacity: 1; } }
@media (max-width: 480px) { .rx-pop { right: 70px; } }
.tk-news.has-streak { display: flex; }
.tk-news .tk-streak { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(29, 11, 69, .12); font-size: .85em; font-weight: 700; white-space: nowrap; opacity: .85; }
@media (max-width: 400px) { .tk-news .tk-streak__label { display: none; } }
@media (max-width: 340px) { .tk-news .tk-streak { display: none; } .tk-news.has-streak { display: inline-flex; } }
/* Daniel 5006: on phones the best-possible badge gets its own full line under the row (never wraps inside the name column). */
.tk-best-row { display: none; }
@media (max-width: 560px) {
  .result-row.is-best-possible:not(.has-working) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; }
  .result-row.is-best-possible:not(.has-working) > .result-answer { max-width: none; }
  .tk-best-badge--side { display: none; }
  .tk-best-row { display: block; grid-column: 1 / -1; margin-top: 0; }
  .tk-best-row .tk-best-badge { white-space: nowrap; }
}

/* Daniel #tock 5011: lobby card fits the first screen — trim vertical air only (same rule as home fit 4845). */
.lobby > .eyebrow { margin-bottom: 14px; }
.lobby h2 { margin: 16px 0; }
.lobby > p { margin-top: 10px; margin-bottom: 16px; }
.lobby .share-code { margin-top: 16px; margin-bottom: 14px; }
.lobby > #lobby-summary { margin-bottom: 0; }
@media (max-width: 760px) { .lobby > .tk-format-cycle { margin-bottom: 8px; } .lobby h2 { margin: 12px 0; } }
.lobby .tk-settings > p { margin-top: 10px; margin-bottom: 12px; }
.lobby .tk-seg legend { margin-block-end: 6px; }

/* Daniel 5040/5044/5046: slimmer reactions + our own flat Tock icons (no OS emoji look). */
.rx-ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.rx-ico svg { display: block; width: 100%; height: 100%; }
.rx-add { width: 22px; height: 22px; margin-left: 6px; border-width: 1px; filter: none; opacity: .55; }
.rx-add .rx-ico { width: 15px; height: 15px; }
.rx-counts { gap: 4px; margin-left: 6px; }
.rx-count { height: 20px; gap: 3px; padding: 0 7px 0 5px; background: transparent; box-shadow: inset 0 0 0 1px rgba(29, 11, 69, .14); font-size: 12px; }
.rx-count .rx-ico { width: 13px; height: 13px; vertical-align: 0; }
.rx-count.is-mine { background: #fff1b8; box-shadow: none; }
.rx-pick { padding: 3px 4px; }
.rx-pick button { width: 36px; height: 36px; }
.rx-pick .rx-ico { width: 24px; height: 24px; }
.rx-pop { top: -12px; padding: 2px 8px 2px 4px; font-size: 15px; }
.rx-pop .rx-ico { width: 18px; height: 18px; }
.tk-news .tk-streak .rx-ico { width: 14px; height: 14px; vertical-align: -2px; }

/* Party screen button (claude, Daniel 5184): a real button after the "How to play" text link, styled like the header
   pills but with a pink fill so it's noticed without competing with Start a room. Hidden on phones and during a game. */
/* Daniel 5200: no circle; a light pink fill keeps the 🎉 clear while still standing out from the white pills. */
a.tk-party-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #ffd6e8; color: var(--pt-ink); font-weight: 800; }
a.tk-party-link:hover { filter: brightness(1.06); }

a.tk-party-link:focus-visible { outline: 3px solid var(--pt-yellow); outline-offset: 3px; }
@media (max-width: 760px) { a.tk-party-link { display: none; } }
body.game-active a.tk-party-link { display: none; }

/* Party join page (claude, Daniel 5209): phone-only screen when arriving from a party screen QR. Only the entry card shows. */
.tk-party-join .header-actions, .tk-party-join .header-tag, .tk-party-join #app-hint, .tk-party-join .hero-copy > :not(.entry-card),
.tk-party-join .hero-side, .tk-party-join .round-strip, .tk-party-join footer, .tk-party-join .pb-sticker, .tk-party-join .entry-top,
.tk-party-join #join-hint, .tk-party-join .tk-vote-control, .tk-party-join #chaos-settings, .tk-party-join .tk-solo-form,
.tk-party-join .tk-solo-link, .tk-party-join .entry-buttons .or { display: none !important; }
.tk-party-guest #create, .tk-party-guest .format-control, .tk-party-host #join-form { display: none !important; }
.tk-party-join .home { display: block; min-height: auto; padding: 8px 16px 40px; max-width: 520px; margin: 0 auto; }
.tk-party-join .entry-card { transform: none; margin: 8px 0 0; padding: 28px 22px 26px; display: grid; gap: 14px; }
.tk-party-head { display: grid; gap: 8px; margin-bottom: 6px; }
.tk-party-tag { justify-self: start; background: #ffd6e8; color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.tk-party-head h1 { text-shadow: none; transform: none; margin: 4px 0 0; color: var(--pt-ink); font-family: var(--tk-font-display); font-weight: 500; font-size: clamp(30px, 8vw, 40px); line-height: 1.1; }
.tk-party-head p { margin: 0; color: #5b4b8a; font-size: 16px; font-weight: 600; line-height: 1.4; }
.tk-party-join #name { font-size: 20px; min-height: 56px; }
.tk-party-join .entry-buttons { display: block; margin-top: 6px; }
.tk-party-join #create, .tk-party-join #join-form button[type=submit] { width: 100%; min-height: 58px; font-size: 20px; justify-content: center; }
.tk-party-guest #join-form { display: block; }
.tk-party-guest #code { display: none; }

/* Host chip (claude, Daniel 5219): small, bold, yellow; only in party screen games, only on the host's phone. */
/* Daniel 5222: lives in the header, top right, level with the logo (header buttons are hidden during a game). */
.tk-host-chip { display: inline-flex; align-items: center; margin-left: auto; align-self: center; background: var(--pt-yellow); color: var(--pt-ink); border: 2px solid var(--pt-ink); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.tk-host-chip[hidden] { display: none; }
.tk-host-chip--lobby { display: table; margin: 12px auto 18px; } /* Daniel 5227: under "Good company, incoming." with breathing room */
/* Daniel #tock 6749/6752: hidden achievement pop-up on the Daily finale (Daily score beats your 10-round solo best). */
.dl-pb-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgb(20 8 50 / .55); animation: dl-pb-fade .3s ease .9s both; }
.dl-pb-ov.is-out { animation: dl-pb-fade .25s ease reverse both; }
.dl-pb { position: relative; overflow: hidden; width: min(460px, 100%); box-sizing: border-box; padding: 22px 22px 24px; border: 2px solid var(--pt-ink); border-radius: 22px; background: linear-gradient(180deg, #fff6c9, #ffe27a); box-shadow: 0 6px 0 var(--pt-ink); color: var(--pt-ink); text-align: center; animation: pt-pop-in .6s var(--tk-ease-pop, ease) 1s both; }
.dl-pb__tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--pt-ink); color: #ffe066; font: 600 12px/1.2 var(--tk-font-display); letter-spacing: .1em; transform: rotate(-2deg); }
.dl-pb__trophy { font-size: 54px; line-height: 1; margin: 14px 0 4px; animation: dl-pb-wobble 1.2s ease 1.4s both; }
.dl-pb__title { display: block; max-width: 20ch; margin: 6px auto 10px; font: 600 22px/1.25 var(--tk-font-display); text-wrap: balance; } /* Daniel 6906: no lone last word */
.dl-pb__nums { display: flex; justify-content: center; align-items: baseline; gap: 24px; margin: 0 0 18px !important; font-size: 15px; color: #6b4a00 !important; }
.dl-pb__nums strong { font: 600 19px var(--tk-font-display); color: var(--pt-ink); }
.dl-pb__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.dl-pb__acts button { min-height: 46px; }
.dl-pb__done { flex-basis: 100%; margin: 0 0 4px !important; font: 600 17px var(--tk-font-display); color: var(--pt-ink) !important; }
.dl-pb__burst { position: absolute; inset: 0; pointer-events: none; }
.dl-pb__burst i { position: absolute; left: 50%; top: 34%; width: 8px; height: 12px; border-radius: 2px; background: hsl(calc(var(--i) * 23deg) 90% 58%); opacity: 0; animation: dl-pb-burst 1.6s cubic-bezier(.2,.7,.3,1) calc(1.2s + var(--i) * 25ms) both; }
@keyframes dl-pb-burst { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + (var(--i) - 7.5) * 26px), calc(120px - (var(--i) * 13) % 90px)) rotate(calc(var(--i) * 70deg)); } }
@keyframes dl-pb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dl-pb-wobble { 0% { transform: scale(.4) rotate(-12deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dl-pb-ov, .dl-pb, .dl-pb__trophy, .dl-pb__burst i { animation: none !important; } .dl-pb__burst { display: none; } }
/* Daniel #tock 6789 (option C): gold shine + gold rosette for players who unlocked the Daily hidden achievement. */
.avatar.is-golden { --gs: 44px; border: calc(var(--gs) * .05 + 1px) solid #ffc21a !important; box-shadow: 0 0 0 2px var(--pt-ink), 0 0 calc(var(--gs) * .22) calc(var(--gs) * .05) rgb(255 196 30 / .85); }
.pt-step .avatar.is-golden { --gs: 70px; } .pt-standings .avatar.is-golden { --gs: 32px; } .tk-next-roster .avatar.is-golden, .tk-ballot .avatar.is-golden { --gs: 26px; }
@media (max-width: 760px) { .avatar.is-golden { --gs: 36px; } }
/* Matches the approved mock (Daniel 6789 C): a fixed diagonal gold shine across the face that gently pulses. */
.avatar.is-golden::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 246 190 / .85) 48%, rgb(255 220 90 / .35) 56%, transparent 64%); animation: gold-pulse 3s ease-in-out infinite; }
/* Rosette bottom-RIGHT like the mock; the PB coin moves to the bottom-left for golden players. */
/* At least 30px wide so the PB number inside stays readable on small faces (Daniel 6800). */
.avatar.is-golden > .gold-rosette { position: absolute; left: min(64.7%, calc(100% - 12px)); top: min(58.8%, calc(100% - 16px)); width: max(52.8%, 30px); height: auto; aspect-ratio: 36 / 48; z-index: 2; pointer-events: none; overflow: visible; }
/* Daniel 6800: the PB number sits inside the rosette, so no separate coin. */
.avatar.is-golden > .pb-coin { display: none; }
@keyframes gold-pulse { 50% { opacity: .55; } }
.dl-pb__gold { display: flex; align-items: center; justify-content: center; gap: 24px; width: fit-content; max-width: 100%; margin: -4px auto 18px !important; padding: 8px 18px 10px 10px; border-radius: 999px; background: rgb(255 255 255 / .55); font-size: 15px; line-height: 1.35; color: var(--pt-ink) !important; text-align: left; } /* Daniel 6906: one centred pill, badge + balanced text */
.dl-pb__gold > span { max-width: 26ch; text-wrap: balance; }
.dl-pb__gold .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .avatar.is-golden::after { animation: none; } }
