/* Asterism: a star chart. Light: an inked chart on warm paper. Dark: the night sky. house/theme.js sets
   data-theme="dark" on <html>. Stars are gold, rival stars violet, dust grey, the black hole a dark ring;
   in Party the teams are Sun (amber), Moon (violet) and Comet (teal). */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/jost-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #F4EEE2;
  --bg2: #EDE5D4;
  --card: #FFFCF5;
  --ink: #1E2240;
  --muted: #6A6880;
  --line: #DED4C0;
  --tile: rgba(255, 251, 241, .82);
  --tile-edge: #E3D8C2;
  --tile-ink: #232848;
  --chart: rgba(30, 34, 64, .07);
  --accent: #B7791F;
  --on-accent: #FFFFFF;
  --gold: #E9A825;
  --gold-hi: #FFE29A;
  --gold-ink: #3B2A05;
  --rival: #7C6CF2;
  --rival-hi: #B9B0FF;
  --rival-ink: #FFFFFF;
  --dust: #CFC8B8;
  --dust-ink: #6F6A5E;
  --hole: #14112A;
  --hole-ring: #7C6CF2;
  --good: #2E7D4F;
  --bad: #B23A48;
  --sun: #E9A23B;
  --moon: #7C6CF2;
  --comet: #1FA898;
  --backdrop: rgba(20, 22, 40, .45);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lb-panel: var(--card); --lb-panel2: var(--bg2); --lb-text: var(--ink); --lb-muted: var(--muted); --lb-line: var(--line);
  --lb-accent: var(--accent); --lb-ink: var(--on-accent); --lb-bad: var(--bad); --lb-font: var(--font);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1026;
  --bg2: #121a3a;
  --card: #131B3C;
  --ink: #EEF0FF;
  --muted: #A2A9CC;
  --line: #27315C;
  --tile: rgba(23, 32, 73, .8);
  --tile-edge: #2B3770;
  --tile-ink: #E8EBFF;
  --chart: rgba(170, 185, 255, .06);
  --accent: #FFC857;
  --on-accent: #1B1405;
  --gold: #FFC857;
  --gold-hi: #FFF0C2;
  --gold-ink: #2A1D02;
  --rival: #9D8CFF;
  --rival-hi: #D3CCFF;
  --rival-ink: #120C36;
  --dust: #3A4370;
  --dust-ink: #A6AECF;
  --hole: #000000;
  --hole-ring: #9D8CFF;
  --good: #6FD39A;
  --bad: #FF8A98;
  --sun: #FFB84D;
  --moon: #A796FF;
  --comet: #3FD6C2;
  --backdrop: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; min-height: 100vh; min-height: 100dvh;
  -webkit-text-size-adjust: 100%; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  background-image: radial-gradient(circle at 12% 18%, var(--chart) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, var(--chart) 0 1px, transparent 1.5px);
  background-size: 37px 41px, 53px 47px; }
:root[data-theme="dark"] body { background-image: radial-gradient(1.2px 1.2px at 20% 30%, rgba(255, 255, 255, .55), transparent 60%), radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, .35), transparent 60%),
  radial-gradient(1px 1px at 45% 55%, rgba(200, 210, 255, .3), transparent 60%), radial-gradient(120% 60% at 50% 0%, #17204A, #0B1026 70%);
  background-size: 97px 89px, 131px 113px, 61px 67px, 100% 100%; background-attachment: scroll, scroll, scroll, fixed; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ page frame */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 14px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 0; }
.back { text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.top-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
@media (hover: hover) { .icon-btn:hover { background: var(--bg2); } }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0 8px; gap: 10px; }
h1 { font-weight: 700; font-size: 2rem; margin: 0; line-height: 1; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.h-star { width: 22px; height: 22px; flex: none; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.sub { margin: 0; color: var(--muted); font-size: .95rem; white-space: nowrap; }

/* ------------------------------------------------------------ the clue */
.clue-bar { text-align: center; margin: 2px 0 8px; }
.clue { display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(30, 34, 64, .08); min-height: 54px; }
.clue-w { font-size: 1.55rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.clue-n { min-width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 1.25rem; font-weight: 800; }
.clue-n:empty { display: none; }
.clue.end { padding-right: 20px; }
.clue.end .clue-w { font-size: 1.15rem; letter-spacing: .06em; }
.clue-sub { margin: 6px 0 4px; color: var(--muted); font-size: .9rem; min-height: 1.3em; }
.clue-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.clue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.clue-list li { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.clue-list li.now { border-color: var(--gold); color: var(--ink); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.clue-list li.later { letter-spacing: 0; }
.marks { display: inline-flex; gap: 2px; }
.marks i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.marks .m-star { background: var(--gold); } .marks .m-rival { background: var(--rival); } .marks .m-dust { background: var(--dust); border: 1px solid var(--dust-ink); } .marks .m-hole { background: var(--hole); box-shadow: 0 0 0 1px var(--hole-ring); }
.btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 0 16px; min-height: 40px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; }
@media (hover: hover) { .btn:hover { border-color: var(--accent); } }

/* ------------------------------------------------------------ the sky: the board and its constellation lines */
.sky { position: relative; margin: 8px auto 6px; width: min(100%, 560px); }
.board { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.board.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.lines .ln { stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; opacity: .9; stroke-dasharray: 3 5; }
.lines .ln1 { opacity: .6; } .lines .ln2 { opacity: .5; stroke-dasharray: 1 4; } .lines .ln3 { opacity: .65; stroke-dasharray: 4 4; }
.tile { position: relative; aspect-ratio: 4 / 3; min-width: 0; padding: 4px 2px; border-radius: 12px; border: 1px solid var(--tile-edge); background: var(--tile); color: var(--tile-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; box-shadow: 0 1px 0 rgba(30, 34, 64, .06); }
.tile::before { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; background: var(--line); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tw { position: relative; z-index: 1; font-weight: 600; font-size: clamp(12px, 3.5vw, 16px); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.tile.mid .tw { font-size: clamp(11px, 3.1vw, 15px); }
.tile.long .tw { font-size: clamp(10px, 2.75vw, 14px); letter-spacing: -.01em; }
.tc { position: relative; z-index: 1; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; margin-top: 3px; opacity: .8; }
.tc:empty { display: none; }
@media (hover: hover) { .tile:not(:disabled):hover { border-color: var(--gold); transform: translateY(-1px); } }
.tile:disabled { cursor: default; }
.board.locked .tile { cursor: default; }
.tile.open.r-star { background: radial-gradient(120% 120% at 50% 0%, var(--gold-hi), var(--gold) 70%); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 1px var(--gold), 0 0 18px color-mix(in srgb, var(--gold) 55%, transparent); }
.tile.open.r-star::before { background: var(--gold-ink); opacity: .55; width: 9px; height: 9px; }
.tile.open.r-rival { background: radial-gradient(120% 120% at 50% 0%, var(--rival-hi), var(--rival) 70%); border-color: var(--rival); color: var(--rival-ink); }
.tile.open.r-rival::before { background: var(--rival-ink); opacity: .6; }
.tile.open.r-dust { background: var(--dust); border-color: var(--dust); color: var(--dust-ink);
  background-image: radial-gradient(circle, rgba(0, 0, 0, .12) 0 1px, transparent 1.5px); background-size: 7px 7px; }
.tile.open.r-dust::before { display: none; }
.tile.open.r-hole { background: radial-gradient(circle at 50% 50%, #000 0 30%, var(--hole) 46%, color-mix(in srgb, var(--hole-ring) 70%, var(--hole)) 60%, var(--hole) 76%); border-color: var(--hole-ring); color: #fff; }
.tile.open.r-hole::before { display: none; }
/* the key, shown on the words left once the night is over */
.tile.key { opacity: .9; }
.tile.key.k-star { box-shadow: inset 0 0 0 2px var(--gold); }
.tile.key.k-rival { box-shadow: inset 0 0 0 2px var(--rival); }
.tile.key.k-hole { box-shadow: inset 0 0 0 2px var(--hole-ring); background: var(--hole); color: #fff; }
.tile.key.k-dust { opacity: .6; }
.tile.key.k-star::before { background: var(--gold); }
.tile.key.k-rival::before { background: var(--rival); }

.msg { text-align: center; min-height: 1.5em; margin: 8px 0 2px; font-weight: 500; }
.msg.good { color: var(--good); } .msg.bad { color: var(--bad); }
.tally { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 14px 0 6px; color: var(--muted); font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-star { background: var(--gold); } .sw-rival { background: var(--rival); } .sw-dust { background: var(--dust); } .sw-hole { background: var(--hole); box-shadow: 0 0 0 2px var(--hole-ring); border-radius: 50%; }

/* ------------------------------------------------------------ end card */
.card.done { margin: 12px auto; max-width: 520px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 14px; box-shadow: 0 4px 18px rgba(30, 34, 64, .08); }
.kicker { margin: 0; color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.big { margin: 2px 0 4px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; }
.res-line { margin: 2px 0; }
#res-line2 { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.go { border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 999px; min-height: 44px; padding: 0 26px; cursor: pointer; margin: 4px; }
#btn-share { display: flex; align-items: center; justify-content: center; width: 100%; margin: 6px 0 0; }
.card.done .go.tg-shareimg { margin: 10px 0 0; }
.go.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.rank { margin: 8px 0 0; min-height: 1.2em; color: var(--muted); font-size: .9rem; }
.lb-link { border: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; min-height: 36px; }
.fine { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

/* ------------------------------------------------------------ dialogs, toast, footer */
dialog.dlg { border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); max-width: min(460px, calc(100vw - 24px)); width: 100%; padding: 24px 22px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.dlg::backdrop { background: var(--backdrop); }
dialog.dlg h2 { margin: 0 0 10px; font-size: 1.35rem; }
dialog.dlg h3 { margin: 14px 0 4px; font-size: 1.02rem; }
dialog.dlg p { margin: 6px 0; }
dialog.dlg form:first-child { position: sticky; top: 0; height: 0; z-index: 3; }
.x { position: absolute; top: -14px; right: -12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg2); font-size: 1.5rem; cursor: pointer; line-height: 1; }
dialog.dlg .go { display: block; margin: 14px auto 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 0; }
.stats div { background: var(--bg2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stats dt { font-size: .78rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }
.stats-today { margin: 0 0 6px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ad-inline { margin: 18px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 18px 0 30px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 10px; }
.foot a { color: var(--muted); }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .15s ease, border-color .15s ease, background-color .3s ease, box-shadow .3s ease; }
  .tile.pop { animation: ast-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
  .tile.open.r-star.pop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 60%); animation: ast-flash .6s ease-out forwards; }
  .tile.open.r-hole.pop { animation: ast-hole .9s ease-in; }
  .clue-n { transition: transform .3s ease; }
  .lines .ln { animation: ast-draw .8s ease-out; }
}
@keyframes ast-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes ast-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes ast-hole { 0% { transform: scale(1) rotate(0); } 50% { transform: scale(.85) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes ast-draw { from { opacity: 0; } to { opacity: .9; } }

/* ------------------------------------------------------------ Party */
.party { margin: 4px 0 10px; }
.pt-panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 10px auto; max-width: 600px; }
.pt-h { margin: 0 0 6px; font-size: 1.15rem; }
.pt-fine { margin: 4px 0; color: var(--muted); font-size: .88rem; }
.pt-sets { display: grid; gap: 8px; margin-top: 8px; }
.pt-set { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-sl { font-size: .9rem; font-weight: 600; }
.pt-seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.pt-seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; min-height: 34px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; }
.pt-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(30, 34, 64, .15); }
.pt-seg button:disabled:not(.on) { opacity: .45; cursor: default; }
.pt-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.pt-teams.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-team { text-align: left; border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; background: var(--card); cursor: pointer; min-height: 88px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-team.mine { border-color: var(--tc); }
.pt-th { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pt-th i { width: 12px; height: 12px; border-radius: 50%; background: var(--tc); flex: none; }
.pt-th small { margin-left: auto; color: var(--muted); font-weight: 600; }
.pt-tl { display: flex; flex-direction: column; font-size: .85rem; min-width: 0; }
.pt-tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tl .sg::after { content: " · Stargazer"; color: var(--muted); }
.pt-tl .me { font-weight: 700; }
.pt-empty { color: var(--muted); }
.pt-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-small { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 0 12px; min-height: 36px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.pt-small:disabled { opacity: .5; cursor: default; }
.t0 { --tc: var(--sun); } .t1 { --tc: var(--moon); } .t2 { --tc: var(--comet); }

/* the game */
.pt-hud { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: .9rem; }
.pt-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
.pt-chip.turn { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 25%, transparent); }
.pt-chip.out { opacity: .45; text-decoration: line-through; }
.pt-status { text-align: center; margin: 4px 0 8px; font-weight: 600; min-height: 1.4em; }
.pt-timer { height: 5px; border-radius: 3px; background: var(--bg2); overflow: hidden; margin: 0 auto 8px; max-width: 560px; }
.pt-timer i { display: block; height: 100%; background: var(--tc, var(--gold)); width: 100%; transform-origin: 0 50%; }
.pt-cluebox { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 6px auto 10px; max-width: 560px; }
.pt-in { height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 16px; font: 600 16px var(--font); min-width: 0; flex: 1 1 160px; text-transform: uppercase; letter-spacing: .08em; }
.pt-in:focus { outline: none; border-color: var(--accent); }
.pt-num { height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 12px; font: 700 16px var(--font); }
.pt-err { color: var(--bad); font-size: .9rem; text-align: center; margin: 0 0 6px; min-height: 1.2em; }
.tile.t-s0 { --tk: var(--sun); } .tile.t-s1 { --tk: var(--moon); } .tile.t-s2 { --tk: var(--comet); }
.tile.sgk { box-shadow: inset 0 0 0 3px var(--tk, transparent); background: color-mix(in srgb, var(--tk, var(--tile)) 16%, var(--tile)); }
.tile.sgk.t-d { background: color-mix(in srgb, var(--dust) 40%, var(--tile)); }
.tile.sgk.t-x { background: var(--hole); color: #fff; box-shadow: inset 0 0 0 3px var(--hole-ring); }
.tile.open.t-s0 { background: radial-gradient(120% 120% at 50% 0%, #FFE7B8, var(--sun) 70%); border-color: var(--sun); color: #2E1C00; }
.tile.open.t-s1 { background: radial-gradient(120% 120% at 50% 0%, #DCD5FF, var(--moon) 70%); border-color: var(--moon); color: #fff; }
.tile.open.t-s2 { background: radial-gradient(120% 120% at 50% 0%, #B8F2E8, var(--comet) 70%); border-color: var(--comet); color: #04211D; }
.tile.open.t-d { background: var(--dust); color: var(--dust-ink); background-image: radial-gradient(circle, rgba(0, 0, 0, .12) 0 1px, transparent 1.5px); background-size: 7px 7px; }
.tile.open.t-x { background: radial-gradient(circle at 50% 50%, #000 0 30%, var(--hole) 46%, color-mix(in srgb, var(--hole-ring) 70%, var(--hole)) 60%, var(--hole) 76%); color: #fff; border-color: var(--hole-ring); }
.tile.open::before, .tile.sgk::before { display: none; }
.tile .votes { position: absolute; left: 3px; bottom: 3px; display: flex; gap: 2px; z-index: 2; }
.tile .votes b { width: 16px; height: 16px; border-radius: 50%; background: var(--tc, var(--accent)); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 800; }
.tile.voted { border-color: var(--tc, var(--accent)); border-width: 2px; }
.tile .conf { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); z-index: 3; border-radius: 999px; padding: 1px 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .03em; background: var(--ink); color: var(--bg); pointer-events: none; white-space: nowrap; }
.tile:has(.conf)::before { display: none; }
.tile:has(.conf) .tw { margin-top: 10px; }
.pt-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pt-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: -2px 0 8px; font-size: .82rem; color: var(--muted); }
.pt-key span { display: inline-flex; align-items: center; gap: 5px; }
.pt-key i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--tc, var(--dust)); background: color-mix(in srgb, var(--tc, var(--dust)) 20%, var(--tile)); }
.pt-key i.kx { background: var(--hole); box-shadow: inset 0 0 0 2px var(--hole-ring); border-radius: 50%; }
.pt-inroom .pt-intro, .pt-inroom .lb-members { display: none; }
.pt-lob .pt-lobteams { margin: 10px 0; padding: 12px; border-radius: 16px; }
.pt-log { list-style: none; margin: 8px auto; padding: 0; max-width: 560px; font-size: .86rem; color: var(--muted); }
.pt-log li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.pt-log li b { color: var(--ink); }
.pt-over { text-align: center; }
.pt-over .big { font-size: 1.8rem; }
@media (max-width: 420px) {
  .clue-w { font-size: 1.3rem; }
  .tally { gap: 12px; }
  .pt-teams.n3 { grid-template-columns: 1fr; }
  .tile { border-radius: 10px; }
}
@media (min-width: 700px) {
  .wrap { max-width: 720px; }
  .sky { width: min(100%, 620px); }
}
