/* /shared/brand.css */
/* Written by `node brand/build.js` from brand/tokens.css. Edit that file, not this one. */
/* Party Room brand tokens and the few brand classes.
   This file is the kit's copy; `node brand/build.js` writes it to shared/brand.css, which the TV
   and the phones load. Light is the default. [data-theme="dark"] switches (so does a dark OS
   setting when a page sets no data-theme). Every colour is a token: nothing in the product
   should carry a literal brand colour. Read from a couch: ink on paper is 15:1, ink on yellow
   11:1, ink-2 on paper 6:1. */
:root, [data-theme="light"] {
  color-scheme: light;
  --pr-paper: #f6f2ea;             /* the ground: TV lobby, phone, sales page */
  --pr-panel: #fffdf8;             /* raised panels and cards on the paper */
  --pr-panel-2: #efe9dd;           /* a lower panel: wells, segmented controls */
  --pr-ink: #15161f;               /* text, the mark's tile, hard shadows, focus */
  --pr-ink-2: rgba(21, 22, 31, .64);   /* secondary text on paper and panel */
  --pr-ink-3: rgba(21, 22, 31, .4);    /* hints, counts, disabled text */
  --pr-line: rgba(21, 22, 31, .12);    /* hairlines and quiet borders */
  --pr-fill: rgba(21, 22, 31, .07);    /* quiet fills: chips, plain buttons */
  --pr-fill-2: rgba(21, 22, 31, .12);  /* a pressed or hovered quiet fill */
  --pr-yellow: #ffd23f;            /* the one action colour: Join, Start, Buy, YOUR TURN */
  --pr-on-yellow: #15161f;         /* text on yellow */
  --pr-good: #1f9d55;              /* right answers, paid, connected */
  --pr-bad: #e5484d;               /* wrong, owed, leave */
  --pr-warn: #f26b2a;              /* needs more players, reconnecting */
  --pr-focus: #15161f;             /* the TV's focus ring and the web focus outline */
  --pr-coral: #ff6b6b; --pr-sky: #38bdf8; --pr-lemon: #ffd93d; --pr-lime: #a3e635;   /* the four seats on the mark */
  --pr-lid-red: #e5484d; --pr-lid-orange: #f26b2a; --pr-lid-gold: #f2b705; --pr-lid-green: #27a35f;
  --pr-lid-teal: #159e9c; --pr-lid-blue: #3573f0; --pr-lid-purple: #7a5af5; --pr-lid-pink: #e4499a;
  --pr-shadow: 0 20px 50px rgba(21, 22, 31, .12);       /* a card resting on the paper */
  --pr-shadow-lift: 0 30px 70px rgba(21, 22, 31, .2);   /* a card picked up: the focused tile */
  --pr-hard: 0 5px 0 var(--pr-ink);                     /* the chunky button's hard shadow */
  --pr-display: "Rubik", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --pr-text: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --pr-radius-sm: 8px; --pr-radius: 14px; --pr-radius-lg: 20px; --pr-radius-xl: 28px; --pr-pill: 999px;
  --pr-space-1: 4px; --pr-space-2: 8px; --pr-space-3: 12px; --pr-space-4: 16px; --pr-space-5: 24px; --pr-space-6: 32px; --pr-space-7: 48px; --pr-space-8: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --pr-paper: #121420; --pr-panel: #1c1f2e; --pr-panel-2: #272b3d;
    --pr-ink: #f6f2ea; --pr-ink-2: rgba(246, 242, 234, .66); --pr-ink-3: rgba(246, 242, 234, .42);
    --pr-line: rgba(246, 242, 234, .14); --pr-fill: rgba(246, 242, 234, .08); --pr-fill-2: rgba(246, 242, 234, .14);
    --pr-good: #4ade80; --pr-bad: #ff6b6b; --pr-warn: #ff9f43; --pr-focus: #f6f2ea;
    --pr-shadow: 0 20px 50px rgba(0, 0, 0, .45); --pr-shadow-lift: 0 30px 70px rgba(0, 0, 0, .6);
    --pr-hard: 0 5px 0 rgba(0, 0, 0, .65);
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --pr-paper: #121420; --pr-panel: #1c1f2e; --pr-panel-2: #272b3d;
  --pr-ink: #f6f2ea; --pr-ink-2: rgba(246, 242, 234, .66); --pr-ink-3: rgba(246, 242, 234, .42);
  --pr-line: rgba(246, 242, 234, .14); --pr-fill: rgba(246, 242, 234, .08); --pr-fill-2: rgba(246, 242, 234, .14);
  --pr-good: #4ade80; --pr-bad: #ff6b6b; --pr-warn: #ff9f43; --pr-focus: #f6f2ea;
  --pr-shadow: 0 20px 50px rgba(0, 0, 0, .45); --pr-shadow-lift: 0 30px 70px rgba(0, 0, 0, .6);
  --pr-hard: 0 5px 0 rgba(0, 0, 0, .65);
}

/* The wordmark (Brand.wordmark): PARTY ROOM in the display face. Size it with font-size. */
.pr-wordmark { display: inline-flex; gap: .24em; font-family: var(--pr-display); font-weight: 900; font-size: 1em; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: inherit; }
.pr-wordmark i { font-style: normal; }
.pr-wordmark i.lit:first-of-type { color: var(--pr-coral); }
.pr-wordmark i.lit:last-of-type { color: var(--pr-sky); }
.pr-wordmark.stacked { flex-direction: column; align-items: flex-start; gap: .06em; }
/* The mark beside the wordmark (Brand.lockup). */
.pr-lockup { display: inline-flex; align-items: center; gap: .3em; font-size: inherit; line-height: 1; }
.pr-lockup .pr-mark { width: 1.15em; height: 1.15em; flex: none; }
.pr-mark { display: inline-block; vertical-align: middle; }
/* A game's lid (Brand.lid): 16:9, rounded by its box. */
.pr-lid { display: block; width: 100%; height: auto; border-radius: var(--pr-radius-lg); }

/* The chunky button: the one yellow thing on the screen. */
.pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 3em; padding: 0 1.4em; border-radius: var(--pr-radius); border: .16em solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font-family: var(--pr-display); font-weight: 700; font-size: 1em; line-height: 1; letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: var(--pr-hard); transition: transform .12s ease, box-shadow .12s ease; }
.pr-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--pr-ink); }
.pr-btn:active { transform: translateY(5px); box-shadow: none; }
.pr-btn.quiet { background: var(--pr-panel); color: var(--pr-ink); }
.pr-btn:focus-visible { outline: 3px solid var(--pr-focus); outline-offset: 3px; }
/* A small ink label: kinds, counts, "FREE". */
.pr-pill { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em .4em; border-radius: var(--pr-pill); background: var(--pr-ink); color: var(--pr-paper); font-family: var(--pr-display); font-weight: 700; font-size: .8em; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pr-pill.yellow { background: var(--pr-yellow); color: var(--pr-on-yellow); }
.pr-pill.quiet { background: var(--pr-fill); color: var(--pr-ink-2); }

/* /shared/countdown.css */
/* The 3-2-1 before a game (shared/countdown.js), over everything on the phone and the TV. */
.pr-cd { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--pr-ink, #111) 72%, transparent); backdrop-filter: blur(6px);
  animation: pr-cd-in .2s ease-out; }
.pr-cd.out { opacity: 0; transition: opacity .25s ease; }
.pr-cd-card { display: grid; justify-items: center; gap: 10px; padding: 28px 36px; min-width: min(320px, 100%);
  background: var(--pr-paper, #fff); color: var(--pr-ink, #111); border-radius: var(--pr-radius-xl, 28px);
  box-shadow: var(--pr-shadow-lift, 0 20px 50px rgba(0,0,0,.35)); text-align: center; }
.pr-cd-icon .game-icon { width: 112px; height: 112px; display: block; }
.pr-cd-name { font-family: var(--pr-display, inherit); font-weight: 900; font-size: clamp(24px, 6vw, 44px); line-height: 1.1; }
.pr-cd-sub { opacity: .7; font-weight: 600; }
.pr-cd-num { font-family: var(--pr-display, inherit); font-weight: 900; font-size: clamp(72px, 22vw, 160px); line-height: 1;
  color: var(--pr-coral, #ff5a4e); font-variant-numeric: tabular-nums; }
.pr-cd-num.pop { animation: pr-cd-pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pr-cd-in { from { opacity: 0; } }
@keyframes pr-cd-pop { from { transform: scale(1.6); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .pr-cd, .pr-cd-num.pop { animation: none; } }

/* /phone/phone.css */
/* Party Room · phones. The Party Room brand (shared/brand.css) on an iOS-style
   shell: paper ground, grouped lists, one yellow button, Rubik for titles and
   buttons. Light by default; the room's Appearance setting flips data-theme and
   the tokens with it. Board games keep their own themes while they run
   (further down). */
:root {
  --bg: var(--pr-paper); --bg-2: var(--pr-panel); --bg-3: var(--pr-panel-2);
  --fill: var(--pr-fill); --fill-2: var(--pr-fill-2);
  --sep: var(--pr-line);
  --text: var(--pr-ink); --label-2: var(--pr-ink-2); --label-3: var(--pr-ink-3);
  --link: #6cb6ff; /* text-link blue: readable on dark and on light (light theme below) */
  --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --yellow: var(--pr-yellow); --pink: #ff375f; --purple: #bf5af2; --teal: #64d2ff; --indigo: #5e5ce6;
  /* names the game renderers use */
  --surface: var(--bg-2); --surface-2: var(--bg-3); --line: var(--sep); --muted: var(--label-2); --dim: var(--label-3);
  --accent: var(--yellow); --accent-2: var(--teal); --good: var(--green); --bad: var(--red);
  --font: var(--pr-text);
  --display: var(--pr-display);
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-h: 58px;
}
/* In a room the bottom bar (#dock) takes the bottom strip: --safe-bottom grows by its height, so
   every game's bottom tray, button and padding already sits above it. */
:root.has-dock { --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dock-h)); }
#dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 520px; margin: 0 auto; height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding: 0 12px env(safe-area-inset-bottom, 0px); display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg-2) 78%, transparent); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 -.5px 0 var(--sep); }
#dock[hidden] { display: none; }
.dock-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 72px; height: 50px; border: none; background: none; color: var(--label-2); font: 600 13px var(--font); letter-spacing: .01em; cursor: pointer; border-radius: 12px; }
.dock-btn svg { width: 24px; height: 24px; }
.dock-btn:active { background: var(--fill); color: var(--text); }
/* The table at the top of a game (phone.js paintTable): the TV's screen, live, 16:9. */
#table { position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg-3); box-shadow: 0 4px 16px rgba(0,0,0,.14), 0 0 0 .5px var(--sep); }
#table[hidden] { display: none; }
#table iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: transparent; }
#table .tb-open { position: absolute; inset: 0; border: 0; background: none; padding: 0; cursor: zoom-in; }
#table .tb-open span { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 15px; background: rgba(21,22,31,.62); color: #fff; font: 700 15px var(--font); display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#table .tb-bar { display: none; }
#table .tb-hide { position: absolute; right: 8px; top: 8px; height: 26px; padding: 0 11px; border: 0; border-radius: 13px; background: rgba(21,22,31,.62); color: #fff; font: 600 12px var(--font); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* In a game the table is a slim strip (a live thumbnail and a label): the phone's own controls keep
   the screen (Wahaj, 2026-11-16: full size pushed them under the bottom bar). Tap it for full screen. */
#table:not(.big):not(.off):not([hidden]) { aspect-ratio: auto; height: 56px; display: flex; align-items: center; gap: 12px; padding-right: 6px; }
#table:not(.big):not(.off):not([hidden]) iframe { position: static; flex: none; width: 100px; height: 56px; }
#table:not(.big):not(.off):not([hidden]) .tb-open span { display: none; }
#table .tb-label { flex: 1; min-width: 0; font: 700 15px var(--font); color: var(--text); line-height: 1.2; }
#table .tb-label small { display: block; font: 500 14px var(--font); color: var(--label-2); }
#table:not(.big):not(.off):not([hidden]) .tb-hide { position: relative; right: auto; top: auto; z-index: 1; flex: none; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--fill); color: var(--label-2); font: 600 14px var(--font); -webkit-backdrop-filter: none; backdrop-filter: none; }
#table.big .tb-label, #table.off .tb-label { display: none; }
#table.off { aspect-ratio: auto; box-shadow: none; background: none; overflow: visible; }
#table .tb-show { display: block; width: 100%; height: 44px; border: 0; border-radius: 22px; background: var(--fill); color: var(--label-2); font: 600 15px var(--font); cursor: pointer; }
#table.big .tb-hide { display: none; }
#table.big { position: fixed; inset: 0; z-index: 65; aspect-ratio: auto; border-radius: 0; background: #000; display: flex; flex-direction: column; padding: var(--safe-top) 0 env(safe-area-inset-bottom, 0px); box-shadow: none; }
#table.big iframe { position: static; flex: 1; min-height: 0; order: 2; }
#table.big .tb-open { display: none; }
#table.big .tb-bar { display: flex; order: 1; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: rgba(235,235,245,.7); font: 500 14px var(--font); }
#table.big .tb-bar b { color: #fff; }
#table.big .tb-bar button { border: none; background: none; color: #6cb6ff; /* this bar is always black, in any theme */ font: 700 17px var(--font); cursor: pointer; padding: 12px 8px; min-height: 44px; }
@media (orientation: landscape) {
  #table.big .tb-bar { position: absolute; top: calc(var(--safe-top) + 4px); right: 10px; z-index: 2; padding: 4px 12px; background: rgba(0,0,0,.55); border-radius: 999px; }
  #table.big .tb-bar span { display: none; }
}
body.table-big { overflow: hidden; }
.menu-sheet, .share-sheet, .help-sheet { max-height: calc(100vh - var(--safe-top) - 24px); max-height: calc(100dvh - var(--safe-top) - 24px); overflow-y: auto; overscroll-behavior: contain; }
.menu-sheet > *, .share-sheet > *, .help-sheet > * { flex-shrink: 0; }
/* Help & feedback (phone/help.js) */
.help-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-kind { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 2px solid transparent; background: var(--bg-2); color: var(--text); font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
.help-kind span { font-size: 18px; }
.help-kind.on { border-color: var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); }
.help-form { display: flex; flex-direction: column; gap: 8px; }
.help-form textarea { min-height: 120px; font-size: 17px; background: var(--bg-2); }
.help-form input[type=email] { width: 100%; min-height: 50px; border-radius: 12px; border: none; background: var(--bg-2); padding: 12px 14px; font-size: 17px; color: var(--text); outline: none; }
.help-form input[type=email]:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.help-form input::placeholder, .help-form textarea::placeholder { color: var(--label-3); }
.help-fine { font-size: 14px; color: var(--label-2); line-height: 1.35; padding: 0 2px; }
.help-msg { font-size: 14px; color: var(--red); line-height: 1.35; padding: 0 2px; }
.help-msg:empty { display: none; }
.help-msg a, .help-alt a { color: var(--link); font-weight: 600; }
.help-alt a { display: inline-block; padding: 14px 6px; } /* a link you can hit with a thumb */
.help-send { margin-top: 2px; }
.help-alt { font-size: 14px; color: var(--label-2); text-align: center; }
.help-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 8px; text-align: center; }
.help-done p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.4; }
.help-tick { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font: 900 28px/1 var(--font); border: 2px solid var(--pr-ink); }
.help-dt { font: 900 22px/1.2 var(--display); }
.menu-how { padding: 4px 16px 14px; font-size: 15px; line-height: 1.4; color: var(--label-2); }
.menu-how p { margin: 0 0 8px; }
.menu-how .gd-steps { margin: 0 0 10px; }
.share-card { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; max-height: 38vh; margin: 0 auto 4px; border-radius: 14px; overflow: hidden; background: var(--pr-yellow, #ffd23f); color: var(--pr-cream, #f6f2ea); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.share-card img { width: 100%; height: 100%; display: block; }
.share-sheet .ios-row .share-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.share-sheet .ios-row.share-win .t { font-weight: 700; }
/* a win waiting to be shared: the Share button wears a yellow dot */
.dock-btn.has-win { color: var(--text); position: relative; }
.dock-btn.has-win::after { content: ''; position: absolute; top: 6px; left: calc(50% + 8px); width: 11px; height: 11px; border-radius: 50%; background: var(--pr-yellow, #ffd23f); border: 2px solid #15161f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 16px); gap: 12px; max-width: 520px; margin: 0 auto; }
#bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--label-2); }
#bar .code { font-family: var(--mono); letter-spacing: .2em; }
#bar .warn { color: var(--red); }
#bar .pts { font-variant-numeric: tabular-nums; }
#bar-right { display: flex; align-items: center; gap: 8px; }
/* the help button (help & feedback, phone/help.js): a yellow ! with an ink ring and a hard shadow, the
   brand's button in small (Wahaj picked it over a plain ?). Ink stays ink in dark rooms too. */
.help-btn { position: relative; isolation: isolate; flex: none; width: 44px; height: 44px; padding: 0 0 1px; border: 0; background: none; color: #15161f; font: 900 19px/1 var(--display); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.help-btn::before { content: ''; position: absolute; inset: 6px; z-index: -1; border-radius: 50%; border: 2.5px solid #15161f; background: var(--pr-yellow, #ffd23f); box-shadow: 0 2px 0 #15161f; transition: transform .1s ease, box-shadow .1s ease; }
.help-btn:active::before { transform: translateY(2px); box-shadow: 0 0 0 #15161f; }
#screen { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 24px); background: rgba(44,44,46,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 14px 18px; border-radius: 14px; font-weight: 600; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 80; }
button, input, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

.h1 { font-size: 34px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.p { color: var(--label-2); line-height: 1.4; }
.label { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--label-2); font-weight: 600; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; }
.card { background: var(--bg-2); border-radius: 18px; padding: 18px; }
.card.good { background: rgba(48,209,88,.14); box-shadow: inset 0 0 0 1px rgba(48,209,88,.5); }
.card.bad { background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 1px rgba(255,69,58,.45); }
.wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 1; text-align: center; padding: 20px 0; }
.wait .big { font-size: 56px; }
.pulse { animation: pulse 2s infinite; }
.big-num { font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rank { font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--yellow); }
.btn { width: 100%; min-height: 54px; border-radius: 14px; border: none; background: var(--bg-3); font-size: 17px; font-weight: 600; padding: 14px 18px; cursor: pointer; transition: transform .08s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); min-height: 44px; }
.btn:disabled { opacity: .4; }
.btn.answer { text-align: left; display: flex; align-items: center; gap: 14px; min-height: 72px; font-size: 18px; line-height: 1.2; background: var(--bg-2); }
.btn.answer .letter { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.btn.answer.chosen { background: rgba(10,132,255,.2); box-shadow: inset 0 0 0 2px var(--blue); opacity: 1; }
.btn.answer.faded { opacity: .35; }
.btn.quip { min-height: 88px; font-size: 19px; line-height: 1.3; white-space: normal; background: var(--bg-2); }
.btn.quip.chosen { background: rgba(10,132,255,.2); box-shadow: inset 0 0 0 2px var(--blue); opacity: 1; }
.btn.quip.faded { opacity: .4; }
.field { display: flex; flex-direction: column; gap: 8px; }
input[type=text] { width: 100%; min-height: 50px; border-radius: 12px; border: none; background: var(--bg-2); padding: 12px 14px; font-size: 17px; outline: none; }
textarea { width: 100%; min-height: 110px; border-radius: 14px; border: none; background: var(--bg-2); padding: 14px; font-size: 19px; outline: none; resize: none; line-height: 1.35; }
textarea:focus, input[type=text]:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.counter { text-align: right; font-size: 13px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; color: #fff; flex: none; background: linear-gradient(160deg, color-mix(in srgb, var(--c, #888) 92%, #fff), color-mix(in srgb, var(--c, #888) 70%, #000)); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.avatar.lg { width: 96px; height: 96px; font-size: 42px; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.timer { height: 6px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.timer .fill { height: 100%; width: 100%; background: #fff; border-radius: 999px; transition: width .2s linear; }
.timer.urgent .fill { background: var(--red); }
.qrow { display: flex; justify-content: space-between; align-items: baseline; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.question { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.prompt { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.players-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topics .btn { min-height: 54px; font-size: 15px; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }

/* ---- iOS pieces: large title, grouped lists, segmented controls ---- */
.ios { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.ios-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 14px; text-align: center; }
.ios-hero .game-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--pr-shadow); }
.ios-hero .ios-large .pr-wordmark { font-size: 34px; }
.ios-large { margin: 0; font: 900 34px/1.05 var(--display); letter-spacing: -.02em; }
.ios-sub { margin: 0; color: var(--label-2); font-size: 16px; line-height: 1.35; }
.ios-caption { font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); padding: 14px 16px 4px; font-weight: 500; }
.ios-foot { font-size: 14px; color: var(--label-2); padding: 6px 16px 0; line-height: 1.35; }
.ios-foot.legal-links { text-align: center; padding-top: 22px; }
.ios-foot.legal-links a { color: var(--label-2); }
.ios-group { background: var(--bg-2); border-radius: 14px; overflow: hidden; }
.ios-group.pad { padding: 14px 16px; }
.ios-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; width: 100%; background: none; border: none; text-align: left; color: var(--text); font-size: 17px; cursor: pointer; }
.ios-row + .ios-row { box-shadow: inset 0 1px 0 var(--sep); }
.ios-row .lbl { flex: none; width: 108px; color: var(--text); }
.ios-row .grow { min-width: 0; }
.ios-row .detail { margin-left: auto; color: var(--label-2); font-size: 16px; white-space: nowrap; }
.ios-row .chev { color: var(--label-3); font-size: 20px; margin-left: 6px; }
.ios-row .game-icon { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.ios-row .t { font-weight: 600; }
.ios-row .s { display: block; font-size: 14px; color: var(--label-2); margin-top: 2px; }
.ios-row.locked { opacity: .45; }
.ios-row.danger { color: #c4221a; justify-content: center; font-weight: 600; }
.ios-row.danger.armed { background: var(--red); color: #fff; font-weight: 700; text-align: center; }
/* The lobby's Bots row: − count + */
.ios-row.bots { gap: 10px; padding-top: 4px; padding-bottom: 4px; }
.ios-row.bots .s { margin-top: 0; line-height: 1.2; }
.bot-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 24px/1 var(--display); cursor: pointer; }
.bot-btn:disabled { opacity: .35; }
.bot-btn:active { transform: scale(.94); }
.bot-n { min-width: 22px; text-align: center; font: 700 20px/1 var(--display); }
.ios-row.blue { color: var(--link); justify-content: center; }
.ios-row input { flex: 1; min-width: 0; min-height: 0; background: none; border: none; padding: 0; font-size: 17px; color: var(--text); outline: none; box-shadow: none; }
.ios-row input:focus { box-shadow: none; }
.ios-row input.code { font: 900 22px/1.2 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.ios-row input::placeholder { color: var(--label-3); }
.ios-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; justify-items: center; }
.ios-swatches .swatch { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--c); cursor: pointer; position: relative; }
.ios-swatches .swatch.on { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--c); }
.ios-err { color: var(--red); font-size: 14px; min-height: 1.2em; padding: 0 16px; }
.ios-err.soft { color: var(--label-2); } /* a hint, not an error */
.ios-btn { width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 17px/1 var(--display); letter-spacing: .01em; cursor: pointer; box-shadow: 0 4px 0 var(--pr-ink); transition: transform .1s ease, box-shadow .1s ease; }
.ios-btn.gray { background: var(--bg-2); color: var(--text); }
.ios-btn:disabled { opacity: .55; }
.ios-btn:active { transform: translateY(4px); box-shadow: none; }
/* "You're in": your face beside who you are and what to do, one short row for everyone (leader and guests),
   so the games start on the first screen of a small phone. */
.ios-me { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 2px 0 0; text-align: left; }
.ios-me .avatar { width: 60px; height: 60px; font-size: 27px; box-shadow: var(--pr-shadow); }
.ios-me .ios-face { flex: none; }
.ios-me .ios-face .dy-pen { width: 28px; height: 28px; }
.ios-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ios-me .ios-large { font-size: 22px !important; line-height: 1.1; overflow-wrap: normal; }
.ios-me .ios-sub { font-size: 15px; line-height: 1.3; }
.ios-me .ios-face-tip { margin-top: 0; }
/* Game setup: Start stays in reach above the bottom bar however long the page is. */
.setup-go { position: sticky; bottom: var(--safe-bottom); z-index: 5; margin-top: 8px; padding: 10px 0; background: var(--bg); box-shadow: 0 -10px 14px -6px var(--bg); } /* flush on the bottom bar, solid, so no page text shows in a gap */
.ios-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--label-2); margin-left: 6px; }
.ios-tag.lead { background: var(--pr-yellow); color: var(--pr-on-yellow); }
.ios-kick { flex: none; margin-left: 4px; min-height: 44px; border: none; border-radius: 999px; padding: 0 12px; background: var(--fill); color: #c4221a; font: 600 15px/1 var(--font); cursor: pointer; }
:root:not([data-theme="light"]) .ios-kick, :root:not([data-theme="light"]) .ios-row.danger { color: #ff7a72; }
.plist-h { min-height: 56px; }
.plist-h .t { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a person in the open list: the name (and its tags) on one line, the score under it */
.plr .t { min-width: 0; }
.pl-l1 { display: flex; align-items: center; min-width: 0; }
.pl-l1 .nm { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: normal; } /* wraps at spaces, never mid-word */
.pl-l1 .ios-tag { flex: none; }
.plr .s { margin-top: 0; }
@media (max-width: 360px) { /* a narrow phone: three faces and just the arrow, so "Players · 14" always has room */
  .plist-h .plist-faces .avatar:nth-child(n+4) { display: none; }
  .plist-h .pl-lbl { display: none; }
}
.plist-h .plist-faces { display: flex; flex: none; }
.plist-h .plist-faces .avatar { width: 32px; height: 32px; font-size: 15px; box-shadow: 0 0 0 2px var(--bg-2); }
.plist-h .plist-faces .avatar + .avatar { margin-left: -9px; }
.seat-on { color: var(--text); background: var(--pr-yellow); color: var(--pr-on-yellow); padding: 3px 10px; border-radius: 999px; }
.ios-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--fill); }
.ios-seg button { flex: 1 1 auto; min-height: 44px; border: none; background: none; border-radius: 9px; padding: 8px 12px; font: 700 15px/1.2 var(--display); color: var(--text); cursor: pointer; min-width: 0; }
.ios-seg button.on { background: var(--pr-ink); color: var(--pr-paper); }
/* The leader's game list: a filter on top, then one shelf per kind (card, board, party). */
.gshelf-seg { position: sticky; top: 0; z-index: 2; flex-wrap: nowrap; margin: 10px 0 4px; box-shadow: 0 -10px 0 0 var(--bg), 10px 0 0 0 var(--bg), -10px 0 0 0 var(--bg); } /* the band stays in the gap above, so the label over it is not cut */
.gshelf-seg button { padding: 8px 4px; font-size: 14px; white-space: nowrap; }
.gshelf-seg button span { opacity: .55; font-weight: 600; }
.gshelf + .gshelf { margin-top: 18px; }
.gshelf-h { font: 900 18px/1.2 var(--display); padding: 0 2px 6px; }
.gshelf-h span { font: 600 14px/1 var(--font); color: var(--label-2); margin-left: 4px; }
.ios-opt { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.ios-opt + .ios-opt { box-shadow: inset 0 1px 0 var(--sep); }
.ios-opt .lbl { font-size: 15px; font-weight: 500; }
.ios-back { align-self: flex-start; min-height: 44px; background: none; border: none; color: var(--link); font-size: 17px; padding: 6px 12px 6px 0; cursor: pointer; }

/* ---- "Draw yourself" (phone/draw.js): the join step and the redraw sheet ---- */
.dy { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.dy-back { margin-bottom: -6px; }
.dy-head { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 2px; }
.dy-head .ios-large { font-size: 30px; }
.dy-pad { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--pr-ink), var(--pr-shadow); touch-action: none; }
.dy-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
/* the corners are cut off on every screen: dim them and dash the circle that shows */
.dy-guide { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(closest-side, transparent 99%, rgba(20,20,20,.07) 100%); }
.dy-guide::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 2px dashed rgba(20,20,20,.18); }
.dy-hint { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font: 600 15px/1.2 var(--font); color: rgba(20,20,20,.62); pointer-events: none; }
.dy-tools { display: flex; align-items: center; gap: 12px; }
.dy-gap { flex: 1; }
.dy-ink { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--c); cursor: pointer; flex: none; box-shadow: 0 0 0 2px rgba(128,128,128,.6); } /* a grey edge keeps black visible on dark */
.dy-ink.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--text); } /* the text colour, so the black swatch's ring shows on dark too */
.dy-tool { min-height: 44px; padding: 0 16px; border-radius: 12px; border: none; background: var(--bg-2); color: var(--text); font: 700 15px/1 var(--display); cursor: pointer; }
.dy-tool:disabled { opacity: .4; }
.dy-last { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; border: none; border-radius: 14px; background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; }
.dy-thumb { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--sep); }
.dy-last b { display: block; font-weight: 700; }
.dy-last small { display: block; font-size: 14px; color: var(--label-2); margin-top: 2px; }
.dy-ov { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; animation: fade .15s both; }
.dy-ov > .dy-sheet { max-width: 520px; margin: 0 auto; padding: calc(var(--safe-top) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
/* your own face in the lobby is a button: tap it to draw (or redraw) yourself */
.ios-face { position: relative; border: none; background: none; padding: 0; border-radius: 50%; cursor: pointer; }
.ios-face .dy-pen { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pr-yellow); color: var(--pr-on-yellow); border: 2px solid var(--pr-ink); }
.ios-face .dy-pen svg { width: 16px; height: 16px; }
.ios-face-tip { font-size: 14px; color: var(--label-2); margin-top: -4px; }

/* ---- the leader's controls ---- */
.lead-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 12px 16px calc(var(--safe-bottom) + 14px); background: var(--pr-paper); box-shadow: 0 -1px 0 var(--sep); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-width: 520px; margin: 0 auto; }
.lead-bar .ios-btn { flex: 1; }
.lead-bar .ios-btn.gray { flex: 0 0 34%; }
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; background: var(--pr-panel-2); border-radius: 14px 14px 0 0; padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; flex-direction: column; gap: 10px; animation: sheet-up .25s cubic-bezier(.2,1,.3,1) both; }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); align-self: center; margin-bottom: 6px; }
.sheet .sheet-title { font: 900 20px/1.2 var(--display); text-align: center; letter-spacing: -.01em; }
.sheet > * { flex: none; } /* a short phone scrolls the sheet; it never squeezes its rows */
.sheet .sheet-sub { font-size: 14px; color: var(--label-2); text-align: center; margin-top: -6px; }
.sheet .ios-group { background: var(--bg-3); }
/* A sheet that scrolls keeps its title and its ✕ in a solid strip at the top, so closing is always one tap away
   and nothing slides under a floating button. */
.sheet-head { position: sticky; top: 0; z-index: 3; margin: -8px -16px 0; padding: 8px 16px 8px; background: var(--pr-panel-2); display: flex; flex-direction: column; gap: 4px; }
.sheet-head .grabber { margin-bottom: 2px; }
.sheet-head .sheet-title { padding: 0 48px; }
.sheet-head .sheet-sub { margin-top: 0; padding: 0 40px; }
.sheet-x { position: absolute; top: 6px; right: 10px; z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fill-2); color: var(--text); font-size: 18px; cursor: pointer; }
.sheet-ov.still, .sheet-ov.still .sheet { animation: none; } /* a redraw of an open sheet is not a new sheet */
.ios-btn:disabled { opacity: 1; background: var(--pr-panel-2); color: var(--pr-ink-2); border-color: var(--pr-ink-3); box-shadow: none; cursor: default; } /* solid, not see-through; the words say why */

/* ---- Not Monopoly Deal ---- */
body.felt { background-attachment: fixed; }
body.felt::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; z-index: -1; }
.ndp { display: flex; flex-direction: column; gap: 12px; padding-bottom: 260px; }
.ndp-status { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 16px; padding: 10px 14px; font-size: 16px; }
.ndp-status.me { background: rgba(255,217,61,.14); border: 1px solid rgba(255,217,61,.5); }
.ndp-status .muted { margin-left: auto; color: var(--muted); font-size: 13px; }
.ndp-plays { display: inline-flex; gap: 6px; margin-left: auto; }
.ndp-plays i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,217,61,.6); display: inline-block; }
.ndp-plays i.used { background: rgba(255,255,255,.15); box-shadow: none; }
.ndp-section { background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ndp-label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; font-weight: 800; color: rgba(238,241,248,.72); }
.ndp-bank { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; }
.ndp-bank .pcard + .pcard { margin-left: calc(var(--cw) * -0.55); }
.ndp-props { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.ndp-col { position: relative; width: var(--cw); margin-bottom: 8px; }
.ndp-col .pcard { position: absolute; left: 0; }
.ndp-col.done .pcard:last-of-type { box-shadow: 0 0 0 3px #a3e635, 0 6px 18px rgba(0,0,0,.5); }
.ndp-rent { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: rgba(10,13,20,.9); border-radius: 999px; padding: 1px 8px; font-size: 14px; font-weight: 900; white-space: nowrap; z-index: 9; }
.ndp-col.done .ndp-rent { background: #a3e635; color: #0a0d14; }
.pcard.movable { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ndp-empty { color: rgba(238,241,248,.7); font-size: 14px; font-style: italic; padding: 6px 2px; }
/* an opponent is a button: a tap opens their cash and properties */
.ndp-opp { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; min-height: 48px; padding: 6px 4px; background: none; border: 0; border-radius: 10px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ndp-opp:active { background: rgba(255,255,255,.08); }
.ndp-opp.turn { box-shadow: inset 4px 0 0 var(--accent); padding-left: 10px; }
.ndp-ohead { display: flex; align-items: center; gap: 10px; }
.ndp-more { margin-left: auto; flex: none; font-size: 14px; font-weight: 800; color: var(--link); }
.ndp-oname { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ndp-oname small { display: block; font-weight: 600; color: var(--label-2); font-size: 14px; line-height: 1.25; }
.ndp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ndp-chip { font-size: 13px; font-weight: 900; line-height: 1.2; padding: 4px 8px; border-radius: 7px; background: var(--c); color: var(--i, #1b1b1b); border: 1px solid rgba(0,0,0,.25); white-space: nowrap; }
.ndp-chip.done { box-shadow: 0 0 0 2px #a3e635; }
.ndp-log { font-size: 14px; color: rgba(238,241,248,.72); line-height: 1.45; padding: 0 4px; }
.ndp-log .l-attack { color: #fb7185; } .ndp-log .l-pay { color: #a3e635; } .ndp-log .l-nope { color: #7dd3fc; } .ndp-log .l-win { color: var(--accent); font-weight: 800; } .ndp-log .l-turn { color: #fff; font-weight: 700; }
.ndp-hint { font-size: 14px; color: rgba(238,241,248,.72); text-align: center; }
.ndp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(var(--safe-bottom) + 10px); background: linear-gradient(to top, rgba(8,8,12,.96) calc(100% - 14px), rgba(8,8,12,0)); max-width: 520px; margin: 0 auto; }
.ndp-docktop { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ndp-docktop .btn { min-height: 46px; font-size: 17px; padding: 8px 14px; }
.ndp-row2 { display: flex; gap: 8px; }
.ndp-row2 .btn.ghost { flex: 0 0 90px; }
.ndp-row2 .btn.primary { flex: 1; }
.ndp-docktop .btn.end { background: #2c2c2e; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ndp-fan { position: relative; height: calc(var(--cw) * 1.4 + 34px); }
.ndp-fan .pcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .pcard.dim { filter: brightness(.55) saturate(.6); }
.ndp-fan .pcard.tossing { filter: grayscale(1) brightness(.7); }
.ndp-fan .pcard.tossing::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60cqw; font-weight: 900; color: #ff6b6b; }
.ndp-ov { position: fixed; inset: 0; z-index: 40; background: rgba(4,10,8,.72); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(var(--safe-bottom) + 12px); animation: ndp-fade .15s both; }
@keyframes ndp-fade { from { opacity: 0; } }
.ndp-pick { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ndp-bigcard { --cw: min(46vw, 200px); animation: ndp-lift .25s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes ndp-lift { from { transform: translateY(80px) scale(.7); opacity: 0; } }
.ndp-sheet { width: 100%; max-width: 480px; background: #121a26; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); max-height: 70vh; overflow-y: auto; }
.ndp-sheet.danger { border-color: #ff6b6b; }
/* A card's sheet: the explanation scrolls, the buttons (and Close) stay on screen. */
.ndp-sheet.pin { min-height: 0; flex: 0 1 auto; }
.ndp-sheet.pin .ndp-sx { flex: 1 1 auto; min-height: 72px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ndp-sheet.pin .ndp-sacts { flex: none; display: flex; flex-direction: column; gap: 10px; }
.ndp-sheet.pin .ndp-sacts:empty { display: none; }
.ndp-sheet .btn { min-height: 56px; font-size: 18px; }
.ndp-sheet .btn.nah { background: #38bdf8; border-color: #38bdf8; color: #0a0d14; }
.ndp-sheet .btn.who { display: flex; align-items: center; gap: 10px; text-align: left; }
.ndp-sheet .btn.who small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.ndp-sheet .swatch-btn { background: var(--c); color: var(--i); border-color: var(--c); }
.ndp-sheet-top { display: flex; gap: 12px; align-items: center; }
.ndp-attack .pcard { transform: rotate(-6deg); }
.ndp-amt { color: var(--accent); }
.ndp-step { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.ndp-assets { display: flex; flex-wrap: wrap; gap: 10px; --cw: 70px; }
.ndp-assets .pcard { cursor: pointer; transition: transform .15s; }
.ndp-assets .pcard.picked { transform: translateY(-8px); box-shadow: 0 0 0 4px var(--accent), 0 10px 24px rgba(0,0,0,.5); }

/* ---- Not Catan ---- */
.ncp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.ncp-status { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,.3); border-radius: 16px; padding: 10px 14px; font-size: 18px; }
.ncp-status.me { background: rgba(255,217,61,.14); border: 1px solid rgba(255,217,61,.5); }
.ncp-vp { font-size: 26px; font-weight: 900; color: var(--accent); }
.ncp-vp small { font-size: 12px; margin-left: 3px; color: var(--muted); letter-spacing: .1em; }
.ncp-hint { text-align: center; font-weight: 800; color: var(--accent); font-size: 15px; }
.linklike { background: none; border: none; color: var(--muted); text-decoration: underline; font-weight: 700; padding: 0; cursor: pointer; }
.ncp-boardwrap { margin: 0 -10px; }
.ncp-boardwrap svg { width: 100%; height: auto; display: block; }
.ncp-board [data-vertex], .ncp-board [data-edge], .ncp-board [data-hex] { cursor: pointer; }
.ncp-dice { text-align: center; font-size: 14px; color: var(--muted); }
.ncp-dice b { color: var(--text); }
.ncp-actions { display: flex; flex-direction: column; gap: 8px; }
.ncp-roll { min-height: 76px; font-size: 28px; }
.ncp-builds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ncp-build { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.12); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); cursor: pointer; }
.ncp-build b { font-size: 15px; }
.ncp-build span { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.ncp-build:disabled { opacity: .35; }
.ncp-build.on { border-color: var(--accent); background: rgba(255,217,61,.14); }
.ncp-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 900; vertical-align: middle; }
.ncp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ncp-panel { background: rgba(0,0,0,.32); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255,255,255,.08); }
.ncp-panel.danger { border-color: #ff6b6b; }
.ncp-panel.trade { border-color: #38bdf8; }
.ncp-panel .btn.who { display: flex; align-items: center; gap: 10px; }
.ncp-panel .btn.who small { margin-left: auto; color: var(--muted); font-weight: 600; }
.ncp-panel .btn.ctr { background: rgba(255,217,61,.14); border-color: #ffd93d; font-size: 15px; text-align: left; }
.ncp-tline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.ncp-resp { font-size: 15px; font-weight: 700; }
.ncp-resp .no { color: #ff6b6b; }
.ncp-steps { display: flex; flex-direction: column; gap: 6px; }
.ncp-step { display: grid; grid-template-columns: 34px 1fr 40px 26px 40px; align-items: center; gap: 8px; }
.ncp-step b { text-align: center; font-size: 20px; }
.ncp-sn { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ncp-sn small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.ncp-pm { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); font-size: 22px; font-weight: 900; color: var(--text); }
.ncp-pm:disabled { opacity: .3; }
.ncp-label { font-size: 12px; letter-spacing: .2em; font-weight: 800; color: rgba(238,241,248,.55); margin-top: 4px; }
.ncp-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ncp-card { min-width: 0; aspect-ratio: 5 / 7; border-radius: 10px; background: linear-gradient(180deg, var(--rc), color-mix(in srgb, var(--rc) 70%, #000)); border: 2px solid rgba(255,255,255,.25); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 2px; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.ncp-card .ncp-cn { font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.ncp-card b { font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.6); line-height: 1; }
.ncp-card.none { opacity: .38; filter: saturate(.4); }
.ncp-twists { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ncp-twist { text-align: left; background: linear-gradient(160deg, #3a1d33, #24121f); border: 2px solid #c9a54a; border-radius: 12px; padding: 10px; color: var(--text); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ncp-twist b { font-size: 16px; color: #f1d58a; }
.ncp-twist small { font-size: 12px; color: rgba(238,241,248,.75); line-height: 1.25; }
.ncp-twist i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.ncp-twist:disabled { opacity: .55; cursor: default; }
.ncp-log { font-size: 13px; color: rgba(238,241,248,.6); line-height: 1.45; }
.ncp-log .l-gain { color: #a3e635; } .ncp-log .l-bandit { color: #ff8a8a; } .ncp-log .l-trade { color: #7dd3fc; } .ncp-log .l-award, .ncp-log .l-win { color: var(--accent); font-weight: 800; } .ncp-log .l-turn { color: #fff; font-weight: 700; }
.ncp-sheet { width: 100%; max-width: 480px; background: #121a26; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 82vh; overflow-y: auto; }
.ncp-pickrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ncp-pick { background: rgba(255,255,255,.06); border: 2px solid transparent; border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); cursor: pointer; }
.ncp-pick small { font-size: 11px; font-weight: 700; }
.ncp-pick.on { border-color: var(--accent); background: rgba(255,217,61,.14); }
.ncp-pick:disabled { opacity: .3; }
.hexboard .hb-fresh { animation: hb-pop .6s cubic-bezier(.2,1.4,.4,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes hb-pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.hexboard .hb-hl-v, .hexboard .hb-hl-edge, .hexboard .hb-hl-hex { animation: hb-pulse 1.1s ease-in-out infinite; }
@keyframes hb-pulse { 50% { opacity: .45; } }

/* ---- game themes on phones ---- */
body.g-notdeal { font-family: "Futura", "Avenir Next", "Roboto Condensed", Arial, sans-serif; }
body.g-notdeal .ndp-status b, body.g-notdeal .ndp-label, body.g-notdeal .h2 { text-transform: uppercase; letter-spacing: .03em; }
body.g-notcatan { font-family: "Spectral", Georgia, serif; }
body.g-notcatan .ncp-status, body.g-notcatan .ncp-panel, body.g-notcatan .ncp-sheet { background: linear-gradient(180deg, rgba(58,43,24,.94), rgba(38,28,15,.96)); border: 2px solid #8a6b3a; border-radius: 10px; }
body.g-notcatan .ncp-status b, body.g-notcatan .h2, body.g-notcatan .ncp-label, body.g-notcatan .ncp-build b, body.g-notcatan .ncp-twist b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: .03em; color: #f3e3bf; }
body.g-notcatan .ncp-vp { font-family: "IM Fell English SC", Georgia, serif; color: #e6c27a; }
body.g-notcatan .ncp-hint { color: #e6c27a; font-style: italic; }


/* ---- Not Monopoly Deal: slide across the hand to read it, tap for details ---- */
.ndp-fan { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ndp-fan .pcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ndp-fanhint { font-size: 14px; margin-top: 2px; opacity: 1; }
.ndp-peek { position: absolute; left: 50%; bottom: calc(100% + 6px); width: min(92vw, 380px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transform: translate(-50%, 14px) scale(.96); transition: opacity .12s ease, transform .16s ease; z-index: 30; }
.ndp-peek.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ndp-peekcard { --cw: min(44vw, 176px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.ndp-peekcap { background: var(--sheet-bg, #1c1c1e); color: var(--text); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 100%; }
.ndp-peekcap b { display: block; font-size: 15px; margin-bottom: 2px; }
/* a slide to read ends with the big card still up and a button to tap (nothing is played by lifting) */
.ndp-peek.hold .ndp-peekacts { pointer-events: auto; }
.ndp-peekacts { display: flex; gap: 8px; width: 100%; }
.ndp-peekacts .btn { flex: 1 1 auto; min-height: 52px; font-size: 18px; }
.ndp-peekacts .btn.ghost { flex: 0 0 104px; font-size: 16px; background: var(--sheet-bg, #1c1c1e); }
@media (max-height: 700px) { .ndp-peek.hold .ndp-peekcard { --cw: min(34vw, 118px); } }
@media (max-height: 600px) { .ndp-peek.hold .ndp-peekcard { --cw: min(28vw, 92px); } }
/* Property Deal / Cutthroat: the other players as chips right under the turn bar (one tap opens their table) */
.ndp-ochips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr)); gap: 6px; }
.ndp-ochip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 4px 10px 4px 6px; border: 0; border-radius: 14px; background: rgba(0,0,0,.28); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ndp-ochip:active { filter: brightness(1.15); }
.ndp-ochip .av { flex: none; display: flex; }
.ndp-ochip .tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ndp-ochip b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndp-ochip small { font-size: 14px; font-weight: 600; color: var(--label-2); white-space: nowrap; }
.ndp-ochip.turn { box-shadow: inset 0 0 0 3px var(--accent); }
.ndp-ochip.acting { box-shadow: inset 0 0 0 3px #e11d48; }
[data-theme="light"] .ndp-ochip { background: rgba(255,255,255,.86); box-shadow: 0 3px 10px rgba(31,107,69,.12); }
[data-theme="light"] .ndp-ochip.turn { box-shadow: inset 0 0 0 3px var(--accent), 0 3px 10px rgba(31,107,69,.12); }
[data-theme="light"] .ndp-ochip.acting { box-shadow: inset 0 0 0 3px #e11d48, 0 3px 10px rgba(31,107,69,.12); }
/* a card's pinned sheet: a soft edge shows when the text scrolls on (a shadow at the foot that goes away at the end) */
body:is(.g-notdeal, .g-notdealnm, .g-notuno, .g-notkittens, .g-cheat) .ndp-sheet.pin { --sx-bg: #121a26; --sx-sh: rgba(255,255,255,.22); }
[data-theme="light"] body:is(.g-notdeal, .g-notdealnm, .g-notuno, .g-notkittens, .g-cheat) .ndp-sheet.pin { --sx-bg: #fff; --sx-sh: rgba(20,30,60,.34); }
body:is(.g-notdeal, .g-notdealnm, .g-notuno, .g-notkittens, .g-cheat) .ndp-sheet.pin .ndp-sx {
  background: linear-gradient(var(--sx-bg) 30%, transparent) 0 0 / 100% 34px no-repeat local, linear-gradient(transparent, var(--sx-bg) 70%) 0 100% / 100% 34px no-repeat local,
    radial-gradient(farthest-side at 50% 0, var(--sx-sh), transparent) 0 0 / 100% 14px no-repeat scroll, radial-gradient(farthest-side at 50% 100%, var(--sx-sh), transparent) 0 100% / 100% 14px no-repeat scroll;
  background-color: var(--sx-bg);
}
/* S2: the hand tray is solid to its very top edge (no see-through band for words to sit in); a soft shadow lifts it */
body.g-notdeal .ndp-dock, body.g-notuno .ndp-dock { background: rgb(8,8,12); box-shadow: 0 -8px 14px rgba(0,0,0,.28); }
[data-theme="light"] body.g-notdeal .ndp-dock { background: rgb(236,245,234); box-shadow: 0 -8px 14px rgba(31,107,69,.14); }
[data-theme="light"] body.g-notuno .ndp-dock { background: rgb(247,243,235); box-shadow: 0 -8px 14px rgba(80,60,20,.14); }
.pc-explain { background: var(--fill); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); font-family: var(--font); text-transform: none; letter-spacing: 0; }
.pc-explain .pc-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.pc-explain p { margin: 5px 0 0; }
.ndp-bank .pcard, .ndp-col .pcard { cursor: pointer; }

/* ======================================================================
   Light theme (the default). The dark rules above stay as they are; this
   section only repaints what they hard-code for a dark room.
   ====================================================================== */
:root[data-theme="light"] {
  --link: #0062cc;
  --blue: #007aff; --green: #28a745; --red: #ff3b30; --orange: #ff9500; --pink: #ff2d55; --purple: #af52de; --teal: #30b0c7; --indigo: #5856d6;
  --accent: #b7791f; --accent-2: #0e7490; --good: #1f8f3a; --bad: #e0352b;
  --sheet-bg: var(--pr-panel);
}
[data-theme="light"] #toast { background: var(--pr-ink); color: var(--pr-paper); box-shadow: var(--pr-shadow-lift); }
[data-theme="light"] .rank { color: #b7791f; }
[data-theme="light"] .timer .fill { background: var(--pr-ink); }
[data-theme="light"] .sheet-ov { background: rgba(21,22,31,.3); }
[data-theme="light"] .sheet .ios-group { background: var(--pr-panel); }

/* Not Monopoly Deal on the mint property board */
[data-theme="light"] body.felt::before { background: transparent; }
[data-theme="light"] .ndp-status { background: rgba(255,255,255,.78); box-shadow: 0 4px 14px rgba(31,107,69,.1); }
[data-theme="light"] .ndp-status.me { background: rgba(255,214,10,.28); border-color: rgba(183,121,31,.55); }
[data-theme="light"] .ndp-plays i { background: #ffcc00; box-shadow: 0 0 8px rgba(255,204,0,.5); }
[data-theme="light"] .ndp-plays i.used { background: rgba(0,0,0,.12); box-shadow: none; }
[data-theme="light"] .ndp-section { background: rgba(255,255,255,.72); box-shadow: 0 4px 16px rgba(31,107,69,.1); }
[data-theme="light"] .ndp-label, [data-theme="light"] .ndp-hint, [data-theme="light"] .ndp-log { color: var(--label-2); }
[data-theme="light"] .ndp-empty { color: var(--label-2); }
[data-theme="light"] .ndp-rent { color: #fff; }
[data-theme="light"] .ndp-step { color: #8a5a00; }
[data-theme="light"] .ndp-log .l-turn { color: var(--text); }
[data-theme="light"] .ndp-log .l-attack { color: #e11d48; } [data-theme="light"] .ndp-log .l-pay { color: #3f7d0e; } [data-theme="light"] .ndp-log .l-nope { color: #0369a1; }
[data-theme="light"] .ndp-dock { background: linear-gradient(to top, rgba(236,245,234,.98) calc(100% - 14px), rgba(236,245,234,0)); }
[data-theme="light"] .ndp-docktop .btn.end { background: #fff; box-shadow: 0 6px 18px rgba(31,107,69,.16); }
[data-theme="light"] .ndp-fan .pcard.dim { filter: saturate(.55) opacity(.6); }
[data-theme="light"] .ndp-fan .pcard.peeking { box-shadow: 0 14px 30px rgba(30,40,80,.3); }
[data-theme="light"] .ndp-peekcard { filter: drop-shadow(0 18px 30px rgba(30,40,80,.3)); }
[data-theme="light"] .ndp-peekcap { box-shadow: 0 10px 30px rgba(30,40,80,.2); }
[data-theme="light"] .ndp-ov { background: rgba(30,45,38,.32); }
[data-theme="light"] .ndp-sheet { background: #fff; border-color: rgba(0,0,0,.06); box-shadow: 0 -10px 40px rgba(30,40,80,.18); }
[data-theme="light"] .ndp-sheet.danger { border-color: #ff6b6b; }
[data-theme="light"] .ndp-sheet .btn.nah { background: #38bdf8; border-color: #38bdf8; color: #08121c; }
[data-theme="light"] .ndp-assets .pcard.picked { box-shadow: 0 0 0 4px #ffcc00, 0 10px 24px rgba(30,40,80,.25); }

/* Not Catan on light oak, with daylight parchment */
[data-theme="light"] body.g-notcatan .ncp-status, [data-theme="light"] body.g-notcatan .ncp-panel, [data-theme="light"] body.g-notcatan .ncp-sheet { background: linear-gradient(180deg, rgba(250,242,222,.97), rgba(238,224,190,.97)); border-color: #a9844a; color: #2a1c08; }
[data-theme="light"] body.g-notcatan .ncp-status b, [data-theme="light"] body.g-notcatan .h2, [data-theme="light"] body.g-notcatan .ncp-label, [data-theme="light"] body.g-notcatan .ncp-build b, [data-theme="light"] body.g-notcatan .ncp-twist b { color: #3d2a12; }
[data-theme="light"] body.g-notcatan .ncp-vp { color: #9a6410; }
[data-theme="light"] body.g-notcatan .ncp-hint { color: #7a4d0e; }
[data-theme="light"] .ncp-label, [data-theme="light"] .ncp-log { color: rgba(61,42,18,.7); }
[data-theme="light"] .ncp-build { background: rgba(255,250,235,.85); border-color: rgba(120,80,30,.25); }
[data-theme="light"] .ncp-build.on { border-color: #b7791f; background: rgba(255,214,10,.25); }
[data-theme="light"] .ncp-twist { background: linear-gradient(160deg, #f7ebf3, #ecd9e6); border-color: #b08a4a; }
[data-theme="light"] .ncp-twist b { color: #6b2a55; }
[data-theme="light"] .ncp-twist small { color: rgba(60,30,50,.8); }
[data-theme="light"] .ncp-pick { background: rgba(120,80,30,.07); }
[data-theme="light"] .ncp-pick.on { background: rgba(255,214,10,.25); border-color: #b7791f; }
[data-theme="light"] .ncp-log .l-turn { color: #2a1c08; } [data-theme="light"] .ncp-log .l-gain { color: #3f7d0e; } [data-theme="light"] .ncp-log .l-bandit { color: #c2410c; } [data-theme="light"] .ncp-log .l-trade { color: #0369a1; } [data-theme="light"] .ncp-log .l-award, [data-theme="light"] .ncp-log .l-win { color: #9a6410; }
[data-theme="light"] .ncp-panel .btn.ctr { background: rgba(255,214,10,.25); border-color: #b7791f; }
[data-theme="light"] .ncp-resp .no { color: #c2410c; }

/* ---- Not Uno ---- */
.nup { display: flex; flex-direction: column; gap: 10px; padding-bottom: 310px; }
.nup-status { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 16px; padding: 10px 14px; font-size: 16px; }
.nup-status.me { background: rgba(255,214,10,.16); border: 1px solid rgba(255,214,10,.5); }
.nup-status .muted { color: var(--muted); font-size: 18px; }
.nup-cchip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(0,0,0,.25); }
.nup-cchip::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.nup-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.nup-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.nup-opp.turn { border-color: var(--accent); }
.nup-opp.risk { border-color: #ff453a; animation: pulse 1s infinite; }
.nup-opp .ct { background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.nup-call { background: #ffd60a; color: #1b1b1b; border-radius: 999px; padding: 1px 8px; font-size: 14px; font-weight: 900; }
.btn.nup-catch { background: #ff453a; color: #fff; font-weight: 900; animation: nup-shake .7s ease-in-out infinite; }
@keyframes nup-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-1.5deg); } 40% { transform: rotate(1.5deg); } 60% { transform: rotate(-1deg); } }
.nup-table { display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px; }
.nup-pile .ucard { box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.nup-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nup-colorname { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; }
.nup-colorname i { width: 22px; height: 22px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 0 12px var(--cc); flex: none; }
.nup-stackwarn { color: #ff6b6b; font-weight: 800; }
.nup-small { font-size: 14px; color: var(--label-2); }
.nup-last { font-size: 14px; color: var(--label-2); line-height: 1.3; }
.nup-acts { display: flex; gap: 8px; margin-bottom: 6px; }
.nup-acts:empty { display: none; }
.nup-acts .btn { min-height: 48px; font-size: 16px; font-weight: 800; padding: 8px 10px; }
.nup-acts .btn.end { background: #2f2f33; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.btn.nup-uno { background: #ffd60a; color: #1b1b1b; font-size: 20px; font-weight: 900; font-style: italic; box-shadow: inset 0 0 0 3px #e5383b; animation: pulse 1.2s infinite; }
.btn.nup-cbtn { background: var(--cc); color: #fff; font-weight: 800; font-size: 19px; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.btn.nup-cbtn.c-yellow { color: #1b1b1b; text-shadow: none; }
.nup-sheettop { display: flex; gap: 12px; align-items: center; }
.nup-dock .ndp-fan { height: calc(var(--cw) * 1.52 + 34px + var(--sag, 0px)); }
.ndp-fan .ucard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .ucard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .ucard.lit { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.45), 0 6px 16px rgba(0,0,0,.35); }
.nup-big { --cw: min(44vw, 190px); }
[data-theme="light"] .nup-status, [data-theme="light"] .nup-opp, [data-theme="light"] .nup-table { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .nup-status.me { background: rgba(255,214,10,.28); border-color: rgba(183,121,31,.55); }
[data-theme="light"] .nup-cchip { background: rgba(0,0,0,.06); }
[data-theme="light"] .nup-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .nup-stackwarn { color: #e11d48; }
[data-theme="light"] .nup-acts .btn.end { background: #fff; color: var(--text); box-shadow: inset 0 0 0 2px rgba(0,0,0,.14); }
[data-theme="light"] .ndp-fan .ucard.lit { box-shadow: 0 0 0 3px #1c1c1e, 0 6px 16px rgba(30,40,80,.25); }
[data-theme="light"] body.g-notuno .ndp-dock { background: linear-gradient(to top, rgba(247,243,235,.98) calc(100% - 14px), rgba(247,243,235,0)); }
.ndp-fan .ucard.dim { filter: brightness(.82); } /* darker, but the colour stays readable (and each card carries its colour letter) */

/* Not Uno: whose turn, motion and the one-card moment */
.nup-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.nup-turnbar.me { flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; }
.nup-turnbar.me b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.nup-turnbar.me span { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nup-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 2px #fff; display: inline-block; }
.nup-turnbar.idle { background: rgba(0,0,0,.28); color: var(--label-2); }
.nup-turnbar.idle b { color: var(--text); }
.nup-turnbar.idle .nup-cchip { margin-left: auto; }
@keyframes nup-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes nup-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
.nup.waiting .ndp-fan { opacity: .88; transition: opacity .3s; }
.nup.waiting .ndp-fan .ucard.peeking { opacity: 1; }
body.nup-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nup-frame 1.6s ease-in-out infinite; }
@keyframes nup-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.ndp-fan .ucard.nu-in { animation: nup-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nup-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nup-pile .ucard.nu-land { animation: nup-land .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes nup-land { from { translate: 0 -80px; scale: 1.35; rotate: -12deg; opacity: 0; } }
.nup-pile .ucard.nu-thud { animation: nup-thud .25s ease-out both; }
@keyframes nup-thud { 40% { scale: 1.08; } }
.nup-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }
.nup-ghost .ucard { box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.nup-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), rgba(0,0,0,.55) 75%); animation: nup-moment 2.6s ease both; }
@keyframes nup-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.nup-moment .big { font-size: 96px; font-weight: 900; font-style: italic; line-height: .9; color: #ffd60a; letter-spacing: -.03em; text-shadow: 5px 5px 0 #e5383b, 10px 10px 0 rgba(0,0,0,.3); transform: rotate(-7deg); animation: nup-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.nup-moment.nocall .big { font-size: 66px; color: #fff; text-shadow: 4px 4px 0 #ff453a, 8px 8px 0 rgba(0,0,0,.3); }
@keyframes nup-slam { from { transform: rotate(-7deg) scale(3); opacity: 0; } }
.nup-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 90vw; }
.nup-moment.nocall .who { background: #ff453a; }
.nup-moment .avatar { width: 40px; height: 40px; font-size: 18px; }
[data-theme="light"] .nup-turnbar.idle { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,40,80,.08); }

/* ---- lobby: picture cards and the game detail screen ---- */
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 0; border: none; background: none; text-align: left; color: var(--text); cursor: pointer; min-width: 0; }
.gcard:active { transform: scale(.98); }
.gcard-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--bg-3) center / cover no-repeat; box-shadow: var(--pr-shadow); overflow: hidden; }
.gcard-img .pr-lid, .gd-tv .pr-lid, .gd-peek .pr-lid { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.gd-peek .lid-box { position: relative; aspect-ratio: 16 / 9; }
.gcard-img .game-icon { position: absolute; left: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.gcard-t { font: 900 15px/1.15 var(--display); padding: 0 2px; }
.gcard-s { font-size: 14px; line-height: 1.25; color: var(--label-2); padding: 0 2px; margin-top: -3px; }
.gcard.locked .gcard-img { opacity: .45; } /* only the picture is dimmed: the name and the reason stay readable */
/* Before it is unlocked (server/license.js). */
.gcard-lock { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.62); color: #fff; display: grid; place-items: center; }
.gcard-lock svg { width: 17px; height: 17px; }
/* Votes for the next game: a count on the picture, and a ring on the one this phone voted for. */
.gcard-votes { position: absolute; left: 6px; top: 6px; padding: 4px 9px; border-radius: 999px; background: var(--pr-ink); color: #fff; font: 800 12px/1 var(--font); }
.gcard.voted .gcard-img { outline: 4px solid var(--pr-yellow); outline-offset: -1px; }
.gcard.voted .gcard-votes { background: var(--pr-yellow); color: var(--pr-on-yellow); }
.gcard.voted .gcard-s { color: var(--text); font-weight: 600; }
.gcard-free { position: absolute; right: 6px; top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ul-cta { box-shadow: inset 0 0 0 1.5px rgba(214,160,0,.5); background: rgba(255,204,0,.12); }
.ul-cta .ios-row { text-decoration: none; }
.ul-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--yellow); color: #1c1c1e; display: grid; place-items: center; }
.ul-ic svg { width: 23px; height: 23px; }
a.ul-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
a.ul-btn svg { width: 20px; height: 20px; }
.gcard.locked .gcard-s { color: var(--text); font-weight: 600; }
.gd-shots { position: relative; padding: 4px 0 26px; }
.gd-tv { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--bg-3); box-shadow: var(--pr-shadow); overflow: hidden; }
.gd-phone { position: absolute; right: 8px; bottom: 0; width: 26%; aspect-ratio: 390 / 844; padding: 3px; border-radius: 16px; background: #0b0b0f; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.gd-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; background: #1c1c1e; }
.gd-dots { display: flex; gap: 14px; font-size: 14px; color: var(--label-2); margin: -18px 0 6px 4px; }
.gd-head { display: flex; align-items: center; gap: 14px; }
.gd-head .game-icon { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.gd-head .ios-large { margin: 0; }
.gd-head .ios-sub { margin: 4px 0 0; font-size: 14px; }
.gd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-chips span { font: 700 14px/1.2 var(--display); padding: 4px 10px; border-radius: 999px; background: var(--fill); }
.gd-summary { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.gd-steps li { counter-increment: step; display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.gd-steps li::before { content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.gd-peek { background: var(--bg-2); border-radius: 16px; overflow: hidden; }
.gd-peek img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gd-peek-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.gd-peek-t { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.gd-peek-t .game-icon { width: 32px; height: 32px; border-radius: 8px; }
.gd-peek p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--label-2); }

/* Not Monopoly Deal: whose turn, the clocks, the hand coming in and the big moments */
.ndp-turnbar { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 12px 14px; }
:is(.ndp-turnbar, .nup-turnbar).me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; transition: background .3s; }
.ndp-tbtext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-tbtext > b { font-size: 32px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-tbtext > span { font-size: 15px; font-weight: 700; line-height: 1.25; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays { margin-left: 0; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays i { background: #1b1b1b; box-shadow: none; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays i.used { background: rgba(0,0,0,.18); }
:is(.ndp-turnbar, .nup-turnbar).idle { background: rgba(0,0,0,.28); color: var(--label-2); font-size: 16px; }
:is(.ndp-turnbar, .nup-turnbar).idle b { color: var(--text); }
:is(.ndp-turnbar, .nup-turnbar).idle small { font-size: 14px; color: var(--label-2); }
.tclock { position: relative; flex: none; width: 66px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tclock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tclock circle { fill: none; stroke-width: 12; }
.tclock .bg { stroke: rgba(0,0,0,.14); }
.tclock .fg { stroke: #1b1b1b; stroke-linecap: round; stroke-dasharray: 100 100; }
.tclock b { position: relative; font-size: 27px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tclock.paused b { font-size: 20px; letter-spacing: .1em; }
.tclock.paused small { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent .fg { stroke: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent .bg { stroke: rgba(255,255,255,.25); }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent b { animation: nd-urgent .5s ease-in-out infinite alternate; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) .ndp-plays i { background: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) .ndp-plays i.used { background: rgba(255,255,255,.3); }
@keyframes nd-urgent { to { transform: scale(1.14); } }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock { width: 46px; height: 46px; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock .bg { stroke: rgba(255,255,255,.12); }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock .fg { stroke: #ffb800; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock.urgent .fg { stroke: #ff453a; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock b { font-size: 18px; color: var(--text); }
.tclock.bar { width: auto; height: auto; flex-direction: row; gap: 10px; }
.tclock.bar b { font-size: 24px; min-width: 2ch; text-align: right; }
.tclock.bar i { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; display: block; }
.tclock.bar u { display: block; height: 100%; width: 100%; background: #38bdf8; border-radius: inherit; }
.tclock.bar.urgent u { background: #ff453a; }
.tclock.bar.urgent b { color: #ff453a; }
.ndp-anscd { display: flex; flex-direction: column; gap: 3px; }
.ndp-anscd > span:last-child { font-size: 14px; color: var(--label-2); }
.ndp-autoend { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; font-size: 16px; font-weight: 800; color: #ffd60a; }
.ndp-autoend i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: ndp-spin .8s linear infinite; }
@keyframes ndp-spin { to { transform: rotate(360deg); } }
.ndp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.ndp-fan .pcard.nu-in { animation: nup-in .55s cubic-bezier(.2,1.1,.35,1) both; }
.ndp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle, rgba(255,190,0,.35), rgba(0,0,0,.55) 75%); animation: nup-moment 2.4s ease both; }
.ndp-moment .big { font-size: 40px; font-weight: 900; font-style: italic; line-height: 1.05; text-align: center; color: #fff; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 3px 3px 0 #e5383b, 6px 6px 0 rgba(0,0,0,.3); transform: rotate(-4deg); animation: nup-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
[data-theme="light"] .ndp-turnbar.idle { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(31,107,69,.1); }
[data-theme="light"] :is(.ndp-turnbar, .nup-turnbar).idle .tclock .bg { stroke: rgba(0,0,0,.1); }
[data-theme="light"] .tclock.bar i { background: rgba(0,0,0,.1); }
[data-theme="light"] .ndp-autoend { color: #8a5a00; }
.nup-turnbar.me.nmp-clocked { flex-direction: row; align-items: center; gap: 12px; }
.nmp-bartext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.nup-turnbar .tclock b { font-style: normal; letter-spacing: 0; }
.nup-turnbar.idle .tclock { margin-left: auto; }
.tclock.answer .fg { stroke: #38bdf8; }

/* How-to-play videos: play on the TV (leader), or watch here */
.gd-video { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 14px; background: var(--pr-ink); color: var(--pr-paper); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.gd-video.on { background: #ff3b30; }
.gd-videohere { display: block; min-height: 44px; margin: 6px auto 2px; padding: 8px 12px; border: 0; background: none; color: var(--link); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gd-peek .gd-videohere { margin: 8px 0 0; padding: 0; }
[data-theme="light"] .gd-video { background: var(--pr-ink); color: var(--pr-paper); }
.tut-ov { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.tut-ov video { width: 100%; max-height: 100%; background: #000; }
.tut-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; }

/* The Buy card on the join screen (the store server, no room code): under the join box, never over it.
   What it is on top; under it the launch price (a shared/offer.js slot: "Launch price ~~$196~~ USD $49 75% off";
   Whop's checkout shows only $49.00) beside Buy now. */
.buy[hidden] { display: none; }
.buy-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px rgba(214,160,0,.45); }
.buy-tv { flex: none; width: 74px; aspect-ratio: 16 / 9; border-radius: 7px; border: 2px solid var(--pr-ink); overflow: hidden; background: #000; }
.buy-tv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.buy-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.buy-t { font: 700 15px/1.2 var(--display); color: var(--text); }
.buy-s { font-size: 13px; line-height: 1.3; color: var(--label-2); }
.buy-deal { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--sep); }
.buy-price { min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--label-2); }
.buy-price .pr-now { color: var(--text); font: 800 18px/1.15 var(--display); }
.buy-price .pr-was { color: var(--text); }
.buy-price .pr-line-a, .buy-price .pr-line-b { display: block; white-space: normal; }
.buy-price .pr-line-lbl { display: block; font: 700 10.5px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.buy-price .pr-dot { display: none; }
/* Buy now: the one green thing in the kit (yellow stays the action colour everywhere else), with the
   kit's ink border and hard shadow, and a small hop every few seconds (still for reduced motion). */
.buy-btn { flex: none; font: 800 15px/1 var(--display); background: #22c55e; color: #15161f; border: 2px solid var(--pr-ink); border-radius: 999px; padding: 11px 15px; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--pr-ink); animation: buy-hop 3s ease-in-out 1s infinite; }
.buy-btn:active { animation: none; transform: translateY(3px); box-shadow: none; }
.buy-btn:focus-visible { outline: 3px solid var(--pr-focus); outline-offset: 3px; }
@keyframes buy-hop {
  0%, 64%, 100% { transform: translateY(0); }
  71% { transform: translateY(-7px); }
  78% { transform: translateY(0); }
  84% { transform: translateY(-3px); }
  90% { transform: translateY(0); }
}
@media (hover: hover) { .buy-btn:hover { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .buy-btn { animation: none; } }
/* "Log in as host": the second button on the join screen, under Next (guests stay the yellow one). */
.join-or { display: flex; align-items: center; gap: 10px; color: var(--label-2); font-size: 13px; }
.join-or::before, .join-or::after { content: ''; flex: 1; height: 1px; background: var(--sep); }
a.host-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
/* A logged-in host on the join screen: whose room, and who they are signed in as. */
.join-signed { text-align: center; padding: 4px 16px 6px; font-size: 14px; }
.join-signed b { color: var(--text); font-weight: 600; word-break: break-all; }
.join-code { font-family: var(--display); letter-spacing: .12em; color: var(--text); }
.ios-row[hidden] { display: none; }

/* The join screen fits one phone screen, Buy card and all (Wahaj: "I shouldn't be able to scroll ...
   the space at the top should be tightened up and the bottom tightened up as well"): no empty status
   bar (it comes back to say "Connecting…"), the mark beside the wordmark, tighter gaps and swatches,
   and Log in as host a button under Next. */
#app:has(.ios.join) { gap: 6px; padding-bottom: calc(var(--safe-bottom) + 8px); }
#app:has(.ios.join) #bar:has(> #bar-left:empty):has(> #bar-right:empty) { display: none; }
.ios.join { gap: 8px; padding-bottom: 4px; }
.ios.join .ios-hero { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 10px; row-gap: 2px; padding: 6px 0 4px; }
.ios.join .ios-hero .game-icon { width: 42px; height: 42px; border-radius: 11px; }
.ios.join .ios-hero .ios-large .pr-wordmark { font-size: 27px; }
.ios.join .ios-hero .ios-sub { grid-column: 1 / -1; font-size: 15px; }
.ios.join .ios-foot { padding-top: 2px; }
.ios.join .ios-caption { padding: 4px 16px 0; }
.ios.join .ios-group.pad { padding: 10px 14px; }
.ios.join .ios-swatches { gap: 10px 8px; }
.ios.join .ios-swatches .swatch { width: 100%; max-width: 44px; height: auto; aspect-ratio: 1; }
@media (max-width: 360px) { .ios.join .ios-swatches { grid-template-columns: repeat(4, 1fr); } }
.ios.join .ios-err:empty { display: none; }
.ios.join .buy-card { margin-top: 2px; padding: 10px 12px; row-gap: 8px; }
.ios.join .buy-s { display: none; }
.ios.join .buy-tv { width: 60px; }
.ios.join .buy-deal { padding-top: 8px; }
.join-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; text-align: center; font-size: 14px; padding-top: 4px; }
.join-foot a, .ios-foot.legal-links a { color: var(--label-2); display: inline-block; padding: 12px 2px; }
/* With the launch banner above it, the app fills what is left of the screen, not a whole screen more
   (that extra banner height is what made the page scroll). */
body:has(> .pr-offer) { display: flex; flex-direction: column; }
body:has(> .pr-offer) > #app { min-height: 0; flex: 1 0 auto; }
/* A short screen (an old iPhone SE, Safari's bars showing): drop the two helper lines. */
@media (max-height: 620px) {
  .ios.join .ios-hero .ios-sub, .ios.join > .ios-foot:not(.join-foot) { display: none; }
  #app:has(.ios.join) { padding-bottom: calc(var(--safe-bottom) + 2px); }
  .ios.join .buy-card { padding: 8px 10px; row-gap: 6px; }
}

/* /phone/trophies.css */
/* Party Room · phone: trophies and stats (phone/trophies.js). The player's menu (stats card and
   trophy cabinet), the badge popover, the celebration and the lobby row. Brand tokens only. */
.tr-badge { display: inline-block; vertical-align: middle; flex: none; overflow: visible; }
.tr-badge.locked { filter: grayscale(1); opacity: .3; }

/* your face in the top bar opens your trophies and stats */
#bar button.me { background: none; border: none; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
#bar button.me:active { background: var(--fill); }

/* the lobby row under "You're in" */
.tr-lrow .tr-rbdg { display: inline-flex; flex: none; }
.tr-lrow .ios-row { padding-top: 8px; padding-bottom: 8px; }
.tr-lrow .tr-badge { width: 34px; height: 34px; }
.tr-lrow .tr-rbdg .tr-badge + .tr-badge { margin-left: -12px; }

/* ---- the player's menu ---- */
.tr-sheet { max-height: calc(100dvh - var(--safe-top) - 20px); overflow-y: auto; overscroll-behavior: contain; gap: 8px; -webkit-overflow-scrolling: touch; }
.tr-sheet > * { flex-shrink: 0; }
/* the face, the name and the ✕ stay at the top of the sheet while the cabinet scrolls under them */
.tr-hero { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; margin: 0 -16px; padding: 8px 18px 8px; background: var(--pr-panel-2); }
.tr-hero .avatar { width: 64px; height: 64px; font-size: 28px; box-shadow: var(--pr-shadow); }
.tr-hname { font: 900 26px/1.05 var(--display); letter-spacing: -.02em; }
.tr-hsub { font-size: 14px; color: var(--label-2); margin-top: 4px; }
.tr-x { margin-left: auto; align-self: flex-start; flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--fill); color: var(--label-2); font-size: 15px; cursor: pointer; }
.tr-tonight { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--pr-ink); color: var(--pr-paper); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-tonight b { font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: var(--pr-yellow); color: var(--pr-on-yellow); padding: 6px 9px 5px; border-radius: 999px; }
.tr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-stat { background: var(--bg-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.tr-stat b { font: 900 28px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tr-stat span { font-size: 14px; color: var(--label-2); }
.tr-sheet .tr-more { background: var(--bg-2); }
.tr-more .detail { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.tr-fav .game-icon { width: 40px; height: 40px; border-radius: 10px; }
.tr-shelf { background: var(--bg-2); border-radius: 14px; padding: 12px 8px 6px; }
.tr-stitle { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--label-2); padding: 0 8px 8px; }
.tr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.tr-tile { background: none; border: none; padding: 6px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-radius: 12px; color: var(--text); }
.tr-tile:active { background: var(--fill); }
.tr-tile .tr-badge { width: 62px; height: 62px; }
.tr-tile span { font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; }
.tr-tile.off span { color: var(--label-3); }
.tr-foot { font-size: 14px; color: var(--label-3); text-align: center; padding: 8px 12px 2px; }

/* one trophy, big, with how to earn it */
.tr-pop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s both; }
.tr-pcard { width: 100%; max-width: 320px; background: var(--pr-panel); color: var(--text); border-radius: 22px; padding: 22px 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--pr-ink); box-shadow: 0 6px 0 var(--pr-ink), var(--pr-shadow-lift); animation: tr-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.tr-pcard .tr-badge { width: 124px; height: 124px; }
.tr-ptier { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); margin-top: 4px; }
.tr-pname { font: 900 24px/1.1 var(--display); letter-spacing: -.02em; }
.tr-phow { font-size: 15px; line-height: 1.4; color: var(--label-2); }
.tr-pgames { font-size: 14px; line-height: 1.45; color: var(--label-3); }
.tr-pwhen { font: 700 14px/1 var(--display); padding: 7px 12px 6px; border-radius: 999px; background: var(--fill); color: var(--label-2); margin: 6px 0 8px; }
.tr-pwhen.got { background: var(--pr-good); color: #fff; }
.tr-pcard .ios-btn { min-height: 46px; }
.tr-pcard .tr-share { background: var(--pr-yellow, #ffd23f); color: #15161f; border: 2px solid #15161f; box-shadow: 0 3px 0 #15161f; margin-bottom: 8px; }
.tr-share:disabled { opacity: .55; }

/* ---- the celebration: a compact toast over the top bar. It never takes a tap (the game under it stays playable),
   shows for a few seconds and goes; the cabinet has the big badge and the Share button. ---- */
.tr-cele { position: fixed; top: calc(var(--safe-top, 0px) + 4px); left: 12px; right: 12px; max-width: 496px; margin: 0 auto; z-index: 100; pointer-events: none; animation: tr-in .3s cubic-bezier(.2,1.2,.4,1) both; }
.tr-cele.out { animation: tr-out .26s ease both; }
.tr-cbox { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: 18px; background: var(--pr-ink); color: var(--pr-paper); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.tr-cbadge { flex: none; width: 40px; height: 40px; animation: tr-pop .6s cubic-bezier(.2,1.5,.4,1) both; }
.tr-ctxt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-ceye { font: 700 12px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #ffd23f; }
.tr-cname { font: 900 18px/1.15 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes tr-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tr-in { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tr-out { to { opacity: 0; transform: translateY(-12px); } }

/* Save your stats: the email card in the stats sheet (phone/trophies.js saveCard) */
.tr-save { margin: 14px 0 6px; padding: 14px; border-radius: 16px; background: var(--pr-card, var(--bg-2)); border: 2px solid var(--pr-ink, var(--sep)); }
.tr-st { font: 800 18px/1.2 var(--display); display: flex; align-items: center; gap: 8px; }
.tr-tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green, #34c759); color: #fff; font-size: 14px; }
.tr-ss { font-size: 14px; line-height: 1.4; color: var(--label-2); margin-top: 6px; overflow-wrap: anywhere; }
.tr-ss b { color: var(--label); }
.tr-srow { display: flex; gap: 8px; margin-top: 12px; }
.tr-srow input { flex: 1; min-width: 0; min-height: 46px; border-radius: 12px; border: 2px solid var(--pr-ink, var(--sep)); background: #fff; color: #15161f; padding: 10px 12px; font-size: 16px; outline: none; }
.tr-srow input:focus { box-shadow: 0 0 0 3px var(--pr-focus, var(--blue)); }
.tr-srow input[name="code"] { letter-spacing: .25em; font-weight: 700; }
.tr-sgo { flex: none; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--pr-ink, transparent); background: var(--pr-yellow, var(--blue)); color: var(--pr-on-yellow, #fff); font: 700 16px/1 var(--display); box-shadow: 0 3px 0 var(--pr-ink, transparent); cursor: pointer; }
.tr-sgo:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pr-ink, transparent); }
.tr-sgo:disabled { opacity: .55; }
.tr-smsg { font-size: 14px; color: var(--pr-bad, var(--red)); margin-top: 8px; }
.tr-smsg:empty { display: none; }
.tr-news { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--label); min-height: 32px; }
.tr-news input { width: 22px; height: 22px; flex: none; accent-color: var(--pr-ink, var(--blue)); }
.tr-sfine { font-size: 14px; line-height: 1.4; color: var(--label-3); margin-top: 8px; }
.tr-sfine a { color: inherit; text-decoration: underline; }
.tr-slinks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.tr-link { background: none; border: 0; padding: 8px 0; font-size: 14px; color: var(--label-2); text-decoration: underline; cursor: pointer; }
.tr-save.saved .tr-link { margin-top: 4px; }
/* the sheet's three boxes (top, save card, cabinet) are only repaint units: their contents sit in the sheet itself,
   so the pinned header above can stay pinned for the whole scroll */
.tr-sheet > div { display: contents; }
.tr-sheet > div > * { flex-shrink: 0; }
.tr-sheet .tr-save { margin: 6px 0; }

/* /phone/lead.css */
/* "Want to host your own?" for guests after a game (phone/lead.js) */
.lead-box { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px); z-index: 40; max-width: 496px; margin: 0 auto; padding: 14px 16px 14px; border-radius: 18px; border: 2px solid var(--pr-ink); background: var(--pr-paper); color: var(--pr-text); box-shadow: 0 5px 0 var(--pr-ink), 0 16px 40px rgba(0,0,0,.35); animation: lead-in .25s ease-out; }
.lead-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: none; background: none; font-size: 16px; color: var(--pr-text); opacity: .6; cursor: pointer; }
.lead-t { font: 800 18px/1.2 var(--display); padding-right: 32px; }
.lead-s { font-size: 14px; opacity: .75; margin-top: 2px; }
.lead-row { display: flex; gap: 8px; margin-top: 10px; }
.lead-row input { flex: 1; min-width: 0; min-height: 46px; border-radius: 12px; border: 2px solid var(--pr-ink); background: #fff; color: #15161f; padding: 10px 12px; font-size: 16px; outline: none; }
.lead-row input:focus { box-shadow: 0 0 0 3px var(--pr-focus, var(--blue)); }
.lead-go { flex: none; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 16px/1 var(--display); box-shadow: 0 3px 0 var(--pr-ink); cursor: pointer; }
.lead-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pr-ink); }
.lead-msg { font-size: 13px; color: var(--pr-bad, var(--red)); margin-top: 6px; min-height: 0; }
.lead-msg:empty { display: none; }
@keyframes lead-in { from { transform: translateY(24px); opacity: 0; } }
/* "Loved it? Host your own": one line and a button, above the email box (--lead-h, lead.js) */
.host-card { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px + var(--lead-h, 0px)); z-index: 40; max-width: 496px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 40px 10px 14px; border-radius: 16px; border: 2px solid var(--pr-ink); background: var(--pr-paper); color: var(--pr-text); box-shadow: 0 4px 0 var(--pr-ink), 0 12px 30px rgba(0,0,0,.3); animation: lead-in .25s ease-out; }
.host-card .lead-x { top: 50%; transform: translateY(-50%); right: 2px; }
.host-txt { flex: 1; min-width: 0; }
.host-t { font: 800 15px/1.2 var(--display); }
.host-s { font-size: 13px; opacity: .75; margin-top: 1px; }
.host-go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 15px; text-decoration: none; }

/* /phone/review.css */
/* "How likely are you to recommend Party Room?" on a game's end screen (phone/review.js) */
.rv-card { position: fixed; left: 12px; right: 12px; bottom: var(--rv-bottom, calc(var(--safe-bottom) + 12px)); z-index: 41; max-width: 496px; margin: 0 auto; max-height: var(--rv-max, calc(100% - 24px)); overflow-y: auto; padding: 14px 14px 12px; border-radius: 18px; border: 2px solid var(--pr-ink); background: var(--pr-paper); color: var(--pr-ink); box-shadow: 0 5px 0 var(--pr-ink), 0 16px 40px rgba(0,0,0,.35); animation: lead-in .25s ease-out; }
.rv-x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: none; background: none; font-size: 16px; color: var(--pr-ink-2); cursor: pointer; }
.rv-t { font: 800 17px/1.25 var(--display); padding-right: 30px; }
.rv-s { font-size: 14px; color: var(--pr-ink-2); margin-top: 2px; }
.rv-nums { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 12px 0 6px; }
.rv-nums button { position: relative; height: 46px; padding: 0; border-radius: 10px; border: 2px solid var(--pr-ink); background: var(--pr-panel) linear-gradient(rgb(53 196 111 / var(--rv-g, 0)), rgb(53 196 111 / var(--rv-g, 0))); color: var(--pr-ink); font: 700 15px/1 var(--display); cursor: pointer; }
/* Greener toward 10 (Wahaj: "a gradient so people are more likely to click the ten"), with a step
   up at 9: the two that say "I'd recommend it". Dark text there reads on the green in both themes. */
.rv-nums button:nth-child(2) { --rv-g: .03; } .rv-nums button:nth-child(3) { --rv-g: .07; } .rv-nums button:nth-child(4) { --rv-g: .12; }
.rv-nums button:nth-child(5) { --rv-g: .18; } .rv-nums button:nth-child(6) { --rv-g: .25; } .rv-nums button:nth-child(7) { --rv-g: .34; }
.rv-nums button:nth-child(8) { --rv-g: .46; } .rv-nums button:nth-child(9) { --rv-g: .78; } .rv-nums button:nth-child(10) { --rv-g: 1; }
.rv-nums button:nth-child(n+9) { color: #15161f; }
/* Thumbs (the first row only; the small row that corrects a number stays exact): a tap between two
   numbers counts for the higher one, and 10 also answers on the right third of 9, the way a phone's
   keyboard gives the likeliest key more room than it draws. */
.rv-nums:not(.small) button::after { content: ""; position: absolute; top: -8px; bottom: -8px; left: -6px; right: -2px; }
.rv-nums:not(.small) button:last-child::after { left: calc(-35% - 6px); right: -10px; }
.rv-nums button.on { background: var(--pr-yellow); color: var(--pr-on-yellow); box-shadow: 0 3px 0 var(--pr-ink); transform: translateY(-2px); }
.rv-nums.small { margin: 0 34px 10px 0; }
.rv-nums.small button { height: 32px; border-radius: 8px; font-size: 13px; }
.rv-nums.small button.on { box-shadow: 0 2px 0 var(--pr-ink); transform: translateY(-1px); }
.rv-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--pr-ink-2); }
.rv-card textarea, .rv-card input[type=email] { display: block; width: 100%; margin-top: 8px; border-radius: 12px; border: 2px solid var(--pr-ink); background: #fff; color: #15161f; padding: 10px 12px; font: 16px/1.35 var(--font); outline: none; }
.rv-card textarea { min-height: 78px; resize: none; }
.rv-card input[type=email] { min-height: 46px; }
.rv-card input[hidden] { display: none; }
.rv-card textarea:focus, .rv-card input[type=email]:focus { box-shadow: 0 0 0 3px var(--pr-yellow); }
.rv-card textarea::placeholder, .rv-card input::placeholder { color: rgba(21, 22, 31, .45); }
.rv-msg { font-size: 13px; color: var(--pr-bad); margin-top: 6px; }
.rv-msg:empty { display: none; }
.rv-go { display: block; width: 100%; margin-top: 10px; min-height: 46px; border-radius: 12px; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 16px/1 var(--display); box-shadow: 0 3px 0 var(--pr-ink); cursor: pointer; }
.rv-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pr-ink); }
.rv-go:disabled { opacity: .6; }
.rv-note { font-size: 12.5px; color: var(--pr-ink-2); text-align: center; margin-top: 8px; }
.rv-offer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pr-line); }
.rv-otxt { flex: 1; min-width: 0; }
.rv-ot { font: 800 15px/1.2 var(--display); }
.rv-see { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 15px/1 var(--display); box-shadow: 0 3px 0 var(--pr-ink); text-decoration: none; }
@media (max-width: 340px) { .rv-nums { gap: 3px; } .rv-nums button { border-width: 1.5px; font-size: 14px; } }

/* /shared/offer.css */
/* Party Room · launch pricing (shared/offer.js): the red banner at the top of a page that sells,
   and the prices in [data-offer-price] slots (the list price struck through in
   red, the launch price, a "75% off" chip). Light by default and readable in dark. Fonts and ink
   come from shared/brand.css where a page loads it, with fallbacks where it doesn't (/play).
   Nothing here moves. */
:root, [data-theme="light"] {
  --pr-offer-red: #c8191f;      /* the banner and the chip: white text on it is 5.6:1 */
  --pr-offer-red-deep: #8e0f14; /* the banner's bottom edge and the clock's shadow */
  --pr-offer-strike: #c8191f;   /* the line through the list price */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pr-offer-strike: #ff6b6b; }
}
[data-theme="dark"] { --pr-offer-strike: #ff6b6b; }

/* ---- the banner ---------------------------------------------------------------------- */
.pr-offer {
  display: block; position: relative; z-index: 1;
  margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 9px) 16px 10px;
  background: var(--pr-offer-red); color: #fff;
  border-bottom: 3px solid var(--pr-offer-red-deep);
  font: 500 14px/1.35 var(--pr-text, Inter, -apple-system, "Helvetica Neue", Arial, sans-serif);
  text-align: center; -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
.pr-offer-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
/* As a link (the page's own Buy): the same bar, white on red, no underline. */
a.pr-offer-in, a.pr-offer-in:hover, a.pr-offer-in:visited { color: #fff; text-decoration: none; cursor: pointer; }
a.pr-offer-in:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }
/* One bar, always (Wahaj: "everything should only be one bar"): the tag, the label, the price, the chip. */
.pr-offer-tag { flex: none; display: inline-block; padding: 4px 9px 3px; border-radius: 999px; background: #fff; color: var(--pr-offer-red);
  font: 800 11px/1 var(--pr-display, "Rubik", var(--pr-text, Inter), "Helvetica Neue", Arial, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.pr-offer-label { font: 800 16px/1.15 var(--pr-display, "Rubik", var(--pr-text, Inter), "Helvetica Neue", Arial, sans-serif); letter-spacing: .01em; text-transform: uppercase; }
.pr-offer-now { font-weight: 800; }
.pr-offer-chip { flex: none; display: inline-block; padding: 3px 7px 2px; border-radius: 999px; background: var(--pr-yellow, #ffd23f); color: var(--pr-on-yellow, #15161f);
  font: 800 11px/1.1 var(--pr-display, "Rubik", var(--pr-text, Inter), "Helvetica Neue", Arial, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 719px) {
  /* a phone: still one bar, the type a step smaller */
  .pr-offer { padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 9px; }
  .pr-offer-in { gap: 7px; }
  .pr-offer-tag, .pr-offer-chip { font-size: 10px; letter-spacing: .08em; padding: 3px 7px 2px; }
  .pr-offer-label { font-size: 12.5px; }
}
/* Too narrow for all four: the label goes first, then the words "Launch price"; the price and the chip stay. */
@media (max-width: 479px) { .pr-offer-label { display: none; } }
@media (max-width: 349px) { .pr-offer-words { display: none; } }

/* ---- the price slots ------------------------------------------------------------------- */
.pr-was { font-weight: 600; opacity: .7; text-decoration: line-through; text-decoration-color: var(--pr-offer-strike); text-decoration-thickness: .12em; white-space: nowrap; }
.pr-now { font-weight: 800; white-space: nowrap; }
.pr-chip { display: inline-block; padding: .22em .55em .16em; border-radius: 999px; background: var(--pr-offer-red); color: #fff;
  font: 800 .72em/1.1 var(--pr-display, "Rubik", var(--pr-text, Inter), "Helvetica Neue", Arial, sans-serif); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: .1em; }
.pr-lbl { display: block; font: 700 .66em/1.25 var(--pr-text, Inter, -apple-system, "Helvetica Neue", Arial, sans-serif); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
[data-offer-price="inline"] { white-space: nowrap; }
/* "line": Launch price ~~$196~~ USD $49 [75% off], kept on one line */
.pr-line-a { white-space: nowrap; }
@media (max-width: 359px) { .pr-line-a { white-space: normal; } }
[data-offer-price="inline"] .pr-was { opacity: .75; }
/* Words for screen readers only ("Crossed out: $196. Launch price: $49") */
.pr-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Shown only while there is an offer (without script too: offer.js sets the class). */
html:not(.pr-offer-is-on) [data-offer-on] { display: none !important; }

/* /shared/cards.css */
.pcard, .pcard * { box-sizing: border-box; }
/* Not Monopoly Deal card faces. Size a card with --cw on it or any ancestor;
   everything inside scales with the card (container units). */
.pcard {
  --ivory: #ebe3cf; --ivory-2: #ddd3bb; --ink: #1b1f2a;
  width: var(--cw, 100px); aspect-ratio: 5 / 7; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .07); background: var(--ivory); color: var(--ink);
  box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .1) rgba(0,0,0,.45), inset 0 0 0 calc(var(--cw, 100px) * .012) rgba(0,0,0,.12);
  font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Avenir Next", system-ui, sans-serif;
  overflow: hidden; user-select: none; -webkit-user-select: none;
}
.pcard .pc-badge { position: absolute; left: 5cqw; top: 5cqw; width: 19cqw; height: 19cqw; border-radius: 50%; background: var(--ivory); border: 1.6cqw solid var(--ink); display: flex; align-items: center; justify-content: center; z-index: 2; line-height: 1; }
.pcard .pc-badge b { font-size: 9cqw; font-weight: 900; }
.pcard .pc-badge small { font-size: 5.5cqw; font-weight: 800; margin-left: .3cqw; }
.pcard .pc-kicker { text-align: center; font-size: 6cqw; font-weight: 900; letter-spacing: .12em; margin-top: 7cqw; color: #5b5240; }
.pcard .pc-text { position: absolute; left: 7cqw; right: 7cqw; bottom: 6cqw; font-size: 6.2cqw; line-height: 1.15; text-align: center; color: #3b3528; font-weight: 600; }

/* property */
.k-prop .pc-band { margin: 5cqw 5cqw 0; height: 36cqw; background: var(--sc); color: var(--si); border-radius: 3cqw; display: flex; align-items: flex-end; justify-content: center; padding: 0 4cqw 4cqw 24cqw; text-align: center; }
.k-prop .pc-band span { font-size: 10cqw; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.k-prop .pc-sub { text-align: center; font-size: 6.4cqw; font-weight: 800; color: #6b6150; margin: 4cqw 0 2cqw; text-transform: uppercase; letter-spacing: .08em; }
.k-prop .pc-ladder { margin: 0 7cqw; }
.pcard .pc-row { display: flex; align-items: center; gap: 2cqw; font-size: 7.5cqw; font-weight: 800; border-bottom: .6cqw dotted rgba(0,0,0,.25); padding: 2.4cqw 0; }
.pcard .pc-ladder.sm { margin: 1cqw 6cqw 0; }
.pcard .pc-ladder.sm .pc-row { padding: .7cqw 0; font-size: 6cqw; }
.pcard .pc-ladder.sm .pc-n { font-size: 5.2cqw; }
.pcard .pc-ladder.sm .pc-amt { font-size: 6.5cqw; }
.pcard .pc-row.full { color: #0b0f18; }
.pcard .pc-row .pc-n { flex: 1; font-size: 6.6cqw; color: #6b6150; }
.pcard .pc-row.full .pc-n { color: var(--sc); font-weight: 900; }
.pcard .pc-row .pc-amt { font-size: 9cqw; font-weight: 900; }
.pcard .pc-stack { display: inline-flex; width: 13cqw; }
.pcard .pc-stack i { width: 4.5cqw; height: 6.5cqw; border-radius: .8cqw; background: var(--sc); margin-right: -1.6cqw; border: .5cqw solid var(--ivory); }

/* two-colour wild */
.k-wild2 { display: flex; flex-direction: column; }
.k-wild2 .pc-half { flex: 1; position: relative; }
.k-wild2 .hb { transform: rotate(180deg); }
.k-wild2 .pc-band { margin: 5cqw 5cqw 0 26cqw; height: 19cqw; border-radius: 3cqw; display: flex; align-items: center; justify-content: center; padding: 0 2cqw; text-align: center; }
.k-wild2 .pc-band span { font-size: 7.5cqw; font-weight: 900; text-transform: uppercase; line-height: 1; }
.k-wild2 .pc-band.a { background: var(--a); color: var(--ai); }
.k-wild2 .pc-band.b { background: var(--b); color: var(--bi); }
.k-wild2 .pc-short { text-align: center; font-size: 6.5cqw; font-weight: 800; color: #6b6150; margin-top: 2cqw; }
.k-wild2 .pc-wtag { align-self: center; margin: 1cqw 0; font-size: 7cqw; font-weight: 900; letter-spacing: .3em; background: #1b1f2a; color: var(--ivory); padding: .8cqw 4cqw; border-radius: 99px; }
.k-wild2.as-a .hb, .k-wild2.as-b .ha { opacity: .42; }
/* placed as its second colour: turn the card round, so that colour sits on top, the right way up */
.k-wild2.as-b { flex-direction: column-reverse; }
.k-wild2.as-b .hb { transform: none; }
.k-wild2.as-b .ha { transform: rotate(180deg); }

/* any-colour wild: a dark card with striped bands, nothing like the light rent wheels */
.k-anywild { background: #1b1f2a; color: var(--ivory); }
.k-anywild .pc-aband { margin: 5cqw 5cqw 0; height: 22cqw; border-radius: 3cqw; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 3cqw; box-shadow: inset 0 0 0 .8cqw rgba(255,255,255,.35); }
.k-anywild .pc-aband span { font-size: 8.5cqw; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1; text-shadow: 0 .5cqw 1.2cqw rgba(0,0,0,.45); }
.k-anywild.placed .pc-aband span { text-shadow: none; }
.k-anywild .pc-house { position: relative; width: 40cqw; height: 34cqw; margin: 7cqw auto 0; }
.k-anywild .pc-house .roof { position: absolute; left: 0; right: 0; top: 0; height: 17cqw; background: var(--ivory); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.k-anywild .pc-house .body { position: absolute; left: 7cqw; right: 7cqw; top: 16cqw; bottom: 0; background: var(--ivory); border-radius: 0 0 1.5cqw 1.5cqw; }
.k-anywild .pc-house .body::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 8cqw; height: 11cqw; margin-left: -4cqw; background: #1b1f2a; border-radius: 4cqw 4cqw 0 0; }
.k-anywild .pc-atitle2 { text-align: center; margin-top: 4cqw; font-size: 8.5cqw; font-weight: 900; letter-spacing: .1em; }
.k-anywild .pc-text { color: #c9c0aa; bottom: 11cqw; font-size: 5.6cqw; }
.k-anywild .pc-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 5cqw; }

/* any-colour wild and rent wheels */
.pcard .pc-wheel { width: 64cqw; height: 64cqw; border-radius: 50%; margin: 6cqw auto 0; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.4cqw rgba(0,0,0,.25); }
.pcard .pc-hub { width: 38cqw; height: 38cqw; border-radius: 50%; background: var(--ivory); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 900; font-size: 8.5cqw; line-height: 1; letter-spacing: .04em; box-shadow: 0 0 0 1.2cqw rgba(0,0,0,.18); }

/* cash */
.k-money { background: var(--mt); }
.k-money .pc-frame { position: absolute; inset: 5cqw; border: 1.4cqw solid rgba(0,0,0,.28); border-radius: 4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 2cqw, rgba(255,255,255,0) 2cqw 4cqw); }
.k-money .pc-coin { width: 66cqw; height: 66cqw; border-radius: 50%; background: var(--ivory); border: 2cqw solid rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; box-shadow: 0 1.5cqw 0 rgba(0,0,0,.18); }
.k-money .pc-coin b { font-size: 32cqw; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.k-money .pc-coin small { font-size: 12cqw; font-weight: 900; }
.k-money .pc-mlabel { margin-top: 4cqw; font-size: 7cqw; font-weight: 900; letter-spacing: .3em; color: rgba(0,0,0,.55); }
.k-money .pc-corner { position: absolute; font-size: 8cqw; font-weight: 900; }
.k-money .pc-corner.tl { left: 3cqw; top: 2cqw; }
.k-money .pc-corner.br { right: 3cqw; bottom: 2cqw; transform: rotate(180deg); }

/* actions */
.k-action .pc-ring { width: 70cqw; height: 70cqw; margin: 4cqw auto 0; border-radius: 50%; border: 3.2cqw solid var(--ring); background: radial-gradient(circle at 50% 35%, #fffaf0, var(--ivory-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4cqw; box-shadow: 0 0 0 1.4cqw var(--ivory), 0 0 0 2.4cqw var(--ring); }
.k-action .pc-icon { font-size: 22cqw; line-height: 1; font-weight: 900; color: var(--ring); font-family: system-ui, "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.k-action .pc-atitle { font-size: 8.5cqw; font-weight: 900; text-transform: uppercase; line-height: .95; margin-top: 2cqw; color: var(--ring); }
.k-action .pc-text { font-size: 5.6cqw; }

/* back */
.k-back { background: #182a4a; box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .1) rgba(0,0,0,.45); }
.k-back .pc-backin { position: absolute; inset: 5cqw; border-radius: 4cqw; border: 1.2cqw solid #c9a54a; background: repeating-linear-gradient(45deg, #1e3460 0 4cqw, #182a4a 4cqw 8cqw); display: flex; align-items: center; justify-content: center; }
.k-back .pc-logo { background: #c9a54a; color: #182a4a; font-weight: 900; font-size: 9cqw; line-height: .95; text-align: center; padding: 4cqw 6cqw; border-radius: 4cqw; transform: rotate(-12deg); letter-spacing: .06em; box-shadow: 0 1cqw 0 rgba(0,0,0,.3); }
.k-back .pc-logo b { font-size: 14cqw; }

/* states */
.pcard.fresh { animation: pc-in .55s cubic-bezier(.2,1.3,.4,1) both; }
.pcard.glow { box-shadow: 0 0 0 calc(var(--cw, 100px) * .04) #ffd93d, 0 calc(var(--cw, 100px) * .06) calc(var(--cw, 100px) * .2) rgba(0,0,0,.5); }
@keyframes pc-in { from { transform: translateY(-40%) rotate(-8deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* /shared/tables.css */
/* Table styles, shared by the TV and the phones. Pick one per room (lobby or
   the TABLE button). Each class paints a surface; the TV adds the table edge. */
.tbl-walnut {
  --tbl-edge: #1c0f07; --tbl-rim: #5a3a22; --tbl-glow: rgba(255,190,120,.16);
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255,196,128,.18), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(0,0,0,.42) 318px 321px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #4a2d1b 0%, #3b2314 55%, #2c190d 100%);
}
.tbl-rooftop {
  --tbl-edge: #0b0f18; --tbl-rim: #3a4356; --tbl-glow: rgba(255,214,140,.10);
  background:
    radial-gradient(circle at 3% 1.3%, rgba(255,214,140,.95) 0 4px, rgba(255,214,140,.25) 5px, transparent 11px),
    radial-gradient(circle at 9% 2.1%, rgba(255,170,110,.95) 0 4px, rgba(255,170,110,.25) 5px, transparent 11px),
    radial-gradient(circle at 15% 1.3%, rgba(255,232,170,.95) 0 4px, rgba(255,232,170,.25) 5px, transparent 11px),
    radial-gradient(circle at 21% 2.1%, rgba(255,190,120,.95) 0 4px, rgba(255,190,120,.25) 5px, transparent 11px),
    radial-gradient(circle at 27% 1.3%, rgba(255,214,140,.95) 0 4px, rgba(255,214,140,.25) 5px, transparent 11px),
    radial-gradient(circle at 33% 2.1%, rgba(255,170,110,.95) 0 4px, rgba(255,170,110,.25) 5px, transparent 11px),
    radial-gradient(circle at 39% 1.3%, rgba(255,232,170,.95) 0 4px, rgba(255,232,170,.25) 5px, transparent 11px),
    radial-gradient(circle at 45% 2.1%, rgba(255,190,120,.95) 0 4px, rgba(255,190,120,.25) 5px, transparent 11px),
    radial-gradient(circle at 51% 1.3%, rgba(255,214,140,.95) 0 4px, rgba(255,214,140,.25) 5px, transparent 11px),
    radial-gradient(circle at 57% 2.1%, rgba(255,170,110,.95) 0 4px, rgba(255,170,110,.25) 5px, transparent 11px),
    radial-gradient(circle at 63% 1.3%, rgba(255,232,170,.95) 0 4px, rgba(255,232,170,.25) 5px, transparent 11px),
    radial-gradient(circle at 69% 2.1%, rgba(255,190,120,.95) 0 4px, rgba(255,190,120,.25) 5px, transparent 11px),
    radial-gradient(circle at 75% 1.3%, rgba(255,214,140,.95) 0 4px, rgba(255,214,140,.25) 5px, transparent 11px),
    radial-gradient(circle at 81% 2.1%, rgba(255,170,110,.95) 0 4px, rgba(255,170,110,.25) 5px, transparent 11px),
    radial-gradient(circle at 87% 1.3%, rgba(255,232,170,.95) 0 4px, rgba(255,232,170,.25) 5px, transparent 11px),
    radial-gradient(circle at 93% 2.1%, rgba(255,190,120,.95) 0 4px, rgba(255,190,120,.25) 5px, transparent 11px),
    radial-gradient(circle at 97% 1.3%, rgba(255,214,140,.95) 0 4px, rgba(255,214,140,.25) 5px, transparent 11px),
    linear-gradient(180deg, rgba(255,200,130,.16) 0%, transparent 9%),
    radial-gradient(ellipse 90% 18% at 50% 100%, rgba(120,150,255,.22), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.012) 2px 3px),
    repeating-radial-gradient(circle at 30% 60%, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #262c39 0%, #1b202b 60%, #141821 100%);
}
.tbl-arcade {
  --tbl-edge: #0a0614; --tbl-rim: #ff2bd6; --tbl-glow: rgba(255,43,214,.18);
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(120,60,255,.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(56,189,248,.10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,43,214,.10) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #1a0e33 0%, #120a26 60%, #0c0719 100%);
}
.tbl-marble {
  --tbl-edge: #0c1110; --tbl-rim: #b08d48; --tbl-glow: rgba(255,240,210,.08);
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(255,255,255,.07) 22.4%, transparent 23.4% 100%),
    linear-gradient(63deg, transparent 0 58%, rgba(255,255,255,.06) 58.3%, transparent 59.2% 100%),
    linear-gradient(141deg, transparent 0 71%, rgba(255,255,255,.05) 71.2%, transparent 72% 100%),
    linear-gradient(28deg, transparent 0 34%, rgba(255,255,255,.04) 34.2%, transparent 35% 100%),
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(160deg, #1c2a26 0%, #13201c 50%, #0d1714 100%);
}
/* Game themes, used when the table is set to Game Theme ("auto"). */
.tbl-deal {
  --tbl-edge: #0d241d; --tbl-rim: #c9b78a; --tbl-glow: rgba(220,255,230,.06);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 70% 60% at 50% 50%, #1d4a3d 0%, #163a30 60%, #11302740 100%),
    #13352b;
}
.nd-felt.tbl-deal::after {
  --seg: #8a5a33 0 9%, #0d241d 9% 10%, #93d0f0 10% 19%, #0d241d 19% 20%, #d9468f 20% 29%, #0d241d 29% 30%, #f08a24 30% 39%, #0d241d 39% 40%, #dc2626 40% 49%, #0d241d 49% 50%, #f5c518 50% 59%, #0d241d 59% 60%, #15803d 60% 69%, #0d241d 69% 70%, #1d4ed8 70% 79%, #0d241d 79% 80%, #2a2a33 80% 89%, #0d241d 89% 90%, #a3d9a5 90% 100%;
  content: ""; position: absolute; inset: 11px; border-radius: 26px; pointer-events: none; z-index: 0; opacity: .9;
  background:
    linear-gradient(90deg, var(--seg)) top left / 100% 12px no-repeat,
    linear-gradient(270deg, var(--seg)) bottom left / 100% 12px no-repeat,
    linear-gradient(180deg, var(--seg)) top left / 12px 100% no-repeat,
    linear-gradient(0deg, var(--seg)) top right / 12px 100% no-repeat;
}

/* ---- light theme: the game tables in daylight ---- */
/* Not Catan on a light oak table. */
.tbl-oak {
  --tbl-edge: #8a6a40; --tbl-rim: #f3e2bf; --tbl-glow: rgba(255,255,255,.22);
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255,245,225,.45), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(120,80,30,.22) 318px 320px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px, rgba(120,80,30,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(120,80,30,.05) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #dcbf8f 0%, #d2b07b 55%, #c49f69 100%);
}
/* Not Monopoly Deal on the pale mint of a classic property board. */
[data-theme="light"] .tbl-deal {
  --tbl-edge: #f6f1e1; --tbl-rim: #1f6b45; --tbl-glow: rgba(255,255,255,.35);
  background:
    repeating-linear-gradient(0deg, rgba(31,107,69,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(31,107,69,.05) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 70% 60% at 50% 50%, #e6f3e4 0%, #d8ebd6 60%, #cfe5cd 100%),
    #d5e9d3;
}
[data-theme="light"] .nd-felt.tbl-deal::after {
  --seg: #8a5a33 0 9%, #f6f1e1 9% 10%, #93d0f0 10% 19%, #f6f1e1 19% 20%, #d9468f 20% 29%, #f6f1e1 29% 30%, #f08a24 30% 39%, #f6f1e1 39% 40%, #dc2626 40% 49%, #f6f1e1 49% 50%, #f5c518 50% 59%, #f6f1e1 59% 60%, #15803d 60% 69%, #f6f1e1 69% 70%, #1d4ed8 70% 79%, #f6f1e1 79% 80%, #2a2a33 80% 89%, #f6f1e1 89% 90%, #a3d9a5 90% 100%;
}

/* Not Uno: a game-night card table, four colour glows under the cloth. */
.tbl-uno {
  --tbl-edge: #0e0c14; --tbl-rim: #3d3550; --tbl-glow: rgba(255,255,255,.05);
  background:
    radial-gradient(ellipse 45% 40% at 8% 10%, rgba(229,56,59,.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 10%, rgba(246,201,14,.16), transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 92%, rgba(47,168,79,.18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 92%, rgba(31,111,229,.22), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #221b2c 0%, #1a1522 60%, #141019 100%);
}
[data-theme="light"] .tbl-uno {
  --tbl-edge: #ffffff; --tbl-rim: #e2dccf; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 45% 40% at 8% 10%, rgba(229,56,59,.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 10%, rgba(246,201,14,.14), transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 92%, rgba(47,168,79,.11), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 92%, rgba(31,111,229,.12), transparent 70%),
    linear-gradient(180deg, #faf7f1 0%, #f4efe5 100%);
}

/* /shared/notuno.css */
/* Crazy Eights card faces, shared by the TV and the phones. Size with --cw. */
.ucard, .ucard * { box-sizing: border-box; }
.ucard {
  width: var(--cw, 100px); aspect-ratio: 5 / 7.6; container-type: inline-size; position: relative; flex: none;
  /* the card is its own container, so its own box is sized from --cw, not cqw */
  border-radius: calc(var(--cw, 100px) * .09); background: #fbfbf8; padding: calc(var(--cw, 100px) * .055); user-select: none; -webkit-user-select: none;
  box-shadow: 0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .07) rgba(0,0,0,.35), inset 0 0 0 calc(var(--cw, 100px) * .008) rgba(0,0,0,.1);
  font-family: "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.ucard .uc-inner { position: relative; width: 100%; height: 100%; border-radius: 6.5cqw; background: var(--uc, #1c1c1e); overflow: hidden; color: #fff; }
.ucard.c-yellow .uc-inner { color: #1b1b1b; }
.ucard .uc-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.ucard .uc-disc { position: absolute; left: 50%; top: 50%; width: 76cqw; height: 76cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.4cqw var(--uc), inset 0 0 0 3.6cqw rgba(255,255,255,.9), 0 2cqw 5cqw rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; color: var(--uc); }
.ucard.c-yellow .uc-disc { color: #d9a400; }
.ucard .uc-big { font-size: 50cqw; font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.04em; text-shadow: 1.2cqw 1.2cqw 0 rgba(0,0,0,.14); transform: translateX(-1.5cqw); }
.ucard .uc-big.sm { font-size: 36cqw; }
.ucard .uc-big.ul { text-decoration: underline; text-decoration-thickness: 3cqw; text-underline-offset: 3cqw; }
.ucard .uc-sym { width: 50cqw; height: 50cqw; display: block; }
.ucard .uc-sym svg, .ucard .uc-corner svg { width: 100%; height: 100%; display: block; }
.ucard .uc-corner { position: absolute; font-size: 15cqw; font-weight: 900; font-style: italic; line-height: 1; width: 16cqw; height: 16cqw; display: flex; align-items: center; justify-content: center; text-shadow: 0 .8cqw 0 rgba(0,0,0,.25); }
.ucard .uc-corner.tl { left: 6cqw; top: 6cqw; }
.ucard .uc-corner.br { right: 6cqw; bottom: 6cqw; transform: rotate(180deg); }
.ucard .uc-cl { position: absolute; width: 19cqw; height: 19cqw; border-radius: 50%; background: #fff; color: #1b1b1b; font-size: 14cqw; font-weight: 900; font-style: normal; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 .8cqw rgba(0,0,0,.35); }
.ucard .uc-cl.tl { left: 4.5cqw; top: 25cqw; }
.ucard .uc-cl.br { right: 4.5cqw; bottom: 25cqw; }
.ucard.c-wild .uc-inner { background: radial-gradient(ellipse at 50% 40%, #2c2a33, #121118); }
.ucard .uc-wheel { position: absolute; left: 50%; top: 50%; width: 70cqw; height: 70cqw; transform: translate(-50%, -50%) rotate(-12deg); border-radius: 50%; box-shadow: 0 0 0 2.6cqw #fff, 0 3cqw 8cqw rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.ucard .uc-wtxt { transform: rotate(12deg); font-size: 15cqw; font-weight: 900; font-style: italic; color: #fff; background: rgba(0,0,0,.55); padding: 2cqw 5cqw; border-radius: 5cqw; letter-spacing: .02em; }
.ucard.k-wild4 .uc-wtxt { font-size: 26cqw; }
.ucard.k-wild4 .uc-corner { color: #fff; }
.ucard.k-back .uc-inner { background: radial-gradient(ellipse at 50% 35%, #2b2836, #13111a); }
.ucard .uc-ring { position: absolute; left: 50%; top: 50%; width: 80cqw; height: 80cqw; transform: translate(-50%, -50%) rotate(20deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%); mask: radial-gradient(circle, transparent 56%, #000 57%); opacity: .95; }
.ucard .uc-logo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg); color: #fff; line-height: .9; }
/* CRAZY over EIGHTS, upright. */
.ucard .uc-logo small { font-size: 11cqw; font-weight: 800; letter-spacing: .2em; margin-left: .2em; color: #f6c90e; }
.ucard .uc-logo b { font-size: 16cqw; font-weight: 900; letter-spacing: .02em; text-shadow: 1cqw 1cqw 0 rgba(0,0,0,.45); }
.ucard.dim { filter: saturate(.45) brightness(.8); }
.uc-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.uc-explain .uc-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.uc-explain p { margin: 5px 0 0; }

/* /shared/deck52.css */
/* The standard 52-card deck (shared/deck52.js): faces, backs, the flip, the hand fan.
   Size a card with --cw on it or any ancestor: the card's own box (radius, border, shadow)
   is sized from var(--cw); the art inside is one SVG that scales with it.
   Light is the base; [data-theme="dark"] only warms the paper a touch and deepens shadows.
   Games: never style .d52 at the start of a selector in your own CSS (another game would
   clash); scope it under your own prefix, e.g. .bj-table .d52 { … }. */
.d52, .d52 * { box-sizing: border-box; }
.d52 {
  --d52-paper: #fffdf8;
  --d52-black: #17181f;
  --d52-red: #c8232c;
  --d52-blue: #1c58c4;   /* four-colour diamonds */
  --d52-green: #158048;  /* four-colour clubs */
  --d52-edge: rgba(23, 24, 31, .14);
  --d52-shadow: 0 calc(var(--cw, 100px) * .018) calc(var(--cw, 100px) * .06) rgba(21, 22, 40, .26);
  --d52-font: "Spectral", Georgia, "Times New Roman", serif;
  width: var(--cw, 100px); aspect-ratio: 5 / 7; position: relative; flex: none; display: block;
  border-radius: calc(var(--cw, 100px) * .068);
  background: var(--d52-paper); color: var(--d52-black);
  box-shadow: var(--d52-shadow), inset 0 0 0 max(1px, calc(var(--cw, 100px) * .006)) var(--d52-edge);
  overflow: hidden; user-select: none; -webkit-user-select: none;
  font-family: var(--d52-font);
}
.d52.red { color: var(--d52-red); }
.d52-4c .d52.s-D, .d52.d52-4c.s-D { color: var(--d52-blue); }
.d52-4c .d52.s-C, .d52.d52-4c.s-C { color: var(--d52-green); }
.d52 .d52-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.d52 .d52-rank { font-family: var(--d52-font); font-weight: 700; }
.d52 .d52-maker { font-family: "Rubik", "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-weight: 700; fill: var(--d52-black); }

/* ---- backs: a cream border round the field, like a real card ---- */
.d52.d52-back { background: #fbf8f1; }
.d52-back .d52-bf {
  position: absolute; inset: calc(var(--cw, 100px) * .058); border-radius: calc(var(--cw, 100px) * .036);
  background-color: #15161f;
  box-shadow: inset 0 0 0 max(1px, calc(var(--cw, 100px) * .012)) #15161f, inset 0 0 0 max(2px, calc(var(--cw, 100px) * .024)) rgba(255, 210, 63, .9);
}
.d52-back.b-brand .d52-bf {
  /* a quiet lattice of seats: tiny cream dots on a diagonal grid, centred on the card */
  background-image:
    radial-gradient(circle, rgba(246, 242, 234, .16) 0 calc(var(--cw, 100px) * .011), transparent calc(var(--cw, 100px) * .014)),
    radial-gradient(circle, rgba(246, 242, 234, .09) 0 calc(var(--cw, 100px) * .007), transparent calc(var(--cw, 100px) * .01));
  background-size: calc(var(--cw, 100px) * .1) calc(var(--cw, 100px) * .1);
  background-position: center, calc(50% + var(--cw, 100px) * .05) calc(50% + var(--cw, 100px) * .05);
}
.d52-back.b-red .d52-bf, .d52-back.b-blue .d52-bf {
  background-color: #b3262d;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .26) 0 max(1px, calc(var(--cw, 100px) * .008)), transparent 0 calc(var(--cw, 100px) * .05)),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .26) 0 max(1px, calc(var(--cw, 100px) * .008)), transparent 0 calc(var(--cw, 100px) * .05));
  background-position: center;
  box-shadow: inset 0 0 0 max(1px, calc(var(--cw, 100px) * .02)) #b3262d, inset 0 0 0 max(2px, calc(var(--cw, 100px) * .03)) rgba(255, 255, 255, .85);
}
.d52-back.b-blue .d52-bf { background-color: #22468c; box-shadow: inset 0 0 0 max(1px, calc(var(--cw, 100px) * .02)) #22468c, inset 0 0 0 max(2px, calc(var(--cw, 100px) * .03)) rgba(255, 255, 255, .85); }

/* ---- states any game can use ---- */
.d52.dim { filter: saturate(.35) brightness(.82); }
.d52.d52-in { animation: d52-in .55s cubic-bezier(.2, 1.1, .35, 1) both; }
.d52.d52-land { animation: d52-land .3s ease-out both; }
@keyframes d52-in { from { transform: translateY(-60%) rotate(-10deg) scale(.6); opacity: 0; } }
@keyframes d52-land { from { transform: translateY(-14%) scale(1.08); } }

/* ---- the flip (Deck52.flip): add .up to turn it face up ---- */
.d52-flip { width: var(--cw, 100px); aspect-ratio: 5 / 7; position: relative; flex: none; perspective: calc(var(--cw, 100px) * 6); }
.d52-flip > .d52-fb, .d52-flip > .d52-ff { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.3, .9, .4, 1); }
.d52-flip > .d52-ff { transform: rotateY(180deg); }
.d52-flip.up > .d52-fb { transform: rotateY(-180deg); }
.d52-flip.up > .d52-ff { transform: rotateY(0deg); }

/* ---- the hand fan on the phone (Deck52.fanHtml + bindPeek; the dock, .ndp-peek and
        .ndp-peekcap come from phone/phone.css) ---- */
.ndp-fan.d52-fan { height: calc(var(--cw) * 1.4 + 44px); }
.ndp-fan .d52 { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, translate .18s ease, filter .2s, box-shadow .2s; cursor: pointer; }
.ndp-fan .d52.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.ndp-fan .d52.lit { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px rgba(255, 210, 63, .55), 0 6px 16px rgba(0, 0, 0, .35); }
.ndp-fan .d52.picked { translate: 0 -22px; box-shadow: 0 0 0 3px #ffd23f, 0 10px 22px rgba(0, 0, 0, .4); }
.ndp-fan .d52.picked.peeking { translate: 0 -42px; }
.ndp-fan .d52.dim { filter: saturate(.3) brightness(.7); }
.ndp-peekcard .d52 { box-shadow: 0 2px 6px rgba(0, 0, 0, .2), inset 0 0 0 1px var(--d52-edge); }

/* ---- explain() ---- */
.d52-explain { background: var(--fill, rgba(120, 120, 128, .14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text, inherit); }
.d52-explain .d52-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2, inherit); }
.d52-explain p { margin: 5px 0 0; }

/* ---- light theme (the default look) and dark ---- */
[data-theme="light"] .ndp-fan .d52.peeking { box-shadow: 0 14px 30px rgba(30, 40, 80, .3); }
[data-theme="light"] .ndp-fan .d52.lit { box-shadow: 0 0 0 3px #15161f, 0 0 0 6px #ffd23f, 0 6px 16px rgba(30, 40, 80, .25); }
[data-theme="light"] .ndp-fan .d52.picked { box-shadow: 0 0 0 3px #15161f, 0 0 0 6px #ffd23f, 0 10px 22px rgba(30, 40, 80, .3); }
[data-theme="light"] .ndp-fan .d52.dim { filter: saturate(.5) opacity(.62); }
[data-theme="dark"] .d52 { --d52-paper: #f8f4ec; --d52-edge: rgba(0, 0, 0, .3); --d52-shadow: 0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .08) rgba(0, 0, 0, .55); }
[data-theme="dark"] .d52.d52-back { background: #f3efe6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .d52 { --d52-paper: #f8f4ec; --d52-edge: rgba(0, 0, 0, .3); --d52-shadow: 0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .08) rgba(0, 0, 0, .55); }
}

/* /shared/remote.css */
/* Party Room · playing from far away: watch screens, the phone's Table view,
   voice chat controls and speaking rings. Loaded on the TV (1920×1080 stage
   units) and on phones; the class names don't overlap. */

/* Speaking rings: shared/voice.js writes the per-player rules, this is the pulse. */
@keyframes pv-talk { from { outline-offset: 2px; } to { outline-offset: 6px; } }
.pv-sink { display: none; }

/* ---- TV: watch screen (/tv/CODE) --------------------------------------------- */
.watch #top-right,
.watch .ap-foot,
.watch .ap-watch,
.watch .final-actions { display: none !important; }
.watch [data-focus] { cursor: default; }
.watch .focused { outline: none !important; box-shadow: none !important; }
.ap-watch { margin-top: 18px; font-size: 21px; line-height: 1.35; color: var(--label-2); }
.ap-watch b { display: block; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
/* Public codes are 5 letters: keep the big code inside its panel. */
.ap-code.len5 { font-size: 134px; letter-spacing: .04em; }
.ap-code.len6 { font-size: 110px; letter-spacing: .03em; }
.pr-notice .title { font-size: 56px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.pr-notice .sub { font-size: 30px; color: var(--label-2); text-align: center; max-width: 1100px; line-height: 1.35; }

/* ---- TV: who is in voice, in the top bar --------------------------------------- */
.pr-dock { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 0; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--glass-2, rgba(44,44,48,.72)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pr-dock[hidden] { display: none; }
.pr-dock-mic { width: 34px; height: 34px; color: var(--green, #30d158); margin-right: 12px; display: inline-flex; }
.pr-dock-mic svg { width: 100%; height: 100%; }
.pr-dock-p { position: relative; display: inline-flex; margin-left: -6px; }
.pr-dock-p:first-of-type { margin-left: 0; }
.pr-dock-p + .pr-dock-p { margin-left: 4px; }
.pr-dock .avatar { width: 52px; height: 52px; font-size: 24px; }
.pr-dock-p i { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--red, #ff453a); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 4px; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.pr-dock-p i svg { width: 100%; height: 100%; }
.pr-dock-more { margin-left: 10px; font-size: 22px; font-weight: 700; color: var(--label-2); }
[data-theme="light"] .pr-dock { background: rgba(255,255,255,.82); box-shadow: 0 10px 30px rgba(30,40,80,.16); }

/* ---- phone: the mic, over the middle of the bottom bar (#dock), or wherever it was dragged ---- */
#pr-mic { position: fixed; z-index: 55; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; border: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--fill-2); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 0 0 .5px var(--sep); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .15s, color .15s, transform .12s, box-shadow .15s; }
#pr-mic[hidden] { display: none; }
#pr-mic.moved { bottom: auto; transform: none; }
#pr-mic svg { width: 28px; height: 28px; pointer-events: none; }
#pr-mic.held { box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 0 0 .5px var(--sep); }
#pr-mic.held:not(.moved) { transform: translateX(-50%) scale(1.08); }
#pr-mic.held.moved { transform: scale(1.08); }
#pr-mic.live { background: rgba(48,209,88,.22); color: var(--green); }
#pr-mic.muted { background: rgba(255,69,58,.2); color: var(--red); }
#pr-mic.ptt, #pr-mic.listen { background: rgba(10,132,255,.2); color: var(--blue); }
#pr-mic.talking { background: var(--green); color: #000; }
#pr-mic.hearing:not(.talking) { box-shadow: 0 0 0 3px rgba(48,209,88,.55), 0 6px 18px rgba(0,0,0,.18); }
#pr-mic .pr-deaf { position: absolute; bottom: -2px; left: -2px; width: 20px; height: 20px; padding: 3px; border-radius: 10px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
#pr-mic .pr-deaf svg { width: 14px; height: 14px; }
#pr-mic .pr-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: #000; font: 700 11px var(--font); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.pr-link { border: none; background: none; padding: 0; color: var(--link, var(--blue)); font: inherit; cursor: pointer; }

/* ---- phone: voice sheet ------------------------------------------------------------ */
.pr-voice { max-height: calc(100vh - var(--safe-top, 0px) - 24px); max-height: calc(100dvh - var(--safe-top, 0px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
/* a short phone (320x568): the picture and the long tip give way, so Done is on screen when the sheet opens */
@media (max-height: 640px) { .pr-voice .pr-hero, .pr-voice .pr-tip { display: none; } }
.pr-ov.still, .pr-ov.still .sheet { animation: none; }
.pr-hero { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 0; background: rgba(48,209,88,.18); color: var(--green); display: flex; align-items: center; justify-content: center; }
.pr-hero svg { width: 34px; height: 34px; }
.pr-note { margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--label-2); padding: 0 8px; }
.pr-tip { margin: 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--label-3); padding: 0 8px; }
.pr-err { margin: 0; font-size: 14px; line-height: 1.4; color: var(--orange); text-align: center; padding: 0 6px; }
.pr-here { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--label-2); }
.pr-here span:last-child { margin-left: 4px; }
.pr-off { width: 22px; height: 22px; color: var(--red); margin-left: auto; flex: none; }
.pr-off svg { width: 100%; height: 100%; }
.pr-voice .ios-row[disabled] { opacity: .5; }
.pr-voice .pr-ico { width: 24px; height: 24px; flex: none; color: var(--label-2); }
.pr-voice .pr-ico svg { width: 100%; height: 100%; }
.pr-switch { margin-left: auto; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2); position: relative; transition: background .2s; }
.pr-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.pr-switch.on { background: var(--green); }
.pr-switch.on::after { transform: translateX(20px); }

/* ---- phone: push to talk and "tap to hear" ------------------------------------------ */
.pr-banner { position: fixed; left: 16px; right: 16px; top: calc(var(--safe-top, 0px) + 56px); z-index: 58; display: flex; justify-content: center; }
.pr-banner[hidden] { display: none; }
.pr-banner button { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 999px; padding: 12px 18px; background: var(--green); color: #000; font: 700 15px var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
.pr-banner svg { width: 18px; height: 18px; }


/* /phone/games/notdeal.css */
/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.ndp:not(.nxp) .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.ndp:not(.nxp) .ndp-pick { max-height: 100%; overflow-y: auto; }
.ndp:not(.nxp) .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* paying: the value under each card, a chosen card is ticked (not only lifted), and the buttons stay on screen */
.ndp .ndp-assets { --cw: 76px; row-gap: 12px; }
.ndp-ac { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ndp-ac b { font-size: 15px; font-weight: 900; color: var(--text); }
.ndp-ac.on b { color: var(--accent); }
.ndp .ndp-sheet .btn.ndp-auto { min-height: 48px; font-size: 16px; background: var(--fill); color: var(--text); }
/* cash is the quiet way to use a card; its own power is the first button */
.ndp .ndp-sheet .btn.bankopt { background: transparent; box-shadow: inset 0 0 0 2px var(--sep, rgba(128,128,128,.4)); color: var(--text); font-size: 16px; min-height: 48px; }
.ndp .ndp-sheet .btn.swatch-btn { font-weight: 800; }

/* buttons: a deeper blue (white on it is 5.6:1) and a readable "Close" */
.ndp { --blue: #0066d6; }
.ndp .btn.ghost { color: var(--link); }

/* short phones (a 568px SE, a 664px browser window): a compact tray so your table stays on screen */
@media (max-height: 700px) {
  .ndp { gap: 8px; }
  .ndp .ndp-turnbar { padding: 8px 12px; gap: 8px; }
  .ndp .ndp-turnbar.me .ndp-tbtext > b { font-size: 26px; }
  .ndp .ndp-turnbar .tclock { width: 54px; height: 54px; }
  .ndp .ndp-dock { padding-top: 8px; }
  .ndp .ndp-docktop { margin-bottom: 6px; }
  .ndp .ndp-dock .ndp-fan { height: calc(var(--cw) * 1.4 + 26px + var(--sag, 0px)); }
  .ndp .ndp-fan .pcard { top: 14px; }
  .ndp .ndp-sheet-top .ndp-attack { --cw: 60px !important; }
  .ndp .ndp-sheet-top { padding-bottom: 8px; }
  .ndp .ndp-bigcard { --cw: 76px; }
  .ndp .ndp-sheet { padding: 12px; gap: 8px; }
  .ndp .ndp-sheet .btn { min-height: 48px; font-size: 16px; }
  .ndp .ndp-assets { --cw: 64px; }
}
@media (max-height: 600px) {
  .ndp .ndp-bigcard { --cw: 56px; }
}

/* /shared/notdealnm.css */
/* Property Deal: Cutthroat. Card faces, IOU chips and the table surface, shared by the
   TV and the phones. Card sizing follows shared/cards.css: set --cw on the card or an
   ancestor; inside the card, everything is in container units. */

/* ---- Cutthroat action cards: the classic ring, a meaner kicker, line-drawn icons ---- */
.k-nmact .pc-kicker { color: #b4121b; letter-spacing: .2em; }
.k-nmact .pc-ring { background: radial-gradient(circle at 50% 35%, #fffaf0, #e6dcc6); }
.k-nmact .pc-icon { width: 30cqw; height: 30cqw; color: var(--ring); font-size: 0; }
.k-nmact .pc-icon svg { width: 100%; height: 100%; display: block; }
.k-nmact .pc-atitle { font-size: 7.6cqw; line-height: .98; max-width: 56cqw; }
.k-nmact.a-gate .pc-atitle, .k-nmact.a-river .pc-atitle { font-size: 6.6cqw; }
.k-nmact .pc-text { font-size: 5.1cqw; line-height: 1.12; bottom: 5cqw; }
.pcard.k-nmact::before, .pcard.k-nmrent.dbl::before { content: ''; position: absolute; right: 0; top: 0; width: 15cqw; height: 15cqw; background: linear-gradient(225deg, #b4121b 0 50%, transparent 50%); pointer-events: none; }

/* rent and double rent */
.k-nmrent .pc-kicker { color: #5b5240; }
.k-nmrent.dbl .pc-kicker { color: #b4121b; }
.k-nmrent .pc-hub { flex-direction: column; font-size: 8cqw; }
.k-nmrent.dbl .pc-hub { background: #1b1f2a; color: #fff; font-size: 6.6cqw; box-shadow: 0 0 0 1.2cqw #b4121b; }
.k-nmrent.dbl .pc-hub b { font-size: 15cqw; line-height: .9; color: #ff4b55; }
.k-nmrent .pc-text { font-size: 5.8cqw; }

/* the reference card */
.k-nmref { padding: 8cqw 7cqw; }
.k-nmref .pc-kicker { margin-top: 2cqw; color: #b4121b; }
.k-nmref ol { margin: 5cqw 0 0; padding-left: 9cqw; font-size: 7cqw; font-weight: 800; line-height: 1.3; }

/* the back: black and red, a PROPERTY DEAL disc and a CUTTHROAT stamp */
.k-nmback { background: #120c0d; box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .1) rgba(0,0,0,.5); }
.k-nmback .pc-backin { position: absolute; inset: 5cqw; border-radius: 4cqw; border: 1.2cqw solid #b4121b; background: repeating-linear-gradient(-45deg, #1d1214 0 5cqw, #120c0d 5cqw 10cqw); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.k-nmback .pc-logo { background: #f2ead8; color: #120c0d; font-weight: 900; font-size: 9cqw; line-height: .95; text-align: center; padding: 4cqw 6cqw; border-radius: 4cqw; transform: rotate(-12deg); letter-spacing: .06em; box-shadow: 0 1cqw 0 rgba(0,0,0,.4); }
.k-nmback .pc-logo b { font-size: 14cqw; }
.k-nmback .pc-stamp { position: absolute; bottom: 12cqw; left: 50%; transform: translateX(-50%) rotate(-8deg); border: 1.4cqw solid #ff2b3a; color: #ff2b3a; font-weight: 900; font-size: 8.5cqw; letter-spacing: .08em; padding: .5cqw 3cqw; border-radius: 2cqw; white-space: nowrap; font-family: "Futura", "Avenir Next", Arial, sans-serif; }

/* ---- IOU chips: poker chips in the five debt-chip colours ---- */
.nm-chip { --chip: #d61f2c; --cs: 34px; position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--cs); height: var(--cs); border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--chip) 0 52%, transparent 53%), repeating-conic-gradient(var(--chip) 0 22.5deg, #fff 22.5deg 45deg);
  box-shadow: 0 0 0 calc(var(--cs) * .06) var(--chip), 0 calc(var(--cs) * .08) calc(var(--cs) * .18) rgba(0,0,0,.45); }
.nm-chip i { font-style: normal; font-weight: 900; font-size: calc(var(--cs) * .27); letter-spacing: .02em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); font-family: "Futura", "Avenir Next", Arial, sans-serif; }
.nm-chip.out { background: transparent; box-shadow: inset 0 0 0 calc(var(--cs) * .07) color-mix(in srgb, var(--chip) 55%, transparent); border: calc(var(--cs) * .06) dashed color-mix(in srgb, var(--chip) 70%, transparent); }
.nm-chip.out i { color: color-mix(in srgb, var(--chip) 80%, #fff); text-shadow: none; opacity: .85; }
.nm-chip.held { animation: nm-chipin .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes nm-chipin { from { transform: translateY(-30px) rotate(-90deg) scale(.4); opacity: 0; } }
[data-theme="light"] .nm-chip.out i { color: color-mix(in srgb, var(--chip) 85%, #000); }

/* ---- the table: a property board after dark, edged with hazard tape ---- */
.tbl-nomercy {
  --tbl-edge: #0c0809; --tbl-rim: #8f1219; --tbl-glow: rgba(255,60,70,.07);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 70% 60% at 50% 50%, #1d2a25 0%, #141d1a 60%, #0f1513 100%),
    #111816;
}
[data-theme="light"] .tbl-nomercy {
  --tbl-edge: #f4ede1; --tbl-rim: #a3121b; --tbl-glow: rgba(255,255,255,.3);
  background:
    repeating-linear-gradient(0deg, rgba(120,20,25,.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(120,20,25,.045) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 70% 60% at 50% 50%, #f3eee4 0%, #ebe3d5 60%, #e2d8c6 100%),
    #ebe3d5;
}
.nm-felt.tbl-nomercy::after {
  content: ""; position: absolute; inset: 11px; border-radius: 26px; pointer-events: none; z-index: 0; opacity: .95;
  --tape: repeating-linear-gradient(-45deg, #b4121b 0 16px, #141012 16px 32px);
  background: var(--tape) top left / 100% 12px no-repeat, var(--tape) bottom left / 100% 12px no-repeat, var(--tape) top left / 12px 100% no-repeat, var(--tape) top right / 12px 100% no-repeat;
}
[data-theme="light"] .nm-felt.tbl-nomercy::after { --tape: repeating-linear-gradient(-45deg, #c0121c 0 16px, #1d1416 16px 32px); opacity: .9; }

/* /phone/games/notdealnm.css */
/* Property Deal: Cutthroat on the phone. Builds on Property Deal's phone pieces (.ndp-*
   in phone/phone.css: sections, the fan, the peek, sheets) and Crazy Eights' turn bar, and adds
   the IOU strip, the debt and hand-out sheets, motion and full-screen moments. */
body.g-notdealnm { font-family: "Futura", "Avenir Next", "Roboto Condensed", Arial, sans-serif; }
body.g-notdealnm .ndp-label, body.g-notdealnm .h2 { text-transform: uppercase; letter-spacing: .03em; }
body.g-notdealnm .pc-explain { font-family: var(--font); }

/* whose turn: the gold bar and a gold frame round the whole screen */
.nxp-bar { min-height: 56px; }
.nxp-bar.me b { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .02em; }
.nxp-bar.me .ndp-plays { margin-left: 6px; }
.nxp-bar.me .ndp-plays i { background: #1b1b1b; box-shadow: none; width: 12px; height: 12px; }
.nxp-bar.me .ndp-plays i.used { background: rgba(0,0,0,.18); }
.nxp-bar .muted { color: var(--label-2); font-weight: 600; }
.nxp-deck { margin-left: auto; font-size: 14px; color: var(--label-2); white-space: nowrap; }
body.nxp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nxp-frame 1.6s ease-in-out infinite; }
@keyframes nxp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.nxp.waiting .ndp-fan { opacity: .85; transition: opacity .3s; }
.nxp.waiting .ndp-fan .pcard.peeking { opacity: 1; }

/* the pile and your IOUs */
.nxp-strip { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.26); border-radius: 18px; padding: 10px 12px; }
.nxp-pile { flex: none; min-height: calc(46px * 1.4); }
.nxp-empty { --cw: 46px; font-size: 11px; }
.nxp-iou { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nxp-iourow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nxp-iourow .ndp-label { margin-right: 2px; }
.nxp-iourow .nm-chip { --cs: 28px; }
.nxp-ioutxt { font-size: 14px; color: var(--label-2); line-height: 1.3; font-family: var(--font); }
.nxp-help { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: transparent; font-weight: 900; font-size: 18px; color: var(--text); cursor: pointer; }

/* everyone else */
.nxp-opp.turn { box-shadow: inset 3px 0 0 #ffc400; padding-left: 8px; border-radius: 6px; }
.nxp-opp.acting .ndp-oname { color: #ff9f40; }
.nxp-oious { display: inline-flex; gap: 3px; margin-top: 4px; }
.nxp-oious .nm-chip { --cs: 15px; }
.nxp-oious .nm-chip i { display: none; }
.nxp-oious .nm-chip.out { border-width: 2px; }

/* the dock: a solid base so the page never shows through behind the hand */
.nxp .ndp-dock { background: rgb(10,8,9); box-shadow: 0 -8px 14px rgba(0,0,0,.3); }
[data-theme="light"] .nxp .ndp-dock { background: rgb(243,238,228); box-shadow: 0 -8px 14px rgba(80,30,30,.14); }

/* the end-turn button sits over the page: give it a solid face */
.nxp .ndp-docktop .btn.end { background: #2c2c2e; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
[data-theme="light"] .nxp .ndp-docktop .btn.end { background: #fff; box-shadow: 0 6px 18px rgba(80,30,30,.16); }
.nxp-why { font-size: 14px; color: var(--label-2); font-family: var(--font); text-align: center; }

/* sheets: debt, IOU payments, handing out */
.nxp-warn { background: rgba(214,31,44,.16); border: 1px solid rgba(214,31,44,.6); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; font-family: var(--font); }
.ndp-sheet .btn.nxp-red, .btn.nxp-red { background: #c8102e; color: #fff; font-weight: 800; letter-spacing: .02em; }
.ndp-sheet .btn.nxp-iou-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.ndp-sheet .btn.nxp-iou-btn .nm-chip { --cs: 30px; }
.nxp-givegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.nxp-give > div { --cw: 62px !important; }
[data-give-send] { position: sticky; bottom: 0; box-shadow: 0 -8px 20px rgba(0,0,0,.25); }
.nxp-give { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.nxp-give > div { cursor: pointer; }
.nxp-give.kept .pcard { box-shadow: 0 0 0 4px #ffc400, 0 10px 24px rgba(0,0,0,.5); transform: translateY(-4px); }
.nxp-give:not(.kept) .pcard { filter: saturate(.75); }
.nxp-keepbadge { font-size: 14px; font-weight: 900; letter-spacing: .14em; background: #ffc400; color: #1b1b1b; padding: 4px 10px; border-radius: 999px; }
.nxp-to { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 2px 8px 2px 2px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: 13px; font-weight: 800; cursor: pointer; max-width: 100%; }
.nxp-to .avatar { width: 24px; height: 24px; font-size: 12px; }
.nxp-to span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nxp-pickrow { display: flex; flex-direction: column; gap: 6px; }
.nxp-pickwho { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.nxp-pickrow .ndp-assets { --cw: 62px; }
.nxp-debtbar { display: flex; align-items: center; gap: 8px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 15px; }
.nxp-debtbar .nm-chip { --cs: 28px; }
.nxp-debtbar .nm-chip.out i { color: #1b1b1b; }

/* motion: dealt and drawn cards slide in, cards land on the pile, mine fly there */
.ndp-fan .pcard.nxp-in { animation: nxp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nxp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nxp-pile .pcard.nxp-land { animation: nxp-land .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes nxp-land { from { translate: 0 -60px; scale: 1.4; rotate: -12deg; opacity: 0; } }
.nxp-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }
.nxp-ghost .pcard { box-shadow: 0 20px 40px rgba(0,0,0,.45); }

/* big moments on every phone */
.nxp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
  background: radial-gradient(circle, color-mix(in srgb, var(--mc) 72%, #000), rgba(6,3,4,.9) 75%); animation: nxp-moment 2.6s ease both; }
.nxp-moment::before, .nxp-moment::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: repeating-linear-gradient(-45deg, #ffcc00 0 16px, #141012 16px 32px); }
.nxp-moment::before { top: 0; } .nxp-moment::after { bottom: 0; }
@keyframes nxp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.nxp-moment .nxp-mcard { animation: nxp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.nxp-moment .nxp-mcard .pcard { transform: rotate(-8deg); box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.nxp-moment .nxp-mcard .nm-chip { --cs: 110px; }
.nxp-moment .nxp-mcard .nm-chip i { font-size: 32px; }
@keyframes nxp-slam { from { transform: scale(2.4) rotate(16deg); opacity: 0; } }
.nxp-moment .big { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-size: 50px; font-weight: 900; font-style: italic; line-height: .95; text-align: center; color: #fff; text-shadow: 4px 4px 0 var(--mc), 8px 8px 0 rgba(0,0,0,.4); transform: rotate(-5deg); animation: nxp-big .45s .06s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes nxp-big { from { transform: rotate(-5deg) scale(2.6); opacity: 0; } }
.nxp-moment .who { display: flex; align-items: center; gap: 8px; }
.nxp-moment .who .avatar { width: 46px; height: 46px; font-size: 20px; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.nxp-moment .arr { font-size: 30px; font-weight: 900; color: #ffcc00; }
.nxp-moment .sub { background: rgba(0,0,0,.7); color: #fff; font-size: 17px; font-weight: 800; padding: 8px 14px; border-radius: 12px; text-align: center; max-width: 92vw; line-height: 1.3; }
.nxp-moment .sub b { display: block; color: #ff6b6b; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.nxp-moment.hit { animation: nxp-moment 2.6s ease both, nxp-shake .5s .1s ease-in-out 2; }
@keyframes nxp-shake { 0%, 100% { translate: 0 0; } 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* the end */
.nxp-stamp { display: inline-block; transform: rotate(-6deg); border: 4px solid #ff2b3a; color: #ff2b3a; font-weight: 900; font-size: 22px; letter-spacing: .14em; padding: 1px 12px; border-radius: 6px; }

/* ---- light theme ---- */
[data-theme="light"] .nxp-strip { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(120,20,25,.08); }
[data-theme="light"] .nxp-help { border-color: rgba(0,0,0,.2); }
[data-theme="light"] .nxp-warn { background: rgba(214,31,44,.08); }
[data-theme="light"] .nxp-to { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }
[data-theme="light"] .nxp-opp.acting .ndp-oname { color: #c2410c; }
[data-theme="light"] .nxp .ndp-log .l-steal { color: #c2410c; } [data-theme="light"] .nxp .ndp-log .l-debt { color: #b4121b; } [data-theme="light"] .nxp .ndp-log .l-iou { color: #8a6100; }
.nxp .ndp-log .l-steal { color: #fb923c; } .nxp .ndp-log .l-debt { color: #ff4b55; font-weight: 800; } .nxp .ndp-log .l-iou { color: #fbbf24; }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.nxp .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.nxp .ndp-pick { max-height: 100%; overflow-y: auto; }
.nxp .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* the nxp sheets: the pay row and the IOU strip in an opponent's sheet */
.nxp .ndp-sheet .nxp-iourow { padding-bottom: 4px; }
@media (max-height: 700px) {
  .nxp { gap: 8px; }
  .nxp-bar { padding: 8px 12px; }
  .nxp-strip { padding: 6px 10px; }
  .nxp .ndp-sheet { padding: 12px; gap: 8px; }
  .nxp .ndp-sheet .btn { min-height: 48px; font-size: 16px; }
  .nxp .ndp-bigcard { --cw: 76px; }
  .nxp-givegrid { gap: 8px 4px; }
}
@media (max-height: 600px) {
  .nxp .ndp-bigcard { --cw: 56px; }
}

/* /phone/games/notcatan.css */
/* Hex Island on the phone: everyone's points, a zoomable board with big touch targets, bigger play text. */
body.g-notcatan .ncp { gap: 8px; }

/* every player at a glance */
.ncp-players { display: flex; flex-direction: column; gap: 4px; }
.ncp-pl { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; padding: 3px 10px 3px 5px; border-radius: 12px; background: rgba(0,0,0,.3); border: 2px solid transparent; font-size: 15px; line-height: 1.2; }
.ncp-pl.turn { border-color: #ffd93d; }
.ncp-pl.me { background: rgba(255,217,61,.12); }
.ncp-pl .av { flex: none; display: flex; }
.ncp-pl .nm { font-weight: 800; }
.ncp-pl b { margin-left: auto; color: #ffd93d; font-size: 18px; }
.ncp-pl b small { font-size: 14px; color: rgba(243,227,191,.8); font-weight: 700; }
.ncp-pl .cd { font-size: 14px; color: rgba(243,227,191,.85); }
.ncp-pl .aw { font-size: 13px; font-weight: 800; color: #1b1305; background: #ffd93d; border-radius: 999px; padding: 2px 8px; }
.ncp-pl .tn { font-size: 13px; font-weight: 800; color: #ffd93d; text-transform: uppercase; letter-spacing: .06em; }
[data-theme="light"] .ncp-pl { background: rgba(255,250,235,.85); color: #2a1c08; }
[data-theme="light"] .ncp-pl b { color: #7a4b00; }
[data-theme="light"] .ncp-pl b small, [data-theme="light"] .ncp-pl .cd { color: #5a4420; }
[data-theme="light"] .ncp-pl .tn { color: #7a4b00; }

/* the hint, zoom and "Build here?" */
.ncp-hintrow { display: flex; align-items: center; gap: 8px; }
.ncp-hintrow .ncp-hint { flex: 1; text-align: left; font-size: 16px; }
.ncp-zoombtn { flex: none; min-height: 44px; min-width: 76px; padding: 8px 14px; border-radius: 12px; border: 2px solid #c9a54a; background: rgba(0,0,0,.35); color: #f3e3bf; font: 800 15px var(--font); cursor: pointer; }
[data-theme="light"] .ncp-zoombtn { background: #fffaf0; color: #2a1c08; }
.ncp-hintrow.job { min-height: 104px; flex-wrap: wrap; align-content: center; }
.ncp-hintrow.job > .ncp-hint { flex: 1 1 100%; }
.ncp-hintrow.job > .ncp-zoombtn { flex: 1 1 0; min-width: 0; }
.ncp-hintrow.job > .ncp-confirm { flex: 1; min-width: 0; }
body.g-notcatan .ncp-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ncp-confirm { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 14px; background: rgba(124,252,138,.14); border: 2px solid #7cfc8a; }
.ncp-confirm > b { font-size: 18px; color: #f3e3bf; }
[data-theme="light"] .ncp-confirm > b { color: #1f3d22; }
.ncp-confirm .btn { min-height: 48px; font-size: 16px; padding: 8px 10px; line-height: 1.15; }
.ncp-confirm > b { line-height: 1.2; }

/* the zoomed board: twice as big, scrolls inside its own box */
.ncp-boardwrap.zoom { overflow: auto; max-height: min(62vh, max(230px, calc(100dvh - var(--safe-bottom) - 300px))); margin: 0; border-radius: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; box-shadow: inset 0 0 0 2px #ffd93d; }
.ncp-boardwrap.zoom svg { width: 200%; max-width: none; }

/* play text: 14px and up */
body.g-notcatan .ncp-card .ncp-cn { font-size: 14px; }
body.g-notcatan .ncp-twist small { font-size: 14px; color: rgba(243,227,191,.92); }
body.g-notcatan .ncp-twist i { font-size: 13px; }
body.g-notcatan .ncp-log { font-size: 14px; }
body.g-notcatan .ncp-label { font-size: 14px; color: rgba(243,227,191,.85); }
body.g-notcatan .ncp-sn small { font-size: 14px; }
body.g-notcatan .ncp-pick small { font-size: 14px; }
body.g-notcatan .ncp-vp small { font-size: 14px; }
body.g-notcatan .ncp-chip { font-size: 14px; }
body.g-notcatan .ncp-dice { font-size: 15px; }
body.g-notcatan .ncp-hint { font-size: 16px; }
/* steppers a thumb can hit */
body.g-notcatan .ncp-step { grid-template-columns: 34px minmax(0, 1fr) 48px 26px 48px; }
body.g-notcatan .ncp-pm { width: 48px; height: 48px; }
body.g-notcatan .ncp-build { min-height: 64px; }
body.g-notcatan .ncp-sheet .btn, body.g-notcatan .ncp-panel .btn { min-height: 52px; }
/* sheets: the buttons sit in a solid footer UNDER the scrolling part, never on top of it */
body.g-notcatan .ncp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); overflow: hidden; padding: 0; gap: 0; }
body.g-notcatan .ncp-sx { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 10px; }
body.g-notcatan .ncp-sacts { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; background: #2e2214; border-top: 2px solid #8a6b3a; }
[data-theme="light"] body.g-notcatan .ncp-sacts { background: #f1e2bd; }
body.g-notcatan .ncp-sacts .btn.ghost { background: transparent; min-height: 48px; }
/* a button that is switched off stays solid, never see-through */
body.g-notcatan .ncp-solid:disabled { opacity: 1; background: #b9ad92; color: #5e533c; }

/* the end screen: everyone's points */
.ncp-score { display: flex; flex-direction: column; gap: 6px; width: min(100%, 340px); margin: 8px auto; }
.ncp-srow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.3); font-size: 17px; }
.ncp-srow.me { box-shadow: 0 0 0 2px #ffd93d; }
.ncp-srow .rk { width: 22px; text-align: center; font-weight: 900; color: #ffd93d; }
.ncp-srow .nm { flex: 1; font-weight: 800; text-align: left; }
.ncp-srow b { font-size: 22px; color: #ffd93d; }
.ncp-srow b small { font-size: 14px; color: rgba(243,227,191,.8); }
[data-theme="light"] .ncp-srow { background: rgba(255,250,235,.85); color: #2a1c08; }
[data-theme="light"] .ncp-srow b, [data-theme="light"] .ncp-srow .rk { color: #7a4b00; }
.ncp-pl .avatar { width: 24px; height: 24px; font-size: 12px; }
.ncp-pl { font-size: 15px; min-height: 32px; }
body.g-notcatan .ncp-status { padding: 8px 14px; }

/* harbours: the rates, readable */
.ncp-harbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: rgba(243,227,191,.9); }
.ncp-harbs > b { font-size: 14px; font-weight: 800; }
.ncp-harbs small { font-size: 14px; flex-basis: 100%; opacity: .85; }
.ncp-hb { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(0,0,0,.25); font-weight: 800; font-size: 14px; border: 2px solid transparent; }
.ncp-hb.mine { border-color: #ffd93d; background: rgba(255,217,61,.18); }
.ncp-hb .any { width: 24px; height: 18px; border-radius: 6px; background: #e8e0cc; color: #2a1c08; font-style: normal; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
[data-theme="light"] .ncp-harbs { color: #2a1c08; }
[data-theme="light"] .ncp-hb { background: rgba(255,250,235,.85); }
[data-theme="light"] .ncp-hb.mine { background: #ffe9a0; }
body.g-notcatan .ncp { overflow-x: clip; }

/* the table covers the whole page, however long it is (the page background used to stop one screen down) */
body.g-notcatan { height: auto; min-height: 100vh; min-height: 100dvh; }

/* /phone/games/notuno.css */
/* Crazy Eights on the phone: pop-ups end above the bottom bar, so their buttons stay tappable,
   and a tall one scrolls instead of running off the top. */
.nup .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.nup .ndp-pick { max-height: 100%; overflow-y: auto; }
.nup .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* a card's sheet: the explanation scrolls, the buttons (and Close) never leave the screen */
.nup .ndp-pick { min-height: 0; }
.nup .ndp-bigcard { flex: none; }
.nup .ndp-sheet .btn { min-height: 52px; font-size: 17px; }
.nup-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nup-cgrid .btn.nup-cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-size: 19px; }
.nup-cbtn i { font-style: normal; font-weight: 900; font-size: 15px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #1b1b1b; display: inline-flex; align-items: center; justify-content: center; text-shadow: none; flex: none; }
.nup-cask { font-size: 15px; margin: 0; }
.nup-cask b { color: var(--text); }

/* short phones (a 568px SE, a 664px browser window): a compact tray so the pile stays on screen */
@media (max-height: 700px) {
  .nup { gap: 8px; }
  .nup-turnbar { padding: 8px 12px; }
  .nup-turnbar.me b { font-size: 26px; }
  .nup-table { padding: 8px 10px; gap: 10px; }
  .nup-colorname { font-size: 20px; }
  .nup-dock .ndp-fan { height: calc(var(--cw) * 1.52 + 26px + var(--sag, 0px)); }
  .ndp-fan .ucard { top: 14px; }
  .nup-acts .btn { min-height: 48px; }
  .nup .ndp-bigcard, .nup-big { --cw: 76px; }
  .nup .ndp-sheet { padding: 12px; gap: 8px; }
  .nup .ndp-sheet .btn { min-height: 48px; font-size: 16px; }
}
@media (max-height: 600px) {
  .nup .ndp-bigcard, .nup-big { --cw: 56px; }
}

/* buttons: a deeper blue (white on it is 5.6:1) and a readable "Close" */
.nup { --blue: #0066d6; }
.nup .btn.ghost { color: var(--link); }

/* the colour letter on a hand card stays readable on a small (short-phone) card: 11px letter in a 17px ring at least */
.ndp-fan .ucard .uc-cl { font-size: max(14cqw, 11px); width: max(19cqw, 17px); height: max(19cqw, 17px); }

/* /phone/games/trivia.css */
/* Buzzer Trivia on the phone: the 5-4-3-2-1 before question one. */
.tq-count { gap: 18px; }
.tq-num { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; background: var(--pr-lid-blue); color: #fff; border: 6px solid var(--pr-panel); box-shadow: var(--pr-shadow-lift); font: 900 116px/1 var(--pr-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tq-num.pop { animation: tq-beat .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tq-beat { from { transform: scale(.7); opacity: .25; } to { transform: scale(1); opacity: 1; } }

/* ---- phone-fit: all four answers above the bottom bar; readable badges; standings ---- */
.tq .label { font-size: 14px; }
.tq .btn.answer .letter { color: var(--lc, #fff); }
.tq #lock { font-size: 15px; }
.tq-qtext { font-size: 17px; line-height: 1.3; color: var(--label-2); text-align: center; }
.tq-top { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.tq-top .label { text-align: center; }
.tq-row { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 12px; padding: 8px 12px; font-size: 17px; text-align: left; }
.tq-row.me { box-shadow: inset 0 0 0 2px var(--blue); }
.tq-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-rk { font-weight: 800; min-width: 34px; color: var(--label-2); }
.tq-pts { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-height: 700px) {
  .tq { gap: 8px; }
  .tq .question { font-size: 20px; line-height: 1.2; }
  .tq .btn.answer { min-height: 54px; padding: 6px 14px; gap: 12px; font-size: 17px; }
  .tq .btn.answer .letter { width: 34px; height: 34px; font-size: 16px; }
  .tq #lock.hint { display: none; }
}

.tq-frow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tq-fwho { text-align: left; }
.tq-fwho .h2 { margin: 0; }
@media (max-height: 700px) {
  .tq-qtext { font-size: 15px; line-height: 1.25; }
  .tq .card.pop { padding: 8px 12px; gap: 2px; }
  .tq .card.pop .h1 { font-size: 30px; }
  .tq-top { gap: 5px; }
  .tq-row { padding: 5px 10px; font-size: 16px; }
  .tq .tq-score { display: none; }
  .tq-final { gap: 8px; justify-content: flex-start; }
  .tq-final .big { display: none; }
  .tq-final .rank { font-size: 52px; line-height: 1; }
}

/* initials in the small faces: 14px like the rest of the text */
.tq-row .avatar { font-size: 14px; }

/* /phone/games/quips.css */
/* Quips on the phone: the write box and SEND stay above the bottom bar, the payoff (both answers,
   who wrote them, the votes) is on every phone. Scoped to .qp so no other game is touched. */
.qp .label { font-size: 14px; }
.qp .counter { font-size: 14px; color: var(--label-2); text-align: left; flex: none; min-width: 64px; }
.qp-write { display: flex; flex-direction: column; gap: 8px; }
.qp-write textarea { min-height: 96px; }
.qp-sendrow { display: flex; align-items: center; gap: 12px; }
.qp-sendrow .btn { flex: 1; min-height: 56px; background: #0062cc; color: #fff; font-weight: 700; letter-spacing: .04em; }
.qp #vlock, .qp .p { font-size: 15px; }

/* the answers, read-only (authors while the others vote) */
.qp-opt { position: relative; background: var(--bg-2); border-radius: 14px; padding: 16px 14px; font-size: 19px; line-height: 1.3; min-height: 64px; overflow-wrap: anywhere; }
.qp-opt.mine { box-shadow: inset 0 0 0 2px var(--blue); }
.qp-opt i { color: var(--label-2); }
.qp-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 8px; background: #0062cc; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.qp-tag.win { background: #1d7a38; }

/* the reveal */
.qp-cards { gap: 12px; }
.qp-card { background: var(--bg-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.qp-card.win { box-shadow: inset 0 0 0 3px #30b05a; }
.qp-card .qp-tag { align-self: flex-start; margin: 0; }
.qp-text { font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.qp-text i { color: var(--label-2); font-weight: 400; }
.qp-who { display: flex; align-items: center; gap: 8px; font-size: 16px; flex: 1 1 auto; min-width: 0; }
.qp-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-who em { font-style: normal; color: var(--label-2); }
.qp-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.qp-voters { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.qp-gain { margin-left: auto; flex: none; font-size: 20px; font-weight: 800; color: #1d7a38; }
.qp-sweep { text-align: center; font-weight: 800; font-size: 16px; background: #ffd60a; color: #1b1b1b; border-radius: 12px; padding: 8px; }
.qp-me { text-align: center; font-size: 16px; color: var(--label-2); font-weight: 600; }

/* the final standings */
.qp-board { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.qp-row { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 12px; padding: 8px 12px; font-size: 17px; text-align: left; }
.qp-row.me { box-shadow: inset 0 0 0 2px var(--blue); }
.qp-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-rk { font-weight: 800; min-width: 34px; color: var(--label-2); }
.qp-pts { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-height: 700px) {
  .qp { gap: 10px; }
  .qp .prompt { font-size: 20px; }
  .qp .btn.quip { min-height: 72px; }
  .qp-write textarea { min-height: 84px; }
  .qp-card { padding: 10px 12px; gap: 6px; }
}

/* the final: rank and points side by side */
.qp-frow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.qp-fwho { text-align: left; }
.qp-fwho .h2 { margin: 0; }
@media (max-height: 700px) {
  .qp-card { padding: 8px 12px; gap: 4px; }
  .qp-text { font-size: 17px; line-height: 1.25; }
  .qp-cards { gap: 8px; }
  .qp .qp-me { display: none; }
  .qp .prompt { font-size: 19px; }
  .qp-final { gap: 8px; justify-content: flex-start; }
  .qp-final .big { display: none; }
  .qp-final .rank { font-size: 52px; line-height: 1; }
  .qp-row { padding: 5px 10px; font-size: 16px; }
  .qp-board { gap: 5px; }
}

/* initials in the small faces: 14px like the rest of the text */
.qp .avatar.sm, .qp-row .avatar, .qp-who .avatar, .qp-voters .avatar { font-size: 14px; }

/* /shared/nottelestrations.css */
/* Doodle Telephone: the pieces the TV and the phones share. White dry-erase pages with
   a plastic spiral coil in the owner's colour, the word card with die faces, the die,
   Doodles, and the table: a kraft-paper craft table by day (light) and a chalkboard at
   night (dark). Sizes come from the container; the TV and phone files set them. */
:root {
  --ntl-hand: "Marker Felt", "Chalkboard SE", "Noteworthy", "Comic Sans MS", "Segoe Print", "Bradley Hand", "casual", cursive;
  --ntl-ink: #16171a;
  --ntl-red: #e8402f;
  --ntl-paper: #fffefa;
}
.ntl-hand { font-family: var(--ntl-hand); font-weight: 700; letter-spacing: .005em; }
.ntl-fit { display: block; max-width: 100%; min-width: 0; overflow-wrap: normal; word-break: normal; }
.ntl-tv [hidden], .ntlp [hidden] { display: none !important; }

/* ---- a sketchbook page ---- */
.ntl-sheet { position: relative; }
.ntl-paper {
  position: relative; background: var(--ntl-paper); border-radius: 3% 3% 2.4% 2.4% / 3% 3% 2.4% 2.4%;
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(40,30,10,.10), 0 2px 0 #ece7dc, 0 4px 0 #e3ddd0, 0 6px 0 #d9d2c3, 0 14px 30px rgba(40,30,10,.28);
  overflow: hidden;
}
/* faint whiteboard sheen and the ghost of last round's erased marker */
.ntl-paper::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 60%), radial-gradient(ellipse 50% 30% at 70% 80%, rgba(120,130,150,.05), transparent 70%), radial-gradient(ellipse 40% 25% at 25% 30%, rgba(120,130,150,.045), transparent 70%); z-index: 0; }
.ntl-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.ntl-ptag { position: absolute; left: 50%; top: 5%; transform: translateX(-50%) rotate(-1.5deg); z-index: 2; background: var(--ntl-ink); color: #fff; font-family: var(--ntl-hand); font-weight: 700; letter-spacing: .06em; padding: .18em .7em .14em; border-radius: .5em; white-space: nowrap; box-shadow: 0 .12em 0 rgba(0,0,0,.15); }
.ntl-pnum { position: absolute; right: 3.5%; bottom: 2.5%; z-index: 2; font-family: var(--ntl-hand); font-weight: 700; color: transparent; -webkit-text-stroke: .045em rgba(22,23,26,.28); line-height: 1; }

/* the spiral coil: plastic rings in the owner's colour, punched through the top */
.ntl-coil { position: relative; z-index: 3; display: flex; justify-content: space-between; padding: 0 5%; height: var(--coil-h, 30px); margin-bottom: calc(var(--coil-h, 30px) * -.55); pointer-events: none; }
.ntl-coil { --cc: var(--coil, #9a9aa2); }
.ntl-coil i { position: relative; width: var(--ring-w, 8px); height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 55%, #000) 0%, var(--cc) 32%, color-mix(in srgb, var(--cc) 45%, #fff) 52%, var(--cc) 70%, color-mix(in srgb, var(--cc) 65%, #000) 100%); box-shadow: 0 2px 2px rgba(0,0,0,.28); }
.ntl-coil i::after { content: ''; position: absolute; left: 50%; bottom: 8%; width: 170%; height: 26%; transform: translateX(-50%); border-radius: 50%; background: rgba(40,30,20,.55); z-index: -1; }

/* ---- the word card ---- */
.ntl-card { position: relative; background: #fff; border-radius: 16px; padding: 10px 14px 12px; color: var(--ntl-ink); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3px 0 #e8e2d4, 0 14px 30px rgba(40,30,10,.22); overflow: hidden; }
.ntl-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, #ffcf3f 0 22px, #19c3b1 22px 44px, #ff6b57 44px 66px, #6c7cff 66px 88px); }
.ntl-chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 4px; font-size: 11px; font-weight: 900; letter-spacing: .2em; color: rgba(22,23,26,.45); }
.ntl-chead b { font-size: 11px; letter-spacing: .04em; color: #0b8d80; text-transform: none; font-weight: 800; }
.ntl-crow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 3px 4px; border-bottom: 1.5px dashed rgba(22,23,26,.12); }
.ntl-crow:last-of-type { border-bottom: none; }
.ntl-crow .ntl-pips { width: 26px; height: 26px; flex: none; }
.ntl-cw { font-family: var(--ntl-hand); font-weight: 700; font-size: 21px; line-height: 1.1; min-width: 0; }
.ntl-cw.cat u { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ntl-cw small { display: block; font-family: var(--font, sans-serif); font-size: 11px; font-weight: 700; color: rgba(22,23,26,.45); letter-spacing: .02em; }
.ntl-cw.blank i { display: inline-block; width: 120px; border-bottom: 2.5px solid rgba(22,23,26,.5); height: 18px; }
.ntl-crow.on .ntl-cw { color: #000; }
.ntl-crow.can { cursor: pointer; border-radius: 10px; }
.ntl-crow.can:active { background: rgba(25,195,177,.12); }
.ntl-crow.chosen { background: rgba(25,195,177,.16); box-shadow: inset 0 0 0 2px #19c3b1; border-radius: 10px; }
.ntl-cmascot { position: absolute; right: 8px; bottom: 6px; width: 48px; opacity: .95; transform: rotate(8deg); }
.ntl-card.has-mascot .ntl-crow { padding-right: 46px; }
.ntl-pipbox { fill: #fff; stroke: var(--ntl-ink); stroke-width: 7; }
.ntl-pip { fill: var(--ntl-ink); }
.ntl-crow.on .ntl-pipbox { fill: var(--ntl-ink); }
.ntl-crow.on .ntl-pip { fill: #fff; }
/* the rolled word, circled in red marker */
.ntl-circle { position: absolute; left: 34px; right: -6px; top: -4px; bottom: -4px; width: calc(100% - 28px); height: calc(100% + 8px); overflow: visible; pointer-events: none; }
.ntl-circle path { fill: none; stroke: var(--ntl-red); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ntl-circle .7s .25s cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes ntl-circle { to { stroke-dashoffset: 0; } }

/* ---- Doodles, the little marker ---- */
.ntl-mascot { display: block; width: 100%; height: auto; overflow: visible; }
.ntl-mline { fill: none; stroke: var(--ntl-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ntl-mfill { fill: var(--ntl-ink); }
.ntl-mbody { fill: #ffd23f; stroke: var(--ntl-ink); stroke-width: 3.5; }
.ntl-mband { fill: #19c3b1; stroke: var(--ntl-ink); stroke-width: 3.5; }
.ntl-mcap { fill: var(--ntl-ink); }

/* ---- the die ---- */
.ntl-die { --s: 120px; width: var(--s); height: var(--s); perspective: calc(var(--s) * 6); }
.ntl-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.2,.75,.25,1.08); }
.ntl-face { position: absolute; inset: 0; border-radius: 20%; background: radial-gradient(circle at 30% 25%, #fff, #f1ede4 70%); box-shadow: inset 0 0 0 calc(var(--s) * .035) rgba(0,0,0,.08), inset 0 calc(var(--s) * -.06) calc(var(--s) * .1) rgba(0,0,0,.08); backface-visibility: hidden; }
.ntl-face i { position: absolute; width: 18%; height: 18%; margin: -9% 0 0 -9%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3b40, #0d0d10 70%); }
.ntl-face.f1 i { width: 24%; height: 24%; margin: -12% 0 0 -12%; background: radial-gradient(circle at 40% 35%, #ff7a68, #c4241a 70%); }
.ntl-face.f1 { transform: translateZ(calc(var(--s) / 2)); }
.ntl-face.f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.ntl-face.f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.ntl-face.f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.ntl-face.f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.ntl-face.f2 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.ntl-die[data-show="1"] .ntl-cube { transform: rotateX(-14deg) rotateY(16deg); }
.ntl-die[data-show="6"] .ntl-cube { transform: rotateX(-14deg) rotateY(196deg); }
.ntl-die[data-show="3"] .ntl-cube { transform: rotateX(-14deg) rotateY(-74deg); }
.ntl-die[data-show="4"] .ntl-cube { transform: rotateX(-14deg) rotateY(106deg); }
.ntl-die[data-show="5"] .ntl-cube { transform: rotateX(-104deg) rotateZ(-16deg); }
.ntl-die[data-show="2"] .ntl-cube { transform: rotateX(76deg) rotateZ(16deg); }
/* a roll: big spins that settle on the face shown */
.ntl-die.rolled .ntl-cube { animation: 1.35s cubic-bezier(.15,.65,.25,1) both; }
.ntl-die.rolled[data-show="1"] .ntl-cube { animation-name: ntl-roll1; }
.ntl-die.rolled[data-show="6"] .ntl-cube { animation-name: ntl-roll6; }
.ntl-die.rolled[data-show="3"] .ntl-cube { animation-name: ntl-roll3; }
.ntl-die.rolled[data-show="4"] .ntl-cube { animation-name: ntl-roll4; }
.ntl-die.rolled[data-show="5"] .ntl-cube { animation-name: ntl-roll5; }
.ntl-die.rolled[data-show="2"] .ntl-cube { animation-name: ntl-roll2; }
@keyframes ntl-roll1 { from { transform: rotateX(706deg) rotateY(556deg); } }
@keyframes ntl-roll6 { from { transform: rotateX(706deg) rotateY(736deg); } }
@keyframes ntl-roll3 { from { transform: rotateX(706deg) rotateY(466deg); } }
@keyframes ntl-roll4 { from { transform: rotateX(706deg) rotateY(646deg); } }
@keyframes ntl-roll5 { from { transform: rotateX(616deg) rotateZ(344deg); } }
@keyframes ntl-roll2 { from { transform: rotateX(796deg) rotateZ(376deg); } }
.ntl-die.spin .ntl-cube { animation: ntl-spin .55s linear infinite; }
@keyframes ntl-spin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
.ntl-die.idle .ntl-cube { animation: ntl-wobble 2.4s ease-in-out infinite; }
@keyframes ntl-wobble { 0%, 100% { transform: rotateX(-18deg) rotateY(24deg); } 50% { transform: rotateX(-8deg) rotateY(-30deg) translateY(-6%); } }

/* ---- the table: a chalkboard at night (dark), kraft paper by day (light) ---- */
.tbl-sketch {
  --tbl-edge: #0d1214; --tbl-rim: #3b4a4d; --tbl-glow: rgba(220,255,240,.06);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' fill='none' stroke='%23e8f1ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.09'%3E%3Cpath d='M60 70 l12 26 l28 3 l-21 19 l6 28 l-25 -14 l-25 14 l6 -28 l-21 -19 l28 -3 z'/%3E%3Cpath d='M470 90 c-30 -10 -40 30 -10 35 c40 5 50 -45 10 -55 c-55 -12 -75 60 -25 80'/%3E%3Cpath d='M300 300 c10 -25 45 -25 45 5 c0 25 -45 45 -45 60 c0 -15 -45 -35 -45 -60 c0 -30 35 -30 45 -5z'/%3E%3Cpath d='M90 470 h120 m-25 -18 l25 18 l-25 18'/%3E%3Ccircle cx='520' cy='470' r='38'/%3E%3Cpath d='M505 460 v4 M535 460 v4 M503 482 q17 16 34 0'/%3E%3Cpath d='M180 230 c20 -30 60 -20 60 5 c25 -10 45 20 20 35 h-80 c-25 -5 -20 -40 0 -40z'/%3E%3Cpath d='M420 580 q20 -20 40 0 t40 0 t40 0'/%3E%3Cpath d='M40 330 l20 -20 l20 20 l20 -20 l20 20'/%3E%3Cpath d='M590 250 l-14 30 h28 z'/%3E%3C/svg%3E") 0 0 / 640px 640px,
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(160,200,180,.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #24312f 0%, #1a2423 60%, #141c1b 100%);
}
[data-theme="light"] .tbl-sketch {
  --tbl-edge: #ffffff; --tbl-rim: #d8c7a6; --tbl-glow: rgba(255,255,255,.3);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' fill='none' stroke='%237a5f35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.13'%3E%3Cpath d='M60 70 l12 26 l28 3 l-21 19 l6 28 l-25 -14 l-25 14 l6 -28 l-21 -19 l28 -3 z'/%3E%3Cpath d='M470 90 c-30 -10 -40 30 -10 35 c40 5 50 -45 10 -55 c-55 -12 -75 60 -25 80'/%3E%3Cpath d='M300 300 c10 -25 45 -25 45 5 c0 25 -45 45 -45 60 c0 -15 -45 -35 -45 -60 c0 -30 35 -30 45 -5z'/%3E%3Cpath d='M90 470 h120 m-25 -18 l25 18 l-25 18'/%3E%3Ccircle cx='520' cy='470' r='38'/%3E%3Cpath d='M505 460 v4 M535 460 v4 M503 482 q17 16 34 0'/%3E%3Cpath d='M180 230 c20 -30 60 -20 60 5 c25 -10 45 20 20 35 h-80 c-25 -5 -20 -40 0 -40z'/%3E%3Cpath d='M420 580 q20 -20 40 0 t40 0 t40 0'/%3E%3Cpath d='M40 330 l20 -20 l20 20 l20 -20 l20 20'/%3E%3Cpath d='M590 250 l-14 30 h28 z'/%3E%3C/svg%3E") 0 0 / 640px 640px,
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,250,236,.55), transparent 70%),
    repeating-linear-gradient(17deg, rgba(120,90,40,.035) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-23deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #ecdcbc 0%, #e3cfa8 100%);
}

/* /phone/games/nottelestrations.css */
/* Doodle Telephone on the phones: the word card and the die, the drawing page with its
   marker and tools, the guessing page, and the reveal controls. Dark rules first (the
   chalkboard), then the light theme (kraft paper). */
.ntlp { --gold: #ffb800; --ok: #1fa35b; --no: #e8402f; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.ntlp .avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.ntlp-note { text-align: center; font-size: 14px; color: var(--label-2); line-height: 1.35; }
.ntlp-center { flex: 1; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 20px 6px; }
.ntlp-big { font-size: 40px; line-height: 1.05; }
.ntlp-p { font-size: 16px; color: var(--label-2); line-height: 1.4; max-width: 340px; }
.ntlp-p b { color: var(--text); font-size: 20px; }
.ntlp-rank { font-size: 72px; font-weight: 900; line-height: 1; color: var(--gold); letter-spacing: -.03em; }
.ntlp-logo { display: inline-flex; align-items: center; gap: 10px; }
.ntlp-lword { font-size: 34px; line-height: 1; }

/* ---- the bar on top: yours (gold) or someone else's (calm) ---- */
.ntlp-bar { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 12px 10px 16px; min-height: 64px; }
.ntlp-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntlp-bar b { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1.05; }
.ntlp-bar span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.ntlp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.4); animation: ntlp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.ntlp-bar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.ntlp-bar.idle b { font-size: 20px; color: var(--text); font-style: normal; }
.ntlp-bar .tclock { width: 54px; height: 54px; }
.ntlp-bar .tclock b { font-size: 22px; font-style: normal; }
.ntlp-bar.me .tclock .fg { stroke: #1b1b1b; }
.ntlp-bar.idle .tclock .fg { stroke: var(--gold); }
@keyframes ntlp-pop { from { transform: scale(.88); opacity: 0; } }
body.ntlp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 40px rgba(255,196,0,.35); animation: ntlp-frame 1.6s ease-in-out infinite; }
body.ntlp-myturn.ntlp-hurry::after { box-shadow: inset 0 0 0 6px #ff3b30, inset 0 0 50px rgba(255,59,48,.45); animation-name: ntlp-frame-red; animation-duration: .6s; }
@keyframes ntlp-frame-red { 50% { box-shadow: inset 0 0 0 9px #ff3b30, inset 0 0 80px rgba(255,59,48,.6); } }
@keyframes ntlp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 70px rgba(255,196,0,.5); } }

/* ---- the card and the die ---- */
.ntlp-cardscreen { gap: 14px; }
.ntlp-card { width: 100%; }
.ntlp-card .ntl-crow { min-height: 48px; }
.ntlp-card .ntl-cw { font-size: 23px; }
.ntlp-rollbtn { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 96px; border: none; border-radius: 22px; padding: 14px 20px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; text-align: left; box-shadow: 0 12px 30px rgba(255,190,0,.45), inset 0 -4px 0 rgba(0,0,0,.12); cursor: pointer; animation: ntlp-throb 1.6s ease-in-out infinite; }
.ntlp-rollbtn:active { transform: scale(.98); }
.ntlp-rollbtn .ntl-die { --s: 64px; flex: none; }
.ntlp-rollbtn b { display: block; font-size: 26px; font-weight: 900; font-style: italic; }
.ntlp-rollbtn small { display: block; font-size: 14px; font-weight: 700; opacity: .75; }
@keyframes ntlp-throb { 50% { box-shadow: 0 12px 44px rgba(255,190,0,.7), inset 0 -4px 0 rgba(0,0,0,.12); transform: scale(1.01); } }
.ntlp-secret { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--ntl-paper); color: var(--ntl-ink); border-radius: 20px; padding: 16px 18px 18px; box-shadow: 0 3px 0 #e3ddd0, 0 12px 28px rgba(0,0,0,.25); animation: ntlp-pop .4s .6s cubic-bezier(.2,1.4,.4,1) both; }
.ntlp-secret small { font-size: 14px; font-weight: 900; letter-spacing: .14em; color: rgba(22,23,26,.75); }
.ntlp-secret b { font-size: 40px; line-height: 1.05; }
.ntlp-secret span { font-size: 14px; font-weight: 700; color: var(--ntl-red); }
.ntlp-secret em { font-style: normal; font-size: 14px; color: rgba(22,23,26,.78); line-height: 1.35; }
.ntlp-make { display: flex; gap: 8px; }
.ntlp-make input { flex: 1; min-width: 0; font-family: var(--ntl-hand); font-size: 22px; background: var(--ntl-paper); color: var(--ntl-ink); }
.ntlp-go { flex: none; min-width: 74px; min-height: 52px; border: none; border-radius: 14px; background: var(--ntl-ink); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.ntlp-go.wide { width: 100%; font-family: var(--ntl-hand); font-size: 22px; background: #19c3b1; color: #06312c; }

/* ---- drawing and guessing ---- */
.ntlp-draw, .ntlp-guess { gap: 9px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ntlp-draw.arrive, .ntlp-guess.arrive { animation: ntlp-arrive .5s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes ntlp-arrive { from { transform: translateX(-60px) rotate(-3deg); opacity: 0; } }
.ntlp-head { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.ntlp-kind { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ntlp-kind b { font-size: 36px; line-height: 1; transform: rotate(-2deg); }
.ntlp-kind span { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--label-2); }
.ntlp-clock .tclock:not(.bar) { width: 58px; height: 58px; }
.ntlp-clock .tclock b { font-size: 24px; }
.ntlp-clock .tclock .fg { stroke: var(--gold); }
.ntlp-clock .tclock.urgent .fg { stroke: #ff3b30; }
.ntlp-clock .tclock.urgent b { color: #ff3b30; animation: nd-urgent .5s ease-in-out infinite alternate; }
.ntlp-pens { display: flex; align-items: center; gap: 8px; }
.ntlp-pens > b { font-size: 14px; font-weight: 900; letter-spacing: .08em; color: #fff; background: var(--no); padding: 5px 9px; border-radius: 8px; animation: nd-urgent .4s ease-in-out infinite alternate; }
.ntlp-pens .tclock .fg { stroke: var(--no) !important; }
.ntlp-notimer { font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: var(--label-3); text-align: center; line-height: 1.1; }
.ntlp-prompt { display: flex; flex-direction: column; align-items: center; background: var(--ntl-ink); color: #fff; border-radius: 16px; padding: 7px 14px 9px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ntlp-prompt small { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ntlp-prompt b { font-size: min(34px, calc(560px / var(--len))); line-height: 1.1; text-align: center; }
.ntlp-sheet { width: min(100%, max(250px, calc(100dvh - 360px))); margin: 0 auto; --coil-h: 22px; --ring-w: 7px; }
.ntlp-sheet.small { width: min(100%, max(230px, calc(100dvh - 380px))); }
/* Drawing fits the screen, Done included, with no scrolling (Wahaj, 2026-11-12: "you have to scroll
   down a little bit for you to see the done button"; an iPhone's Safari bars take ~180px). The page
   is exactly the screen's height, the paper takes what's left (as big a square as fits), the
   tools share one row with Done, and the slim "Show the table" line steps aside (Menu has it). */
#app:has(.ntlp-draw) { height: 100vh; height: 100dvh; min-height: 0; }
#app:has(.ntlp-draw) #table.off { display: none; }
.ntlp-draw { flex: 1; min-height: 0; }
.ntlp-draw .ntlp-head { min-height: 46px; }
.ntlp-draw .ntlp-kind b { font-size: 30px; }
.ntlp-draw .ntlp-clock .tclock:not(.bar) { width: 46px; height: 46px; }
.ntlp-draw .ntlp-clock .tclock b { font-size: 19px; }
.ntlp-pad { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
@supports (width: 1cqh) {
  .ntlp-pad { container-type: size; }
  .ntlp-pad .ntlp-sheet { width: min(100cqw, calc(100cqh - 14px)); }
}
.ntlp-actions { display: flex; gap: 8px; }
.ntlp-actions .ntlp-tools { flex: 1; min-width: 0; gap: 6px; }
.ntlp-actions .ntlp-done { width: auto; flex: none; min-width: 104px; padding: 0 16px; font-size: 20px; }
.ntlp-paper { aspect-ratio: 1; }
.ntlp-paper .ntl-pnum { font-size: 52px; }
.ntlp-canvas { touch-action: none; cursor: crosshair; }
.ntlp-full { position: absolute; z-index: 3; left: 50%; top: 10px; transform: translateX(-50%); background: #c23a26; color: #fff; font-size: 14px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ntlp-blank { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; font-size: 24px; color: rgba(22,23,26,.3); }
.ntlp-draw.sent .ntlp-paper { opacity: .7; }
.ntlp-draw.grace .ntlp-paper { box-shadow: 0 0 0 4px var(--no), 0 14px 30px rgba(40,30,10,.28); }
.ntlp-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ntlp-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border: none; border-radius: 14px; background: rgba(0,0,0,.3); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.ntlp-tool svg { width: 30px; height: 30px; }
.ntlp-tool .line { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.ntlp-tool .ink { fill: #ffd23f; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.ntlp-tool .tip { fill: var(--ntl-ink); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ntlp-tool .pad { fill: #ff8fa3; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.ntlp-tool.on { background: #fff; color: var(--ntl-ink); box-shadow: 0 0 0 3px #19c3b1, 0 6px 16px rgba(0,0,0,.25); }
.ntlp-tool:active { transform: scale(.96); }
.ntlp-done { width: 100%; min-height: 58px; border: none; border-radius: 16px; background: #19c3b1; color: #04302b; font-size: 22px; font-weight: 900; letter-spacing: .1em; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 10px 24px rgba(25,195,177,.35); }
.ntlp-done:active { transform: scale(.98); }
.ntlp-draw.sent .ntlp-done { opacity: .5; }
.ntlp-from { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--label-2); }
.ntlp-gform { display: flex; gap: 8px; }
.ntlp-gform input { flex: 1; min-width: 0; min-height: 58px; font-family: var(--ntl-hand); font-size: 24px; background: var(--ntl-paper); color: var(--ntl-ink); border-radius: 14px; }
.ntlp-gform input::placeholder { color: rgba(22,23,26,.35); }
.ntlp-gform .ntlp-done { width: auto; padding: 0 20px; font-size: 18px; }
.ntlp-guess.grace .ntlp-gform input { box-shadow: inset 0 0 0 3px var(--no); }

/* ---- waiting for the others ---- */
.ntlp-wait { flex: 1; align-items: center; text-align: center; gap: 14px; padding-top: 10px; }
.ntlp-mine { position: relative; width: min(64%, 240px); aspect-ratio: 1; background: var(--ntl-paper); border-radius: 14px; box-shadow: 0 2px 0 #e3ddd0, 0 4px 0 #d9d2c3, 0 14px 30px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; transform: rotate(-3deg); animation: ntlp-sendoff .6s cubic-bezier(.2,1.2,.4,1) both; container-type: inline-size; }
@keyframes ntlp-sendoff { from { transform: rotate(-10deg) scale(.6); opacity: 0; } }
.ntlp-mine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ntlp-mine span { color: var(--ntl-ink); padding: 0 10%; font-size: clamp(10cqw, calc(290cqw / var(--len)), 20cqw); line-height: 1.05; }
.ntlp-mine-n { position: absolute; right: 8%; bottom: 4%; font-family: var(--ntl-hand); font-size: 34px; color: transparent; -webkit-text-stroke: 1.5px rgba(22,23,26,.3); }
.ntlp-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ntlp-lh { font-size: 16px; font-weight: 800; }
.ntlp-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ntlp-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.3); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 14px; font-weight: 700; }
.ntlp-wait .ntlp-clock { width: 80%; }
.ntlp-wait .tclock.bar u { background: #19c3b1; }
.ntlp-wait .tclock.bar b { font-size: 20px; }
.ntlp-next { font-size: 14px; color: var(--label-2); max-width: 300px; line-height: 1.35; }

/* ---- the reveal ---- */
.ntlp-reveal { gap: 12px; }
.ntlp-rbody { display: flex; flex-direction: column; gap: 12px; }
.ntlp-rsheet { width: min(86%, 330px); margin: 0 auto; --coil-h: 20px; --ring-w: 6px; animation: ntlp-arrive .45s cubic-bezier(.2,1.1,.35,1) both; }
.ntlp-rpaper { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; container-type: inline-size; }
.ntlp-rpaper .ntl-ptag { font-size: 14px; }
.ntlp-rpaper .ntl-pnum { font-size: 44px; }
.ntlp-ptext { position: relative; z-index: 1; color: var(--ntl-ink); text-align: center; padding: 0 10%; line-height: 1.05; font-size: clamp(9cqw, calc(260cqw / var(--len)), 17cqw); transform: rotate(-3deg); }
.ntlp-ptext.word { border: 4px solid var(--ntl-ink); border-radius: 50%; padding: 8% 10%; transform: rotate(-2deg); }
.ntlp-by { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: var(--label-2); }
.ntlp-by b { color: var(--text); }
.ntlp-by em { font-style: normal; font-size: 14px; font-weight: 900; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: #17804a; color: #fff; }
.ntlp-judge { display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.28); border-radius: 16px; padding: 10px 12px; }
.ntlp-judge > span { font-size: 14px; font-weight: 700; text-align: center; }
.ntlp-judge > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ntlp-yn { min-height: 46px; border: none; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--text); font-size: 15px; font-weight: 800; cursor: pointer; }
.ntlp-yn.on { background: #fff; color: var(--ntl-ink); box-shadow: 0 0 0 3px #19c3b1; }
.ntlp-flip { width: 100%; min-height: 60px; border: none; border-radius: 16px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 26px rgba(255,190,0,.4), inset 0 -4px 0 rgba(0,0,0,.12); }
.ntlp-flip:active { transform: scale(.98); }
.ntlp-ends { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ntlp-end { background: var(--ntl-paper); color: var(--ntl-ink); border-radius: 16px; padding: 10px 16px 14px; box-shadow: 0 3px 0 #e3ddd0, 0 10px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 4px; }
.ntlp-end small { font-size: 14px; font-weight: 900; letter-spacing: .12em; color: rgba(22,23,26,.75); }
.ntlp-end b { font-size: min(36px, calc(600px / var(--len))); line-height: 1.05; }
.ntlp-end.last { transform: rotate(1deg); }
.ntlp-endstamp { position: relative; align-self: center; margin-top: 2px; transform: rotate(-4deg); border: 4px solid currentColor; border-radius: 10px; padding: 3px 10px; font-size: 22px; font-weight: 900; letter-spacing: .04em; background: rgba(255,255,255,.9); animation: ntlp-stamp .4s .4s cubic-bezier(.2,1.5,.4,1) both; }
.ntlp-endstamp.ok { color: var(--ok); } .ntlp-endstamp.no { color: var(--no); }
@keyframes ntlp-stamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }
.ntlp-pickh { font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--label-2); margin-top: 4px; }
.ntlp-pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ntlp-pickgrid.guesses { grid-template-columns: repeat(2, 1fr); }
.ntlp-pickpg { position: relative; aspect-ratio: 1; border: none; border-radius: 14px; background: var(--ntl-paper); color: var(--ntl-ink); box-shadow: 0 3px 0 #e3ddd0, 0 8px 18px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; container-type: inline-size; }
.ntlp-pickgrid.guesses .ntlp-pickpg { aspect-ratio: 2.2; }
.ntlp-pickpg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ntlp-pickpg span { font-size: clamp(9cqw, calc(240cqw / var(--len)), 16cqw); line-height: 1.05; }
.ntlp-pickgrid.guesses .ntlp-pickpg span { font-size: clamp(7cqw, calc(200cqw / var(--len)), 11cqw); }
.ntlp-pickpg i { position: absolute; right: -6px; bottom: -6px; }
.ntlp-pickpg.on { box-shadow: 0 0 0 4px var(--gold), 0 0 20px rgba(255,184,0,.6); }
.ntlp-pickpg.on::after { content: '★'; position: absolute; left: 6px; top: 2px; font-size: 22px; color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ntlp-gain { align-self: center; font-size: 80px; color: var(--ok); animation: ntlp-pop .5s cubic-bezier(.2,1.5,.4,1) both; }

/* ---- the big moments ---- */
.ntlp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: radial-gradient(circle, rgba(25,195,177,.4), rgba(0,0,0,.6) 75%); animation: nup-moment 2.4s ease both; }
.ntlp-moment .big { font-size: 54px; line-height: 1; text-align: center; color: #fff; text-shadow: 3px 3px 0 var(--ntl-red), 6px 6px 0 rgba(0,0,0,.3); transform: rotate(-4deg); animation: nup-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.ntlp-moment .who { font-size: 17px; font-weight: 800; color: #fff; background: rgba(0,0,0,.5); padding: 8px 18px; border-radius: 999px; }

/* ---- light theme: kraft paper ---- */
[data-theme="light"] .ntlp-bar.idle, [data-theme="light"] .ntlp-tool, [data-theme="light"] .ntlp-chip, [data-theme="light"] .ntlp-judge { background: rgba(255,253,247,.85); box-shadow: 0 4px 14px rgba(80,55,15,.1); }
[data-theme="light"] .ntlp-tool.on { background: var(--ntl-ink); color: #fff; box-shadow: 0 0 0 3px #19c3b1, 0 6px 16px rgba(80,55,15,.2); }
[data-theme="light"] .ntlp-yn { background: rgba(80,60,20,.08); }
[data-theme="light"] .ntlp-yn.on { background: var(--ntl-ink); color: #fff; }
[data-theme="light"] .ntlp-bar.idle .tclock .fg { stroke: #b7791f; }
[data-theme="light"] .ntlp-clock .tclock .fg { stroke: #1b1b1b; }
[data-theme="light"] .ntlp-clock .tclock.urgent .fg { stroke: #ff3b30; }
[data-theme="light"] .ntlp-clock .tclock .bg { stroke: rgba(80,60,20,.14); }
[data-theme="light"] .ntlp-rank { color: #b7791f; }

/* ---- phone-fit: what you do next sits above the bottom bar ---- */
.ntlp .ntl-chead { font-size: 14px; letter-spacing: .12em; color: rgba(22,23,26,.75); }
.ntlp .ntl-chead b { font-size: 14px; color: #06695f; }
.ntlp .ntl-cw small { font-size: 14px; color: rgba(22,23,26,.72); }
.ntlp-gform { margin-top: 2px; }
.ntlp-wordbox:empty { display: none; }
.ntlp-rsheet { width: min(86%, 330px, max(200px, calc(100dvh - 380px))); }
.ntlp-act { position: sticky; bottom: calc(var(--safe-bottom) + 8px); z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 8px; margin: 0 -4px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 96%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--sep), 0 -6px 16px rgba(0,0,0,.12); }
.ntlp-act .ntlp-judge { background: transparent; padding: 0; }
.ntlp-act .ntlp-yn { min-height: 48px; }
.ntlp-moment { animation-duration: 1.7s; }
.ntlp-board { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.ntlp-row { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 8px 12px; font-size: 17px; text-align: left; }
[data-theme="light"] .ntlp-row { background: rgba(255,253,247,.85); }
.ntlp-row.me { box-shadow: inset 0 0 0 2px #19c3b1; }
.ntlp-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntlp-rk { font-weight: 800; min-width: 34px; color: var(--label-2); }
.ntlp-pts { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-height: 640px) {
  .ntlp-prompt small { display: none; }
  .ntlp-prompt { padding-top: 4px; padding-bottom: 6px; }
}
/* 320 wide: Marker, Eraser, Undo, Clear (44px each, 8px apart) and DONE share one row without touching */
@media (max-width: 359px) {
  .ntlp-actions .ntlp-tools { flex: none; grid-template-columns: repeat(4, 44px); gap: 8px; }
  .ntlp-actions .ntlp-tool span { display: none; }
  .ntlp-actions .ntlp-done { flex: 1; min-width: 76px; padding: 0 6px; font-size: 19px; letter-spacing: .04em; }
  .ntlp-tool svg { width: 28px; height: 28px; }
  .ntlp-gform { gap: 8px; }
  .ntlp-gform input { min-height: 52px; font-size: 22px; }
}
/* the NAILED IT / LOST IN TRANSLATION stamp starts at 2.2x: clip it so the page never grows wider than the phone (it zoomed the page out for a moment) */
.ntlp { overflow-x: clip; }

/* judging question sits in the page; the pinned bar under it holds only the buttons */
.ntlp-jq { font-size: 15px; font-weight: 700; text-align: center; color: var(--label-2); }
.ntlp-act .ntlp-judge { gap: 0; }
/* short phones: the two ends of the book sit side by side with the stamp under them, so the
   verdict is above the pinned buttons (the words still shrink to fit their box) */
@media (max-height: 640px) {
  .ntlp-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ntlp-end { padding: 6px 10px 8px; min-width: 0; }
  .ntlp-end small { letter-spacing: .04em; }
  .ntlp-end b { font-size: min(28px, calc(300px / var(--len))); }
  .ntlp-end.last { transform: none; }
  .ntlp-endstamp { grid-column: 1 / -1; margin-top: 0; font-size: 20px; }
  .ntlp-reveal, .ntlp-rbody { gap: 8px; }
}

/* /shared/spy.css */
/* Cover Blown: the pieces the TV and the phones share. A warm case-file look: manila folders,
   index cards, rubber stamps, a magnifier, the North Shore through a rainy window. Light (the
   default) is a sunny desk of kraft paper; dark is the field office at night under a desk lamp.
   Dark rules first, then [data-theme="light"]. */
:root {
  --cvb-ink: #1e2a3f;
  --cvb-ink-2: #5b6478;
  --cvb-paper: #fffaf0;
  --cvb-paper-2: #f4ebd6;
  --cvb-manila: #e5c587;
  --cvb-manila-2: #c99a52;
  --cvb-red: #cf3a2f;
  --cvb-green: #2c8a55;
  --cvb-gold: #f2b51c;
  --cvb-rule: #a9c6e2;
  --cvb-type: "American Typewriter", "Courier Prime", "Courier New", Courier, monospace;
  --cvb-display: "Rubik", "Arial Black", system-ui, sans-serif;
  /* panels that sit on the desk (or on a mood table, which is always dark) */
  --cvb-panel: rgba(17,23,36,.88); --cvb-panel-t: #f3eee2; --cvb-panel-2: rgba(243,238,226,.7); --cvb-line: rgba(255,255,255,.13);
}
:root[data-theme="light"] { --cvb-panel: rgba(255,251,242,.95); --cvb-panel-t: #1e2a3f; --cvb-panel-2: rgba(30,42,63,.68); --cvb-line: rgba(30,42,63,.14); }
.cvb-tv [hidden], .cvbp [hidden], .cvbp-ov[hidden] { display: none !important; }

/* ---- the desk ---- */
.tbl-casefile {
  --tbl-edge: #0b0f18; --tbl-rim: #34405a; --tbl-glow: rgba(255,200,120,.08);
  background:
    radial-gradient(ellipse 55% 60% at 12% 8%, rgba(255,196,110,.20), transparent 70%),
    radial-gradient(ellipse 50% 50% at 92% 100%, rgba(93,135,168,.20), transparent 70%),
    repeating-linear-gradient(104deg, rgba(160,200,240,.035) 0 1px, transparent 1px 23px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
    linear-gradient(170deg, #1c2638 0%, #151d2c 55%, #0f1521 100%);
}
[data-theme="light"] .tbl-casefile {
  --tbl-edge: #ffffff; --tbl-rim: #d8c49a; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 55% 60% at 12% 6%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 95% 100%, rgba(93,135,168,.16), transparent 70%),
    repeating-linear-gradient(104deg, rgba(93,135,168,.05) 0 1px, transparent 1px 23px),
    repeating-linear-gradient(0deg, rgba(120,90,40,.035) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, #f3e8cf 0%, #ead9b4 100%);
}

/* ---- rubber stamps ---- */
.cvb-stamp {
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--cvb-display); font-weight: 900; text-transform: uppercase; letter-spacing: .07em; line-height: 1;
  color: var(--cvb-red); border: .11em solid currentColor; border-radius: .16em; padding: .1em; transform: rotate(-6deg); white-space: nowrap;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4.6 0 0 0 3.25'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4.6 0 0 0 3.25'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 140px 140px; mask-size: 140px 140px;
}
.cvb-stamp > span { display: block; border: .05em solid currentColor; border-radius: .08em; padding: .14em .42em .1em; }
.cvb-stamp.k-ink { color: var(--cvb-ink); }
.cvb-stamp.k-green { color: var(--cvb-green); }
.cvb-stamp.k-gold { color: #b67d00; }
.cvb-stamp.slam { animation: cvb-slam .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cvb-slam { 0% { transform: rotate(-6deg) scale(2.6); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* ---- the round clock ---- */
.cvb-clock { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; }
.cvb-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cvb-clock .bg { fill: var(--cvb-paper); stroke: rgba(30,42,63,.14); stroke-width: 10; }
.cvb-clock .fg { fill: none; stroke: var(--cvb-ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; transition: stroke .3s; }
.cvb-clock b { position: relative; font-family: var(--cvb-type); font-weight: 700; color: var(--cvb-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.cvb-clock small { position: relative; font-family: var(--cvb-type); text-transform: uppercase; letter-spacing: .12em; color: var(--cvb-ink-2); font-weight: 700; }
.cvb-clock.urgent .fg { stroke: #e2861b; }
.cvb-clock.last .fg { stroke: var(--cvb-red); }
.cvb-clock.last b { color: var(--cvb-red); animation: cvb-beat 1s ease-in-out infinite; }
.cvb-clock.paused .fg { stroke: var(--cvb-ink-2); stroke-dasharray: 3 3; stroke-dashoffset: 0 !important; opacity: .55; }
@keyframes cvb-beat { 50% { transform: scale(1.08); } }

/* ---- an index card for each possible place ---- */
.cvb-place {
  position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; min-width: 0; overflow: hidden;
  padding-top: var(--cvb-top, 30px);
  background:
    linear-gradient(var(--cvb-red), var(--cvb-red)) 0 var(--cvb-top, 30px) / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 calc(var(--cvb-lh, 30px) - 1px), rgba(118,160,205,.32) calc(var(--cvb-lh, 30px) - 1px) var(--cvb-lh, 30px)) 0 calc(var(--cvb-top, 30px) + 2px) / 100% 100% no-repeat,
    var(--cvb-paper);
  color: var(--cvb-ink); border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 14px rgba(40,30,10,.18);
}
.cvb-place .cvb-pn { position: absolute; left: 8px; top: 4px; font-family: var(--cvb-type); font-weight: 700; color: var(--cvb-red); letter-spacing: .04em; }
.cvb-place .cvb-pt { font-family: var(--cvb-display); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; padding: 0 10px; overflow-wrap: anywhere; }
.cvb-place .cvb-emblem { position: absolute; right: 6px; top: 4px; color: var(--cvb-ink); opacity: .22; }
.cvb-place.out { opacity: .72; }
.cvb-place.out .cvb-pt { color: var(--cvb-ink-2); text-decoration: line-through; text-decoration-color: rgba(207,58,47,.8); text-decoration-thickness: 2px; }
.cvb-place.here { box-shadow: 0 0 0 4px var(--cvb-green), 0 10px 30px rgba(44,138,85,.45); }
.cvb-place.guess { box-shadow: 0 0 0 4px var(--cvb-red), 0 10px 30px rgba(207,58,47,.4); }
.cvb-place.here.guess { box-shadow: 0 0 0 4px var(--cvb-green), 0 0 0 9px var(--cvb-gold), 0 10px 30px rgba(44,138,85,.45); }

/* ---- a polaroid of a player ---- */
.cvb-photo { position: relative; display: flex; flex-direction: column; align-items: center; background: #fdfbf6; border-radius: 4px; box-shadow: 0 3px 0 rgba(0,0,0,.08), 0 8px 18px rgba(20,15,5,.28); color: var(--cvb-ink); }
.cvb-photo .cvb-shot { position: relative; width: 100%; aspect-ratio: 1.15; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--pc, #7aa) 55%, #000 0%) 0 48%, transparent 49%), linear-gradient(180deg, color-mix(in srgb, var(--pc, #7aa) 26%, #e9e4da), color-mix(in srgb, var(--pc, #7aa) 40%, #d9d2c4)); }
.cvb-photo .cvb-shot .avatar { box-shadow: 0 0 0 4px #fdfbf6, 0 6px 14px rgba(0,0,0,.25); }
.cvb-photo .cvb-tape { position: absolute; top: -9px; left: 50%; width: 46%; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(240,226,180,.75); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---- art ---- */
.cvb-mag { color: #24324c; overflow: visible; }
.cvb-emblem { display: block; }
.cvb-spyart { display: block; overflow: visible; }
.cvb-spyart .cvb-pupil { animation: cvb-look 4.5s ease-in-out infinite; }
@keyframes cvb-look { 0%, 30% { transform: translateX(0); } 40%, 60% { transform: translateX(-5px); } 70%, 100% { transform: translateX(0); } }
.cvb-skyline { display: block; width: 100%; height: 100%; }
.cvb-skyline .m { fill: rgba(93,135,168,.30); }
.cvb-skyline .c { fill: rgba(30,42,63,.55); }
.cvb-skyline .w { fill: rgba(93,135,168,.35); }
[data-theme="light"] .cvb-skyline .m { fill: rgba(93,135,168,.28); }
[data-theme="light"] .cvb-skyline .c { fill: rgba(30,42,63,.30); }

/* /phone/games/spy.css */
/* Cover Blown on the phones: your case file. Every phone looks the same at a glance: a closed
   manila folder, the turn bar, the players and two buttons. Dark (night at the office) first,
   then [data-theme="light"] (a sunny desk). */
.cvbp { --cvbgap: 12px; display: flex; flex-direction: column; gap: var(--cvbgap); padding-bottom: 18px; color: var(--cvb-panel-t); }
.cvbp-mark { height: 0; margin-top: calc(-1 * var(--cvbgap)); }
.cvbp .avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.cvbp-center { flex: 1; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 18px 6px; overflow-x: clip; } /* the stamp slams in from a big size: it must never widen the page */
.cvbp-overstamp .cvb-stamp.slam { animation-name: cvbp-slam-over; }
@keyframes cvbp-slam-over { 0% { transform: rotate(-6deg) scale(1.5); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(-6deg) scale(1); opacity: 1; } }
.cvbp-h { font-family: var(--cvb-display); font-size: 32px; font-weight: 900; line-height: 1.05; padding: 8px 16px; border-radius: 16px; background: var(--cvb-panel); }
.cvbp-p { font-size: 16px; line-height: 1.4; padding: 10px 14px; border-radius: 14px; background: var(--cvb-panel); color: var(--cvb-panel-2); max-width: 360px; }
.cvbp-art { width: 180px; }
.cvbp-note { font-size: 14px; line-height: 1.35; text-align: center; color: var(--cvb-panel-2); padding: 0 8px; }

/* ---- the strip ---- */
.cvbp-strip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--cvb-panel); box-shadow: 0 4px 12px rgba(0,0,0,.15); min-height: 44px; }
.cvbp-rn { flex: none; font-family: var(--cvb-display); font-weight: 900; font-size: 14px; padding: 6px 11px; border-radius: 999px; background: var(--cvb-red); color: #fff; letter-spacing: .02em; }
.cvbp-rn small { font-size: 12px; opacity: .8; }
.cvbp-clock { aspect-ratio: auto; flex-direction: row; padding: 4px 11px; border-radius: 999px; background: var(--cvb-paper); }
.cvbp-clock b { font-size: 19px; }
.cvbp-clock.paused { opacity: .75; }
.cvbp-clock.paused b::after { content: ''; display: inline-block; width: 4px; height: 13px; margin-left: 7px; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; opacity: .6; }
.cvbp-clock.last { background: #ffe1dc; }
.cvbp-set { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 700; color: var(--cvb-panel-2); }
.cvbp-setn { min-width: 0; text-align: right; line-height: 1.1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* wraps at the space, never cut at the start */
.cvbp-set .cvb-emblem { width: 26px; height: 22px; flex: none; color: var(--cvb-panel-t); opacity: .8; }

/* ---- the folder ---- */
.cvbp-folderbox { position: relative; }
.cvbp-pchip { display: none; }
.cvbp-folder { position: relative; display: block; width: 100%; height: 150px; margin-top: 14px; padding: 0; border: 0; border-radius: 6px 16px 16px 16px; cursor: pointer; text-align: left; color: var(--cvb-ink); font: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 40%), var(--cvb-manila); box-shadow: inset 0 0 0 2px rgba(120,80,20,.28), 0 10px 22px rgba(0,0,0,.28); -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.cvbp-folder:active { transform: scale(.98); }
.cvbp-ftab { position: absolute; left: 0; top: -14px; height: 28px; padding: 4px 16px 0 12px; border-radius: 7px 14px 0 0; background: var(--cvb-manila); font-family: var(--cvb-type); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(30,42,63,.72); }
.cvbp-fstamp { position: absolute; left: 18px; top: 22px; font-size: 26px; }
.cvbp-fhint { position: absolute; left: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.cvbp-fhint b { font-family: var(--cvb-display); font-size: 20px; }
.cvbp-fhint small { font-size: 13px; color: rgba(30,42,63,.7); }
/* the folder as a one-line chip (a vote, the last chance, the result; and any turn on a short screen) */
.cvbp.mini .cvbp-folder { height: 48px; }
.cvbp.mini .cvbp-folderbox { display: flex; gap: 8px; align-items: flex-end; }
.cvbp.mini .cvbp-folderbox .cvbp-folder { flex: 1; min-width: 0; width: auto; }
.cvbp.mini .cvbp-pchip { display: block; flex: none; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--cvb-panel); color: var(--cvb-panel-t); font-family: var(--cvb-display); font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 2px var(--cvb-line); }
.cvbp.mini .cvbp-fstamp, .cvbp.mini .cvbp-fmag, .cvbp.mini .cvbp-fhint small { display: none; }
.cvbp.mini .cvbp-fhint { top: 0; bottom: 0; left: 18px; justify-content: center; }
@media (max-height: 700px) {
  .cvbp { --cvbgap: 6px; }
  .cvbp-strip { min-height: 38px; padding-top: 3px; padding-bottom: 3px; }
  .cvbp-folder { height: 48px; margin-top: 12px; }
  .cvbp-person { gap: 2px; }
  .cvbp-fstamp, .cvbp-fmag, .cvbp-fhint small { display: none; }
  .cvbp-fhint { top: 0; bottom: 0; left: 18px; justify-content: center; }
  .cvbp-bar { min-height: 52px; padding: 4px 12px 4px 16px; }
  .cvbp-card { padding: 10px; gap: 8px; }
  .cvbp-q { font-size: 22px; }
  .cvbp-yes, .cvbp-no, .cvbp-pass { min-height: 56px; }
  .cvbp.mini .cvbp-actions { display: none; } /* Places moves into the folder chip's row, the round strip stays */
  .cvbp.mini .cvbp-note { display: none; }
  .cvbp.mini .cvbp-suspect { display: none; } /* the bar and the question already name the suspect */
  .cvbp.is-reveal .cvbp-folderbox, .cvbp.is-reveal .cvbp-strip { display: none; } /* the scoreboard needs the room */
  .cvbp.is-reveal .cvbp-card.reveal { gap: 6px; padding: 8px 10px; }
  .cvbp.is-reveal .cvbp-rv { padding: 4px 10px; }
  .cvbp.is-reveal .cvbp-verdict { padding: 0; }
  .cvbp.is-reveal .cvbp-verdict { order: -2; }
  .cvbp.is-reveal .cvbp-lbs { gap: 2px; order: -1; } /* the scoreboard comes first, above the bar; the details follow */
  .cvbp.is-reveal .cvbp-lb { padding-top: 2px; padding-bottom: 2px; }
  .cvbp-person { min-height: 86px; padding: 6px 4px 4px; }
  .cvbp-person .avatar.lg { width: 40px; height: 40px; font-size: 18px; }
  .cvbp-suspect .avatar.lg { width: 46px; height: 46px; font-size: 20px; }
  .cvbp-suspect b { font-size: 22px; }
}
.cvbp-fmag { position: absolute; right: 16px; top: 22px; width: 86px; height: 86px; color: var(--cvb-ink); transform: rotate(-12deg); }
.cvbp-cardov { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(20,16,8,.55); animation: cvb-fade .2s; }
.cvbp-sleeve { width: 100%; max-width: 420px; padding: 12px; border-radius: 8px 18px 18px 18px; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 40%), var(--cvb-manila); box-shadow: inset 0 0 0 2px rgba(120,80,20,.28), 0 24px 60px rgba(0,0,0,.45); }
.cvbp-paper { position: relative; padding: 16px 16px 14px; border-radius: 6px; color: var(--cvb-ink); transform: rotate(-.6deg); animation: cvbp-pull .35s cubic-bezier(.2,1.2,.4,1);
  background: linear-gradient(var(--cvb-red), var(--cvb-red)) 0 46px / 100% 2px no-repeat, repeating-linear-gradient(180deg, transparent 0 29px, rgba(118,160,205,.3) 29px 30px) 0 48px / 100% 100% no-repeat, var(--cvb-paper);
  box-shadow: 0 6px 16px rgba(0,0,0,.25); }
@keyframes cvbp-pull { 0% { transform: translateY(24px) rotate(-3deg); opacity: 0; } 100% { transform: rotate(-.6deg); opacity: 1; } }
.cvbp-k { font-family: var(--cvb-type); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cvb-red); }
.cvbp-big { font-family: var(--cvb-display); font-weight: 900; font-size: 32px; line-height: 1.05; margin: 22px 0 6px; }
.cvbp-paper.spy .cvbp-big { font-size: 44px; color: var(--cvb-red); text-transform: uppercase; letter-spacing: .04em; }
.cvbp-setline { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cvb-ink-2); margin-bottom: 14px; }
.cvbp-setline .cvb-emblem { width: 28px; height: 23px; color: var(--cvb-ink); opacity: .6; }
.cvbp-role { font-family: var(--cvb-display); font-weight: 700; font-size: 23px; line-height: 1.15; margin: 4px 0 10px; }
.cvbp-tip { font-size: 14px; line-height: 1.4; color: var(--cvb-ink-2); }
.cvbp-spyart { width: 170px; margin: 0 auto 8px; }
.cvbp-guessbtn { display: block; width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--cvb-red); color: #fff; font-family: var(--cvb-display); font-weight: 900; font-size: 18px; letter-spacing: .02em; box-shadow: 0 4px 0 #8f2119; }
.cvbp-guessbtn:disabled { background: #b9b2a3; box-shadow: none; font-size: 15px; }
.cvbp-close { display: block; width: 100%; min-height: 46px; margin-top: 10px; border: 0; border-radius: 12px; background: rgba(30,42,63,.08); color: var(--cvb-ink); font-weight: 700; font-size: 15px; }

/* ---- whose turn ---- */
.cvbp-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--cvb-panel); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cvbp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cvbp-bt b { font-family: var(--cvb-display); font-weight: 900; font-size: 19px; line-height: 1.1; }
.cvbp-bt span { font-size: 14px; line-height: 1.3; color: var(--cvb-panel-2); }
.cvbp-bar .tclock { width: 50px; height: 50px; flex: none; }
.cvbp-bar .tclock b { font-size: 17px; }
.cvbp-bar.me { background: var(--cvb-gold); color: #241a00; box-shadow: 0 0 0 3px #fff3c4, 0 0 26px rgba(242,181,28,.6); animation: cvbp-glow 1.6s ease-in-out infinite; }
.cvbp-bar.me .cvbp-bt b { font-size: 24px; letter-spacing: .02em; }
.cvbp-bar.me .cvbp-bt span { color: rgba(36,26,0,.8); }
.cvbp-bar.red { background: var(--cvb-red); color: #fff; }
.cvbp-bar.red .cvbp-bt span, .cvbp-bar.green .cvbp-bt span { color: rgba(255,255,255,.85); }
.cvbp-bar.green { background: var(--cvb-green); color: #fff; }
@keyframes cvbp-glow { 50% { box-shadow: 0 0 0 3px #fff3c4, 0 0 40px rgba(242,181,28,.9); } }
.cvbp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cvb-panel-2); flex: none; animation: cvb-beat 1.4s ease-in-out infinite; }
body.cvbp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; box-shadow: inset 0 0 0 4px var(--cvb-gold), inset 0 0 36px rgba(242,181,28,.55); animation: cvbp-frame 1.6s ease-in-out infinite; }
@keyframes cvbp-frame { 50% { box-shadow: inset 0 0 0 5px var(--cvb-gold), inset 0 0 56px rgba(242,181,28,.75); } }

/* ---- the players ---- */
.cvbp-people { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.cvbp-person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 104px; padding: 10px 4px 8px; border: 0; border-radius: 14px; background: var(--cvb-panel); color: var(--cvb-panel-t); font: inherit; box-shadow: 0 3px 10px rgba(0,0,0,.14); -webkit-tap-highlight-color: transparent; }
.cvbp-person .avatar.lg { width: 50px; height: 50px; font-size: 22px; }
.cvbp-person > span:not(.avatar) { max-width: 100%; font-weight: 700; font-size: 15px; line-height: 1.15; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: normal; }
.cvbp-person em { font-style: normal; font-family: var(--cvb-type); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cvb-panel-2); min-height: 13px; text-align: center; line-height: 1.15; }
.cvbp-person.t-answering { box-shadow: 0 0 0 3px var(--cvb-gold), 0 3px 10px rgba(0,0,0,.14); }
.cvbp-person.t-asking, .cvbp-person.t-picking, .cvbp-person.t-asksfirst { box-shadow: 0 0 0 2px #6f8fb8, 0 3px 10px rgba(0,0,0,.14); }
.cvbp-people.picking .cvbp-person { opacity: .45; }
.cvbp-people.picking .cvbp-person.can { opacity: 1; box-shadow: 0 0 0 3px var(--cvb-gold), 0 6px 14px rgba(0,0,0,.2); cursor: pointer; }
.cvbp-people.picking .cvbp-person.can:active, .cvbp-person.can.sent { transform: scale(.95); background: var(--cvb-gold); color: #241a00; }
.cvbp-person.back em { color: var(--cvb-red); }
.cvbp-person.self > span:not(.avatar) { color: var(--cvb-panel-2); }
.cvbp-sheet .cvbp-person.can, .cvbp-card .cvbp-person.can { box-shadow: 0 0 0 2px var(--cvb-line), 0 3px 10px rgba(0,0,0,.14); cursor: pointer; }
.cvbp-sheet .cvbp-person.can:active, .cvbp-card .cvbp-person.can:active { background: var(--cvb-red); color: #fff; }

/* ---- the buttons every phone has ---- */
.cvbp-actions { display: flex; gap: 10px; }
.cvbp-actions:empty { display: none; }
.cvbp-actions { position: sticky; bottom: var(--safe-bottom); z-index: 6; margin: 0 -16px; padding: 8px 16px; }
.cvbp-actions.stuck { background: var(--bg); box-shadow: 0 -8px 12px -6px var(--bg); } /* a solid band, but only while it sits over the page */
.cvbp-act { flex: 1; min-height: 54px; border: 0; border-radius: 16px; background: var(--cvb-panel); color: var(--cvb-panel-t); font-family: var(--cvb-display); font-weight: 700; font-size: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.16), inset 0 0 0 2px var(--cvb-line); }
.cvbp-act.red { background: var(--cvb-red); color: #fff; box-shadow: 0 4px 0 #8f2119; }
.cvbp-act:disabled { opacity: 1; font-size: 15px; background: rgba(127,127,127,.2); color: var(--cvb-panel-2); box-shadow: none; }

/* ---- a vote, the last chance, the reveal ---- */
.cvbp-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: var(--cvb-panel); box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.cvbp-suspect { display: flex; align-items: center; gap: 12px; }
.cvbp-suspect .avatar.lg { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 0 0 3px var(--cvb-red); }
.cvbp-suspect small { display: block; font-family: var(--cvb-type); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cvb-red); }
.cvbp-suspect b { display: block; font-family: var(--cvb-display); font-size: 26px; line-height: 1.05; }
.cvbp-suspect div > span { font-size: 14px; color: var(--cvb-panel-2); }
.cvbp-suspect.big { justify-content: center; }
.cvbp-q { font-family: var(--cvb-display); font-weight: 900; font-size: 26px; line-height: 1.1; text-align: center; }
.cvbp-q b { color: #ff7a6e; }
.cvbp-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cvbp-yes, .cvbp-no, .cvbp-pass { min-height: 72px; border: 0; border-radius: 18px; font-family: var(--cvb-display); font-weight: 900; font-size: 28px; color: #fff; letter-spacing: .04em; }
.cvbp-yes { background: var(--cvb-green); box-shadow: 0 5px 0 #1b5c37; }
.cvbp-no { background: var(--cvb-red); box-shadow: 0 5px 0 #8f2119; }
.cvbp-pass { min-height: 56px; font-size: 20px; background: rgba(127,127,127,.25); color: var(--cvb-panel-t); }
.cvbp-yes:active, .cvbp-no:active { transform: translateY(3px); box-shadow: none; }
.cvbp-hands { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cvbp-hand { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(127,127,127,.18); }
.cvbp-hand b { font-family: var(--cvb-display); font-size: 13px; }
.cvbp-hand.yes { background: rgba(44,138,85,.3); }
.cvbp-hand.no { background: rgba(207,58,47,.28); }
.cvbp-vres { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--cvb-panel-2); }
.cvbp-vres .cvb-stamp, .cvbp-verdict .cvb-stamp { font-size: 22px; }
.cvbp-vres .cvb-stamp.k-red, .cvbp-verdict .cvb-stamp.k-red, .cvbp-overstamp .cvb-stamp.k-red { color: #ff6b5e; }
.cvbp-verdict .cvb-stamp.k-ink { color: #f3eee2; }
.cvbp-vres .cvb-stamp.k-green { color: #5fd08f; }
.cvbp-order { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cvbp-o { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(127,127,127,.18); }
.cvbp-o.done { opacity: .5; }
.cvbp-o.cur { background: var(--cvb-gold); color: #241a00; }
.cvbp-card.reveal { align-items: stretch; }
.cvbp-verdict { display: flex; justify-content: center; padding: 6px 0 2px; font-size: 1px; }
.cvbp-verdict .cvb-stamp { font-size: 28px; }
.cvbp-rv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(127,127,127,.12); }
.cvbp-rv small { font-family: var(--cvb-type); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cvb-panel-2); flex: none; }
.cvbp-rv b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cvb-display); font-size: 18px; text-align: right; }
.cvbp-mine { font-size: 15px; text-align: center; color: var(--cvb-panel-2); }
.cvbp-mine b { color: #5fd08f; }
.cvbp-lbs { display: flex; flex-direction: column; gap: 4px; }
.cvbp-lb { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border-radius: 10px; font-size: 15px; background: rgba(127,127,127,.1); }
.cvbp-lb > span:first-child { width: 18px; text-align: center; font-family: var(--cvb-type); font-weight: 700; color: var(--cvb-panel-2); }
.cvbp-lb b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvbp-lb i { font-style: normal; font-family: var(--cvb-display); font-weight: 900; font-size: 18px; }
.cvbp-lb em { width: 30px; font-style: normal; font-weight: 900; color: #5fd08f; text-align: right; }
.cvbp-lb.me { box-shadow: inset 0 0 0 2px var(--cvb-gold); }
.cvbp-overstamp { font-size: 34px; margin: 8px 0; }
.cvbp-center .cvbp-card { width: 100%; }

/* ---- sheets ---- */
.cvbp-ov { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); animation: cvb-fade .2s; }
.cvbp-sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--cvb-panel-solid, #1a2233); color: var(--cvb-panel-t); animation: cvbp-up .28s cubic-bezier(.2,1.1,.4,1); }
@keyframes cvbp-up { 0% { transform: translateY(60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cvb-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
.cvbp-sh-h { display: flex; align-items: center; gap: 12px; }
.cvbp-sh-h .cvb-emblem, .cvbp-shmag { width: 44px; height: 38px; flex: none; color: var(--cvb-panel-t); }
.cvbp-sh-h b { display: block; font-family: var(--cvb-display); font-size: 22px; }
.cvbp-sh-h span { font-size: 14px; color: var(--cvb-panel-2); }
.cvbp-plgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cvbp-sheet > .cvbp-shbtn.ghost { --sb: #1a2233; position: sticky; bottom: 0; flex: none; background: linear-gradient(rgba(127,127,127,.2), rgba(127,127,127,.2)), var(--sb); box-shadow: 0 -10px 10px -6px var(--sb); }
[data-theme="light"] .cvbp-sheet > .cvbp-shbtn.ghost { --sb: #fffaf0; } /* Close stays in reach while the list scrolls */
/* the places list: the index-card rule sits under the number, above the name (it used to run through
   the name and made every place look crossed out); only a place you cross off gets a slash */
.cvbp-pl { --cvb-top: 17px; min-height: 64px; padding: 21px 4px 6px; border: 0; font: inherit;
  background: linear-gradient(var(--cvb-red), var(--cvb-red)) 0 var(--cvb-top) / 100% 2px no-repeat, var(--cvb-paper); }
.cvbp-pl .cvb-pn { font-size: 13px; left: 6px; top: 0; }
.cvbp-pl.out { opacity: .5; }
.cvbp-pl.out .cvb-pt { text-decoration: none; }
.cvbp-pl.out::after { content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; background: linear-gradient(to top right, transparent calc(50% - 1.5px), rgba(207,58,47,.9) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.cvbp-pl .cvb-pt { font-size: 15px; padding: 0 6px; }
.cvbp-pl.sel { box-shadow: 0 0 0 3px var(--cvb-red); }
.cvbp-bigpl { --cvb-lh: 30px; min-height: 120px; padding-top: 22px; transform: rotate(-1deg); }
.cvbp-bigpl .cvb-pn { font-size: 14px; }
.cvbp-bigpl .cvb-pt { font-size: 28px; }
.cvbp-cq { font-family: var(--cvb-display); font-size: 22px; text-align: center; line-height: 1.2; }
.cvbp-cs { font-size: 14px; line-height: 1.4; text-align: center; color: var(--cvb-panel-2); }
.cvbp-shbtn { min-height: 54px; border: 0; border-radius: 16px; font-family: var(--cvb-display); font-weight: 700; font-size: 17px; background: rgba(127,127,127,.2); color: var(--cvb-panel-t); }
.cvbp-shbtn.red { background: var(--cvb-red); color: #fff; box-shadow: 0 4px 0 #8f2119; }

/* ---- big moments ---- */
.cvbp-moment { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,14,24,.72); animation: cvb-fade .2s; }
.cvbp-moment.out { opacity: 0; transition: opacity .25s; }
.cvbp-m-in { width: 100%; max-width: 380px; padding: 26px 20px; border-radius: 22px; text-align: center; background: var(--cvb-paper); color: var(--cvb-ink); box-shadow: 0 0 0 4px var(--cvb-ink), 0 30px 60px rgba(0,0,0,.5); transform: rotate(-1.5deg); animation: cvbp-pop .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes cvbp-pop { 0% { transform: scale(.7) rotate(-6deg); opacity: 0; } 100% { transform: rotate(-1.5deg); opacity: 1; } }
.cvbp-m-in > small { display: block; font-family: var(--cvb-type); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--cvb-ink-2); }
.cvbp-m-in > b { display: block; font-family: var(--cvb-display); font-weight: 900; font-size: 36px; line-height: 1.05; margin: 6px 0; }
.cvbp-m-in > span { display: block; font-size: 16px; color: var(--cvb-ink-2); }
.cvbp-moment.k-vote .cvbp-m-in, .cvbp-moment.k-time .cvbp-m-in { box-shadow: 0 0 0 4px var(--cvb-red), 0 30px 60px rgba(0,0,0,.5); }
.cvbp-moment.k-vote b, .cvbp-moment.k-time b { color: var(--cvb-red); }
.cvbp-m-stamp { font-size: 32px; margin: 4px 0 12px; }

/* ---- light: a sunny desk ---- */
[data-theme="light"] .cvbp-sheet { background: #fffaf0; }
[data-theme="light"] .cvbp-q b { color: var(--cvb-red); }
[data-theme="light"] .cvbp-mine b, [data-theme="light"] .cvbp-lb em { color: var(--cvb-green); }
[data-theme="light"] .cvbp-set .cvb-emblem, [data-theme="light"] .cvbp-sh-h .cvb-emblem, [data-theme="light"] .cvbp-shmag { color: var(--cvb-ink); }
[data-theme="light"] .cvbp-strip, [data-theme="light"] .cvbp-bar.idle, [data-theme="light"] .cvbp-person, [data-theme="light"] .cvbp-card, [data-theme="light"] .cvbp-act:not(.red) { box-shadow: 0 0 0 1.5px rgba(30,42,63,.12), 0 4px 12px rgba(80,60,20,.1); }
[data-theme="light"] .cvbp-people.picking .cvbp-person.can { box-shadow: 0 0 0 3px var(--cvb-gold), 0 6px 14px rgba(80,60,20,.18); }
[data-theme="light"] .cvbp-person.t-answering { box-shadow: 0 0 0 3px var(--cvb-gold), 0 4px 12px rgba(80,60,20,.1); }
[data-theme="light"] .cvbp-moment { background: rgba(60,48,24,.5); }
[data-theme="light"] .cvbp-vres .cvb-stamp.k-red, [data-theme="light"] .cvbp-verdict .cvb-stamp.k-red, [data-theme="light"] .cvbp-overstamp .cvb-stamp.k-red { color: var(--cvb-red); }
[data-theme="light"] .cvbp-verdict .cvb-stamp.k-ink { color: var(--cvb-ink); }
[data-theme="light"] .cvbp-vres .cvb-stamp.k-green { color: var(--cvb-green); }

/* four tiles across on a 320 phone: the longest first name still fits whole */
@media (max-width: 359px) { .cvbp-person { padding-left: 2px; padding-right: 2px; } .cvbp-person > span:not(.avatar) { font-size: 13px; letter-spacing: -.01em; } }

/* /shared/notrivals.css */
/* Hex Island: Duel: card faces, dice and icons (TV and phones), and the table.
   Cards are square, parchment framed, sized with --cw. Dark rules first, then light. */
.rvcard, .rvcard * { box-sizing: border-box; }
.rvcard {
  width: var(--cw, 100px); aspect-ratio: 1; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .07); padding: calc(var(--cw, 100px) * .045);
  background: linear-gradient(160deg, #f6ecd2, #e6d4ad); user-select: none; -webkit-user-select: none;
  box-shadow: 0 calc(var(--cw, 100px) * .025) calc(var(--cw, 100px) * .08) rgba(0,0,0,.45), inset 0 0 0 calc(var(--cw, 100px) * .012) #8a6b3a;
  font-family: "Spectral", Georgia, "Times New Roman", serif; color: #2a1c08;
}
.rvcard .rv-inner { position: relative; width: 100%; height: 100%; border-radius: 4.5cqw; overflow: hidden; background: #d9c9a5; box-shadow: inset 0 0 0 .8cqw rgba(59,42,22,.55); }
.rvcard svg.rv-art, .rvcard svg.rv-terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rv-ico { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .6px 1px rgba(0,0,0,.35)); }

/* regions: terrain, die number, three storage slots */
.rv-region .rv-rname { position: absolute; left: 0; top: 0; padding: 1.5cqw 5cqw 1.8cqw 4cqw; font-family: "IM Fell English SC", Georgia, serif; font-size: 12cqw; line-height: 1; color: #2a1c08; background: linear-gradient(180deg, #f6ecd2, #e9d8b2); border-bottom-right-radius: 5cqw; box-shadow: .6cqw .6cqw 0 rgba(0,0,0,.25); white-space: nowrap; }
.rv-region .rv-rdie { --ds: 33cqw; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-4deg); }
.rv-region .rv-store { position: absolute; left: 6cqw; right: 6cqw; bottom: 5cqw; display: flex; justify-content: space-between; gap: 3cqw; }
.rv-region .rv-slot { flex: 1; aspect-ratio: 1; max-width: 27cqw; border-radius: 5cqw; background: rgba(20,14,6,.38); box-shadow: inset 0 0 0 .9cqw rgba(246,236,210,.55); display: flex; }
.rv-region .rv-slot.full { background: none; box-shadow: 0 0 0 .9cqw #f6ecd2, 0 1cqw 2.5cqw rgba(0,0,0,.45); border-radius: 5cqw; animation: rv-pop .35s cubic-bezier(.2,1.5,.4,1) both; }
.rv-region .rv-slot.full .rv-ico { border-radius: 5cqw; }
.rv-region .rv-gain { position: absolute; right: 3cqw; top: 3cqw; background: #a3e635; color: #0a0d14; font: 900 15cqw/1 "Inter", Arial, sans-serif; padding: 2cqw 4cqw; border-radius: 99px; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45); animation: rv-gainf 3.2s ease both; }
@keyframes rv-gainf { 0% { transform: translateY(8cqw) scale(.6); opacity: 0; } 12% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6cqw); } }
@keyframes rv-pop { from { transform: scale(.4); opacity: 0; } }
.rvcard.rv-glow { box-shadow: 0 0 0 calc(var(--cw) * .03) #a3e635, 0 0 calc(var(--cw) * .25) rgba(163,230,53,.7), 0 calc(var(--cw) * .025) calc(var(--cw) * .08) rgba(0,0,0,.45); }
.rvcard.rv-lost { box-shadow: 0 0 0 calc(var(--cw) * .03) #ff453a, 0 0 calc(var(--cw) * .25) rgba(255,69,58,.7); }

/* dice */
.rv-die { width: var(--ds, 44px); height: var(--ds, 44px); border-radius: 22%; background: linear-gradient(160deg, #fffdf7, #ece4d2); box-shadow: inset 0 calc(var(--ds, 44px) * -.07) 0 #cfc3a6, 0 calc(var(--ds, 44px) * .06) calc(var(--ds, 44px) * .16) rgba(0,0,0,.45); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: calc(var(--ds, 44px) * .14); flex: none; box-sizing: border-box; }
.rv-die i { display: block; width: calc(var(--ds, 44px) * .19); height: calc(var(--ds, 44px) * .19); border-radius: 50%; align-self: center; justify-self: center; }
.rv-die i.on { background: #1d1a16; box-shadow: inset 0 calc(var(--ds, 44px) * .02) 0 rgba(255,255,255,.25); }
.rv-evdie { width: var(--ds, 44px); height: var(--ds, 44px); border-radius: 22%; background: linear-gradient(160deg, #fffdf7, #ece4d2); box-shadow: inset 0 calc(var(--ds, 44px) * -.07) 0 #cfc3a6, 0 calc(var(--ds, 44px) * .06) calc(var(--ds, 44px) * .16) rgba(0,0,0,.45); padding: calc(var(--ds, 44px) * .12); flex: none; box-sizing: border-box; }
.rv-evdie svg { width: 100%; height: 100%; display: block; }
.rv-evdie.s-bandit { background: linear-gradient(160deg, #fff4f2, #f3d9d4); }

/* centre cards */
.rv-centre .rv-cname { position: absolute; left: 0; bottom: 0; padding: 1.8cqw 5cqw 1.5cqw 4cqw; font-family: "IM Fell English SC", Georgia, serif; font-size: 13cqw; line-height: 1; color: #f6ecd2; background: rgba(30,20,8,.82); border-top-right-radius: 5cqw; }
.rv-centre .rv-vp { position: absolute; right: 4cqw; top: 4cqw; width: 22cqw; height: 25cqw; display: flex; align-items: center; justify-content: center; font: 900 15cqw/1 Georgia, serif; color: #2a1c08; background: #f0c04a; clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); filter: drop-shadow(0 1cqw 1cqw rgba(0,0,0,.4)); }

/* basic and event cards */
.rv-basic .rv-art { position: absolute; inset: 0 0 auto 0; height: 66% !important; }
.rv-basic .rv-box { position: absolute; left: 0; right: 0; bottom: 0; height: 37%; padding: 2cqw 4cqw 0; text-align: center; background: linear-gradient(180deg, #d9ecc4, #bcd9a0); border-top: .9cqw solid #5b7f3a; display: flex; flex-direction: column; align-items: center; }
.rv-basic.k-action .rv-box { background: linear-gradient(180deg, #f8e7a8, #ecd17a); border-top-color: #a8801f; }
.rv-basic.k-event .rv-box { background: linear-gradient(180deg, #d8e6f4, #b9d0e8); border-top-color: #41678f; }
.rv-basic .rv-type { font: 800 6.6cqw/1.1 "Inter", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(42,28,8,.7); white-space: nowrap; }
.rv-basic .rv-name { font-family: "IM Fell English SC", Georgia, serif; font-size: 12.5cqw; line-height: 1; margin-top: 1.2cqw; color: #1d1406; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-basic .rv-text { display: none; font-size: 7.4cqw; line-height: 1.18; margin-top: 1.6cqw; color: #2a1c08; }
.rv-basic .rv-cost { position: absolute; left: 3cqw; top: 3cqw; display: flex; flex-direction: column; gap: 1.6cqw; padding: 1.6cqw; background: rgba(246,236,210,.92); border-radius: 4cqw; box-shadow: 0 1cqw 2cqw rgba(0,0,0,.3); }
.rv-basic .rv-cost .rv-ico { width: 15cqw; height: 15cqw; }
.rv-basic .rv-cost.two { display: grid; grid-template-columns: 1fr 1fr; }
.rv-basic .rv-cost.two .rv-ico { width: 12.5cqw; height: 12.5cqw; }
.rv-basic .rv-pts { position: absolute; right: 3cqw; top: 3cqw; display: flex; flex-direction: column; gap: 1.4cqw; align-items: flex-end; }
.rv-badge { position: relative; display: inline-flex; align-items: center; }
.rv-badge svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .6px 1.2px rgba(0,0,0,.45)); }
.rv-basic .rv-pts .rv-badge { width: 17cqw; height: 17cqw; }
.rvcard .rv-badge b { font-size: max(9px, 7.5cqw); }
.rv-badge b { position: absolute; right: -3px; bottom: -4px; min-width: 52%; height: 52%; border-radius: 99px; background: #1d1406; color: #f6ecd2; font: 900 10px/1 "Inter", Arial, sans-serif; display: flex; align-items: center; justify-content: center; padding: 0 2px; box-shadow: 0 0 0 1.5px #f6ecd2; }
.rv-basic .rv-mark { position: absolute; left: 3cqw; top: 3cqw; width: 17cqw; height: 17cqw; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 11cqw/1 Georgia, serif; color: #2a1c08; background: #f0c04a; box-shadow: 0 0 0 .9cqw #f6ecd2, 0 1cqw 2cqw rgba(0,0,0,.35); }
.rv-basic .rv-mark.ev { background: #8fb3da; }
.rv-basic .rv-boost { position: absolute; right: 3cqw; top: -10.5cqw; display: inline-flex; align-items: center; gap: 1cqw; padding: 1cqw 2.4cqw; border-radius: 99px; background: rgba(29,20,6,.82); color: #f6ecd2; font: 900 7cqw/1 "Inter", Arial, sans-serif; }
.rv-basic .rv-boost .rv-ico { width: 8cqw; height: 8cqw; }
@container (min-width: 150px) {
  .rv-basic .rv-box { height: 45%; }
  .rv-basic .rv-art { height: 58% !important; }
  .rv-basic .rv-text { display: block; }
  .rv-basic .rv-name { font-size: 11.5cqw; -webkit-line-clamp: 1; }
  .rv-basic .rv-type { font-size: 5.4cqw; }
}

/* backs */
.rv-back .rv-inner { background: radial-gradient(circle at 50% 42%, #6b3f22 0 30%, #4a2a16 70%), #3b2213; box-shadow: inset 0 0 0 2.4cqw #2a170b, inset 0 0 0 3.2cqw #c9a54a; }
.rv-back .rv-inner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 7px); }
.rv-back .rv-medal { position: absolute; left: 50%; top: 45%; width: 52cqw; height: 52cqw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6ecd2, #d9c08a); box-shadow: 0 0 0 1.4cqw #c9a54a, 0 0 0 2.6cqw #2a170b, 0 2cqw 5cqw rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rv-back .rv-bsvg { width: 78%; height: 78%; }
.rv-back.b-basic .rv-medal { background: radial-gradient(circle at 40% 35%, #f0a35a, #b8452a); }
.rv-back .rv-bq { font: 900 38cqw/1 Georgia, serif; color: #24427a; }
.rv-back .rv-bname { position: absolute; left: 0; right: 0; bottom: 6cqw; text-align: center; font-family: "IM Fell English SC", Georgia, serif; font-size: 10cqw; color: #e6c27a; letter-spacing: .06em; }
.rv-back.b-event .rv-inner { background: radial-gradient(circle at 50% 42%, #33507e 0 30%, #1e3152 70%), #1a2a46; box-shadow: inset 0 0 0 2.4cqw #13203a, inset 0 0 0 3.2cqw #c9a54a; }
.rv-back.b-region .rv-inner { background: radial-gradient(circle at 50% 42%, #4f7a45 0 30%, #2f4f2c 70%), #284427; box-shadow: inset 0 0 0 2.4cqw #1b301a, inset 0 0 0 3.2cqw #c9a54a; }

.rvcard.dim { filter: saturate(.35) brightness(.82); }
.rv-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); font-family: "Inter", -apple-system, Arial, sans-serif; }
.rv-explain .rv-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.rv-explain p { margin: 5px 0 0; }

/* the table: walnut and lamplight in the dark, light oak by day */
.tbl-rivals {
  --tbl-edge: #1c0f07; --tbl-rim: #8a6b3a; --tbl-glow: rgba(255,200,130,.14);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255,196,128,.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(0,0,0,.4) 318px 321px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #4a2d1b 0%, #3b2314 55%, #2c190d 100%);
}
[data-theme="light"] .tbl-rivals {
  --tbl-edge: #8a6a40; --tbl-rim: #f3e2bf; --tbl-glow: rgba(255,255,255,.22);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255,245,225,.45), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(120,80,30,.2) 318px 320px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px, rgba(120,80,30,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(120,80,30,.05) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #dcbf8f 0%, #d2b07b 55%, #c49f69 100%);
}
[data-theme="light"] .rvcard { box-shadow: 0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .06) rgba(70,45,15,.35), inset 0 0 0 calc(var(--cw, 100px) * .012) #8a6b3a; }

/* /phone/games/notrivals.css */
/* Hex Island: Duel on the phone: parchment panels on the wooden table, your
   principality in a sideways scroller, the hand fanned in the dock. Dark first, then light. */
body.g-notrivals .h2, body.g-notrivals .rvp-turnbar.me b, body.g-notrivals .rvp-myvp b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: .02em; }
.rvp { display: flex; flex-direction: column; gap: 9px; padding-bottom: 188px; min-width: 0; max-width: 100%; }
.rvp > * { min-width: 0; }
.rvp-turnbar { position: relative; display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 12px; font-size: 15px; min-height: 58px; }
.rvp-turnbar.me { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-right: 96px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: rvp-throb 1.6s ease-in-out .4s infinite; }
.rvp-turnbar.me.pop { animation: rvp-pop .35s cubic-bezier(.2,1.4,.4,1) both, rvp-throb 1.6s ease-in-out .4s infinite; }
.rvp-turnbar.me b { font-size: 30px; line-height: 1; }
.rvp-turnbar.me > span { font-size: 15px; font-weight: 700; line-height: 1.25; }
.rvp-turnbar.idle { background: linear-gradient(180deg, rgba(58,43,24,.92), rgba(38,28,15,.94)); border: 1.5px solid #8a6b3a; color: rgba(243,227,191,.75); padding-right: 96px; }
.rvp-turnbar.idle b { color: #f3e3bf; }
.rvp-turnbar.idle small { display: block; font-size: 13px; margin-top: 2px; }
.rvp-dice { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.rvp-dice .rv-die, .rvp-dice .rv-evdie { --ds: 36px; }
@keyframes rvp-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes rvp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); } }
.rvp-opp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #f3e3bf; background: rgba(0,0,0,.28); border-radius: 14px; padding: 6px 10px 6px 6px; border: 2px solid transparent; }
.rvp-opp.turn { border-color: #ffb800; }
.rvp-opp .nm { font-weight: 800; }
.rvp-chipv { display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.rvp-chipv .rv-badge { width: 16px; height: 16px; }
.rvp-tok { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background-size: cover; box-shadow: 0 2px 6px rgba(0,0,0,.45); vertical-align: middle; }
.rvp-tok.t-hero { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='40%25' cy='35%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23e0a37a'/%3E%3Cstop offset='1' stop-color='%23874a26'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='19' fill='url(%23g)' stroke='%235a2e14' stroke-width='2'/%3E%3Cpath d='M13 30l13-19' stroke='%233a1d0c' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M22 9c5-3 9-1 10 2-3 0-5 2-6 6z' fill='%233a1d0c'/%3E%3C/svg%3E"); }
.rvp-tok.t-trade { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='40%25' cy='35%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23e0a37a'/%3E%3Cstop offset='1' stop-color='%23874a26'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='19' fill='url(%23g)' stroke='%235a2e14' stroke-width='2'/%3E%3Cpath d='M20 9v20M12 13h16M16 29h8' stroke='%233a1d0c' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9 21l3-7 3 7zM25 21l3-7 3 7z' fill='%233a1d0c'/%3E%3C/svg%3E"); }
.rvp-tok.huge { width: min(46vw, 180px); height: min(46vw, 180px); animation: rvp-spin .9s cubic-bezier(.2,1.2,.4,1) both; }
.rvp-tok.huge.gone { filter: grayscale(.7) brightness(.7); }
@keyframes rvp-spin { from { transform: rotateY(540deg) scale(.3); opacity: 0; } }
.rvp-me { display: flex; align-items: stretch; gap: 8px; }
.rvp-myvp { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(58,43,24,.92), rgba(38,28,15,.94)); border: 1.5px solid #8a6b3a; border-radius: 14px; color: #e6c27a; line-height: 1; padding: 4px; }
.rvp-myvp b { font-size: 34px; }
.rvp-myvp small { font: 700 10px "Inter", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,227,191,.7); }
.rvp-myvp .rvp-tok { width: 18px; height: 18px; margin-top: 3px; }
.rvp-res { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.rvp-rt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(180deg, rgba(58,43,24,.92), rgba(38,28,15,.94)); border: 1.5px solid #8a6b3a; border-radius: 12px; padding: 6px 2px 5px; color: #f3e3bf; }
.rvp-rt .ic { width: 28px; height: 28px; display: block; }
.rvp-rt b { font: 900 18px/1 "Inter", Arial, sans-serif; }
.rvp-rt i { position: absolute; top: -6px; right: -4px; font: 900 9px/1 "Inter", Arial, sans-serif; font-style: normal; background: #ffb800; color: #1b1b1b; padding: 2px 4px; border-radius: 6px; }
.rvp-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; font-size: 12px; color: rgba(243,227,191,.75); padding: 0 2px; }
.rvp-stats .rv-badge { width: 16px; height: 16px; margin-left: 4px; }
.rvp-stats b { color: #f3e3bf; }
.rvp-prwrap { margin: 0 -16px; position: relative; min-width: 0; max-width: calc(100% + 32px); overflow: hidden; }
.rvp-prwrap.placing { background: rgba(255,184,0,.08); box-shadow: inset 0 0 0 2px rgba(255,184,0,.45); }
.rvp-prwrap.can-l::before, .rvp-prwrap.can-r::after { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); pointer-events: none; font: 800 13px "Inter", Arial, sans-serif; color: #1b1b1b; background: #ffb800; padding: 6px 8px; border-radius: 10px; }
.rvp-prwrap.can-l::before { content: '\25C0 slide'; left: 4px; }
.rvp-prwrap.can-r::after { content: 'slide \25B6'; right: 4px; }
.rvp-prin { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 10px 16px; scrollbar-width: none; }
.rvp-prin::-webkit-scrollbar { display: none; }
.rvp-grid { display: grid; grid-template-rows: repeat(3, var(--cw)); gap: 5px; width: max-content; margin: 0 auto; }
.rvp-cell { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.rvp-cell.tap { cursor: pointer; z-index: 2; }
.rvp-cell.tap::after { content: ''; position: absolute; inset: -3px; border-radius: 9px; box-shadow: 0 0 0 3px #ffb800, 0 0 16px rgba(255,184,0,.75); animation: rvp-tap 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes rvp-tap { 50% { box-shadow: 0 0 0 4px #ffd60a, 0 0 26px rgba(255,214,10,.95); } }
.rvp-cell.picked::after { content: ''; position: absolute; inset: -3px; border-radius: 9px; box-shadow: 0 0 0 4px #a3e635, 0 0 18px rgba(163,230,53,.8); }
.rvp-cell.lose::after { content: ''; position: absolute; inset: -3px; border-radius: 9px; box-shadow: 0 0 0 3px #ff453a; }
.rvp .rv-site, .rvp .rv-spot { width: var(--cw); aspect-ratio: 1; border-radius: 6px; border: 2px dashed rgba(243,227,191,.32); background: rgba(0,0,0,.14); }
.rvp .rv-spot { display: flex; align-items: center; justify-content: center; border-style: dotted; }
.rvp .rv-spot span { font: 800 10px "Inter", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,227,191,.55); }
.rvp-cell.tap .rv-site, .rvp-cell.tap .rv-spot { border-color: #ffd60a; background: rgba(255,214,10,.16); }
.rvp-cell.tap .rv-spot span { color: #ffd60a; }
.rvcard.rv-land { animation: rvp-land .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes rvp-land { from { transform: translateY(-30px) scale(1.3) rotate(-8deg); opacity: 0; } }
.rvp-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #ffb800; color: #1b1b1b; font-weight: 800; border-radius: 12px; padding: 4px 4px 4px 12px; }
.rvp-hint .btn.ghost { width: auto; min-height: 40px; color: #1b1b1b; background: rgba(255,255,255,.4); font-weight: 800; }
.rvp-acts { display: flex; flex-direction: column; gap: 8px; }
.rvp-row3 { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
.rvp-acts .btn { min-height: 52px; font-weight: 800; }
.btn.rvp-big { min-height: 60px; font-size: 20px; letter-spacing: .04em; }
.btn.rvp-gold { background: linear-gradient(180deg, #f3e3bf, #d9c08a); color: #2a1c08; border: 1.5px solid #8a6b3a; }
.rvp-log { font-size: 13px; line-height: 1.35; color: rgba(243,227,191,.7); padding: 0 2px; }
.rvp-log .l-turn { color: #f3e3bf; font-weight: 700; } .rvp-log .l-gain { color: #b5e36b; } .rvp-log .l-bandit { color: #ff9a8a; } .rvp-log .l-token { color: #ffd166; } .rvp-log .l-event { color: #c9b6ff; }
.rvp.waiting .ndp-fan { opacity: .66; filter: saturate(.75); transition: opacity .3s; }
body.rvp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: rvp-frame 1.6s ease-in-out infinite; }
@keyframes rvp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }

/* the rival's latest build */
.rvp-oppplay { display: flex; align-items: center; gap: 10px; margin-top: -4px; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(0,0,0,.24); color: #f3e3bf; font-size: 14px; }
.rvp-oppplay b { font-weight: 800; }
[data-theme="light"] .rvp-oppplay { background: rgba(255,250,235,.8); color: #2a1c08; }

/* the hand */
.rvp-dock { background: linear-gradient(to top, rgba(28,18,8,.96) 72%, rgba(28,18,8,0)); }
.rvp-dock .ndp-fan { height: calc(var(--cw) + 40px); }
.ndp-fan .rvcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .rvcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .rvcard.lit { box-shadow: 0 0 0 3px #ffd60a, 0 0 18px rgba(255,214,10,.55), 0 6px 16px rgba(0,0,0,.4); }
.ndp-fan .rvcard.dim { filter: saturate(.35) brightness(.8); }
.ndp-fan .rvcard.rvp-in { animation: rvp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes rvp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.ndp-peekcard .rvcard { --cw: min(48vw, 190px); }
.rvp-big { --cw: min(56vw, 230px); }
.rvp-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }

/* sheets */
.rvp-sheet { gap: 9px; }
.rvp-sheet .h2 { font-size: 26px; }
.rvp-sheet .p.small { font-size: 13px; }
.rvp-sub { font: 800 12px "Inter", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--label-2); margin-top: 4px; }
.rvp-rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rvp-rgrid.small .rvp-rb { min-height: 52px; }
.rvp-rb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 76px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--text); font: 700 14px "Inter", Arial, sans-serif; cursor: pointer; padding: 6px 4px; }
.rvp-rb .rv-ico { width: 30px; height: 30px; }
.rvp-rb small { font-size: 11px; font-weight: 600; color: var(--label-2); }
.rvp-rb:disabled { opacity: .35; }
.rvp-rb:active { transform: scale(.97); }
.rvp-picked { display: flex; gap: 6px; justify-content: center; min-height: 30px; align-items: center; }
.rvp-picked .rv-ico { width: 28px; height: 28px; }
.rvp-picked.empty { font-size: 13px; color: var(--label-2); }
.rvp-stacks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rvp-stackbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; font-family: "Inter", Arial, sans-serif; }
.rvp-stackbtn b { font-size: 14px; }
.rvp-stackbtn small { font-size: 11px; color: var(--label-2); }
.rvp-stackbtn:disabled { opacity: .35; }
.rvp-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-height: 46vh; overflow-y: auto; padding: 4px; }
.rvp-cpick { position: relative; border: none; background: none; padding: 3px; border-radius: 12px; cursor: pointer; }
.rvp-cpick.on { box-shadow: 0 0 0 3px #a3e635, 0 0 18px rgba(163,230,53,.6); }
.rvp-cpick em { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: #a3e635; color: #0a0d14; font: 900 11px "Inter", Arial, sans-serif; font-style: normal; padding: 2px 6px; border-radius: 6px; }
.rvp-nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rvp-num { border: none; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 0; display: flex; justify-content: center; cursor: pointer; }
.rvp-num .rv-die { --ds: 38px; }
.rvp-num.on { box-shadow: 0 0 0 3px #ffb800; background: rgba(255,184,0,.18); }
.rvp-brow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--text); padding: 8px; cursor: pointer; font-family: "Inter", Arial, sans-serif; }
.rvp-brow:disabled { opacity: .45; }
.rvp-binfo { display: flex; flex-direction: column; gap: 4px; }
.rvp-binfo b { font-size: 17px; }
.rvp-binfo small { font-size: 12px; color: var(--label-2); }
.rvp-bcost { display: flex; gap: 3px; }
.rvp-bcost .rv-ico { width: 22px; height: 22px; }
.rvp-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 2px 6px; }
.rvp-toggle input { width: 22px; height: 22px; }

/* full-screen moments */
.rvp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 50%, transparent), rgba(10,6,2,.7) 75%); animation: rvp-moment 2.8s ease both; }
.rvp-moment.k-bandit { background: radial-gradient(circle, rgba(198,40,40,.6), rgba(20,4,4,.8) 75%); }
@keyframes rvp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.rvp-mcard { animation: rvp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.rvp-mcard .rvcard { box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 3px #8a6b3a; transform: rotate(-3deg); }
.rvp-mdie .rv-evdie { --ds: 150px; animation: rvp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes rvp-slam { from { transform: scale(2.4); opacity: 0; } }
.rvp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font: 800 18px/1.25 "Inter", Arial, sans-serif; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 90vw; }
.rvp-moment .avatar { width: 40px; height: 40px; font-size: 18px; flex: none; }
.rvp-final .rvp-fcard { margin-bottom: 4px; }

/* ---- light theme: daylight parchment on light oak ---- */
[data-theme="light"] .rvp-turnbar.idle, [data-theme="light"] .rvp-myvp, [data-theme="light"] .rvp-rt { background: linear-gradient(180deg, rgba(250,242,222,.97), rgba(238,224,190,.97)); border-color: #a9844a; color: #2a1c08; }
[data-theme="light"] .rvp-turnbar.idle b, [data-theme="light"] .rvp-stats b, [data-theme="light"] .rvp-opp { color: #2a1c08; }
[data-theme="light"] .rvp-turnbar.idle, [data-theme="light"] .rvp-turnbar.idle small, [data-theme="light"] .rvp-myvp small, [data-theme="light"] .rvp-stats { color: rgba(61,42,18,.75); }
[data-theme="light"] .rvp-myvp { color: #9a6410; }
[data-theme="light"] .rvp-opp { background: rgba(255,250,235,.82); box-shadow: 0 4px 14px rgba(90,60,20,.12); }
[data-theme="light"] .rvp-chipv { background: rgba(90,60,20,.1); }
[data-theme="light"] .rvp .rv-site, [data-theme="light"] .rvp .rv-spot { border-color: rgba(90,60,20,.35); background: rgba(255,250,235,.3); }
[data-theme="light"] .rvp .rv-spot span { color: rgba(61,42,18,.6); }
[data-theme="light"] .rvp-cell.tap .rv-site, [data-theme="light"] .rvp-cell.tap .rv-spot { border-color: #d99a00; background: rgba(255,214,10,.25); }
[data-theme="light"] .rvp-cell.tap .rv-spot span { color: #8a5a00; }
[data-theme="light"] .rvp-log { color: rgba(61,42,18,.75); }
[data-theme="light"] .rvp-log .l-turn { color: #2a1c08; } [data-theme="light"] .rvp-log .l-gain { color: #3f7d0e; } [data-theme="light"] .rvp-log .l-bandit { color: #c2410c; } [data-theme="light"] .rvp-log .l-token { color: #9a6410; } [data-theme="light"] .rvp-log .l-event { color: #6b3fa0; }
[data-theme="light"] .rvp-dock { background: linear-gradient(to top, rgba(232,214,178,.97) 72%, rgba(232,214,178,0)); }
[data-theme="light"] .ndp-fan .rvcard.lit { box-shadow: 0 0 0 3px #d99a00, 0 0 16px rgba(255,190,0,.5), 0 6px 16px rgba(90,60,20,.3); }
[data-theme="light"] .rvp-rb, [data-theme="light"] .rvp-stackbtn, [data-theme="light"] .rvp-brow, [data-theme="light"] .rvp-num { background: rgba(120,80,30,.06); border-color: rgba(90,60,20,.18); }
[data-theme="light"] .rvp-prwrap.placing { background: rgba(255,214,10,.14); }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
#rvp-sheets .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
#rvp-sheets .ndp-pick { max-height: 100%; overflow-y: auto; }
#rvp-sheets .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* turn timer ring sits left of the dice */
.rvp-turnbar.me:has(.tclock) { padding-right: 150px; }
.rvp-turnbar.me .tclock { position: absolute; right: 86px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.rvp-turnbar.me .tclock b { font-size: 22px; }

/* /shared/notstruggle.css */
/* Hex Island: Card Game: card faces (TV and phones) and the table. Tall parchment cards sized
   with --cw (padding, radius and shadow from --cw; cqw only inside). Dark rules first, then light. */
.sfcard, .sfcard * { box-sizing: border-box; }
.sfcard {
  width: var(--cw, 100px); aspect-ratio: 63 / 96; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .075); padding: calc(var(--cw, 100px) * .04);
  background: linear-gradient(160deg, #f6ecd2, #e2cfa4); user-select: none; -webkit-user-select: none;
  box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .09) rgba(0,0,0,.45), inset 0 0 0 calc(var(--cw, 100px) * .012) #8a6b3a;
  font-family: "Spectral", Georgia, "Times New Roman", serif; color: #2a1c08;
}
.sfcard .sf-inner { position: relative; width: 100%; height: 100%; border-radius: 4.5cqw; overflow: hidden; background: #efe2c2; box-shadow: inset 0 0 0 .7cqw rgba(59,42,22,.5); }
.sfcard svg.sf-full { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sf-ico { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .6px 1px rgba(0,0,0,.35)); }
.sf-coin { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .6px 1px rgba(0,0,0,.35)); }
.sf-tico { display: block; width: 1em; height: 1em; }

/* resource cards: full art, a corner badge to read them in a fan, the name on a ribbon */
.sf-res .sf-rbadge { position: absolute; left: 5cqw; top: 5cqw; width: 32cqw; height: 32cqw; border-radius: 7cqw; box-shadow: 0 0 0 1.4cqw rgba(246,236,210,.92), 0 1.4cqw 3cqw rgba(0,0,0,.4); }
.sf-res .sf-rbadge .sf-ico { filter: none; border-radius: 7cqw; }
.sf-res .sf-rname { position: absolute; left: 0; right: 0; bottom: 0; padding: 7cqw 0 4cqw; text-align: center; font: 400 17cqw/1 "IM Fell English SC", Georgia, serif; color: #2a1c08; letter-spacing: .02em; background: linear-gradient(180deg, rgba(246,236,210,0), rgba(246,236,210,.94) 42%, #efe0bb); }
.sf-res.r-logs .sf-inner { box-shadow: inset 0 0 0 1.4cqw #2f6a3b; }
.sf-res.r-clay .sf-inner { box-shadow: inset 0 0 0 1.4cqw #b5532e; }
.sf-res.r-fluff .sf-inner { box-shadow: inset 0 0 0 1.4cqw #7fae47; }
.sf-res.r-grain .sf-inner { box-shadow: inset 0 0 0 1.4cqw #d9ad35; }
.sf-res.r-rocks .sf-inner { box-shadow: inset 0 0 0 1.4cqw #6f7a89; }
.sf-res .sf-inner::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inherit; pointer-events: none; }

/* building cards: a coloured band, the art, parchment text, A/B side and points at the foot */
.sf-bld .sf-head { position: absolute; left: 0; right: 0; top: 0; height: 15%; background: var(--band); color: var(--bink); display: flex; align-items: center; justify-content: center; font: 400 13.5cqw/1 "IM Fell English SC", Georgia, serif; letter-spacing: .02em; white-space: nowrap; box-shadow: inset 0 -.9cqw 0 rgba(0,0,0,.22); z-index: 2; }
.sf-bld.k-upgrade .sf-head { font-size: 10.5cqw; }
.sf-bld svg.sf-art { position: absolute; left: 0; top: 15%; width: 100%; height: 45%; display: block; }
.sf-bld .sf-body { position: absolute; left: 0; right: 0; top: 60%; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 2.4cqw 4cqw 3.4cqw; text-align: center; background: linear-gradient(180deg, #f6ecd2, #e8d6ae); box-shadow: inset 0 .9cqw 0 rgba(59,42,22,.25); }
.sf-bld .sf-title { font: 400 12cqw/1.02 "IM Fell English SC", Georgia, serif; color: #1d1406; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-bld .sf-text { display: none; font: 500 7.4cqw/1.2 "Spectral", Georgia, serif; color: #3b2a16; margin-top: 1.4cqw; }
.sf-bld .sf-foot { position: relative; margin-top: auto; width: 100%; min-height: 19cqw; display: flex; align-items: center; justify-content: center; }
.sf-bld .sf-side { position: absolute; left: 0; bottom: .6cqw; width: 17cqw; height: 17cqw; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 11cqw/1 Georgia, serif; background: #fffaf0; color: #2a1c08; box-shadow: 0 0 0 .9cqw #3b2a16; }
.sf-bld .sf-side.s-B { background: #3b2a16; color: #f6ecd2; }
.sf-bld .sf-coins { display: flex; gap: 1.2cqw; }
.sf-bld .sf-coins .sf-coin { width: 17cqw; height: 17cqw; }
.sf-bld .sf-coins.n4 .sf-coin { width: 15cqw; height: 15cqw; }
.sf-bld .sf-perk { display: inline-flex; align-items: center; gap: 1.5cqw; padding: 1.5cqw 4cqw; border-radius: 99px; background: var(--band); color: var(--bink); font: 900 12cqw/1 "Inter", Arial, sans-serif; box-shadow: 0 .8cqw 2cqw rgba(0,0,0,.25); }
.sf-bld .sf-perk .sf-tico { width: 13cqw; height: 13cqw; }
.sf-evmark { display: inline-block; width: 9cqw; height: 9cqw; border-radius: 50%; margin-right: 1.6cqw; vertical-align: -1cqw; }
.sf-evmark.bandit { background: radial-gradient(circle at 50% 35%, #2a1d10 0 28%, transparent 30%), radial-gradient(circle at 50% 80%, #2a1d10 0 45%, transparent 47%), #c0392b; }
.sf-evmark.market { background: radial-gradient(circle at 35% 40%, #7fae47 0 18%, transparent 20%), radial-gradient(circle at 65% 40%, #e8b83a 0 18%, transparent 20%), #c0392b; }
@container (min-width: 126px) {
  .sf-bld svg.sf-art { height: 38%; }
  .sf-bld .sf-body { top: 53%; }
  .sf-bld .sf-text { display: block; font-size: 6.9cqw; }
  .sf-bld .sf-title { font-size: 10cqw; }
  .sf-bld .sf-foot { min-height: 16cqw; }
  .sf-bld .sf-side { width: 14cqw; height: 14cqw; font-size: 9cqw; }
  .sf-bld .sf-coins .sf-coin { width: 14cqw; height: 14cqw; }
  .sf-bld .sf-perk { font-size: 10cqw; }
}

/* back of the resource cards */
.sf-back .sf-inner { background: #5a2f17; box-shadow: inset 0 0 0 .7cqw #2a170b; }

/* the Weathervane: a wide card */
.sfcard.sf-vane { aspect-ratio: 96 / 66; }
.sf-vane .sf-vlabel { position: absolute; top: 4cqw; padding: 1.4cqw 3cqw; border-radius: 2cqw; font: 400 7.5cqw/1 "IM Fell English SC", Georgia, serif; color: #1d1406; box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.25); }
.sf-vane .sf-vlabel.l { left: 4cqw; background: #9fd08e; }
.sf-vane .sf-vlabel.r { right: 4cqw; background: #aebde8; }
.sf-vane .sf-vname { position: absolute; left: 50%; bottom: 3cqw; transform: translateX(-50%); padding: 1.2cqw 4cqw; border-radius: 99px; background: rgba(29,20,6,.82); color: #f6ecd2; font: 800 6.4cqw/1 "Inter", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.sfcard.dim { filter: saturate(.35) brightness(.82); }
.sf-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); font-family: "Inter", -apple-system, Arial, sans-serif; }
.sf-explain .sf-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.sf-explain p { margin: 5px 0 0; }

/* the table: cherry and lamplight in the dark, light oak by day */
.tbl-struggle {
  --tbl-edge: #1a0d06; --tbl-rim: #8a6b3a; --tbl-glow: rgba(255,200,130,.14);
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255,190,120,.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 296px, rgba(0,0,0,.38) 296px 299px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.024) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 27px),
    linear-gradient(180deg, #4f2a1a 0%, #3e2014 55%, #2d170d 100%);
}
[data-theme="light"] .tbl-struggle {
  --tbl-edge: #8a6a40; --tbl-rim: #f3e2bf; --tbl-glow: rgba(255,255,255,.22);
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255,246,228,.5), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 296px, rgba(120,80,30,.18) 296px 298px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px, rgba(120,80,30,.05) 9px 11px, transparent 11px 17px),
    repeating-linear-gradient(0deg, rgba(120,80,30,.05) 0 1px, transparent 1px 27px),
    linear-gradient(180deg, #e2c697 0%, #d6b37e 55%, #c9a36c 100%);
}
[data-theme="light"] .sfcard { box-shadow: 0 calc(var(--cw, 100px) * .025) calc(var(--cw, 100px) * .07) rgba(70,45,15,.35), inset 0 0 0 calc(var(--cw, 100px) * .012) #8a6b3a; }

/* /phone/games/notstruggle.css */
/* Hex Island: Card Game on the phone: parchment panels on the wooden table, the market, your
   cards in a sideways scroller, the hand fanned in the dock. Dark first, then light. */
body.g-notstruggle .h2, body.g-notstruggle .sfp-bar.me .ndp-tbtext > b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: .02em; }
.sfp { display: flex; flex-direction: column; gap: 9px; padding-bottom: 214px; min-width: 0; max-width: 100%; }
.sfp > * { min-width: 0; }
.sfp-bar { min-height: 64px; }
.sfp-bar.me .ndp-tbtext > b { font-style: normal; font-size: 32px; }
.sfp-bar.me.pop { animation: sfp-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; }
.sfp-bar .ndp-tbtext { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sfp-bar.idle { background: linear-gradient(180deg, rgba(58,43,24,.92), rgba(38,28,15,.94)); border: 1.5px solid #8a6b3a; color: rgba(243,227,191,.78); }
.sfp-bar.idle b { color: #f3e3bf; }
.sfp-bar.idle small { color: rgba(243,227,191,.6); }
@keyframes sfp-pop { from { transform: scale(.85); opacity: 0; } }
body.sfp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: sfp-frame 1.6s ease-in-out infinite; }
@keyframes sfp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }

/* rivals */
.sfp-rivals { display: grid; grid-template-columns: repeat(var(--k, 1), minmax(0, 1fr)); gap: 6px; }
.sfp-rivals.k1 { --k: 1; } .sfp-rivals.k2 { --k: 2; } .sfp-rivals.k3 { --k: 3; }
.sfp-rival { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 6px 8px; border-radius: 14px; background: rgba(0,0,0,.28); color: #f3e3bf; border: 2px solid transparent; font-size: 13px; min-width: 0; }
.sfp-rival.turn { border-color: #ffb800; box-shadow: 0 0 14px rgba(255,184,0,.35); }
.sfp-rival .avatar { width: 26px; height: 26px; font-size: 13px; }
.sfp-rival .nm { font-weight: 800; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfp-rl2 { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.sfp-rivals.k1 .sfp-rl2 { flex-basis: auto; }
.sfp-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.sfp-chip.vp { flex: none; }
.sfp-chip .sf-coin { width: 15px; height: 15px; }
.sfp-chip i { display: inline-block; width: 9px; height: 13px; border-radius: 2px; }
.sfp-minib { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: #5a2f17; box-shadow: inset 0 0 0 1.5px #d9b56a; }
.sfp-chip.k-road i { background: #5f9a55; } .sfp-chip.k-sheriff i { background: #5b74b3; }
.sfp-rivals.k3 .sfp-chip { padding: 2px 4px; gap: 2px; font-size: 12px; }

/* the market */
.sfp-market { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; background: rgba(0,0,0,.24); }
.sfp-mlabel { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 10px "Inter", Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,227,191,.6); }
.sfp-mcards { display: flex; gap: 5px; flex: 1; justify-content: space-between; min-width: 0; }
.sfp-mc .sfcard { --cw: min(13vw, 54px); }
.sfp-mc.swapped .sfcard { animation: sfp-swap .6s cubic-bezier(.2,1.3,.4,1) both; box-shadow: 0 0 0 3px #ffb800; }
@keyframes sfp-swap { from { transform: translateY(-20px) rotateY(90deg); } }
.sfp-mempty { display: block; width: min(13vw, 54px); aspect-ratio: 63 / 96; border-radius: 5px; border: 2px dashed rgba(243,227,191,.3); }
.sfp-pile { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.sfp-pile .sfcard { --cw: min(10vw, 40px); }
.sfp-pile b { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #1d1406; color: #f3e3bf; font: 900 12px/22px "Inter", Arial, sans-serif; text-align: center; box-shadow: 0 0 0 1.5px #c9a54a; }

/* your cards on the table */
.sfp-mine { display: flex; align-items: center; gap: 8px; }
.sfp-myvp { flex: none; display: flex; align-items: center; gap: 5px; padding: 4px 12px 4px 6px; border-radius: 999px; background: linear-gradient(180deg, rgba(58,43,24,.92), rgba(38,28,15,.94)); border: 1.5px solid #8a6b3a; color: #f0c860; line-height: 1; }
.sfp-myvp .sf-coin { width: 28px; height: 28px; }
.sfp-myvp b { font: 700 32px/1 "Spectral", Georgia, serif; }
.sfp-myvp small { font: 700 10px "Inter", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,227,191,.7); align-self: flex-end; margin-bottom: 4px; }
.sfp-perks { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: rgba(243,227,191,.75); flex: 1; min-width: 0; }
.sfp-perks span { display: inline-flex; align-items: center; gap: 4px; }
.sfp-perks .sf-tico { width: 15px; height: 15px; }
.sfp-perks b { color: #f3e3bf; font-size: 15px; }
.sfp-vane { flex: none; border: none; background: none; padding: 0; cursor: pointer; }
.sfp-vane .sfcard { --cw: 92px; }
.sfp-tablewrap { margin: 0 -16px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sfp-tablewrap::-webkit-scrollbar { display: none; }
.sfp-table { --cw: 62px; --ch: calc(var(--cw) / .656); display: flex; align-items: flex-end; gap: 7px; padding: 6px 16px 4px; width: max-content; min-width: 100%; justify-content: center; }
.sfp-tc { position: relative; width: var(--cw); height: calc(var(--ch) * 1.16); cursor: pointer; }
.sfp-tc > .sfcard { position: absolute; left: 0; bottom: 0; }
.sfp-tc.up > .sfcard:first-child { top: 0; bottom: auto; }
.sfp-col { position: relative; width: var(--cw); height: calc(var(--ch) + (var(--n) - 1) * var(--ch) * .18); margin-left: 6px; }
.sfp-cc { position: absolute; left: 0; top: calc(var(--k) * var(--ch) * .18); cursor: pointer; }
.sfp-col.none { height: var(--ch); border-radius: 6px; border: 2px dashed rgba(243,227,191,.3); display: flex; align-items: center; justify-content: center; text-align: center; }
.sfp-none { font: 700 10px "Inter", Arial, sans-serif; color: rgba(243,227,191,.5); padding: 0 4px; }
.sfcard.sf-land { animation: sfp-land .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes sfp-land { from { transform: translateY(-30px) scale(1.3) rotate(-8deg); opacity: 0; } }

/* actions */
.sfp-acts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.sfp-acts .btn { min-height: 56px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.sfp-acts .btn em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #2a1c08; color: #f3e3bf; font: 900 13px/22px "Inter", Arial, sans-serif; }
.sfp-acts .btn:disabled em { display: none; }
.sfp-acts .btn small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
.sfp-acts .btn.primary { flex-direction: column; gap: 0; }
.sfp-acts .sf-tico { width: 18px; height: 18px; }
.btn.sfp-gold { background: linear-gradient(180deg, #f3e3bf, #d9c08a); color: #2a1c08; border: 1.5px solid #8a6b3a; }
.btn.sfp-guild { min-height: 48px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, #ffe08a, #e8b83a); color: #2a1c08; }
.btn.sfp-guild .sf-coin { width: 22px; height: 22px; }
.sfp-autoend { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: #ffd60a; font-size: 15px; }
.sfp-autoend i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: sfp-spin .8s linear infinite; }
@keyframes sfp-spin { to { transform: rotate(360deg); } }
.sfp-log { font-size: 13px; line-height: 1.35; color: rgba(243,227,191,.72); padding: 0 2px; }
.sfp-log div { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sfp-log .l-turn { color: #f3e3bf; font-weight: 700; } .sfp-log .l-steal, .sfp-log .l-bandit { color: #ff9a8a; } .sfp-log .l-trade { color: #8ed0f5; } .sfp-log .l-draw { color: #b5e36b; } .sfp-log .l-event, .sfp-log .l-vane { color: #c9b6ff; }
.sfp.waiting .ndp-fan { opacity: .66; filter: saturate(.75); transition: opacity .3s; }

/* the hand */
.sfp-dock { background: linear-gradient(to top, rgba(28,18,8,.96) 72%, rgba(28,18,8,0)); }
.sfp-dock .ndp-fan { height: calc(var(--cw) / .656 + 34px); }
.ndp-fan .sfcard { position: absolute; top: 20px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .sfcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .sfcard.lit { box-shadow: 0 0 0 3px #ffd60a, 0 0 18px rgba(255,214,10,.55), 0 6px 16px rgba(0,0,0,.4); }
.ndp-fan .sfcard.sfp-in { animation: sfp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes sfp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.ndp-peekcard .sfcard { --cw: min(40vw, 150px); }
.sfp-big { --cw: min(44vw, 180px); }
.sfp-big.wide { --cw: min(70vw, 280px); }

/* sheets */
.sfp-sheet .h2 { font-size: 26px; display: flex; align-items: center; gap: 8px; }
.sfp-sheet .p.small { font-size: 14px; }
/* a tall sheet: the scrolling part, then a solid footer with the buttons (nothing pinned on top of anything) */
.sfp-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 0; gap: 0; max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
.sfp-sx { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 10px; }
.sfp-sacts { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; background: #121a26; border-top: 1px solid rgba(255,255,255,.14); }
[data-theme="light"] .sfp-sacts { background: #fff; border-top-color: rgba(0,0,0,.1); }
.sfp-sacts .btn.ghost { min-height: 48px; }
.sfp-sheet .btn.primary:disabled { opacity: 1; background: #8e8e93; color: #f2f2f7; }
#sfp-sheets .ndp-pick > .sfp-sheet, .ndp-pick > .sfp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 38px - min(44vw, 180px) * 1.5); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 38px - min(44vw, 180px) * 1.5); }
.sfp-mc[data-look] { cursor: pointer; }
.sfp-n { font: 700 1em/1 "Spectral", Georgia, serif; }
.sfp-shead { display: flex; align-items: center; gap: 12px; }
.sfp-sicon { flex: none; --cw: 62px; }
.sfp-sicon.wide { --cw: 110px; }
.sfp-sub { font: 800 12px "Inter", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--label-2); margin-top: 4px; }
.sfp-cards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 40vh; overflow-y: auto; padding: 6px 2px; }
.sfp-cards.row { flex: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: visible; max-height: none; padding: 8px 4px; }
.sfp-cpick { position: relative; flex: none; border: none; background: none; padding: 3px; border-radius: 10px; cursor: pointer; --cw: 56px; transition: transform .12s; }
.sfp-cpick.on { transform: translateY(-6px); box-shadow: 0 0 0 3px #a3e635, 0 0 16px rgba(163,230,53,.6); }
.sfp-cpick em { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); background: #38bdf8; color: #0a1620; font: 900 9px "Inter", Arial, sans-serif; font-style: normal; padding: 2px 5px; border-radius: 6px; white-space: nowrap; }
.sfp-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(120,120,128,.2); }
.sfp-tabs button { border: none; background: none; color: var(--text); font: 700 14px "Inter", Arial, sans-serif; padding: 9px 4px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.sfp-tabs button.on { background: var(--bg-3, #3a3a3c); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sfp-roads { display: inline-flex; gap: 2px; }
.sfp-roads .sf-tico { width: 20px; height: 20px; color: #5f9a55; }
.sfp-rrow { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.06); }
.sfp-rrow .btn { width: auto; min-height: 46px; padding: 8px 12px; font-size: 15px; font-weight: 800; }
.sfp-rinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sfp-rinfo b { font-size: 16px; } .sfp-rinfo small { font-size: 12px; color: var(--label-2); }
.sfp-brow { display: flex; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.06); align-items: flex-start; }
.sfp-bcard { flex: none; --cw: 56px; }
.sfp-binfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sfp-binfo b { font-size: 16px; } .sfp-binfo small { font-size: 12px; color: var(--label-2); line-height: 1.3; }
.sfp-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sfp-plan { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 10px; border-radius: 12px; border: 2px solid #ffb800; background: rgba(255,184,0,.14); color: var(--text); cursor: pointer; font: 700 12px "Inter", Arial, sans-serif; }
.sfp-plan.main { background: linear-gradient(120deg, #ffd60a, #ffb000); border-color: #e09a00; color: #1b1b1b; box-shadow: 0 4px 14px rgba(255,170,0,.35); }
.sfp-plabel { font: 900 16px "Inter", Arial, sans-serif; }
.sfp-more { border: none; background: none; color: var(--blue, #0a84ff); font: 700 13px "Inter", Arial, sans-serif; padding: 8px 4px; cursor: pointer; min-height: 40px; }
.sfp-plan:active { transform: scale(.97); }
.sfp-picons { display: flex; gap: 3px; }
.sfp-picons .sf-ico { width: 24px; height: 24px; }
.sfp-plan small { font-size: 10px; color: inherit; opacity: .75; }
.sfp-prices { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--label-2); padding: 4px 2px; }
.sfp-prices span { display: inline-flex; align-items: center; gap: 2px; }
.sfp-prices b { margin-right: 3px; }
.sfp-prices .sf-ico { width: 16px; height: 16px; }

/* full-screen moments */
.sfp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 50%, transparent), rgba(10,6,2,.72) 75%); animation: sfp-moment 2.7s ease both; }
.sfp-moment.k-steal, .sfp-moment.k-bandit, .sfp-moment.hit { background: radial-gradient(circle, rgba(198,40,40,.6), rgba(20,4,4,.8) 75%); }
@keyframes sfp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.sfp-mcard { animation: sfp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.sfp-mcard .sfcard { box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 3px #8a6b3a; transform: rotate(-3deg); }
@keyframes sfp-slam { from { transform: scale(2.4); opacity: 0; } }
.sfp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.74); color: #fff; font: 800 18px/1.25 "Inter", Arial, sans-serif; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 90vw; }
.sfp-moment .avatar { width: 40px; height: 40px; font-size: 18px; flex: none; }
.sfp-final .sfp-fcards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }

/* ---- light theme: daylight parchment on light oak ---- */
[data-theme="light"] .sfp-bar.idle, [data-theme="light"] .sfp-myvp { background: linear-gradient(180deg, rgba(250,242,222,.97), rgba(238,224,190,.97)); border-color: #a9844a; color: #2a1c08; }
[data-theme="light"] .sfp-bar.idle b { color: #2a1c08; }
[data-theme="light"] .sfp-bar.idle, [data-theme="light"] .sfp-bar.idle small, [data-theme="light"] .sfp-myvp small, [data-theme="light"] .sfp-perks { color: rgba(61,42,18,.75); }
[data-theme="light"] .sfp-myvp b { color: #9a6410; }
[data-theme="light"] .sfp-perks b { color: #2a1c08; }
[data-theme="light"] .sfp-rival { background: rgba(255,250,235,.82); color: #2a1c08; box-shadow: 0 4px 14px rgba(90,60,20,.12); }
[data-theme="light"] .sfp-chip { background: rgba(90,60,20,.1); }
[data-theme="light"] .sfp-market { background: rgba(255,250,235,.45); box-shadow: inset 0 0 0 1.5px rgba(90,60,20,.14); }
[data-theme="light"] .sfp-mlabel { color: rgba(61,42,18,.6); }
[data-theme="light"] .sfp-mempty, [data-theme="light"] .sfp-col.none { border-color: rgba(90,60,20,.3); }
[data-theme="light"] .sfp-none { color: rgba(61,42,18,.55); }
[data-theme="light"] .sfp-log { color: rgba(61,42,18,.75); }
[data-theme="light"] .sfp-log .l-turn { color: #2a1c08; } [data-theme="light"] .sfp-log .l-steal, [data-theme="light"] .sfp-log .l-bandit { color: #c2410c; } [data-theme="light"] .sfp-log .l-trade { color: #0369a1; } [data-theme="light"] .sfp-log .l-draw { color: #3f7d0e; } [data-theme="light"] .sfp-log .l-event, [data-theme="light"] .sfp-log .l-vane { color: #6b3fa0; }
[data-theme="light"] .sfp-dock { background: linear-gradient(to top, rgba(232,214,178,.97) 72%, rgba(232,214,178,0)); }
[data-theme="light"] .ndp-fan .sfcard.lit { box-shadow: 0 0 0 3px #d99a00, 0 0 16px rgba(255,190,0,.5), 0 6px 16px rgba(90,60,20,.3); }
[data-theme="light"] .sfp-rrow, [data-theme="light"] .sfp-brow { background: rgba(120,80,30,.07); }
[data-theme="light"] .sfp-plan:not(.main) { background: rgba(255,184,0,.16); border-color: #d99a00; }
[data-theme="light"] .sfp-tabs button.on { background: #fff; }
[data-theme="light"] .sfp-autoend { color: #b57d00; }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
#sfp-sheets .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
#sfp-sheets .ndp-pick { max-height: 100%; overflow-y: auto; }
#sfp-sheets .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* /shared/notkittens.css */
/* Don't Draw the Bomb: card faces (TV and phones) and the table surface. Size a card
   with --cw. The card is its own container: its own box is sized from --cw, its insides
   from cqw. Cards look the same in light and dark, like real cards. */
.kcard, .kcard * { box-sizing: border-box; }
.kcard {
  --kc: #888; --kt: #eee;
  width: var(--cw, 100px); aspect-ratio: 63 / 88; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .075); background: #fffaf0; padding: calc(var(--cw, 100px) * .045);
  box-shadow: 0 0 0 calc(var(--cw, 100px) * .014) #1b1b1b, 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .08) rgba(0,0,0,.32);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1b1b1b; user-select: none; -webkit-user-select: none;
}
.kcard .kc-in { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 2.6cqw; }
.kcard .kc-head { display: flex; align-items: center; gap: 2cqw; background: var(--kc); border: 1.5cqw solid #1b1b1b; border-radius: 4.5cqw; padding: 1.4cqw 2.6cqw 1.4cqw 2cqw; min-height: 18cqw; flex: none; }
.kcard .kc-ic { width: 11cqw; height: 11cqw; flex: none; display: block; }
.kcard .kc-ic svg { width: 100%; height: 100%; display: block; }
.kcard .kc-name {
  font-weight: 800; font-size: 10.4cqw; line-height: .95; text-transform: uppercase; letter-spacing: -.01em; color: #fff; min-width: 0;
  text-shadow: .7cqw .7cqw 0 #1b1b1b, -.7cqw .7cqw 0 #1b1b1b, .7cqw -.7cqw 0 #1b1b1b, -.7cqw -.7cqw 0 #1b1b1b, 0 1cqw 0 #1b1b1b, 1cqw 0 0 #1b1b1b, -1cqw 0 0 #1b1b1b, 0 -1cqw 0 #1b1b1b, .8cqw 1.6cqw 0 #1b1b1b;
}
.kcard .kc-head.long .kc-name { font-size: 8.4cqw; }
.kcard .kc-head.xlong .kc-name { font-size: 7cqw; line-height: .9; }
.kcard .kc-art {
  position: relative; flex: none; height: 82cqw; border: 1.5cqw solid #1b1b1b; border-radius: 5.5cqw; overflow: hidden;
  background: radial-gradient(circle at 50% 58%, rgba(255,255,255,.75), transparent 62%), repeating-conic-gradient(from 4deg at 50% 58%, var(--kt) 0 10deg, color-mix(in srgb, var(--kt) 55%, #fff) 10deg 20deg);
}
.kcard .kc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kcard .kc-text { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 6.5cqw; line-height: 1.16; font-weight: 700; padding: 0 1.5cqw; overflow: hidden; }
.kcard .kc-text.flavour { font-style: italic; font-weight: 600; color: #4a4038; }
/* small cards: the art carries it */
@container (max-width: 122px) {
  .kcard .kc-text { display: none; }
  .kcard .kc-art { flex: 1; height: auto; }
  .kcard .kc-head { min-height: 20cqw; }
  .kcard .kc-head.long .kc-name, .kcard .kc-head.xlong .kc-name { font-size: 8.6cqw; }
}
@container (max-width: 74px) {
  .kcard .kc-ic { display: none; }
  .kcard .kc-head { padding: 1.4cqw; justify-content: center; }
  .kcard .kc-name { font-size: 9.4cqw !important; text-align: center; }
}
/* the Bomb is a black card on fire */
.kcard.t-kitten { background: #201c22; }
.kcard.t-kitten .kc-head { background: #ff5a1f; }
.kcard.t-kitten .kc-art { background: radial-gradient(circle at 50% 60%, #ffe27a 0 18%, #ff9a2e 38%, #d9361c 62%, #5a1712 100%); }
.kcard.t-kitten .kc-text { color: #ffd23f; }
/* the Rainbow cat gets a rainbow band */
.kcard.t-rainbow .kc-head { background: linear-gradient(90deg, #ff4d4d, #ff9f1c 20%, #ffd23f 40%, #5bd16a 60%, #3fa7ff 80%, #8c6cff); }
.kcard.dim { filter: saturate(.35) brightness(.86); }

/* the back: a fire burst and a bomb-shaped cat */
.kcard.k-back { background: #2a1a1c; padding: calc(var(--cw, 100px) * .04); }
.kcard .kb-in { position: relative; width: 100%; height: 100%; border-radius: 5cqw; overflow: hidden; box-shadow: inset 0 0 0 1.4cqw #1b1b1b; }
.kcard .kb-in > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kcard .kb-logo { position: absolute; left: 0; right: 0; bottom: 6cqw; display: flex; flex-direction: column; align-items: center; line-height: .9; transform: rotate(-4deg); }
.kcard .kb-logo b { font-size: 13.4cqw; font-weight: 800; color: #fff; letter-spacing: -.01em; text-shadow: .8cqw .8cqw 0 #1b1b1b, -.8cqw .8cqw 0 #1b1b1b, .8cqw -.8cqw 0 #1b1b1b, -.8cqw -.8cqw 0 #1b1b1b, 0 1.8cqw 0 #c4161c; }
@container (max-width: 74px) { .kcard .kb-logo { display: none; } }

/* plain-English help under a big card */
.kc-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.kc-explain .kc-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.kc-explain p { margin: 5px 0 0; }

/* The table: a comic-book halftone in ember tones. Dark: a smoky den with a glow under
   the pile. Light (default): warm paper with orange dots. */
.tbl-kittens {
  --tbl-edge: #160d0b; --tbl-rim: #7a2e1a; --tbl-glow: rgba(255,120,40,.18);
  background:
    radial-gradient(ellipse 55% 48% at 50% 50%, rgba(255,110,30,.20), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 8%, rgba(255,60,40,.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 92%, rgba(255,180,40,.08), transparent 70%),
    radial-gradient(circle, rgba(255,190,140,.06) 1.3px, transparent 1.8px) 0 0 / 15px 15px,
    linear-gradient(180deg, #2a1c1a 0%, #211615 60%, #180f0e 100%);
}
[data-theme="light"] .tbl-kittens {
  --tbl-edge: #fffaf2; --tbl-rim: #f0b48b; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 55% 48% at 50% 50%, rgba(255,150,60,.20), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 8%, rgba(255,90,60,.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 92%, rgba(255,190,60,.12), transparent 70%),
    radial-gradient(circle, rgba(214,90,40,.11) 1.3px, transparent 1.8px) 0 0 / 15px 15px,
    linear-gradient(180deg, #fff4e4 0%, #ffead3 100%);
}

/* /phone/games/notkittens.css */
/* Don't Draw the Bomb on the phone. Dark rules first, then the light theme (the
   default) repaints what they hard-code. The fan, peek and sheets come from the core
   (.ndp-*); everything game-specific is .ekp-*. */
.ekp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 330px; }

/* whose turn */
.ekp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.ekp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffa400); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,170,0,.45); animation: ekp-throb 1.6s ease-in-out .4s infinite; }
.ekp-turnbar.me.fresh { animation: ekp-pop .35s cubic-bezier(.2,1.4,.4,1) both, ekp-throb 1.6s ease-in-out .4s infinite; }
.ekp-turnbar.me b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.ekp-turnbar.me span { font-size: 15px; font-weight: 700; }
.ekp-turnbar.me.danger { background: linear-gradient(120deg, #ff5a1f, #e23b3b); color: #fff; box-shadow: 0 10px 30px rgba(226,59,59,.5); }
.ekp-turnbar.dead { flex-direction: column; align-items: flex-start; gap: 2px; background: #1f1d24; color: #ffd23f; }
.ekp-turnbar.dead b { font-size: 22px; font-weight: 900; }
.ekp-turnbar.dead span { color: rgba(255,255,255,.7); font-size: 14px; }
.ekp-owe { display: inline-flex; align-items: center; gap: 8px; font-size: 17px !important; font-weight: 900 !important; color: #8a1c00; }
.ekp-pips { display: inline-flex; gap: 4px; }
.ekp-pips i { width: 14px; height: 14px; border-radius: 50%; background: #1f1d24; box-shadow: 0 0 0 2px #fff; display: inline-block; }
.ekp-turnbar.idle { background: rgba(0,0,0,.28); color: var(--label-2); }
.ekp-turnbar.idle b { color: var(--text); }
.ekp-ochip { margin-left: auto; font-size: 14px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: #ff5a1f; color: #fff; white-space: nowrap; }
@keyframes ekp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes ekp-throb { 50% { box-shadow: 0 10px 40px rgba(255,170,0,.75); transform: scale(1.015); } }
body.ekp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: ekp-frame 1.6s ease-in-out infinite; }
@keyframes ekp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
body.ekp-nopeable:not(.ekp-myturn)::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 4px #e23b3b, inset 0 0 50px rgba(226,59,59,.4); animation: ekp-frame-r .8s ease-in-out infinite; }
@keyframes ekp-frame-r { 50% { box-shadow: inset 0 0 0 6px #e23b3b, inset 0 0 70px rgba(226,59,59,.55); } }
.ekp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.ekp.waiting .ndp-fan .kcard.peeking, .ekp.waiting .ndp-fan .kcard.lit { opacity: 1; }
.ekp.gone .ekp-table, .ekp.gone .ekp-opps { opacity: .8; }

/* the other players */
.ekp-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.ekp-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.ekp-opp.turn { border-color: #ffb800; box-shadow: 0 0 12px rgba(255,184,0,.5); }
.ekp-opp.dead { opacity: .5; text-decoration: line-through; }
.ekp-opp .ct { background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; text-decoration: none; }

/* the table strip */
.ekp-table { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px; }
.ekp-pile { position: relative; flex: none; }
.ekp-pile .kcard { box-shadow: 0 0 0 1px #1b1b1b, 3px 3px 0 #1b1b1b, 6px 6px 0 #3a2a2a, 0 8px 18px rgba(0,0,0,.4); }
.ekp-pile.h3 .kcard { animation: ekp-tremble .4s ease-in-out infinite; }
.ekp-pile.h4 .kcard { animation: ekp-tremble .18s ease-in-out infinite; }
@keyframes ekp-tremble { 25% { rotate: -2deg; } 75% { rotate: 2deg; } }
.ekp-pcount { position: absolute; right: -10px; top: -10px; z-index: 3; min-width: 32px; padding: 2px 7px; border-radius: 999px; background: #fffaf0; color: #1b1b1b; border: 3px solid #1b1b1b; font-weight: 900; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.ekp-disc { flex: none; position: relative; }
.ekp-disc .kcard.ekp-land { animation: ekp-land .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes ekp-land { from { translate: 0 -80px; scale: 1.35; rotate: -12deg; opacity: 0; } }
.ekp-disc .kcard.ekp-thud { animation: ekp-thud .25s ease-out both; }
@keyframes ekp-thud { 40% { scale: 1.08; } }
.ekp-empty { width: 60px; aspect-ratio: 63 / 88; border-radius: 8px; border: 3px dashed rgba(255,255,255,.2); }
.ekp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ekp-odds { font-size: 14px; font-weight: 700; color: var(--label-2); }
.ekp-odds b { font-size: 26px; font-weight: 900; color: #30d158; margin-right: 2px; }
.ekp-odds.h2 b { color: #ffd60a; } .ekp-odds.h3 b { color: #ff9f0a; } .ekp-odds.h4 b { color: #ff453a; }
.ekp-small { font-size: 14px; color: var(--label-2); }
.ekp-last { font-size: 14px; color: var(--label-2); line-height: 1.3; }

/* what you saw with a Peek */
.ekp-future { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px; border: 2px solid #e64ca0; background: #2a1420; border-radius: 16px; padding: 6px 12px; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ekp-future > span { font-size: 14px; font-weight: 900; letter-spacing: .08em; color: #ff8ac6; flex: 1; line-height: 1.2; }
.ekp-future > span small { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--label-2); }
.ekp-fcards { display: flex; gap: 6px; }
.ekp-fc { position: relative; }
.ekp-fc i { position: absolute; left: -5px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #e64ca0; color: #fff; font-style: normal; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #1b1b1b; z-index: 2; }
.ekp-fbig { display: flex; gap: 8px; justify-content: center; }
.ekp-fslot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ekp-fslot b { font-size: 14px; letter-spacing: .14em; font-weight: 900; color: var(--label-2); }
.ekp-fslot:first-child b { color: #e64ca0; }

/* the Block window */
.ekp-nopebar { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 10px 10px 14px; background: rgba(226,59,59,.16); border: 2px solid #e23b3b; }
.ekp-nopebar.fresh { animation: ekp-pop .3s cubic-bezier(.2,1.4,.4,1) both; }
.ekp-nopebar.canceled { background: rgba(48,209,88,.14); border-color: #30d158; }
.ekp-ntext { flex: 1; min-width: 0; }
.ekp-ntext b { display: block; font-size: 15px; line-height: 1.25; }
.ekp-ntext span { display: block; font-size: 14px; color: var(--label-2); margin-top: 2px; }
.ekp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ekp-ring circle { fill: none; stroke-width: 7; }
.ekp-ring .bg { stroke: rgba(255,255,255,.18); }
.ekp-ring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; }
.ekp-nopebtn { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; border: 4px solid #1b1b1b; background: #e23b3b; color: #fff; box-shadow: 4px 5px 0 #1b1b1b; cursor: pointer; animation: ekp-nbtn .7s ease-in-out infinite alternate; }
.ekp-nopebtn b { position: relative; font-size: 22px; font-weight: 900; letter-spacing: .02em; text-shadow: 2px 2px 0 #1b1b1b; }
.ekp-nopebtn.back { background: #1f9e4a; }
.ekp-acts .ekp-nopebtn { width: 100%; height: auto; min-height: 70px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 6px 14px 18px; animation: none; box-shadow: 0 5px 0 #1b1b1b; }
.ekp-acts .ekp-nopebtn b { font-size: 28px; line-height: 1.05; }
.ekp-acts .ekp-nopebtn small { font-size: 14px; font-weight: 800; opacity: .95; }
.ekp-nbar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 7px; border-radius: 999px; background: rgba(0,0,0,.28); overflow: hidden; }
.ekp-nbar u { display: block; width: 100%; height: 100%; background: #fff; border-radius: 999px; }
.ekp-nopebtn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 #1b1b1b; }
@keyframes ekp-nbtn { to { scale: 1.06; } }
.ekp-nring { position: relative; flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.ekp-nring .fg { stroke: #e23b3b; }
.ekp-nring b { position: relative; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* the dock and the hand */
body.g-notkittens .ndp-dock { background: rgb(26,16,14); box-shadow: 0 -8px 14px rgba(0,0,0,.3); }
.ekp-acts { display: flex; gap: 8px; margin-bottom: 6px; }
.btn.ekp-draw { min-height: 58px; font-size: 20px; font-weight: 900; letter-spacing: .02em; background: #1f1d24; color: #fff; border: 3px solid #ffb800; box-shadow: 0 0 18px rgba(255,184,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 6px 12px; }
.btn.ekp-draw small { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #ffd23f; text-transform: uppercase; }
.ekp-dock .ndp-fan { height: calc(var(--cw) * 88 / 63 + 34px + var(--sag, 0px)); }
.ndp-fan .kcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s, opacity .2s; cursor: pointer; }
.ndp-fan .kcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; opacity: 1; }
.ndp-fan .kcard.lit { box-shadow: 0 0 0 calc(var(--cw) * .014) #1b1b1b, 0 0 0 4px #ffd23f, 0 0 18px rgba(255,210,63,.6), 0 6px 16px rgba(0,0,0,.35); }
.ndp-fan .kcard.dim { filter: saturate(.35) brightness(.82); }
.ndp-fan .kcard.ekp-in { animation: ekp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes ekp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.ekp-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }
.ekp-ghost .kcard { box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.ekp-big { --cw: min(46vw, 196px); }
/* what each fanned card is, in the strip you can see: its name, and how many you hold when it can pair up */
.ndp-fan .kcard .ekp-idx { position: absolute; left: 0; top: 0; bottom: 0; width: 18px; border-radius: inherit; border-top-right-radius: 0; border-bottom-right-radius: 0; background: #fffaf0; border-right: 3px solid var(--kc); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 0; overflow: hidden; z-index: 3; pointer-events: none; }
.ekp-idx b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; line-height: 1; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; color: #1b1b1b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; flex: 1 1 auto; min-height: 0; }
.ekp-idx i { flex: none; font-style: normal; font-size: 12px; font-weight: 900; line-height: 1; color: #fff; background: #1b1b1b; border-radius: 999px; padding: 2px 3px; margin-bottom: 1px; }

/* sheets */
.ndp-ov.ekp-still, .ndp-ov.ekp-still .ndp-bigcard { animation: none; }
.ekp-step { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: #ff7b1c; }
.ekp-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 4px 0; }
.ekp-grid.names { gap: 8px; }
.ekp-gcard { position: relative; cursor: pointer; transition: transform .15s; border-radius: 10px; }
.ekp-gcard.picked { transform: translateY(-8px); }
.ekp-gcard.picked .kcard { box-shadow: 0 0 0 2px #1b1b1b, 0 0 0 6px #ffd23f, 0 10px 24px rgba(0,0,0,.5); }
.ndp-sheet.pin .ekp-grid { padding: 14px 8px 8px; }
.ekp-x { position: absolute; right: -6px; top: -6px; background: #1b1b1b; color: #fff; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 2px 7px; }
.ekp-combo-row { display: flex; justify-content: center; gap: 0; padding: 4px 0 2px; }
.ekp-combo-row .kcard + .kcard { margin-left: calc(var(--cw) * -0.3); }
.ekp-combo-row .kcard:nth-child(odd) { transform: rotate(-4deg); }
.ekp-combo-row .kcard:nth-child(even) { transform: rotate(4deg) translateY(4px); }
.btn.ekp-combo { background: rgba(31,158,137,.22); box-shadow: inset 0 0 0 2px #1f9e89; }
.btn.ekp-nopeplay { background: #e23b3b; color: #fff; font-weight: 900; font-size: 20px; }
.btn.ekp-defuse { background: #7cc142; color: #1b1b1b; font-weight: 900; font-size: 24px; min-height: 66px; border: 3px solid #1b1b1b; box-shadow: 4px 5px 0 #1b1b1b; animation: ekp-nbtn .6s ease-in-out infinite alternate; }
.ndp-ov.ekp-redov { background: radial-gradient(circle at 50% 35%, rgba(255,90,31,.55), rgba(40,6,4,.85) 70%); }
.ekp-shake .kcard { animation: ekp-kshake .09s linear infinite alternate; }
@keyframes ekp-kshake { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
.ekp-bury { gap: 12px; }
.ekp-pilebar { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: .12em; color: var(--label-2); padding: 18px 0 6px; }
.ekp-track { position: relative; flex: 1; height: 26px; margin: 0 18px; border-radius: 6px; background: repeating-linear-gradient(90deg, #2a1a1c 0 5px, #4a2e2a 5px 7px); box-shadow: inset 0 0 0 2px #1b1b1b; }
.ekp-kmark { position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); transition: left .12s ease; }
.ekp-steprow { display: flex; align-items: center; gap: 6px; }
.btn.ekp-stepbtn { flex: none; width: 48px; min-height: 48px !important; padding: 0; font-size: 20px; }
.ekp-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; width: 100%; height: 44px; background: transparent; margin: 0; }
.ekp-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ff5a1f, #ffd23f 40%, #7cc142); }
.ekp-range::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ff5a1f, #ffd23f 40%, #7cc142); }
.ekp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; margin-top: -15px; border-radius: 50%; background: #1f1d24; border: 4px solid #ffb800; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.ekp-range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #1f1d24; border: 4px solid #ffb800; }
.ekp-buryl { text-align: center; line-height: 1.35; }
.ekp-buryl b { display: block; font-size: 18px; }
.ekp-buryl span { display: block; font-size: 14px; color: var(--label-2); margin-top: 2px; }
.ekp-buryl i { font-style: normal; font-weight: 800; color: var(--text); }
.ekp-quick { display: flex; gap: 8px; }
.ekp-quick .btn { min-height: 46px; font-size: 15px; }
.ekp-end .ekp-endcard { transform: rotate(-5deg); }

/* moments: every phone feels the big ones */
.ekp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 50%, transparent), rgba(0,0,0,.6) 75%); animation: ekp-moment 2.3s ease both; }
@keyframes ekp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
/* the "where does the Bomb go" sheet sits above the DEFUSED! splash, so it can be read and used at once */
.ndp-ov.ekp-buryov { z-index: 95; }
.ekp-moment .big { font-size: 88px; font-weight: 900; font-style: italic; line-height: .9; color: #ffd23f; letter-spacing: -.03em; text-align: center; padding: 0 12px; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 9px 9px 0 #c4161c; transform: rotate(-7deg); animation: ekp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.ekp-moment.k-boom { background: radial-gradient(circle, rgba(255,150,40,.75), rgba(120,20,8,.85) 70%); }
.ekp-moment.k-boom .big { font-size: 96px; }
.ekp-moment.k-defuse { background: radial-gradient(circle, rgba(124,193,66,.65), rgba(10,40,10,.75) 75%); }
.ekp-moment.k-defuse .big { font-size: 64px; color: #a3e635; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 8px 8px 0 #1f6b2a; }
.ekp-moment.k-steal .big { font-size: 64px; color: #fff; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 8px 8px 0 #1f9e89; }
.ekp-moment.k-nope, .ekp-moment.k-yup { background: radial-gradient(circle, rgba(226,59,59,.45), transparent 70%); }
.ekp-moment.k-yup { background: radial-gradient(circle, rgba(48,209,88,.4), transparent 70%); }
.ekp-moment.k-nope .big, .ekp-moment.k-yup .big { color: #fff; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 9px 9px 0 #e23b3b; }
.ekp-moment.k-yup .big { text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 9px 9px 0 #1f9e4a; }
.ekp-moment.k-attack { background: radial-gradient(circle, rgba(242,129,29,.6), rgba(60,20,4,.75) 75%); }
.ekp-moment.k-attack .big { font-size: 66px; }
@keyframes ekp-slam { from { transform: rotate(-7deg) scale(3); opacity: 0; } }
.ekp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 90vw; }
.ekp-moment .avatar { width: 40px; height: 40px; font-size: 18px; }
.ekp-mflash { position: absolute; inset: 0; background: #fff; animation: ekp-mflash .45s ease-out both; }
@keyframes ekp-mflash { from { opacity: 1; } to { opacity: 0; } }

/* a private note: what you drew, what you lost */
.ekp-note { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 24px); top: calc(var(--safe-top) + 56px); z-index: 80; display: flex; align-items: center; gap: 10px; background: #1f1d24; color: #fff; border: 2px solid #ffd23f; border-radius: 16px; padding: 8px 14px 8px 8px; font-size: 15px; font-weight: 700; box-shadow: 0 14px 36px rgba(0,0,0,.45); max-width: 92vw; pointer-events: none; animation: ekp-note 3.8s ease both; }
.ekp-ncards { display: flex; gap: 4px; }
@keyframes ekp-note { 0% { opacity: 0; transform: translateY(-20px); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ======== light theme (the default) ======== */
[data-theme="light"] .ekp-turnbar.idle, [data-theme="light"] .ekp-opp, [data-theme="light"] .ekp-table { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(120,60,20,.08); }
[data-theme="light"] .ekp-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .ekp-odds b { color: #1f8f3a; }
[data-theme="light"] .ekp-odds.h2 b { color: #b88a00; } [data-theme="light"] .ekp-odds.h3 b { color: #e07000; } [data-theme="light"] .ekp-odds.h4 b { color: #e0352b; }
[data-theme="light"] .ekp-empty { border-color: rgba(80,40,10,.2); }
[data-theme="light"] .ekp-future { background: #fff0f7; }
[data-theme="light"] .ekp-future > span { color: #a3206d; }
[data-theme="light"] .ekp-nopebar { background: rgba(255,235,232,.92); }
[data-theme="light"] .ekp-nopebar.canceled { background: rgba(232,250,236,.92); }
[data-theme="light"] .ekp-ring .bg { stroke: rgba(0,0,0,.12); }
[data-theme="light"] .ekp-nring .fg { stroke: #e23b3b; }
[data-theme="light"] body.g-notkittens .ndp-dock { background: rgb(255,240,224); box-shadow: 0 -8px 14px rgba(120,60,20,.14); }
[data-theme="light"] .btn.ekp-combo { background: rgba(31,158,137,.12); }
[data-theme="light"] .ekp-step { color: #d4561c; }
[data-theme="light"] .ndp-fan .kcard.lit { box-shadow: 0 0 0 calc(var(--cw) * .014) #1b1b1b, 0 0 0 4px #ffb800, 0 6px 16px rgba(120,60,20,.3); }
[data-theme="light"] .ndp-fan .kcard.dim { filter: saturate(.5) opacity(.7); }
[data-theme="light"] .ekp-ghost .kcard { box-shadow: 0 20px 40px rgba(120,60,20,.3); }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.ekp .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.ekp .ndp-pick { max-height: 100%; min-height: 0; overflow-y: auto; }
.ekp .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }
.ekp .ndp-bigcard { flex: none; }
/* a card's sheet: the explanation scrolls, the buttons (and Close) never leave the screen */
.ekp .ndp-sheet .btn { min-height: 52px; font-size: 17px; }

/* short phones (a 568px SE, a 664px browser window): a compact tray so the table stays on screen */
@media (max-height: 700px) {
  .ekp { gap: 8px; }
  .ekp-turnbar { padding: 8px 12px; }
  .ekp-turnbar.me b { font-size: 26px; }
  .ekp-table { padding: 8px 10px; gap: 10px; }
  .ekp-nopebar { padding: 6px 8px 6px 12px; }
  .ekp-dock .ndp-fan { height: calc(var(--cw) * 88 / 63 + 26px + var(--sag, 0px)); }
  .ndp-fan .kcard { top: 14px; }
  .btn.ekp-draw { min-height: 52px; font-size: 18px; }
  .ekp-acts .ekp-nopebtn { min-height: 62px; }
  .ekp-acts .ekp-nopebtn b { font-size: 24px; }
  .ekp .ndp-bigcard, .ekp-big { --cw: 76px; }
  .ekp .ndp-sheet { padding: 12px; gap: 8px; }
  .ekp .ndp-sheet .btn { min-height: 48px; font-size: 16px; }
}
@media (max-height: 600px) {
  .ekp .ndp-bigcard, .ekp-big { --cw: 56px; }
}

/* buttons: a deeper blue (white on it is 5.6:1) and a readable "Close" */
.ekp { --blue: #0066d6; }
.ekp .btn.ghost { color: var(--link); }

/* /shared/notcodenames.css */
/* Spymaster: card faces and the briefing-room table, shared by the TV and the
   phones. A card fills the box it is put in; everything inside is sized from the
   card's own width (cqw), the card box itself is sized by its parent. */
:root { --cn-font: "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; }
.cncard, .cncard * { box-sizing: border-box; }
.cncard { position: relative; container-type: inline-size; width: 100%; height: 100%; min-width: 0; user-select: none; -webkit-user-select: none; font-family: var(--cn-font); }
.cncard .cn-in {
  position: absolute; inset: 0; border-radius: 6cqw; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 25% 15%, rgba(255,255,255,.6), transparent 60%),
    repeating-linear-gradient(0deg, rgba(120,90,40,.04) 0 1px, transparent 1px 3px),
    linear-gradient(172deg, #f7efdc, #e8dab8);
  box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 .7cqw rgba(255,255,255,.7), inset 0 0 0 1.5cqw rgba(140,105,50,.16);
  transition: box-shadow .2s, transform .2s;
}
/* the codename again, upside down, for whoever sits across the table */
.cncard .cn-echo { position: absolute; left: 18%; right: 6%; top: 9%; text-align: center; transform: rotate(180deg); font-size: min(10cqw, calc(95cqw / var(--len, 6))); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(84,60,26,.34); white-space: nowrap; overflow: hidden; line-height: 1.1; }
/* a thumbprint seal in the corner */
.cncard .cn-seal { position: absolute; left: 6cqw; top: 6.5cqw; width: 12cqw; height: 12cqw; border-radius: 50% 50% 46% 54%; background: repeating-radial-gradient(ellipse at 45% 60%, rgba(150,62,40,.34) 0 .55cqw, transparent .55cqw 1.35cqw); transform: rotate(-18deg); opacity: .9; }
.cncard .cn-band { position: absolute; left: 6%; right: 6%; bottom: 9%; height: 46%; border-radius: 3cqw; background: #fffdf7; box-shadow: inset 0 0 0 .5cqw rgba(120,90,40,.16), 0 .5cqw 1.2cqw rgba(80,60,20,.14); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 2.5cqw; }
.cncard .cn-w { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; color: #1d1813; white-space: nowrap; line-height: 1; font-size: min(17cqw, calc(172cqw / var(--len, 6))); }

/* the key, as the spymasters see it (and everyone at the end) */
.cncard.key-red .cn-in { box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 2.2cqw #d9412f; }
.cncard.key-red .cn-band { background: #d9412f; box-shadow: none; }
.cncard.key-blue .cn-in { box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 2.2cqw #2d6fd6; }
.cncard.key-blue .cn-band { background: #2d6fd6; box-shadow: none; }
.cncard.key-red .cn-w, .cncard.key-blue .cn-w, .cncard.key-assassin .cn-w { color: #fff; }
.cncard.key-bystander .cn-in { box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 2.2cqw #cdb889; }
.cncard.key-bystander .cn-band { background: #e6d6b0; box-shadow: none; }
.cncard.key-assassin .cn-in { background: radial-gradient(ellipse 90% 70% at 25% 15%, rgba(255,255,255,.08), transparent 60%), linear-gradient(172deg, #3a3a3f, #141416); box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 2.2cqw #0b0b0c; }
.cncard.key-assassin .cn-band { background: #0b0b0c; box-shadow: inset 0 0 0 .6cqw #e5392b; }
.cncard.key-assassin .cn-echo { color: rgba(255,255,255,.28); }
.cncard.key-assassin .cn-seal { background: repeating-radial-gradient(ellipse at 45% 60%, rgba(229,57,43,.6) 0 .55cqw, transparent .55cqw 1.35cqw); }

/* revealed: agents, bystanders and the assassin */
.cncard[class*="is-"] .cn-in {
  background:
    radial-gradient(ellipse 70% 80% at 50% 30%, rgba(255,255,255,.2), transparent 65%),
    radial-gradient(circle, var(--dot) 22%, transparent 24%) 0 0 / 4.5cqw 4.5cqw,
    linear-gradient(165deg, var(--bg1), var(--bg2));
  box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.32), inset 0 0 0 .8cqw rgba(255,255,255,.22);
}
.cncard .cn-fig { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 104%; display: block; }
.cncard .cn-tag { position: absolute; right: 3.5cqw; bottom: 3.5cqw; max-width: 74%; background: rgba(8,8,12,.62); border-radius: 2.4cqw; padding: 1.4cqw 3cqw; display: flex; overflow: hidden; }
.cncard .cn-tag .cn-w { color: #fff; font-size: min(9.5cqw, calc(90cqw / var(--len, 6))); letter-spacing: .04em; }
.cncard.is-bystander .cn-tag { background: rgba(70,52,28,.72); }
.cncard.is-assassin .cn-tag { background: #e5392b; }
.cncard.is-assassin .cn-in { box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.4), inset 0 0 0 .8cqw #e5392b; }

/* the moment a card is touched */
.cncard.cn-flip .cn-in { animation: cn-flip .65s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes cn-flip { 0% { transform: perspective(700px) rotateX(85deg) scale(1.12); filter: brightness(1.6); } 60% { filter: none; } 100% { transform: none; } }
.cncard.is-assassin.cn-flip .cn-in { animation: cn-flip .65s cubic-bezier(.2,1.25,.4,1) both, cn-shake .5s .6s ease-in-out 2; }
@keyframes cn-shake { 25% { transform: translateX(-2.5cqw) rotate(-1.5deg); } 75% { transform: translateX(2.5cqw) rotate(1.5deg); } }
/* at the end, the words nobody touched show the key but stay quieter */
.cncard.cn-ghost .cn-in { opacity: .78; filter: saturate(.8); }

/* small agent tokens for the counters */
.cn-token { display: inline-block; position: relative; border-radius: 22%; overflow: hidden; background: radial-gradient(circle, var(--dot) 22%, transparent 24%) 0 0 / 22% 22%, linear-gradient(165deg, var(--bg1), var(--bg2)); box-shadow: 0 3px 8px rgba(0,0,0,.28), inset 0 0 0 2px rgba(255,255,255,.22); flex: none; }
.cn-token svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.cn-token.found { background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.cn-token.found svg { opacity: .18; filter: grayscale(1); }

/* plain-English help for a card on the key */
.cn-explain { border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; background: var(--fill, rgba(120,120,128,.14)); color: var(--text); }
.cn-explain .cn-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.cn-explain.k-red .cn-xkind { color: #d9412f; }
.cn-explain.k-blue .cn-xkind { color: #2d6fd6; }
.cn-explain.k-assassin .cn-xkind { color: #e5392b; }
.cn-explain p { margin: 5px 0 0; }

/* The table: a briefing room, Red's glow on the left and Blue's on the right, a map
   grid under everything. Dark is the night-time briefing; light is daylight paper. */
.tbl-agency {
  --tbl-edge: #0a0d14; --tbl-rim: #2f384c; --tbl-glow: rgba(255,240,200,.08);
  background:
    radial-gradient(ellipse 42% 70% at 0% 50%, rgba(217,65,47,.22), transparent 70%),
    radial-gradient(ellipse 42% 70% at 100% 50%, rgba(45,111,214,.26), transparent 70%),
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(255,236,190,.09), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #1c2232 0%, #151a27 60%, #0f131d 100%);
}
[data-theme="light"] .tbl-agency {
  --tbl-edge: #ffffff; --tbl-rim: #d9ccb0; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 42% 70% at 0% 50%, rgba(217,65,47,.13), transparent 70%),
    radial-gradient(ellipse 42% 70% at 100% 50%, rgba(45,111,214,.15), transparent 70%),
    repeating-linear-gradient(0deg, rgba(90,70,30,.055) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(90,70,30,.055) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #f5f0e4 0%, #ece3cf 100%);
}

/* /phone/games/notcodenames.css */
/* Spymaster on the phones: the team picker, a big whose-turn bar, the grid,
   the clue composer and the touch sheet. Dark rules first, then the light theme. */
.cnp { --red: #d9412f; --blue: #2d6fd6; --gold: #ffb800; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.cnp .t-red, .cnp.t-red, .cnp-moment.t-red { --tc: var(--red); --tc2: #a82a1c; }
.cnp .t-blue, .cnp.t-blue, .cnp-moment.t-blue { --tc: var(--blue); --tc2: #1c4fa6; }
.cnp [hidden] { display: none !important; }
.cnp .avatar.xs { width: 17px; height: 17px; font-size: 9px; box-shadow: 0 0 0 1.5px #fff; }

/* ---- picking teams ---- */
.cnp-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 0; }
.cnp-lword { font-family: var(--cn-font); font-size: 40px; font-weight: 900; letter-spacing: .05em; line-height: 1; }
.cnp-hint { text-align: center; color: var(--label-2); font-size: 15px; }
.cnp-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cnp-team { --tc: var(--red); --tc2: #a82a1c; text-align: left; border: 3px solid transparent; border-radius: 20px; padding: 0 0 10px; background: rgba(0,0,0,.3); color: var(--text); display: flex; flex-direction: column; gap: 8px; overflow: hidden; cursor: pointer; min-height: 210px; transition: transform .12s, border-color .2s; }
.cnp-team.t-blue { --tc: var(--blue); --tc2: #1c4fa6; }
.cnp-team:active { transform: scale(.98); }
.cnp-team.mine { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,184,0,.25), 0 10px 26px rgba(0,0,0,.3); }
.cnp-tn { font-family: var(--cn-font); font-size: 28px; font-weight: 900; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--tc), var(--tc2)); padding: 8px 12px; display: flex; align-items: center; }
.cnp-tn i { font-style: normal; margin-left: auto; font-size: 16px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px; }
.cnp-mems { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; flex: 1; }
.cnp-mem { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; min-width: 0; flex-wrap: wrap; }
.cnp-mem em { font-style: normal; font-size: 11px; color: var(--label-2); font-weight: 600; }
.cnp-spytag { font-size: 9px; font-weight: 900; letter-spacing: .12em; background: var(--gold); color: #1b1b1b; padding: 2px 6px; border-radius: 999px; }
.cnp-empty { color: var(--label-3); font-size: 14px; }
.cnp-join { margin: 0 10px; text-align: center; font-size: 13px; font-weight: 800; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 22%, transparent); color: var(--text); }
.cnp-team.mine .cnp-join { background: var(--gold); color: #1b1b1b; }
.cnp-spybtn { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; font-weight: 800; }
.cnp-spybtn.on, .cnp-spybtn.alt { background: var(--bg-3); color: var(--text); }
.cnp-explain { font-size: 14px; color: var(--label-2); line-height: 1.4; text-align: center; padding: 0 6px; }
.cnp-explain b { color: var(--text); }
.cnp-undec { font-size: 14px; color: var(--label-2); text-align: center; }
/* the spymaster button and the leader's controls ride together above the bottom bar, on a solid band */
.cnp-bottom { position: sticky; bottom: var(--safe-bottom); z-index: 6; margin: 0 -16px; padding: 8px 16px; background: var(--bg); box-shadow: 0 -10px 12px -6px var(--bg); display: flex; flex-direction: column; gap: 8px; }
.cnp-lead { background: rgba(0,0,0,.3); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cnp-ltitle { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.cnp-lrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.cnp-prob { font-size: 14px; color: var(--label-2); line-height: 1.35; }
.cnp-prob.no { color: #ff8a7a; font-weight: 700; }
.cnp-wait { text-align: center; color: var(--label-2); font-size: 15px; padding: 8px; }

/* ---- whose turn ---- */
.cnp-bar { display: flex; flex-direction: column; gap: 2px; border-radius: 18px; padding: 12px 14px; }
.cnp-bar b { font-family: var(--cn-font); font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: .01em; line-height: 1; }
.cnp-bar span { font-size: 15px; font-weight: 700; }
.cnp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: cnp-pop .35s cubic-bezier(.2,1.4,.4,1) both, cnp-throb 1.6s ease-in-out .4s infinite; }
.cnp-bar.end { background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; animation: cnp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.cnp-bar.idle { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; background: rgba(0,0,0,.3); color: var(--label-2); }
.cnp-bar.idle span { font-weight: 600; }
.cnp-bar.idle b { font-size: 16px; font-style: normal; font-family: var(--font); color: var(--tc); }
.cnp-bar.idle small { margin-left: auto; font-size: 13px; }
.cnp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
@keyframes cnp-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes cnp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.cnp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: cnp-frame 1.6s ease-in-out infinite; }
@keyframes cnp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.cnp-scores { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--label-2); font-weight: 600; }
.cnp-sc b { font-family: var(--cn-font); font-size: 24px; font-weight: 900; color: var(--tc); margin-right: 3px; vertical-align: -2px; }
.cnp-me { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tc, #888) 22%, transparent); color: var(--text); }

/* ---- the clue in play ---- */
.cnp-cluebox:empty { display: none; }
.cnp-clue { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 8px 10px; background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; }
.cnp-clue.wait { justify-content: center; font-weight: 700; font-size: 14px; }
.cnp-cw { font-family: var(--cn-font); font-size: 26px; font-weight: 900; letter-spacing: .03em; background: #fffdf7; color: #1d1813; border-radius: 9px; padding: 2px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: cnp-pop .4s cubic-bezier(.2,1.5,.4,1) both; }
.cnp-cn { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #1d1813; color: #fff; font-family: var(--cn-font); font-size: 24px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.cnp-pips { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.cnp-pips i { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cnp-pips i.used { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.cnp-pips em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cnp-clock { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; font-size: 14px; }
.cnp-clock .timer { flex: 1; }

/* ---- the grid ---- */
.cnp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 -8px; transition: opacity .3s, filter .3s; }
.cnp-cell { position: relative; min-width: 0; }
.cnp-cell .cncard { height: var(--cnh, auto); aspect-ratio: 1.38; }
.cnp-grid .cncard .cn-echo, .cnp-grid .cncard .cn-seal { display: none; }
.cnp-grid .cncard .cn-band { height: 84%; bottom: 8%; left: 1.5%; right: 1.5%; padding: 0; }
.cnp-grid .cncard .cn-w { font-size: min(21cqw, calc(190cqw / var(--len, 6))); letter-spacing: -.03em; line-height: 1; }
/* never colour alone: Blue agents on the key are striped, Red are solid; the legend shows the same */
.cnp-grid .cncard.key-blue .cn-band, .cnp-lg.k-blue i { background: repeating-linear-gradient(135deg, #2d6fd6 0 6px, #1b4ea6 6px 10px); }
/* a touched card's word: the tag spans the card, the word shrinks to a 10-11px floor and never breaks */
.cnp-grid .cncard .cn-tag { left: 2cqw; right: 2cqw; bottom: 2.5cqw; max-width: none; padding: 1cqw 1.5cqw; justify-content: center; }
.cnp-grid .cncard .cn-tag .cn-w { font-size: 11px; letter-spacing: 0; max-width: 100%; }
.cnp-grid .cncard.cnp-can { cursor: pointer; }
.cnp-grid .cncard.cnp-can .cn-in { box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.3), inset 0 0 0 .7cqw rgba(255,255,255,.7), inset 0 0 0 2cqw rgba(255,184,0,.35); }
.cnp-grid .cncard.cnp-sel .cn-in { outline: 3px solid var(--gold); outline-offset: 1px; transform: scale(1.06); z-index: 2; }
.cnp-grid .cncard[class*="key-"] { cursor: pointer; }
.cnp-pts { position: absolute; right: 2px; top: 2px; display: flex; gap: 1px; z-index: 3; }
.cnp.waiting .cnp-grid { opacity: .7; filter: saturate(.75); }
.cnp-grid .cncard.cnp-in .cn-in { animation: cnp-in .5s cubic-bezier(.2,1.2,.35,1) both; animation-delay: inherit; }
@keyframes cnp-in { from { transform: translateY(-30vh) rotate(-8deg) scale(.6); opacity: 0; } 60% { opacity: 1; } }
.cnp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--label-2); }
.cnp-legend:empty { display: none; }
.cnp-lg { display: inline-flex; align-items: center; gap: 5px; }
.cnp-lg i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.cnp-lg.k-red i { background: var(--red); } .cnp-lg.k-blue i { background: var(--blue); }
.cnp-lg.k-bystander i { background: #e3d2a8; box-shadow: inset 0 0 0 2px #cdb889; } .cnp-lg.k-assassin i { background: #0b0b0c; box-shadow: inset 0 0 0 2px #e5392b; }
.cnp-tip { font-size: 14px; color: var(--label-2); text-align: center; }
.cnp-log { font-size: 14px; line-height: 1.4; color: var(--label-2); text-align: center; }
.cnp-log div:last-child { color: var(--text); font-weight: 600; }
.cnp-log .l-assassin, .cnp-log .l-oops { color: #ff8a7a !important; }

/* ---- a short screen (a phone in a browser): everything above the grid shrinks ---- */
@media (max-height: 700px) {
  .cnp { gap: 6px; }
  .cnp-bar { padding: 6px 12px; border-radius: 14px; }
  .cnp-bar b { font-size: 22px; }
  .cnp-bar span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cnp-bar.idle { padding: 6px 12px; }
  .cnp-play:has(.cnp-compose) .cnp-bar.me span, .cnp-play:has(.cnp-compose) .cnp-scores { display: none; }
  .cnp-clue { padding: 4px 8px; }
  .cnp-cw { font-size: 22px; }
  .cnp-cn { width: 32px; height: 32px; font-size: 20px; }
  .cnp-log { display: none; }
  .cnp-dock { padding: 8px 14px calc(var(--safe-bottom) + 10px); gap: 6px; }
  .cnp-compose { gap: 6px; }
  .cnp-sb, .cnp-crow .btn, .cnp-crow input[type=text] { min-height: 44px !important; }
}
@media (max-height: 600px) { .cnp-lg.k-bystander, .cnp-lg.k-assassin { display: none; } } /* tap a card on the key for what it means */
@media (max-width: 359px) { .cnp-grid { margin: 0 -12px; gap: 3px; } .cnp-me { font-size: 11px; letter-spacing: .02em; padding: 4px 8px; white-space: nowrap; } .cnp-sc { white-space: nowrap; } }

/* ---- the dock ---- */
.cnp-play.final { padding-bottom: 96px; } /* the leader's Lobby / Play again bar floats over the bottom */
.cnp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 520px; margin: 0 auto; padding: 12px 14px calc(var(--safe-bottom) + 14px); background: #0a0c12; box-shadow: 0 -8px 12px -6px rgba(10,12,18,.9); display: flex; flex-direction: column; gap: 8px; }
.cnp-compose { display: flex; flex-direction: column; gap: 8px; }
.cnp-crow { display: flex; gap: 8px; }
.cnp-crow input[type=text] { min-height: 48px !important; }
.cnp-crow .btn { min-height: 48px; }
.cnp-crow .btn:disabled { opacity: 1; background: rgba(120,120,128,.35); color: var(--text); }
.cnp-crow input[type=text] { flex: 1; font-family: var(--cn-font); font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; min-height: 52px; background: #fffdf7; color: #1d1813; border-radius: 14px; }
.cnp-crow input::placeholder { text-transform: none; font-family: var(--font); font-weight: 500; font-size: 16px; letter-spacing: 0; color: #9a8f7c; }
.cnp-crow .btn { width: auto; flex: none; padding: 0 22px; font-weight: 800; }
/* how many words the clue points to: a stepper, big targets */
.cnp-step { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: center; }
.cnp-sb { border: none; border-radius: 12px; min-height: 48px; font-size: 28px; font-weight: 900; line-height: 1; background: var(--bg-3); color: var(--text); cursor: pointer; padding: 0; }
.cnp-sb:active { background: var(--gold); color: #1b1b1b; }
.cnp-stepv { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.cnp-stepv b { font-family: var(--cn-font); font-size: 30px; font-weight: 900; }
.cnp-stepv span { font-size: 15px; font-weight: 700; color: var(--label-2); }
.cnp-cluebox:has(.cnp-clock) .cnp-clock { margin-top: 0; }
.cnp-n { border: none; border-radius: 10px; min-height: 44px; font-family: var(--cn-font); font-size: 20px; font-weight: 900; background: var(--bg-3); color: var(--text); cursor: pointer; padding: 0; }
.cnp-n.on { background: var(--gold); color: #1b1b1b; box-shadow: 0 4px 14px rgba(255,184,0,.45); }
.cnp-end { min-height: 56px; font-weight: 800; background: var(--bg-3); }
.cnp-end:not(:disabled) { background: #fff; color: #1d1813; }
.cnp-end:disabled { opacity: 1; background: rgba(120,120,128,.3); color: var(--text); box-shadow: inset 0 0 0 2px rgba(120,120,128,.4); }
.cnp-take { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; font-weight: 800; }

/* ---- the touch sheet and the key sheet ---- */
.cnp-ov { position: fixed; inset: 0; z-index: 40; background: rgba(4,6,12,.62); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(var(--safe-bottom) + 12px); animation: cnp-fade .15s both; }
@keyframes cnp-fade { from { opacity: 0; } }
.cnp-sheet { width: 100%; max-width: 480px; background: #161a24; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: sheet-up .25s cubic-bezier(.2,1,.3,1) both; }
.cnp-bigcard { width: min(72vw, 300px); aspect-ratio: 1.45; align-self: center; margin: 4px 0 6px; animation: cnp-lift .3s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes cnp-lift { from { transform: translateY(60px) scale(.7); opacity: 0; } }
.cnp-q { font-size: 22px; font-weight: 700; text-align: center; }
.cnp-q b { font-family: var(--cn-font); font-weight: 900; letter-spacing: .03em; }
.cnp-sub { font-size: 14px; color: var(--label-2); text-align: center; line-height: 1.35; }
.cnp-touch { min-height: 58px; font-size: 19px; font-weight: 800; }

/* ---- the big moments, on every phone ---- */
.cnp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 60%, transparent), rgba(0,0,0,.72) 75%); animation: cnp-moment 3.6s ease both; }
.cnp-moment.assassin { background: radial-gradient(circle at 50% 40%, rgba(229,57,43,.6), rgba(0,0,0,.88) 72%); }
@keyframes cnp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.cnp-mcard { width: min(66vw, 280px); aspect-ratio: 1.45; transform: rotate(-4deg); animation: cnp-slam .55s cubic-bezier(.2,1.5,.4,1) both; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.cnp-moment.assassin .cnp-mcard { animation: cnp-slam .55s cubic-bezier(.2,1.5,.4,1) both, cnp-shake .4s .55s ease-in-out 3; }
@keyframes cnp-slam { from { transform: rotate(-4deg) scale(2.6); opacity: 0; } }
@keyframes cnp-shake { 25% { transform: rotate(-6deg) translateX(-8px); } 75% { transform: rotate(-2deg) translateX(8px); } }
.cnp-moment .big { font-family: var(--cn-font); font-size: 64px; font-weight: 900; font-style: italic; line-height: .95; color: #fff; text-align: center; letter-spacing: .01em; text-shadow: 4px 4px 0 var(--tc), 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-3deg); }
.cnp-moment.assassin .big { color: #ff4a39; text-shadow: 4px 4px 0 #000, 8px 8px 0 rgba(0,0,0,.4); }
.cnp-moment .who { background: rgba(0,0,0,.7); color: #fff; font-size: 16px; font-weight: 700; padding: 10px 18px; border-radius: 18px; text-align: center; line-height: 1.4; max-width: 92vw; }
.cnp-moment .who b { color: var(--gold, #ffb800); }

/* ---- the light theme: daylight paper ---- */
[data-theme="light"] .cnp-team, [data-theme="light"] .cnp-lead { background: rgba(255,255,255,.82); box-shadow: 0 6px 18px rgba(60,40,10,.08); }
[data-theme="light"] .cnp-team.mine { box-shadow: 0 0 0 4px rgba(255,184,0,.35), 0 10px 26px rgba(60,40,10,.12); }
[data-theme="light"] .cnp-spybtn.on, [data-theme="light"] .cnp-spybtn.alt { background: #fff; box-shadow: 0 2px 8px rgba(60,40,10,.1); }
[data-theme="light"] .cnp-prob.no { color: #c0321f; }
[data-theme="light"] .cnp-bar.idle { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(60,40,10,.08); }
[data-theme="light"] .cnp-log .l-assassin, [data-theme="light"] .cnp-log .l-oops { color: #c0321f !important; }
[data-theme="light"] .cnp-dock { background: #f6f1e5; box-shadow: 0 -8px 12px -6px rgba(246,241,229,.95); }
[data-theme="light"] .cnp-sb { background: #fff; box-shadow: 0 2px 6px rgba(60,40,10,.1); }
[data-theme="light"] .cnp-crow input[type=text] { box-shadow: inset 0 0 0 1.5px rgba(120,90,40,.25); }
[data-theme="light"] .cnp-end { background: #fff; box-shadow: 0 2px 8px rgba(60,40,10,.1); }
[data-theme="light"] .cnp-end:not(:disabled) { background: #1d1813; color: #fff; }
[data-theme="light"] .cnp-ov { background: rgba(40,30,10,.3); }
[data-theme="light"] .cnp-sheet { background: #fbf8f1; border-color: rgba(0,0,0,.06); box-shadow: 0 -10px 40px rgba(60,40,10,.2); }

/* /shared/notsplendor.css */
/* Gem Market faces, shared by the TV and the phones. Size a card with --cw, a token
   with --tw, a patron with --nw. Inside a card, cqw units measure the card itself. */
.spcard, .spcard *, .sp-tok, .sp-tok *, .spnoble, .spnoble * { box-sizing: border-box; }

/* ---- development cards ---- */
.spcard {
  width: var(--cw, 120px); aspect-ratio: 5 / 7; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 120px) * .07); overflow: hidden; user-select: none; -webkit-user-select: none;
  background: #f6efe0;
  box-shadow: 0 calc(var(--cw, 120px) * .025) calc(var(--cw, 120px) * .08) rgba(0,0,0,.38), inset 0 0 0 calc(var(--cw, 120px) * .012) rgba(110,80,30,.35);
  font-family: "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.spcard .sp-art { position: absolute; inset: 2.6cqw; border-radius: 4.6cqw; overflow: hidden; }
.spcard.lv-1 .sp-art { background: linear-gradient(180deg, #a8c8d2 0%, #d9e8e4 55%, #e9efe6 100%); }
.spcard.lv-2 .sp-art { background: linear-gradient(180deg, #bcd6e6 0%, #e6eef0 60%, #f1efe6 100%); }
.spcard.lv-3 .sp-art { background: linear-gradient(180deg, #24304d 0%, #3d4466 60%, #5a4d63 100%); }
.spcard .sp-scene { width: 100%; height: 100%; display: block; }
.spcard .sp-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 .9cqw rgba(201,162,74,.85), inset 0 0 10cqw rgba(0,0,0,.25); border-radius: inherit; pointer-events: none; }
.spcard .sp-top {
  position: absolute; left: 2.6cqw; right: 2.6cqw; top: 2.6cqw; height: 27cqw; border-radius: 4.6cqw 4.6cqw 0 0;
  background: linear-gradient(180deg, rgba(255,251,242,.94), rgba(255,248,232,.78)); display: flex; align-items: center; justify-content: space-between; padding: 0 4cqw 0 6cqw;
  box-shadow: 0 .8cqw 0 rgba(201,162,74,.75);
}
.spcard .sp-pts { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 25cqw; font-weight: 700; line-height: 1; color: #2a2118; text-shadow: 0 .6cqw 0 rgba(201,162,74,.6); }
.spcard .sp-bonus { width: 22cqw; height: 22cqw; filter: drop-shadow(0 1cqw 1.4cqw rgba(0,0,0,.35)); }
.spcard .sp-cost { position: absolute; left: 5cqw; bottom: 5cqw; display: flex; flex-direction: column-reverse; gap: 1.8cqw; }
.sp-c {
  width: 20cqw; height: 20cqw; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13cqw; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 .5cqw 1cqw rgba(0,0,0,.55);
  box-shadow: 0 0 0 1.1cqw rgba(255,252,244,.95), 0 1.2cqw 2.2cqw rgba(0,0,0,.4); font-variant-numeric: tabular-nums;
}
.sp-c.c-diamond { background: radial-gradient(circle at 35% 30%, #ffffff, #cfdbe5); color: #1d2a33; text-shadow: none; }
.sp-c.c-sapphire { background: radial-gradient(circle at 35% 30%, #5b92ef, #173f8c); }
.sp-c.c-emerald { background: radial-gradient(circle at 35% 30%, #3cc584, #0b5c36); }
.sp-c.c-ruby { background: radial-gradient(circle at 35% 30%, #f15a6e, #8a0f22); }
.sp-c.c-onyx { background: radial-gradient(circle at 35% 30%, #5b5664, #121016); }
.spcard .sp-lv { position: absolute; right: 6cqw; bottom: 5.6cqw; display: flex; gap: 2cqw; }
.spcard .sp-lv i, .sp-bdots i { width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: #f6e7bf; box-shadow: 0 0 0 .6cqw rgba(0,0,0,.35); display: block; }
.spcard.empty { background: transparent; box-shadow: inset 0 0 0 calc(var(--cw, 120px) * .012) rgba(201,162,74,.45); border: none; }
.spcard.empty::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; border: calc(var(--cw, 120px) * .012) dashed rgba(201,162,74,.4); }

/* backs: velvet by level with a gold medallion */
.spcard.back { background: #1b1513; }
.spcard.back .sp-backin {
  position: absolute; inset: 2.6cqw; border-radius: 4.6cqw; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(233,200,119,.16) 0 .7cqw, transparent .7cqw 10cqw),
    repeating-linear-gradient(-45deg, rgba(233,200,119,.16) 0 .7cqw, transparent .7cqw 10cqw),
    radial-gradient(ellipse at 50% 40%, var(--vel-1), var(--vel-2));
  box-shadow: inset 0 0 0 1.2cqw #c9a24a, inset 0 0 0 2.4cqw rgba(0,0,0,.35), inset 0 0 14cqw rgba(0,0,0,.45);
}
.spcard.back.lv-1 { --vel-1: #2c6a55; --vel-2: #123528; }
.spcard.back.lv-2 { --vel-1: #8a3346; --vel-2: #3e1220; }
.spcard.back.lv-3 { --vel-1: #2f4688; --vel-2: #121d40; }
.sp-medal {
  width: 74cqw; aspect-ratio: 1 / 1.25; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw;
  background: radial-gradient(ellipse at 40% 30%, #fff7dc, #e9c877 45%, #a87c26 100%);
  box-shadow: 0 0 0 1.4cqw rgba(0,0,0,.25), 0 2cqw 5cqw rgba(0,0,0,.45), inset 0 0 0 1.6cqw rgba(255,255,255,.35); color: #3a2a0c; text-align: center; line-height: 1;
}
.sp-medal small { font-size: 8cqw; letter-spacing: .3em; font-weight: 800; margin-left: .3em; }
.sp-medal b { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 15cqw; font-weight: 700; font-style: italic; letter-spacing: -.01em; }
.sp-bdots { display: flex; gap: 2.2cqw; margin-top: 2cqw; }
.sp-bdots i { background: #3a2a0c; box-shadow: none; }

/* ---- gems and tokens ---- */
.sp-gemsvg { display: block; }
.sp-tok {
  --tc: #888; --tr: #fff; --tin: #ccc;
  width: var(--tw, 56px); height: var(--tw, 56px); border-radius: 50%; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle, transparent 0 58%, var(--tc) 59%),
    repeating-conic-gradient(var(--tr) 0 7deg, var(--tc) 7deg 30deg);
  box-shadow: 0 calc(var(--tw, 56px) * .05) calc(var(--tw, 56px) * .1) rgba(0,0,0,.45), inset 0 0 0 calc(var(--tw, 56px) * .03) rgba(0,0,0,.25);
}
.sp-tok .sp-tokin { width: 72%; height: 72%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, var(--tin), var(--tc)); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 calc(var(--tw, 56px) * -.03) calc(var(--tw, 56px) * .06) rgba(0,0,0,.35), 0 0 0 calc(var(--tw, 56px) * .02) rgba(255,255,255,.35); }
.sp-tok .sp-gemsvg { width: 70%; height: 70%; filter: drop-shadow(0 calc(var(--tw, 56px) * .03) calc(var(--tw, 56px) * .03) rgba(0,0,0,.4)); }
.sp-tok.t-diamond { --tc: #c9d6e1; --tr: #ffffff; --tin: #f6f9fc; }
.sp-tok.t-sapphire { --tc: #1d4fa6; --tr: #cfe0ff; --tin: #3b74d6; }
.sp-tok.t-emerald { --tc: #0f7a49; --tr: #d2f5e3; --tin: #22a364; }
.sp-tok.t-ruby { --tc: #a8172e; --tr: #ffd9de; --tin: #d6334b; }
.sp-tok.t-onyx { --tc: #1c1a21; --tr: #9b96a6; --tin: #3a3641; }
.sp-tok.t-gold { --tc: #c38f1d; --tr: #fff3c4; --tin: #ecc04f; }
.sp-tokn {
  position: absolute; right: -8%; bottom: -8%; min-width: 46%; height: 46%; padding: 0 12%; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: #15121a; color: #fff; font-size: calc(var(--tw, 56px) * .3); font-weight: 800; line-height: 1; box-shadow: 0 0 0 calc(var(--tw, 56px) * .035) #f6efe0; font-variant-numeric: tabular-nums;
}
.sp-tok.none { opacity: .32; filter: saturate(.4); }

/* ---- patrons ---- */
.spnoble {
  width: var(--nw, 120px); aspect-ratio: 1; position: relative; flex: none; border-radius: calc(var(--nw, 120px) * .08); overflow: hidden;
  background: linear-gradient(160deg, #fbf4e4, #eadcbc); container-type: inline-size;
  box-shadow: 0 calc(var(--nw, 120px) * .03) calc(var(--nw, 120px) * .09) rgba(0,0,0,.4), inset 0 0 0 calc(var(--nw, 120px) * .02) #c9a24a, inset 0 0 0 calc(var(--nw, 120px) * .035) rgba(255,255,255,.6);
}
.spnoble .sp-nart { position: absolute; right: 3cqw; top: 4cqw; width: 64cqw; height: 70cqw; }
.spnoble .sp-cameo { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1.5cqw 2cqw rgba(0,0,0,.3)); }
.spnoble .sp-npts { position: absolute; left: 7cqw; top: 2cqw; font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 22cqw; font-weight: 700; color: #2a2118; line-height: 1; }
.spnoble .sp-need { position: absolute; left: 7cqw; bottom: 18cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
.sp-nreq {
  width: 15cqw; height: 18cqw; border-radius: 2.4cqw; display: flex; align-items: center; justify-content: center; position: relative;
  font-size: 11.5cqw; font-weight: 800; color: #fff; text-shadow: 0 .5cqw 1cqw rgba(0,0,0,.5); box-shadow: 0 0 0 1cqw rgba(255,252,244,.9), 0 1cqw 2cqw rgba(0,0,0,.35);
}
.sp-nreq small { position: absolute; right: -9cqw; top: 50%; transform: translateY(-50%); font-size: 9cqw; font-weight: 800; color: #6b5a3a; text-shadow: none; }
.sp-nreq.met::after { content: '✓'; position: absolute; right: -9cqw; top: 50%; transform: translateY(-50%); font-size: 10cqw; color: #1f8f3a; text-shadow: none; }
.sp-nreq.c-diamond { background: linear-gradient(160deg, #ffffff, #c9d6e1); color: #1d2a33; text-shadow: none; }
.sp-nreq.c-sapphire { background: linear-gradient(160deg, #4f86e6, #173f8c); }
.sp-nreq.c-emerald { background: linear-gradient(160deg, #2fbb78, #0b5c36); }
.sp-nreq.c-ruby { background: linear-gradient(160deg, #ec4a60, #8a0f22); }
.sp-nreq.c-onyx { background: linear-gradient(160deg, #57525f, #121016); }
.spnoble .sp-nname {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15cqw; display: flex; align-items: center; justify-content: center; padding: 0 4cqw;
  background: linear-gradient(180deg, #3a2a14, #22180b); color: #f3e3b5; font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 8.4cqw; font-weight: 700; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em;
}

/* ---- plain-English help box ---- */
.sp-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.sp-explain .sp-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.sp-explain p { margin: 5px 0 0; }

/* ---- the table: a jeweller's velvet tray (dark) and ivory silk (light) ---- */
.tbl-velvet {
  --tbl-edge: #120b16; --tbl-rim: #c9a24a; --tbl-glow: rgba(233,200,119,.10);
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(46,120,120,.28), transparent 70%),
    radial-gradient(ellipse 55% 50% at 80% 75%, rgba(120,40,90,.30), transparent 70%),
    repeating-linear-gradient(45deg, rgba(233,200,119,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(-45deg, rgba(233,200,119,.035) 0 1px, transparent 1px 56px),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #13262d 0%, #1a1630 55%, #1d0f22 100%);
}
[data-theme="light"] .tbl-velvet {
  --tbl-edge: #fffaf0; --tbl-rim: #c9a24a; --tbl-glow: rgba(255,255,255,.4);
  background:
    radial-gradient(ellipse 60% 50% at 25% 20%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 85%, rgba(214,180,120,.18), transparent 70%),
    repeating-linear-gradient(45deg, rgba(185,145,70,.07) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(-45deg, rgba(185,145,70,.07) 0 1px, transparent 1px 56px),
    linear-gradient(170deg, #fbf6ec 0%, #f4ecdc 60%, #efe4cf 100%);
}

/* Costs and needs: each gem colour also has its own shape inside the disc (an outlined shape, full contrast), so colour is never the only clue */
.sp-c, .sp-nreq { isolation: isolate; position: relative; }
.sp-c::before, .sp-c::after, .sp-nreq::before { content: ''; position: absolute; z-index: -1; }
.sp-nreq::before { inset: 16%; background: currentColor; opacity: .5; }
.sp-c::before { inset: 6%; background: #fff; }
.sp-c::after { inset: 17%; background: var(--sp-in, #333); }
.sp-c.c-diamond::before { background: #1d2a33; } .sp-c.c-diamond { --sp-in: #e6eef5; }
.sp-c.c-sapphire { --sp-in: #1b4aa5; } .sp-c.c-emerald { --sp-in: #0f7044; } .sp-c.c-ruby { --sp-in: #a3142a; } .sp-c.c-onyx { --sp-in: #26222c; }
.sp-c.c-diamond::before, .sp-c.c-diamond::after, .sp-nreq.c-diamond::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sp-c.c-sapphire::before, .sp-c.c-sapphire::after, .sp-nreq.c-sapphire::before { border-radius: 50%; }
.sp-c.c-emerald::before, .sp-c.c-emerald::after, .sp-nreq.c-emerald::before { clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%); }
.sp-c.c-ruby::before, .sp-c.c-ruby::after, .sp-nreq.c-ruby::before { clip-path: polygon(50% 2%, 100% 92%, 0 92%); }
.sp-c.c-onyx::before, .sp-c.c-onyx::after, .sp-nreq.c-onyx::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* /phone/games/notsplendor.css */
/* Gem Market on phones: dark velvet first, then the ivory light overrides. */
body.g-notsplendor { font-family: "Avenir Next", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; }
body.g-notsplendor .h1, body.g-notsplendor .h2 { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-style: italic; letter-spacing: 0; }
.spp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 240px; }
.spp-round { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.spp-round i { font-style: normal; background: #e9c877; color: #2a1d05; border-radius: 999px; padding: 2px 8px; font-weight: 800; }
.spp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.spp-turnbar.me { flex-direction: column; align-items: stretch; gap: 3px; background: linear-gradient(120deg, #f6d77a, #e0a82c); color: #2a1d05; box-shadow: 0 10px 30px rgba(224,168,44,.45); animation: spp-popin .35s cubic-bezier(.2,1.4,.4,1) both, spp-throb 1.6s ease-in-out .4s infinite; }
.spp-turnbar.me .row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; }
.spp-turnbar.me b { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 32px; font-weight: 700; font-style: italic; letter-spacing: .01em; line-height: 1; }
.spp-turnbar.me > span { font-size: 15px; font-weight: 700; }
.spp-turnbar.me u { text-decoration: none; background: rgba(42,29,5,.14); border-radius: 999px; padding: 0 6px; }
.spp-turnbar.me .spp-round { color: rgba(42,29,5,.7); }
.spp-turnbar.idle { background: rgba(0,0,0,.3); border: 1px solid rgba(233,200,119,.16); color: var(--label-2); }
.spp-turnbar.idle b { color: var(--text); }
.spp-turnbar.idle small { display: block; font-size: 12px; }
@keyframes spp-popin { from { transform: scale(.85); opacity: 0; } }
@keyframes spp-throb { 50% { box-shadow: 0 10px 40px rgba(224,168,44,.75); transform: scale(1.012); } }
body.spp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #e9b730, inset 0 0 50px rgba(233,183,48,.45); animation: spp-frame 1.6s ease-in-out infinite; }
@keyframes spp-frame { 50% { box-shadow: inset 0 0 0 7px #e9b730, inset 0 0 80px rgba(233,183,48,.6); } }
.spp.waiting .spp-dock .ndp-fan, .spp.waiting .spp-wait { opacity: .6; filter: saturate(.75); transition: opacity .3s; }
.spp.waiting .ndp-fan .spcard.peeking { opacity: 1; }
.spp-opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.spp-opp { display: flex; align-items: center; gap: 5px; min-width: 0; background: rgba(0,0,0,.26); border-radius: 999px; padding: 3px 8px 3px 3px; font-size: 13px; font-weight: 700; border: 2px solid transparent; }
.spp-opp .avatar.sm { flex: none; }
.spp-opp.turn { border-color: #e9c877; }
.spp-opp .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spp-opp .pt { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 18px; color: #f3e3b5; }
.spp-opp .ct { display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 0 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.spp-opp .ct .dot { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(#d1203a 0 25%, #2563c9 0 50%, #13945c 0 75%, #e3b23c 0); display: inline-block; }
.spp-opp .ct .rs { width: 7px; height: 10px; border-radius: 2px; background: #8a3346; box-shadow: 0 0 0 1px #c9a24a; display: inline-block; }

.spp-nobles { display: flex; flex-direction: column; gap: 6px; }
.spp-cap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: rgba(243,227,181,.6); padding: 0 2px; }
.spp-nrow { display: flex; gap: 8px; }
.spp-nrow .spnoble { cursor: pointer; }

.spp-market { display: flex; flex-direction: column; gap: 6px; }
.spp-row { display: flex; gap: 6px; align-items: center; }
.spp-deck { position: relative; width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; margin-right: 4px; }
.spp-deck b { background: rgba(10,8,14,.88); color: #f3e3b5; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 800; line-height: 15px; }
.spp-deck.on .spcard { box-shadow: 0 0 0 3px #e9c877, 0 6px 14px rgba(0,0,0,.4); }
.spp-empty { width: 100%; aspect-ratio: 5 / 7; border-radius: 5px; border: 1.5px dashed rgba(233,200,119,.35); display: block; }
.spp-market .spcard { cursor: pointer; transition: transform .15s, filter .2s, box-shadow .2s; }
.spp-market .spcard.lit { box-shadow: 0 0 0 2.5px #e9c877, 0 0 16px rgba(233,200,119,.55), 0 4px 10px rgba(0,0,0,.4); transform: translateY(-2px); }
.spp-market .spcard.dim { filter: saturate(.75) brightness(.86); }
.spp-market .spcard.picked { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e9c877, 0 6px 14px rgba(0,0,0,.45); transform: translateY(-3px); }

.spp-purse { background: rgba(0,0,0,.34); border: 1px solid rgba(233,200,119,.2); border-radius: 16px; padding: 7px 10px 8px; display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.spp-plabel { display: flex; justify-content: space-between; align-items: baseline; white-space: nowrap; gap: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: rgba(243,227,181,.65); }
.spp-plabel b { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 18px; color: #f3e3b5; letter-spacing: 0; }
.spp-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; justify-items: center; }
.spp-col { display: flex; flex-direction: row; align-items: center; gap: 2px; }
.spp-col .sp-mini { width: 20px; height: 28px; border-radius: 4px; font-size: 14px; }
.spp-col .sp-mini.ghost { background: transparent; box-shadow: none; }
.spp-col .sp-tok .sp-tokn { font-size: 12px; }
.spp-mynob { width: 26px; height: 26px; font-size: 13px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, #f3e9d4 0 55%, #c9a24a 56%); color: #3a2a0c; font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 17px; font-weight: 700; line-height: .9; }
.spp-mynob small { font-family: var(--font); font-size: 6px; letter-spacing: .05em; text-transform: uppercase; }
.spp-plegend { font-size: 11px; color: var(--muted); text-align: center; }
/* the bonus chips (same look as the TV) */
.sp-mini { display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); box-shadow: 0 0 0 1.5px rgba(255,248,232,.85), 0 3px 8px rgba(0,0,0,.4); }
.sp-mini.b-diamond { background: linear-gradient(160deg, #ffffff, #b9c8d6); color: #1d2a33; text-shadow: none; }
.sp-mini.b-sapphire { background: linear-gradient(160deg, #4f86e6, #173f8c); }
.sp-mini.b-emerald { background: linear-gradient(160deg, #2fbb78, #0b5c36); }
.sp-mini.b-ruby { background: linear-gradient(160deg, #ec4a60, #8a0f22); }
.sp-mini.b-onyx { background: linear-gradient(160deg, #57525f, #121016); }
.sp-mini.zero { opacity: .3; }

/* the dock: actions and the reserved fan */
.spp-dock { background: linear-gradient(to top, rgba(14,10,22,.96) 72%, rgba(14,10,22,0)); }
.spp-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spp-act { min-height: 62px; border-radius: 14px; border: 1px solid rgba(233,200,119,.45); background: linear-gradient(180deg, rgba(60,40,70,.9), rgba(30,20,40,.95)); color: #f3e3b5; font-size: 13px; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 6px 2px; }
.spp-act .ic { display: flex; align-items: center; justify-content: center; gap: 1px; height: 22px; }
.spp-act .ic .sp-gemsvg { width: 18px; height: 18px; }
.spp-act .ic .spcard { box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.spp-act:disabled { opacity: .32; }
.spp-act:active { transform: scale(.97); }
.spp-buyic { min-width: 22px; height: 22px; border-radius: 999px; background: #e9c877; color: #2a1d05; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }
.spp-wait { text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); padding: 8px 0; min-height: 22px; }
.spp-fan { height: calc(var(--cw) * 1.4 + 22px); }
.ndp-fan .spcard { position: absolute; top: 12px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .spcard.peeking { translate: 0 -24px; z-index: 60 !important; }
.ndp-fan .spcard.lit { box-shadow: 0 0 0 3px #e9c877, 0 0 18px rgba(233,200,119,.5), 0 6px 16px rgba(0,0,0,.35); }
.spp-nores { margin-top: 8px; border: 1.5px dashed rgba(233,200,119,.3); border-radius: 12px; padding: 8px; text-align: center; font-size: 12px; color: var(--muted); }

/* sheets */
.spp-sheet { background: #1b1424; border-color: rgba(233,200,119,.35); }
.spp-big { --cw: min(46vw, 190px); }
.spp-bignoble .spnoble { --nw: min(52vw, 200px); }
.spp-gems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.spp-gbtn { background: rgba(255,255,255,.05); border: 2px solid transparent; border-radius: 14px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.spp-gbtn.on { border-color: #e9c877; background: rgba(233,200,119,.18); transform: translateY(-3px); }
.spp-gbtn:disabled { opacity: .3; }
.btn.spp-two { display: flex; align-items: center; gap: 4px; text-align: left; min-height: 56px; }
.btn.spp-two span:not(.sp-tok):not(.sp-tokin) { margin-left: 8px; }
.btn.spp-two small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.spp-drow { display: flex; align-items: center; gap: 10px; }
.spp-drow .nm { flex: 1; font-weight: 700; }
.spp-drow b { width: 26px; text-align: center; font-size: 20px; }
.spp-pm { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(233,200,119,.4); background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; font-weight: 800; }
.spp-pm:disabled { opacity: .3; }
.spp-nchoice { display: flex; gap: 12px; justify-content: center; }
.spp-nbtn { background: none; border: none; padding: 0; cursor: pointer; }
.spp-blist { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spp-bitem { background: rgba(255,255,255,.04); border: 2px solid transparent; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--text); }
.spp-bitem.on { border-color: #e9c877; background: rgba(233,200,119,.16); }
.spp-bitem small { font-size: 11px; color: var(--muted); }
.spp-bpay { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 84px; }
.spp-pi { width: 15px; height: 15px; }
.spp-free { font-size: 12px; font-weight: 800; color: #30d158; }
.spp-sheet .spp-market { align-items: center; }
.spp-sheet .spp-market .spcard.dim { filter: none; }

/* final */
.spp-final .spp-crown { width: 84px; height: 84px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.spp-crown .sp-gemsvg { width: 100%; height: 100%; }
.spp-standing { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.spp-strow { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.25); border-radius: 14px; padding: 8px 12px; }
.spp-strow .nm { flex: 1; text-align: left; font-weight: 700; }
.spp-strow .pts { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-size: 24px; font-weight: 700; }
.spp-strow small { color: var(--muted); width: 60px; text-align: right; }

/* ---- light: ivory silk ---- */
[data-theme="light"] .spp-turnbar.idle, [data-theme="light"] .spp-opp, [data-theme="light"] .spp-purse { background: rgba(255,255,255,.78); border-color: rgba(201,162,74,.3); box-shadow: 0 4px 14px rgba(120,90,30,.08); }
[data-theme="light"] .spp-round i { background: #2a1d05; color: #f3e3b5; }
[data-theme="light"] .spp-opp.turn { border-color: #b98a2c; }
[data-theme="light"] .spp-opp .pt, [data-theme="light"] .spp-plabel b { color: #5a3e0e; }
[data-theme="light"] .spp-opp .ct { background: rgba(0,0,0,.07); }
[data-theme="light"] .spp-cap, [data-theme="light"] .spp-plabel { color: rgba(107,74,18,.75); }
[data-theme="light"] .spp-deck b { background: #fffaf0; color: #5a3e0e; box-shadow: 0 0 0 1px rgba(201,162,74,.6); }
[data-theme="light"] .spp-empty { border-color: rgba(154,109,22,.35); }
[data-theme="light"] .spp-market .spcard.lit { box-shadow: 0 0 0 2.5px #b98a2c, 0 0 14px rgba(185,138,44,.45), 0 4px 10px rgba(80,60,20,.25); }
[data-theme="light"] .spp-market .spcard.dim { filter: saturate(.7) opacity(.78); }
[data-theme="light"] .sp-mini { box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(80,60,20,.25); }
[data-theme="light"] .spp-dock { background: linear-gradient(to top, rgba(250,245,234,.97) 72%, rgba(250,245,234,0)); }
[data-theme="light"] .spp-act { background: linear-gradient(180deg, #fffaf0, #f1e5c9); color: #3a2a0c; border-color: rgba(154,109,22,.5); box-shadow: 0 3px 10px rgba(120,90,30,.12); }
[data-theme="light"] .ndp-fan .spcard.lit { box-shadow: 0 0 0 3px #b98a2c, 0 6px 16px rgba(80,60,20,.25); }
[data-theme="light"] .spp-nores { border-color: rgba(154,109,22,.3); }
[data-theme="light"] .spp-sheet { background: #fffaf2; border-color: rgba(201,162,74,.4); }
[data-theme="light"] .spp-gbtn { background: rgba(120,90,30,.06); }
[data-theme="light"] .spp-gbtn.on, [data-theme="light"] .spp-bitem.on { background: rgba(233,200,119,.3); border-color: #b98a2c; }
[data-theme="light"] .spp-bitem { background: rgba(120,90,30,.05); }
[data-theme="light"] .spp-pm { background: #fff; border-color: rgba(154,109,22,.4); }
[data-theme="light"] .spp-strow { background: rgba(255,255,255,.75); }
[data-theme="light"] .spp-free { color: #1f8f3a; }

/* ---- motion: new cards slide in, gems and cards fly home, big moments ---- */
.spp-market .spcard.spp-in { animation: spp-in .5s cubic-bezier(.2,1.1,.35,1) both; }
.ndp-fan .spcard.spp-in { animation: spp-fanin .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes spp-in { from { transform: translateX(-30px) rotateY(70deg); opacity: 0; } }
@keyframes spp-fanin { from { translate: 0 -45vh; scale: .5; opacity: 0; } 60% { opacity: 1; } }
.spp-ghost { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; transform-origin: 50% 50%; }
.spp-ghost .spcard { box-shadow: 0 18px 36px rgba(0,0,0,.45); }
.spp-pop { animation: spp-pop .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes spp-pop { 40% { transform: scale(1.3); filter: brightness(1.25); } }
.spp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, rgba(20,12,30,.6)), rgba(10,6,16,.82) 75%); animation: spp-moment 2.8s ease both; }
@keyframes spp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.spp-moment .art { width: 150px; height: 160px; animation: spp-slam .55s cubic-bezier(.2,1.5,.4,1) both; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
.spp-moment .art.gem { width: 120px; height: 120px; }
.spp-moment .art svg { width: 100%; height: 100%; display: block; }
.spp-moment .big { font-family: "Didot", "Bodoni 72", "Spectral", Georgia, serif; font-style: italic; font-weight: 700; font-size: 44px; line-height: 1; color: #f3e3b5; text-shadow: 0 3px 0 rgba(0,0,0,.4), 0 0 30px rgba(233,200,119,.45); animation: spp-slam .5s .08s cubic-bezier(.2,1.5,.4,1) both; }
.spp-moment.k-final .big, .spp-moment.k-win .big { font-size: 52px; color: #ffd76a; }
@keyframes spp-slam { from { transform: scale(2.4); opacity: 0; } }
.spp-moment .who { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 17px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 92vw; border: 1px solid rgba(233,200,119,.5); }
.spp-moment .avatar { width: 38px; height: 38px; font-size: 17px; }

.spp-turnbar.me.steady { animation: spp-throb 1.6s ease-in-out infinite; }
.ndp-ov.noanim, .ndp-ov.noanim .ndp-bigcard { animation: none; }
.spp-sheet .btn.primary { background: linear-gradient(180deg, #f2cf6b, #d9a032); color: #2a1d05; font-weight: 800; }
.spp-sheet .btn.primary:disabled { opacity: .45; }
.spp-sheet .btn { background: rgba(255,255,255,.08); }
.spp-sheet .btn.ghost { background: transparent; color: #e9c877; }
/* a tall sheet: the scrolling part, then a solid footer with the buttons (nothing pinned on top of anything) */
.spp-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 0; gap: 0; max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
.spp-sheet.wide { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
.spp-sx { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; }
.spp-sacts { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; background: #1b1424; border-top: 1px solid rgba(233,200,119,.35); }
.spp-sacts .btn.ghost { min-height: 48px; }
[data-theme="light"] .spp-sacts { background: #fffaf2; }
.spp-sheet .btn.primary:disabled { opacity: 1; background: #6b6075; color: #d8cfe0; }
[data-theme="light"] .spp-sheet .btn.primary:disabled { background: #d9cfb8; color: #6b5f48; }
/* the shop tray, as the last block of the page on short screens or with a reserved card */
.spp.flow { padding-bottom: 8px !important; }
.spp.flow .spp-dock { position: static; padding: 0; background: none; max-width: none; margin: 0; }
.spp.flow .spp-purse { margin-bottom: 0; }
[data-theme="light"] .spp-sheet .btn { background: rgba(120,90,30,.08); }
[data-theme="light"] .spp-sheet .btn.primary { background: linear-gradient(180deg, #f2cf6b, #d9a032); }
[data-theme="light"] .spp-sheet .btn.ghost { background: transparent; color: #8a5a00; }

.spp-opps.n4 .spp-opp .ct { display: none; }
.spp-opp .avatar.sm { width: 24px; height: 24px; font-size: 12px; }

.spp-turnbar .tclock { width: 46px; height: 46px; margin-left: auto; }
.spp-turnbar .tclock b { font-size: 18px; }
.spp-turnbar.idle .tclock .fg { stroke: var(--text); }
.spp-turnbar.idle .tclock .bg { stroke: rgba(255,255,255,.18); }
/* a card or patron close-up: the picture, then a sheet that takes only the room that is left */
.ndp-pick > .spp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 38px - min(52vw, 200px) * 1.4); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 38px - min(52vw, 200px) * 1.4); }

/* /shared/notclue.css */
/* Whodunit, shared by the TV and the phones: clue cards (size with --cw), the card
   back, help text, board animations and the table surface (.tbl-mansion), dark
   oxblood damask by default and warm ivory in the light theme. */

/* ---- clue cards ---- */
.clcard, .clcard * { box-sizing: border-box; }
.clcard {
  --tint: #7a2430;
  width: var(--cw, 100px); aspect-ratio: 5 / 7.4; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .075); padding: calc(var(--cw, 100px) * .045);
  background: linear-gradient(160deg, #f8f0dc, #eadbb8);
  box-shadow: 0 calc(var(--cw, 100px) * .025) calc(var(--cw, 100px) * .08) rgba(0,0,0,.38), inset 0 0 0 calc(var(--cw, 100px) * .008) rgba(80,50,10,.25);
  user-select: none; -webkit-user-select: none; color: #3b2416;
}
.clcard .cl-in { position: relative; width: 100%; height: 100%; border-radius: 5cqw; border: 1.1cqw solid #b08d48; box-shadow: inset 0 0 0 1.6cqw #f8f0dc, inset 0 0 0 2.2cqw #b08d48; display: flex; flex-direction: column; overflow: hidden; background: #fbf5e6; }
.clcard .cl-kind { margin: 3.2cqw 3.2cqw 0; padding: 1.8cqw 0 1.5cqw; border-radius: 2.4cqw 2.4cqw 0 0; background: var(--tint); color: #fff; text-align: center; font: 800 7.6cqw/1 "Inter", "Helvetica Neue", Arial, sans-serif; letter-spacing: .28em; text-transform: uppercase; text-indent: .28em; }
.clcard.c-whitecaps .cl-kind { background: #1f2a44; }
.clcard.c-canola .cl-kind { color: #2a1d00; }
.clcard .cl-art { position: relative; flex: 1; min-height: 0; margin: 0 3.2cqw; border: 1cqw solid var(--tint); border-top: none; border-radius: 0 0 40cqw 40cqw / 0 0 22cqw 22cqw; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tint) 22%, #fff9ec), color-mix(in srgb, var(--tint) 45%, #f0e2c2)); }
.clcard.c-whitecaps .cl-art { border-color: #1f2a44; background: radial-gradient(ellipse at 50% 30%, #f4f8ff, #cfdcef); }
.clcard.k-weapon .cl-art { background: radial-gradient(ellipse at 50% 35%, #f4f1ea, #c9d0d6); }
.clcard .cl-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.clcard.k-weapon .cl-art svg { inset: 6cqw; width: calc(100% - 12cqw); height: calc(100% - 12cqw); }
.clcard .cl-name { padding: 2.6cqw 3cqw 4cqw; text-align: center; font: 400 11.5cqw/1.02 "IM Fell English SC", Georgia, "Times New Roman", serif; color: #3b2416; letter-spacing: .01em; }
.clcard.k-room .cl-name { font-size: 10.8cqw; }
.clcard.c-blackberry .cl-name { font-size: 10cqw; }
.clcard.k-back .cl-in { background: #6e1a25; border-color: #c9a54a; box-shadow: inset 0 0 0 1.6cqw #6e1a25, inset 0 0 0 2.2cqw #c9a54a; }
.clcard .cl-lattice { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(233,207,138,.22) 0 1.2cqw, transparent 1.2cqw 9cqw), repeating-linear-gradient(-45deg, rgba(233,207,138,.22) 0 1.2cqw, transparent 1.2cqw 9cqw), radial-gradient(circle at 50% 45%, #8e2433, #4a0f17 80%); }
.clcard .cl-seal { position: absolute; left: 50%; top: 50%; width: 64cqw; height: 64cqw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8e2433, #5a121c); border: 2cqw solid #c9a54a; box-shadow: 0 0 0 1.4cqw #6e1a25, 0 0 0 2.2cqw rgba(233,207,138,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #f3dc9c; line-height: .9; }
.clcard .cl-seal svg { width: 26cqw; height: 26cqw; margin-bottom: 1cqw; }
.clcard .cl-seal b { font: 400 8.6cqw/1 "IM Fell English SC", Georgia, serif; letter-spacing: .02em; }
.clcard.dim { filter: saturate(.4) brightness(.8); }

.cl-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.cl-explain .cl-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.cl-explain p { margin: 5px 0 0; }
.cl-mini { display: block; flex: none; }

/* ---- board ---- */
.clb { display: block; }
.clb .clb-turnring { animation: clb-pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes clb-pulse { 50% { opacity: .35; transform: scale(1.18); } }
.clb .clb-bob { animation: clb-bob 1.1s ease-in-out infinite; }
@keyframes clb-bob { 50% { transform: translateY(-9px); } }
.clb .clb-hl rect { animation: clb-glow 1.2s ease-in-out infinite; }
.clb .clb-hl.sel rect { animation: none; }
@keyframes clb-glow { 50% { opacity: .55; } }
.clb .clb-hlroom { animation: clb-glow 1.4s ease-in-out infinite; }
.clb .clb-hlroom.sel { animation: none; }
.clb .clb-pawn.fresh { animation: clb-land .5s cubic-bezier(.2,1.5,.4,1) .55s both; transform-box: fill-box; transform-origin: center; }
@keyframes clb-land { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---- the table: an oxblood study by lamplight, or ivory damask in daylight ---- */
.tbl-mansion {
  --tbl-edge: #12060a; --tbl-rim: #8a6a2a; --tbl-glow: rgba(255,196,120,.10);
  background:
    radial-gradient(ellipse 60% 50% at 32% 42%, rgba(255,190,110,.12), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(233,207,138,.05) 0 14px, transparent 15px) 0 0 / 56px 56px,
    radial-gradient(circle at 50% 50%, rgba(233,207,138,.04) 0 6px, transparent 7px) 28px 28px / 56px 56px,
    repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #3a1219 0%, #2a0d13 55%, #1d090d 100%);
}
[data-theme="light"] .tbl-mansion {
  --tbl-edge: #fffaf0; --tbl-rim: #b08d48; --tbl-glow: rgba(255,255,255,.35);
  background:
    radial-gradient(ellipse 60% 50% at 32% 42%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(176,141,72,.10) 0 14px, transparent 15px) 0 0 / 56px 56px,
    radial-gradient(circle at 50% 50%, rgba(176,141,72,.08) 0 6px, transparent 7px) 28px 28px / 56px 56px,
    repeating-linear-gradient(45deg, rgba(176,141,72,.07) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-45deg, rgba(176,141,72,.07) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #f7efdf 0%, #f0e4cc 100%);
}

/* /phone/games/notclue.css */
/* Whodunit on the phones: dark oxblood by default, ivory parchment in the light theme. */
.clp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 236px; color: #f3e3bf; }
.clp .h2, .clp-plabel, .clp-ftitle { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; }

/* whose turn */
.clp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.clp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: clp-pop .35s cubic-bezier(.2,1.4,.4,1) both, clp-throb 1.6s ease-in-out .4s infinite; }
.clp-turnbar.me b { font: 900 30px/1 Inter, Arial, sans-serif; font-style: italic; letter-spacing: -.01em; }
.clp-turnbar.me span { font-size: 15px; font-weight: 700; line-height: 1.25; }
.clp-turnbar.idle { background: rgba(18,6,9,.55); color: rgba(243,227,191,.72); border: 1px solid rgba(201,165,74,.25); }
.clp-turnbar.idle b { color: #f3e3bf; }
.clp-turnbar.out { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); }
.clp-chipdie { margin-left: auto; font-weight: 800; color: #f3e3bf; }
@keyframes clp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes clp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.clp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: clp-frame 1.6s ease-in-out infinite; }
@keyframes clp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.clp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.clp.waiting .ndp-fan .clcard.peeking { opacity: 1; }
.clp.waiting .clp-boardwrap { filter: saturate(.85); }

/* who you are, the notepad */
.clp-me { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.clp-me > i { width: 22px; height: 22px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 10px var(--sc); flex: none; }
.clp-whoami { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.clp-whoami small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.clp-me b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-notebtn { min-height: 44px; border: 1px solid rgba(201,165,74,.5); background: rgba(18,6,9,.55); color: #f3e3bf; border-radius: 12px; padding: 6px 12px; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; line-height: 1.1; cursor: pointer; }
.clp-notebtn small { font-size: 11px; font-weight: 600; opacity: .75; }
.clp-zoom { margin-left: auto; min-width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid rgba(201,165,74,.5); background: rgba(18,6,9,.55); color: #f3dc9c; font-size: 14px; font-weight: 700; padding: 0 10px; line-height: 1.1; cursor: pointer; }
[data-theme="light"] .clp-zoom { background: rgba(255,251,242,.95); color: #6b4a12; }
.clp-sheet .btn.ghost { color: #e6c27a; }
[data-theme="light"] .clp-sheet .btn.ghost { color: #8a5a10; }

/* the board */
.clp-boardwrap { position: relative; margin: 0 -10px; border-radius: 16px; overflow: hidden; }
.clp-boardwrap.zoom { overflow: auto; max-height: max(190px, min(96vw, calc(100dvh - 400px))); -webkit-overflow-scrolling: touch; }
.clp-board svg { width: 100%; height: auto; display: block; }
.clp-boardwrap.zoom .clp-board svg { width: 210%; }

/* actions */
.clp-acts { display: flex; flex-direction: column; gap: 8px; }
.clp-acts:empty { display: none; }
.clp-acts .btn { min-height: 52px; font-weight: 800; }
.clp .btn.primary, .clp-sheet .btn.primary { background: linear-gradient(180deg, #8e2433, #6e1a25); color: #f8e7b5; box-shadow: inset 0 0 0 2px #c9a54a, 0 6px 16px rgba(0,0,0,.3); }
.btn.clp-roll { min-height: 76px; font-size: 28px; font-weight: 900; letter-spacing: .06em; background: linear-gradient(180deg, #8e2433, #6e1a25); color: #f8e7b5; box-shadow: inset 0 0 0 2px #c9a54a, 0 8px 20px rgba(0,0,0,.4); }
.clp-dieicon { font-size: 34px; vertical-align: -4px; margin-right: 6px; }
.btn.clp-pass { background: rgba(201,165,74,.18); color: #f3dc9c; border: 1px solid rgba(201,165,74,.55); }
.btn.clp-roombtn { display: flex; align-items: center; gap: 10px; background: rgba(255,214,10,.16); color: #ffe27a; border: 2px solid #ffd60a; text-align: left; }
.btn.clp-roombtn .cl-mini { border-radius: 8px; }
.clp-acts .btn.clp-accuse { background: transparent; color: #ff9b8a; border: 1px solid rgba(255,107,107,.5); min-height: 44px; font-size: 15px; font-weight: 700; padding: 8px; }
.btn.clp-danger { background: #c0392b; color: #fff; }
.clp-hint { text-align: center; font-weight: 700; color: #ffd166; font-size: 15px; }
.clp-panel { background: rgba(18,6,9,.55); border: 1px solid rgba(201,165,74,.3); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.clp-plabel { font-size: 17px; color: #e6c27a; display: flex; align-items: baseline; gap: 8px; }
.clp-plabel small { font-family: Inter, Arial, sans-serif; font-size: 13px; }
.clp-three { display: flex; gap: 6px; }
.clp-chain { display: flex; flex-wrap: wrap; gap: 6px; }
.clp-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700; border: 1.5px solid transparent; }
.clp-link small { font-weight: 600; opacity: .8; }
.clp-link.pass { opacity: .55; } .clp-link.idle { opacity: .4; }
.clp-link.shown { border-color: #ffb800; background: rgba(255,184,0,.16); }
.clp-link.wait { border-color: #6aa7c4; animation: pulse 1s infinite; }
.clp-nobody { font-weight: 800; color: #ff9b8a; font-size: 14px; align-self: center; }
.clp-gave { font-size: 14px; color: #a7d3e6; }
.clp-answer { border-color: #ffb800; }
.clp-answer.none { border-color: #ff6b6b; }
.clp-answerrow { display: flex; gap: 12px; align-items: center; }
.clp-answerrow .p { color: inherit; opacity: .85; }

/* everyone else, and the log */
.clp-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.clp-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(18,6,9,.5); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.clp-opp > i { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.clp-opp .ct { background: rgba(255,255,255,.12); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.clp-opp.turn { border-color: #ffb800; }
.clp-opp.out { opacity: .5; }
.clp-outtag { font-size: 10px; font-weight: 900; color: #ff9b8a; letter-spacing: .08em; }
.clp-log { font-size: 13px; color: rgba(243,227,191,.6); line-height: 1.45; padding: 0 4px; }
.clp-log .l-suggest, .clp-log .l-accuse { color: #f3e3bf; } .clp-log .l-nobody, .clp-log .l-out { color: #ff9b8a; } .clp-log .l-win { color: #ffd166; font-weight: 800; }

/* the hand */
body.g-notclue .ndp-dock { background: linear-gradient(to top, rgba(26,9,13,.95) 70%, rgba(26,9,13,0)); }
.ndp-fan .clcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .clcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .clcard.lit { box-shadow: 0 0 0 3px #ffd60a, 0 0 22px rgba(255,214,10,.6), 0 6px 16px rgba(0,0,0,.35); }
.clp-dock .ndp-fan { height: calc(var(--cw) * 1.48 + 34px); }
.clp-big { --cw: min(46vw, 200px); }

/* sheets */
body.g-notclue .ndp-sheet.clp-sheet { background: #1f0c10; border-color: rgba(201,165,74,.45); color: #f3e3bf; max-height: 82vh; }
body.g-notclue .ndp-sheet.clp-sheet.danger { border-color: #ff6b6b; }
.clp-sheet .p { color: rgba(243,227,191,.75); font-size: 14px; }
.clp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.clp-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clp-tile { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); border: 2px solid transparent; color: inherit; font-size: 14px; font-weight: 700; text-align: left; line-height: 1.15; cursor: pointer; }
.clp-tiles.three .clp-tile { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; font-size: 13px; }
.clp-tile.on { border-color: #ffd60a; background: rgba(255,214,10,.18); }
.clp-tile.known .cl-mini, .clp-tile.crossed .cl-mini { opacity: .5; }
.clp-tn { min-width: 0; }
.clp-tile em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 800; color: #a7e08a; text-transform: uppercase; letter-spacing: .04em; }
.clp-tile em.m-no { color: #ff9b8a; } .clp-tile em.m-maybe { color: #ffd166; } .clp-tile em.m-yes { color: #a7e08a; }
.clp-showrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.clp-showbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: #ffd60a; font-weight: 800; font-size: 15px; cursor: pointer; padding: 4px; }
.clp-showbtn .clcard { box-shadow: 0 0 0 3px #ffd60a, 0 10px 24px rgba(0,0,0,.45); }
.clp-showbtn:active .clcard { transform: scale(.96); }
.clp-note { display: flex; align-items: center; gap: 10px; padding: 4px 2px; border-bottom: 1px solid rgba(201,165,74,.15); }
.clp-nn { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.clp-nn small { display: block; font-weight: 600; font-size: 13px; }
.clp-note.known .clp-nn { text-decoration-color: rgba(167,224,138,.7); }
.clp-note.known .clp-nn { text-decoration: line-through; }
.clp-note.known .clp-nn small { text-decoration: none; display: block; }
.clp-note.k-answer .clp-nn { text-decoration: none; opacity: 1; color: #ffd166; }
.clp-note.crossed .clp-nn { text-decoration: line-through; }
.clp-tick { color: #a7e08a; font-weight: 900; font-size: 18px; }
.clp-tick.ans { color: #ffd166; }
.clp-mark { min-width: 56px; height: 44px; padding: 0 6px; font-size: 14px; border-radius: 10px; border: 1.5px solid rgba(201,165,74,.5); background: rgba(255,255,255,.05); color: #f3e3bf; font-weight: 900; cursor: pointer; flex: none; }
.clp-mark.m-no { color: #ff9b8a; border-color: #ff9b8a; } .clp-mark.m-maybe { color: #ffd166; border-color: #ffd166; } .clp-mark.m-yes { color: #a7e08a; border-color: #a7e08a; }

/* the end */
.clp-final { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 16px 0 40px; }
.clp-ftitle { font-size: 30px; color: #ffd166; }
.clp-fcards { display: flex; gap: 8px; }
.clp-flip { width: var(--cw); aspect-ratio: 5 / 7.4; perspective: 900px; }
.clp-flipin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: clp-turn .8s cubic-bezier(.3,1.2,.4,1) var(--d) both; }
.clp-fb, .clp-ff { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.clp-ff { transform: rotateY(180deg); }
@keyframes clp-turn { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
.clp-fsent { font-family: "Spectral", Georgia, serif; font-style: italic; font-size: 18px; max-width: 340px; }

/* full-screen moments */
.clp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, rgba(20,6,9,.8)), rgba(10,3,5,.82) 75%); animation: clp-moment 2.7s ease both; }
@keyframes clp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.clp-moment .big { font: 400 54px/1 "IM Fell English SC", Georgia, serif; color: #ffd166; text-align: center; text-shadow: 0 4px 0 #7a1f2b, 0 10px 24px rgba(0,0,0,.6); transform: rotate(-4deg); animation: clp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.clp-moment.wrong .big { color: #ff6b6b; font-size: 76px; text-shadow: 0 4px 0 #3a0a10, 0 10px 24px rgba(0,0,0,.6); }
.clp-moment.nobody .big { font-size: 42px; }
@keyframes clp-slam { from { transform: rotate(-4deg) scale(2.6); opacity: 0; } }
.clp-moment .cards { display: flex; gap: 8px; }
.clp-moment .cards .clcard { animation: clp-deal .5s cubic-bezier(.2,1.3,.4,1) both; }
.clp-moment .cards .clcard:nth-child(2) { animation-delay: .1s; } .clp-moment .cards .clcard:nth-child(3) { animation-delay: .2s; }
@keyframes clp-deal { from { transform: translateY(80px) rotate(-10deg) scale(.6); opacity: 0; } }
.clp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 16px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 22px; max-width: 92vw; line-height: 1.25; }
.clp-moment .avatar { width: 40px; height: 40px; font-size: 18px; }

/* light theme: ivory and parchment */
[data-theme="light"] .clp { color: #3b2416; }
[data-theme="light"] .clp-turnbar.idle, [data-theme="light"] .clp-panel, [data-theme="light"] .clp-opp, [data-theme="light"] .clp-notebtn { background: rgba(255,251,242,.88); border-color: rgba(176,141,72,.4); color: #3b2416; box-shadow: 0 4px 14px rgba(90,60,20,.08); }
[data-theme="light"] .clp-turnbar.idle { color: rgba(59,36,22,.7); }
[data-theme="light"] .clp-turnbar.idle b, [data-theme="light"] .clp-chipdie { color: #3b2416; }
[data-theme="light"] .clp-turnbar.out { background: rgba(192,57,43,.1); }
[data-theme="light"] .clp-plabel { color: #8a5a10; }
[data-theme="light"] .clp-hint { color: #8a5a10; }
[data-theme="light"] .btn.clp-pass { background: rgba(176,141,72,.16); color: #6b4a12; }
[data-theme="light"] .btn.clp-roombtn { background: rgba(255,204,0,.2); color: #6b4a12; border-color: #e0a800; }
[data-theme="light"] .btn.clp-accuse { color: #b03024; border-color: rgba(192,57,43,.45); }
[data-theme="light"] .clp-link { background: rgba(120,80,30,.07); }
[data-theme="light"] .clp-link.shown { background: rgba(255,184,0,.22); }
[data-theme="light"] .clp-nobody, [data-theme="light"] .clp-outtag { color: #b03024; }
[data-theme="light"] .clp-gave { color: #1d6f8f; }
[data-theme="light"] .clp-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .clp-log { color: rgba(59,36,22,.65); }
[data-theme="light"] .clp-log .l-suggest, [data-theme="light"] .clp-log .l-accuse { color: #3b2416; } [data-theme="light"] .clp-log .l-nobody, [data-theme="light"] .clp-log .l-out { color: #b03024; } [data-theme="light"] .clp-log .l-win { color: #9a6410; }
[data-theme="light"] body.g-notclue .ndp-dock { background: linear-gradient(to top, rgba(244,234,214,.97) 70%, rgba(244,234,214,0)); }
[data-theme="light"] .ndp-fan .clcard.lit { box-shadow: 0 0 0 3px #e0a800, 0 0 18px rgba(224,168,0,.5), 0 6px 16px rgba(30,40,80,.25); }
[data-theme="light"] body.g-notclue .ndp-sheet.clp-sheet { background: #fffaf0; border-color: rgba(176,141,72,.5); color: #3b2416; }
[data-theme="light"] .clp-sheet .p { color: rgba(59,36,22,.72); }
[data-theme="light"] .clp-tile { background: rgba(120,80,30,.06); }
[data-theme="light"] .clp-tile.on { background: rgba(255,204,0,.22); border-color: #e0a800; }
[data-theme="light"] .clp-tile em { color: #2f7d1e; } [data-theme="light"] .clp-tile em.m-no { color: #b03024; } [data-theme="light"] .clp-tile em.m-maybe { color: #9a6410; }
[data-theme="light"] .clp-note { border-bottom-color: rgba(176,141,72,.2); }
[data-theme="light"] .clp-tick { color: #2f7d1e; } [data-theme="light"] .clp-tick.ans { color: #9a6410; }
[data-theme="light"] .clp-mark { background: rgba(120,80,30,.05); color: #3b2416; }
[data-theme="light"] .clp-mark.m-no { color: #b03024; border-color: #b03024; } [data-theme="light"] .clp-mark.m-maybe { color: #9a6410; border-color: #9a6410; } [data-theme="light"] .clp-mark.m-yes { color: #2f7d1e; border-color: #2f7d1e; }
[data-theme="light"] .clp-showbtn { color: #8a5a10; }
[data-theme="light"] .clp-ftitle { color: #8a5a10; }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.clp .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.clp .ndp-pick { max-height: 100%; overflow-y: auto; }
.clp .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* turn timer ring */
.clp-turnbar { position: relative; }
.clp-turnbar .tclock { width: 48px; height: 48px; margin-left: auto; }
.clp-turnbar .tclock b { font-size: 20px; }
.clp-turnbar.me .tclock { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; margin: 0; }

/* The Suggest / Accuse buttons stay in view at the bottom of the sheet while the tiles scroll */
.clp-sheet > .btn.primary, .clp-sheet > .btn.clp-danger { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -10px 12px -4px #1f0c10, inset 0 0 0 2px #c9a54a; }
[data-theme="light"] .clp-sheet > .btn.primary, [data-theme="light"] .clp-sheet > .btn.clp-danger { box-shadow: 0 -10px 12px -4px #fffaf0, inset 0 0 0 2px #c9a54a; }
.clp-sheet > .btn.clp-danger { box-shadow: 0 -10px 12px -4px #1f0c10; }
[data-theme="light"] .clp-sheet > .btn.clp-danger { box-shadow: 0 -10px 12px -4px #fffaf0; }

/* The clue cards fold to a slim solid strip while you act and on short phones (one tap opens them),
   so they never cover a glowing square, the pawn, End turn, Whole board or the notepad */
body.g-notclue .clp-dock.slim, .clp-dock.slim { padding: 6px 12px calc(var(--safe-bottom) + 6px); background: #1a090d; box-shadow: 0 -1px 0 rgba(201,165,74,.4); }
[data-theme="light"] .clp-dock.slim, [data-theme="light"] body.g-notclue .clp-dock.slim { background: #f4ead6; box-shadow: 0 -1px 0 rgba(176,141,72,.5); }
.clp-trayopen { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid rgba(201,165,74,.6); background: rgba(201,165,74,.14); color: #f3dc9c; font-size: 15px; font-weight: 700; cursor: pointer; }
.clp-trayopen b { font-size: 15px; white-space: nowrap; }
.clp-trayopen.hide { margin-top: 4px; min-height: 44px; font-weight: 600; font-size: 14px; }
[data-theme="light"] .clp-trayopen { background: #fffaf0; color: #6b4a12; border-color: rgba(176,141,72,.7); }
@media (max-height: 700px) { .clp { gap: 8px; }
  .clp-notebtn small { display: none; }
  .clp-notebtn, .clp-zoom { min-height: 44px; height: 44px; padding-top: 0; padding-bottom: 0; }
  .clp-turnbar.me { padding: 8px 14px; }
  .clp-turnbar.me b { font-size: 24px; }
  .clp-acts .btn { min-height: 48px; }
  .btn.clp-roll { min-height: 60px; font-size: 24px; }
}

/* the accusation's confirm: a small sheet in the middle of the screen, away from where Accuse was */
.ndp-ov.clp-confirmov { align-items: center; }
.clp-confirm { max-height: none; align-items: stretch; text-align: center; }
.clp-confirm .clp-three { justify-content: center; }
.clp-confirm > .btn { position: static; box-shadow: none; }
.clp-confirm.wait .btn.clp-danger { background: #cfc3b0; color: #5a4a35; box-shadow: none; }

/* a disabled pinned button is solid, not see-through */
.clp .btn.primary:disabled, .clp-sheet .btn.primary:disabled { opacity: 1; background: #e4d6b8; color: #6b5a40; box-shadow: 0 -10px 12px -4px #1f0c10; }
[data-theme="light"] .clp .btn.primary:disabled, [data-theme="light"] .clp-sheet .btn.primary:disabled { box-shadow: 0 -10px 12px -4px #fffaf0; }
.clp-sheet .btn { height: auto; white-space: normal; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
.clp-sheet > * { flex-shrink: 0; }

/* narrow phones: the name wraps between words instead of being cut, so the board buttons keep their size */
@media (max-width: 360px) {
  .clp-whoami small { display: none; }
  .clp-me b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 15px; line-height: 1.1; }
  .clp-me { gap: 8px; }
  .clp-zoom { padding: 0 8px; }
}

/* The slim clue strip is the last thing on the page (it does not float over the board, the buttons or the notepad) */
body.g-notclue .clp-dock.slim, .clp-dock.slim { position: static; left: auto; right: auto; bottom: auto; z-index: auto; max-width: none; margin: 4px 0 0; padding: 0; background: none; box-shadow: none; }
[data-theme="light"] body.g-notclue .clp-dock.slim, [data-theme="light"] .clp-dock.slim { background: none; box-shadow: none; }
.clp-rooms { display: flex; flex-direction: column; gap: 8px; }
@media (max-height: 700px) {
  .clp-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .clp-rooms .btn.clp-roombtn { min-height: 44px; padding: 4px 8px; gap: 6px; font-size: 14px; line-height: 1.15; }
  .clp-rooms .btn.clp-roombtn .cl-mini { width: 26px !important; height: 26px !important; flex: none; }
  .clp-rooms:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
}

/* /shared/notticket.css */
/* Train Routes, shared by the TV and the phones: the Cascadia Lines map,
   train cards, destination tickets and the table. Dark first, light after. */

/* ---- the table: a station-master's desk ---- */
.tbl-cascadia {
  --tbl-edge: #0a1110; --tbl-rim: #8a6d3b; --tbl-glow: rgba(255,220,160,.07);
  background:
    radial-gradient(ellipse 70% 60% at 40% 40%, rgba(255,226,170,.07), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 19px),
    linear-gradient(180deg, #1d2c27 0%, #16221e 60%, #101916 100%);
}
[data-theme="light"] .tbl-cascadia {
  --tbl-edge: #fbf6ea; --tbl-rim: #a8885a; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 70% 60% at 40% 40%, rgba(255,255,255,.5), transparent 70%),
    repeating-linear-gradient(90deg, rgba(120,90,40,.025) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(120,90,40,.035) 0 1px, transparent 1px 19px),
    linear-gradient(180deg, #ece2cc 0%, #e4d6ba 100%);
}

/* ---- the map ---- */
.ntm {
  display: block; width: 100%; height: 100%;
  --ntm-sea: #133039; --ntm-sealine: rgba(170,215,215,.16); --ntm-wl: #3d6d78;
  --ntm-land: #2d2a21; --ntm-bc: #3e2e2b; --ntm-ab: #3b3524; --ntm-wa: #2a3427; --ntm-or: #383120; --ntm-id: #322d3b; --ntm-mt: #29353a;
  --ntm-hatch: rgba(255,236,200,.35); --ntm-coast: #d8c69e; --ntm-lake: #1c4049; --ntm-river: #5d9bb0;
  --ntm-border: #b68a66; --ntm-intl: #e0bf8a; --ntm-mtn: #a38f68; --ntm-mtn-s: rgba(0,0,0,.4); --ntm-snow: #ece4cf;
  --ntm-region: rgba(236,222,190,.32); --ntm-watertext: rgba(168,212,218,.5);
  --ntm-panel: #1c1a14; --ntm-panelline: #c9ad73; --ntm-ink: #f1e4c4; --ntm-frame: #c9ad73;
  --ntm-city: #f4e8c9; --ntm-cityline: #15130e; --ntm-label: #f4e8c9; --ntm-halo: #121510;
  --ntm-track: #0b0a08; --ntm-grey: #8d887c;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  -webkit-user-select: none; user-select: none;
}
[data-theme="light"] .ntm {
  --ntm-sea: #b6d3d0; --ntm-sealine: rgba(40,95,105,.2); --ntm-wl: #6f9e9f;
  --ntm-land: #f3e7c9; --ntm-bc: #f2d3c6; --ntm-ab: #f1e2ae; --ntm-wa: #d6e4bf; --ntm-or: #eedcb0; --ntm-id: #e0d5ea; --ntm-mt: #d3e3e5;
  --ntm-hatch: rgba(120,90,40,.4); --ntm-coast: #4a3a26; --ntm-lake: #a6cdd1; --ntm-river: #4b86a0;
  --ntm-border: #8e5b45; --ntm-intl: #6e3b2b; --ntm-mtn: #7a6644; --ntm-mtn-s: rgba(110,80,40,.3); --ntm-snow: #ffffff;
  --ntm-region: rgba(98,66,34,.36); --ntm-watertext: rgba(34,88,108,.6);
  --ntm-panel: #f7edd4; --ntm-panelline: #5b4630; --ntm-ink: #3a2c1c; --ntm-frame: #4a3a28;
  --ntm-city: #fffaf0; --ntm-cityline: #2a2218; --ntm-label: #2a2218; --ntm-halo: #f7eed6;
  --ntm-track: #2a2218; --ntm-grey: #bbb4a5;
}
.ntm .ntm-sea { fill: var(--ntm-sea); }
.ntm .ntm-sealine { stroke: var(--ntm-sealine); stroke-width: 1; }
.ntm .ntm-wl1 path, .ntm .ntm-wl2 path, .ntm .ntm-wl3 path { fill: none; stroke: var(--ntm-wl); stroke-linejoin: round; }
.ntm .ntm-wl1 path { stroke-width: 9; opacity: .45; }
.ntm .ntm-wl2 path { stroke-width: 18; opacity: .22; }
.ntm .ntm-wl3 path { stroke-width: 30; opacity: .12; }
.ntm .ntm-land path { fill: var(--ntm-land); }
.ntm .ntm-r { opacity: .9; }
.ntm .ntm-r-bc { fill: var(--ntm-bc); } .ntm .ntm-r-ab { fill: var(--ntm-ab); } .ntm .ntm-r-wa { fill: var(--ntm-wa); }
.ntm .ntm-r-or { fill: var(--ntm-or); } .ntm .ntm-r-id { fill: var(--ntm-id); } .ntm .ntm-r-mt { fill: var(--ntm-mt); }
.ntm .ntm-hatchline { stroke: var(--ntm-hatch); stroke-width: .8; }
.ntm .ntm-coast path { fill: none; stroke: var(--ntm-coast); stroke-width: 1.6; stroke-linejoin: round; }
.ntm .ntm-lakes path { fill: var(--ntm-lake); stroke: var(--ntm-coast); stroke-width: 1; }
.ntm .ntm-rivers path { fill: none; stroke: var(--ntm-river); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.ntm .ntm-border { fill: none; stroke: var(--ntm-border); stroke-width: 1.5; stroke-dasharray: 7 4; opacity: .8; }
.ntm .ntm-intl { fill: none; stroke: var(--ntm-intl); stroke-width: 2.4; stroke-dasharray: 12 4 2 4; opacity: .85; }
.ntm .ntm-mtn { fill: none; stroke: var(--ntm-mtn); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.ntm .ntm-mtn-s { fill: var(--ntm-mtn-s); }
.ntm .ntm-volc .ntm-mtn { fill: var(--ntm-mtn-s); stroke-width: 1.6; }
.ntm .ntm-snow { fill: var(--ntm-snow); stroke: var(--ntm-mtn); stroke-width: .8; }
.ntm .ntm-peak { font-size: 9.5px; font-style: italic; fill: var(--ntm-region); text-anchor: middle; }
.ntm .ntm-wave { fill: none; stroke: var(--ntm-wl); stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.ntm .ntm-regions text { font-family: "IM Fell English SC", "Spectral", Georgia, serif; font-size: 21px; letter-spacing: .42em; fill: var(--ntm-region); text-anchor: middle; }
.ntm .ntm-water text { font-size: 13px; font-style: italic; letter-spacing: .2em; fill: var(--ntm-watertext); text-anchor: middle; }
.ntm .ntm-water text.big { font-size: 20px; letter-spacing: .5em; }
.ntm .ntm-panel { fill: var(--ntm-panel); stroke: var(--ntm-panelline); stroke-width: 1.6; }
.ntm .ntm-panelin { fill: none; stroke: var(--ntm-panelline); stroke-width: .8; }
.ntm .ntm-fh { font-family: "IM Fell English SC", Georgia, serif; font-size: 13px; fill: var(--ntm-ink); text-anchor: middle; letter-spacing: .12em; }
.ntm .ntm-fcar { fill: var(--ntm-grey); stroke: var(--ntm-track); stroke-width: .7; }
.ntm .ntm-fv { font-size: 10px; font-weight: 700; fill: var(--ntm-ink); text-anchor: end; }
.ntm .ntm-t1 { font-family: "IM Fell English SC", Georgia, serif; font-size: 22px; fill: var(--ntm-ink); text-anchor: middle; letter-spacing: .06em; }
.ntm .ntm-t2 { font-size: 10.5px; font-style: italic; fill: var(--ntm-ink); text-anchor: middle; opacity: .85; }
.ntm .ntm-t3 { font-family: "IM Fell English SC", Georgia, serif; font-size: 11px; fill: var(--ntm-ink); text-anchor: middle; letter-spacing: .14em; opacity: .7; }
.ntm .ntm-orn { stroke: var(--ntm-panelline); stroke-width: .7; }
.ntm .ntm-orn-dot { fill: var(--ntm-panel); stroke: var(--ntm-panelline); stroke-width: 1; }
.ntm .ntm-cr1 { fill: var(--ntm-ink); }
.ntm .ntm-cr2 { fill: var(--ntm-panel); stroke: var(--ntm-ink); stroke-width: .8; }
.ntm .ntm-crring { fill: none; stroke: var(--ntm-ink); stroke-width: .9; stroke-dasharray: 2 2; opacity: .7; }
.ntm .ntm-crn { font-family: "IM Fell English SC", Georgia, serif; font-size: 14px; fill: var(--ntm-ink); text-anchor: middle; }
.ntm .ntm-frame { fill: none; stroke: var(--ntm-frame); stroke-width: 4; }
.ntm .ntm-frame2 { fill: none; stroke: var(--ntm-frame); stroke-width: 1.2; }

/* track spaces in the eight colours and grey */
.ntm .ntm-sp { stroke: var(--ntm-track); stroke-width: 1.3; }
.ntm .ntm-sp.c-red { fill: #d23a2e; } .ntm .ntm-sp.c-orange { fill: #ec7a26; } .ntm .ntm-sp.c-yellow { fill: #f1c22e; }
.ntm .ntm-sp.c-green { fill: #3b9a4c; } .ntm .ntm-sp.c-blue { fill: #2c6cc4; } .ntm .ntm-sp.c-purple { fill: #8b4cb0; }
.ntm .ntm-sp.c-black { fill: #26262b; } .ntm .ntm-sp.c-white { fill: #f6f3ea; } .ntm .ntm-sp.c-grey { fill: var(--ntm-grey); }
.ntm .ntm-sp.c-black { stroke: #8f8a7e; }
[data-theme="light"] .ntm .ntm-sp.c-black { stroke: var(--ntm-track); }
.ntm .ntm-route.dim { opacity: .38; }
.ntm .ntm-tp { transform-box: fill-box; transform-origin: center; }
.ntm .ntm-tp.fresh { animation: ntm-drop .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes ntm-drop { 0% { transform: translateY(-26px) scale(1.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ntm .ntm-glow path { fill: none; stroke: #ffd23f; stroke-width: 24; stroke-linecap: round; opacity: .55; }
.ntm .ntm-glow.reveal path { stroke: #7ee0a1; }
.ntm .ntm-glow.longest path { stroke: #ffd23f; opacity: .7; animation: ntm-breathe 1.8s ease-in-out infinite; }
@keyframes ntm-breathe { 50% { opacity: .35; } }
.ntm .ntm-legal path { fill: none; stroke: #fff; stroke-width: 20; stroke-linecap: round; opacity: .55; animation: ntm-pulse 1.1s ease-in-out infinite; }
.ntm .ntm-legal path.sel { stroke: #ffd23f; opacity: .95; animation: none; stroke-width: 24; }
[data-theme="light"] .ntm .ntm-legal path { stroke: #f59e0b; opacity: .6; }
[data-theme="light"] .ntm .ntm-legal path.sel { stroke: #d97706; opacity: .9; }
@keyframes ntm-pulse { 50% { opacity: .2; } }
.ntm .ntm-hits path { fill: none; stroke: transparent; stroke-width: 30; stroke-linecap: round; cursor: pointer; pointer-events: stroke; }
.ntm .ntm-ring { fill: none; stroke: #ffd23f; stroke-width: 4; }
.ntm .ntm-ring.done { stroke: #4ade80; }
.ntm .ntm-ring.miss { stroke: #ff6b6b; }
.ntm .ntm-ring.pick { stroke: #fff; stroke-width: 5; animation: ntm-pulse 1s ease-in-out infinite; }

/* cities and their names */
.ntm .ntm-city circle { fill: var(--ntm-city); stroke: var(--ntm-cityline); stroke-width: 2.4; }
.ntm .ntm-city .dot { fill: var(--ntm-cityline); stroke: none; }
.ntm .ntm-city.hub circle { stroke-width: 2.6; }
.ntm .ntm-city.hub .in { fill: none; stroke-width: 1.4; }
.ntm .ntm-labels text { font-size: 14.5px; font-weight: 700; fill: var(--ntm-label); stroke: var(--ntm-halo); stroke-width: 4; paint-order: stroke; stroke-linejoin: round; letter-spacing: .01em; }
.ntm .ntm-labels text.hub { font-family: "IM Fell English SC", "Spectral", Georgia, serif; font-size: 21px; font-weight: 400; letter-spacing: .04em; stroke-width: 5; }
.ntm .ntm-labels text.key { fill: #b45309; }
[data-theme="dark"] .ntm .ntm-labels text.key { fill: #ffd23f; }

/* ---- train cards (portrait). Size with --cw. ---- */
.ntc, .ntc * { box-sizing: border-box; }
.ntc {
  width: var(--cw, 90px); aspect-ratio: 44 / 68; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 90px) * .08); padding: calc(var(--cw, 90px) * .045); background: var(--cc, #888);
  box-shadow: 0 calc(var(--cw, 90px) * .03) calc(var(--cw, 90px) * .08) rgba(0,0,0,.35), inset 0 0 0 calc(var(--cw, 90px) * .012) rgba(0,0,0,.25);
  font-family: "Spectral", Georgia, serif; user-select: none; -webkit-user-select: none;
}
.ntc .ntc-in { position: relative; width: 100%; height: 100%; border-radius: 5.5cqw; background: #f7efdc; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 .8cqw rgba(0,0,0,.18); }
.ntc .ntc-in::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 60% at 30% 10%, rgba(255,255,255,.35), transparent 60%); }
.ntc .ntc-top { display: flex; align-items: center; gap: 3cqw; padding: 4cqw 5cqw 3cqw; background: var(--cc); color: #fff; }
.ntc .ntc-pip { width: 8cqw; height: 8cqw; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2cqw var(--cd); flex: none; }
.ntc .ntc-name { font-size: 10.5cqw; font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 .6cqw 0 rgba(0,0,0,.25); }
.ntc .ntc-oval { flex: 1; min-height: 0; margin: 4cqw 4cqw 3cqw; border-radius: 50% / 42%; background: radial-gradient(ellipse at 50% 40%, #fffaf0 30%, #eadcb9); box-shadow: inset 0 0 0 1.4cqw var(--cc), inset 0 0 0 2.4cqw rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.ntc .ntc-art { width: 90%; height: auto; display: block; overflow: visible; }
.ntc .ntc-foot { background: var(--cc); color: #fff; text-align: center; font-family: "IM Fell English SC", Georgia, serif; font-size: 15cqw; letter-spacing: .1em; padding: 2cqw 0 3.4cqw; line-height: 1; }
.ntc.c-yellow .ntc-top, .ntc.c-yellow .ntc-foot { color: #3a2a05; text-shadow: none; }
.ntc.c-yellow .ntc-name { text-shadow: none; }
.ntc.c-white { background: #cfc9ba; }
.ntc.c-white .ntc-top, .ntc.c-white .ntc-foot { background: #e9e4d6; color: #2a2620; }
.ntc.c-white .ntc-name { text-shadow: none; }
.ntc.c-white .ntc-oval { box-shadow: inset 0 0 0 1.4cqw #cfc9ba, inset 0 0 0 2.4cqw rgba(0,0,0,.12); }
.ntc.c-black .ntc-oval { background: radial-gradient(ellipse at 50% 40%, #fffaf0 30%, #e3d7bb); }
.ntc.c-loco { background: linear-gradient(135deg, #e3c46d, #9f7a2c); }
.ntc.c-loco .ntc-top, .ntc.c-loco .ntc-foot { background: #2b2b30; color: #f2dc9a; }
.ntc.c-loco .ntc-oval { box-shadow: inset 0 0 0 1.4cqw #c8a24a, inset 0 0 0 2.4cqw rgba(0,0,0,.15); }
.ntc .ntc-rainbow { position: absolute; left: 0; right: 0; top: 0; height: 2.4cqw; display: flex; z-index: 2; }
.ntc .ntc-rainbow i { flex: 1; }
.ntc .ntc-count { position: absolute; right: -6%; top: -5%; min-width: 34%; padding: 0 6%; height: 22%; max-height: 30px; border-radius: 999px; background: #141414; color: #fff; font: 900 calc(var(--cw, 90px) * .2)/1 "Inter", Arial, sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.4); border: 2px solid #fff; z-index: 3; }
.ntc.dim { filter: saturate(.35) brightness(.78); }
/* backs */
.ntc.ntc-back { background: linear-gradient(160deg, #c9ad73, #8a6d3b); }
.ntc.ntc-back .ntc-in { background: radial-gradient(ellipse at 50% 40%, #24425a, #142636); align-items: center; justify-content: center; gap: 2cqw; color: #e7cf94; box-shadow: inset 0 0 0 2cqw #142636, inset 0 0 0 2.8cqw #c9ad73; }
.ntc.ntc-back.k-ticket .ntc-in { background: radial-gradient(ellipse at 50% 40%, #f6ead0, #e3cfa2); color: #7a3b22; box-shadow: inset 0 0 0 2cqw #e3cfa2, inset 0 0 0 2.8cqw #7a3b22; }
.ntc.ntc-back .ntc-emb { width: 56%; height: auto; }
.ntc.ntc-back .ntc-bname { font-family: "IM Fell English SC", Georgia, serif; font-size: 14cqw; line-height: 1; letter-spacing: .06em; }
.ntc.ntc-back .ntc-bsub { font-size: 9cqw; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.ntc-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); font-family: var(--font, Inter, sans-serif); }
.ntc-explain .ntc-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.ntc-explain p { margin: 5px 0 0; }

/* ---- destination tickets ---- */
.ntt { --tw: 300px; width: var(--tw); container-type: inline-size; position: relative; flex: none; font-family: "Spectral", Georgia, serif; color: #2a2218; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.ntt .ntt-in { position: relative; display: grid; grid-template-columns: 52% 1fr; grid-template-rows: auto 1fr; gap: 0 3cqw; padding: 3cqw 4cqw 3.5cqw 6cqw; border-radius: 3cqw; background: linear-gradient(180deg, #fbf3df, #f1e2bd); box-shadow: inset 0 0 0 .7cqw rgba(122,59,34,.55), inset 0 0 0 1.6cqw #fbf3df, inset 0 0 0 2cqw rgba(122,59,34,.35);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 2.4cqw, #000 2.5cqw) left / 100% 7cqw repeat-y; mask: radial-gradient(circle at 0 50%, transparent 2.4cqw, #000 2.5cqw) left / 100% 7cqw repeat-y; }
.ntt .ntt-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-family: "IM Fell English SC", Georgia, serif; font-size: 5cqw; letter-spacing: .14em; color: #7a3b22; border-bottom: .5cqw dashed rgba(122,59,34,.45); padding-bottom: 1.4cqw; margin-bottom: 2cqw; min-height: 11cqw; }
.ntt .ntt-map { width: 100%; height: auto; display: block; border-radius: 1.6cqw; box-shadow: inset 0 0 0 .5cqw rgba(0,0,0,.2); }
.ntt .ntt-sea { fill: #bcd7d3; }
.ntt .ntt-land { fill: #efe1bf; stroke: #6b5638; stroke-width: 3; }
.ntt .ntt-intl { fill: none; stroke: #8e5b45; stroke-width: 4; stroke-dasharray: 14 8; opacity: .7; }
.ntt .ntt-rt { fill: none; stroke: rgba(70,55,35,.35); stroke-width: 6; }
.ntt .ntt-dot { fill: #fffaf0; stroke: #5a4630; stroke-width: 4; }
.ntt .ntt-arc { fill: none; stroke: #c2410c; stroke-width: 9; stroke-dasharray: 22 14; stroke-linecap: round; }
.ntt .ntt-end { fill: #c2410c; stroke: #fff; stroke-width: 7; }
.ntt .ntt-cities { display: flex; flex-direction: column; justify-content: center; gap: .5cqw; min-width: 0; }
.ntt .ntt-cities b { font-size: 6.8cqw; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.ntt .ntt-cities i { font-size: 4.6cqw; color: #7a3b22; letter-spacing: .1em; }
.ntt .ntt-val { flex: none; min-width: 12cqw; height: 12cqw; border-radius: 999px; padding: 0 2.4cqw; background: #7a3b22; color: #fbf3df; font: 800 7.4cqw/12cqw "Spectral", Georgia, serif; letter-spacing: 0; text-align: center; box-shadow: 0 0 0 .7cqw #fbf3df, 0 0 0 1.2cqw #7a3b22; margin: -1cqw -1cqw 0 0; }
.ntt .ntt-stamp { position: absolute; left: 13cqw; top: 42%; transform: rotate(-14deg); font-family: "IM Fell English SC", Georgia, serif; font-size: 9cqw; letter-spacing: .1em; padding: .6cqw 3cqw; border: 1cqw solid currentColor; border-radius: 2cqw; opacity: .88; background: rgba(251,243,223,.55); }
.ntt .ntt-stamp.ok { color: #1f7a3a; }
.ntt .ntt-stamp.no { color: #b42318; }
.ntt.s-fail .ntt-in { filter: saturate(.6); }
.ntt.picked .ntt-in { box-shadow: inset 0 0 0 .7cqw rgba(122,59,34,.55), inset 0 0 0 1.6cqw #fbf3df, inset 0 0 0 2.4cqw #2f9e44; }
.ntt.unpicked { opacity: .5; }

/* /phone/games/notticket.css */
/* Train Routes on the phone. Dark first, light after. */
body.g-notticket { font-family: "Spectral", Georgia, serif; height: auto; min-height: 100%; }
.ntp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 236px; }
.ntp-bar { display: contents; }
.ntp-act:empty, .ntp-log:empty { display: none; }
.ntp-mapcard, .ntp-market, .ntp-tix, .ntp-opp { background: rgba(9,15,13,.62); border: 1px solid rgba(201,173,115,.45); }

/* whose turn */
.ntp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 14px; font-size: 16px; font-family: var(--font); }
.ntp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd23f, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: ntp-pop .35s cubic-bezier(.2,1.4,.4,1) both, ntp-throb 1.6s ease-in-out .4s infinite; }
.ntp-turnbar.me b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: .02em; }
.ntp-turnbar.me span { font-size: 15px; font-weight: 700; }
.ntp-turnbar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.ntp-turnbar.idle b { color: var(--text); }
@keyframes ntp-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes ntp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.012); } }
.ntp-last { margin-top: -4px; text-align: center; font: 800 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #1b1b1b; background: #ff7a55; border-radius: 999px; padding: 7px 0; animation: ntp-blink 1.2s ease-in-out infinite; }
@keyframes ntp-blink { 50% { opacity: .7; } }
body.ntp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: ntp-frame 1.6s ease-in-out infinite; }
@keyframes ntp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.ntp.waiting .ntp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.ntp.waiting .ntp-fan .ntc.peeking { opacity: 1; }

/* everyone at the table */
.ntp-opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; font-family: var(--font); }
.ntp-opp { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 7px; row-gap: 1px; align-items: center; border-radius: 14px; padding: 6px 9px 6px 6px; font-size: 13px; font-weight: 700; border-width: 2px; border-color: transparent; }
.ntp-opp .avatar { grid-row: 1 / 3; }
.ntp-opp.turn { border-color: #ffb800; box-shadow: 0 0 12px rgba(255,184,0,.45); }
.ntp-opp .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntp-opp .pt { background: rgba(255,210,63,.18); color: #ffd23f; border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.ntp-opp .st { grid-column: 2 / 4; display: flex; align-items: center; gap: 3px; color: var(--label-2); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ntp-opp .st i { display: inline-block; margin-left: 5px; }
.ntp-opp .st i:first-child { margin-left: 0; }
.ntp-opp .st i.tr { width: 14px; height: 7px; border-radius: 2px; border: 1px solid #141414; }
.ntp-opp .st i.cd { width: 8px; height: 11px; border-radius: 2px; background: linear-gradient(160deg, #c9ad73, #8a6d3b); }
.ntp-opp .st i.tk { width: 11px; height: 8px; border-radius: 2px; background: #f1e2bd; box-shadow: inset 0 0 0 1px #7a3b22; }

/* the face-up row and the deck */
.ntp-market { border-radius: 16px; padding: 8px 8px 10px; }
.ntp-mlabel { font: 600 14px/1.2 var(--font); color: var(--label-2); text-align: center; margin-bottom: 6px; }
.ntp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; justify-items: center; --cw: min(12.4vw, 54px); }
.ntp-slot { background: none; border: none; padding: 0; position: relative; border-radius: 6px; cursor: pointer; }
.ntp-slot:disabled { cursor: default; }
.ntp-slot.empty { width: var(--cw); aspect-ratio: 44 / 68; border: 2px dashed rgba(230,200,140,.3); }
.ntp-slot.can .ntc { box-shadow: 0 0 0 2.5px #ffd23f, 0 0 14px rgba(255,210,63,.6), 0 4px 10px rgba(0,0,0,.4); animation: ntp-bob 1.6s ease-in-out infinite; }
.ntp-slot.can:active .ntc { transform: scale(.94); }
@keyframes ntp-bob { 50% { transform: translateY(-2px); } }
.ntp-slot.deck .ntc-count { font-size: 12px; min-width: 24px; height: 20px; right: -8px; top: -6px; }

/* claim / tickets buttons */
.ntp-act { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.ntp-act .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 62px; padding: 10px 12px; font-family: var(--font); }
.ntp-act .btn b { font-size: 17px; }
.ntp-act .btn small { font-size: 14px; font-weight: 600; line-height: 1.15; }
.ntp-claim { background: #237a3e !important; color: #fff; }
.ntp-tkt { background: #f1e2bd !important; color: #4a2410; box-shadow: inset 0 0 0 2px #7a3b22; }

/* the map */
.ntp-mapcard { border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ntp-maphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 14px/1.25 var(--font); color: var(--label-2); padding: 0 2px; }
.ntp-maphead b { color: #ffd23f; }
.ntp-zoom { flex: none; border: none; border-radius: 999px; padding: 12px 16px; min-height: 44px; font: 700 14px/1 var(--font); background: rgba(255,255,255,.12); color: var(--text); cursor: pointer; min-height: 32px; }
.ntp-mapwrap { border-radius: 10px; overflow: hidden; }
.ntp-mapwrap .ntm { width: 100%; height: auto; }
.ntp-mapwrap.zoom { overflow: auto; max-height: 52vh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ntp-mapwrap.zoom .ntm { width: 820px; max-width: none; }
.ntp-svg.fit .ntm-labels text { font-size: 34px; stroke-width: 9px; }
.ntp-svg.fit .ntm-labels text.hub { font-size: 46px; }
.ntp-svg.fit .ntm-regions, .ntp-svg.fit .ntm-water, .ntp-svg.fit .ntm-fares, .ntp-svg.fit .ntm-cart, .ntp-svg.fit .ntm-compass, .ntp-svg.fit .ntm-peak { display: none; }
.ntp-svg.fit .ntm-ring { stroke-width: 7; r: 19; }
.ntp-svg.fit .ntm-legal path { stroke-width: 28; }
.ntp-svg.zoom .ntm-labels text { font-size: 18px; }
.ntp-svg.zoom .ntm-labels text.hub { font-size: 24px; }

/* my tickets */
.ntp-tix { border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ntp-label { display: flex; justify-content: space-between; gap: 8px; font: 800 11px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); padding: 0 2px 2px; }
.ntp-trow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px solid transparent; border-radius: 12px; padding: 8px 10px; background: linear-gradient(180deg, #fbf3df, #efdfb8); color: #2a2218; cursor: pointer; min-height: 52px; font-family: "Spectral", Georgia, serif; }
.ntp-trow .v { width: 34px; height: 34px; border-radius: 50%; background: #7a3b22; color: #fbf3df; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.ntp-trow .c { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ntp-trow .c b { font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntp-trow .bar { display: block; height: 6px; border-radius: 999px; background: rgba(122,59,34,.18); overflow: hidden; }
.ntp-trow .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d97706, #f59e0b); }
.ntp-trow > span:last-child { font: 700 14px/1.2 var(--font); color: #7a3b22; text-align: right; white-space: nowrap; }
.ntp-trow .ok { color: #1f7a3a; } .ntp-trow .no { color: #b42318; }
.ntp-trow.done .bar i { background: #2f9e44; }
.ntp-trow.blocked { opacity: .75; }
.ntp-trow.on { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255,210,63,.45); }
.ntp-empty { font-size: 14px; color: var(--label-2); font-style: italic; padding: 4px 2px; }
.ntp-log { font: 500 14px/1.45 var(--font); color: var(--label-2); padding: 0 4px; }
.ntp-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntp-log .l-claim { color: var(--text); font-weight: 700; } .ntp-log .l-last { color: #ff8a6a; font-weight: 700; }

/* the hand, fanned by colour */
.ntp-dock { padding-top: 26px; background: linear-gradient(to top, rgba(8,12,11,.97) calc(100% - 14px), rgba(8,12,11,0)) !important; }
.ntp-handline { display: flex; justify-content: space-between; font: 800 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(238,241,248,.6); padding: 0 6px 4px; }
.ntp-fan { height: calc(var(--cw) * 68 / 44 + 34px); }
.ndp-fan .ntc { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .ntc.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .ntc.lit { box-shadow: 0 0 0 3px #ffd23f, 0 0 16px rgba(255,210,63,.55), 0 6px 14px rgba(0,0,0,.4); }
.ndp-fan .ntc.stack { box-shadow: 3px -3px 0 -1px var(--cd), 6px -6px 0 -2px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.4); }
.ndp-fan .ntc.stack.lit { box-shadow: 3px -3px 0 -1px var(--cd), 0 0 0 3px #ffd23f, 0 0 16px rgba(255,210,63,.55), 0 6px 14px rgba(0,0,0,.4); }
.ndp-fan .ntc .ntc-count { font-size: 15px; height: 24px; min-width: 32px; right: auto; left: -8px; top: -9px; }
.ndp-fan .ntc.ntp-in { animation: ntp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes ntp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.ntp-peekcard { --cw: min(42vw, 168px); }
.ntp-big { --cw: min(44vw, 180px); }
.ntp-big.small { --cw: min(30vw, 120px); }

/* sheets */
.ntp-sub { font: 800 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); margin-top: 4px; }
.btn.ntp-pay { display: flex; align-items: center; gap: 10px; text-align: left; font-family: var(--font); font-size: 15px !important; min-height: 52px !important; background: #2f8f4e; color: #fff; }
.ntp-dots { display: inline-flex; gap: 3px; flex: none; }
.ntp-dots i { width: 13px; height: 18px; border-radius: 3px; border: 1.5px solid rgba(0,0,0,.6); }
.ntp-dots i.loco { background: conic-gradient(#d23a2e 0 12%, #ec7a26 0 25%, #f1c22e 0 37%, #3b9a4c 0 50%, #2c6cc4 0 62%, #8b4cb0 0 75%, #2a2a2f 0 87%, #f3f0e6 0); }
.ntp-rhead { display: flex; align-items: center; gap: 12px; }
.ntp-rcars { display: inline-flex; gap: 3px; flex: none; }
.ntp-rcars i { width: 15px; height: 26px; border-radius: 3px; border: 1.5px solid rgba(0,0,0,.6); }
.ntp-rcars.sm i { width: 9px; height: 16px; border-radius: 2px; }
.ntp-rlist { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; }
.ntp-ritem { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: none; background: rgba(255,255,255,.07); color: var(--text); text-align: left; cursor: pointer; font-family: var(--font); }
.ntp-ritem .nm { font-weight: 700; font-size: 15px; min-width: 0; }
.ntp-ritem .pt { font-weight: 800; color: #ffd23f; }
.ntp-offers { display: flex; flex-direction: column; gap: 10px; }
.ntp-opick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; padding: 0; cursor: pointer; color: var(--text); }
.ntp-opick .ntt { --tw: min(64vw, 260px); transition: transform .15s; }
/* sheets: the scrolling part, then a solid footer with the buttons (nothing pinned on top of anything) */
.ntp-ov .ndp-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 0; gap: 0; max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
.ntp-sx { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; }
.ntp-sacts { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; background: #121a26; border-top: 1px solid rgba(255,255,255,.14); }
[data-theme="light"] .ntp-sacts { background: #fff; border-top-color: rgba(0,0,0,.1); }
.ntp-sacts .btn.ghost { min-height: 48px; }
.ntp-sacts .btn.primary:disabled { opacity: 1; background: #8e8e93; color: #f2f2f7; }
.ntp-ov .ndp-pick > .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 38px - min(44vw, 180px) * 1.5); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 38px - min(44vw, 180px) * 1.5); }
@media (max-height: 700px) { .ntp-dock .ndp-fanhint { display: none; } .ntp-dock { padding-top: 22px; } }
.ntp-opick.on .ntt { transform: scale(1.02); }
.ntp-need { font: 600 14px/1.2 var(--font); color: var(--label-2); }
.ntp-check { position: absolute; left: 14px; bottom: 34px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 18px/1 var(--font); background: rgba(0,0,0,.35); color: #fff; border: 2px solid #fff; }
.ntp-opick.on .ntp-check { background: #2f9e44; }

/* big moments and the private ticket toast */
.ntp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), rgba(0,0,0,.6) 75%); animation: ntp-moment 3s ease both; }
@keyframes ntp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.ntp-moment .big { font-family: "IM Fell English SC", Georgia, serif; font-size: 70px; line-height: .9; color: #ffd23f; text-shadow: 4px 4px 0 #8a1d15, 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-5deg); text-align: center; animation: ntp-slam .5s cubic-bezier(.2,1.5,.4,1) both; padding: 0 12px; }
@keyframes ntp-slam { from { transform: rotate(-5deg) scale(3); opacity: 0; } }
.ntp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font: 800 16px/1.25 var(--font); padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 92vw; }
.ntp-moment .avatar { width: 40px; height: 40px; font-size: 18px; flex: none; }
.ntp-done { position: fixed; left: 50%; top: 18%; z-index: 85; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 18px; background: linear-gradient(180deg, #fbf3df, #efdfb8); color: #2a2218; box-shadow: 0 0 0 3px #2f9e44, 0 20px 50px rgba(0,0,0,.45); pointer-events: none; animation: ntp-toast 2.8s cubic-bezier(.2,1.3,.4,1) both; white-space: nowrap; }
.ntp-done b { font-family: "IM Fell English SC", Georgia, serif; font-size: 26px; font-weight: 400; color: #1f7a3a; }
.ntp-done span { font: 700 14px/1.2 var(--font); }
@keyframes ntp-toast { 0% { opacity: 0; transform: translate(-50%, -20px) scale(.8); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* the end */
.ntp-endart { width: 190px; --cw: 92px; display: flex; justify-content: center; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.ntp-endart .ntc-art { width: 190px; height: auto; }
.ntp-endart.win { animation: ntp-chug 1.2s ease-in-out infinite; }
@keyframes ntp-chug { 50% { transform: translateX(6px) rotate(-1deg); } }
.ntp-end { padding-bottom: 40px; }
.ntp-break { display: flex; flex-direction: column; gap: 2px; background: rgba(9,15,13,.62); border: 1px solid rgba(201,173,115,.45); border-radius: 16px; padding: 10px 14px; font-family: var(--font); }
.ntp-break div { display: flex; justify-content: space-between; font-size: 16px; padding: 4px 0; }
.ntp-break b { font-variant-numeric: tabular-nums; }
.ntp-break .pos { color: #7ee0a1; } .ntp-break .neg { color: #ff8a6a; }
.ntp-break .tot { border-top: 1px solid rgba(201,173,115,.35); margin-top: 4px; padding-top: 8px; font-size: 20px; font-weight: 800; }
.ntp-break .tot b { color: #ffd23f; font-family: "IM Fell English SC", Georgia, serif; font-size: 28px; font-weight: 400; }
.ntp-score { display: flex; flex-direction: column; gap: 6px; }
.ntp-srow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(9,15,13,.62); border: 1px solid rgba(201,173,115,.45); }
.ntp-srow.me { border-color: #ffd23f; box-shadow: 0 0 0 1px #ffd23f; }
.ntp-srow .rk { flex: none; width: 22px; text-align: center; font: 800 18px var(--font); color: #ffd23f; }
.ntp-srow .nm { flex: 1; min-width: 0; font: 700 16px var(--font); }
.ntp-srow .nm small { display: block; font-weight: 600; font-size: 14px; color: var(--label-2); }
.ntp-srow b { font: 800 24px var(--font); font-variant-numeric: tabular-nums; }
[data-theme="light"] .ntp-srow { background: rgba(255,251,240,.86); border-color: rgba(168,136,90,.55); }
[data-theme="light"] .ntp-srow .rk { color: #9a6410; }
.ntp-endtix { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ntp-endtix .ntt { --tw: min(88vw, 340px); }

/* ---- light theme ---- */
[data-theme="light"] .ntp-mapcard, [data-theme="light"] .ntp-market, [data-theme="light"] .ntp-tix, [data-theme="light"] .ntp-opp, [data-theme="light"] .ntp-break { background: rgba(255,251,240,.86); border-color: rgba(168,136,90,.55); box-shadow: 0 4px 14px rgba(80,55,20,.08); }
[data-theme="light"] .ntp-turnbar.idle { background: rgba(255,251,240,.86); box-shadow: 0 4px 14px rgba(80,55,20,.08); }
[data-theme="light"] .ntp-opp .pt { background: rgba(183,121,31,.15); color: #8a5a00; }
[data-theme="light"] .ntp-slot.empty { border-color: rgba(120,90,40,.3); }
[data-theme="light"] .ntp-slot.can .ntc { box-shadow: 0 0 0 2.5px #e09b00, 0 0 12px rgba(224,155,0,.45), 0 4px 10px rgba(80,55,20,.25); }
[data-theme="light"] .ntp-maphead b { color: #9a5b00; }
[data-theme="light"] .ntp-zoom { background: rgba(120,90,40,.12); }
[data-theme="light"] .ntp-handline { color: var(--label-2); }
[data-theme="light"] body.g-notticket .ntp-dock { background: linear-gradient(to top, rgba(236,226,204,.99) calc(100% - 14px), rgba(236,226,204,0)) !important; }
[data-theme="light"] .ndp-fan .ntc.lit { box-shadow: 0 0 0 3px #e09b00, 0 0 14px rgba(224,155,0,.45), 0 6px 14px rgba(80,55,20,.25); }
[data-theme="light"] .ntp-ritem { background: rgba(120,90,40,.08); }
[data-theme="light"] .ntp-ritem .pt { color: #9a5b00; }
[data-theme="light"] .ntp-log .l-last { color: #c2410c; }
[data-theme="light"] .ntp-break .pos { color: #1f7a3a; } [data-theme="light"] .ntp-break .neg { color: #c2410c; }
[data-theme="light"] .ntp-break .tot b { color: #9a6410; }
[data-theme="light"] .ntp-break .tot { border-top-color: rgba(120,90,40,.25); }

.ntp-turnbar { position: relative; }
.ntp-turnbar .tclock { width: 46px; height: 46px; margin-left: auto; }
.ntp-turnbar .tclock b { font-size: 18px; }
.ntp-turnbar.me .tclock { position: absolute; right: 12px; top: 8px; margin: 0; }
.ntp-turnbar.idle .tclock .fg { stroke: var(--text); }
.ntp-turnbar.idle .tclock .bg { stroke: rgba(255,255,255,.18); }

/* a short phone: the hand is the last block of the page, so it never covers the face-up cards or the buttons */
@media (max-height: 700px) {
  .ntp { padding-bottom: 8px !important; }
  .ntp-dock { position: static; padding: 0; background: none; max-width: none; margin: 0; }
}

/* /shared/notmonopoly.css */
/* Property Tycoon, shared by the TV and the phones: title deeds, Rain Check and
   Community Centre cards, pieces, dice, the board ring and the table surface.
   Dark rules first, [data-theme="light"] overrides at the end. */
.nmdeed, .nmdeed *, .nmcard, .nmcard *, .nm-board, .nm-board * { box-sizing: border-box; }

/* ---- the table surface ---- */
.tbl-mono {
  --tbl-edge: #08130e; --tbl-rim: #2f5e47; --tbl-glow: rgba(160,230,190,.10);
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(120,200,160,.14), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #123326 0%, #0d271d 60%, #0a1f17 100%);
}
[data-theme="light"] .tbl-mono {
  --tbl-edge: #ffffff; --tbl-rim: #b9cdb6; --tbl-glow: rgba(255,255,255,.4);
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255,255,255,.55), transparent 70%),
    repeating-linear-gradient(45deg, rgba(40,90,60,.035) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(40,90,60,.03) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #e4eee0 0%, #dae8d6 60%, #d2e2cd 100%);
}

/* ---- pieces ---- */
.nm-token { --ts: 34px; width: var(--ts); height: var(--ts); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--tc) 55%, #fff) 0, var(--tc) 48%, color-mix(in srgb, var(--tc) 62%, #000) 100%);
  box-shadow: 0 0 0 calc(var(--ts) * .07) #fff, 0 0 0 calc(var(--ts) * .11) rgba(10,14,20,.7), 0 calc(var(--ts) * .12) calc(var(--ts) * .22) rgba(0,0,0,.45); }
.nm-token svg { width: 74%; height: 74%; filter: drop-shadow(0 1px 1.2px rgba(0,0,0,.55)) drop-shadow(0 0 1px rgba(0,0,0,.6)); }

/* ---- dice ---- */
.nm-die { --ds: 64px; width: var(--ds); height: var(--ds); border-radius: 20%; background: linear-gradient(160deg, #ffffff, #ece8dc); display: inline-grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: calc(var(--ds) * .15); flex: none;
  box-shadow: inset 0 calc(var(--ds) * -.07) 0 rgba(0,0,0,.12), 0 calc(var(--ds) * .12) calc(var(--ds) * .25) rgba(0,0,0,.35); }
.nm-die i { width: 74%; aspect-ratio: 1; border-radius: 50%; place-self: center; }
.nm-die i.on { background: radial-gradient(circle at 40% 35%, #444, #111); }

/* ---- title deeds (size with --cw) ---- */
.nmdeed {
  width: var(--cw, 100px); aspect-ratio: 5 / 7; container-type: inline-size; position: relative; flex: none; overflow: hidden;
  border-radius: calc(var(--cw, 100px) * .06); background: #fbf8ee; color: #1b1f2a; padding: calc(var(--cw, 100px) * .05);
  box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .1) rgba(0,0,0,.4), inset 0 0 0 calc(var(--cw, 100px) * .012) rgba(0,0,0,.14);
  font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Avenir Next", system-ui, sans-serif; user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column;
}
.nmdeed .nd-band { position: relative; background: var(--sc); color: var(--si); border: .9cqw solid #1b1f2a; border-radius: 2.4cqw; padding: 2.6cqw 3cqw 3.4cqw; text-align: center; }
.nmdeed .nd-band small { display: block; font-size: 5.6cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; line-height: 1.1; }
.nmdeed .nd-band b { display: block; font-size: 11cqw; font-weight: 900; line-height: .96; text-transform: uppercase; letter-spacing: .01em; margin-top: 1cqw; }
.nmdeed .nd-band .nm-blds { position: absolute; right: 2cqw; bottom: -4.6cqw; display: flex; gap: .6cqw; background: #fbf8ee; border: .7cqw solid #1b1f2a; border-radius: 99px; padding: .8cqw 1.8cqw; }
.nmdeed .nd-band .nm-blds svg { width: 7cqw; height: 7cqw; }
.nmdeed .nd-rows { margin: 3.4cqw 2.4cqw 0; display: flex; flex-direction: column; }
.nmdeed .nd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; font-size: 6.3cqw; font-weight: 700; color: #3b3528; padding: .75cqw 0; border-bottom: .45cqw dotted rgba(0,0,0,.2); line-height: 1.1; }
.nmdeed .nd-row b { color: #12161f; font-weight: 900; font-size: 7cqw; }
.nmdeed .nd-row.set span { color: #12161f; }
.nmdeed .nd-foot { margin: auto 1cqw 0; display: flex; flex-direction: column; gap: .4cqw; font-size: 5.2cqw; font-weight: 700; color: #5b5240; text-align: center; border-top: .7cqw solid #1b1f2a; padding-top: 1.8cqw; line-height: 1.12; }
.nmdeed .nd-art { display: flex; justify-content: center; margin: 4cqw 0 1cqw; color: #1b1f2a; }
.nmdeed .nd-art svg { width: 34cqw; height: 34cqw; }
.nmdeed .nd-util { font-size: 6.6cqw; font-weight: 700; color: #3b3528; text-align: center; line-height: 1.25; margin: 2cqw 3cqw; }
.nmdeed .nd-util b { color: #12161f; font-size: 7.6cqw; }
.nmdeed.k-transit .nd-band, .nmdeed.k-utility .nd-band { background: #fbf8ee; color: #1b1f2a; }
.nmdeed .nd-stamp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; background: repeating-linear-gradient(45deg, rgba(60,40,20,.13) 0 2cqw, rgba(251,248,238,.55) 2cqw 5cqw); }
.nmdeed .nd-stamp b { font-size: 11cqw; font-weight: 900; color: #c81e1e; border: 1.4cqw solid #c81e1e; border-radius: 3cqw; padding: 1cqw 4cqw; transform: rotate(-18deg); background: rgba(251,248,238,.92); letter-spacing: .04em; }
.nmdeed .nd-stamp span { font-size: 6.4cqw; font-weight: 800; color: #7a1414; background: rgba(251,248,238,.92); border-radius: 99px; padding: .6cqw 3cqw; transform: rotate(-18deg) translateY(4cqw); }
.nmdeed .nd-price { display: none; }
.nmdeed.fresh { animation: nm-in .55s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes nm-in { from { transform: translateY(-40%) rotate(-8deg) scale(.6); opacity: 0; } }

/* ---- Rain Check and Community Centre cards (size with --cw; landscape by default) ---- */
.nmcard { width: var(--cw, 300px); aspect-ratio: 8 / 5; container-type: inline-size; position: relative; flex: none; overflow: hidden;
  border-radius: calc(var(--cw, 300px) * .05); padding: calc(var(--cw, 300px) * .045) calc(var(--cw, 300px) * .06);
  box-shadow: 0 calc(var(--cw, 300px) * .03) calc(var(--cw, 300px) * .09) rgba(0,0,0,.4), inset 0 0 0 calc(var(--cw, 300px) * .012) rgba(255,255,255,.35);
  font-family: "Avenir Next", "Futura", "Inter", Arial, sans-serif; display: flex; flex-direction: column; align-items: center; text-align: center; user-select: none; -webkit-user-select: none; }
.nmcard.d-chance { color: #fff; background: repeating-linear-gradient(105deg, rgba(255,255,255,.07) 0 .7cqw, transparent .7cqw 6cqw), linear-gradient(160deg, #46709e, #2c4a70); }
.nmcard.d-chest { color: #3a2604; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.4), transparent 45%), linear-gradient(160deg, #fbd774, #f0b12a); }
.nmcard .nc-head { display: flex; align-items: center; gap: 2cqw; font-size: 4.6cqw; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.nmcard .nc-ico svg { width: 8cqw; height: 8cqw; display: block; }
.nmcard.d-chance .nc-ico svg path, .nmcard.d-chance .nc-ico svg text { filter: brightness(1.6); }
.nmcard .nc-title { font-size: 8.4cqw; font-weight: 900; line-height: 1; margin: 2.6cqw 0 2cqw; letter-spacing: -.01em; }
.nmcard .nc-text { font-size: 5.6cqw; font-weight: 600; line-height: 1.22; max-width: 92%; }
.nmcard .nc-keep { margin-top: auto; font-size: 3.8cqw; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; border-top: .4cqw solid currentColor; padding-top: 1cqw; opacity: .8; }
.nmcard.portrait { width: var(--cw, 100px); aspect-ratio: 5 / 7; padding: calc(var(--cw, 100px) * .07) calc(var(--cw, 100px) * .06); border-radius: calc(var(--cw, 100px) * .06); }
.nmcard.portrait .nc-head { flex-direction: column; font-size: 6.4cqw; letter-spacing: .1em; gap: 1cqw; }
.nmcard.portrait .nc-ico svg { width: 26cqw; height: 26cqw; }
.nmcard.portrait .nc-title { font-size: 12cqw; margin: 3cqw 0; }
.nmcard.portrait .nc-text { font-size: 7.2cqw; }
.nmcard.portrait .nc-keep { font-size: 5.6cqw; }
.nmcard.back { justify-content: center; }
.nmcard .nc-backin { position: absolute; inset: 4cqw; border-radius: 3cqw; border: .8cqw dashed rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; }
.nmcard.d-chest .nc-backin { border-color: rgba(90,58,4,.4); }
.nmcard .nc-backin .nc-ico svg { width: 22cqw; height: 22cqw; }
.nmcard .nc-backin b { font-size: 7cqw; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nmcard.flip { animation: nm-flip .7s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes nm-flip { 0% { transform: perspective(900px) rotateY(90deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

/* ---- explanations (phones) ---- */
.nm-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.nm-explain .nm-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.nm-explain p { margin: 6px 0 0; }

/* ---- the board ring (size with --B on .nm-board; children use cqw of the board) ---- */
.nm-board {
  --B: 900px; --bd-line: #08100c; --bd-sp: #1b2923; --bd-ink: #e8efe9; --bd-ink2: rgba(232,239,233,.66); --bd-mid: #13211a; --bd-jail: #c46f1d;
  width: var(--B); height: var(--B); position: relative; container-type: size; flex: none;
  display: grid; grid-template-columns: calc(var(--B) * .13) repeat(9, 1fr) calc(var(--B) * .13); grid-template-rows: calc(var(--B) * .13) repeat(9, 1fr) calc(var(--B) * .13);
  gap: calc(var(--B) * .0016); background: var(--bd-line); border: calc(var(--B) * .006) solid var(--bd-line); border-radius: calc(var(--B) * .008);
  box-shadow: 0 calc(var(--B) * .02) calc(var(--B) * .06) rgba(0,0,0,.5);
  font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Avenir Next", system-ui, sans-serif; color: var(--bd-ink);
}
.nm-sp { --sp-bg: var(--bd-sp); --bar: 0px; position: relative; background: var(--bd-sp); overflow: hidden; display: grid; text-align: center; color: var(--bd-ink); }
.nm-sp.k-street { --bar: 2.5cqw; }
.nm-sp.s-b { grid-template-rows: var(--bar) auto 1fr auto; grid-template-areas: "bar" "name" "ico" "price"; }
.nm-sp.s-t { grid-template-rows: auto 1fr auto var(--bar); grid-template-areas: "price" "ico" "name" "bar"; }
.nm-sp.s-l { grid-template-columns: auto 1fr var(--bar); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "ico . bar" "ico name bar" "ico price bar" "ico . bar"; text-align: left; }
.nm-sp.s-r { grid-template-columns: var(--bar) 1fr auto; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "bar . ico" "bar name ico" "bar price ico" "bar . ico"; text-align: left; }
.nm-sp .sp-bar { grid-area: bar; background: var(--sc); position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 .16cqw var(--bd-line); }
.nm-sp .sp-name { grid-area: name; font-size: 1.36cqw; font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: .005em; padding: .55cqw .3cqw .2cqw; }
.nm-sp .sp-name.l8 { font-size: 1.24cqw; }
.nm-sp .sp-name.l9 { font-size: 1.12cqw; letter-spacing: -.01em; }
.nm-sp .sp-price { grid-area: price; font-size: 1.42cqw; font-weight: 900; padding: .2cqw .3cqw .7cqw; color: var(--bd-ink); }
.nm-sp .sp-ico { grid-area: ico; display: flex; align-items: center; justify-content: center; color: var(--bd-ink); padding: .2cqw; min-height: 0; }
.nm-sp .sp-ico svg { width: 4.4cqw; height: 4.4cqw; }
.nm-sp .sp-ico.big svg { width: 5.6cqw; height: 5.6cqw; }
.nm-sp.s-l .sp-name, .nm-sp.s-r .sp-name { padding: 0 .6cqw; font-size: 1.42cqw; }
.nm-sp.s-l .sp-name.l9, .nm-sp.s-r .sp-name.l9 { font-size: 1.22cqw; }
.nm-sp.s-l .sp-price, .nm-sp.s-r .sp-price { padding: .2cqw .6cqw 0; }
.nm-sp.s-l .sp-ico, .nm-sp.s-r .sp-ico { padding: 0 .3cqw 0 .8cqw; }
.nm-sp.s-r .sp-ico { padding: 0 .8cqw 0 .3cqw; }
.nm-sp.s-l .sp-ico svg, .nm-sp.s-r .sp-ico svg { width: 3.8cqw; height: 3.8cqw; }
.nm-sp.s-l .sp-ico.big svg, .nm-sp.s-r .sp-ico.big svg { width: 5cqw; height: 5cqw; }
.nm-sp .nm-blds { display: flex; gap: .15cqw; align-items: center; }
.nm-sp .nm-blds svg { width: 1.9cqw; height: 1.9cqw; filter: drop-shadow(0 .1cqw .1cqw rgba(0,0,0,.45)); }
.nm-sp .nm-blds svg + svg { margin-left: -.25cqw; }
.nm-sp.s-l .nm-blds, .nm-sp.s-r .nm-blds { flex-direction: column; }
.nm-sp.s-l .nm-blds svg + svg, .nm-sp.s-r .nm-blds svg + svg { margin: -.35cqw 0 0; }
.nm-sp .sp-own { position: absolute; z-index: 1; background: var(--oc); box-shadow: 0 0 0 .16cqw rgba(0,0,0,.45); }
.nm-sp.s-b .sp-own { left: 0; right: 0; bottom: 0; height: 1.1cqw; }
.nm-sp.s-t .sp-own { left: 0; right: 0; top: 0; height: 1.1cqw; }
.nm-sp.s-l .sp-own { top: 0; bottom: 0; left: 0; width: 1.1cqw; }
.nm-sp.s-r .sp-own { top: 0; bottom: 0; right: 0; width: 1.1cqw; }
.nm-sp.owned .sp-price { visibility: hidden; }
.nm-sp.mort::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.2) 0 .45cqw, transparent .45cqw 1.3cqw); pointer-events: none; }
.nm-sp.mort .sp-name { opacity: .7; }
.nm-sp.lit { box-shadow: inset 0 0 0 .5cqw #ffb800, inset 0 0 3cqw rgba(255,184,0,.6); z-index: 2; }
.nm-sp.landed { animation: nm-landed 1.6s ease-out both; z-index: 2; }
@keyframes nm-landed { 0% { box-shadow: inset 0 0 0 .7cqw #ffb800, 0 0 4cqw rgba(255,184,0,.9); } 100% { box-shadow: inset 0 0 0 0 rgba(255,184,0,0), 0 0 0 rgba(255,184,0,0); } }

/* corners */
.nm-sp.corner { display: flex; align-items: center; justify-content: center; }
.nm-sp .sp-go { position: relative; width: 100%; height: 100%; }
.nm-sp .sp-gotext { position: absolute; left: 0; right: 4%; top: 0; bottom: 34%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-45deg); line-height: 1; text-align: center; }
.nm-sp .sp-go small { font-size: 1.02cqw; font-weight: 800; text-transform: uppercase; max-width: 8.4cqw; letter-spacing: .02em; line-height: 1.1; }
.nm-sp .sp-go b { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-size: 2.3cqw; font-weight: 900; color: #d0262b; letter-spacing: .01em; margin-top: .5cqw; }
.nm-sp .sp-goarrow { position: absolute; left: 10%; right: 10%; bottom: 6%; display: flex; justify-content: center; transform: scaleX(-1); }
.nm-sp .sp-goarrow svg { width: 9cqw; height: 3.4cqw; }
.nm-sp .sp-corner { display: flex; flex-direction: column; align-items: center; gap: .3cqw; transform: rotate(45deg); font-size: 1.8cqw; font-weight: 900; letter-spacing: .04em; }
.nm-sp.c-tr .sp-corner { transform: rotate(-135deg) rotate(180deg); }
.nm-sp .sp-corner svg { width: 5.4cqw; height: 5.4cqw; color: var(--bd-ink); }
.nm-sp .sp-jail { position: relative; width: 100%; height: 100%; }
.nm-sp .sp-jail .cell { position: absolute; right: 0; top: 0; width: 68%; height: 68%; background: var(--bd-jail); display: flex; align-items: center; justify-content: center; border-left: .3cqw solid var(--bd-line); border-bottom: .3cqw solid var(--bd-line); }
.nm-sp .sp-jail .bars { position: absolute; inset: 12% 10%; background: repeating-linear-gradient(90deg, rgba(20,12,4,.55) 0 .5cqw, transparent .5cqw 1.7cqw); border-radius: .3cqw; }
.nm-sp .sp-jail .cell b { position: relative; font-size: 1.7cqw; font-weight: 900; line-height: 1; color: #fff; background: rgba(20,12,4,.65); padding: .4cqw .7cqw; border-radius: .4cqw; transform: rotate(45deg); }
.nm-sp .sp-jail .jv1 { position: absolute; left: .4cqw; top: 34%; font-size: 1.4cqw; font-weight: 900; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; }
.nm-sp .sp-jail .jv2 { position: absolute; left: 32%; right: 0; bottom: .6cqw; font-size: 1.4cqw; font-weight: 900; letter-spacing: .08em; text-align: center; }

/* the middle */
.nm-mid { position: relative; background: var(--bd-mid); overflow: hidden; }
.nm-logo { display: inline-flex; flex-direction: column; align-items: center; font-family: "Futura", "Avenir Next", Arial, sans-serif; line-height: 1; transform: rotate(-4deg); }
.nm-logo .nm-lword { font-weight: 900; font-size: 6.4cqw; letter-spacing: .06em; padding: .6cqw 2.4cqw .5cqw; background: #1f3a5f; color: #fff; border: .5cqw solid #fff; outline: .45cqw solid #1f3a5f; box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.45); line-height: 1.04; text-align: center; }
.nm-logo .nm-led { margin-top: 1cqw; font-weight: 800; font-size: 1.5cqw; letter-spacing: .34em; padding: .35cqw .8cqw .35cqw 1.2cqw; color: #fff; background: #0e7490; transform: rotate(4deg); box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.3); }

/* ---- light theme ---- */
[data-theme="light"] .nm-board { --bd-line: #1d2b23; --bd-sp: #f6f2e3; --bd-ink: #17211b; --bd-ink2: rgba(23,33,27,.66); --bd-mid: #d6eadb; --bd-jail: #f08a24; box-shadow: 0 calc(var(--B) * .02) calc(var(--B) * .06) rgba(30,60,40,.28); }
[data-theme="light"] .nm-sp.mort::after { background: repeating-linear-gradient(45deg, rgba(60,40,20,.16) 0 .45cqw, transparent .45cqw 1.3cqw); }
[data-theme="light"] .nmdeed { box-shadow: 0 calc(var(--cw, 100px) * .03) calc(var(--cw, 100px) * .1) rgba(30,40,80,.22), inset 0 0 0 calc(var(--cw, 100px) * .012) rgba(0,0,0,.14); }
[data-theme="light"] .nmcard { box-shadow: 0 calc(var(--cw, 300px) * .03) calc(var(--cw, 300px) * .09) rgba(30,40,80,.25), inset 0 0 0 calc(var(--cw, 300px) * .012) rgba(255,255,255,.35); }
/* keep names clear of the owner's strip on the side columns */
.nm-sp.owned.s-l .sp-name, .nm-sp.owned.s-l .sp-price { padding-left: 1.7cqw; }
.nm-sp.owned.s-l .sp-ico { padding-left: 1.7cqw; }
.nm-sp.owned.s-r .sp-ico { padding-right: 1.7cqw; }
.nm-sp.owned.s-b .sp-ico { padding-bottom: 1.2cqw; }
.nm-sp.owned.s-t .sp-ico { padding-top: 1.2cqw; }

/* /phone/games/notmonopoly.css */
/* Property Tycoon on phones. Dark rules first, [data-theme="light"] overrides at the end. */
body.g-notmonopoly { font-family: "Avenir Next", "Futura", "Inter", -apple-system, Arial, sans-serif; }
.nmp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 250px; }

/* whose turn */
.nmp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.nmp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nmp-pop .35s cubic-bezier(.2,1.4,.4,1) both, nmp-throb 1.6s ease-in-out .4s infinite; }
.nmp-turnbar.me b { font-size: 30px; font-weight: 900; letter-spacing: -.01em; line-height: 1; font-family: "Futura", "Avenir Next", Arial, sans-serif; }
.nmp-turnbar.me span { font-size: 16px; font-weight: 800; }
.nmp-turnbar.auction { flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(120deg, #38bdf8, #0284c7); color: #fff; box-shadow: 0 10px 30px rgba(14,165,233,.35); }
.nmp-turnbar.auction b { font-size: 26px; font-weight: 900; letter-spacing: .06em; line-height: 1; }
.nmp-turnbar.auction span { font-weight: 700; }
.nmp-turnbar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.nmp-turnbar.idle b { color: var(--text); }
.nmp-turnbar.idle small { display: block; font-size: 13px; color: var(--label-2); }
@keyframes nmp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes nmp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.nmp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nmp-frame 1.6s ease-in-out infinite; }
@keyframes nmp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.nmp.waiting .ndp-fan { opacity: .66; filter: saturate(.8); transition: opacity .3s; }
.nmp.waiting .ndp-fan .peeking { opacity: 1; }

/* your cash */
.nmp-wallet { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px 14px; }
.nmp-wl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nmp-wl small { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); }
.nmp-wl b { font-size: 34px; font-weight: 900; line-height: 1; color: #a3e635; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nmp-wl span { font-size: 13px; color: var(--label-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmp-jailtag { font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .08em; background: #f08a24; color: #1b1203; border-radius: 6px; padding: 1px 5px; }
.nmp-dice { display: flex; gap: 6px; }
.nmp-dice.rolling .nm-die { animation: nmp-roll .55s cubic-bezier(.2,1.2,.4,1) both; }
.nmp-dice.rolling .nm-die + .nm-die { animation-delay: .07s; }
@keyframes nmp-roll { from { transform: translateY(-30px) rotate(-220deg) scale(.5); opacity: 0; } }
.nmp-delta-host { position: absolute; left: 70px; top: 6px; pointer-events: none; }
.nmp-delta { position: absolute; left: 0; top: 0; font-size: 22px; font-weight: 900; padding: 2px 10px; border-radius: 999px; white-space: nowrap; animation: nmp-delta 1.8s ease-out both; }
.nmp-delta.up { background: #a3e635; color: #0a0d14; }
.nmp-delta.down { background: #ff6b6b; color: #1b0b0b; }
@keyframes nmp-delta { 0% { transform: translate(60px, 20px) scale(.6); opacity: 0; } 15% { transform: translate(60px, 0) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(60px, -36px) scale(1); opacity: 0; } }

/* the one thing to do */
.nmp-panel { background: rgba(0,0,0,.3); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.nmp-panel.danger { border-color: #ff6b6b; }
.nmp-panel.auction { border-color: #38bdf8; }
.nmp-panel.trade { border-color: #a78bfa; }
.nmp-panel.quiet { background: transparent; padding: 0; }
.nmp-panel .btn { min-height: 52px; font-size: 17px; font-weight: 800; }
.nmp-panel .p { font-size: 15px; }
.nmp-ph { font-size: 20px; font-weight: 900; line-height: 1.15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn.nmp-roll { min-height: 84px; font-size: 30px; font-weight: 900; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(160deg, #e0342f, #a3191d); box-shadow: 0 8px 22px rgba(208,38,43,.45); }
.nmp-rollico { display: inline-flex; gap: 5px; }
.nmp-rollico .nm-die:first-child { transform: rotate(-12deg); }
.nmp-rollico .nm-die:last-child { transform: rotate(10deg); }
.btn.nmp-end { min-height: 60px; font-size: 20px; }
.btn.nmp-bankrupt { background: #3a3a3a; color: #fff; }
.btn.nmp-tradebtn { background: rgba(167,139,250,.18); color: var(--text); box-shadow: inset 0 0 0 2px rgba(167,139,250,.6); }
.nmp-row2 { display: flex; gap: 8px; }
.nmp-row2 .btn { flex: 1; }
.nmp-offer { display: flex; gap: 12px; align-items: center; }
.nmp-offer .nmdeed { cursor: pointer; transform: rotate(-3deg); }
.nmp-offerbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nmp-offerbody .timer { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.nmp-offerbody .timer .fill { height: 100%; background: #38bdf8; }
.nmp-offerbody .timer.urgent .fill { background: #ff6b6b; }
.nmp-bids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nmp-lead { text-align: center; font-size: 20px; font-weight: 900; color: #a3e635; padding: 8px; }
.nmp-why { font-size: 14px; color: var(--label-2); background: var(--fill); border-radius: 12px; padding: 8px 12px; }
.nmp-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nmp-terms > div { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; background: var(--fill); border-radius: 12px; padding: 8px; }
.nmp-terms small { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.nmp-dchip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 900; text-transform: uppercase; background: var(--sc); color: var(--si); border-radius: 6px; padding: 4px 8px; border: 2px solid rgba(0,0,0,.4); font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; }
.nmp-dchip.mort { background: repeating-linear-gradient(45deg, var(--sc) 0 5px, rgba(0,0,0,.4) 5px 9px); }
.nmp-dchip.pick, .nmp-cashchip.pick { cursor: pointer; opacity: .55; min-height: 36px; }
.nmp-dchip.pick.on, .nmp-cashchip.pick.on { opacity: 1; box-shadow: 0 0 0 3px #ffd60a; }
.nmp-cashchip { display: inline-flex; align-items: center; background: #a3e635; color: #0a0d14; font-weight: 900; font-size: 14px; border-radius: 999px; padding: 4px 10px; border: none; }
.nmp-cashchip.free { background: #5b7fa8; color: #fff; font-size: 12px; }
.nmp-liftbox { display: flex; flex-direction: column; gap: 6px; }
.nmp-liftrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nmp-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); margin-left: auto; }
.nmp-seg button { border: none; background: none; color: var(--text); font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 7px; min-height: 36px; }
.nmp-seg button.on { background: #636366; }

/* trade composer */
.nmp-tsheet { max-height: 86vh; }
.nmp-tsheet .btn.who { display: flex; align-items: center; gap: 10px; text-align: left; }
.nmp-tsheet .btn.who small { margin-left: auto; color: var(--label-2); font-weight: 600; font-size: 13px; }
.nmp-tcol { display: flex; flex-direction: column; gap: 8px; background: var(--fill); border-radius: 14px; padding: 10px; }
.nmp-tlabel { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); }
.nmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nmp-step { display: flex; align-items: center; gap: 4px; }
.nmp-step button { min-width: 48px; min-height: 40px; border-radius: 10px; border: none; background: var(--bg-3); color: var(--text); font-weight: 800; font-size: 14px; }
.nmp-step b { flex: 1; text-align: center; font-size: 22px; font-weight: 900; color: #a3e635; }
.nmp-step small { font-size: 11px; color: var(--label-2); width: 52px; text-align: right; }

/* everyone else */
.nmp-opps { display: flex; flex-direction: column; gap: 4px; }
.nmp-opp { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: rgba(0,0,0,.18); border: 2px solid transparent; }
.nmp-opp.turn { border-color: #ffb800; }
.nmp-opp.out { opacity: .45; }
.nmp-opp .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.15; }
.nmp-opp .nm small { display: block; font-weight: 600; font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmp-opp .ct { font-weight: 900; font-size: 17px; color: #a3e635; font-variant-numeric: tabular-nums; }
.nmp-sets { display: flex; gap: 3px; }
.nmp-sets i { width: 10px; height: 16px; border-radius: 3px; background: var(--sc); box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.nmp-log { font-size: 13px; color: var(--label-2); line-height: 1.45; padding: 0 4px; }
.nmp-log .l-turn { color: var(--text); font-weight: 700; } .nmp-log .l-good, .nmp-log .l-rent { color: #a3e635; } .nmp-log .l-bad { color: #ff8a8a; } .nmp-log .l-trade { color: #c4b5fd; } .nmp-log .l-auction, .nmp-log .l-card { color: #7dd3fc; }
.nmp-finaltok .nm-token { box-shadow: 0 0 0 5px #fff, 0 0 0 10px #ffb800, 0 20px 40px rgba(0,0,0,.4); }

/* the hand fan */
.ndp-fan .nmdeed, .ndp-fan .nmcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .nmdeed.peeking, .ndp-fan .nmcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ndp-fan .nm-slidein { animation: nmp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nmp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nmp-nodeeds { padding: 40px 20px 0; }
.ndp-bigcard .nmdeed, .ndp-bigcard .nmcard { width: var(--cw); }

/* the big moment */
.nmp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--gc, var(--pc)) 55%, transparent), rgba(0,0,0,.6) 75%); animation: nmp-moment 2.7s ease both; }
@keyframes nmp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.nmp-moment .big { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-size: 70px; font-weight: 900; line-height: .9; color: #fff; letter-spacing: -.02em; text-shadow: 4px 4px 0 #d0262b, 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-6deg); animation: nmp-slam .5s cubic-bezier(.2,1.5,.4,1) both; text-align: center; padding: 0 12px; }
.nmp-moment.k-monopoly .big { color: #ffd23f; }
.nmp-moment.k-rent .big { color: #a3e635; text-shadow: 4px 4px 0 #1b1f2a, 8px 8px 0 rgba(0,0,0,.3); }
.nmp-moment.k-jail .big { color: #f08a24; text-shadow: 4px 4px 0 #1b1f2a, 8px 8px 0 rgba(0,0,0,.3); }
.nmp-moment.k-bankrupt .big { font-size: 56px; }
@keyframes nmp-slam { from { transform: rotate(-6deg) scale(3); opacity: 0; } }
.nmp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 18px; font-weight: 900; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 92vw; line-height: 1.15; }
.nmp-moment .who small { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); }

/* ---- light theme ---- */
[data-theme="light"] .nmp-turnbar.idle, [data-theme="light"] .nmp-wallet, [data-theme="light"] .nmp-panel:not(.quiet), [data-theme="light"] .nmp-opp { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(30,60,40,.08); }
[data-theme="light"] .nmp-panel.danger { border-color: #e5383b; }
[data-theme="light"] .nmp-panel.auction { border-color: #0ea5e9; }
[data-theme="light"] .nmp-panel.trade { border-color: #8b5cf6; }
[data-theme="light"] .nmp-opp.turn { border-color: #f0a500; }
[data-theme="light"] .nmp-wl b, [data-theme="light"] .nmp-opp .ct, [data-theme="light"] .nmp-lead, [data-theme="light"] .nmp-step b { color: #2f7d16; }
[data-theme="light"] .nmp-offerbody .timer { background: rgba(0,0,0,.1); }
[data-theme="light"] .nmp-seg button.on { background: #fff; box-shadow: 0 3px 8px rgba(30,40,80,.16); }
[data-theme="light"] .btn.nmp-tradebtn { background: rgba(139,92,246,.1); box-shadow: inset 0 0 0 2px rgba(139,92,246,.5); }
[data-theme="light"] .nmp-log .l-good, [data-theme="light"] .nmp-log .l-rent { color: #2f7d16; } [data-theme="light"] .nmp-log .l-bad { color: #c81e1e; } [data-theme="light"] .nmp-log .l-trade { color: #6d28d9; } [data-theme="light"] .nmp-log .l-auction, [data-theme="light"] .nmp-log .l-card { color: #0369a1; }
[data-theme="light"] .ndp-fan .nmdeed.peeking, [data-theme="light"] .ndp-fan .nmcard.peeking { box-shadow: 0 14px 30px rgba(30,40,80,.3); }
[data-theme="light"] body.g-notmonopoly .ndp-dock { background: linear-gradient(to top, rgba(222,234,218,.97) 72%, rgba(222,234,218,0)); }
.nmp-r-ov .ndp-bigcard { --cw: min(40vw, 158px); }
.nmp-r-ov .ndp-sheet { max-height: calc(100vh - 262px); }
.nmp-r-ov .nmp-tsheet { max-height: 88vh; }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.nmp .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.nmp .ndp-pick { max-height: 100%; overflow-y: auto; }
.nmp .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* optional turn timer ring in the turn bar */
.nmp-turnbar { position: relative; }
.nmp-turnbar .tclock { margin-left: auto; width: 56px; height: 56px; }
.nmp-turnbar .tclock b { font-size: 22px; }
.nmp-turnbar.me:has(.tclock) { padding-right: 80px; }
.nmp-turnbar.me .tclock { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.nmp-turnbar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.nmp-turnbar.me .tclock.urgent .fg { stroke: #fff; }

/* "See the board": a readable phone board (who is where, every street, owner, buildings) */
.btn.nmp-boardbtn { min-height: 48px; font-size: 15px; font-weight: 800; padding: 8px 12px; margin-bottom: 4px; }
.nmp-opp { cursor: pointer; }
.nmp-bsheet { gap: 8px; }
.nmp-bwhos { display: flex; flex-direction: column; gap: 6px; }
.nmp-bwho { display: flex; align-items: center; gap: 10px; background: var(--fill); border-radius: 12px; padding: 6px 10px; font-size: 15px; }
.nmp-bwho span { flex: 1; min-width: 0; line-height: 1.2; }
.nmp-bwho i { font-style: normal; font-weight: 900; color: #a3e635; font-size: 15px; }
.nmp-bgrp { border-radius: 12px; overflow: hidden; background: var(--fill); }
.nmp-bhead { background: var(--sc); color: var(--si); font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; }
.nmp-bhead small { font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 13px; margin-left: 6px; }
.nmp-brow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 10px; font-size: 14px; border-top: 1px solid rgba(128,128,128,.22); min-height: 44px; }
.nmp-bn { font-weight: 800; flex: 1 1 130px; min-width: 0; }
.nmp-bown { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.nmp-bfree { color: var(--label-2); }
.nmp-bat { display: inline-flex; gap: 2px; }
.nmp-bb { font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #ffd60a; color: #1b1b1b; }
.nmp-bb.mort { background: #3a3a3a; color: #fff; }
[data-theme="light"] .nmp-bwho i { color: #2f7d16; }

/* trade stepper: the amount on top, four 44px buttons 8px apart below it, the limit under that (320px phones) */
.nmp-step { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nmp-step b { grid-column: 1 / -1; grid-row: 1; flex: none; }
.nmp-step button { min-width: 0; min-height: 44px; grid-row: 2; }
.nmp-step small { grid-column: 1 / -1; grid-row: 3; width: auto; text-align: center; font-size: 12px; }

/* Short phones (320x568, 390x664): the action is what the player needs, so it comes first; the
   deed tray shrinks to the tops of the cards (still slide-able and tappable) and the cash line is slim */
@media (max-height: 700px) {
  .nmp { gap: 8px; }
  .nmp-r-turn { order: 0; } .nmp-r-panel { order: 1; } .nmp-r-wallet { order: 2; } .nmp-opps { order: 3; } .nmp-log { order: 4; }
  .nmp-turnbar.me { padding: 8px 14px; }
  .nmp-turnbar.me b { font-size: 24px; }
  .nmp-turnbar.me span { font-size: 15px; }
  .nmp-wallet { padding: 6px 12px; }
  .nmp-wl b { font-size: 28px; }
  .nmp-panel { padding: 8px; gap: 6px; }
  .btn.nmp-roll { min-height: 60px; font-size: 26px; }
  .nmp-panel .btn { min-height: 48px; }
  .nmp-offer .nmdeed { --cw: 84px !important; }
  .nmp-dock .ndp-fan { height: 74px; clip-path: inset(-70px -20px 0 -20px); }
  .nmp-dock .ndp-fanhint { display: none; }
  .nmp-dock { padding-top: 18px; }
}

/* no deeds yet: the tray is only its hint line, not a 160px empty box */
.nmp-dock .ndp-fan:has(.nmp-nodeeds) { height: auto; clip-path: none; }
.nmp-nodeeds { padding: 8px 20px 0 !important; }
.nmp-dock { padding-top: 18px; }
.nmp-bsheet > * { flex: none; }
.nmp-bwho .nm-token, .nmp-bown .nm-token, .nmp-bat .nm-token { flex: none; }
.nmp-bat { align-items: center; font-size: 13px; }
.nmp-bat small { font-size: 13px; color: var(--label-2); margin-right: 4px; }
.nmp-bsheet > .btn.ghost { position: sticky; bottom: -14px; background: inherit; z-index: 2; }

/* While you decide (buy, bid, jail, an offer) the deed tray is the last thing on the page, not a layer over it */
.nmp-dock.inl { position: relative; left: auto; right: auto; bottom: auto; z-index: auto; order: 9; padding: 0; background: none; max-width: none; margin: 4px 0 0; }
.nmp-dock.inl .ndp-fanhint { display: none; }
.nmp-dock.inl .ndp-fan:not(:has(.nmp-nodeeds)) { height: calc(var(--cw) * 1.4 + 34px); clip-path: none; }
/* an empty tray is solid, so its hint never prints over the page behind it */
.nmp-dock:not(.inl):has(.nmp-nodeeds) { background: var(--bg); box-shadow: 0 -1px 0 rgba(0,0,0,.1); }
/* a deed's sheet: the text scrolls, the buttons and Close stay put */
.nmp-deedpick { max-height: 100%; min-height: 0; }
.nmp-deedpick .ndp-bigcard { flex: none; }
.nmp-r-ov .nmp-deedpick .ndp-sheet.pin { max-height: none; overflow: visible; }
@media (max-height: 700px) {
  .nmp-deedpick .ndp-bigcard { display: none; }
  .nmp-deedpick .ndp-sheet .btn { min-height: 48px; }
}
/* (the light theme paints the tray with a longer selector: match it) */
body.g-notmonopoly .nmp-dock.inl, [data-theme="light"] body.g-notmonopoly .nmp-dock.inl { background: none; box-shadow: none; }
body.g-notmonopoly .nmp-dock:not(.inl):has(.nmp-nodeeds), [data-theme="light"] body.g-notmonopoly .nmp-dock:not(.inl):has(.nmp-nodeeds) { background: var(--bg); box-shadow: 0 -1px 0 rgba(0,0,0,.1); }

/* 320x568: the auction's buttons (the bids and "I'm out", which run on a clock) must all sit above the bottom bar */
@media (max-height: 600px) {
  .nmp-panel.auction .nmp-offer .nmdeed { --cw: 64px !important; }
  .nmp-panel.auction .nmp-offerbody .ndp-hint { display: none; }
  .nmp-panel.auction .nmp-bids { gap: 6px; }
  .nmp-panel.auction .btn { min-height: 44px; }
  .nmp-panel.auction { gap: 6px; }
}

/* 320x568, in Jail: roll, pay, use the card and the trade button all sit above the bottom bar */
@media (max-height: 600px) {
  .nmp-panel.jail .btn.nmp-roll { min-height: 56px; font-size: 20px; gap: 8px; }
  .nmp-panel.jail .nmp-rollico .nm-die { --ds: 24px !important; }
  .nmp-panel.jail .nmp-row2 .btn { min-height: 44px; font-size: 15px; padding: 4px 6px; }
  .nmp-panel.jail .p { font-size: 14px; }
  .nmp-panel.jail .btn.nmp-tradebtn { min-height: 44px; }
}

/* /shared/notcarcassonne.css */
/* Castles & Roads: tile colours, the table surface and map highlights, shared by
   the TV and the phones. Dark first (dusk over the countryside), then the light
   theme (a sunny afternoon) overrides. */
:root {
  --ncs-field: #6f9a4c; --ncs-grass: #4f7a34; --ncs-tuft: #93b86a; --ncs-flower: #e8dca0;
  --ncs-road: #d9cba8; --ncs-road-edge: #85714f;
  --ncs-city: #c9b48d; --ncs-wall: #b39d74; --ncs-wall-edge: #574631;
  --ncs-roof: #b3533a; --ncs-roof-2: #8c3c28; --ncs-roof-hi: #d27a59;
  --ncs-abbey: #d9ccae; --ncs-garden: #8fb25f; --ncs-pennant: #3561ad; --ncs-gold: #f0c64a;
  --ncs-seam: rgba(20,15,5,.38);
}
[data-theme="light"] {
  --ncs-field: #97c457; --ncs-grass: #6f9e3a; --ncs-tuft: #c4e07e; --ncs-flower: #fff3b0;
  --ncs-road: #f1e6c8; --ncs-road-edge: #a8916a;
  --ncs-city: #e8d6ad; --ncs-wall: #cfb88c; --ncs-wall-edge: #7d6646;
  --ncs-roof: #d45d3d; --ncs-roof-2: #aa452c; --ncs-roof-hi: #ee9068;
  --ncs-abbey: #f2e8cf; --ncs-garden: #b9d97c; --ncs-pennant: #2b5aa6; --ncs-gold: #f2cc4f;
  --ncs-seam: rgba(70,50,20,.28);
}

/* The table: dusk over the hills (dark), a sunny afternoon (light). */
.tbl-carc {
  --tbl-edge: #141826; --tbl-rim: #59618a; --tbl-glow: rgba(255,190,120,.12);
  background:
    radial-gradient(ellipse 60% 45% at 78% 8%, rgba(255,170,110,.22), transparent 70%),
    radial-gradient(ellipse 80% 50% at 15% 100%, rgba(60,90,70,.35), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #2b2f4d 0%, #2a3346 45%, #1f2a2c 100%);
}
[data-theme="light"] .tbl-carc {
  --tbl-edge: #fffaf0; --tbl-rim: #d9c79c; --tbl-glow: rgba(255,240,200,.4);
  background:
    radial-gradient(ellipse 55% 45% at 85% 0%, rgba(255,236,170,.75), transparent 70%),
    radial-gradient(ellipse 70% 45% at 10% 100%, rgba(170,210,120,.35), transparent 70%),
    repeating-linear-gradient(115deg, rgba(150,120,60,.035) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #fbf3dc 0%, #f4ead0 55%, #ebe2c4 100%);
}

/* ---- the map ---- */
.ncs-map { display: block; width: 100%; height: 100%; overflow: visible; }
.ncs-map .ncs-shadow { fill: rgba(10,8,20,.35); }
[data-theme="light"] .ncs-map .ncs-shadow { fill: rgba(90,70,30,.22); }
.ncs-map .ncs-last { fill: none; stroke: var(--pc); stroke-width: 6; filter: drop-shadow(0 0 6px var(--pc)); animation: ncs-last 1.8s ease-in-out infinite; }
@keyframes ncs-last { 50% { stroke-width: 9; } }
.ncs-map .ncs-drop { transform-box: fill-box; transform-origin: center; animation: ncs-drop .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes ncs-drop { from { transform: scale(1.35); opacity: 0; } }
.ncs-map .ncs-glow { fill: rgba(255,214,90,.28); stroke: #ffd65a; stroke-width: 6; animation: ncs-glow 4.5s ease-out both; }
@keyframes ncs-glow { 0% { opacity: 0; } 10%, 70% { opacity: 1; } 100% { opacity: 0; } }
.ncs-map .ncs-spot rect { fill: rgba(255,230,140,.16); stroke: #ffd65a; stroke-width: 4; stroke-dasharray: 10 7; }
.ncs-map .ncs-spot path { stroke: #ffd65a; stroke-width: 6; stroke-linecap: round; opacity: .9; }
.ncs-map .ncs-spot.alt rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.55); stroke-width: 3; }
.ncs-map .ncs-spot.alt path { stroke: rgba(255,255,255,.55); }
.ncs-map .ncs-spot.on rect { fill: rgba(255,214,90,.32); stroke-dasharray: none; }
[data-theme="light"] .ncs-map .ncs-spot rect { fill: rgba(255,214,90,.28); stroke: #c98a00; }
[data-theme="light"] .ncs-map .ncs-spot path { stroke: #c98a00; }
[data-theme="light"] .ncs-map .ncs-spot.alt rect { fill: rgba(255,255,255,.25); stroke: rgba(110,80,20,.45); }
[data-theme="light"] .ncs-map .ncs-spot.alt path { stroke: rgba(110,80,20,.45); }
.ncs-map .ncs-ghost { opacity: .92; }
.ncs-map .ncs-ghost rect { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 12 8; animation: ncs-march 1s linear infinite; }
@keyframes ncs-march { to { stroke-dashoffset: -40; } }
[data-theme="light"] .ncs-map .ncs-ghost rect { stroke: #1c1c1e; }

/* ---- one tile on its own ---- */
.ncs-tile { display: block; width: 100%; height: auto; overflow: visible; }
.ncs-fspot .ring { fill: rgba(255,255,255,.55); stroke: #1c1c1e; stroke-width: 2; stroke-dasharray: 4 3; }
.ncs-fspot .num { font: 900 13px Inter, Arial, sans-serif; fill: #1c1c1e; }
.ncs-fspot.on .ring { fill: rgba(255,214,90,.9); stroke: #1c1c1e; stroke-dasharray: none; stroke-width: 2.6; }
.ncs-fspot { cursor: pointer; }

/* ---- help text ---- */
.ncs-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.ncs-explain .ncs-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.ncs-explain p { margin: 5px 0 0; }

/* ---- motion: Workers pop down and hop home after a score ---- */
.ncs-map .ncs-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: ncs-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ncs-pop { from { transform: translateY(-40px) scale(1.6); opacity: 0; } 60% { opacity: 1; } }
.ncs-map .ncs-hop { transform-box: fill-box; transform-origin: 50% 100%; animation: ncs-hop 1.15s cubic-bezier(.3,.6,.4,1) both; }
@keyframes ncs-hop { 0% { transform: none; opacity: 1; } 25% { transform: translateY(-34px) scale(1.25); opacity: 1; } 45% { transform: translateY(-6px) scale(1.1); } 70% { transform: translateY(-46px) scale(1.15); opacity: .9; } 100% { transform: translateY(-130px) scale(.7); opacity: 0; } }

/* /phone/games/notcarcassonne.css */
/* Castles & Roads on the phone: your tile, the map, your Workers. Dusk first, then sunny light. */
body.g-notcarcassonne { font-family: "Spectral", Georgia, serif; }
body.g-notcarcassonne .h1, body.g-notcarcassonne .h2 { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: .01em; }
.ncsp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.ncsp-status { display: flex; align-items: center; gap: 10px; background: rgba(20,22,36,.6); border: 1px solid rgba(214,190,140,.3); border-radius: 16px; padding: 10px 14px; font-size: 16px; min-height: 46px; }
.ncsp-status b { font-weight: 700; line-height: 1.2; }
.ncsp-status.me { background: rgba(240,198,74,.18); border-color: rgba(240,198,74,.6); }
.ncsp-left { margin-left: auto; font: 700 12px Inter, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--label-2); white-space: nowrap; }
.ncsp-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.ncsp-opps:empty { display: none; }
.ncsp-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(20,22,36,.5); border-radius: 999px; padding: 4px 10px 4px 4px; font: 700 14px Inter, Arial, sans-serif; border: 2px solid transparent; }
.ncsp-opp.turn { border-color: var(--pc); }
.ncsp-opp .nm { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncsp-opp b { color: #f0c64a; font-variant-numeric: lining-nums; }
.ncsp-opp .ct { display: inline-flex; align-items: center; gap: 2px; color: var(--label-2); font-size: 12px; }
.ncsp-w { width: 15px; height: 19px; fill: var(--pc, #ffd93d); stroke: #221a12; stroke-width: 2.4; stroke-linejoin: round; flex: none; }
.ncsp-w.tiny { width: 11px; height: 14px; }
.ncsp-w.out { fill: none; stroke: var(--label-3); stroke-width: 1.8; }

.ncsp-card { display: flex; gap: 14px; align-items: center; background: rgba(20,22,36,.6); border: 1px solid rgba(214,190,140,.3); border-radius: 18px; padding: 12px; }
.ncsp-card.mine { border-color: rgba(240,198,74,.65); }
.ncsp-big { width: 128px; flex: none; padding: 0; border: none; background: none; cursor: pointer; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.ncsp-big .ncs-tile { transition: transform .2s; }
.ncsp-small { width: 78px; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.ncsp-ctl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ncsp-tname { font-family: "IM Fell English SC", Georgia, serif; font-size: 20px; line-height: 1.1; }
.ncsp-sub { font-size: 15px; line-height: 1.25; }
.ncsp-sub.dim { color: var(--label-2); font-size: 13px; }
.ncsp-btns { display: flex; flex-direction: column; gap: 6px; }
.ncsp-btns .btn { min-height: 48px; font: 700 16px Inter, Arial, sans-serif; padding: 8px 10px; border-radius: 12px; }
.ncsp-rot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.12); }
.ncsp-rot svg { width: 22px; height: 22px; }
.ncsp-hint { font-size: 14px; color: #f0c64a; font-style: italic; line-height: 1.25; }
.ncsp-what { align-self: flex-start; background: none; border: none; color: var(--blue); font: 700 15px Inter, Arial, sans-serif; padding: 0 8px; cursor: pointer; min-height: 44px; text-decoration: underline; }
.ncsp-explain .ncs-explain { font-family: Inter, Arial, sans-serif; background: rgba(20,22,36,.6); }

.ncsp-mapwrap { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: rgba(10,12,22,.35); box-shadow: inset 0 0 0 1px rgba(214,190,140,.3), inset 0 0 40px rgba(0,0,0,.35); }
.ncsp-mapwrap.big { height: 360px; }
.ncsp-maphost { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.ncsp-maphost .ncs-spot { cursor: pointer; }
.ncsp-maptools { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ncsp-zoom { display: flex; flex-direction: row; gap: 6px; flex: none; }
.ncsp-zoom button { width: 44px; height: 44px; border-radius: 12px; border: none; background: rgba(20,22,36,.78); color: #fff; font: 700 24px Inter, Arial, sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: pointer; }
.ncsp-zoom svg { width: 22px; height: 22px; }
.ncsp-maphint { flex: 1; min-width: 0; font: 600 14px Inter, Arial, sans-serif; line-height: 1.25; color: var(--label-2); }

.ncsp-mine { display: flex; align-items: center; gap: 10px; font: 600 14px Inter, Arial, sans-serif; color: var(--label-2); padding: 0 4px; }
.ncsp-mine .lbl { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.ncsp-mine .ws { display: flex; gap: 2px; }
.ncsp-mine .ncsp-w { width: 18px; height: 23px; }
.ncsp-mine .n { margin-left: auto; }
.ncsp-log { font-size: 14px; line-height: 1.4; color: var(--label-2); padding: 0 4px; }
.ncsp-log .l-score { color: #f0c64a; font-weight: 700; }
.ncsp-log .l-turn, .ncsp-log .l-win { color: var(--text); font-weight: 700; }
.ncsp-log .l-discard { color: #ff9b85; }

/* the Worker sheet */
.ncsp-ov { align-items: flex-end; }
.ncsp-sheet { background: #1d2032; border-color: rgba(214,190,140,.35); max-height: 86vh; }
.ncsp-sheet > * { flex: none; }
.ncsp-shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ncsp-hide { background: none; border: none; color: var(--blue); font: 600 15px Inter, Arial, sans-serif; cursor: pointer; min-height: 40px; }
.ncsp-ftile { width: min(58vw, 230px); align-self: center; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.ncsp-fopts { display: flex; flex-direction: column; gap: 6px; }
.ncsp-fopt { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.07); border: 2px solid transparent; border-radius: 12px; padding: 8px 10px; color: var(--text); font: 500 14px Inter, Arial, sans-serif; line-height: 1.3; min-height: 48px; cursor: pointer; }
.ncsp-fopt .num { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); color: #1c1c1e; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.ncsp-fopt.on { border-color: #f0c64a; background: rgba(240,198,74,.18); }
.ncsp-fopt.on .num { background: #f0c64a; }
.ncsp-fopts.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ncsp-fopts.grid .ncsp-fopt { min-height: 46px; padding: 6px 8px; }
.ncsp-fopt small { color: var(--label-2); font-size: 14px; }
.ncsp-fhelp { font: 500 14px Inter, Arial, sans-serif; color: var(--label-2); text-align: center; line-height: 1.35; min-height: 18px; }
.ncsp-small-note { font: 500 14px Inter, Arial, sans-serif; color: var(--label-2); text-align: center; line-height: 1.35; }
.ncsp-minbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px); z-index: 40; min-height: 54px; border-radius: 16px; border: none; background: #f0c64a; color: #2a1c08; font: 800 16px Inter, Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 496px; margin: 0 auto; cursor: pointer; }

/* final */
.ncsp-final .ncsp-ftile { width: 150px; }
.ncsp-fbreak { width: 100%; max-width: 340px; background: rgba(20,22,36,.6); border-radius: 16px; padding: 8px 14px; font: 500 15px Inter, Arial, sans-serif; }
.ncsp-fbreak div { display: flex; justify-content: space-between; padding: 6px 0; }
.ncsp-fbreak div + div { box-shadow: inset 0 1px 0 var(--sep); }
.ncsp-fbreak .tot { font-weight: 800; font-size: 18px; }
.ncsp-fbreak .tot b { color: #f0c64a; }

/* ---- light theme: a sunny afternoon ---- */
[data-theme="light"] body.g-notcarcassonne.felt::before { background: transparent; }
[data-theme="light"] .ncsp-status, [data-theme="light"] .ncsp-card, [data-theme="light"] .ncsp-opp, [data-theme="light"] .ncsp-fbreak { background: rgba(255,250,236,.92); border-color: #d9c08a; box-shadow: 0 4px 14px rgba(110,80,20,.1); color: #2a1c08; }
[data-theme="light"] .ncsp-opp { border-color: transparent; }
[data-theme="light"] .ncsp-opp.turn { border-color: var(--pc); }
[data-theme="light"] .ncsp-status.me, [data-theme="light"] .ncsp-card.mine { background: rgba(255,236,170,.75); border-color: #c99a2e; }
[data-theme="light"] .ncsp-opp b, [data-theme="light"] .ncsp-fbreak .tot b { color: #9a6410; }
[data-theme="light"] .ncsp-hint { color: #8a5a00; }
[data-theme="light"] .ncsp-rot { background: rgba(110,80,20,.1); color: #2a1c08; }
[data-theme="light"] .ncsp-big, [data-theme="light"] .ncsp-small, [data-theme="light"] .ncsp-ftile { filter: drop-shadow(0 8px 12px rgba(110,80,20,.28)); }
[data-theme="light"] .ncsp-mapwrap { background: rgba(255,248,226,.6); box-shadow: inset 0 0 0 1px #d9c08a, inset 0 0 40px rgba(160,120,40,.12); }
[data-theme="light"] .ncsp-zoom button { background: rgba(255,250,236,.95); color: #2a1c08; box-shadow: 0 4px 12px rgba(110,80,20,.2); }
[data-theme="light"] .ncsp-maphint { color: #3d2a12; }
[data-theme="light"] .ncsp-explain .ncs-explain { background: rgba(255,250,236,.92); }
[data-theme="light"] .ncsp-log .l-score { color: #9a6410; }
[data-theme="light"] .ncsp-log .l-discard { color: #c2410c; }
[data-theme="light"] .ncsp-sheet { background: #fffaf0; border-color: #e2cf9f; }
[data-theme="light"] .ncsp-fopt { background: rgba(110,80,20,.07); }
[data-theme="light"] .ncsp-fopt .num { background: #2a1c08; color: #fff; }
[data-theme="light"] .ncsp-fopt.on { background: rgba(255,214,90,.3); border-color: #c99a2e; }
[data-theme="light"] .ncsp-fopt.on .num { background: #c99a2e; color: #fff; }
[data-theme="light"] .ncsp-minbar { box-shadow: 0 10px 30px rgba(110,80,20,.3); }

/* ---- whose turn, unmistakable ---- */
.ncsp-status span small { display: block; font-size: 12px; color: var(--label-2); font-style: italic; }
.ncsp-status.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffb000); border-color: #ffb000; color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: ncsp-pop .35s cubic-bezier(.2,1.4,.4,1) both, ncsp-throb 1.6s ease-in-out .4s infinite; }
.ncsp-status.me b { font: 900 italic 30px Inter, Arial, sans-serif; letter-spacing: -.01em; line-height: 1; }
.ncsp-status.me span { font: 700 14px Inter, Arial, sans-serif; line-height: 1.25; }
@keyframes ncsp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes ncsp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
.ncsp.waiting .ncsp-hand { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.ncsp.waiting .ncsp-status { color: var(--label-2); }
.ncsp.waiting .ncsp-status b { color: var(--text); }
body.ncsp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: ncsp-frame 1.6s ease-in-out infinite; }
@keyframes ncsp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
[data-theme="light"] .ncsp-status.me { background: linear-gradient(120deg, #ffd60a, #ffb000); border-color: #e0a000; color: #1b1b1b; }

/* ---- motion: your tile flies to the map ---- */
.ncsp-flyer { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; filter: drop-shadow(0 16px 24px rgba(0,0,0,.45)); }

/* ---- big moments on every phone ---- */
.ncsp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), rgba(0,0,0,.6) 75%); animation: ncsp-moment 2.8s ease both; }
.ncsp-moment.k-final { animation-duration: 3.6s; }
@keyframes ncsp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.ncsp-moment .big { font-family: "Spectral", Georgia, serif; font-weight: 800; font-variant-numeric: lining-nums; font-size: 96px; line-height: .9; color: #ffd65a; text-align: center; padding: 0 16px; text-shadow: 4px 4px 0 #8a3a1c, 8px 8px 0 rgba(0,0,0,.3); animation: ncsp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.ncsp-moment.k-final .big { font-size: 58px; }
@keyframes ncsp-slam { from { transform: scale(3); opacity: 0; } }
.ncsp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.7); color: #fff; font: 800 17px Inter, Arial, sans-serif; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 92vw; }
.ncsp-moment .avatar { width: 40px; height: 40px; font-size: 18px; }

/* turn timer ring */
.ncsp-status { position: relative; }
.ncsp-status .tclock { width: 48px; height: 48px; margin-left: auto; }
.ncsp-status .tclock b { font-size: 20px; }
.ncsp-status.me .tclock { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; margin: 0; }
.ncsp-status.me:has(.tclock) { padding-right: 80px; }

/* Rotate and Lay it here: pinned just above the bottom bar while you place a tile, so they never scroll away */
.ncsp.placing { padding-bottom: calc(var(--safe-bottom) + 96px); }
.ncsp.minbar { padding-bottom: calc(var(--safe-bottom) + 84px); }
.ncsp-placebar { position: fixed; left: 0; right: 0; bottom: var(--safe-bottom); z-index: 40; max-width: 520px; margin: 0 auto; display: flex; gap: 8px; padding: 8px 12px; background: #1d2032; box-shadow: 0 -8px 14px -6px rgba(0,0,0,.35), 0 -1px 0 rgba(214,190,140,.35); }
[data-theme="light"] .ncsp-placebar { background: #fffaf0; box-shadow: 0 -8px 14px -6px rgba(110,80,20,.25), 0 -1px 0 #d9c08a; }
.ncsp-placebar .btn { white-space: nowrap; min-width: 0; padding: 8px 10px; min-height: 56px; font: 800 18px Inter, Arial, sans-serif; border-radius: 16px; box-shadow: none; }
.ncsp-placebar .ncsp-rot { flex: 0 0 38%; background: #2e3250; color: #fff; border: 2px solid rgba(214,190,140,.55); }
.ncsp-placebar .btn.primary { flex: 1; }
.ncsp-placebar .btn:disabled { opacity: 1; box-shadow: none; background: #5d6280; color: #e6e8f2; }
[data-theme="light"] .ncsp-placebar .btn.primary:disabled { background: #b9ad92; color: #5e533c; }
[data-theme="light"] .ncsp-placebar .ncsp-rot { background: #fffaf0; color: #2a1c08; border-color: #c99a2e; }
.ncsp.placing .ncsp-card { padding: 8px 10px; gap: 12px; }
.ncsp.placing .ncsp-big { width: 96px; }
.ncsp.placing .ncsp-what { min-height: 44px; }
/* the Worker sheet: the options scroll, the two answers sit in a solid footer under them */
.ncsp-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 0; gap: 0; max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px); }
.ncsp-sheet > * { flex: none; }
.ncsp-sx { flex: 1 1 auto !important; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; }
.ncsp-sx > * { flex: none; }
.ncsp-sacts { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; background: #1d2032; border-top: 1px solid rgba(214,190,140,.35); }
[data-theme="light"] .ncsp-sacts { background: #fffaf0; border-top-color: #e2cf9f; }
.ncsp-sacts .btn.primary:disabled { opacity: 1; background: #5d6280; color: #fff; }
[data-theme="light"] .ncsp-sacts .btn.primary:disabled { background: #b9ad92; color: #5e533c; }
.ncsp-sacts .btn:not(.primary) { background: #2b2f48; }
[data-theme="light"] .ncsp-sacts .btn:not(.primary) { background: #f4ead2; }

/* a short phone while you lay a tile: the map comes straight after a slim banner and the zoom row; the tile card
   follows below it (its picture is also in the pinned bar), so the map is on the first screen without any scrolling */
.ncsp-mini { display: none; }
@media (max-height: 700px) {
  .ncsp.placing .ncsp-opps { display: none; }
  .ncsp.placing .ncsp-status.me { padding: 8px 14px; gap: 0; }
  .ncsp.placing .ncsp-status.me b { font-size: 26px; }
  .ncsp.placing .ncsp-status.me > span:not(.tclock) { display: none; }
  .ncsp.placing .ncsp-maptools { order: 1; }
  .ncsp.placing .ncsp-mapwrap { order: 2; }
  .ncsp.placing .ncsp-hand { order: 3; }
  .ncsp.placing .ncsp-mine, .ncsp.placing .ncsp-log { order: 4; }
  .ncsp.placing .ncsp-mini { display: block; flex: none; width: 46px; align-self: center; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
  .ncsp.placing .ncsp-placebar .ncsp-rot { flex: 0 0 34%; }
}

/* /shared/notpandemic.css */
/* Outbreak: the world map, card faces, role cards and the table surface,
   shared by the TV and the phones. Dark rules first, then the light theme. */

/* ---- the table: a disease-control situation room (dark) / an atlas desk (light) ---- */
.tbl-pandemic {
  --tbl-edge: #050c18; --tbl-rim: #1f4e7a; --tbl-glow: rgba(90,170,255,.10);
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(60,140,230,.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(120,180,255,.045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(120,180,255,.045) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #0a1a30 0%, #071324 60%, #050d1a 100%);
}
[data-theme="light"] .tbl-pandemic {
  --tbl-edge: #f4f1e8; --tbl-rim: #7fa7c9; --tbl-glow: rgba(255,255,255,.4);
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255,255,255,.7), transparent 70%),
    repeating-linear-gradient(0deg, rgba(40,90,140,.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(40,90,140,.05) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #eef3f7 0%, #e4ebf1 100%);
}

/* ---- the map ---- */
.np-map { --np-sea1: #0f3459; --np-sea2: #081b33; --np-shape: #10345a; --np-dot: #4c86bd; --np-grat: rgba(140,190,255,.08); --np-route: rgba(222,236,255,.66); --np-label: #f2f7ff; --np-halo: #061427; --np-hl: #ffd60a; }
[data-theme="light"] .np-map { --np-sea1: #dcedf8; --np-sea2: #bcd9ec; --np-shape: #f3f1e4; --np-dot: #b3c08f; --np-grat: rgba(30,80,130,.10); --np-route: rgba(36,64,104,.55); --np-label: #10223a; --np-halo: #f6fafd; --np-hl: #e8a500; }
.npm-board { display: block; width: 100%; height: 100%; }
.npm-sea1 { stop-color: var(--np-sea1); } .npm-sea2 { stop-color: var(--np-sea2); }
.npm-shape { fill: var(--np-shape); stroke: none; }
.npm-shape-hole { fill: var(--np-sea2); }
.npm-dots { fill: none; stroke: var(--np-dot); stroke-width: 5.2; stroke-linecap: round; }
.npm-grat { fill: none; stroke: var(--np-grat); stroke-width: 1.2; }
.npm-eq { fill: none; stroke: var(--np-grat); stroke-width: 2; stroke-dasharray: 6 8; }
.npm-routes line { stroke: var(--np-route); stroke-width: 2.6; stroke-linecap: round; }
.npm-node { stroke: #fff; stroke-width: 3; }
.npm-city.c-black .npm-node { stroke: #e9edf5; }
.npm-halo { opacity: .28; }
.npm-city.c-blue .npm-halo { fill: #2f6fe4; } .npm-city.c-yellow .npm-halo { fill: #f2c230; } .npm-city.c-black .npm-halo { fill: #7a7f92; } .npm-city.c-red .npm-halo { fill: #e2383f; }
.npm-hq { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 4 3; }
[data-theme="light"] .npm-hq { stroke: #10223a; }
.npm-label { font: 800 15.5px "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; fill: var(--np-label); stroke: var(--np-halo); stroke-width: 4.6px; paint-order: stroke; stroke-linejoin: round; letter-spacing: .01em; }

/* live layer */
.npm-live { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.npm-live .npm-hit { pointer-events: all; }
.npm-cube.c-black > rect:first-child { stroke: #b4bccd; }
.npm-cube.full > rect:first-child { stroke: #fff; stroke-width: 1.6; }
.npm-cube.drop { animation: npm-drop .7s cubic-bezier(.2,1.3,.4,1) var(--d, 0ms) both; }
@keyframes npm-drop { 0% { translate: 0 -46px; opacity: 0; } 55% { opacity: 1; } 75% { translate: 0 3px; } 100% { translate: 0 0; } }
.npm-hot { fill: none; stroke: #ff453a; stroke-width: 3; opacity: .85; transform-box: fill-box; transform-origin: center; animation: npm-hot 1.4s ease-in-out infinite; }
@keyframes npm-hot { 50% { opacity: .25; scale: 1.25; } }
.npm-lab.fresh { animation: npm-rise .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes npm-rise { from { translate: 0 18px; opacity: 0; } }
.npm-pawn { transition: transform 1s cubic-bezier(.45,.05,.2,1); }
.npm-pawnring { fill: rgba(255,184,0,.22); stroke: #ffb800; stroke-width: 3; }
.npm-pawn.now .npm-pawnbody { animation: npm-bob 1.1s ease-in-out infinite; }
@keyframes npm-bob { 50% { translate: 0 -5px; } }
.npm-hl { fill: color-mix(in srgb, var(--np-hl) 28%, transparent); stroke: var(--np-hl); stroke-width: 3.5; transform-box: fill-box; transform-origin: center; animation: npm-pulse 1.2s ease-in-out infinite; }
@keyframes npm-pulse { 50% { scale: 1.18; opacity: .7; } }
.npm-hit { fill: transparent; cursor: pointer; }
.npm-mark { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 5 4; }
[data-theme="light"] .npm-mark { stroke: #10223a; }
.npm-ring { fill: none; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: npm-ring 1.3s ease-out both; }
@keyframes npm-ring { from { scale: .4; opacity: 1; } to { scale: 2.6; opacity: 0; } }
.npm-burst { fill: none; stroke-width: 7; transform-box: fill-box; transform-origin: center; animation: npm-burst 1.6s cubic-bezier(.2,.8,.3,1) var(--d, 0ms) both; }
@keyframes npm-burst { 0% { scale: .3; opacity: 1; } 100% { scale: 4.2; opacity: 0; } }
.npm-float { font: 900 22px "Inter", Arial, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 4px; animation: npm-float 1.8s ease-out both; }
@keyframes npm-float { 0% { translate: 0 6px; opacity: 0; } 15% { opacity: 1; } 100% { translate: 0 -34px; opacity: 0; } }

/* ---- germs, cubes, labs ---- */
.np-germ, .np-cube, .np-lab, .np-roleicon, .np-evicon, .np-pawnicon { display: inline-block; vertical-align: middle; flex: none; }

/* ---- player cards: city, event, epidemic and the backs. Size with --cw. ---- */
.npcard, .npcard * { box-sizing: border-box; }
.npcard {
  width: var(--cw, 100px); aspect-ratio: 5 / 7; container-type: inline-size; position: relative; flex: none;
  border-radius: calc(var(--cw, 100px) * .08); background: #fdfcf8; padding: calc(var(--cw, 100px) * .045); user-select: none; -webkit-user-select: none;
  box-shadow: 0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .07) rgba(0,0,0,.35), inset 0 0 0 calc(var(--cw, 100px) * .008) rgba(0,0,0,.12);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; color: #15202f;
}
.npcard .npc-in { position: relative; width: 100%; height: 100%; border-radius: 6cqw; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.npcard.k-city .npc-in { background: linear-gradient(180deg, #f6f3ea, #ebe6d8); }
.npcard .npc-band { width: 100%; background: var(--dc); color: var(--di); display: flex; align-items: center; gap: 3cqw; padding: 4cqw 5cqw; position: relative; }
.npcard .npc-band::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.12) 0 3cqw, transparent 3cqw 6cqw); }
.npcard .npc-band .np-germ { width: 24cqw; height: 24cqw; position: relative; z-index: 1; }
.npcard .npc-dis { font-size: 11cqw; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; }
.npcard .npc-name { font-size: 14.5cqw; font-weight: 900; line-height: 1.02; text-align: center; padding: 5cqw 4cqw 2cqw; letter-spacing: -.01em; text-wrap: balance; }
.npcard .npc-loc { width: 88%; flex: 1; min-height: 0; border-radius: 4cqw; background: #dbe8f1; box-shadow: inset 0 0 0 .8cqw rgba(0,0,0,.08); }
.npcard .npc-loc use { stroke: #9fb3a0; fill: none; }
.npcard .npc-ping { fill: var(--dc); opacity: .25; }
.npcard .npc-pop { font-size: 8.5cqw; font-weight: 700; color: #5d6574; padding: 3cqw 0 4cqw; }
.npcard.k-event .npc-in { background: linear-gradient(160deg, #ffe082, #f4b63f 55%, #e39a22); color: #3a2604; padding: 4cqw; }
.npcard .npc-evtop { font-size: 9cqw; font-weight: 900; letter-spacing: .3em; background: #3a2604; color: #ffd66b; border-radius: 99cqw; padding: 1.5cqw 6cqw; }
.npcard .npc-evart { margin: 5cqw 0 1cqw; color: #3a2604; }
.npcard .npc-evart .np-evicon { width: 44cqw; height: 44cqw; filter: drop-shadow(0 1.5cqw 0 rgba(255,255,255,.4)); }
.npcard.k-event .npc-name { font-size: 13.5cqw; padding: 1cqw 2cqw; }
.npcard .npc-text { font-size: 8.4cqw; font-weight: 700; line-height: 1.2; text-align: center; color: rgba(58,38,4,.85); }
.npcard .npc-foot { margin-top: auto; font-size: 7.5cqw; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.npcard.k-epi .npc-in { background: radial-gradient(circle at 50% 40%, #3b1d22, #140a0d); color: #fff; }
.npcard .npc-stripes { width: 100%; height: 13cqw; background: repeating-linear-gradient(-45deg, #ffd60a 0 6cqw, #141414 6cqw 12cqw); }
.npcard .npc-epiart { margin: 6cqw 0 2cqw; width: 50cqw; height: 50cqw; border-radius: 50%; background: #e2383f; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12cqw rgba(226,56,63,.7); }
.npcard .npc-epiart .np-germ { width: 40cqw; height: 40cqw; }
.npcard.k-epi .npc-name { font-size: 15cqw; color: #ffd60a; letter-spacing: .04em; }
.npcard .npc-steps { margin: 1cqw 0 0; padding: 0 0 0 12cqw; font-size: 8.5cqw; font-weight: 800; line-height: 1.3; align-self: flex-start; }
.npcard.k-back .npc-in { background: radial-gradient(circle at 50% 38%, #1b4c80, #0a1f3c 70%); color: #fff; justify-content: center; gap: 6cqw; }
.npcard .npc-globe { width: 58cqw; height: 58cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5bc0ff, #1b5ea8 60%, #0d2d55); box-shadow: 0 0 0 2cqw rgba(255,255,255,.75), 0 0 14cqw rgba(91,192,255,.6); position: relative; }
.npcard .npc-globe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55) 1.4cqw, transparent 1.6cqw) 0 0 / 8cqw 8cqw; opacity: .55; -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%); mask: radial-gradient(circle, #000 60%, transparent 71%); }
.npcard .npc-backname { font-size: 12cqw; font-weight: 900; letter-spacing: .05em; text-align: center; line-height: 1; }
.npcard.k-iback .npc-in { background: radial-gradient(circle at 50% 40%, #7b1e2e, #2a0910 75%); }
.npcard .npc-backart { width: 52cqw; height: 52cqw; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.6cqw rgba(255,255,255,.3); }
.npcard .npc-backart .np-germ { width: 42cqw; height: 42cqw; }
.npcard.dim { filter: saturate(.4) brightness(.85); }

/* ---- small infection-card tags ---- */
.np-itag { display: inline-flex; align-items: center; gap: 6px; background: #f6f3ea; color: #15202f; border-radius: 8px; padding: 3px 9px 3px 4px; font-weight: 800; box-shadow: inset 4px 0 0 var(--dc), 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; }
.np-itag b { font-weight: 800; }

/* ---- role cards ---- */
.np-rolecard { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 5px 0 0 var(--rc); }
.np-rolehead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 30%, transparent), transparent); }
.np-rolehead b { display: block; font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.np-rolehead small { display: block; font-size: 13px; font-weight: 600; opacity: .75; }
.np-rolecard ul { margin: 0; padding: 4px 14px 12px 32px; font-size: 14px; line-height: 1.4; }
.np-rolecard li + li { margin-top: 4px; }
[data-theme="light"] .np-rolecard { background: #fff; border-color: rgba(0,0,0,.06); box-shadow: inset 5px 0 0 var(--rc), 0 4px 14px rgba(30,40,80,.08); }

.np-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.np-explain .np-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.np-explain p { margin: 5px 0 0; }

/* /phone/games/notpandemic.css */
/* Outbreak on the phone. Dark first, then the light theme. */
.npp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 250px; }
.npp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.npp-turnbar.me { justify-content: space-between; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: npp-pop .35s cubic-bezier(.2,1.4,.4,1) both, npp-throb 1.6s ease-in-out .4s infinite; }
.npp-turnbar.me b { display: block; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.npp-turnbar.me span { display: block; font-size: 15px; font-weight: 700; margin-top: 3px; }
.npp-turnbar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.npp-turnbar.idle b { color: var(--text); }
.npp-turnbar.idle small { margin-left: auto; font-size: 13px; text-align: right; }
.npp-pips { display: flex; align-items: center; gap: 5px; flex: none; }
.npp-pips i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(27,27,27,.4); }
.npp-pips i.on { background: #1b1b1b; border-color: #1b1b1b; }
.npp-pips small { font-size: 13px; font-weight: 900; margin-left: 2px; }
@keyframes npp-pop { from { transform: scale(.94); } }
@keyframes npp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.npp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: npp-frame 1.6s ease-in-out infinite; }
@keyframes npp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.npp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.npp.waiting .ndp-fan .npcard.peeking { opacity: 1; }

.npp-team { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.npp-mate { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 9px 4px 4px; border-radius: 999px; background: rgba(0,0,0,.28); border: 2px solid transparent; color: inherit; font: inherit; flex: none; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 50%, transparent); }
.npp-mate.turn { border-color: #ffb800; }
.npp-mate .nm { font-size: 14px; font-weight: 800; line-height: 1.05; text-align: left; }
.npp-mate .nm small { display: block; font-size: 11px; font-weight: 600; color: var(--label-2); }
.npp-mate .ct { background: rgba(255,255,255,.14); border-radius: 999px; padding: 1px 7px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }

.npp-mapframe { position: relative; }
.npp-fade { position: absolute; top: 0; bottom: 0; width: 34px; display: none; align-items: center; font: 900 30px/1 var(--font); font-style: normal; color: #fff; pointer-events: none; border-radius: 16px; }
.npp-fade.l { left: 0; justify-content: flex-start; padding-left: 6px; background: linear-gradient(to right, rgba(10,20,40,.62), rgba(10,20,40,0)); }
.npp-fade.r { right: 0; justify-content: flex-end; padding-right: 6px; background: linear-gradient(to left, rgba(10,20,40,.62), rgba(10,20,40,0)); }
.npp-mapframe.more-l .npp-fade.l, .npp-mapframe.more-r .npp-fade.r { display: flex; }
.npp-mapnote { text-align: center; font-size: 13px; color: var(--label-2); margin-top: -4px; }
.npp-mapwrap { overflow-x: auto; overflow-y: hidden; border-radius: 16px; -webkit-overflow-scrolling: touch; box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(140,190,255,.2); scrollbar-width: none; }
.npp-mapwrap::-webkit-scrollbar { display: none; }
.npp-map { position: relative; }
.npp-board, .npp-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.npp .npm-label { font-size: 23px; stroke-width: 6px; }
.npp .npm-pawn { transition-duration: .8s; }
.npp-pickbar { display: flex; align-items: center; gap: 12px; background: rgba(255,214,10,.16); border: 1px solid rgba(255,214,10,.5); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.npp-pickbar span { flex: 1; }
.npp-pickbar .linklike { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 12px; background: var(--fill); color: var(--text); text-decoration: none; font-size: 15px; }
.npp-hint:empty, .npp-panel:empty, .npp-log:empty { display: none; }

.npp-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.npp-act { min-width: 0; min-height: 60px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3); color: inherit; text-align: left; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; font: inherit; cursor: pointer; transition: transform .08s; }
.npp-act:active { transform: scale(.97); }
.npp-act b { font-size: 17px; font-weight: 900; }
.npp-act small { font-size: 13px; color: var(--label-2); margin-top: 2px; line-height: 1.2; }
.npp-act.off { background: rgba(120,120,128,.14); border-color: transparent; }
.npp-act.off b { opacity: .72; }
.npp-act.on { border-color: #ffd60a; }
.npp .btn.npp-end { min-height: 46px; margin-top: 8px; background: rgba(255,255,255,.08); }
.npp .btn.npp-big { min-height: 66px; font-size: 21px; font-weight: 900; letter-spacing: .04em; }
.npp .btn.sm { min-height: 40px; width: auto; padding: 8px 14px; font-size: 15px; }
.npp .btn.danger { background: #ff453a; color: #fff; }
.npp-note { font-size: 13px; text-align: center; color: var(--label-2); margin-top: 6px; }
.npp-epi { border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #3a1018, #1a0709); border: 2px solid #ffd60a; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.npp-epi b { font-size: 19px; font-weight: 900; color: #ffd60a; }
.npp-epi span { font-size: 13px; opacity: .9; }
.npp-asking { display: flex; align-items: center; gap: 10px; background: rgba(100,210,255,.14); border: 1px solid rgba(100,210,255,.5); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.npp-asking span:not(.ap-spin) { flex: 1; }

.npp-trk { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--label-2); padding: 0 2px; }
.npp-trk b { color: var(--text); font-size: 15px; }
.npp-trk .bad b { color: #ff6b6b; }
.npp-cures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.npp-cures span { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 12px; padding: 6px 2px; background: rgba(0,0,0,.25); border: 2px solid transparent; }
.npp-cures span .np-germ { opacity: .55; }
.npp-cures span.cured, .npp-cures span.gone { border-color: var(--dc); background: color-mix(in srgb, var(--dc) 22%, rgba(0,0,0,.2)); }
.npp-cures span.cured .np-germ, .npp-cures span.gone .np-germ { opacity: 1; }
.npp-cures small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.npp-cures i { font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 3px; color: var(--label-2); }

.npp-rolebtn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: none; border-radius: 14px; padding: 8px 12px; background: rgba(0,0,0,.28); box-shadow: inset 5px 0 0 var(--rc); color: inherit; font: inherit; cursor: pointer; }
.npp-rolebtn b { display: block; font-size: 16px; font-weight: 900; }
.npp-rolebtn small { display: block; font-size: 12px; color: var(--label-2); }
.npp-roledet { margin-top: 8px; }
.npp-stored { display: flex; gap: 10px; align-items: center; margin-top: 8px; background: rgba(255,214,107,.1); border-radius: 14px; padding: 8px; font-size: 14px; }
.npp-stored small { display: block; font-size: 12px; color: var(--label-2); margin: 2px 0 6px; }
.npp-log { font-size: 13px; color: var(--label-2); line-height: 1.45; padding: 0 4px; }
.npp-log .l-turn { color: var(--text); font-weight: 700; }
.npp-log .l-outbreak, .npp-log .l-epidemic, .npp-log .l-lose { color: #ff8a80; font-weight: 700; }
.npp-log .l-cure, .npp-log .l-win { color: #7ee787; font-weight: 700; }
.npp-log .l-event { color: #ffd66b; }

/* the hand */
.npp-dockhead { text-align: center; }
.npp-handlabel { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--label-2); }
.npp-discardhint { font-size: 14px; font-weight: 900; color: #1b1b1b; background: #ff9f0a; border-radius: 999px; padding: 5px 12px; display: inline-block; animation: npp-pop .3s both; }
.npp-dock .ndp-fan { height: calc(var(--cw) * 1.4 + 30px); }
.ndp-fan .npcard { position: absolute; top: 20px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .npcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ndp-fan .npcard.npp-in { animation: npp-in .6s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes npp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.npp-big { --cw: min(44vw, 180px); }

/* sheets */
.npp-sheet { gap: 8px; }
.npp-sheet.tall { max-height: 80vh; }
.npp-sheet .h2 { font-size: 20px; }
.npp-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--label-2); margin-top: 6px; }
.npp-cgroup + .npp-cgroup { margin-top: 6px; }
.npp-cg { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--label-2); margin-bottom: 4px; }
.npp-cbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.npp-cbtn { border: none; border-radius: 10px; padding: 8px 11px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 700; background: color-mix(in srgb, var(--dc) 22%, rgba(255,255,255,.06)); color: inherit; box-shadow: inset 4px 0 0 var(--dc); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.npp-cbtn i { font-style: normal; font-size: 11px; font-weight: 900; background: rgba(255,69,58,.85); color: #fff; border-radius: 999px; padding: 1px 6px; }
.npp-sheet .btn.npp-way { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.npp-way small { font-size: 13px; font-weight: 600; opacity: .8; }
.npp-sheet .btn.npp-colbtn { display: flex; align-items: center; gap: 10px; text-align: left; box-shadow: inset 5px 0 0 var(--dc); }
.npp-colbtn small { margin-left: auto; font-size: 13px; color: var(--label-2); font-weight: 600; }
.npp-sheet .btn.npp-sharebtn, .npp-sheet .btn.npp-pawnbtn { display: flex; align-items: center; gap: 12px; text-align: left; }
.npp-pawnbtn small { display: block; font-size: 13px; color: var(--label-2); font-weight: 600; }
.npp-handgrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 4px 0; }
.npp-cardpick { background: none; border: none; padding: 0; border-radius: 10px; cursor: pointer; transition: transform .15s; }
.npp-cardpick.on { transform: translateY(-6px); }
.npp-cardpick.on .npcard { box-shadow: 0 0 0 4px #ffd60a, 0 10px 24px rgba(0,0,0,.5); }
.npp-fc { display: flex; flex-direction: column; gap: 6px; }
.npp-fcrow { display: flex; align-items: center; gap: 6px; }
.npp-fcrow .np-itag, .npp-herdbtn .np-itag { flex: 1; font-size: 15px; padding: 6px 10px 6px 6px; }
.np-itag em { font-style: normal; font-weight: 700; font-size: 12px; opacity: .65; margin-left: auto; padding-left: 8px; }
.npp-arrow { width: 44px; height: 44px; border-radius: 10px; border: none; background: rgba(255,255,255,.1); color: inherit; font-size: 16px; cursor: pointer; }
.npp-arrow:disabled { opacity: .25; }
.npp-herdbtn { border: none; background: none; padding: 0; text-align: left; display: flex; width: 100%; cursor: pointer; }
.npp-askcard { display: flex; justify-content: center; }
.npp-row2 { display: flex; gap: 8px; }
.npp-row2 .btn { flex: 1; }
.npp-teamhead { display: flex; align-items: center; gap: 10px; }
.npp-teamhead .muted { margin-left: auto; font-size: 14px; color: var(--label-2); }

/* the end */
.npp-end .npp-endgerms { display: flex; gap: 10px; }
.npp-end .npp-endgerms span { opacity: .3; filter: grayscale(.8); }
.npp-end .npp-endgerms span.ok { opacity: 1; filter: none; }
.npp-end.win .h1 { color: #7ee787; }
.npp-end.lose .h1 { color: #ff8a80; }

/* the big moments, on every phone */
.npp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--dc) 50%, transparent), rgba(0,0,0,.6) 75%); animation: npp-moment 2.8s ease both; }
.npp-moment.k-outbreak { background: radial-gradient(circle, rgba(255,69,58,.6), rgba(30,0,0,.7) 75%); }
@keyframes npp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.npp-hazard { position: absolute; left: 0; right: 0; top: 18%; height: 26px; background: repeating-linear-gradient(-45deg, #ffd60a 0 20px, #141414 20px 40px); transform: rotate(-4deg); }
.npp-moment .npp-mgerm { animation: npp-spin 2.8s ease both; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.npp-moment .npp-mgerms { display: flex; gap: 10px; animation: npp-spin 2.8s ease both; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.npp-moment.k-win { background: radial-gradient(circle, rgba(61,220,151,.5), rgba(0,20,10,.6) 75%); }
.npp-moment.k-win .big { color: #7ee787; text-shadow: 4px 4px 0 #1f6b45, 8px 8px 0 rgba(0,0,0,.35); }
@keyframes npp-spin { from { transform: scale(.3) rotate(-90deg); } 20% { transform: scale(1.1) rotate(10deg); } 30% { transform: scale(1) rotate(0); } }
.npp-moment .big { font-size: 60px; font-weight: 900; font-style: italic; line-height: .9; color: #fff; letter-spacing: -.03em; text-shadow: 4px 4px 0 var(--dc), 8px 8px 0 rgba(0,0,0,.35); transform: rotate(-5deg); animation: npp-slam .5s cubic-bezier(.2,1.5,.4,1) both; text-align: center; }
.npp-moment.k-epidemic .big { color: #ffd60a; text-shadow: 4px 4px 0 #e2383f, 8px 8px 0 rgba(0,0,0,.35); }
.npp-moment.k-outbreak .big { text-shadow: 4px 4px 0 #ff453a, 8px 8px 0 rgba(0,0,0,.35); }
@keyframes npp-slam { from { transform: rotate(-5deg) scale(3); opacity: 0; } }
.npp-moment .who { background: rgba(0,0,0,.72); color: #fff; font-size: 17px; font-weight: 800; padding: 9px 16px; border-radius: 999px; max-width: 90vw; text-align: center; }

/* ---- light theme ---- */
[data-theme="light"] .npp-turnbar.idle, [data-theme="light"] .npp-mate, [data-theme="light"] .npp-act, [data-theme="light"] .npp-rolebtn, [data-theme="light"] .npp-cures span { background: rgba(255,255,255,.86); box-shadow: 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .npp-rolebtn { box-shadow: inset 5px 0 0 var(--rc), 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .npp-mate { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 50%, transparent), 0 3px 10px rgba(30,40,80,.08); }
[data-theme="light"] .npp-mate.turn { border-color: #f0a500; }
[data-theme="light"] .npp-mate .ct { background: rgba(0,0,0,.07); }
[data-theme="light"] .npp-act { border-color: rgba(0,0,0,.06); }
[data-theme="light"] .npp-act.on { border-color: #f0a500; }
[data-theme="light"] .npp .btn.npp-end { background: rgba(0,0,0,.06); }
[data-theme="light"] .npp-cures span.cured, [data-theme="light"] .npp-cures span.gone { background: color-mix(in srgb, var(--dc) 16%, #fff); }
[data-theme="light"] .npp-mapwrap { box-shadow: 0 8px 22px rgba(30,60,100,.16), inset 0 0 0 1px rgba(40,90,140,.2); }
[data-theme="light"] .npp-pickbar { background: rgba(255,204,0,.2); border-color: rgba(183,121,31,.5); }
[data-theme="light"] .npp-asking { background: rgba(14,116,144,.1); border-color: rgba(14,116,144,.4); }
[data-theme="light"] .npp-trk .bad b { color: #e0352b; }
[data-theme="light"] .npp-log .l-outbreak, [data-theme="light"] .npp-log .l-epidemic, [data-theme="light"] .npp-log .l-lose { color: #c62828; }
[data-theme="light"] .npp-log .l-cure, [data-theme="light"] .npp-log .l-win { color: #1f8f3a; }
[data-theme="light"] .npp-log .l-event { color: #8a5a00; }
[data-theme="light"] .npp-stored { background: rgba(255,204,0,.14); }
[data-theme="light"] .npp-cbtn { background: color-mix(in srgb, var(--dc) 14%, #fff); box-shadow: inset 4px 0 0 var(--dc), 0 2px 6px rgba(30,40,80,.08); }
[data-theme="light"] .npp-arrow { background: rgba(0,0,0,.06); }
[data-theme="light"] body.g-notpandemic .ndp-dock { background: #eaf0f5; }
[data-theme="light"] .ndp-fan .npcard.peeking { box-shadow: 0 14px 30px rgba(30,40,80,.3); }
[data-theme="light"] .npp-end.win .h1 { color: #1f8f3a; }
[data-theme="light"] .npp-end.lose .h1 { color: #c62828; }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.npp .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.npp .ndp-pick { max-height: 100%; overflow-y: auto; }
.npp .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* turn timer ring in the YOUR TURN bar */
.npp-turnbar.me .tclock { width: 54px; height: 54px; margin-left: auto; }
.npp-turnbar.me .tclock b { font-size: 22px; margin: 0; }
.npp-turnbar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.npp-turnbar.me .tclock.urgent .fg { stroke: #fff; }

/* Short phones (320x568, 390x664): the hand shrinks to a strip of card tops (still slide-able and
   tappable) so the action buttons, End actions and the map stay above it */
@media (max-height: 700px) {
  .npp { gap: 8px; }
  .npp-dock .ndp-fan { height: 56px; clip-path: inset(-70px -20px 0 -20px); }
  .npp-dock .ndp-fanhint { display: none; }
  .npp-dock { padding-top: 4px; }
  .npp-turnbar { padding: 8px 12px; }
  .npp-turnbar.me b { font-size: 24px; }
  .npp-turnbar.me span { font-size: 14px; }
  .npp-act { min-height: 54px; padding: 6px 10px; }
  .npp-act b { font-size: 16px; }
  .npp .btn.npp-end { min-height: 48px; margin-top: 6px; }
  .npp-mapnote { display: none; }
}
@media (max-height: 600px) {
  /* the list of what you can do is the buttons right below, so the bar keeps just YOUR TURN and the actions left */
  .npp-turnbar.me:has(.npp-pips) span { display: none; }
  .npp-turnbar.me:has(.npp-pips) b { font-size: 22px; }
  .npp-turnbar.me:has(.npp-pips) { padding: 6px 12px; }
  .npp-act { min-height: 48px; padding: 4px 10px; }
  .npp-act small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0; }
  .npp-acts { gap: 6px; }
  .npp-mate { min-height: 44px; }
  .npp .btn.npp-end { min-height: 46px; }
}

/* a hand card's sheet: the big card shrinks on short phones, the text scrolls, the buttons stay in view */
.npp-cardpick { max-height: 100%; min-height: 0; }
.npp-cardpick .ndp-bigcard { flex: none; }
@media (max-height: 700px) { .npp-big { --cw: min(30vw, 104px); } .npp-cardpick { gap: 8px; } }
.npp-cardpick .ndp-sheet.pin { max-height: none; overflow: visible; }
.npp-cardpick .ndp-sx { overscroll-behavior: contain; }

/* the hand tray is solid, so "YOUR HAND" never prints over the map behind it */
body.g-notpandemic .npp-dock { background: var(--bg); box-shadow: 0 -1px 0 rgba(0,0,0,.1); }

/* End actions is the last cell of the action grid: full width, or (on short phones) in the empty cell beside the last action */
.npp-acts .btn.npp-end { grid-column: 1 / -1; margin-top: 0; }
@media (max-height: 600px) {
  .npp-acts .btn.npp-end { grid-column: auto; min-height: 48px; }
  .npp-acts .btn.npp-end:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-height: 600px) {
  /* 320x568: the action buttons stay 44px tall but sit tighter, and the hand strip is a little shorter,
     so End actions ends above the hand even for the roles with a sixth action */
  .npp-acts { gap: 4px; }
  .npp-act { min-height: 44px; padding: 3px 10px; }
  .npp-acts .btn.npp-end { min-height: 44px; }
  .npp-dock .ndp-fan { height: 56px; }
  .npp-handlabel { line-height: 1.1; }
}

/* /shared/notbattleship.css */
/* Sea Battle pieces, shared by the TV and the phones: the grey case, the blue pegboard
   ocean with a hole in every square, white and red pegs, the boats as grey plastic pieces,
   splashes, bursts and fire, the wordmark and the chart-table surface. Size a board with --cell.
   Anything that moves animates transform and opacity only, never a filter (TV WebViews). */

/* ---- the table: a harbour chart, by day (light) and by night (dark) ---- */
.tbl-battleship {
  --tbl-edge: #04101f; --tbl-rim: #2f5279; --tbl-glow: rgba(110,170,255,.12);
  background:
    radial-gradient(ellipse 65% 55% at 50% 46%, rgba(70,130,210,.18), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420'%3E%3Cg fill='none' stroke='%237fb0e8' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M-20 60 C 90 20 180 110 300 70 S 520 10 660 70'/%3E%3Cpath d='M-20 150 C 110 110 210 200 330 160 S 540 100 660 170' stroke-dasharray='10 7'/%3E%3Cpath d='M-20 260 C 80 230 200 300 320 262 S 520 210 660 270'/%3E%3Cpath d='M-20 360 C 120 330 230 400 340 362 S 540 320 660 372' stroke-dasharray='3 6'/%3E%3C/g%3E%3Cg fill='%2393bfee' fill-opacity='.2' font-family='Georgia,serif' font-size='13' font-style='italic'%3E%3Ctext x='60' y='110'%3E14%3C/text%3E%3Ctext x='250' y='40'%3E9%3C/text%3E%3Ctext x='420' y='130'%3E21%3C/text%3E%3Ctext x='560' y='220'%3E18%3C/text%3E%3Ctext x='130' y='215'%3E27%3C/text%3E%3Ctext x='350' y='320'%3E33%3C/text%3E%3Ctext x='540' y='395'%3E30%3C/text%3E%3Ctext x='70' y='330'%3E24%3C/text%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(150,190,240,.05) 0 1px, transparent 1px 160px),
    repeating-linear-gradient(90deg, rgba(150,190,240,.05) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, #11304f 0%, #0b223c 60%, #07182c 100%);
}
[data-theme="light"] .tbl-battleship {
  --tbl-edge: #8fb3c6; --tbl-rim: #f7f3e6; --tbl-glow: rgba(255,255,255,.4);
  background:
    radial-gradient(ellipse 65% 55% at 50% 46%, rgba(255,255,255,.55), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420'%3E%3Cg fill='none' stroke='%234d8fb8' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M-20 60 C 90 20 180 110 300 70 S 520 10 660 70'/%3E%3Cpath d='M-20 150 C 110 110 210 200 330 160 S 540 100 660 170' stroke-dasharray='10 7'/%3E%3Cpath d='M-20 260 C 80 230 200 300 320 262 S 520 210 660 270'/%3E%3Cpath d='M-20 360 C 120 330 230 400 340 362 S 540 320 660 372' stroke-dasharray='3 6'/%3E%3C/g%3E%3Cg fill='%233f6f8f' fill-opacity='.3' font-family='Georgia,serif' font-size='13' font-style='italic'%3E%3Ctext x='60' y='110'%3E14%3C/text%3E%3Ctext x='250' y='40'%3E9%3C/text%3E%3Ctext x='420' y='130'%3E21%3C/text%3E%3Ctext x='560' y='220'%3E18%3C/text%3E%3Ctext x='130' y='215'%3E27%3C/text%3E%3Ctext x='350' y='320'%3E33%3C/text%3E%3Ctext x='540' y='395'%3E30%3C/text%3E%3Ctext x='70' y='330'%3E24%3C/text%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(60,110,150,.07) 0 1px, transparent 1px 160px),
    repeating-linear-gradient(90deg, rgba(60,110,150,.07) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, #e3f0f2 0%, #d3e7ec 60%, #c6dfe6 100%);
}

/* ---- the grey case and the blue ocean ---- */
.nb-case, .nb-case * { box-sizing: border-box; }
.nb-case {
  --cell: 56px;
  position: relative; flex: none; display: grid; user-select: none; -webkit-user-select: none;
  grid-template-columns: calc(var(--cell) * .56) calc(var(--cell) * 10);
  grid-template-rows: calc(var(--cell) * .5) calc(var(--cell) * 10);
  padding: calc(var(--cell) * .16) calc(var(--cell) * .3) calc(var(--cell) * .3) calc(var(--cell) * .14);
  border-radius: calc(var(--cell) * .34);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 8%, transparent 92%, rgba(0,0,0,.08)),
    linear-gradient(170deg, #dde0e4 0%, #bcc1c8 40%, #a3a9b1 100%);
  box-shadow: inset 0 calc(var(--cell) * .04) 0 rgba(255,255,255,.75), inset 0 calc(var(--cell) * -.06) 0 rgba(0,0,0,.2),
    inset 0 0 0 1px rgba(0,0,0,.12), 0 calc(var(--cell) * .14) calc(var(--cell) * .5) rgba(0,0,0,.38), 0 2px 4px rgba(0,0,0,.25);
}
.nb-labels { display: grid; font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: calc(var(--cell) * .34); color: #59606a; text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.12); line-height: 1; }
.nb-labels span { display: flex; align-items: center; justify-content: center; }
.nb-labels.top { grid-column: 2; grid-row: 1; grid-template-columns: repeat(10, var(--cell)); }
.nb-labels.side { grid-column: 1; grid-row: 2; grid-template-rows: repeat(10, var(--cell)); }
.nb-ocean {
  grid-column: 2; grid-row: 2; position: relative; width: calc(var(--cell) * 10); height: calc(var(--cell) * 10);
  border-radius: calc(var(--cell) * .1); overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 40% 30%, rgba(255,255,255,.12), transparent 70%), linear-gradient(180deg, #2b75c4 0%, #1d5fa8 55%, #174f90 100%);
  box-shadow: inset 0 0 0 calc(var(--cell) * .04) #12477f, inset 0 calc(var(--cell) * .08) calc(var(--cell) * .25) rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.6);
}
.nb-grid {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, var(--cell)); grid-template-rows: repeat(10, var(--cell));
  background-image: linear-gradient(90deg, rgba(160,205,255,.22) 1px, transparent 1px), linear-gradient(0deg, rgba(160,205,255,.22) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: -1px -1px;
}
.nb-c { position: relative; display: block; }
.nb-c::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--cell) * .34); height: calc(var(--cell) * .34); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 64%, #061a33 0 46%, #0b2b52 72%, #164a86 100%);
  box-shadow: inset 0 calc(var(--cell) * .04) calc(var(--cell) * .05) rgba(0,0,0,.75), 0 1px 0 rgba(170,215,255,.35);
  transition: transform .15s;
}
.nb-pieces, .nb-pegs, .nb-fx { position: absolute; inset: 0; pointer-events: none; }

/* ---- pegs, seen from above ---- */
.nb-peg { position: absolute; left: calc((var(--c) + .5) * var(--cell)); top: calc((var(--r) + .5) * var(--cell)); width: calc(var(--cell) * .44); height: calc(var(--cell) * .44); transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; }
.nb-peg.w { background: radial-gradient(circle at 36% 30%, #ffffff 0 16%, #f2f2ee 34%, #d6d8dc 70%, #a9aeb6 100%); box-shadow: 0 calc(var(--cell) * .05) calc(var(--cell) * .06) rgba(0,0,0,.5), inset 0 0 0 calc(var(--cell) * .03) rgba(0,0,0,.1), inset 0 calc(var(--cell) * -.03) calc(var(--cell) * .04) rgba(0,0,0,.15); }
.nb-peg.r { background: radial-gradient(circle at 36% 30%, #ffc2bc 0 10%, #f5534b 30%, #d3221c 64%, #8e100c 100%); box-shadow: 0 calc(var(--cell) * .05) calc(var(--cell) * .06) rgba(0,0,0,.55), inset 0 0 0 calc(var(--cell) * .03) rgba(80,0,0,.25), 0 0 calc(var(--cell) * .2) rgba(255,70,50,.35); }
/* a hit on a sunk boat: the fire is out, the peg goes dark (xl: at --xd, as the sinking shot lands) */
.nb-peg.r.x { box-shadow: 0 calc(var(--cell) * .05) calc(var(--cell) * .06) rgba(0,0,0,.55); }
.nb-peg.r.x::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #e3a29b 0 8%, #a93a31 30%, #7a1a14 62%, #3d0705 100%); box-shadow: inset 0 0 0 calc(var(--cell) * .035) rgba(25,0,0,.5); }
.nb-peg.r.xl::after { animation: nbx-dark .4s ease var(--xd, 0ms) both; }
@keyframes nbx-dark { from { opacity: 0; } }
.nb-peg.fresh { animation: nb-drop .55s cubic-bezier(.25,1.5,.5,1) var(--d, 0ms) both; }
@keyframes nb-drop { 0% { transform: translate(-50%, -160%) scale(2.1); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.nb-peg.solo { position: relative; left: auto; top: auto; display: inline-block; vertical-align: middle; transform: none; --cell: 40px; }

/* the gold crosshair where someone is aiming */
.nb-aim { position: absolute; left: calc((var(--c) + .5) * var(--cell)); top: calc((var(--r) + .5) * var(--cell)); width: calc(var(--cell) * 1.02); height: calc(var(--cell) * 1.02); transform: translate(-50%, -50%); z-index: 3; animation: nb-aim 1.2s ease-in-out infinite; }
.nb-aim svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nb-aim circle, .nb-aim path { fill: none; stroke-linecap: round; }
.nb-aim .nba-glow > * { stroke: rgba(255,214,10,.32); stroke-width: 10; }
.nb-aim .nba-edge > * { stroke: rgba(0,0,0,.55); stroke-width: 6.4; }
.nb-aim .nba-top > * { stroke: #ffd60a; stroke-width: 3.4; }
@keyframes nb-aim { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(.86); } }

/* ---- the boats: grey plastic, seen from above ---- */
.nb-piece { position: absolute; left: calc(var(--c) * var(--cell)); top: calc(var(--r) * var(--cell)); width: calc(var(--len) * var(--cell)); height: var(--cell); padding: calc(var(--cell) * .05) calc(var(--cell) * .02); z-index: 1; filter: drop-shadow(0 calc(var(--cell) * .06) calc(var(--cell) * .05) rgba(0,0,20,.45)); }
.nb-piece.v { transform-origin: 0 0; transform: translateX(var(--cell)) rotate(90deg); }
.nb-piece .nb-hull { width: 100%; height: 100%; display: block; }
.nb-hull { overflow: visible; }
.nbh-hull { fill: url(#nb-grey); stroke: #5b616b; stroke-width: 3; }
.nbh-deck { fill: url(#nb-grey-2); stroke: rgba(70,76,86,.35); stroke-width: 2; }
.nbh-top { fill: #d9dce1; stroke: #737a84; stroke-width: 2.4; }
.nbh-funnel { fill: #8a9099; stroke: #5b616b; stroke-width: 2; }
.nbh-pool { fill: #959ca5; }
.nbh-boat { fill: #e6e8eb; stroke: #8d939b; stroke-width: 1.5; }
.nbh-box { fill: #b6bbc2; stroke: #7a818b; stroke-width: 1.6; }
.nbh-box.b { fill: #a1a7af; }
.nbh-win { fill: #6f7680; }
.nbh-tyre { fill: #3d4148; }
.nbh-bitt { fill: #6a7079; }
.nbh-stripe { fill: none; stroke: #8b919a; stroke-width: 4; stroke-linecap: round; }
.nbh-hole { fill: url(#nb-hole); }
.nbh-rim { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2.2; stroke-dasharray: 26 60; stroke-dashoffset: 30; }
.nb-piece.sunk { filter: drop-shadow(0 calc(var(--cell) * .04) calc(var(--cell) * .04) rgba(0,0,20,.4)) saturate(.6) brightness(.78); }
.nb-piece.sunk .nbh-hull { stroke: #7a2a24; }

/* ---- a splash (miss) or a burst (hit) over a square ---- */
.nb-boom { position: absolute; left: calc((var(--c) + .5) * var(--cell)); top: calc((var(--r) + .5) * var(--cell)); width: calc(var(--cell) * 2.4); height: calc(var(--cell) * 2.4); transform: translate(-50%, -50%); z-index: 4; }
.nb-boom i, .nb-boom u { position: absolute; left: 50%; top: 50%; border-radius: 50%; animation-fill-mode: both; }
.nb-boom.miss i { width: 40%; height: 40%; margin: -20% 0 0 -20%; border: calc(var(--cell) * .07) solid rgba(255,255,255,.95); animation: nb-ring .9s ease-out both; }
.nb-boom.miss i:nth-child(2) { animation-duration: 1.2s; border-width: calc(var(--cell) * .045); }
.nb-boom.miss u { width: 30%; height: 30%; margin: -15% 0 0 -15%; background: radial-gradient(circle, #fff 0 30%, rgba(200,235,255,.85) 50%, transparent 72%); animation: nb-flash .5s ease-out both; }
.nb-boom.hit u { width: 100%; height: 100%; margin: -50% 0 0 -50%; background: radial-gradient(circle, #fffbe0 0 12%, #ffd23f 26%, #ff7a1a 44%, rgba(220,40,20,.6) 60%, transparent 72%); animation: nb-flash .7s ease-out both; }
.nb-boom.hit i { width: 14%; height: 14%; margin: -7% 0 0 -7%; background: radial-gradient(circle, #fff3b0, #ff8a1f 60%, transparent 70%); animation: nb-spark .7s ease-out both; }
.nb-boom.hit i:nth-child(1) { --a: 0deg; } .nb-boom.hit i:nth-child(2) { --a: 60deg; } .nb-boom.hit i:nth-child(3) { --a: 120deg; }
.nb-boom.hit i:nth-child(4) { --a: 180deg; } .nb-boom.hit i:nth-child(5) { --a: 240deg; } .nb-boom.hit i:nth-child(6) { --a: 300deg; }
@keyframes nb-ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes nb-flash { 0% { transform: scale(.2); opacity: 1; } 60% { opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes nb-spark { 0% { transform: rotate(var(--a)) translateX(0) scale(1.4); opacity: 1; } 100% { transform: rotate(var(--a)) translateX(calc(var(--cell) * 1.1)) scale(.3); opacity: 0; } }

/* ---- fire: a hit boat that is still afloat burns in every hit square ---- */
.nb-fire { position: absolute; left: calc(var(--c) * var(--cell)); top: calc(var(--r) * var(--cell)); width: var(--cell); height: var(--cell); z-index: 3; pointer-events: none; }
.nb-fire.fresh { animation: nbf-light .45s cubic-bezier(.2,1.4,.4,1) var(--d, 0ms) both; }
.nb-fire.out { animation: nbf-out .45s ease-in var(--xd, 0ms) both; }
.nb-fire b { position: absolute; left: 23%; bottom: 43%; width: 54%; height: 80%; transform-origin: 50% 100%; }
.nb-fire b svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nb-fire .nbf-a { animation: nbf-a .9s ease-in-out calc(var(--fd, 0) * -1s) infinite; }
.nb-fire .nbf-b { left: 31%; width: 38%; height: 54%; bottom: 44%; animation: nbf-b .64s ease-in-out calc(var(--fd, 0) * -1.3s) infinite; }
.nb-fire u { position: absolute; left: 27%; top: -16%; width: 46%; height: 46%; border-radius: 50%; background: radial-gradient(circle, rgba(58,62,70,.9), rgba(58,62,70,.45) 42%, rgba(58,62,70,0) 70%); opacity: 0; animation: nbf-smoke 1.9s ease-out calc(var(--fd, 0) * -1.9s) infinite; }
.nb-fire u + u { animation-delay: calc(var(--fd, 0) * -1.9s - .95s); }
@keyframes nbf-light { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes nbf-out { to { opacity: 0; transform: translateY(12%) scale(.4, .2); } }
@keyframes nbf-a { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.9, 1.1) skewX(-4deg); } 55% { transform: scale(1.06, .92); } 80% { transform: scale(.95, 1.06) skewX(3deg); } }
@keyframes nbf-b { 0%, 100% { transform: scale(1, 1); opacity: 1; } 40% { transform: scale(1.1, .86) skewX(4deg); opacity: .82; } 70% { transform: scale(.9, 1.12) skewX(-3deg); } }
@keyframes nbf-smoke { 0% { transform: translate(0, 60%) scale(.4); opacity: 0; } 25% { opacity: .85; } 100% { transform: translate(26%, -150%) scale(1.8); opacity: 0; } }
/* the fire going out when the boat sinks: a puff of steam over each of its squares */
.nb-quench { position: absolute; left: calc(var(--c) * var(--cell)); top: calc(var(--r) * var(--cell)); width: var(--cell); height: var(--cell); z-index: 4; pointer-events: none; }
.nb-quench i { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(232,236,242,.95), rgba(170,178,188,.55) 48%, rgba(170,178,188,0) 72%); opacity: 0; animation: nbq-puff 1.3s ease-out both; }
.nb-quench i:nth-child(2) { --qx: -45%; } .nb-quench i:nth-child(3) { --qx: 45%; }
@keyframes nbq-puff { 0% { transform: translate(0, 15%) scale(.4); opacity: 0; } 25% { opacity: .95; } 100% { transform: translate(var(--qx, 0), -105%) scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nb-fire b, .nb-fire u { animation: none; } .nb-fire u { opacity: .4; } }

/* ---- the sea a boat sinks into (big moments on the TV and the phones) ---- */
/* the swell is a strip one wave wider than the sea, slid along by a wave (transform only) */
.nb-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; z-index: 2; border-radius: 0 0 40px 40px; overflow: hidden; }
.nb-waves::before, .nb-waves::after { content: ''; position: absolute; left: -40px; right: 0; top: 0; bottom: 0; transform: translateX(var(--nbw, 0px)); animation: nb-swell 1.8s linear infinite; }
.nb-waves::before { background: radial-gradient(circle at 20px -6px, transparent 0 21px, #2b75c4 22px) 0 0 / 40px 30px repeat-x, linear-gradient(180deg, transparent 0 29px, #2b75c4 29px, #1d5fa8 60%, #174f90 100%); }
.nb-waves::after { top: 7px; bottom: auto; height: 8px; background: radial-gradient(ellipse 9px 3px at 20px 4px, rgba(255,255,255,.9), transparent 75%) 0 0 / 40px 8px repeat-x; }
@keyframes nb-swell { from { transform: none; } to { transform: translateX(40px); } }

/* ---- the wordmark: SEA over a stencilled BATTLE, navy with a red waterline ---- */
.nb-mark { display: inline-flex; flex-direction: column; align-items: center; line-height: .86; font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Impact, sans-serif; text-transform: uppercase; color: #fff; }
.nb-mark small { font-size: .3em; font-weight: 900; letter-spacing: .5em; margin-left: .5em; color: #ffd60a; }
.nb-mark b {
  font-size: 1em; font-weight: 900; letter-spacing: .02em; font-stretch: condensed;
  background: linear-gradient(180deg, #ffffff 0 46%, transparent 46% 53%, #dfe6ef 53% 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .05em 0 #c8231d) drop-shadow(0 .06em .08em rgba(0,0,0,.45));
}
[data-theme="light"] .nb-mark small { color: #c8231d; }
[data-theme="light"] .nb-mark b { background: linear-gradient(180deg, #123a66 0 46%, transparent 46% 53%, #1d4f86 53% 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 .05em 0 #e3342f) drop-shadow(0 .05em .06em rgba(0,40,80,.25)); }

/* /phone/games/notbattleship.css */
/* Sea Battle on a phone: the turn bar, the ocean (as big as the screen allows), the
   shipyard or the fleet row, and the FIRE button. Dark rules first, light overrides last.
   Loops move transform and opacity only: glows are painted once and faded, never re-blurred. */
.nbp { display: flex; flex-direction: column; gap: 10px; }
.nbp-bar { min-height: 64px; }
.nbp.place .nbp-bar.me .ndp-tbtext > b { font-size: 24px; white-space: nowrap; }
.nbp-bar .ndp-tbtext { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.nbp-bar.me .ndp-tbtext > b { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; font-style: normal; font-weight: 900; font-size: 30px; letter-spacing: .01em; }
.nbp-bar.me { animation: nbp-throb 1.6s ease-in-out infinite; }
.nbp-bar.me.pop { animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nbp-throb 1.6s ease-in-out .4s infinite; }
@keyframes nbp-throb { 50% { transform: scale(1.015); } }
.nbp-bar.idle { background: rgba(6,20,40,.72); border: 1px solid rgba(140,190,240,.18); }
/* the gold frame round the screen on your turn: a still glow whose opacity breathes */
body.nbp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 6px #ffc400, inset 0 0 64px rgba(255,196,0,.55); animation: nbp-frame 1.6s ease-in-out infinite; }
@keyframes nbp-frame { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
/* the beat between turns: the answer to the last volley, then who is next */
.nbp-bar.nbp-res { color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.3); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.nbp-bar.nbp-res.k-hit, .nbp-bar.nbp-res.k-sunk { background: linear-gradient(120deg, #ef3b33, #a8170f); }
.nbp-bar.nbp-res.k-miss { background: linear-gradient(120deg, #3f6f9f, #234a73); }
.nbp-bar.nbp-res .ndp-tbtext > b { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: .01em; }
.nbp-bar.nbp-res .ndp-tbtext > span { font-size: 14px; font-weight: 700; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbp-next { flex: none; max-width: 38%; text-align: right; font-size: 13px; font-weight: 800; line-height: 1.2; opacity: .9; }

@media (max-width: 359px) { .nbp.place .nbp-bar.me .ndp-tbtext > b { font-size: 20px; } .nbp-bar.me .ndp-tbtext > b { font-size: 24px; } }

/* ---- the ocean ---- */
.nbp-boardwrap { position: relative; display: flex; justify-content: center; margin: 0 -11px; }
.nb-case.ph {
  grid-template-columns: calc(var(--cell) * .46) calc(var(--cell) * 10);
  grid-template-rows: calc(var(--cell) * .44) calc(var(--cell) * 10);
  padding: calc(var(--cell) * .06) calc(var(--cell) * .12) calc(var(--cell) * .12) calc(var(--cell) * .04);
  border-radius: calc(var(--cell) * .3);
}
.nb-case.ph .nb-labels { font-size: max(12px, calc(var(--cell) * .36)); }
.nb-case.placing { touch-action: none; }
.nb-case.ph.live .nb-c.open { cursor: pointer; }
.nb-case.ph.live .nb-c.open:active::before { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 0 calc(var(--cell) * .08) rgba(255,214,10,.8); }
.nb-case.ph.live { box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -3px 0 rgba(0,0,0,.2), 0 0 0 3px #ffc400, 0 0 26px rgba(255,196,0,.5), 0 10px 26px rgba(0,0,0,.35); }
.nb-case.ph .nb-piece.sel { filter: drop-shadow(0 0 calc(var(--cell) * .08) #ffd60a) drop-shadow(0 0 calc(var(--cell) * .16) rgba(255,214,10,.8)); }
.nb-case.ph .nb-piece.lifted { opacity: .35; }
/* the boat you are dragging: snapped to the grid, on a green footprint (red where it cannot go) */
.nb-piece.nbp-ghost { z-index: 5; filter: none; border-radius: calc(var(--cell) * .22); background: rgba(74,222,128,.32); box-shadow: inset 0 0 0 calc(var(--cell) * .06) #4ade80; }
.nb-piece.nbp-ghost.bad { background: rgba(255,69,58,.3); box-shadow: inset 0 0 0 calc(var(--cell) * .06) #ff453a; }
.nb-piece.nbp-ghost.bad .nb-hull { opacity: .6; }
/* …and off the water, a free boat under the finger */
.nbp-float { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform; }
.nbp-float i { display: block; width: calc(var(--len) * var(--cell)); height: var(--cell); padding: calc(var(--cell) * .05) calc(var(--cell) * .02); opacity: .92; }
.nbp-float.v i { transform-origin: 0 0; transform: translateX(var(--cell)) rotate(90deg); }
.nbp-float .nb-hull { width: 100%; height: 100%; display: block; }
/* the one-time hint on the first boat out: tap it to turn it */
.nb-case.ph .nb-piece.nbp-wiggle { filter: none; z-index: 4; }
.nb-piece.nbp-wiggle .nb-hull { animation: nbp-wiggle .7s ease-in-out .35s 2; }
@keyframes nbp-wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-4deg) scale(1.04); } 45% { transform: rotate(4deg) scale(1.04); } 70% { transform: rotate(-2deg); } }
.nbp-hint { position: absolute; z-index: 8; left: calc(50% + (var(--hx) - 5.31) * var(--cell)); top: calc(var(--hy) * var(--cell)); transform: translate(-50%, -100%); padding: 8px 14px; border-radius: 12px; background: #ffd60a; color: #1b1b1b; font-size: 15px; font-weight: 900; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.35); animation: nbp-hint 3.8s ease both; }
.nbp-hint::after { content: ''; position: absolute; left: calc(50% + var(--tx) * var(--cell)); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #ffd60a; transform: rotate(45deg); border-radius: 2px; }
.nbp-hint.below { transform: translate(-50%, 0); animation-name: nbp-hint-b; }
.nbp-hint.below::after { bottom: auto; top: -7px; }
@keyframes nbp-hint { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.85); } 8% { opacity: 1; transform: translate(-50%, -100%); } 88% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -100%); } }
@keyframes nbp-hint-b { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.85); } 8% { opacity: 1; transform: translate(-50%, 0); } 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.nb-case.locked .nb-ocean::after { content: ''; position: absolute; inset: 0; background: rgba(0,30,20,.12); pointer-events: none; }

/* ---- the shipyard (placing) ---- */
.nbp-yard { display: grid; grid-template-columns: repeat(18, 1fr); gap: 8px 6px; touch-action: pan-y; }
.nbp-ys { --cell: 28px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; min-height: 64px; border: none; border-radius: 14px; background: rgba(255,255,255,.08); color: inherit; box-shadow: inset 0 0 0 1px rgba(150,190,240,.16); cursor: grab; transition: transform .15s, opacity .2s; }
.nbp.place.mine .nbp-ys { touch-action: none; } /* a finger on a boat drags it, it does not scroll the page */
.nbp-ys[data-ship="cruise"] { grid-column: span 10; } .nbp-ys[data-ship="freighter"] { grid-column: span 8; }
.nbp-ys[data-ship="ferry"], .nbp-ys[data-ship="seabus"] { grid-column: span 6; } .nbp-ys[data-ship="tug"] { grid-column: span 6; }
.nbp-ysh { display: block; width: calc(var(--len) * var(--cell)); max-width: 100%; height: var(--cell); filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.nbp-ysh .nb-hull { width: 100%; height: 100%; display: block; }
.nbp-ysn { font-size: 14px; font-weight: 800; white-space: nowrap; }
.nbp-ysn small { margin-left: 5px; font-size: 13px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: rgba(150,190,240,.2); }
.nbp-ys.sel { box-shadow: inset 0 0 0 2.5px #ffd60a, 0 0 18px rgba(255,214,10,.45); transform: translateY(-2px); }
.nbp-ys.placed { opacity: .5; }
.nbp-ys.placed.sel { opacity: 1; }
.nbp-tick { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 14px; font-weight: 900; color: #4ade80; }
.nbp-ys:disabled { cursor: default; }
.nbp-tools { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.nbp-tools .btn { min-height: 48px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }
.nbp-rotl { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.nbp-rotl small { font-size: 12px; font-weight: 700; opacity: .72; letter-spacing: .02em; }
.nbp-rot { display: inline-block; font-size: 22px; transition: transform .2s; }
.nbp-rot.v { transform: rotate(90deg); }
.nbp-foot { position: sticky; bottom: var(--safe-bottom); z-index: 6; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; margin: 0 -16px; padding: 8px 16px; background: var(--bg); box-shadow: 0 -8px 12px -6px var(--bg); }
.nbp-foot .btn { white-space: nowrap; padding: 0 6px; min-height: 48px; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }
.nbp-foot .btn.primary { background: var(--accent, #007aff); color: #fff; font-size: 18px; }
.nbp-foot .btn:disabled { opacity: 1; background: rgba(120,130,150,.35); color: inherit; }
.nbp-yardtools { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nbp-yardtools span { flex: 1; opacity: .85; }
.nbp-yardtools .btn { flex: none; min-height: 44px; font-size: 14px; }
.nbp-ready { min-height: 56px; font-size: 18px; font-weight: 800; }
.nbp-readybox { display: flex; align-items: center; gap: 10px; }
.nbp-readyt { flex: 1; font-size: 18px; font-weight: 900; color: #4ade80; }
.nbp-readybox .btn { flex: 1; min-height: 48px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }

/* ---- the battle: tabs, fire, the fleet row ---- */
.nbp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.nbp-tabs button { border: none; border-radius: 11px; background: transparent; color: rgba(235,240,250,.7); font-size: 15px; font-weight: 800; padding: 6px 6px 5px; min-height: 44px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; cursor: pointer; white-space: nowrap; overflow: hidden; }
.nbp-tabs button small { font-size: 14px; font-weight: 700; }
.nbp-tabs button.on { background: #f4f3ee; color: #10233c; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.nbp-fire { display: flex; gap: 8px; position: sticky; bottom: var(--safe-bottom); z-index: 6; margin: 0 -16px; padding: 8px 16px; background: var(--bg); box-shadow: 0 -8px 12px -6px var(--bg); }
.nbp-firebtn { flex: 1; min-height: 56px; font-size: 19px; font-weight: 900; letter-spacing: .04em; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: rgba(235,240,250,.8); }
.nbp-firebtn { position: relative; }
.nbp-firebtn.armed { background: linear-gradient(180deg, #ef3b33, #b51d17); color: #fff; box-shadow: 0 8px 22px rgba(200,35,29,.45), inset 0 1px 0 rgba(255,255,255,.3); }
/* armed: a still red glow behind the button that breathes (opacity only) */
.nbp-firebtn.armed::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 8px 30px rgba(239,59,51,.8); opacity: 0; pointer-events: none; animation: nbp-arm 1.2s ease-in-out infinite; }
.nbp-firebtn.armed:disabled { opacity: .6; }
.nbp-firebtn.armed:disabled::after { animation: none; }
@keyframes nbp-arm { 50% { opacity: 1; } }
.nbp-clr { width: auto; min-height: 56px; padding: 0 16px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }
.nbp-track { padding: 8px 10px 8px; border-radius: 14px; background: linear-gradient(180deg, #a9afb7, #c4c9cf); box-shadow: inset 0 2px 5px rgba(0,0,0,.28); }
.nbp-tlab { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #3f4650; margin-bottom: 4px; }
.nbp-tships { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; touch-action: pan-y; }
.nbp-ts { --cell: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; flex: 0 1 auto; }
.nbp-tsb { position: relative; width: calc(var(--len) * var(--cell)); height: var(--cell); filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
.nbp-tsb .nb-hull { width: 100%; height: 100%; display: block; }
.nbp-ts span { font-size: 14px; font-weight: 800; color: #26303c; line-height: 1.05; text-align: center; }
.nbp-ts.sunk .nbp-tsb { filter: brightness(.8); transform: rotate(-5deg); }
.nbp-ts.sunk span { color: #9b1d18; text-decoration: line-through; }
.nbp-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 9px; font-weight: 900; letter-spacing: .12em; color: #fff; background: #c8231d; padding: 0 4px; border-radius: 3px; z-index: 3; }
.nbp-last { font-size: 14px; line-height: 1.3; color: rgba(235,240,250,.75); text-align: center; padding: 0 6px; }
.nbp-last.l-hit, .nbp-last.l-sink { color: #ff8a80; font-weight: 700; }
.nbp-last.l-win { color: #ffd60a; font-weight: 800; }

/* slide across a row of boats to read them */
.nbp-peek { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 170px); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(10,22,40,.96); color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .12s, transform .12s; max-width: 496px; margin: 0 auto; }
.nbp-peek.on { opacity: 1; transform: none; }
.nbp-pk-art { --cell: 22px; flex: none; width: calc(var(--len) * var(--cell)); height: var(--cell); }
.nbp-pk-art .nb-hull { width: 100%; height: 100%; display: block; }
.nbp-pk-t { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.nbp-pk-t b { font-size: 17px; }
.nbp-pk-t span { color: rgba(235,240,250,.78); }

/* ---- moments ---- */
.nbp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; text-align: center; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, rgba(4,14,30,.82)), rgba(2,8,18,.94) 75%); animation: nbp-moment 2.9s ease both; }
.nbp-moment.first { animation-duration: 2.2s; }
@keyframes nbp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.nbp-moment .big { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; font-size: 52px; font-weight: 900; line-height: .95; text-transform: uppercase; color: #fff; text-shadow: 0 4px 0 #c8231d, 0 10px 24px rgba(0,0,0,.5); animation: nbp-slam .5s cubic-bezier(.2,1.5,.4,1) both; max-width: 92vw; }
.nbp-moment.good .big { color: #ffd60a; }
.nbp-moment.bad .big { color: #fff; text-shadow: 0 4px 0 #7a0d09, 0 10px 24px rgba(0,0,0,.5); }
@keyframes nbp-slam { from { transform: scale(1.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.nbp-moment .who { background: rgba(0,0,0,.65); color: #fff; font-size: 16px; font-weight: 800; padding: 9px 16px; border-radius: 999px; max-width: 92vw; }
.nbp-moment.bad .who { background: #c8231d; }
.nbp-msink { position: relative; display: flex; gap: 14px; height: 120px; align-items: flex-end; padding: 0 30px 40px; overflow: hidden; border-radius: 0 0 30px 30px; }
.nbp-msink > div:not(.nb-waves) { --cell: 44px; width: calc(var(--len) * var(--cell)); max-width: 70vw; height: var(--cell); animation: nb-sink 2.3s cubic-bezier(.5,0,.8,.6) .5s both; }
.nbp-msink .nb-waves { height: 58px; }
.nbp-msink .nb-hull { width: 100%; height: 100%; display: block; }
@keyframes nb-sink { 0% { transform: none; } 30% { transform: rotate(-9deg) translateY(8px); } 100% { transform: rotate(-22deg) translateY(110px); } }
.nbp-coin { width: 86px; height: 86px; perspective: 400px; }
.nbp-coin i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2c94c 45%, #b9861a 100%); box-shadow: inset 0 0 0 6px rgba(140,95,10,.5), 0 8px 20px rgba(0,0,0,.4); animation: nbp-flip 1s cubic-bezier(.3,.7,.4,1) both; }
@keyframes nbp-flip { from { transform: rotateX(1440deg) translateY(-40px); } to { transform: none; } }

/* ---- the end ---- */
.nbp-final { gap: 12px; }
.nbp-fbig { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; font-size: 50px; font-weight: 900; line-height: .95; text-transform: uppercase; text-shadow: 0 4px 0 #c8231d; }
.nbp-fbig.won { color: #ffd60a; }
.nbp-fboards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; justify-items: center; }
.nbp-flabel { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; opacity: .8; }
.nb-case.ph.sm .nb-labels { font-size: calc(var(--cell) * .4); }
.nbp-specart { --len: 4; width: 160px; height: 40px; }
.nbp-specart .nb-hull { width: 100%; height: 100%; }

/* ---- light: the chart by day ---- */
[data-theme="light"] .nbp-bar.idle { background: rgba(255,255,255,.85); border-color: rgba(16,35,60,.08); box-shadow: 0 4px 14px rgba(30,60,100,.1); color: #44556b; }
[data-theme="light"] .nbp-bar.idle b { color: #10233c; }
[data-theme="light"] .nbp-ys { background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(16,35,60,.1), 0 3px 10px rgba(30,60,100,.08); color: #10233c; }
[data-theme="light"] .nbp-ys.sel { box-shadow: inset 0 0 0 2.5px #e0a400, 0 0 16px rgba(224,164,0,.35); }
[data-theme="light"] .nbp-ysn small { background: rgba(16,35,60,.08); }
[data-theme="light"] .nbp-tick { color: #16a34a; }
[data-theme="light"] .nbp-foot .btn:not(.primary), [data-theme="light"] .nbp-tools .btn, [data-theme="light"] .nbp-readybox .btn, [data-theme="light"] .nbp-clr { background: rgba(255,255,255,.85); color: #10233c; box-shadow: 0 2px 8px rgba(30,60,100,.1); }
[data-theme="light"] .nbp-foot .btn:disabled { background: rgba(16,35,60,.12); color: #44556b; }
[data-theme="light"] .nbp-readyt { color: #16803c; }
[data-theme="light"] .nbp-tabs { background: rgba(16,35,60,.1); box-shadow: none; }
[data-theme="light"] .nbp-tabs button { color: #44556b; }
[data-theme="light"] .nbp-tabs button.on { background: #fff; color: #10233c; box-shadow: 0 2px 8px rgba(30,60,100,.15); }
[data-theme="light"] .nbp-firebtn { background: rgba(255,255,255,.8); color: #44556b; box-shadow: 0 2px 8px rgba(30,60,100,.1); }
[data-theme="light"] .nbp-firebtn.armed { background: linear-gradient(180deg, #ef3b33, #b51d17); color: #fff; }
[data-theme="light"] .nbp-last { color: #44556b; }
[data-theme="light"] .nbp-last.l-hit, [data-theme="light"] .nbp-last.l-sink { color: #b42318; }
[data-theme="light"] .nbp-last.l-win { color: #8a5a00; }
[data-theme="light"] .nbp-peek { background: rgba(255,255,255,.98); color: #10233c; box-shadow: 0 18px 40px rgba(30,60,100,.25); }
[data-theme="light"] .nbp-pk-t span { color: #44556b; }
[data-theme="light"] .nbp-fbig.won { color: #c8231d; text-shadow: 0 4px 0 #ffd60a; }
[data-theme="light"] .nbp-bar.nbp-res { box-shadow: 0 6px 16px rgba(30,60,100,.18); }
[data-theme="light"] .nbp-bar.nbp-res.k-miss { background: linear-gradient(120deg, #4f86bd, #2d5d8f); }

/* /shared/notguesswho.css */
/* Who Is It?: face cards, mystery card backs and the game-night table, shared by the
   TV and the phones. A face card fills the width of its box; everything inside it is
   sized from the card's own width (cqw), the card's own box from its parent. */
.gwcard, .gwcard * { box-sizing: border-box; }
.gwcard {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 100 / 124; container-type: inline-size;
  border-radius: 8% / 6.5%; overflow: hidden; background: #fffdf8; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px rgba(60,40,20,.12);
}
.gwcard .gw-art { display: block; width: 100%; height: auto; aspect-ratio: 1; flex: none; }
.gwcard .gw-nm {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0;
  font: 800 15cqw/1 "Avenir Next Rounded", "Avenir Next", "Nunito", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .01em; color: #1f1a17; background: #fffdf8; white-space: nowrap; overflow: hidden; padding: 0 3cqw;
  border-top: .9cqw solid rgba(60,40,20,.1);
}

/* The back of a mystery card: the board's colour, a big question mark. */
.gwback, .gwback * { box-sizing: border-box; }
.gwback {
  position: relative; width: 100%; aspect-ratio: 100 / 124; container-type: inline-size; border-radius: 8% / 6.5%; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 3cqw, transparent 3cqw 6cqw),
    radial-gradient(ellipse at 40% 25%, rgba(255,255,255,.3), transparent 60%),
    var(--gb, #d6342c);
  box-shadow: inset 0 0 0 3.5cqw rgba(255,255,255,.85), inset 0 0 0 5cqw rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
}
.gwback.s-blue { --gb: #1f63c9; }
.gwback i { font: 900 italic 62cqw/1 "Avenir Next", "Nunito", "Helvetica Neue", Arial, sans-serif; color: #fff; text-shadow: 2cqw 2.5cqw 0 rgba(0,0,0,.22); transform: rotate(-8deg); }

/* Plain-English traits for one person. */
.gw-explain { display: flex; flex-direction: column; gap: 4px; }
.gw-xname { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.gw-xabout { font-size: 15px; line-height: 1.3; color: var(--label-2, rgba(60,60,67,.64)); }
.gw-xtraits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gw-xtraits span { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fill, rgba(120,120,128,.14)); }

/* The table: a game night, the red side's glow on the left and the blue side's on the
   right. Dark is the evening; light is a sunny kitchen table. */
.tbl-guesswho {
  --tbl-edge: #0d0f17; --tbl-rim: #353a4f; --tbl-glow: rgba(255,240,200,.08);
  background:
    radial-gradient(ellipse 45% 70% at 0% 40%, rgba(214,52,44,.24), transparent 70%),
    radial-gradient(ellipse 45% 70% at 100% 40%, rgba(31,99,201,.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,214,120,.10), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.014) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #232637 0%, #1a1c29 60%, #13151e 100%);
}
[data-theme="light"] .tbl-guesswho {
  --tbl-edge: #ffffff; --tbl-rim: #e4d8c2; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 45% 70% at 0% 40%, rgba(214,52,44,.12), transparent 70%),
    radial-gradient(ellipse 45% 70% at 100% 40%, rgba(31,99,201,.13), transparent 70%),
    repeating-linear-gradient(90deg, rgba(150,110,60,.035) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #fbf6ec 0%, #f3ead9 100%);
}

/* /phone/games/notguesswho.css */
/* Who Is It? on a phone: whose turn, your mystery person, your board of 24 flip-down
   frames in your side's plastic, and the actions for this moment. Dark rules first, then
   the light theme. */
.gwp { --gold: #ffb800; overflow-x: clip; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; font-family: "Avenir Next", "Nunito", var(--font); }
.gwp [hidden] { display: none !important; }
.s-red { --pc: #d6342c; --phi: #f0614f; --plo: #a3221b; }
.s-blue { --pc: #1f63c9; --phi: #4a8ff0; --plo: #154a9b; }
.gwp .nup-turnbar { min-height: 62px; }
.gwp .nup-turnbar.idle .avatar { width: 30px; height: 30px; font-size: 14px; }
.gwp .nup-turnbar .tclock.answer .fg { stroke: #38bdf8; }
.gwp .nup-turnbar.me .tclock.answer.urgent .fg { stroke: #fff; }

/* your person and the other player */
.gwp-top { display: flex; gap: 8px; align-items: stretch; }
.gwp-mine { flex: 1.15; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 0; border-radius: 16px; background: rgba(0,0,0,.3); color: var(--text); text-align: left; cursor: pointer; }
.gwp-mframe { flex: none; width: 44px; padding: 3px 3px 5px; border-radius: 8px; background: linear-gradient(180deg, var(--phi), var(--pc) 30%, var(--plo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 8px rgba(0,0,0,.3); }
.gwp-mframe .gwcard { border-radius: 5px; }
.gwp-mframe.big { width: 116px; padding: 5px 5px 8px; border-radius: 12px; }
.gwp-mtext { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.gwp-mtext small { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--label-2); }
.gwp-mtext b { font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwp-mtext span { font-size: 14px; color: var(--label-2); }
.gwp-opp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 16px; background: rgba(0,0,0,.3); }
.gwp-opp .avatar { width: 32px; height: 32px; font-size: 15px; box-shadow: 0 0 0 3px var(--pc); }
.gwp-otext { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; flex: 1; }
.gwp-otext b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwp-otext span { font-size: 14px; color: var(--label-2); }
.gwp-wins { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gwp-wins i { font-style: normal; color: var(--label-3); margin: 0 2px; }

/* the board: a plastic tray of 24 frames */
.gwp-tray { border-radius: 18px; padding: 10px 10px 9px; background: linear-gradient(180deg, var(--phi) 0%, var(--pc) 22%, var(--pc) 70%, var(--plo) 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.18), 0 10px 24px rgba(0,0,0,.35); }
.gwp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.gwp .gw-slot { position: relative; perspective: 260px; cursor: pointer; }
.gwp .gw-slot::before { content: ''; position: absolute; inset: 1px 1px 0; border-radius: 6px; background: rgba(0,0,0,.34); box-shadow: inset 0 4px 6px rgba(0,0,0,.45); }
.gwp .gw-door { position: relative; border-radius: 7px; padding: 3px 3px 6px; transform-origin: 50% 100%; background: linear-gradient(180deg, var(--phi), var(--pc) 30%, var(--plo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.25), 0 3px 5px rgba(0,0,0,.25); transition: transform .38s cubic-bezier(.5,0,.6,1.3), filter .3s ease; }
.gwp .gw-door .gwcard { border-radius: 4px; }
.gwp .gw-door .gwcard .gw-nm { font-size: max(12px, 17cqw); }
.gwp .gw-slot.down .gw-door { transform: rotateX(62deg); filter: grayscale(.85) brightness(.55); }
.gwp .gw-slot.pop .gw-door { animation: gwp-up .42s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes gwp-up { from { transform: rotateX(55deg); } }
.gwp .gw-slot.peeking .gw-door { box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,0,0,.4); z-index: 2; }
.gwp-grid.guessing .gw-slot:not(.down) .gw-door { animation: gwp-wiggle 1.4s ease-in-out infinite; box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255,184,0,.6); }
.gwp-grid.guessing .gw-slot:nth-child(odd):not(.down) .gw-door { animation-delay: -.7s; }
@keyframes gwp-wiggle { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

/* the actions for this moment */
.gwp-acts { display: flex; flex-direction: column; gap: 8px; }
.gwp-acts:empty { display: none; }
.gwp-acts.stick { position: sticky; bottom: var(--safe-bottom); z-index: 6; margin: 0 -16px; padding: 8px 16px; background: var(--bg); box-shadow: 0 -8px 12px -6px var(--bg); }
.gwp-info { display: flex; flex-direction: column; gap: 8px; }
.gwp-info:empty { display: none; }
.gwp-acts .btn { min-height: 52px; font-size: 17px; font-weight: 800; }
.gwp-askbtn { font-size: 19px !important; background: var(--gold) !important; color: #1b1b1b !important; box-shadow: 0 6px 18px rgba(255,184,0,.35); }
.gwp-row { display: flex; gap: 8px; }
.gwp-row .btn { flex: 1; font-size: 15px !important; padding: 10px 8px; white-space: nowrap; }
.gwp-namebtn { background: rgba(255,69,58,.18) !important; color: #ff6b61; box-shadow: inset 0 0 0 2px rgba(255,69,58,.55); }
.gwp-guessbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,184,0,.16); box-shadow: inset 0 0 0 2px var(--gold); }
.gwp-guessbar b { font-size: 18px; }
.gwp-guessbar span { flex: 1; font-size: 14px; color: var(--label-2); }
.gwp-guessbar .btn { width: auto; min-height: 44px; padding: 8px 14px; font-size: 15px; }
.gwp-waitq, .gwp-ans { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.3); }
.gwp-qtext { font-size: 18px; font-weight: 800; line-height: 1.2; }
.gwp-waitq span { font-size: 14px; color: var(--label-2); }
.gwp-ans { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gwp-ans span { flex: 1 1 110px; font-size: 15px; font-weight: 700; color: var(--label-2); min-width: 0; }
.gwp-ans b { font-size: 18px; font-weight: 900; padding: 5px 12px; border-radius: 10px; color: #fff; background: #6b6b75; white-space: nowrap; }
.gwp-ans.yes b { background: #23a559; }
.gwp-ans.no b { background: #e0453a; }
.gwp-log { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.22); }
.gwp-lq { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.gwp-lq span { flex: 1; min-width: 0; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwp-lq b { font-size: 13px; font-weight: 900; padding: 3px 8px; border-radius: 7px; color: #fff; }
.gwp-lq b.yes { background: #23a559; } .gwp-lq b.no { background: #e0453a; } .gwp-lq b.none { background: #6b6b75; }
.gwp-lookrow { display: flex; align-items: center; gap: 10px; }
.gwp-lookrow span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; color: var(--label-2); }
.gwp-lookbtn { width: auto !important; min-height: 44px; padding: 8px 14px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.gwp-lookbtn.on { background: var(--gold) !important; color: #1b1b1b !important; }
.gwp-ansmsg { padding: 10px 12px; border-radius: 12px; background: rgba(255,184,0,.2); box-shadow: inset 0 0 0 2px var(--gold); font-size: 16px; font-weight: 700; line-height: 1.25; }
/* the shell's toast is hidden while the answer sheet is up: its message sits in the sheet instead */
body:has(.gwp-anssheet) #toast { display: none; }
.gwp-hint { font-size: 14px; line-height: 1.3; text-align: center; color: var(--label-2); }
.gwp.waiting .gwp-tray { filter: saturate(.85); }

/* sheets: the answer, the question list, a guess, your person */
.gwp-ov { align-items: flex-end; }
.gwp-anssheet { gap: 12px; max-height: calc(100vh - var(--safe-bottom) - 26px); max-height: calc(100dvh - var(--safe-bottom) - 26px); }
/* YES / NO stay on screen, solid, while the rest of the sheet scrolls on a short phone */
.gwp-ansfoot { position: sticky; bottom: -14px; margin: 0 -14px -14px; padding: 8px 14px 14px; background: inherit; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 22px 22px; z-index: 2; }
.gwp-looksheet { gap: 10px; }
.gwp-asker { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--label-2); }
.gwp-asker b { color: var(--text); }
.gwp-bigq { font-size: 25px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
.gwp-mbig { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.05); }
.gwp-mbig .gw-explain { flex: 1; min-width: 0; }
.gwp-mbig .gw-xname { font-size: 20px; }
.gwp-mbig .gw-xabout { font-size: 14px; }
.gwp .gw-xtraits span { font-size: 14px; padding: 3px 9px; }
.gwp-yn { display: flex; gap: 10px; }
.gwp-yn .btn { flex: 1; min-height: 64px !important; font-size: 24px !important; font-weight: 900; letter-spacing: .06em; color: #fff; }
.gwp-yes { background: #23a559 !important; }
.gwp-no { background: #e0453a !important; }
.gwp-qsheet { max-height: 82vh; gap: 6px; }
.gwp-qhead { display: flex; align-items: center; justify-content: space-between; }
.gwp-qhead .btn { width: auto; min-height: 44px; }
.gwp-qhint { font-size: 14px; color: var(--label-2); margin: -4px 0 4px; }
.gwp-qgroup { font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); margin: 8px 2px 0; }
.gwp-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gwp-qrow { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px 8px 12px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.gwp-qrow:active { transform: scale(.985); background: rgba(255,184,0,.2); }
.gwp-qrow span { flex: 1; min-width: 0; }
.gwp-qrow small { min-width: 26px; text-align: center; font-size: 13px; font-weight: 800; color: var(--label-2); background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gwp-qrow.asked { opacity: .6; cursor: default; }
.gwp-qrow b { font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 7px; color: #fff; }
.gwp-qrow b.yes { background: #23a559; } .gwp-qrow b.no { background: #e0453a; }
.gwp-gcard { width: min(52vw, 210px); padding: 6px 6px 10px; border-radius: 16px; background: linear-gradient(180deg, #ffd65a, #ffb800); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: ndp-lift .25s cubic-bezier(.2,1.3,.4,1) both; }
.gwp-gcard.s-red, .gwp-gcard.s-blue { background: linear-gradient(180deg, var(--phi), var(--pc) 30%, var(--plo)); }
.gwp-gcard .gwcard { border-radius: 10px; }
.gwp-sure { background: #ff453a !important; color: #fff !important; }

/* slide to read */
.gwp-peek { position: fixed; left: 50%; top: calc(var(--safe-top, 0px) + 56px); width: min(92vw, 360px); display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; background: var(--sheet-bg, #1c1c1e); color: var(--text); box-shadow: 0 18px 40px rgba(0,0,0,.5); pointer-events: none; opacity: 0; transform: translate(-50%, -10px) scale(.96); transition: opacity .12s ease, transform .16s ease; z-index: 35; }
.gwp-peek.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gwp-peekcard { flex: none; width: 128px; }
.gwp-peekcard .gwcard { border-radius: 12px; }
.gwp-peekcap { flex: 1; min-width: 0; }
.gwp-peekcap .gw-xname { font-size: 20px; }
.gwp-peekcap .gw-xabout { font-size: 14px; }
.gwp-peekdown { margin-top: 6px; font-size: 14px; font-weight: 800; color: #ff6b61; }
.gwp-peekdown.mine { color: var(--gold); }

/* the end of a round, and of the game */
.gwp-end { gap: 12px; }
.gwp-reveal { display: flex; gap: 18px; justify-content: center; margin: 4px 0; }
.gwp-rv { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gwp-rv small { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--label-2); text-transform: uppercase; }
.gwp-rframe { width: 128px; padding: 5px 5px 9px; border-radius: 14px; background: linear-gradient(180deg, var(--phi), var(--pc) 30%, var(--plo)); box-shadow: 0 10px 24px rgba(0,0,0,.35); animation: gwp-flipin .8s cubic-bezier(.3,1.3,.5,1) both; }
.gwp-rv:nth-child(2) .gwp-rframe { animation-delay: .3s; }
@keyframes gwp-flipin { from { transform: perspective(600px) rotateY(160deg); } }
.gwp-rframe .gwcard { border-radius: 9px; }
.gwp-rscore { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 900; }
.gwp-rscore i { font-style: normal; color: var(--label-3); }
.gwp-rscore .s-red b { color: #f0614f; } .gwp-rscore .s-blue b { color: #4a8ff0; }

/* big moments */
.gwp-moment .big { font-family: "Avenir Next", "Nunito", var(--font); text-align: center; padding: 0 12px; }
.gwp-moment.gwm-yes .big { color: #3ddc7c; text-shadow: 5px 5px 0 #0f5c31, 10px 10px 0 rgba(0,0,0,.3); }
.gwp-moment.gwm-no .big, .gwp-moment.gwm-none .big { color: #ff6b61; text-shadow: 5px 5px 0 #7a1a14, 10px 10px 0 rgba(0,0,0,.3); }
.gwp-moment.gwm-round .big { font-size: 62px; }
.gwp-moment.gwm-right .big, .gwp-moment.gwm-wrong .big { font-size: 74px; }
.gwp-moment.gwm-none .big { font-size: 46px; }
.gwp-moment.gwm-guess .big { font-size: 64px; line-height: 1; }
.gwp-mface { width: 150px; padding: 6px 6px 10px; border-radius: 16px; background: linear-gradient(180deg, #ffd65a, #ffb800); box-shadow: 0 0 0 4px #fff, 0 20px 50px rgba(0,0,0,.45); animation: gwp-drum .3s ease-in-out infinite alternate; }
.gwp-mface .gwcard { border-radius: 10px; }
@keyframes gwp-drum { from { transform: rotate(-3deg); } to { transform: rotate(3deg) scale(1.03); } }
.gwp-moment.gwm-right .big { color: #ffd60a; }
.gwp-moment.gwm-wrong .big { color: #fff; text-shadow: 4px 4px 0 #ff453a, 8px 8px 0 rgba(0,0,0,.3); }

/* ---- light theme ---- */
[data-theme="light"] .gwp-mine, [data-theme="light"] .gwp-opp { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(60,40,20,.1); }
[data-theme="light"] .gwp-waitq, [data-theme="light"] .gwp-ans, [data-theme="light"] .gwp-log { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(60,40,20,.08); }
[data-theme="light"] .gwp-tray { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.14), 0 10px 22px rgba(60,40,20,.22); }
[data-theme="light"] .gwp-namebtn { background: rgba(255,59,48,.1) !important; color: #d93a30; box-shadow: inset 0 0 0 2px rgba(255,59,48,.45); }
[data-theme="light"] .gwp-guessbar { background: rgba(255,184,0,.18); }
[data-theme="light"] .gwp-mbig { background: rgba(120,90,40,.06); }
[data-theme="light"] .gwp-qrow { background: rgba(120,120,128,.1); }
[data-theme="light"] .gwp-qrow small { background: rgba(0,0,0,.06); }
[data-theme="light"] .gwp-peek { background: #fff; box-shadow: 0 18px 40px rgba(30,40,80,.25); }
[data-theme="light"] .gwp-rscore .s-red b { color: #d6342c; } [data-theme="light"] .gwp-rscore .s-blue b { color: #1f63c9; }
[data-theme="light"] .gwp-peekdown.mine { color: #b7791f; }

/* ---- picking your mystery person ---- */
.gwp-picking .gwp-acts { display: flex; flex-direction: column; gap: 8px; }
.gwp-picking .gwp-mtext span { white-space: normal; }
.gwp-pickgrid .gw-slot.chosen .gw-door { transform: translateY(-3px) scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0,0,0,.4); z-index: 1; }

/* /shared/notconnect4.css */
/* Four in a Row: the standing grid, the discs and the table (TV and phones).
   Discs sit behind the frame; the column glow, the aim and the winning line sit on top.
   Dark rules first, then the light theme. */
.c4-stage { position: relative; flex: none; user-select: none; -webkit-user-select: none; }
.c4-stage > * { position: absolute; }
.c4-legs { left: 0; top: 0; z-index: 0; overflow: visible; }
.c4-discs { inset: 0; z-index: 1; pointer-events: none; }
.c4-board { z-index: 2; filter: drop-shadow(0 calc(var(--cell) * .12) calc(var(--cell) * .16) rgba(0,0,0,.42)); }
.c4-frame { display: block; width: 100%; height: 100%; }
.c4-slider { z-index: 3; border-radius: 999px; background: linear-gradient(180deg, #2a68d8, #143c8f); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.35); }
.c4-slider i { position: absolute; right: calc(var(--cell) * -.26); top: -30%; height: 160%; border-radius: 999px; background: linear-gradient(180deg, #4b8df5, #1a4cae); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 5px rgba(0,0,0,.35); }
.c4-slider.pull { animation: c4-pull 1.1s cubic-bezier(.3,.9,.4,1) both; }
@keyframes c4-pull { 0% { transform: none; } 22%, 60% { transform: translateX(calc(var(--cell) * -.55)); } 100% { transform: none; } }
.c4-col { left: 0; z-index: 3; border-radius: calc(var(--cell) * .2); pointer-events: none; transition: transform .14s cubic-bezier(.3,.8,.4,1); background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 30%, transparent), color-mix(in srgb, var(--cc) 6%, transparent) 85%); box-shadow: 0 0 0 calc(var(--cell) * .05) var(--cc), 0 0 calc(var(--cell) * .5) color-mix(in srgb, var(--cc) 75%, transparent), inset 0 0 calc(var(--cell) * .3) color-mix(in srgb, var(--cc) 45%, transparent); }
.c4-col.red, .c4-ghost.red { --cc: #ff3b30; }
.c4-col.yellow, .c4-ghost.yellow { --cc: #ffc700; }
.c4-col.full { --cc: #9aa3b5; background: repeating-linear-gradient(-45deg, rgba(20,24,34,.25) 0 10px, transparent 10px 20px); }
.c4-ghost { left: 0; top: 0; z-index: 4; width: var(--d); height: var(--d); pointer-events: none; transition: transform .14s cubic-bezier(.3,.8,.4,1); }
.c4-ghost .c4d { position: absolute; inset: 0; width: 100%; height: 100%; animation: c4-hover 1.1s ease-in-out infinite; box-shadow: 0 calc(var(--d) * .14) calc(var(--d) * .22) rgba(0,0,0,.35), inset 0 0 0 calc(var(--d) * .06) var(--rim), inset 0 calc(var(--d) * -.05) calc(var(--d) * .1) rgba(0,0,0,.25), inset 0 calc(var(--d) * .04) calc(var(--d) * .08) rgba(255,255,255,.45); }
.c4-ghost.idle .c4d { animation-duration: 1.8s; }
.c4-ghost.full .c4d { filter: grayscale(.8) brightness(.8); }
.c4-ghost b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: max(13px, calc(var(--cell) * .2)); font-weight: 900; letter-spacing: .08em; padding: .2em .7em; border-radius: 999px; background: #ffb800; color: #1b1b1b; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.c4-ghost b::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #ffb800; }
@keyframes c4-hover { 50% { transform: translateY(calc(var(--d) * -.08)); } }
.c4-win { left: 0; top: 0; z-index: 5; pointer-events: none; overflow: visible; }
.c4-win line { stroke-linecap: round; }
.c4-win .band line { stroke: rgba(255,255,255,.2); }
.c4-win .edge { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.95)) drop-shadow(0 0 22px rgba(255,220,120,.7)); }
.c4-win .rings circle { fill: none; stroke: #fff; filter: drop-shadow(0 0 8px #fff); animation: c4-ring 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes c4-ring { 50% { transform: scale(1.08); opacity: .55; } }
.c4-stage.won .c4-win { animation: c4-winin .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes c4-winin { from { opacity: 0; transform: scale(.96); } }

/* Discs: moulded plastic, a raised rim and two rings. */
.c4d { position: absolute; display: block; width: var(--d); height: var(--d); border-radius: 50%;
  --hi: #ff7d70; --base: #e3262f; --lo: #9e121a; --rim: #c41c24;
  background:
    radial-gradient(circle, transparent 0 27%, rgba(0,0,0,.2) 28.5% 31%, rgba(255,255,255,.22) 32% 33.5%, transparent 35%),
    radial-gradient(circle, transparent 0 56%, rgba(255,255,255,.26) 57.5% 59.5%, rgba(0,0,0,.2) 61% 63.5%, transparent 65%),
    radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--base) 46%, var(--lo) 100%);
  box-shadow: inset 0 0 0 calc(var(--d) * .06) var(--rim), inset 0 calc(var(--d) * -.05) calc(var(--d) * .1) rgba(0,0,0,.28), inset 0 calc(var(--d) * .04) calc(var(--d) * .08) rgba(255,255,255,.4);
}
.c4d.yellow { --hi: #fff6a8; --base: #fbcb17; --lo: #c38c00; --rim: #e9ae06; }
/* never colour alone: a red disc carries a ring, a yellow disc a diamond */
.c4d.red::after, .c4d.yellow::after { content: ''; position: absolute; left: 50%; top: 50%; pointer-events: none; }
.c4d.red::after { width: 36%; height: 36%; transform: translate(-50%, -50%); border-radius: 50%; border: calc(var(--d) * .075) solid rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(90,0,6,.35); }
.c4d.yellow::after { width: 28%; height: 28%; transform: translate(-50%, -50%) rotate(45deg); background: #6b4300; box-shadow: 0 0 0 1px rgba(255,246,168,.5); }
.c4d.preview { opacity: .32; filter: saturate(.7); box-shadow: inset 0 0 0 calc(var(--d) * .05) rgba(255,255,255,.6); }
.c4d.lit { animation: c4-lit 1.1s ease-in-out infinite; }
@keyframes c4-lit { 50% { filter: brightness(1.35) saturate(1.15); } }

/* Edge-on discs, stacked like checkers by the board. */
.c4-stack { position: relative; width: 104px; }
.c4-stack i { position: absolute; left: 0; width: 100%; height: var(--ch, 18px); border-radius: 50% / 46%; background: linear-gradient(180deg, var(--hi) 0 30%, var(--base) 34% 62%, var(--lo) 100%); box-shadow: 0 2px 0 var(--lo), 0 3px 6px rgba(0,0,0,.25); }
.c4-stack.red { --hi: #ff8a7e; --base: #e3262f; --lo: #8f0f16; }
.c4-stack.yellow { --hi: #fff3a0; --base: #f6c414; --lo: #a87900; }

/* The wordmark */
.c4-mark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: .9; font-family: "Avenir Next", "Inter", Arial, sans-serif; }
.c4-mark b { font-size: 50px; font-weight: 900; letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 #1a4db5, 0 6px 0 rgba(0,0,0,.25); }
.c4-mark span { font-size: 26px; font-weight: 900; letter-spacing: .14em; color: #ffd23f; }
.c4-mark em { position: relative; display: flex; gap: 6px; --d: 26px; }
.c4-mark em .c4d { position: relative; }

/* The table: a warm lamp over a dark wood games table (dark), a sunny maple one (light). */
.tbl-c4 {
  --tbl-edge: #120c08; --tbl-rim: #4a3524; --tbl-glow: rgba(255,200,130,.14);
  background:
    radial-gradient(ellipse 42% 58% at 50% 46%, rgba(255,214,150,.20), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(0,0,0,.35), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(0,0,0,.32) 238px 240px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 11px, rgba(0,0,0,.05) 11px 13px, transparent 13px 19px),
    linear-gradient(180deg, #3a271a 0%, #2e1f15 55%, #24170f 100%);
}
[data-theme="light"] .tbl-c4 {
  --tbl-edge: #ffffff; --tbl-rim: #e7d8bf; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 40% 55% at 50% 44%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(ellipse 90% 35% at 50% 100%, rgba(150,110,60,.12), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(150,105,50,.16) 238px 240px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 11px, rgba(150,105,50,.04) 11px 13px, transparent 13px 19px),
    linear-gradient(180deg, #f6ead5 0%, #efdfc3 60%, #e8d4b3 100%);
}
[data-theme="light"] .c4-mark b { color: #1d4fb6; text-shadow: 0 3px 0 #b9d2ff, 0 6px 0 rgba(30,40,80,.12); }
[data-theme="light"] .c4-mark span { color: #d23a2a; }
[data-theme="light"] .c4-board { filter: drop-shadow(0 calc(var(--cell) * .12) calc(var(--cell) * .16) rgba(80,50,20,.3)); }

/* /phone/games/notconnect4.css */
/* Four in a Row on the phone: the bar, the series, the grid you aim on, the Drop button.
   Dark rules first, then the light theme. */
.c4p { display: flex; flex-direction: column; gap: 10px; padding: 8px 12px 4px; overflow-x: clip; }
.c4p-bar:empty, .c4p-acts:empty { display: none; } /* .c4p-last keeps its line even when empty, so the fit never changes mid-game */
.c4p-turn .tclock { flex: none; }
.c4p-turn.idle .avatar { flex: none; }

/* the series strip */
.c4p-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: rgba(0,0,0,.28); }
.c4p-side { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 0; --d: 30px; }
.c4p-side .c4d { position: relative; grid-row: 1 / 3; }
.c4p-side .nm { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c4p-side b { grid-row: 1 / 3; grid-column: 3; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.c4p-side small { font-size: 14px; color: var(--label-2); font-weight: 600; }
.c4p-side.on .c4d { box-shadow: 0 0 0 3px #ffb800, 0 0 14px rgba(255,184,0,.7), inset 0 0 0 calc(var(--d) * .06) var(--rim); }
.c4p-score .c4p-side:last-child { grid-template-columns: auto 1fr auto; direction: rtl; text-align: right; }
.c4p-score .c4p-side:last-child > * { direction: ltr; }
.c4p-mid { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.c4p-mid b { font-size: 15px; font-weight: 900; }
.c4p-mid small { font-size: 13px; color: var(--label-2); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* a short phone: the bar and the series strip shrink so the whole grid and the Drop button fit */
.c4p.short { gap: 8px; padding-top: 4px; }
.c4p.short .c4p-turn { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
.c4p.short .c4p-turn .ndp-tbtext > span { display: none; }
.c4p.short .c4p-turn .tclock { transform: scale(.74); margin: -10px -8px -10px 0; }
.c4p.short .c4p-drop { min-height: 48px; font-size: 17px; white-space: nowrap; padding: 0 8px; }
.c4p.short .c4p-score { padding: 4px 10px; }
.c4p.short .c4p-side { --d: 24px; }
.c4p.short .c4p-side small, .c4p.short .c4p-mid small { display: none; }
.c4p.short .c4p-side b { font-size: 24px; }
.c4p.short .c4p-last { display: none; }
/* YOUR TURN stays on one line (it wrapped on a 320 px phone and cost a row of the grid) */
.c4p.short .c4p-turn.me .ndp-tbtext > b { white-space: nowrap; font-size: 26px; }
.c4p.short .c4p-acts:has(.c4p-drop) { padding: 4px 12px; }
@media (max-width: 359px) { .c4p-mid small { display: none; } .c4p-side small { display: none; } .c4p-side { --d: 26px; } }

/* the grid you aim on */
.c4p-pad { position: relative; align-self: center; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; padding-top: 2px; }
.c4p-pad .c4-stage { margin: 0 auto; }
.c4p-pad .c4-discs { overflow: hidden; } /* discs let out by the slider vanish under the grid */
.c4p-slots { position: absolute; left: 0; right: 0; top: 2px; display: grid; grid-template-columns: repeat(7, var(--cell)); align-items: end; pointer-events: none; z-index: 1; }
.c4p-slots i { justify-self: center; width: 0; height: 0; margin-bottom: 4px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid rgba(255,255,255,.14); }
.c4p-pad.live .c4p-slots i.ok { border-top-color: rgba(255,210,63,.75); animation: c4p-slot 1.4s ease-in-out infinite; }
.c4p-slots i.full { opacity: 0; }
@keyframes c4p-slot { 50% { transform: translateY(3px); } }
.c4p-pad.live .c4-board { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 6px 14px rgba(0,0,0,.4)); }

/* under the grid */
.c4p-acts { display: flex; flex-direction: column; gap: 8px; }
.c4p-acts:has(.c4p-drop) { position: sticky; bottom: var(--safe-bottom); z-index: 6; margin: 0 -12px; padding: 8px 12px; background: var(--bg); box-shadow: 0 -8px 12px -6px var(--bg); }
.c4p-drop { min-height: 56px; font-size: 19px; font-weight: 900; letter-spacing: .01em; }
.c4p-drop.red:not([disabled]) { background: linear-gradient(180deg, #ff5148, #d11f28); color: #fff; box-shadow: 0 8px 22px rgba(209,31,40,.4); }
.c4p-drop.yellow:not([disabled]) { background: linear-gradient(180deg, #ffd84a, #f0b400); color: #2a1d00; box-shadow: 0 8px 22px rgba(240,180,0,.4); }
.c4p-drop[disabled] { opacity: 1; background: rgba(120,120,128,.3); color: var(--text); box-shadow: inset 0 0 0 2px rgba(120,120,128,.4); }
.c4p-hint { text-align: center; font-size: 14px; color: var(--label-2); }
.c4p-last { text-align: center; font-size: 14px; color: var(--label-2); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* between games and the end */
.c4p-between, .c4p-final { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(0,0,0,.32); }
.c4p-between > b, .c4p-final > b { font-size: 26px; font-weight: 900; font-style: italic; line-height: 1.05; letter-spacing: -.01em; }
.c4p-between.won, .c4p-final.won { background: linear-gradient(120deg, #1f8f43, #146c31); color: #fff; box-shadow: 0 10px 30px rgba(40,180,90,.4); }
.c4p-final > span { font-size: 14px; font-weight: 600; opacity: .85; }
.c4p-cd { display: flex; flex-direction: column; gap: 3px; }
.c4p-cd > span:last-child { font-size: 14px; }
.c4p-between .btn.primary { background: #0a62c9; }
.c4p-between.won .tclock.bar u { background: #fff; }
.c4p-between.won .tclock.bar b, .c4p-between.won .tclock.bar.urgent b { color: #fff; } /* the digit stays white on the green card, urgent or not */
.c4p-between.won .tclock.bar i { background: rgba(255,255,255,.25); }
.c4p-between .tclock.bar u { background: #ffd23f; }

/* moments */
.c4p-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; --mc: #ffd23f; background: radial-gradient(circle, color-mix(in srgb, var(--mc) 55%, transparent), rgba(0,0,0,.55) 75%); animation: c4p-moment 2.6s ease both; }
.c4p-moment.red { --mc: #ff4b42; } .c4p-moment.draw { --mc: #8e9bb5; }
@keyframes c4p-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.c4p-moment .big { font-size: 58px; font-weight: 900; font-style: italic; line-height: .92; text-align: center; color: #fff; letter-spacing: -.03em; text-shadow: 4px 4px 0 var(--mc), 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-6deg); animation: c4p-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.c4p-moment.yellow .big { color: #1d4fb6; text-shadow: 4px 4px 0 #ffd23f, 8px 8px 0 rgba(0,0,0,.25); }
@keyframes c4p-slam { from { transform: rotate(-6deg) scale(3); opacity: 0; } }
.c4p-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 90vw; --d: 36px; }
.c4p-moment.draw .who { padding-left: 18px; }
.c4p-moment .who .c4d { position: relative; flex: none; }
.c4p-moment.small { background: none; justify-content: flex-start; padding-top: 30vh; }
.c4p-moment .pill { display: flex; align-items: center; gap: 10px; background: #1c1c1e; color: #fff; font-size: 17px; font-weight: 800; padding: 12px 20px 12px 12px; border-radius: 999px; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: c4p-slam2 .45s cubic-bezier(.2,1.4,.4,1) both; }
.c4p-moment.k-timeup .pill { background: #ff453a; padding-left: 20px; }
@keyframes c4p-slam2 { from { transform: scale(.6); opacity: 0; } }
.c4p-coin { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff6c8, #e8b923 55%, #a7790a); box-shadow: inset 0 0 0 3px #c9971a; animation: c4p-flip .8s ease-in-out 2; }
@keyframes c4p-flip { 50% { transform: scaleX(.08); } }

/* light theme */
[data-theme="light"] .c4p-score { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(80,50,20,.1); }
[data-theme="light"] .c4p-between:not(.won), [data-theme="light"] .c4p-final:not(.won) { background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(80,50,20,.1); }
[data-theme="light"] .c4p-slots i { border-top-color: rgba(120,80,30,.18); }
[data-theme="light"] .c4p-pad.live .c4p-slots i.ok { border-top-color: #e8a400; }
[data-theme="light"] .c4p-between:not(.won) .tclock.bar u { background: #e8a400; }
[data-theme="light"] .c4p-pad.live .c4-board { filter: drop-shadow(0 6px 14px rgba(80,50,20,.28)); }

/* the gold your-turn frame: kept to the very edge so it never washes over the grid */
body.g-notconnect4.nup-myturn::after { box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 14px rgba(255,196,0,.5); animation: c4p-frame 1.6s ease-in-out infinite; }
@keyframes c4p-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 22px rgba(255,196,0,.6); } }

/* /shared/nothues.css */
/* Colour Clues: pieces shared by the TV and the phones (paint chips, cones, the
   wordmark) and the paint-shop table. Dark rules first, then the light theme. */
:root { --hc-font: "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", "Helvetica Neue", Inter, Arial, sans-serif; }

/* a cone: the SVG draws its own white rim, so it reads on any square */
.hc-cone { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* a paint chip: the colour, its coordinate, and on cards its shop name */
.hc-chip { position: relative; background: var(--sw); border-radius: 10px; color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.18); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; overflow: hidden; }
.hc-chip.ink-dark { color: #1c1b19; }
.hc-chip .hc-chipc { font-family: var(--hc-font); font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hc-chip .hc-chipc b { font-weight: 900; margin-right: 1px; }
.hc-chip .hc-chipn { font-size: 12px; font-weight: 700; opacity: .86; margin-top: 3px; line-height: 1.15; }
.hc-chip.ink-light .hc-chipc, .hc-chip.ink-light .hc-chipn { text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* the wordmark: each letter on its own paint chip */
.hc-mark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; font-family: var(--hc-font); line-height: 1; }
.hc-wline { display: flex; gap: 3px; align-items: center; }
.hc-wt { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 1.22em; height: 1.45em; border-radius: .16em; background: var(--sw); color: #fff; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.3); box-shadow: inset 0 -.12em 0 rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.18); }
.hc-wt.ink-dark { color: #1f1d1a; text-shadow: none; }

/* The table: a paint-shop pegboard wall. Dark is the shop after hours. */
.tbl-paintshop {
  --tbl-edge: #121214; --tbl-rim: #3a3a40; --tbl-glow: rgba(255,240,210,.08);
  --hc-panel: #1f2024; --hc-panel-2: #2a2b30; --hc-ink: #f4f1ea; --hc-line: rgba(255,255,255,.08); --hc-gap: #17181b;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255,232,190,.07), transparent 70%),
    radial-gradient(circle at 14px 14px, rgba(0,0,0,.55) 0 3.2px, rgba(255,255,255,.035) 3.6px 4.6px, transparent 5px) 0 0 / 28px 28px,
    linear-gradient(180deg, #2b2c31 0%, #232428 100%);
}
[data-theme="light"] .tbl-paintshop {
  --tbl-edge: #fffdf8; --tbl-rim: #d8c9ac; --tbl-glow: rgba(255,255,255,.3);
  --hc-panel: #fffefb; --hc-panel-2: #f6f1e7; --hc-ink: #23211d; --hc-line: rgba(70,50,20,.1); --hc-gap: #fffefb;
  background:
    radial-gradient(ellipse 65% 60% at 50% 38%, rgba(255,255,255,.45), transparent 72%),
    radial-gradient(circle at 14px 14px, rgba(96,66,30,.34) 0 3.2px, rgba(255,255,255,.55) 3.6px 4.6px, transparent 5px) 0 0 / 28px 28px,
    linear-gradient(180deg, #ecdfc6 0%, #e3d3b5 100%);
}

/* /phone/games/nothues.css */
/* Colour Clues on the phones: the whose-turn bar, the cues, the secret card, the
   two-step board picker and its sheet. Dark rules first, then the light theme. */
.hcp { --gold: #ffb800; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; color: var(--text); }
.hcp [hidden] { display: none !important; }
.hcp-compose:empty, .hcp-cue:empty, .hcp-log:empty { display: none; }

/* ---- whose turn ---- */
.hcp-bar-in { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 10px 12px 10px 14px; min-height: 64px; }
.hcp-bar-in.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; }
.hcp-bar-in.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.hcp-bar-in.me .tclock.urgent .fg { stroke: #fff; }
.hcp-bar-in.me .tclock.urgent .bg { stroke: rgba(255,255,255,.25); }
.hcp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hcp-bt b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.hcp-bt span { font-size: 15px; font-weight: 700; line-height: 1.25; }
.hcp-bar-in .tclock { width: 58px; height: 58px; }
.hcp-bar-in .tclock b { font-size: 23px; }
.hcp-bar-in.idle { background: rgba(0,0,0,.3); color: var(--label-2); font-size: 15px; }
.hcp-bar-in.idle .hcp-bw { flex: 1; min-width: 0; line-height: 1.3; }
.hcp-bar-in .avatar.sm { width: 34px; height: 34px; font-size: 15px; }
.hcp-bar-in.idle b { color: var(--text); }
.hcp-bar-in.idle em { font-style: normal; font-weight: 800; color: var(--gold); }
.hcp-bar-in.idle small { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hcp-bar-in.idle .tclock { width: 44px; height: 44px; }
.hcp-bar-in.idle .tclock .bg { stroke: rgba(255,255,255,.14); }
.hcp-bar-in.idle .tclock .fg { stroke: var(--gold); }
.hcp-bar-in.idle .tclock.urgent .fg { stroke: #ff453a; }
.hcp-bar-in.idle .tclock b { font-size: 17px; color: var(--text); }
body.hcp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nup-frame 1.6s ease-in-out infinite; }

/* ---- the cues ---- */
.hcp-cuein { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px 14px; min-height: 56px; }
.hcp-cuein.wait { color: var(--label-2); font-size: 15px; }
.hcp-cuein.wait b { color: var(--text); }
.hcp-cw { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.hcp-cw .c1 { font-family: var(--hc-font); font-size: 36px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.hcp-cw .c2 { font-family: var(--hc-font); font-size: 27px; font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--text); padding-left: 12px; border-left: 2px solid rgba(255,255,255,.18); }
.hcp-cw .c2.wait, .hcp-cw .c2.pass { font-family: var(--font); font-size: 14px; font-weight: 700; text-transform: none; color: var(--label-2); }

/* ---- the secret card ---- */
.hcp-card { background: #fffdf8; color: #23211d; border-radius: 20px; padding: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.hcp-cardhead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 8px; }
.hcp-cardhead b { font-size: 13px; font-weight: 900; letter-spacing: .18em; }
.hcp-cardhead span { font-size: 14px; color: rgba(35,33,29,.55); font-weight: 600; }
.hcp-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hcp-cardchip { height: 104px; border-radius: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.hcp-cardchip .hcp-chipc, .hcp-cardchip .hc-chipc { font-size: 26px; }
.hcp-cardchip.on { box-shadow: 0 0 0 3px #fffdf8, 0 0 0 6px var(--gold), 0 10px 24px rgba(0,0,0,.3); transform: scale(1.02); }
.hcp-cardchip.on::after { content: '✓'; position: absolute; right: 8px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1b1b1b; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.hcp-cardchip.in { animation: hcp-dealt .5s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes hcp-dealt { from { transform: translateY(-40px) rotate(-6deg); opacity: 0; } }
.hcp-tip { font-size: 14px; color: var(--label-2); line-height: 1.4; padding: 9px 12px; border-radius: 14px; background: rgba(0,0,0,.3); }
.hcp-tip b { color: var(--text); }

/* ---- the whole board, small ---- */
.hcp-over { position: relative; padding: 5px; border-radius: 12px; background: var(--hc-panel, #1f2024); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.hcp-over.tap { cursor: pointer; }
.hcp-ocells { position: relative; display: grid; grid-template-columns: repeat(30, 1fr); gap: 1px; }
.hcp-ocells i { display: block; aspect-ratio: 1; border-radius: 1.5px; }
.hcp-ocells > span { position: absolute; pointer-events: none; }
.hcp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.6); transform: translate(-50%, -50%); }
.hcp-over.big .hcp-dot { width: 11px; height: 11px; }
/* the reveal: a bigger dot with the player's initial, so whose cone is where is not colour alone */
.hcp-over.rev .hcp-dot { width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; font: 900 11px/1 var(--font); color: var(--pi, #fff); }
.hcp-oring { border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); outline: 1.5px dashed rgba(0,0,0,.6); outline-offset: 1px; }
.hcp-oframe { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d1c1f, 0 0 12px rgba(0,0,0,.5); border-radius: 3px; }
.hcp-owin { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,0,0,.7), 0 0 0 999px rgba(0,0,0,.28); border-radius: 3px; transition: left .12s, top .12s; }
.hcp-over { overflow: hidden; }

/* ---- a short screen: a compact bar, a smaller card and map, the zoom keeps the room ---- */
@media (max-height: 700px) {
  .hcp { gap: 8px; }
  .hcp-bar-in { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
  .hcp-bt b { font-size: 24px; }
  .hcp-bt span { font-size: 14px; }
  .hcp-bar-in .tclock { width: 46px; height: 46px; }
  .hcp-bar-in .tclock b { font-size: 19px; }
  .hcp-cuein { min-height: 44px; padding: 6px 12px; }
  .hcp-cw .c1 { font-size: 28px; }
  .hcp-cw .c2 { font-size: 22px; }
  .hcp-cardchip { height: 62px; }
  .hcp-cue1 .hcp-over, .hcp-cue1 .hcp-tip { display: none; }
  .hcp-over:not(.big) { max-width: 170px; margin: 0 auto; }
  .hcp-guess .hcp-zhint { font-size: 13px; line-height: 1.2; }
  .hcp-cue2 .hcp-over.big { max-width: 262px; margin: 0 auto; }
  .hcp-cue2 .hcp-tip { display: none; } /* the board with the first cones stays above the cue box */
  .hcp-log { display: none; }
}

/* ---- the zoomed window ---- */
.hcp-picker { display: flex; flex-direction: column; gap: 8px; }
.hcp-zhint { font-size: 14px; line-height: 1.3; color: var(--label-2); text-align: center; }
.hcp-zgrid { display: grid; grid-template-columns: 18px repeat(var(--zc), 1fr); gap: 3px; padding: 8px 8px 8px 4px; border-radius: 16px; background: var(--hc-panel, #1f2024); box-shadow: 0 10px 26px rgba(0,0,0,.3); touch-action: none; user-select: none; -webkit-user-select: none; }
.hcp-zcorner { width: 18px; }
.hcp-znum, .hcp-zlet { font-size: 13px; font-weight: 800; color: var(--label-2); text-align: center; align-self: center; font-variant-numeric: tabular-nums; }
.hcp-zc { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); cursor: pointer; min-width: 0; }
.hcp-zc:active { transform: scale(.94); }
.hcp-zc.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1d1c1f; z-index: 2; }
.hcp-zc.chosen { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #1d1c1f; z-index: 2; }
.hcp-zc.taken { cursor: default; }
.hcp-zcone { position: absolute; left: 50%; top: 50%; width: 62%; height: 76%; transform: translate(-50%, -62%); pointer-events: none; }

/* ---- the chosen square, big ---- */
.hcp-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: hcp-fade .2s ease both; }
@keyframes hcp-fade { from { opacity: 0; } }
.hcp-sheet { width: 100%; max-width: 520px; background: var(--bg-2); border-radius: 26px 26px 0 0; padding: 16px 16px calc(14px + var(--safe-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; animation: hcp-up .3s cubic-bezier(.2,1.1,.4,1) both; box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
@keyframes hcp-up { from { transform: translateY(60%); } }
.hcp-shead { display: flex; align-items: baseline; gap: 10px; }
.hcp-shead > b { font-family: var(--hc-font); font-size: 34px; font-weight: 900; line-height: 1; }
.hcp-shead span { font-size: 14px; color: var(--label-2); }
.hcp-mag { display: grid; grid-template-columns: 1fr 1.5fr 1fr; grid-template-rows: 64px 104px 64px; gap: 6px; }
.hcp-mx { position: relative; border: 0; padding: 0; border-radius: 12px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); cursor: pointer; }
.hcp-mx.off { background: repeating-linear-gradient(45deg, rgba(128,128,128,.12) 0 6px, transparent 6px 12px); box-shadow: none; }
.hcp-mx.mid { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1d1c1f, 0 10px 24px rgba(0,0,0,.35); z-index: 2; }
.hcp-mx.mid.ink-dark span { color: #1d1c1f; text-shadow: none; }
.hcp-mx.mid span { position: absolute; left: 10px; bottom: 8px; font-family: var(--hc-font); font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hcp-mx em { position: absolute; left: 50%; top: 50%; width: 30px; height: 37px; transform: translate(-50%, -60%); }
.hcp-mx.mid em { left: auto; right: 10px; top: 10px; transform: none; }
.hcp-place { font-size: 19px; font-weight: 800; min-height: 58px; background: #f4f1ea; color: #1d1c1f; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hcp-place i { width: 24px; height: 24px; border-radius: 6px; background: var(--sw); box-shadow: 0 0 0 2px #1d1c1f; }
.hcp-why { font-size: 15px; color: var(--label-2); text-align: center; padding: 12px 6px; }

/* ---- the composer ---- */
/* the cue box rides above the bottom bar, the reason Give is off right over the input */
.hcp-compose { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border-radius: 18px 18px 0 0; padding: 8px 16px 10px; margin: 0 -16px; position: sticky; bottom: var(--safe-bottom); z-index: 6; box-shadow: 0 -8px 12px -6px var(--bg); }
.hcp-crow .btn:disabled { opacity: 1; background: rgba(120,120,128,.35); color: var(--text); }
.hcp-crow { display: flex; gap: 8px; }
.hcp-crow input { flex: 1; min-width: 0; height: 54px; border-radius: 14px; border: 0; padding: 0 14px; font-size: 22px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: var(--bg-3); color: var(--text); font-family: var(--hc-font); }
.hcp-crow input::placeholder { text-transform: none; font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--label-3); }
.hcp-crow .btn { width: auto; flex: none; min-width: 84px; min-height: 54px; font-weight: 800; }
.hcp-prob { font-size: 14px; min-height: 20px; color: var(--label-2); line-height: 1.35; padding: 0 4px; }
.hcp-prob.no { color: #ff8a7a; font-weight: 700; }
.hcp-pass { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); min-height: 48px; font-weight: 700; }

/* ---- the result ---- */
.hcp-result { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px; }
.hcp-rchip { width: 66px; height: 66px; flex: none; }
.hcp-rchip .hc-chipc { display: none; }
.hcp-result > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hcp-result small { font-size: 12px; font-weight: 900; letter-spacing: .16em; color: var(--label-2); }
.hcp-result > div > b { font-family: var(--hc-font); font-size: 32px; font-weight: 900; line-height: 1; }
.hcp-result > div > span { font-size: 14px; color: var(--label-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcp-rpts { text-align: center; }
.hcp-rpts b { display: block; font-family: var(--hc-font); font-size: 40px; font-weight: 900; line-height: 1; color: var(--label-2); }
.hcp-rpts.got b { color: var(--gold); }
.hcp-rpts span { font-size: 13px; font-weight: 700; color: var(--label-2); }

.hcp-log { font-size: 14px; color: var(--label-2); line-height: 1.35; padding: 0 4px; }
.hcp-log div:last-child { color: var(--text); }

/* ---- big moments ---- */
.hcp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--sw, var(--pc)) 60%, transparent), rgba(0,0,0,.6) 75%); animation: nup-moment 2.4s ease both; }
.hcp-mchip { width: 130px; height: 130px; border-radius: 22px; background: var(--sw); box-shadow: 0 0 0 5px #fff, 0 0 0 11px #1d1c1f, 0 20px 50px rgba(0,0,0,.5); display: flex; align-items: flex-end; padding: 12px; color: #fff; animation: hcp-chipdrop .6s cubic-bezier(.2,1.4,.4,1) both; }
.hcp-mchip span { font-family: var(--hc-font); font-size: 30px; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hcp-mchip.ink-dark { color: #1d1c1f; }
.hcp-mchip.ink-dark span { text-shadow: none; }
@keyframes hcp-chipdrop { from { transform: scale(2.2) rotate(-10deg); opacity: 0; } }
.hcp-moment .big { font-family: var(--hc-font); font-size: 92px; font-weight: 900; line-height: .9; color: #fff; text-shadow: 4px 4px 0 rgba(0,0,0,.35); animation: nup-slam .5s .15s cubic-bezier(.2,1.5,.4,1) both; }
.hcp-moment.exact .big { font-size: 68px; color: #ffd60a; text-shadow: 4px 4px 0 #1d1c1f; transform: rotate(-5deg); }
.hcp-moment.none .big { color: rgba(255,255,255,.75); }
.hcp-moment.win .big { font-size: 60px; color: #ffd60a; text-align: center; text-shadow: 4px 4px 0 var(--pc); }
.hcp-moment .who { background: rgba(0,0,0,.7); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 16px; border-radius: 999px; }

/* ---- the end ---- */
.hcp-final { align-items: center; text-align: center; padding-top: 30px; gap: 14px; }
.hcp-fchips { display: flex; gap: 6px; }
.hcp-fchips i { width: 34px; height: 46px; border-radius: 7px; background: var(--sw); box-shadow: 0 6px 14px rgba(0,0,0,.3); animation: hcp-dealt .5s calc(var(--k) * 70ms) cubic-bezier(.2,1.2,.4,1) both; }
.hcp-fscore { display: flex; flex-direction: column; align-items: center; }
.hcp-fscore b { font-family: var(--hc-font); font-size: 76px; font-weight: 900; line-height: 1; }
.hcp-fscore span { font-size: 15px; color: var(--label-2); font-weight: 700; }

/* ---- light theme ---- */
[data-theme="light"] .hcp-bar-in.idle, [data-theme="light"] .hcp-tip, [data-theme="light"] .hcp-cuein, [data-theme="light"] .hcp-result { background: rgba(255,255,255,.86); box-shadow: 0 4px 14px rgba(110,80,40,.12); }
[data-theme="light"] .hcp-bar-in.idle .tclock .bg { stroke: rgba(0,0,0,.1); }
[data-theme="light"] .hcp-bar-in.idle em { color: #b7791f; }
[data-theme="light"] .hcp-cw .c2 { border-left-color: rgba(0,0,0,.12); }
[data-theme="light"] .hcp-over, [data-theme="light"] .hcp-zgrid { background: #fffefb; box-shadow: 0 0 0 1px rgba(110,80,40,.12), 0 8px 22px rgba(110,80,40,.16); }
[data-theme="light"] .hcp-owin { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,0,0,.75), 0 0 0 999px rgba(255,255,255,.35); }
[data-theme="light"] .hcp-crow input { background: #f2eee6; }
[data-theme="light"] .hcp-pass { box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); background: #fff; }
[data-theme="light"] .hcp-prob.no { color: #d0342c; }
[data-theme="light"] .hcp-rpts.got b { color: #c98a00; }
[data-theme="light"] .hcp-sheet { background: #fbf8f2; }
[data-theme="light"] .hcp-place { background: #1d1c1f; color: #fff; }
[data-theme="light"] .hcp-place i { box-shadow: 0 0 0 2px #fff; }

/* second cue: the reason and Pass share a row, so the box is short */
.hcp-probrow { display: flex; align-items: center; gap: 8px; }
.hcp-probrow .hcp-prob { flex: 1; min-width: 0; }
.hcp-probrow .hcp-pass { width: auto; flex: none; min-height: 44px; padding: 0 12px; font-size: 14px; }
/* the reveal: who put a cone where, as a list (dots can sit on top of each other) */
.hcp-clist { display: flex; flex-wrap: wrap; gap: 6px; }
.hcp-ci { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(0,0,0,.3); font-size: 14px; font-weight: 700; }
.hcp-ci i { width: 22px; height: 22px; border-radius: 50%; background: var(--pc); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.6); }
[data-theme="light"] .hcp-ci { background: rgba(255,255,255,.85); }

.hcp-cue2 .hcp-cw .c2.wait { display: none; } /* the giver knows a second cue is coming */
.hcp-probrow .hcp-pass { font-size: 13px; padding: 0 10px; }

/* /shared/notherd.css */
/* Think Alike: the pieces the TV and the phones share. The table is a pasture: a
   sunny one by day (light, the default) and a moonlit one at night (dark). The question is a
   white card with a cow-print band; answers go up on tiles that turn over like a game-show
   board. Dark rules first, then [data-theme="light"]. */
:root {
  --nh-ink: #1d1b20;
  --nh-paper: #fffdf7;
  --nh-pink: #ff7aa6;
  --nh-pink-2: #ffb7cf;
  --nh-gold: #ffbf1f;
  --nh-grass: #3f9b4a;
  --nh-font: "Arial Rounded MT Bold", "Avenir Next Rounded", "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  /* panels that sit on the pasture (or on any mood table, which is always dark) */
  --nh-panel: rgba(12,20,32,.84); --nh-panel-t: #f3f1ea; --nh-panel-2: rgba(243,241,234,.66);
}
:root[data-theme="light"] { --nh-panel: rgba(255,253,247,.93); --nh-panel-t: #1d1b20; --nh-panel-2: rgba(29,27,32,.64); }
.nh-round { font-family: var(--nh-font); font-weight: 800; letter-spacing: -.01em; }
.nh-tv [hidden], .nhp [hidden] { display: none !important; }

/* ---- the pasture ---- */
.tbl-herd {
  --tbl-edge: #0b1220; --tbl-rim: #2f4a3a; --tbl-glow: rgba(200,230,255,.06);
  --nh-sky-1: #0d1730; --nh-sky-2: #1c2c4c; --nh-hill-1: #1d3a2b; --nh-hill-2: #173123; --nh-grass-1: #1f4a2e; --nh-grass-2: #143520;
  --nh-barn: #8f2f26; --nh-roof: #4a1d1a; --nh-door: #7a2820; --nh-trim: #e9e1d2; --nh-window: #ffd27a;
  --nh-wood: #6b4a2e; --nh-wood-2: #4e341f; --nh-wood-t: #f4e6cf; --nh-tree: #12301f; --nh-trunk: #2a2016;
  background:
    radial-gradient(1.6px 1.6px at 12% 8%, rgba(255,255,255,.9), transparent 2px),
    radial-gradient(1.4px 1.4px at 31% 15%, rgba(255,255,255,.7), transparent 2px),
    radial-gradient(1.8px 1.8px at 48% 6%, rgba(255,255,255,.85), transparent 2px),
    radial-gradient(1.3px 1.3px at 66% 12%, rgba(255,255,255,.6), transparent 2px),
    radial-gradient(1.6px 1.6px at 79% 4%, rgba(255,255,255,.9), transparent 2px),
    radial-gradient(1.2px 1.2px at 91% 17%, rgba(255,255,255,.6), transparent 2px),
    radial-gradient(1.4px 1.4px at 22% 26%, rgba(255,255,255,.5), transparent 2px),
    radial-gradient(1.4px 1.4px at 58% 24%, rgba(255,255,255,.55), transparent 2px),
    radial-gradient(ellipse 70% 30% at 30% 74%, var(--nh-hill-1), transparent 70%),
    radial-gradient(ellipse 60% 26% at 80% 70%, var(--nh-hill-2), transparent 70%),
    linear-gradient(180deg, var(--nh-sky-1) 0%, var(--nh-sky-2) 50%, var(--nh-grass-1) 64%, var(--nh-grass-2) 100%);
}
[data-theme="light"] .tbl-herd {
  --tbl-edge: #ffffff; --tbl-rim: #b9d7a4; --tbl-glow: rgba(255,255,255,.35);
  --nh-sky-1: #8fd0f4; --nh-sky-2: #d4effc; --nh-hill-1: #9ed37a; --nh-hill-2: #86c464; --nh-grass-1: #8fcb68; --nh-grass-2: #6db14f;
  --nh-barn: #d0432f; --nh-roof: #6e2a22; --nh-door: #b8392a; --nh-trim: #fffaf0; --nh-window: #5a2a1e;
  --nh-wood: #c99a62; --nh-wood-2: #a87a46; --nh-wood-t: #3a2412; --nh-tree: #4f9b45; --nh-trunk: #7a5530;
  background:
    radial-gradient(ellipse 70% 30% at 30% 74%, var(--nh-hill-1), transparent 70%),
    radial-gradient(ellipse 60% 26% at 80% 70%, var(--nh-hill-2), transparent 70%),
    linear-gradient(180deg, var(--nh-sky-1) 0%, var(--nh-sky-2) 50%, var(--nh-grass-1) 64%, var(--nh-grass-2) 100%);
}

/* cow print: irregular black patches on white, for card bands and tile backs */
.nh-print { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='130' viewBox='0 0 220 130'%3E%3Cg fill='%231d1b20'%3E%3Cpath d='M10 6c12-6 30-5 40 2 9 7 6 20-3 27-10 8-25 9-34 3C4 32 1 22 3 14c1-4 3-6 7-8z'/%3E%3Cpath d='M86 2c10-2 22 0 27 7 5 8-1 17-9 21-9 4-20 3-25-4-5-8-3-21 7-24z'/%3E%3Cpath d='M152 22c14-8 34-6 46 3 10 8 9 23-2 30-12 8-30 8-42 1-10-6-12-16-9-24 1-4 4-7 7-10z'/%3E%3Cpath d='M50 58c11-5 26-3 33 5 6 7 3 18-6 23-10 6-24 5-31-2-6-6-6-16 0-22 1-2 3-3 4-4z'/%3E%3Cpath d='M120 78c8-4 19-3 24 3 4 6 1 13-6 17-8 4-18 3-22-3-4-5-2-13 4-17z'/%3E%3Cpath d='M14 98c7-3 16-2 20 3s1 11-5 13c-7 3-15 1-18-4-2-5-1-10 3-12z'/%3E%3Cpath d='M180 90c8-2 17 1 20 7 3 7-2 14-10 15-8 2-16-2-17-8-2-6 1-12 7-14z'/%3E%3Cpath d='M96 46c3-2 8-2 9 1 2 3 0 6-3 7-4 1-7 0-8-3 0-2 1-4 2-5z'/%3E%3Cpath d='M70 110c4-2 9-1 11 2 1 3-1 7-5 7-4 1-8-1-8-4 0-2 1-4 2-5z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 130px, #fff; }

/* ---- the question card ---- */
.nh-card { position: relative; background: var(--nh-paper); color: var(--nh-ink); border-radius: 26px; box-shadow: 0 0 0 3px var(--nh-ink), 0 10px 0 rgba(0,0,0,.18), 0 24px 60px rgba(0,0,0,.28); overflow: hidden; }
.nh-card-band { height: 34px; border-bottom: 3px solid var(--nh-ink); background-position: -18px -46px; }
.nh-card-body { padding: 18px 34px 26px; }
.nh-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--nh-font); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(29,27,32,.55); }
.nh-kicker .nh-pack { letter-spacing: .06em; text-transform: none; font-weight: 800; color: #fff; background: #2f8a46; border-radius: 999px; padding: 2px 12px; }
.nh-kicker .nh-pack.v { background: #1b6fb5; }
.nh-qtext { font-family: var(--nh-font); font-weight: 900; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }

/* ---- cows ---- */
.nh-face, .nh-cow, .nh-token { display: block; overflow: visible; }
.nh-face .nh-bell { transform-box: fill-box; transform-origin: 50% 0; }
.nh-face.ring .nh-bell { animation: nh-ring .6s ease-in-out 2; }
@keyframes nh-ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.nh-face.chew .nh-mouth { animation: nh-chew .7s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes nh-chew { 50% { transform: translateX(3px) scaleY(.6); } }
.nh-face .nh-blink { transform-box: fill-box; transform-origin: 50% 50%; animation: nh-blink 5s infinite; }
@keyframes nh-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.nh-face .nh-ear-l, .nh-face .nh-ear-r { transform-box: fill-box; }
.nh-face .nh-ear-l { transform-origin: 100% 50%; }
.nh-face .nh-ear-r { transform-origin: 0% 50%; }
.nh-face.chew .nh-ear-l { animation: nh-flick-l 3.2s ease-in-out infinite; }
.nh-face.chew .nh-ear-r { animation: nh-flick-r 3.2s 1.1s ease-in-out infinite; }
@keyframes nh-flick-l { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(14deg); } 92% { transform: rotate(-4deg); } }
@keyframes nh-flick-r { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 92% { transform: rotate(4deg); } }

/* a whole cow walking or trotting: legs swing, the body bobs, the tail flicks */
.nh-cow .nh-leg, .nh-cow .nh-tail, .nh-cow .nh-head { transform-box: fill-box; }
.nh-cow .nh-leg { transform-origin: 50% 0; }
.nh-cow .nh-tail { transform-origin: 90% 0; animation: nh-tail 2.4s ease-in-out infinite; }
.nh-cow .nh-head { transform-origin: 10% 60%; }
@keyframes nh-tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
.nh-cow.walk .nh-leg.f1, .nh-cow.walk .nh-leg.b2 { animation: nh-step .42s ease-in-out infinite alternate; }
.nh-cow.walk .nh-leg.f2, .nh-cow.walk .nh-leg.b1 { animation: nh-step .42s ease-in-out infinite alternate-reverse; }
.nh-cow.walk .nh-body, .nh-cow.walk .nh-head { animation: nh-bob .42s ease-in-out infinite alternate; }
@keyframes nh-step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes nh-bob { to { transform: translateY(-2.5px); } }
.nh-cow.graze .nh-head { animation: nh-graze 4.5s ease-in-out infinite; }
@keyframes nh-graze { 0%, 30%, 100% { transform: rotate(0); } 45%, 80% { transform: rotate(22deg) translateY(6px); } }

/* ---- answer tiles: a game-show board ---- */
.nh-tile { position: relative; perspective: 1400px; min-width: 0; min-height: 0; }
.nh-tile-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.35,.45,1); }
.nh-tile.up .nh-tile-in { transform: rotateX(180deg); }
.nh-tile.now .nh-tile-in { transition: none; }
.nh-tile-back, .nh-tile-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 3px var(--nh-ink), 0 7px 0 rgba(0,0,0,.2); overflow: hidden; }
.nh-tile-back { display: flex; align-items: center; justify-content: center; }
.nh-tile-back b { width: 1.9em; height: 1.9em; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nh-paper); color: var(--nh-ink); font-family: var(--nh-font); font-weight: 900; box-shadow: 0 0 0 3px var(--nh-ink); }
.nh-tile-face { transform: rotateX(180deg); background: var(--nh-paper); color: var(--nh-ink); display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; align-items: center; column-gap: 14px; }
.nh-tile-ans { font-family: var(--nh-font); font-weight: 900; line-height: 1.02; letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.nh-tile-n { align-self: center; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nh-ink); color: #fff; font-family: var(--nh-font); font-weight: 900; }
.nh-tile-who { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.nh-tile-alt { grid-column: 1 / -1; font-weight: 700; color: rgba(29,27,32,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-tile.herd .nh-tile-face { background: linear-gradient(180deg, #fff7d6, #ffe58a); box-shadow: 0 0 0 4px var(--nh-ink), 0 0 0 10px var(--nh-gold), 0 0 60px rgba(255,191,31,.65); }
.nh-tile.herd .nh-tile-n { background: #2f8a46; }
.nh-tile.tied .nh-tile-face { background: #eef0f2; }
.nh-tile.odd .nh-tile-face { background: linear-gradient(180deg, #fff0f5, #ffd0e0); box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 8px var(--nh-pink); }
.nh-tile.dim .nh-tile-face { background: #e9e8e3; color: rgba(29,27,32,.62); }
.nh-tile.dim .nh-tile-n { background: rgba(29,27,32,.5); }
.nh-tile.dim .avatar { filter: saturate(.4); opacity: .8; }
.nh-tile.merged .nh-tile-face { animation: nh-merge .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes nh-merge { 0% { transform: rotateX(180deg) scale(.9); } 60% { transform: rotateX(180deg) scale(1.05); } }
.nh-ribbon { position: absolute; z-index: 3; left: 50%; top: -14px; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; font-family: var(--nh-font); font-weight: 900; letter-spacing: .12em; padding: 4px 14px; border-radius: 10px; box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 14px rgba(0,0,0,.25); animation: nh-stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
.nh-ribbon.herd { background: var(--nh-gold); color: var(--nh-ink); }
.nh-ribbon.tie { background: #fff; color: var(--nh-ink); }
.nh-ribbon.odd { background: var(--nh-pink); color: #fff; }
@keyframes nh-stamp { from { transform: translateX(-50%) rotate(-8deg) scale(1.8); opacity: 0; } }

/* /phone/games/notherd.css */
/* Think Alike on the phones: the answer pad on the pasture. Night (dark) rules first,
   then the sunny day (light, the default). */
.nhp { --gold: #ffbf1f; display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; color: var(--nh-panel-t, var(--text)); }
.nhp .avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.nhp-center { flex: 1; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 18px 8px; }
.nhp-center.grow { flex: 1; display: flex; flex-direction: column; }
.nhp-h { font-family: var(--nh-font); font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; padding: 8px 16px; border-radius: 16px; background: var(--nh-panel); color: var(--nh-panel-t); }
.nhp-p { font-size: 16px; line-height: 1.4; padding: 10px 14px; border-radius: 14px; background: var(--nh-panel); color: var(--nh-panel-2); max-width: 360px; }
.nhp-p b { color: var(--nh-panel-t); }
.nhp-p.center { text-align: center; max-width: none; }
.nhp-note { font-size: 14px; line-height: 1.35; text-align: center; padding: 8px 12px; border-radius: 12px; background: var(--nh-panel); color: var(--nh-panel-2); }
.nhp-label { font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--nh-panel-2); }
.nhp-bigcow { position: relative; width: 150px; }
.nhp-bigcow .nh-face { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.nhp-bigcow.win { width: 180px; }
.nhp-rosette { position: absolute; right: -12px; top: -6px; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 12px rgba(0,0,0,.3); font-family: var(--nh-font); font-weight: 900; color: var(--nh-ink); transform: rotate(12deg); }

/* ---- the strip: question, your cows, Blossom ---- */
.nhp-strip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--nh-panel); color: var(--nh-panel-t); box-shadow: 0 4px 12px rgba(0,0,0,.15); min-height: 44px; }
.nhp-qn { font-family: var(--nh-font); font-weight: 900; font-size: 16px; padding: 5px 10px; border-radius: 999px; background: var(--nh-ink); color: #fff; }
.nhp-mine { display: inline-flex; align-items: center; gap: 5px; }
.nhp-mine .nh-token { width: 26px; height: 26px; }
.nhp-mine b { font-family: var(--nh-font); font-size: 22px; }
.nhp-mine small { font-size: 14px; font-weight: 700; color: var(--nh-panel-2); }
.nhp-pips { flex: 1; display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.nhp-pips i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--nh-panel-2); }
.nhp-pips i.on { background: var(--nh-panel-t); box-shadow: none; }
.nhp-pinkme { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px; border-radius: 999px; background: #b0124e; color: #fff; font-family: var(--nh-font); font-weight: 900; font-size: 14px; }
.nhp-pinkme .nh-token { width: 22px; height: 22px; }

/* ---- the bar on top: yours (gold) or calm ---- */
.nhp-bar { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 10px 10px 16px; min-height: 64px; }
.nhp-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nhp-bar b { font-family: var(--nh-font); font-size: 24px; font-weight: 900; letter-spacing: -.01em; line-height: 1.05; }
.nhp-bar span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.nhp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 0 0 3px var(--nh-ink), 0 10px 26px rgba(255,190,0,.4); animation: nhp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-bar.me.still { animation: none; }
.nhp-bar.idle { background: var(--nh-panel); color: var(--nh-panel-t); }
.nhp-bar.idle span { color: var(--nh-panel-2); }
.nhp-bclock:empty { display: none; }
.nhp-bar .tclock { width: 56px; height: 56px; }
.nhp-bar .tclock b { font-size: 23px; }
.nhp-bar .tclock small { display: none; }
.nhp-bar.me .tclock .fg { stroke: #1b1b1b; }
.nhp-bar.idle .tclock .fg { stroke: var(--gold); }
.nhp-bar.idle .tclock .bg { stroke: rgba(127,127,127,.25); }
.nhp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.nhp-bar.me:has(.tclock.urgent) .tclock .fg { stroke: #fff; }
@keyframes nhp-pop { from { transform: scale(.9); opacity: 0; } }
body.nhp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 40px rgba(255,196,0,.35); animation: nhp-frame 1.6s ease-in-out infinite; }
@keyframes nhp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 70px rgba(255,196,0,.5); } }

/* ---- the question and your answer ---- */
.nhp-card { border-radius: 20px; }
.nhp-card .nh-card-band { height: 26px; background-position: -40px -52px; }
.nhp-card .nh-card-body { padding: 12px 18px 18px; }
.nhp-card .nh-kicker { font-size: 14px; color: rgba(29,27,32,.78); }
.nhp-card .nh-qtext { margin-top: 4px; }
.nhp-form { display: flex; flex-direction: column; gap: 10px; }
.nhp-form input { width: 100%; min-height: 64px; border-radius: 18px; border: none; padding: 12px 18px; font-family: var(--nh-font); font-size: 26px; font-weight: 800; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 5px 0 rgba(0,0,0,.18); outline: none; }
.nhp-form input:focus { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px var(--gold), 0 5px 0 rgba(0,0,0,.18); }
.nhp-form input::placeholder { color: rgba(29,27,32,.35); }
.nhp-lock { width: 100%; min-height: 62px; border: none; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); font-family: var(--nh-font); font-size: 22px; font-weight: 900; letter-spacing: .08em; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.nhp-lock:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.nhp-lock .nh-token { width: 32px; height: 32px; }
.nhp-mineans { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px #2fb35a, 0 6px 0 rgba(0,0,0,.18); animation: nhp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-mineans small { font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(29,27,32,.72); }
.nhp-mineans b { font-family: var(--nh-font); font-size: 30px; font-weight: 900; line-height: 1.1; padding-right: 92px; overflow-wrap: anywhere; }
.nhp-mineans.solo { box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.18); min-width: 220px; }
.nhp-mineans.solo b { padding-right: 0; }
.nhp-change { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 16px; border: none; border-radius: 12px; background: rgba(29,27,32,.08); color: var(--nh-ink); font-weight: 800; font-size: 15px; cursor: pointer; }
.nhp-slow { display: flex; flex-direction: column; gap: 10px; }
.nhp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nhp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--nh-panel); color: var(--nh-panel-t); font-weight: 700; font-size: 15px; }
.nhp-moo { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 8px 16px 8px 10px; border: none; border-radius: 20px; background: #ffd0e0; color: #6d0f37; text-align: left; cursor: pointer; box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.2); }
.nhp-moo:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--nh-ink), 0 3px 0 rgba(0,0,0,.2); }
.nhp-moo .nh-face { width: 60px; height: auto; flex: none; }
.nhp-moo b { display: block; font-family: var(--nh-font); font-size: 22px; font-weight: 900; }
.nhp-moo small { display: block; font-size: 14px; font-weight: 700; }

/* ---- reveal and waiting ---- */
.nhp-trotter { width: 170px; animation: nhp-trot 3.2s ease-in-out infinite; }
.nhp-trotter .nh-cow { width: 100%; height: auto; }
@keyframes nhp-trot { 0% { transform: translateX(-60px); } 50% { transform: translateX(60px); } 50.01% { transform: translateX(60px) scaleX(-1); } 100% { transform: translateX(-60px) scaleX(-1); } }
.nhp-grp { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.18); }
.nhp-grp small { font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(29,27,32,.72); }
.nhp-grp b { font-family: var(--nh-font); font-size: 32px; font-weight: 900; line-height: 1.05; }
.nhp-grp span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.nhp-grp span i, .nhp-g-t span i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.nhp-grp em { font-style: normal; font-weight: 800; color: #2f8a46; }

/* ---- the leader's check ---- */
.nhp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--nh-panel); color: var(--nh-panel-t); font-size: 15px; font-weight: 700; line-height: 1.3; }
.nhp-tools > span { flex: 1 1 100%; }
.nhp-tools.idle > span { color: var(--nh-panel-2); }
.nhp-tool { flex: 1; min-height: 48px; border: none; border-radius: 12px; background: var(--nh-pink); color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 0 0 2.5px var(--nh-ink); }
.nhp-tool.ghost { background: transparent; color: var(--nh-panel-t); box-shadow: inset 0 0 0 2px var(--nh-panel-2); }
.nhp-glist { display: flex; flex-direction: column; gap: 10px; }
.nhp-g { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px 10px 16px; border: none; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); text-align: left; cursor: pointer; box-shadow: 0 0 0 3px var(--nh-ink), 0 5px 0 rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.nhp-g:active { transform: scale(.98); }
.nhp-g.sel { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 8px var(--gold), 0 5px 0 rgba(0,0,0,.18); transform: translateY(-2px); }
.nhp-g.target { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 6px rgba(47,179,90,.55), 0 5px 0 rgba(0,0,0,.18); }
.nhp-g-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nhp-g-t b { font-family: var(--nh-font); font-size: 22px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.nhp-g-t span { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; font-weight: 700; color: rgba(29,27,32,.78); }
.nhp-g-t small { font-size: 14px; font-weight: 700; color: rgba(29,27,32,.72); }
.nhp-g-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nh-ink); color: #fff; font-family: var(--nh-font); font-size: 20px; font-weight: 900; }
.nhp-g-m { position: absolute; right: 60px; top: -12px; padding: 2px 9px; border-radius: 8px; background: #1f7a3a; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 0 0 2px var(--nh-ink); }
.nhp-count { position: sticky; bottom: calc(var(--safe-bottom, 0px) + 10px); z-index: 5; background: #2f8a46; color: #fff; box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.3); }

/* ---- the result ---- */
.nhp-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 18px 22px; border-radius: 24px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 7px 0 rgba(0,0,0,.2); animation: nhp-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-result.good { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 9px var(--gold), 0 7px 0 rgba(0,0,0,.2); background: linear-gradient(180deg, #fffbe6, #ffeeb0); }
.nhp-res-art { width: 130px; }
.nhp-res-art svg { width: 100%; height: auto; }
.nhp-result > b { font-family: var(--nh-font); font-size: 40px; font-weight: 900; line-height: 1; }
.nhp-result.good > b { color: #1f8f45; }
.nhp-result > span { font-size: 17px; line-height: 1.35; font-weight: 600; }
.nhp-result > em { font-style: normal; font-size: 14px; font-weight: 800; color: rgba(29,27,32,.75); }
.nhp-raise { text-align: center; font-family: var(--nh-font); font-size: 20px; font-weight: 900; padding: 12px; border-radius: 16px; background: var(--gold); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink); }
.nhp-raise.win { font-size: 28px; }
.nhp-pinkcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #ffe1ec; color: #6d0f37; box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px var(--nh-pink); }
.nhp-pinkcard.free { box-shadow: 0 0 0 3px var(--nh-ink); background: #f3fff5; color: #1d5a2c; }
.nhp-pinkcard .nh-cow { width: 96px; height: auto; flex: none; }
.nhp-pinkcard.free .nh-cow { opacity: .6; transform: scaleX(-1); }
.nhp-pinkcard b { display: block; font-family: var(--nh-font); font-size: 20px; font-weight: 900; }
.nhp-pinkcard span { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ---- the big moments, full screen ---- */
.nhp-moment { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,14,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: nhp-fade .2s ease both; }
.nhp-moment.out { opacity: 0; transition: opacity .25s; }
@keyframes nhp-fade { from { opacity: 0; } }
.nhp-m-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 100%; max-width: 380px; padding: 22px 20px 26px; border-radius: 28px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 4px var(--nh-ink), 0 10px 0 rgba(0,0,0,.25), 0 30px 80px rgba(0,0,0,.5); animation: nhp-in .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes nhp-in { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.nhp-m-art { width: 150px; }
.nhp-m-art svg { width: 100%; height: auto; }
.nhp-m-in small { font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: rgba(29,27,32,.55); }
.nhp-m-in b { font-family: var(--nh-font); font-size: 40px; font-weight: 900; line-height: 1.02; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nhp-m-in span { font-size: 17px; font-weight: 700; color: rgba(29,27,32,.7); }
.nhp-moment.k-herd .nhp-m-in { box-shadow: 0 0 0 4px var(--nh-ink), 0 0 0 12px var(--gold), 0 30px 80px rgba(0,0,0,.5); }
.nhp-moment.k-herd .nhp-m-in span { color: #1f8f45; font-size: 22px; font-weight: 900; }
.nhp-moment.k-pink .nhp-m-in { background: #fff0f6; box-shadow: 0 0 0 4px var(--nh-ink), 0 0 0 12px var(--nh-pink), 0 30px 80px rgba(0,0,0,.5); }
.nhp-moment.k-pink .nhp-m-in b { color: #b0124e; font-size: 32px; }
.nhp-moment.k-moo .nhp-m-in { background: #ffd0e0; animation: nhp-in .45s cubic-bezier(.2,1.5,.4,1) both, nhp-wobble .5s .45s ease-in-out 2; }
.nhp-moment.k-moo .nhp-m-in b { font-size: 64px; }
@keyframes nhp-wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.nhp-moment.k-raise .nhp-m-in { background: var(--gold); }

/* ---- the sunny day (light) ---- */
[data-theme="light"] .nhp-lock:not(.nhp-count) { background: var(--nh-ink); color: #fff; }
[data-theme="light"] .nhp-strip, [data-theme="light"] .nhp-bar.idle, [data-theme="light"] .nhp-tools, [data-theme="light"] .nhp-note, [data-theme="light"] .nhp-p, [data-theme="light"] .nhp-h, [data-theme="light"] .nhp-chip { box-shadow: 0 0 0 2.5px var(--nh-ink); }
[data-theme="light"] .nhp-moment { background: rgba(60,80,60,.35); }

/* ---- phone-fit: the box and LOCK IN above the bottom bar on short phones; read-only answer board ---- */
.nhp-g.ro { cursor: default; }
.nhp-g.ro:active { transform: none; }
.nhp-g.mine { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 6px var(--gold), 0 5px 0 rgba(0,0,0,.18); }
.nhp-g.herd { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px #2fb35a, 0 5px 0 rgba(0,0,0,.18); }
.nhp-g-m.you { background: var(--nh-ink); }
.nhp-glist.ro { gap: 12px; }
.nhp-lock { min-height: 56px; }
@media (max-height: 700px) {
  .nhp { gap: 8px; padding-bottom: 12px; }
  .nhp-bar { min-height: 52px; padding: 6px 8px 6px 14px; }
  .nhp-bar b { font-size: 21px; }
  .nhp-bar .tclock { width: 46px; height: 46px; }
  .nhp-bar .tclock b { font-size: 19px; }
  .nhp-card .nh-card-band { height: 6px; background: var(--nh-ink); }
  .nhp-card .nh-qtext { font-size: 22px !important; line-height: 1.15; }
  .nhp-strip { min-height: 38px; padding-top: 3px; padding-bottom: 3px; }
  .nhp-card .nh-card-body { padding: 8px 14px 12px; }
  .nhp-form input { min-height: 56px; font-size: 24px; }
  .nhp-lock { min-height: 54px; }
  .nhp-count { min-height: 54px; }
}

/* face-down answers during the reveal, and the final standings */
.nhp-g.back { background: repeating-linear-gradient(135deg, var(--nh-panel) 0 10px, color-mix(in srgb, var(--nh-panel) 88%, #000) 10px 20px); color: var(--nh-panel-t); }
.nhp-g.back .nhp-g-t b { font-size: 18px; }
.nhp-g.up { animation: nhp-pop .3s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-board { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.nhp-board .nhp-label { text-align: center; }
.nhp-brow { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 2.5px var(--nh-ink); font-size: 17px; text-align: left; }
.nhp-brow.me { box-shadow: 0 0 0 2.5px var(--nh-ink), 0 0 0 5px var(--gold); }
.nhp-brow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--nh-font); font-weight: 900; }
.nhp-rk { font-weight: 900; min-width: 34px; color: rgba(29,27,32,.78); }
.nhp-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.nhp-pk { font-size: 14px; font-weight: 800; color: #b0124e; }
@media (max-height: 700px) {
  .nhp-center { gap: 8px; padding: 8px 8px 12px; justify-content: flex-start; }
  .nhp-bigcow { width: 96px; }
  .nhp-bigcow.win { width: 110px; }
  .nhp-h { font-size: 26px; }
  /* the final: the standings must clear the leader's bar, so the cow and the sentence (the table says the same) step aside */
  .nhp-final .nhp-bigcow, .nhp-final .nhp-p { display: none; }
}

/* initials in the small faces: 14px like the rest of the text */
.nhp .avatar.sm, .nhp-g .avatar, .nhp-brow .avatar, .nhp-strip .avatar, .nhp-chip .avatar { font-size: 14px; }

/* /shared/notflip7.css */
/* Bust or Stay card faces, the wordmark and the table, shared by the TV and the phones.
   Size a card with --cw. The card's own box is sized from --cw; cqw only inside it. */
.f7c, .f7c * { box-sizing: border-box; }
.f7c {
  --paper: #fcf5e3; --paper2: #f1e2bd; --rule: #b39a55;
  width: var(--cw, 100px); aspect-ratio: 5 / 7; container-type: inline-size; position: relative; flex: none;
  filter: drop-shadow(0 calc(var(--cw, 100px) * .02) calc(var(--cw, 100px) * .035) rgba(40,25,5,.38));
  user-select: none; -webkit-user-select: none;
  font-family: "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.f7c .f7-in {
  position: absolute; inset: 0; border-radius: 6cqw; overflow: hidden; color: var(--ink, #333);
  background:
    radial-gradient(ellipse 90% 60% at 30% 18%, rgba(255,255,255,.55), transparent 60%),
    repeating-linear-gradient(115deg, rgba(120,90,30,.025) 0 1.2cqw, transparent 1.2cqw 2.6cqw),
    linear-gradient(165deg, var(--paper), var(--paper2));
  /* the ticket notches on both sides */
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 5cqw, #000 5.4cqw) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5cqw, #000 5.4cqw) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 5cqw, #000 5.4cqw) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5cqw, #000 5.4cqw) right / 51% 100% no-repeat;
}
.f7c .f7-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.f7c .f7-fan { position: absolute; top: 50%; width: 15cqw; height: 30cqw; transform: translateY(-50%); }
.f7c .f7-fan svg { width: 100%; height: 100%; display: block; }
.f7c .f7-fan.l { left: 0; }
.f7c .f7-fan.r { right: 0; transform: translateY(-50%) scaleX(-1); }
.f7c .f7-big {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); text-align: center; line-height: 1;
  font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", "Arvo", Georgia, serif; font-weight: 900;
  font-size: 60cqw; letter-spacing: -.04em; color: var(--ink);
  -webkit-text-stroke: 1.3cqw var(--shade); paint-order: stroke fill;
  text-shadow: 1.6cqw 1.9cqw 0 var(--shade), 2.4cqw 3cqw 0 rgba(60,30,0,.14);
}
.f7c .f7-big.two { font-size: 47cqw; letter-spacing: -.07em; transform: translate(-1.5cqw, -54%); }
.f7c .f7-pip { position: absolute; font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-weight: 900; font-size: 16cqw; line-height: 1; color: var(--ink); -webkit-text-stroke: .5cqw var(--shade); paint-order: stroke fill; }
.f7c .f7-pip.tl { left: 12cqw; top: 11cqw; }
.f7c .f7-pip.br { right: 12cqw; bottom: 11cqw; transform: rotate(180deg); }
.f7c .f7-word { position: absolute; left: 0; right: 0; bottom: 19cqw; text-align: center; font-size: 8.4cqw; font-weight: 800; letter-spacing: .16em; padding-left: .16em; color: var(--shade); }
/* a hairline ring above the number, like the stub of a ticket */
/* a little star on a ribbon above the number, like the stub of a ticket */
.f7c.k-num .f7-in::before { content: ''; position: absolute; left: 50%; top: 15.5cqw; width: 34cqw; height: 1cqw; transform: translateX(-50%); border-radius: 1cqw; background: linear-gradient(90deg, transparent, var(--ink) 18% 36%, transparent 36% 64%, var(--ink) 64% 82%, transparent); opacity: .8; }
.f7c.k-num .f7-in::after { content: ''; position: absolute; left: 50%; top: 12cqw; width: 8cqw; height: 8cqw; transform: translateX(-50%); background: var(--ink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* score modifiers: amber tickets with a sunburst */
.f7c.k-mod { --paper: #fbb945; --paper2: #ea861a; --rule: #fff1d2; --ink: #fff3d6; --ink2: #ffd27a; --shade: #6e2f02; }
.f7c.k-mod .f7-burst { position: absolute; left: 50%; top: 47%; width: 84cqw; height: 84cqw; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-conic-gradient(rgba(255,244,214,.34) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.f7c .f7-big.mod { font-size: 44cqw; letter-spacing: -.05em; color: #fff8ea; -webkit-text-stroke: 1.3cqw #6e2f02; text-shadow: 1.6cqw 1.9cqw 0 #6e2f02; }
.f7c.k-mod.times .f7-big.mod { font-size: 48cqw; }
.f7c.k-mod .f7-word { color: #5a2400; bottom: 22cqw; font-size: 9cqw; }
.f7c .f7-tiny { position: absolute; left: 0; right: 0; bottom: 14cqw; text-align: center; font-size: 5.6cqw; font-weight: 800; letter-spacing: .14em; color: rgba(90,36,0,.7); }

/* action cards */
.f7c.k-act .f7-art { position: absolute; left: 50%; top: 36%; width: 58cqw; height: 58cqw; transform: translate(-50%, -50%); }
.f7c.k-act .f7-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.f7c.k-act .f7-act { position: absolute; left: 0; right: 0; bottom: 13cqw; display: flex; flex-direction: column; align-items: center; line-height: .92; }
.f7c.k-act .f7-act b { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-weight: 900; font-size: 15cqw; letter-spacing: .01em; }
.f7c.a-freeze { --paper: #e2f5fd; --paper2: #8fcfee; --rule: #ffffff; }
.f7c.a-freeze .f7-art { color: #1d5a8c; filter: drop-shadow(0 0 2cqw rgba(255,255,255,.9)); }
.f7c.a-freeze .f7-act b { color: #14406a; text-shadow: .9cqw 1cqw 0 #fff; font-size: 17cqw; }
.f7c.a-flip3 { --paper: #ffe577; --paper2: #f4b40a; --rule: #fff8d9; }
.f7c.a-flip3 .f7-act b { color: #7a2a0a; text-shadow: .9cqw 1cqw 0 #fff1b8; }
.f7c.a-chance { --paper: #f4645b; --paper2: #c22727; --rule: #ffd7c4; }
.f7c.a-chance .f7-act b { color: #fff6e6; -webkit-text-stroke: .7cqw #5a1010; paint-order: stroke fill; text-shadow: .9cqw 1cqw 0 #5a1010; font-size: 13.5cqw; }

/* the back: teal with the box's rays and a cream banner */
.f7c.k-back { --paper: #13a0b0; --paper2: #06505f; --rule: #f4e5c4; }
.f7c .f7-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from -90deg at 50% 112%, rgba(255,214,90,.5) 0 7deg, transparent 7deg 14deg, rgba(240,104,42,.42) 14deg 21deg, transparent 21deg 28deg, rgba(232,80,111,.38) 28deg 35deg, transparent 35deg 42deg); -webkit-mask: linear-gradient(to top, #000 20%, transparent 95%); mask: linear-gradient(to top, #000 20%, transparent 95%); }
.f7c .f7-mark { position: absolute; left: 7cqw; right: 7cqw; top: 50%; transform: translateY(-50%) rotate(-8deg); background: #fbf1d9; border-radius: 3cqw; padding: 3cqw 0 4cqw; box-shadow: 0 1.5cqw 0 #6e2f02, 0 3cqw 6cqw rgba(0,0,0,.3); display: flex; flex-direction: column; align-items: center; line-height: .9; }
.f7c .f7-mark b { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-weight: 900; font-size: 15cqw; color: #f0682a; -webkit-text-stroke: .8cqw #4a1c04; paint-order: stroke fill; text-shadow: 1cqw 1.2cqw 0 #4a1c04; letter-spacing: -.02em; }
.f7c .f7-mark b + b { font-size: 10cqw; color: #0b6b7a; -webkit-text-stroke: 0; text-shadow: none; letter-spacing: .08em; margin-top: 1cqw; }

/* states */
.f7c.dim { filter: saturate(.4) brightness(.85) drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.f7c.bad .f7-in { box-shadow: inset 0 0 0 2.6cqw #e0353f; }
.f7c.bad { filter: drop-shadow(0 0 calc(var(--cw, 100px) * .08) rgba(224,53,63,.9)); }

/* the wordmark */
.f7-logo { display: flex; flex-direction: column; align-items: center; line-height: .86; transform: rotate(-5deg); }
.f7-logo b { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-weight: 900; font-size: 50px; letter-spacing: -.02em; color: #f0682a; -webkit-text-stroke: 3px #3d1504; paint-order: stroke fill; text-shadow: 4px 5px 0 #3d1504; }
.f7-logo b + b { font-size: 34px; color: #13a3b4; text-shadow: 3px 4px 0 #3d1504; }

/* help text */
.f7-explain { background: var(--fill, rgba(120,120,128,.14)); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.f7-explain .f7-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.f7-explain p { margin: 5px 0 0; }

/* The table: midnight teal with the box's rays (dark); a whitewashed plank table in daylight (light). */
.tbl-flip7 {
  --tbl-edge: #052329; --tbl-rim: #1f8794; --tbl-glow: rgba(255,214,140,.08);
  background:
    repeating-conic-gradient(from 0deg at 50% 44%, rgba(255,255,255,.03) 0 5deg, transparent 5deg 10deg),
    radial-gradient(ellipse 52% 60% at 50% 44%, rgba(30,170,185,.26), transparent 72%),
    radial-gradient(ellipse 120% 70% at 50% 120%, rgba(240,104,42,.12), transparent 60%),
    linear-gradient(180deg, #0c3f4a 0%, #08313b 60%, #06262f 100%);
}
[data-theme="light"] .tbl-flip7 {
  --tbl-edge: #fffaf0; --tbl-rim: #d8c49c; --tbl-glow: rgba(255,255,255,.35);
  background:
    repeating-conic-gradient(from 0deg at 50% 44%, rgba(19,163,180,.045) 0 5deg, rgba(240,104,42,.03) 5deg 10deg),
    radial-gradient(ellipse 50% 58% at 50% 44%, rgba(255,251,240,.9), transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(128,96,52,.13) 238px 240px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 3px, transparent 3px 11px, rgba(150,110,60,.05) 11px 13px, transparent 13px 19px),
    linear-gradient(180deg, #f2e9d7 0%, #e9dcc3 100%);
}

/* /phone/games/notflip7.css */
/* Bust or Stay on the phone. Dark rules first, then the light theme (the default) repaints
   what they hard-code. The peek and sheets come from the core (.ndp-*); the rest is .f7p-*. */
.f7p { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.f7p.docked { padding-bottom: calc(var(--safe-bottom) + 130px); }

/* whose turn */
.f7p-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; min-height: 64px; }
.f7p-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.f7p-bar.me { background: linear-gradient(120deg, #ffd60a, #ffa400); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,170,0,.45); animation: f7p-throb 1.6s ease-in-out .4s infinite; }
.f7p-bar.me.fresh { animation: f7p-pop .35s cubic-bezier(.2,1.4,.4,1) both, f7p-throb 1.6s ease-in-out .4s infinite; }
.f7p-bar.me b, .f7p-bar.flip b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.f7p-bar.me span { font-size: 15px; font-weight: 700; }
.f7p-bar.me .tclock { width: 60px; height: 60px; }
.f7p-bar.me .tclock b { font-size: 24px; font-style: normal; }
.f7p-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.f7p-bar.me .tclock.urgent .fg { stroke: #fff; }
.f7p-bar.me .tclock.urgent .bg { stroke: rgba(255,255,255,.25); }
.f7p-bar.flip { background: #13a3b4; color: #fff; box-shadow: 0 10px 30px rgba(19,163,180,.45); }
.f7p-bar.flip span { font-size: 15px; font-weight: 700; opacity: .9; }
.f7p-drum .f7c { animation: f7p-wob .25s ease-in-out infinite alternate; }
@keyframes f7p-wob { from { transform: rotate(-6deg) translateY(1px); } to { transform: rotate(6deg) translateY(-2px); } }
.f7p-bar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.f7p-bar.idle b { color: var(--text); }
.f7p-bar.idle .f7p-bt { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 16px; }
.f7p-bar.idle .tclock { width: 46px; height: 46px; }
.f7p-bar.idle .tclock .bg { stroke: rgba(255,255,255,.14); }
.f7p-bar.idle .tclock .fg { stroke: #ffb800; }
.f7p-bar.idle .tclock.urgent .fg { stroke: #ff453a; }
.f7p-bar.idle .tclock b { font-size: 17px; color: var(--text); }
.f7p-chip { font-size: 13px; font-weight: 900; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.f7p-chip.bust { background: #e0353f; color: #fff; } .f7p-chip.stayed { background: #2c9c4a; color: #fff; } .f7p-chip.frozen { background: #8fd0ee; color: #0e3456; }
@keyframes f7p-pop { from { transform: scale(.86); } }
@keyframes f7p-throb { 50% { box-shadow: 0 10px 40px rgba(255,170,0,.75); transform: scale(1.012); } }
body.f7p-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: f7p-frame 1.6s ease-in-out infinite; }
@keyframes f7p-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
body.f7p-flipping::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 4px #13a3b4, inset 0 0 60px rgba(19,163,180,.5); animation: f7p-frame-t .3s ease-in-out infinite alternate; }
@keyframes f7p-frame-t { to { box-shadow: inset 0 0 0 7px #13a3b4, inset 0 0 90px rgba(19,163,180,.7); } }

/* my row */
.f7p-me { position: relative; background: rgba(0,0,0,.26); border-radius: 22px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.f7p-mehead { display: flex; align-items: center; justify-content: space-between; }
.f7p-pips { display: flex; gap: 6px; }
.f7p-pips i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.f7p-pips i[style] { background: var(--pc); box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 0 8px color-mix(in srgb, var(--pc) 60%, transparent); }
.f7p-tot { font-size: 15px; font-weight: 700; color: var(--label-2); font-variant-numeric: tabular-nums; }
.f7p-tot b { font-size: 24px; font-weight: 900; color: var(--text); margin-right: 2px; }
.f7p-row { position: relative; height: calc(var(--cw) * 1.4 + 6px); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.f7p-row .f7c { position: absolute; top: 4px; transition: transform .15s; cursor: pointer; }
.f7p-me .f7c.peeking { transform: translateY(-14px); z-index: 60 !important; }
/* the big card you are reading floats over the top half of the screen */
.f7p-peek.ndp-peek { position: fixed; top: calc(var(--safe-top) + 64px); bottom: auto; z-index: 50; }
.f7p-none { height: 100%; display: flex; align-items: center; justify-content: center; border: 3px dashed rgba(255,255,255,.18); border-radius: 14px; color: var(--label-2); font-weight: 700; }
.f7p-extras { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.f7p-extras .f7c { cursor: pointer; }
.f7p-me .f7c.f7-new { animation: f7p-in .55s .15s cubic-bezier(.2,1.2,.35,1) both; }
@keyframes f7p-in { from { transform: translateY(-44vh) rotateY(90deg) scale(.6); opacity: 0; } 55% { opacity: 1; } }
.f7p-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); z-index: 70; font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-weight: 900; font-size: 44px; letter-spacing: .08em; padding: 0 16px; border: 5px solid currentColor; border-radius: 12px; pointer-events: none; background: rgba(0,0,0,.25); }
.f7p-stamp.fresh { animation: f7p-stampin .4s .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes f7p-stampin { from { transform: translate(-50%, -50%) rotate(-9deg) scale(2.2); opacity: 0; } }
.f7p-stamp.bust { color: #ff4d55; } .f7p-stamp.frozen { color: #9fdcff; } .f7p-stamp.seven { color: #ffd23f; text-shadow: 3px 3px 0 #3d1504; }
.f7p-me.s-busted .f7c:not(.bad) { filter: grayscale(.85) brightness(.75); }
.f7p-me.s-frozen .f7p-row::after { content: ''; position: absolute; inset: -2px -4px; border-radius: 12px; z-index: 65; pointer-events: none; background: linear-gradient(180deg, rgba(200,236,255,.4), rgba(140,200,240,.22)); box-shadow: inset 0 0 24px rgba(220,245,255,.7); }
.f7p-bank { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: baseline; }
.f7p-bank span { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--label-2); text-transform: uppercase; }
.f7p-bank b { grid-row: span 2; font-size: 46px; font-weight: 900; line-height: 1; color: #ffd23f; font-variant-numeric: tabular-nums; align-self: center; }
.f7p-bank b.stayed { color: #4cd471; } .f7p-bank b.frozen { color: #8fd0ee; } .f7p-bank b.busted { color: #ff6b6b; text-decoration: line-through; }
.f7p-bank small { font-size: 14px; color: var(--label-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.f7p-bank small i { font-style: normal; font-weight: 900; color: #fff; padding: 0 5px; border-radius: 5px; background: #b45309; }
.f7p-bank small i.x { background: #9a4408; }
.f7p-bank small i.b { background: linear-gradient(90deg, #f0682a, #e8506f, #7a4fd6); }
.f7p-risk { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 2px; }
.f7p-risk span { font-size: 14px; font-weight: 900; letter-spacing: .14em; color: var(--label-2); }
.f7p-risk i { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.f7p-risk u { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.f7p-risk b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.f7p-risk small { grid-column: 2 / 4; font-size: 14px; color: var(--label-2); }
.f7p-risk.h1 u { background: #30d158; } .f7p-risk.h1 b { color: #4cd471; }
.f7p-risk.h2 u { background: #ffd23f; } .f7p-risk.h2 b { color: #ffd23f; }
.f7p-risk.h3 u { background: #ff9f0a; } .f7p-risk.h3 b { color: #ff9f0a; }
.f7p-risk.h4 u { background: #ff453a; } .f7p-risk.h4 b { color: #ff453a; }

/* everyone else */
.f7p-opps { display: flex; flex-direction: column; gap: 6px; }
.f7p-opp { display: grid; grid-template-columns: 28px minmax(0, 72px) minmax(0, 1fr) auto 38px; align-items: center; gap: 8px; background: rgba(0,0,0,.22); border-radius: 14px; padding: 6px 10px 6px 6px; border: 2px solid transparent; font-size: 14px; }
.f7p-opp.on { border-color: #ffb800; box-shadow: 0 0 12px rgba(255,184,0,.45); }
.f7p-opp .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f7p-nums { display: flex; gap: 3px; flex-wrap: nowrap; overflow: hidden; }
.f7p-nums i { font-style: normal; min-width: 22px; height: 26px; padding: 0 3px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; background: color-mix(in srgb, var(--pc) 55%, #101018); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18); font-family: Rockwell, "Roboto Slab", Georgia, serif; }
.f7p-nums i.m { background: #b45309; }
.f7p-nums i.sc { background: #c22727; font-family: inherit; font-size: 13px; }
.f7p-opp em { font-style: normal; font-weight: 900; font-size: 15px; color: #ffd23f; text-align: right; font-variant-numeric: tabular-nums; }
.f7p-opp em.bust { color: #ff6b6b; font-size: 13px; letter-spacing: .06em; } .f7p-opp em.stayed { color: #4cd471; } .f7p-opp em.frozen { color: #8fd0ee; }
.f7p-opp .tt { text-align: right; font-weight: 700; color: var(--label-2); font-variant-numeric: tabular-nums; }
.f7p-opp.s-busted .f7p-nums { opacity: .45; }
.f7p-last { font-size: 14px; color: var(--label-2); text-align: center; min-height: 18px; }

/* the two big buttons */
.f7p-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 520px; margin: 0 auto; padding: 12px 12px calc(var(--safe-bottom) + 12px); display: flex; gap: 10px; background: linear-gradient(to top, rgba(6,30,36,.98) calc(100% - 14px), rgba(6,30,36,0)); }
.f7p-dock button { flex: 1; min-height: 92px; border-radius: 22px; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: inherit; transition: transform .08s; }
.f7p-dock button b { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-size: 42px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.f7p-dock button small { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.f7p-dock button:active { transform: translateY(3px) scale(.98); }
.f7p-hit { background: linear-gradient(170deg, #ff8a3d, #e3471a); color: #fff8ea; box-shadow: 0 6px 0 #8f2a08, 0 14px 30px rgba(227,71,26,.45); }
.f7p-hit b { text-shadow: 2px 3px 0 #8f2a08; }
.f7p-stay { background: linear-gradient(170deg, #45c96a, #1f8f3d); color: #f2fff4; box-shadow: 0 6px 0 #0f5a23, 0 14px 30px rgba(31,143,61,.45); }
.f7p-stay b { text-shadow: 2px 3px 0 #0f5a23; }
.f7p-stay:disabled { opacity: .35; }
.f7p-dock.sent button { opacity: .5; pointer-events: none; }

/* sheets */
.ndp-ov.f7p-still, .ndp-ov.f7p-still .ndp-bigcard { animation: none; }
.f7p-sheettop { display: flex; gap: 12px; align-items: center; }
.f7p-sheettop .h2 { font-size: 20px; font-weight: 800; }
.f7p-sheettop .p { font-size: 14px; color: var(--label-2); margin-top: 4px; line-height: 1.35; }
.f7p-pickclock { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--label-2); }
.f7p-pickclock .tclock.bar { flex: 1; }
.ndp-sheet .btn.who.f7p-target { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; text-align: left; min-height: 64px; align-items: center; }
.ndp-sheet .btn.f7p-target .avatar { grid-row: span 2; }
.ndp-sheet .btn.f7p-target span { font-size: 19px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndp-sheet .btn.f7p-target small { margin: 0; font-size: 13px; color: var(--label-2); font-weight: 600; }
.f7p-big { --cw: min(52vw, 210px); }

/* between rounds */
.f7p-round { display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; padding-top: 8px; }
.f7p-rbig { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-size: 72px; font-weight: 900; line-height: 1; color: #ffd23f; text-shadow: 4px 5px 0 rgba(0,0,0,.35); animation: f7p-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.f7p-rbig.busted { color: #ff6b6b; }
.f7p-rsub { font-size: 16px; font-weight: 700; color: var(--label-2); }
.f7p-rcards { display: flex; justify-content: center; padding: 4px 0; }
.f7p-rcards .f7c + .f7c { margin-left: calc(var(--cw) * -0.22); }
.f7p-rcards .f7c:nth-child(odd) { transform: rotate(-3deg); } .f7p-rcards .f7c:nth-child(even) { transform: rotate(3deg) translateY(3px); }
.f7p-rtot { font-size: 18px; }
.f7p-rtot b { font-size: 26px; }
.f7p-tie { background: #7a4fd6; color: #fff; font-weight: 800; border-radius: 14px; padding: 10px; }
.f7p-stand { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.f7p-st { display: grid; grid-template-columns: 18px 28px minmax(0, 90px) 1fr 40px; align-items: center; gap: 8px; background: rgba(0,0,0,.22); border-radius: 12px; padding: 6px 10px; font-size: 15px; }
.f7p-st.me { box-shadow: inset 0 0 0 2px #ffd23f; }
.f7p-st > span:first-child { font-weight: 900; color: var(--label-2); }
.f7p-st b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f7p-st i { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--c) var(--w), rgba(255,255,255,.1) var(--w)); }
.f7p-st em { font-style: normal; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.f7p-end .f7-logo b { font-size: 60px; }
.f7p-end .f7-logo b + b { font-size: 34px; }

/* big moments */
.f7p-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: radial-gradient(circle, rgba(0,0,0,.3), rgba(0,0,0,.7) 75%); animation: f7p-mo 2.1s ease both; }
.f7p-moment.k-seven { animation-duration: 2.8s; background: radial-gradient(circle, rgba(255,210,63,.45), rgba(0,0,0,.6) 75%), repeating-conic-gradient(rgba(255,210,63,.18) 0 8deg, transparent 8deg 16deg); }
.f7p-moment.k-bust { background: radial-gradient(circle, rgba(200,20,30,.55), rgba(40,0,0,.75) 75%); }
.f7p-moment.k-freeze { background: radial-gradient(circle, rgba(140,210,245,.55), rgba(10,40,70,.75) 75%); }
.f7p-moment.k-flip3 { background: radial-gradient(circle, rgba(255,210,63,.5), rgba(40,20,0,.7) 75%); }
.f7p-moment.k-saved { background: radial-gradient(circle, rgba(240,80,80,.5), rgba(40,0,0,.7) 75%); }
.f7p-moment.k-tie { background: radial-gradient(circle, rgba(122,79,214,.55), rgba(10,0,30,.7) 75%); }
@keyframes f7p-mo { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.f7p-moment .big { font-family: "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif; font-size: 64px; font-weight: 900; line-height: .95; text-align: center; color: #fff; -webkit-text-stroke: 3px #2a0a06; paint-order: stroke fill; text-shadow: 4px 5px 0 #2a0a06; transform: rotate(-6deg); animation: f7p-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.f7p-moment.k-bust .big { color: #ff4d55; font-size: 92px; }
.f7p-moment.k-seven .big { color: #ffd23f; font-size: 88px; }
.f7p-moment.k-freeze .big { color: #e2f5fd; -webkit-text-stroke-color: #14406a; text-shadow: 4px 5px 0 #14406a; }
.f7p-moment.k-flip3 .big { color: #ffd23f; font-size: 54px; }
.f7p-moment.k-saved .big { font-size: 44px; }
@keyframes f7p-slam { from { transform: rotate(-6deg) scale(3); opacity: 0; } }
.f7p-mcard { transform: rotate(-8deg); animation: f7p-slam .45s cubic-bezier(.2,1.5,.4,1) both; }
.f7p-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 17px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 92vw; }
.f7p-moment .avatar { width: 38px; height: 38px; font-size: 17px; }

/* ---- light theme ---- */
[data-theme="light"] body.felt::before { background: transparent; }
[data-theme="light"] .f7p-bar.idle, [data-theme="light"] .f7p-me, [data-theme="light"] .f7p-opp, [data-theme="light"] .f7p-st { background: rgba(255,255,255,.78); box-shadow: 0 4px 14px rgba(80,60,30,.1); }
[data-theme="light"] .f7p-bar.idle .tclock .bg { stroke: rgba(0,0,0,.1); }
[data-theme="light"] .f7p-opp.on { border-color: #ffb800; box-shadow: 0 0 0 2px rgba(255,184,0,.3), 0 4px 14px rgba(255,170,0,.25); }
[data-theme="light"] .f7p-pips i { box-shadow: inset 0 0 0 2px rgba(90,60,20,.2); }
[data-theme="light"] .f7p-pips i[style] { box-shadow: 0 0 0 2px #fff; }
[data-theme="light"] .f7p-none { border-color: rgba(90,60,20,.2); }
[data-theme="light"] .f7p-bank b { color: #8f5700; } [data-theme="light"] .f7p-bank b.stayed { color: #17702f; } [data-theme="light"] .f7p-bank b.frozen { color: #1d6a9c; } [data-theme="light"] .f7p-bank b.busted { color: #d42a35; }
[data-theme="light"] .f7p-risk i { background: rgba(90,60,20,.1); }
[data-theme="light"] .f7p-risk.h1 b { color: #17702f; } [data-theme="light"] .f7p-risk.h2 b { color: #8a6500; } [data-theme="light"] .f7p-risk.h3 b { color: #b45309; } [data-theme="light"] .f7p-risk.h4 b { color: #d42a35; }
[data-theme="light"] .f7p-opp em { color: #8f5700; } [data-theme="light"] .f7p-opp em.bust { color: #c41f2b; } [data-theme="light"] .f7p-opp em.stayed { color: #17702f; } [data-theme="light"] .f7p-opp em.frozen { color: #1d6a9c; }
[data-theme="light"] .f7p-stamp { background: rgba(255,255,255,.6); }
[data-theme="light"] .f7p-stamp.bust { color: #d42a35; } [data-theme="light"] .f7p-stamp.frozen { color: #2a7fb8; }
[data-theme="light"] .f7p-me.s-frozen .f7p-row::after { background: linear-gradient(180deg, rgba(190,230,252,.55), rgba(150,205,240,.35)); box-shadow: inset 0 0 0 2px rgba(120,190,235,.6), inset 0 0 24px rgba(255,255,255,.7); }
[data-theme="light"] .f7p-dock { background: linear-gradient(to top, rgba(242,233,215,.99) calc(100% - 14px), rgba(242,233,215,0)); }
[data-theme="light"] .f7p-rbig { color: #f0682a; text-shadow: 3px 4px 0 #3d1504; }
[data-theme="light"] .f7p-rbig.busted { color: #d42a35; }
[data-theme="light"] .f7p-st i { background: linear-gradient(90deg, var(--c) var(--w), rgba(90,60,20,.1) var(--w)); }

/* Pop-ups end above the bottom bar, so their buttons stay tappable; a tall one scrolls instead
   of running off the top. */
.f7p .ndp-ov { padding-bottom: calc(var(--safe-bottom) + 12px); }
.f7p .ndp-pick { max-height: 100%; overflow-y: auto; }
.f7p .ndp-sheet { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); }

/* buttons: a deeper blue (white on it is 5.6:1) and a readable "Close" */
.f7p, .f7p-round { --blue: #0066d6; }
.f7p .btn.ghost, .f7p-round .btn.ghost { color: var(--link); }
.f7p .ndp-sheet.pin .ndp-sx { min-height: 72px; }

/* the round's end: the next-round button stays on screen */
.f7p-round .btn.primary { position: sticky; bottom: calc(var(--safe-bottom) + 8px); z-index: 5; box-shadow: 0 0 0 8px var(--bg, transparent), 0 8px 20px rgba(0,0,0,.25); }

/* short phones (a 568px SE, a 664px browser window): your cards, your total and the buttons all fit */
@media (max-height: 700px) {
  .f7p { gap: 8px; }
  .f7p-bar { min-height: 0; padding: 8px 12px; }
  .f7p-bar.me b, .f7p-bar.flip b { font-size: 26px; }
  .f7p-bar.me .tclock { width: 50px; height: 50px; }
  .f7p-me { padding: 8px 10px 10px; gap: 6px; }
  .f7p-risk { display: none; } /* the bar says the chance to bust */
  .f7p-bank b { font-size: 36px; }
  .f7p-dock { padding: 8px 12px calc(var(--safe-bottom) + 8px); }
  .f7p-dock button { min-height: 64px; border-radius: 18px; }
  .f7p-dock button b { font-size: 30px; }
  .f7p-dock button small { font-size: 14px; }
  .f7p.docked { padding-bottom: calc(var(--safe-bottom) + 92px); }
  .f7p-rbig { font-size: 52px; }
  .f7p-round { gap: 8px; padding-top: 0; }
  .f7p-st { padding: 4px 10px; }
  .f7p .ndp-sheet { padding: 12px; gap: 8px; }
  .f7p .ndp-sheet .btn { min-height: 48px; font-size: 16px; }
  .f7p-big { --cw: 76px; }
}
@media (max-height: 600px) {
  .f7p-big { --cw: 56px; }
  /* the round's end on a 568px phone: the standings sit clear of the next-round button */
  .f7p-round { gap: 4px; }
  .f7p-rbig { font-size: 42px; }
  .f7p-rcards { padding: 0; }
  .f7p-rtot { font-size: 16px; }
  .f7p-rtot b { font-size: 22px; }
  .f7p-st { padding: 3px 10px; }
  .f7p-stand { gap: 4px; padding-bottom: 6px; }
}

/* /shared/notwavelength.css */
/* Read My Mind: the dial, the spectrum cards and the table, shared by the TV and the
   phones. The device looks the same in light and dark (it is a thing on the table);
   the table around it changes. */
:root {
  --wl-font: "Futura", "Avenir Next", "Century Gothic", "Josefin Sans", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  --wl-body: #10506c; --wl-body-2: #0b3b52; --wl-navy: #151b47;
  --wl-west: #0f9b8e; --wl-west-2: #0a6b63; --wl-east: #7a4fd6; --wl-east-2: #5431a3;
  --wl-gold: #ffb800;
}

/* ---- the dial ---- */
.wl-dial { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.wl-dial .wl-knurl { fill: #efe2c6; stroke: #cdb98f; stroke-width: 3; }
.wl-dial .wl-knurl-in { fill: none; stroke: rgba(120,95,50,.25); stroke-width: 4; }
.wl-dial .wl-stars { fill: #f4ecd9; }
.wl-dial .wl-ticks { stroke: rgba(244,236,217,.55); stroke-linecap: round; }
.wl-dial .wl-bnum { font: 800 38px var(--wl-font); fill: rgba(25,20,30,.78); text-anchor: middle; dominant-baseline: central; }
.wl-dial .wl-plate { fill: var(--wl-body); }
.wl-dial .wl-screen, .wl-dial .wl-wheel { transform-box: view-box; transform-origin: 600px 600px; }
.wl-dial .wl-screen { transition: transform 1.3s cubic-bezier(.62,.04,.24,1); }
.wl-dial .wl-screen.open { transform: rotate(-180deg); }
.wl-dial .wl-screen.instant { transition: none; }
.wl-dial .wl-screen.peek { transform: rotate(-12deg); transition-duration: .35s; }
.wl-dial .wl-wheel.spin { animation: wl-spin 1.7s cubic-bezier(.15,.7,.25,1) both; }
@keyframes wl-spin { from { transform: rotate(0deg); } to { transform: rotate(612deg); } }
.wl-dial .wl-lock { display: none; }
.wl-dial.locked .wl-lock { display: inline; }
.wl-dial.noneedle .wl-needle { display: none; }
.wl-dial .wl-target { transition: opacity .3s; }

/* ---- spectrum cards: two colours, an arrow to each end ---- */
.wlcard { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; aspect-ratio: 3.4 / 1; border-radius: 10px; overflow: hidden; container-type: inline-size; font-family: var(--wl-font); color: #1c1a20; box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.06); user-select: none; -webkit-user-select: none; }
.wlcard .wlc-half { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; padding: 2cqw 3.4cqw; text-align: center; min-width: 0; position: relative; }
.wlcard .wlc-l { background: linear-gradient(170deg, color-mix(in srgb, var(--l) 88%, #fff), var(--l)); }
.wlcard .wlc-r { background: linear-gradient(170deg, color-mix(in srgb, var(--r) 88%, #fff), var(--r)); }
.wlcard .wlc-half::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px); pointer-events: none; }
.wlcard .wlc-arrow { font-size: 6.5cqw; line-height: .6; font-weight: 400; opacity: .8; }
.wlcard b { font-weight: 700; line-height: 1.08; font-size: clamp(9px, min(6.4cqw, calc(120cqw / var(--len, 10))), 200px); letter-spacing: -.005em; overflow-wrap: break-word; }
.wlcard.back { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%), repeating-linear-gradient(90deg, #e9a63a 0 8%, #e4643f 8% 16%, #6fc0b4 16% 24%, #9a8bb5 24% 32%, #f1e6cf 32% 40%); display: flex; align-items: center; justify-content: center; }
.wlcard .wlc-back { display: flex; gap: 3cqw; }
.wlcard .wlc-back i { width: 7cqw; height: 7cqw; border-radius: 50%; background: rgba(21,27,71,.85); box-shadow: 0 0 0 1.2cqw rgba(255,255,255,.7); }

/* ---- the table: a living room at night, or a sunny afternoon ---- */
.tbl-psychic {
  --tbl-edge: #080b1f; --tbl-rim: #2b3466; --tbl-glow: rgba(255,230,180,.08);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 9%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 33% 71%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 91% 63%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 56% 88%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(ellipse 55% 50% at 50% 46%, rgba(255,214,160,.10), transparent 70%),
    radial-gradient(ellipse 40% 70% at 0% 60%, rgba(15,155,142,.20), transparent 70%),
    radial-gradient(ellipse 40% 70% at 100% 60%, rgba(122,79,214,.24), transparent 70%),
    linear-gradient(180deg, #161b3f 0%, #10142f 60%, #0b0e22 100%);
}
[data-theme="light"] .tbl-psychic {
  --tbl-edge: #ffffff; --tbl-rim: #d8d2c4; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(ellipse 40% 70% at 0% 60%, rgba(15,155,142,.13), transparent 70%),
    radial-gradient(ellipse 40% 70% at 100% 60%, rgba(122,79,214,.13), transparent 70%),
    repeating-linear-gradient(0deg, rgba(90,70,40,.025) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #ece8df 0%, #e2ddd2 100%);
}

/* /phone/games/notwavelength.css */
/* Read My Mind on the phones: the team picker, a big what-to-do bar, the dial you
   drag, the card, LEFT and RIGHT. Dark rules first, then the light theme. */
.wlp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.wlp [hidden] { display: none !important; }
.wlp .t-west, .wlp.t-west, .wlp-moment.t-west, .wlp-team.t-west { --tc: var(--wl-west); --tc2: var(--wl-west-2); }
.wlp .t-east, .wlp.t-east, .wlp-moment.t-east, .wlp-team.t-east { --tc: var(--wl-east); --tc2: var(--wl-east-2); }
.wlp .t-coop, .wlp.t-coop, .wlp-moment.t-coop, .wlp-coopbox { --tc: #e5533d; --tc2: #a8321f; }
.wlp .avatar.sm { width: 26px; height: 26px; font-size: 14px; }

/* ---- picking teams ---- */
.wlp-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 2px; }
.wlp-lword { position: relative; font-family: var(--wl-font); font-size: 30px; font-weight: 500; letter-spacing: .16em; line-height: 1; padding-bottom: 7px; }
.wlp-lword::after { content: ''; position: absolute; left: 2px; right: .16em; bottom: 0; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #eba62f 0 20%, #e5533d 20% 40%, #4f7d9c 40% 60%, #e5533d 60% 80%, #eba62f 80%); }
.wlp-hint { text-align: center; color: var(--label-2); font-size: 15px; }
.wlp-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlp-team, .wlp-coopbox { text-align: left; border: 3px solid transparent; border-radius: 20px; padding: 0 0 10px; background: rgba(0,0,0,.3); color: var(--text); display: flex; flex-direction: column; gap: 8px; overflow: hidden; cursor: pointer; min-height: 200px; transition: transform .12s, border-color .2s; }
.wlp-coopbox { cursor: default; min-height: 0; }
.wlp-team:active { transform: scale(.98); }
.wlp-team.mine { border-color: var(--wl-gold); box-shadow: 0 0 0 4px rgba(255,184,0,.25), 0 10px 26px rgba(0,0,0,.3); }
.wlp-tn { font-family: var(--wl-font); font-size: 21px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--tc), var(--tc2)); padding: 9px 12px; display: flex; align-items: center; }
.wlp-tn i { font-style: normal; margin-left: auto; font-size: 15px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px; }
.wlp-mems { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; flex: 1; }
.wlp-mem { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; min-width: 0; flex-wrap: wrap; }
.wlp-mem em { font-style: normal; font-size: 14px; color: var(--label-2); font-weight: 600; }
.wlp-firsttag { font-size: 14px; font-weight: 900; letter-spacing: .06em; background: #c23a26; color: #fff; padding: 2px 6px; border-radius: 999px; }
.wlp-empty { color: var(--label-3); font-size: 14px; }
.wlp-join { margin: 0 10px; text-align: center; font-size: 14px; font-weight: 800; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 22%, transparent); }
.wlp-team.mine .wlp-join { background: var(--wl-gold); color: #1b1b1b; }
.wlp-firstbtn { background: linear-gradient(120deg, #ff8a6b, #e5533d); color: #fff; font-weight: 800; }
.wlp-explain { font-size: 14px; color: var(--label-2); line-height: 1.4; text-align: center; padding: 0 6px; }
.wlp-explain b { color: var(--text); }
.wlp-lead { background: rgba(0,0,0,.3); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wlp-ltitle { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.wlp-lrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.wlp-coopbtn { font-size: 15px; }
.wlp-prob { font-size: 15px; color: var(--label-2); line-height: 1.35; }
.wlp-prob.no { color: #ff8a7a; font-weight: 700; }
.wlp-wait { text-align: center; color: var(--label-2); font-size: 15px; padding: 8px; }

/* ---- the bar: what to do now ---- */
.wlp-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; min-height: 64px; }
.wlp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wlp-bar b { font-family: var(--wl-font); font-size: 24px; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.wlp-bar span { font-size: 15px; font-weight: 700; }
.wlp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: wlp-pop .35s cubic-bezier(.2,1.4,.4,1) both, wlp-throb 1.6s ease-in-out .4s infinite; }
.wlp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.wlp-bar.me .tclock.urgent .fg { stroke: #fff; }
.wlp-bar .tclock { width: 58px; height: 58px; }
.wlp-bar .tclock b { font-size: 22px; }
.wlp-bar.end { flex-direction: column; align-items: flex-start; gap: 4px; background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; animation: wlp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-bar.end b { font-size: 30px; }
.wlp-bar.idle { background: rgba(0,0,0,.3); color: var(--label-2); min-height: 52px; }
.wlp-bar.idle .wlp-txt { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; }
.wlp-bar.idle span b { font-family: var(--font); font-size: 15px; color: var(--tc, var(--text)); }
.wlp-bar .wlp-cd { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text); }
.wlp-bar .wlp-cd .countdown { font-size: 18px; min-width: 0; }
.wlp-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tc, #888); box-shadow: 0 0 10px var(--tc, #888); }
@keyframes wlp-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes wlp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.wlp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: wlp-frame 1.6s ease-in-out infinite; }
@keyframes wlp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.wlp-scores { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--label-2); font-weight: 600; }
.wlp-sc b { font-family: var(--wl-font); font-size: 24px; font-weight: 800; color: var(--tc, var(--text)); margin: 0 3px; vertical-align: -2px; }
.wlp-me { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tc, #888) 24%, transparent); color: var(--text); }
.wlp-sd { flex-basis: 100%; text-align: center; font-size: 14px; font-weight: 900; letter-spacing: .2em; color: #fff; background: #e5383b; border-radius: 999px; padding: 3px; }

/* ---- the main area ---- */
.wlp-main { display: flex; flex-direction: column; gap: 10px; }
.wlp-dialbox { position: relative; width: 100%; margin-top: 4px; }
.wlp-dialbox .wl-dial { filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.wlp-dialbox.can { touch-action: none; cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wlp-dialbox.can::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 90%; height: 6px; transform: translateX(-50%); border-radius: 3px; background: var(--wl-gold); opacity: .0; transition: opacity .2s; }
.wlp-dialbox.grab { cursor: grabbing; }
.wlp-dialbox.grab::after { opacity: .9; }
.wlp-dialbox.psy::before { content: 'ONLY YOU SEE THIS'; position: absolute; z-index: 2; right: 0; top: -2px; font-size: 14px; font-weight: 900; letter-spacing: .06em; background: #c23a26; color: #fff; padding: 3px 8px; border-radius: 999px; }
.wlp-card { border-radius: 10px; }
.wlp-cluebig { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fffdf8; color: #1b1a22; border-radius: 18px; padding: 8px 14px 10px; box-shadow: 0 8px 20px rgba(0,0,0,.25); text-align: center; animation: wlp-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-cluebig small { font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--tc); }
.wlp-cluebig b { font-family: var(--wl-font); font-size: 26px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.wlp-q { font-family: var(--wl-font); font-size: 22px; font-weight: 700; text-align: center; margin-top: 4px; }
.wlp-note, .wlp-tip { font-size: 14px; color: var(--label-2); text-align: center; line-height: 1.4; padding: 0 8px; }
.wlp-side { display: block; width: 100%; padding: 0; border: none; background: none; border-radius: 12px; cursor: pointer; transition: transform .12s; }
.wlp-side:active { transform: scale(.97); }
.wlp-side .wlcard { box-shadow: 0 0 0 3px rgba(255,255,255,.65), 0 10px 22px rgba(0,0,0,.35); }
.wlp-side.picked .wlcard { box-shadow: 0 0 0 4px var(--wl-gold), 0 10px 22px rgba(0,0,0,.35); }
.wlp-compose { display: flex; gap: 8px; }
.wlp-compose input { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; }
.wlp-compose .btn { width: auto; flex: none; padding: 0 22px; }
.wlp-hint { transition: color .2s; }
#wlp-hint { font-size: 14px; color: var(--label-2); text-align: left; padding: 0 2px; line-height: 1.35; }
#wlp-hint.warn { color: #ffb36b; font-weight: 700; }
.wlp-rules { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wlp-rules span { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.wlp-poker { text-align: center; font-size: 15px; font-weight: 800; color: #fff; background: #c23a26; border-radius: 14px; padding: 10px 12px; }
.wlp-waitbox { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; color: var(--label-2); padding: 6px; }
.wlp-waitbox b { color: var(--text); }
.wlp-dots { display: inline-flex; gap: 4px; margin-left: 6px; }
.wlp-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: wlp-dot 1.2s ease-in-out infinite; }
.wlp-dots i:nth-child(2) { animation-delay: .2s; } .wlp-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes wlp-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.wlp-mover { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--label-2); }
.wlp-mover:empty { display: none; }
/* inside the dial box, in the empty top-left corner, so it never moves the dial */
.wlp-dialbox .wlp-mover { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; background: var(--bg-2); border-radius: 999px; padding: 2px 10px 2px 3px; box-shadow: 0 0 0 1px var(--sep); }
.wlp-mover .avatar { width: 24px; height: 24px; font-size: 12px; }
.wlp-mover b { color: var(--text); }
.wlp-act { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.wlp-nudge { height: 56px; border: none; border-radius: 14px; background: var(--bg-3); color: var(--text); font-size: 30px; font-weight: 700; line-height: 1; cursor: pointer; }
.wlp-nudge:active { transform: scale(.95); }
.wlp-lock { background: linear-gradient(180deg, #e2384a, #b81d31); color: #fff; font-weight: 800; font-size: 19px; min-height: 56px; box-shadow: 0 8px 20px rgba(216,40,60,.35); }
.wlp-lr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlp-lrbtn { min-height: 104px; border: none; border-radius: 18px; background: var(--bg-3); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform .1s, background .2s, box-shadow .2s; }
.wlp-lrbtn b { font-family: var(--wl-font); font-size: 26px; font-weight: 800; letter-spacing: .06em; }
.wlp-lrbtn:active { transform: scale(.97); }
.wlp-lrbtn.on { background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; box-shadow: 0 0 0 3px var(--wl-gold), 0 10px 24px rgba(0,0,0,.3); }
.wlp-lrv { display: flex; gap: 3px; min-height: 22px; flex-wrap: wrap; justify-content: center; }
.wlp-lrv .avatar { width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
.wlp-votes { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 800; color: var(--label-2); }
.wlp-votes:empty { display: none; }
.wlp-votes span { display: inline-flex; align-items: center; gap: 4px; }
.wlp-votes .avatar { width: 24px; height: 24px; font-size: 12px; }
.wlp-result { text-align: center; animation: wlp-pop .4s 1.3s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-rhead { display: inline-block; font-family: var(--wl-font); font-size: 26px; font-weight: 800; padding: 8px 20px; border-radius: 999px; background: #3a3a44; color: #fff; }
.wlp-rhead.z4 { background: #4f7d9c; } .wlp-rhead.z3 { background: #e5533d; } .wlp-rhead.z2 { background: #eba62f; color: #1b1a22; }
.wlp-rsub { font-size: 14px; color: var(--label-2); margin-top: 6px; font-weight: 600; }
.wlp-final { text-align: center; }
.wlp-fbig { font-family: var(--wl-font); font-size: 72px; font-weight: 800; line-height: 1; }
.wlp-fsub { font-size: 14px; color: var(--label-2); font-weight: 600; }
.wlp-rating { font-family: var(--wl-font); font-size: 22px; font-weight: 700; margin-top: 6px; }
.wlp-fscore { display: flex; align-items: center; justify-content: center; gap: 16px; }
.wlp-fscore span { display: flex; flex-direction: column; align-items: center; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--label-2); }
.wlp-fscore b { font-family: var(--wl-font); font-size: 60px; font-weight: 800; line-height: 1; color: var(--tc); }
.wlp-fscore i { font-style: normal; font-size: 40px; color: var(--label-3); }
.wlp-log { font-size: 14px; color: var(--label-3); text-align: center; line-height: 1.4; }
.wlp-log div:last-child { color: var(--label-2); }

/* ---- the lock-in sheet ---- */
.wlp-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; animation: wlp-fade .2s both; }
@keyframes wlp-fade { from { opacity: 0; } }
.wlp-sheet { width: 100%; max-width: 520px; margin: 0 auto; background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 20px 16px calc(var(--safe-bottom) + 18px); display: flex; flex-direction: column; gap: 10px; animation: wlp-up .28s cubic-bezier(.2,1.1,.4,1) both; }
@keyframes wlp-up { from { transform: translateY(100%); } }
.wlp-sq { font-family: var(--wl-font); font-size: 24px; font-weight: 800; text-align: center; }
.wlp-ssub { font-size: 14px; color: var(--label-2); text-align: center; margin-bottom: 4px; }
.wlp-lockyes { background: linear-gradient(180deg, #e2384a, #b81d31); }

/* ---- the big moments ---- */
.wlp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--tc, #4f7d9c) 60%, transparent), rgba(5,8,24,.7) 75%); animation: wlp-moment 3s ease both; }
.wlp-moment.k-bullseye { background: radial-gradient(circle, rgba(79,125,156,.75), rgba(5,8,24,.72) 75%); }
.wlp-moment.k-sudden { background: radial-gradient(circle, rgba(229,56,59,.7), rgba(5,8,24,.75) 75%); }
@keyframes wlp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.wlp-moment .big { font-family: var(--wl-font); font-size: 54px; font-weight: 900; line-height: .95; color: #fff; text-align: center; padding: 0 14px; text-shadow: 4px 4px 0 var(--tc, #e5533d), 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-5deg); animation: wlp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.wlp-moment.k-bullseye .big { text-shadow: 4px 4px 0 #e5533d, 8px 8px 0 #eba62f; }
@keyframes wlp-slam { from { transform: rotate(-5deg) scale(2.2); opacity: 0; } }
.wlp-moment .who { background: rgba(0,0,0,.7); color: #fff; font-size: 16px; font-weight: 800; padding: 8px 16px; border-radius: 999px; max-width: 90vw; text-align: center; }
.wlp-mbands { display: flex; width: 170px; height: 70px; border-radius: 0 0 85px 85px; overflow: hidden; transform: rotate(180deg); }
.wlp-mbands i { flex: 1; } .wlp-mbands .b2 { background: #eba62f; } .wlp-mbands .b3 { background: #e5533d; } .wlp-mbands .b4 { background: #4f7d9c; }

/* ---- light theme ---- */
[data-theme="light"] .wlp-team, [data-theme="light"] .wlp-coopbox, [data-theme="light"] .wlp-lead { background: rgba(255,255,255,.82); box-shadow: 0 6px 18px rgba(60,40,10,.08); }
[data-theme="light"] .wlp-team.mine { border-color: #f0a800; }
[data-theme="light"] .wlp-bar.idle { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .wlp-dialbox .wl-dial { filter: drop-shadow(0 8px 14px rgba(60,40,10,.22)); }
[data-theme="light"] .wlp-cluebig { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 20px rgba(60,40,10,.14); }
[data-theme="light"] .wlp-nudge, [data-theme="light"] .wlp-lrbtn { background: #fff; box-shadow: 0 4px 12px rgba(30,40,80,.1); }
[data-theme="light"] .wlp-lrbtn.on { background: linear-gradient(135deg, var(--tc), var(--tc2)); }
[data-theme="light"] .wlp-rules span { background: rgba(255,255,255,.85); }
[data-theme="light"] #wlp-hint.warn { color: #c25a00; }
[data-theme="light"] .wlp-prob.no { color: #c0321f; }
[data-theme="light"] .wlp-sheet { background: #fff; }

/* ---- phone-fit: the control for this step sits above the dial, never under the bottom bar ---- */
.wlp-leadact { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: calc(var(--safe-bottom) + 8px); z-index: 4; background: var(--bg-2); border-radius: 16px; padding: 10px; box-shadow: 0 0 0 1px var(--sep), 0 -6px 16px rgba(0,0,0,.25); }
.wlp-ltitle { margin-top: 4px; }
[data-theme="light"] .wlp-leadact { background: #fff; }
.wlp-q.sm { font-size: 18px; margin-top: 0; }
.wlp-lr .wlp-lrbtn { min-height: 88px; }
.wlp-act { margin-top: 2px; }
.wlp-compose { margin-top: 2px; }
.wlp-wait, .wlp-explain { font-size: 15px; }
/* short phones: squeeze the header so the dial still shows under the buttons */
@media (max-height: 700px) {
  .wlp-play { gap: 6px; }
  .wlp-main { gap: 6px; }
  .wlp-bar { min-height: 52px; padding: 8px 12px; }
  .wlp-bar b { font-size: 21px; }
  .wlp-bar .tclock { width: 46px; height: 46px; }
  .wlp-bar .tclock b { font-size: 18px; }
  .wlp-cluebig { padding: 4px 12px 6px; }
  .wlp-cluebig b { font-size: 22px; }
  .wlp-nudge, .wlp-lock { height: 48px; min-height: 48px; }
  .wlp-act { grid-template-columns: 48px 1fr 48px; }
  .wlp-dialbox { margin-top: 0; }
  .wlp-log { display: none; }
}

/* ---- the card on a phone: the two ends of the scale, always readable, above the dial ---- */
.wlp .wlp-card { aspect-ratio: auto; min-height: 44px; }
.wlp .wlp-card .wlc-half { flex-direction: row; gap: 6px; padding: 5px 8px; }
.wlp .wlp-card .wlc-r .wlc-arrow { order: 2; }
.wlp .wlp-card .wlc-arrow { font-size: 16px; line-height: 1; flex: none; }
.wlp .wlp-card b { font-size: 15px; line-height: 1.1; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.wlp-dialbox { margin-inline: auto; }
.wlp-startwrap { position: relative; display: block; }
.wlp-startwrap .btn { width: 100%; }
.wlp-why { position: absolute; inset: 0; z-index: 2; }
.wlp-lrow { grid-template-columns: 1fr 1fr; }
.wlp-lrow .btn { padding: 10px 8px; white-space: nowrap; }
.wlp-result { min-height: 0; }
@media (max-height: 700px) {
  /* leader's box at the bottom of the team picker: compact, and the team boxes only as tall as their members */
  .wlp-team { min-height: 0; }
  /* leader's box goes up under the title instead of lying over the team lists */
  .wlp-pick > * { order: 5; }
  .wlp-pick > .wlp-logo { order: 0; }
  .wlp-pick > .wlp-leadact { order: 1; position: static; }
  .wlp-pick > .wlp-hint { order: 2; }
  .wlp-pick > .wlp-teams, .wlp-pick > .wlp-coopbox { order: 3; }
  .wlp-leadact { padding: 8px; gap: 6px; }
  .wlp-leadact .btn { min-height: 48px; }
  .wlp-prob { font-size: 14px; line-height: 1.3; }
  .wlp-sfx { display: none; }
  .wlp-q.sm { display: none; }
  .wlp-lr .wlp-lrbtn { min-height: 88px; gap: 4px; }
  .wlp-rhead { font-size: 20px; padding: 4px 12px; }
  /* while it is your move the scores can wait: the free height goes to the dial */
  .wlp-play.mine .wlp-scores { display: none; }
}

/* /shared/notrummikub.css */
/* Rummy Tiles, shared by the TV and the phones: the tiles, the joker, tile backs,
   the tile wordmark, the hourglass and the felt. Size a tile with --rkw (its width).
   Dark first, then the light overrides at the end. */

/* ---- a tile: thick cream plastic, the number engraved in its colour ---- */
.rkt {
  --w: var(--rkw, 40px); --tc: #1f1d1a;
  position: relative; flex: none; box-sizing: border-box;
  width: var(--w); height: calc(var(--w) * 1.36);
  border-radius: calc(var(--w) * .14);
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--w) * .1);
  color: var(--tc);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.85), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #fffaf0 0%, #f8f0dd 58%, #efe3c7 100%);
  box-shadow:
    inset 0 calc(var(--w) * -.075) 0 #d8c59c,
    inset 0 calc(var(--w) * -.09) 0 rgba(255,255,255,.55),
    inset 0 0 0 1px rgba(140,105,55,.22),
    0 calc(var(--w) * .06) calc(var(--w) * .12) rgba(30,20,5,.38);
  user-select: none; -webkit-user-select: none;
}
.rkt b {
  display: block; font-family: "Arial Black", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900; font-size: calc(var(--w) * .7); line-height: 1; letter-spacing: -.03em;
  text-shadow: 0 calc(var(--w) * -.012) 0 rgba(0,0,0,.25), 0 calc(var(--w) * .02) 0 rgba(255,255,255,.8);
}
.rkt.two b { font-size: calc(var(--w) * .55); letter-spacing: -.08em; margin-top: calc(var(--w) * .08); text-indent: -.06em; }
.rkt i {
  display: block; width: calc(var(--w) * .22); height: calc(var(--w) * .22); border-radius: 50%;
  border: calc(var(--w) * .045) solid currentColor; margin-top: auto; margin-bottom: calc(var(--w) * .15); opacity: .95;
}
/* every colour has its own mark under the number, so the four colours never rely on colour alone:
   black = ring, red = triangle, blue = square, orange = diamond */
.rkt.c-r i { border: 0; border-radius: 0; background: currentColor; clip-path: polygon(50% 4%, 98% 94%, 2% 94%); }
.rkt.c-b i { border: 0; border-radius: calc(var(--w) * .02); background: currentColor; width: calc(var(--w) * .2); height: calc(var(--w) * .2); }
.rkt.c-o i { border: 0; border-radius: 0; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); width: calc(var(--w) * .26); height: calc(var(--w) * .26); }
.rkt.c-k { --tc: #1f1d1a; }
.rkt.c-r { --tc: #d3242c; }
.rkt.c-b { --tc: #1d5ec4; }
.rkt.c-o { --tc: #a85600; }
.rkt.joker { padding: calc(var(--w) * .08) calc(var(--w) * .06) calc(var(--w) * .14); justify-content: center; }
.rkt .rkj { width: 100%; height: 100%; display: block; }
.rkt.joker em {
  position: absolute; right: calc(var(--w) * -.12); top: calc(var(--w) * -.14);
  min-width: calc(var(--w) * .42); height: calc(var(--w) * .42); padding: 0 calc(var(--w) * .06); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-style: normal;
  font: 900 calc(var(--w) * .26)/1 "Arial Black", "Avenir Next", Arial, sans-serif; color: #fff; background: #3a3a3c;
  box-shadow: 0 0 0 calc(var(--w) * .035) #fffaf0, 0 2px 6px rgba(0,0,0,.3);
}
.rkt.joker em.c-k { background: #1f1d1a; } .rkt.joker em.c-r { background: #d3242c; } .rkt.joker em.c-b { background: #1d5ec4; } .rkt.joker em.c-o { background: #a85600; }

/* ---- face down ---- */
.rkt.back { padding: 0; align-items: center; justify-content: center; }
.rkt.back span { width: 62%; height: 70%; border-radius: calc(var(--w) * .08); box-shadow: inset 0 0 0 calc(var(--w) * .035) rgba(160,125,70,.28), inset 0 calc(var(--w) * .03) 0 rgba(255,255,255,.6); background: repeating-linear-gradient(45deg, rgba(160,125,70,.07) 0 2px, transparent 2px 5px); }

/* ---- the wordmark: letters on tiles ---- */
.rkw { margin: 0 1px; padding-top: calc(var(--w) * .2); }
.rkw b { font-size: calc(var(--w) * .66); letter-spacing: 0; }
.rkw-gap { display: inline-block; width: 10px; }

/* ---- the hourglass ---- */
.rk-glass { position: relative; display: inline-flex; align-items: center; gap: 10px; --f: 1; }
.rk-glass svg { width: 64px; height: 96px; overflow: visible; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.rk-glass .cap { fill: #6e4524; }
.rk-glass .post { fill: #94643a; }
.rk-glass .bulb { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.75); stroke-width: 1.6; }
.rk-glass .shine { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2; stroke-linecap: round; }
.rk-glass .sand { fill: #e7ad45; }
.rk-glass .sand.top { transform: translateY(calc((1 - var(--f)) * 35px)); }
.rk-glass .sand.bot { transform: translateY(calc(var(--f) * 36px)); }
.rk-glass .stream { fill: #e7ad45; animation: rk-stream .35s linear infinite; }
.rk-glass.out .stream { opacity: 0; }
@keyframes rk-stream { 50% { opacity: .55; } }
.rk-glass b { font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.rk-glass.urgent .sand, .rk-glass.urgent .stream { fill: #ff5a36; }
.rk-glass.urgent .bulb { stroke: #ff7a5c; }
.rk-glass.urgent b { color: #ff453a; animation: rk-urgent .5s ease-in-out infinite alternate; }
@keyframes rk-urgent { to { transform: scale(1.12); } }

/* ---- the felt: deep green at night, pale sage by day ---- */
.tbl-rummy {
  --tbl-edge: #0b1f17; --tbl-rim: #7a5b34; --tbl-glow: rgba(190,255,220,.08);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(90,180,130,.20), transparent 70%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #1d4b38 0%, #173f2f 60%, #123426 100%);
}
[data-theme="light"] .tbl-rummy {
  --tbl-edge: #f8f3e7; --tbl-rim: #b89565; --tbl-glow: rgba(255,255,255,.4);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255,255,255,.5), transparent 70%),
    repeating-radial-gradient(circle at 30% 40%, rgba(30,80,50,.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(45deg, rgba(30,80,50,.025) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #d9eadf 0%, #cde2d4 60%, #c1dac9 100%);
}

/* ---- light theme ---- */
[data-theme="light"] .rkt { box-shadow: inset 0 calc(var(--w) * -.075) 0 #d8c59c, inset 0 calc(var(--w) * -.09) 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(140,105,55,.26), 0 calc(var(--w) * .05) calc(var(--w) * .1) rgba(40,60,45,.28); }
[data-theme="light"] .rk-glass .bulb { fill: rgba(255,255,255,.55); stroke: rgba(80,60,30,.45); }
[data-theme="light"] .rk-glass .shine { stroke: rgba(255,255,255,.9); }
[data-theme="light"] .rk-glass svg { filter: drop-shadow(0 6px 10px rgba(60,50,20,.22)); }

/* /phone/games/notrummikub.css */
/* Rummy Tiles on phones: the workbench on felt, the rack on a wooden ledge. Dark first, light overrides last. */
body.g-notrummikub { font-family: "Avenir Next", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; }
.rkp { position: relative; display: flex; flex-direction: column; gap: 8px; height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 146px); min-height: 420px; }
.rkp-top { display: flex; flex-direction: column; gap: 6px; flex: none; }

/* whose turn */
.rkp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 7px 12px; min-height: 58px; }
.rkp-tbtext { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.rkp-turnbar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 8px 24px rgba(255,190,0,.42); animation: rkp-pop .35s cubic-bezier(.2,1.4,.4,1) both, rkp-throb 1.6s ease-in-out .4s infinite; }
.rkp-turnbar.me b { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.rkp-turnbar.me span { font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.rkp-turnbar.me:has(.rk-glass.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.rkp-turnbar.me .rk-glass.urgent b { color: #fff; }
.rkp-turnbar.idle { background: rgba(0,0,0,.3); color: var(--label-2); font-size: 15px; }
.rkp-turnbar.idle b { color: var(--text); }
.rkp-turnbar.idle small { font-size: 12px; }
@keyframes rkp-pop { from { transform: scale(.88); opacity: 0; } }
@keyframes rkp-throb { 50% { box-shadow: 0 8px 34px rgba(255,190,0,.7); } }
body.rkp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: rkp-frame 1.6s ease-in-out infinite; }
@keyframes rkp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.rk-glass.ph { gap: 4px; }
.rk-glass.ph svg { width: 28px; height: 42px; filter: none; }
.rk-glass.ph b { font-size: 24px; min-width: 1.4em; text-align: right; }
.rkp-turnbar.me .rk-glass .bulb { fill: rgba(255,255,255,.45); stroke: rgba(60,40,0,.55); }
.rkp-turnbar.idle .rk-glass.ph svg { width: 22px; height: 33px; }
.rkp-turnbar.idle .rk-glass.ph b { font-size: 18px; }

/* the other players */
.rkp-opps { display: flex; gap: 6px; }
.rkp-opp { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.28); border-radius: 999px; padding: 3px 8px 3px 3px; font-size: 13px; font-weight: 700; border: 2px solid transparent; }
.rkp-opp.turn { border-color: #ffb800; }
.rkp-opp.last { border-color: #ff453a; animation: rkp-last 1s ease-in-out infinite; }
@keyframes rkp-last { 50% { box-shadow: 0 0 0 4px rgba(255,69,58,.3); } }
.rkp-opp .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkp-opp .ct { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.rkp-opp .ct i { width: 9px; height: 12px; border-radius: 2px; background: #f6eedb; box-shadow: inset 0 -2px 0 #d8c59c; display: inline-block; }
.rkp-opp .in { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #30d158; }
.rkp-opp .w { font-size: 9px; color: #ffcf3f; letter-spacing: 1px; }

/* the workbench */
.rkp-bench { --rkw: 34px; --pc: #ffb800; position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; border-radius: 18px; background: rgba(0,0,0,.18); box-shadow: inset 0 2px 12px rgba(0,0,0,.28); padding: 6px; -webkit-overflow-scrolling: touch; }
.rkp-sets { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 14px 8px; padding-top: 8px; min-height: calc(100% - 8px); }
.rkp-set { position: relative; display: flex; gap: 3px; padding: 5px; border-radius: 11px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .15s, background .15s, transform .15s; }
.rkp .rkt[data-t] { touch-action: none; cursor: grab; -webkit-touch-callout: none; }
.rkp-set .rkt.mine { box-shadow: inset 0 calc(var(--w) * -.075) 0 #d8c59c, 0 0 0 2px var(--pc), 0 0 10px color-mix(in srgb, var(--pc) 60%, transparent); }
.rkp-set .rkt.sel, .rkp-rack .rkt.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px #0a84ff, 0 8px 16px rgba(0,0,0,.4); z-index: 2; }
.rkp-set .rkt.lifted, .rkp-rack .rkt.lifted { opacity: .25; }
.rkp-set.bad { background: rgba(255,69,58,.16); box-shadow: inset 0 0 0 2px #ff453a; }
.rkp-set.rejected { animation: rkp-shake .5s ease both; box-shadow: inset 0 0 0 3px #ff453a, 0 0 18px rgba(255,69,58,.55); }
@keyframes rkp-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(2px); } }
.rkp-set.locked { opacity: .78; }
.rkp-set.locked .rkt { cursor: not-allowed; filter: saturate(.7); }
.rkp-set.target, .rkp-new.target { box-shadow: inset 0 0 0 2px rgba(10,132,255,.75); animation: rkp-target 1.2s ease-in-out infinite; }
@keyframes rkp-target { 50% { box-shadow: inset 0 0 0 2px rgba(10,132,255,.35); } }
.rkp-set.over, .rkp-new.over { background: rgba(10,132,255,.28); box-shadow: inset 0 0 0 3px #0a84ff; transform: scale(1.03); animation: none; }
.rkp-set.source { box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
body.rkp-dragging .rkp-set:not(.locked):not(.source) { box-shadow: inset 0 0 0 2px rgba(10,132,255,.45); }
.rkp-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); z-index: 3; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.rkp-tag.bad { background: #ff453a; color: #fff; }
.rkp-tag.ok { background: #30d158; color: #06240f; padding: 1px 6px; }
.rkp-lock { position: absolute; right: -6px; top: -9px; font-size: 12px; z-index: 3; pointer-events: none; }
.rkp-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: calc(var(--rkw) * 2 + 13px); height: calc(var(--rkw) * 1.36 + 10px); border-radius: 11px; border: 2px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.75); font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.rkp-new b { font-size: calc(var(--rkw) * .55); line-height: 1; }
.rkp-new span { font-size: 11px; letter-spacing: .04em; }
.rkp-emptytable { width: 100%; text-align: center; color: rgba(255,255,255,.55); font-style: italic; padding: 30px 0; }

/* what to do, what is wrong, what is picked */
.rkp-tools { flex: none; min-height: 34px; display: flex; align-items: center; }
.rkp-status { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--label-2); padding: 0 4px; }
.rkp-status.ok { color: #30d158; }
.rkp-status.warn { color: #ffb36b; }
.rkp-status.bad { color: #fff; background: #d92f26; border-radius: 12px; padding: 7px 10px; animation: rkp-shake .45s ease both; }
.rkp-status.quiet { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rkp-meter { margin-left: auto; position: relative; flex: none; width: 92px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rkp-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: #ffb800; border-radius: inherit; transition: width .25s; }
.rkp-meter.ok i { background: #30d158; }
.rkp-meter b { position: relative; font-size: 12px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.rkp-selline { width: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.rkp-selline > span { flex: 1 1 100%; color: var(--text); font-weight: 600; }
.rkp-selline > span:only-of-type { flex-basis: auto; }
.rkp-mini { min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; padding: 6px 11px; font-size: 13.5px; font-weight: 800; background: rgba(255,255,255,.14); color: var(--text); cursor: pointer; }
.rkp-mini:active { transform: scale(.96); }
.rkp-mini[data-op="cancel"] { margin-left: auto; }

/* the buttons */
.rkp-acts { flex: none; display: grid; grid-template-columns: 54px 54px 1fr 1fr; gap: 6px; }
.rkp-acts:empty { display: none; }
.rkp-acts .btn { min-height: 50px; padding: 6px 8px; font-size: 16px; font-weight: 800; border-radius: 13px; }
.rkp-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 20px !important; line-height: 1; }
.rkp-b small { font-size: 12px; font-weight: 700; margin-top: 2px; opacity: .8; }
.rkp-done.primary { background: #30d158; color: #06240f; }
.rkp-draw.confirm { background: #ff453a; color: #fff; font-size: 14px !important; }

/* the rack */
.rkp-rackwrap { position: relative; flex: none; border-radius: 16px; padding: 6px 6px 8px; background: linear-gradient(180deg, #5a3a22 0%, #4a2f1b 100%); box-shadow: inset 0 2px 0 rgba(255,220,170,.2), 0 10px 24px rgba(0,0,0,.35); }
.rkp-rackwrap.over { box-shadow: inset 0 0 0 3px #0a84ff, 0 10px 24px rgba(0,0,0,.35); }
.rkp-rackhead { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; color: rgba(255,236,210,.92); font-size: 13px; font-weight: 700; }
.rkp-rackinfo { margin-left: auto; flex: 1; min-width: 0; text-align: right; line-height: 1.2; }
.rkp-rackinfo b { color: #fff; }
.rkp-seg { display: inline-flex; background: rgba(0,0,0,.3); border-radius: 9px; padding: 2px; }
.rkp-seg button { white-space: nowrap; border: 0; background: transparent; color: rgba(255,236,210,.9); font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 7px; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.rkp-seg button.on { background: #f6eedb; color: #3a2414; }
.rkp-seg .sw { width: 12px; height: 12px; border-radius: 3px; background: conic-gradient(#1f1d1a 0 25%, #d3242c 0 50%, #1d5ec4 0 75%, #a85600 0); display: inline-block; }
.rkp-rack { --rkw: 36px; display: flex; flex-direction: column; gap: 4px; }
.rkp-shelf { display: flex; gap: 3px; justify-content: center; min-height: calc(var(--rkw) * 1.36 + 6px); padding-bottom: 6px; border-bottom: 5px solid #2e1c0e; border-radius: 0 0 4px 4px; box-shadow: 0 1px 0 rgba(255,220,170,.15); }
.rkp-rack .rkt { transition: transform .15s; }
.rkp-rack .rkt.peeking { transform: translateY(-8px); z-index: 2; }
.rkp-rack .rkt.rk-in { animation: rkp-in .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes rkp-in { from { transform: translateY(-60px) scale(1.2) rotate(-8deg); opacity: 0; } }
.rkp.waiting .rkp-rack { opacity: .85; }
.rkp-peek { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; width: min(88vw, 340px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transform: translate(-50%, 12px) scale(.96); transition: opacity .12s ease, transform .16s ease; }
.rkp-peek.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rkp-peektile { --rkw: 96px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.rkp-peekcap { background: #1c1c1e; color: var(--text); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.rkp-peekcap b { display: block; font-size: 15px; margin-bottom: 2px; }

/* the tile you are dragging */
.rkp-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); will-change: transform; }

/* the end screens */
.rkp-standings { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.rkp-strow { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(0,0,0,.22); font-weight: 700; }
.rkp-strow.win { box-shadow: inset 0 0 0 2px #ffcf3f; }
.rkp-strow .nm { flex: 1; text-align: left; }
.rkp-strow b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rkp-strow .tot { min-width: 64px; text-align: right; font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.rkp-rackempty { min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffe2b0; font-weight: 800; font-size: 16px; padding: 0 20px; }
.rkp-end .rkp-endtiles { display: flex; justify-content: center; --rkw: 40px; margin-bottom: 6px; }
.rkp-up { color: #30d158; } .rkp-down { color: #ff7a5c; }
.rkp-leftover { --rkw: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 340px; }

/* big moments on every phone */
.rkp-moment { --pc: #ffb800; position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--pc) 45%, transparent), rgba(0,0,0,.55) 70%); animation: rkp-moment 2.6s ease both; }
.rkp-moment .big { display: flex; --rkw: 46px; animation: rkp-big .6s cubic-bezier(.2,1.5,.4,1) both; }
.rkp-moment .who { display: flex; align-items: center; gap: 10px; background: var(--pc); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 90vw; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
@keyframes rkp-moment { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rkp-big { from { transform: scale(.4) rotate(-6deg); } }

/* ---- light theme ---- */
[data-theme="light"] .rkp-turnbar.idle { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,70,45,.08); }
[data-theme="light"] .rkp-opp { background: rgba(255,255,255,.8); box-shadow: 0 2px 8px rgba(30,70,45,.07); }
[data-theme="light"] .rkp-opp.turn { border-color: #e9a400; }
[data-theme="light"] .rkp-opp .in { color: #15803d; }
[data-theme="light"] .rkp-opp .w { color: #b45309; }
[data-theme="light"] .rkp-opp .ct i { box-shadow: inset 0 -2px 0 #d8c59c, 0 0 0 1px rgba(0,0,0,.12); }
[data-theme="light"] .rkp-bench { background: rgba(255,255,255,.3); box-shadow: inset 0 2px 10px rgba(30,70,45,.12), inset 0 0 0 1px rgba(30,70,45,.08); }
[data-theme="light"] .rkp-set { background: rgba(30,80,50,.1); box-shadow: inset 0 0 0 1px rgba(30,80,50,.08); }
[data-theme="light"] .rkp-set.bad { background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 2px #e5332a; }
[data-theme="light"] .rkp-new { border-color: rgba(30,80,50,.35); color: rgba(20,60,40,.75); }
[data-theme="light"] .rkp-emptytable { color: rgba(20,60,40,.5); }
[data-theme="light"] .rkp-status.ok { color: #15803d; }
[data-theme="light"] .rkp-status.warn { color: #b45309; }
[data-theme="light"] .rkp-meter { background: rgba(0,0,0,.08); }
[data-theme="light"] .rkp-mini { background: rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(30,70,45,.12); }
[data-theme="light"] .rkp-acts .btn:not(.primary):not(.confirm) { background: #fff; box-shadow: 0 4px 12px rgba(30,70,45,.12); }
[data-theme="light"] .rkp-done.primary { background: #1f9d4c; color: #fff; }
[data-theme="light"] .rkp-peekcap { background: #fff; box-shadow: 0 10px 30px rgba(30,40,80,.2); }
[data-theme="light"] .rkp-strow { background: rgba(255,255,255,.8); box-shadow: 0 2px 8px rgba(30,70,45,.08); }
[data-theme="light"] .rkp-strow.win { box-shadow: inset 0 0 0 2px #e9a400; }
[data-theme="light"] .rkp-up { color: #15803d; } [data-theme="light"] .rkp-down { color: #c2410c; }

/* Short phones: a slimmer top so the workbench keeps some room */
@media (max-height: 700px) {
  .rkp { gap: 6px; }
  .rkp-turnbar { min-height: 46px; padding: 4px 10px; }
  .rkp-turnbar.me b { font-size: 21px; }
  .rkp-acts .btn { min-height: 46px; }
  .rkp-rackhead { padding-bottom: 2px; }
  .rkp-tools { min-height: 26px; }
  .rkp-status:not(.bad):not(.warn) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .rkp-status .rkp-meter { display: inline-flex; float: right; }
  .rkp-opps { gap: 4px; }
  .rkp-opp { padding: 1px 8px 1px 3px; }
}
@media (max-height: 600px) {
  /* 320x568: the other players' tile counts go (the table strip above shows them) so the workbench keeps some room */
  .rkp { min-height: 0; }
  .rkp-bench { min-height: 88px; }
  .rkp-opps { display: none; }
  .rkp-turnbar.me span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rkp-turnbar.me .rkp-tbtext { min-width: 0; }
}

/* the one-row rack (320x568): tiles keep their size and the row slides sideways; up drags a tile out */
.rkp-rack.scrollrow { position: relative; }
.rkp-rack.scrollrow .rkp-shelf { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-top: 6px; }
.rkp-rack.scrollrow .rkp-shelf::-webkit-scrollbar { display: none; }
.rkp-rack.scrollrow .rkt { flex: none; }
.rkp .rkp-rack.scrollrow .rkt[data-t] { touch-action: pan-x; }
.rkp-rack.scrollrow::before, .rkp-rack.scrollrow::after { content: ''; position: absolute; top: 0; bottom: 5px; width: 22px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.rkp-rack.scrollrow::before { left: 0; background: linear-gradient(to right, #4a2f1b, rgba(74,47,27,0)); }
.rkp-rack.scrollrow::after { right: 0; background: linear-gradient(to left, #4a2f1b, rgba(74,47,27,0)); }
.rkp-rack.scrollrow.more-l::before, .rkp-rack.scrollrow.more-r::after { opacity: 1; }

/* /shared/blackjack.css */
/* Blackjack, shared by the TV and the phones: the felt (.tbl-bj, our own teal, deep at night
   and daylight-bright in the light theme) and the play chips (.bjc-*). Dark rules first, then
   [data-theme="light"]. The cards are the shared deck (shared/deck52.css). */
.tbl-bj {
  --tbl-edge: #140d08; --tbl-rim: #6b4a2b; --tbl-glow: rgba(110, 240, 220, .07);
  --bj-print: rgba(243, 230, 196, .88); --bj-gold: #e8c26a; --bj-line: rgba(243, 230, 196, .55);
  background:
    radial-gradient(ellipse 72% 62% at 50% 36%, rgba(64, 190, 175, .2), transparent 70%),
    repeating-radial-gradient(circle at 37% 41%, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 63%, rgba(0, 0, 0, .05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #0e4e4b 0%, #0a3d3b 60%, #072c2b 100%);
}
[data-theme="light"] .tbl-bj {
  --tbl-edge: #f3e7d1; --tbl-rim: #b8925f; --tbl-glow: rgba(255, 255, 255, .22);
  --bj-print: rgba(255, 251, 238, .95); --bj-gold: #ffd23f; --bj-line: rgba(255, 251, 238, .7);
  background:
    radial-gradient(ellipse 72% 62% at 50% 36%, rgba(160, 245, 225, .32), transparent 70%),
    repeating-radial-gradient(circle at 37% 41%, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 63%, rgba(0, 40, 35, .045) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #2a9d8f 0%, #22887b 60%, #1b7368 100%);
}

/* ---- play chips ---- */
.bjc-chip { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.bjc-stack { --chw: 44px; position: relative; display: inline-block; flex: none; vertical-align: bottom; width: var(--chw); height: calc(var(--chw) * .5 + var(--n) * var(--chw) * .1); }
.bjc-stack i {
  position: absolute; left: 0; bottom: calc(var(--k) * var(--chw) * .1 + var(--chw) * .1); width: 100%; height: calc(var(--chw) * .5); border-radius: 50%;
  background:
    radial-gradient(closest-side, #fbf7ee 0 42%, var(--cd) 43% 47%, transparent 48%),
    repeating-conic-gradient(from 11.25deg, var(--cc) 0 33.75deg, var(--cs) 33.75deg 45deg);
  box-shadow: 0 calc(var(--chw) * .1) 0 var(--cd), 0 calc(var(--chw) * .1 + 2px) 3px rgba(0, 0, 0, .35);
}
.bjc-stack i:first-child { box-shadow: 0 calc(var(--chw) * .1) 0 var(--cd), 0 calc(var(--chw) * .12 + 3px) 6px rgba(0, 0, 0, .4); }

/* /phone/games/blackjack.css */
/* Blackjack on the phone. Dark rules first (night felt, dark panels), then the light theme
   (the default: daylight felt, white panels). The felt is .tbl-bj (shared/blackjack.css); the
   cards and the hand fan are the shared deck; sheets and the peek come from the core (.ndp-*). */
.bjp { --bjp-panel: rgba(6, 26, 26, .78); --bjp-text: #f6f0e0; --bjp-text-2: rgba(246, 240, 224, .7); --bjp-line: rgba(246, 240, 224, .14);
  display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; color: var(--bjp-text); }
.bjp.docked { padding-bottom: 430px; }
.bjp b, .bjp .h2 { font-family: var(--display); }

/* the bar: what to do now */
.bjp-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; min-height: 64px; }
.bjp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bjp-bar.me { background: linear-gradient(120deg, #ffd23f, #ffb000); color: #1b1407; box-shadow: 0 10px 30px rgba(255, 180, 0, .45); animation: bjp-throb 1.6s ease-in-out .4s infinite; }
.bjp-bar.me.fresh { animation: bjp-pop .35s cubic-bezier(.2, 1.4, .4, 1) both, bjp-throb 1.6s ease-in-out .4s infinite; }
.bjp-bar.me b { font-size: 26px; font-weight: 900; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.bjp-bar.me span { font-size: 15px; font-weight: 700; }
.bjp-bar.me .tclock { width: 60px; height: 60px; }
.bjp-bar.me .tclock b { font-size: 24px; }
.bjp-bar.me .tclock .bg { stroke: rgba(27, 20, 7, .18); }
.bjp-bar.me .tclock .fg { stroke: #1b1407; filter: none; }
.bjp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.bjp-bar.me .tclock.urgent .fg { stroke: #fff; }
.bjp-bar.idle { background: var(--bjp-panel); color: var(--bjp-text); }
.bjp-bar.idle b { font-size: 18px; font-weight: 800; }
.bjp-bar.idle span { font-size: 14px; color: var(--bjp-text-2); }
.bjp-bar.idle .tclock { width: 46px; height: 46px; }
.bjp-bar.idle .tclock b { font-size: 17px; color: var(--bjp-text); }
.bjp-avs { display: flex; }
.bjp-avs .avatar { margin-right: -8px; box-shadow: 0 0 0 2px #ffd23f; }
@keyframes bjp-pop { from { transform: scale(.86); } }
@keyframes bjp-throb { 50% { box-shadow: 0 10px 40px rgba(255, 180, 0, .75); transform: scale(1.012); } }
body.bjp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255, 196, 0, .45); animation: bjp-frame 1.6s ease-in-out infinite; }
@keyframes bjp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255, 196, 0, .6); } }

/* the dealer */
.bjp-dealer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--bjp-panel); }
.bjp-dealer.on { box-shadow: inset 0 0 0 2px #ffd23f; }
.bjp-dname { font-family: var(--display); font-size: 12px; font-weight: 900; letter-spacing: .24em; color: var(--bjp-text-2); writing-mode: vertical-rl; transform: rotate(180deg); }
.bjp-dcards { display: flex; flex: 1; min-width: 0; }
.bjp-dcards > .d52 + .d52 { margin-left: calc(var(--cw) * -.42); }
.bjp-dtot { font-size: 20px; font-weight: 900; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bjp-dtot.bust { background: #e5484d; color: #fff; } .bjp-dtot.bj { background: #15161f; color: #ffd23f; }

/* the others */
.bjp-opps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.bjp-opps::-webkit-scrollbar { display: none; }
.bjp-opp { flex: none; }
.bjp-opp { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bjp-panel); font-size: 14px; max-width: 100%; }
.bjp-opp.on { box-shadow: inset 0 0 0 2px #ffd23f; }
.bjp-opp .nm { font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bjp-opp em { font-style: normal; color: inherit; font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.bjp-opp em.in, .bjp-opp em.r-win, .bjp-opp em.r-blackjack { background: #157a42; color: #fff; }
.bjp-opp em.r-bust, .bjp-opp em.r-lose, .bjp-opp em.out { background: #e5484d; color: #fff; }
.bjp-opp em.r-push { background: #e9e3d4; color: #15161f; } .bjp-opp em.r-surrender { background: #6b6f80; color: #fff; }
.bjp-opp em.wait { opacity: .7; }

/* split hands */
.bjp-minis { display: flex; justify-content: center; justify-content: safe center; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; }
.bjp-mini { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 8px; border-radius: 12px; background: rgba(0, 0, 0, .28); color: #f6f0e0; }
.bjp-mini small:first-child { font-size: 12px; letter-spacing: .14em; opacity: .7; }
.bjp-mini.on { box-shadow: inset 0 0 0 3px #ffd23f; }
.bjp-mc { display: flex; }
.bjp-mc > .d52 + .d52 { margin-left: calc(var(--cw) * -.55); }
.bjp-mini b { font-size: 15px; font-weight: 900; }
.bjp-mini small { font-size: 12px; font-weight: 800; color: rgba(246, 240, 224, .75); }
.bjp-mini.r-win small:last-child, .bjp-mini.r-blackjack small:last-child { color: #4ade80; } .bjp-mini.r-lose small:last-child, .bjp-mini.r-bust small:last-child { color: #ff8a80; }

/* panels: betting, payouts */
.bjp-panel { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; border-radius: 20px; background: var(--bjp-panel); }
.bjp-panel.center { text-align: center; }
.bjp-panel .p { color: var(--bjp-text-2); }
.bjp-panel .p b { color: var(--bjp-text); }
.bjp-bankbig { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bjp-bankbig small { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--bjp-text-2); }
.bjp-bankbig b { font-size: 46px; font-weight: 900; color: #ffd23f; font-variant-numeric: tabular-nums; }
.bjp-bankbig em { font-style: normal; font-size: 13px; color: var(--bjp-text-2); margin-top: 3px; }
.bjp-spot { position: relative; align-self: center; width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; gap: 4px; }
.bjp-spot > i { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed rgba(246, 240, 224, .55); }
.bjp-spot.locked > i { border-style: solid; border-color: #ffd23f; box-shadow: 0 0 24px rgba(255, 210, 63, .45); }
.bjp-spot .bjc-stack { --chw: 66px; }
.bjp-spot > b { position: relative; font-size: 22px; font-weight: 900; padding: 1px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-variant-numeric: tabular-nums; }
.bjp-spot > .bjp-tap { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); font-size: 15px; font-weight: 700; color: var(--bjp-text-2); }
.bjp-chips { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.bjp-chipbtn { width: 72px; height: 72px; padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; transition: transform .1s; }
.bjp-chipbtn:active { transform: scale(.9) translateY(-6px); }
.bjp-chipbtn:disabled { opacity: .35; }
.bjp-row2 { display: flex; gap: 8px; }
.bjp-row2 .btn { min-height: 48px; font-size: 15px; padding: 8px 10px; background: rgba(255, 255, 255, .1); color: var(--bjp-text); }
.bjp .btn.bjp-yes { background: #ffd23f; color: #1b1407; font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .02em; min-height: 58px; box-shadow: 0 5px 0 #9a7500; }
.bjp .btn.bjp-yes:disabled { box-shadow: none; }
.bjp .btn.ghost { color: var(--bjp-text-2); }
.bjp-panel .btn { background: rgba(255, 255, 255, .1); color: var(--bjp-text); }
.bjp-small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bjp-text-2); }
.bjp-lead { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px; background: var(--bjp-panel); }
.bjp-lead .btn { min-height: 48px; font-size: 15px; background: rgba(255, 255, 255, .1); color: var(--bjp-text); }
.bjp-lead::before { content: 'LEADER'; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--bjp-text-2); text-align: center; }

/* the hand dock */
.bjp-dock.ndp-dock { background: linear-gradient(to top, rgba(4, 34, 33, .97) 74%, rgba(4, 34, 33, 0)); }
.bjp-handhead { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.bjp-tot { font-size: 26px; font-weight: 900; padding: 3px 16px; border-radius: 999px; background: #fffdf8; color: #15161f; font-variant-numeric: tabular-nums; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.bjp-tot.bj { background: #15161f; color: #ffd23f; } .bjp-tot.bust { background: #e5484d; color: #fff; }
.bjp-hbet { display: inline-flex; align-items: flex-end; gap: 4px; }
.bjp-hbet .bjc-stack { --chw: 30px; }
.bjp-hbet em { font-style: normal; font-size: 14px; font-weight: 800; color: #f6f0e0; }
.bjp-res { font-family: var(--display); font-size: 15px; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: #3a3a3c; color: #fff; }
.bjp-res.r-win { background: #157a42; } .bjp-res.r-blackjack { background: #ffd23f; color: #1b1407; } .bjp-res.r-push { background: #e9e3d4; color: #15161f; }
.bjp-res.r-lose, .bjp-res.r-bust { background: #e5484d; } .bjp-res.r-surrender { background: #6b6f80; }
.bjp-acts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.bjp-row { display: flex; gap: 8px; }
.bjp-act { flex: 1; min-height: 62px; border: none; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; font: inherit; transition: transform .08s; }
.bjp-act:active { transform: scale(.96); }
.bjp-act b { font-family: var(--display); font-size: 24px; font-weight: 900; letter-spacing: .03em; line-height: 1; }
.bjp-act small { font-size: 12px; font-weight: 700; opacity: .8; }
.bjp-row.small .bjp-act { min-height: 50px; }
.bjp-row.small .bjp-act b { font-size: 17px; }
.bjp-act.a-hit { background: #ffd23f; color: #1b1407; box-shadow: 0 5px 0 #9a7500; }
.bjp-act.a-stand { background: #fffdf8; color: #15161f; box-shadow: 0 5px 0 #a99f8a; }
.bjp-act.a-double { background: #7a5af5; color: #fff; box-shadow: 0 4px 0 #4b2fb8; }
.bjp-act.a-split { background: #38bdf8; color: #06243a; box-shadow: 0 4px 0 #1680b0; }
.bjp-act.a-surrender { background: #4b4f5e; color: #fff; box-shadow: 0 4px 0 #2a2c35; }
.bjp-dock .ndp-hint { color: rgba(246, 240, 224, .95); font-size: 13px; }
.bjp-big .d52 { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* sheets */
.bjp-sheettop { display: flex; gap: 12px; align-items: center; }
.bjp-pickclock { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--label-2); }
.bjp-pickclock .tclock.bar { flex: 1; }
.ndp-sheet .btn.bjp-yes { background: #ffd23f; color: #1b1407; font-family: var(--display); font-weight: 900; }

/* payouts */
.bjp-rbig { font-family: var(--display); font-size: 64px; font-weight: 900; line-height: 1; color: var(--bjp-text); font-variant-numeric: tabular-nums; animation: bjp-pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.bjp-rbig.up { color: #4ade80; } .bjp-rbig.down { color: #ff8a80; }
.bjp-rrows { display: flex; flex-direction: column; gap: 6px; }
.bjp-rrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .2); text-align: left; }
.bjp-rc { display: flex; flex: 1; min-width: 0; font-weight: 700; }
.bjp-rc > .d52 + .d52 { margin-left: calc(var(--cw) * -.5); }
.bjp-rrow b { font-size: 17px; }
.bjp-rrow em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 14px; padding: 3px 9px; border-radius: 999px; background: #3a3a3c; color: #fff; white-space: nowrap; }
.bjp-rrow.r-win em, .bjp-rrow.r-blackjack em { background: #157a42; } .bjp-rrow.r-blackjack em { background: #ffd23f; color: #1b1407; }
.bjp-rrow.r-lose em, .bjp-rrow.r-bust em { background: #e5484d; } .bjp-rrow.r-push em { background: #e9e3d4; color: #15161f; }
.bjp-stand { display: flex; flex-direction: column; gap: 4px; }
.bjp-st { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 12px; text-align: left; }
.bjp-st.me { background: rgba(255, 210, 63, .18); }
.bjp-st > span { width: 18px; font-weight: 800; color: var(--bjp-text-2); }
.bjp-st b { flex: 1; font-size: 16px; }
.bjp-st em { font-style: normal; font-weight: 900; color: #ffd23f; font-variant-numeric: tabular-nums; }
.bjp-next { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--bjp-text-2); }
.bjp-next .tclock.bar { flex: 1; }
.bjp-end .bjp-stand { width: 100%; max-width: 360px; }
.bjp-endchip { width: 96px; height: 96px; }

/* big moments */
.bjp-moment { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; background: radial-gradient(circle, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 75%); animation: bjp-mo 2.3s ease both; }
.bjp-moment.k-bj { background: radial-gradient(circle, rgba(255, 210, 63, .45), rgba(6, 40, 38, .6) 70%); }
.bjp-moment.k-dealerbj, .bjp-moment.k-bust { background: radial-gradient(circle, rgba(140, 10, 20, .75), rgba(60, 0, 0, .4) 75%); }
.bjp-moment.k-dealerbust { background: radial-gradient(circle, rgba(31, 157, 85, .7), rgba(0, 40, 20, .35) 75%); }
.bjp-moment .big { font-family: var(--display); font-size: 44px; font-weight: 900; color: #ffd23f; -webkit-text-stroke: 3px #1b1407; paint-order: stroke fill; text-shadow: 4px 5px 0 #1b1407; transform: rotate(-4deg); text-align: center; line-height: .95; padding: 0 12px; }
.bjp-moment.k-bust .big, .bjp-moment.k-dealerbj .big { color: #ff6b6b; }
.bjp-moment.k-dealerbust .big { color: #b8f7c9; }
.bjp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 800; font-size: 17px; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 92vw; }
.bjp-moment .who:not(:has(.avatar)) { padding-left: 18px; }
.bjp-mcards { display: flex; animation: bjp-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.bjp-mcards > .d52 + .d52 { margin-left: calc(var(--cw) * -.3); transform: rotate(8deg); }
.bjp-mcards > .d52:first-child { transform: rotate(-8deg); }
@keyframes bjp-mo { 0% { opacity: 0; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.03); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the light theme (the default): daylight felt, white panels ---- */
[data-theme="light"] .bjp { --bjp-panel: rgba(255, 253, 248, .96); --bjp-text: #15161f; --bjp-text-2: rgba(21, 22, 31, .62); --bjp-line: rgba(21, 22, 31, .1); }
[data-theme="light"] .bjp-bar.idle, [data-theme="light"] .bjp-panel, [data-theme="light"] .bjp-dealer, [data-theme="light"] .bjp-opp, [data-theme="light"] .bjp-lead { box-shadow: 0 6px 18px rgba(8, 50, 45, .18); }
[data-theme="light"] .bjp-dealer.on, [data-theme="light"] .bjp-opp.on { box-shadow: inset 0 0 0 3px #e0a800, 0 6px 18px rgba(8, 50, 45, .18); }
[data-theme="light"] .bjp-dtot:not(.bust):not(.bj) { background: rgba(21, 22, 31, .08); }
[data-theme="light"] .bjp-opp em:not([class]), [data-theme="light"] .bjp-opp em.wait { background: rgba(21, 22, 31, .08); }
[data-theme="light"] .bjp-bankbig b, [data-theme="light"] .bjp-st em { color: #8a5a00; }
[data-theme="light"] .bjp-spot > i { border-color: rgba(21, 22, 31, .3); }
[data-theme="light"] .bjp-spot.locked > i { border-color: #e0a800; }
[data-theme="light"] .bjp-row2 .btn, [data-theme="light"] .bjp-panel .btn, [data-theme="light"] .bjp-lead .btn { background: rgba(21, 22, 31, .07); }
[data-theme="light"] .bjp .btn.bjp-yes { background: #ffd23f; color: #1b1407; }
[data-theme="light"] .bjp-rrow { background: rgba(21, 22, 31, .05); }
[data-theme="light"] .bjp-rbig.up { color: #138043; } [data-theme="light"] .bjp-rbig.down { color: #c62828; }
[data-theme="light"] .bjp-st.me { background: rgba(255, 210, 63, .3); }
[data-theme="light"] .bjp-dock.ndp-dock { background: linear-gradient(to top, rgba(22, 106, 96, .98) 74%, rgba(22, 106, 96, 0)); }
[data-theme="light"] .bjp-avs .avatar { box-shadow: 0 0 0 2px #e0a800; }

/* The final standings sit on a solid panel (they were pale numbers on the green felt) */
.bjp-fcard { --bjp-panel: rgba(6, 26, 26, .92); --bjp-text: #f6f0e0; --bjp-text-2: rgba(246, 240, 224, .8);
  width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--bjp-panel); color: var(--bjp-text); }
.bjp-fcard .p { color: var(--bjp-text-2); font-size: 15px; }
.bjp-fcard .p b { color: var(--bjp-text); }
.bjp-fcard .bjp-st b { font-family: var(--display); }
[data-theme="light"] .bjp-fcard { --bjp-panel: #fffdf8; --bjp-text: #15161f; --bjp-text-2: rgba(21, 22, 31, .75); box-shadow: 0 6px 18px rgba(8, 50, 45, .18); }
[data-theme="light"] .bjp-fcard .bjp-st em { color: #8a5a00; }

/* Narrow phones (320): the title may wrap under the clock, the chips fit with a gap */
@media (max-width: 340px) {
  .bjp-bar.me b { white-space: normal; font-size: 21px; }
  .bjp-bar.me .tclock { width: 52px; height: 52px; }
  .bjp-chipbtn { width: 64px; height: 64px; }
}

/* Short phones (320x568, 390x664): a smaller hand and a slimmer page, so the dealer's cards stay in
   view above your hand and BET is reachable without scrolling */
@media (max-height: 700px) {
  .bjp { gap: 8px; }
  .bjp.docked { padding-bottom: 330px; }
  .bjp-bar { min-height: 50px; padding: 8px 12px; }
  .bjp-bar.me b { font-size: 21px; }
  .bjp-bar.me span, .bjp-bar.idle span { font-size: 13px; }
  .bjp-bar.me .tclock { width: 44px; height: 44px; }
  .bjp-bar.me .tclock b { font-size: 18px; }
  .bjp-dealer { padding: 4px 10px; }
  .bjp-dealer .bjp-dcards { --cw: 38px !important; }
  .bjp-dtot { font-size: 17px; padding: 2px 10px; }
  .bjp-opps { margin: 0 -16px; }
  .bjp-dock .ndp-fanhint { display: none; }
  .bjp-dock.ndp-dock { padding-top: 6px; }
  .bjp-dock .ndp-fan.d52-fan { height: calc(var(--cw) * 1.4 + 22px); }
  .bjp-handhead { margin-bottom: 4px; gap: 8px; }
  .bjp-tot { font-size: 21px; padding: 1px 12px; }
  .bjp-hbet .bjc-stack { --chw: 22px; }
  .bjp-acts { gap: 6px; margin-bottom: 0; }
  .bjp-act { min-height: 50px; }
  .bjp-act b { font-size: 20px; }
  .bjp-row.small .bjp-act { min-height: 46px; }
  .bjp-row.small .bjp-act b { font-size: 15px; }
  .bjp-act small { font-size: 12px; }
  /* after a split the hands become one-line chips (the active hand's cards are the big fan below) */
  .bjp-minis { padding: 0 2px 4px; }
  .bjp-mini { flex-direction: row; align-items: center; gap: 6px; padding: 4px 10px; min-height: 36px; }
  .bjp-mini .bjp-mc { display: none; }
  .bjp-bankbig b { font-size: 32px; }
  .bjp-panel { padding: 10px; gap: 8px; }
  .bjp-spot { width: 88px; height: 88px; padding-bottom: 8px; }
  /* BET sits right under the chips, so it is on screen while the clock runs */
  .bjp-panel .bjp-chips { order: 1; }
  .bjp-panel .btn.bjp-yes[data-bet] { order: 2; }
  .bjp-panel .bjp-row2 { order: 3; }
  .bjp-panel > .btn.ghost { order: 4; }
  .bjp-panel .bjp-small { order: 5; }
  .bjp-spot .bjc-stack { --chw: 40px !important; }
  .bjp-spot .bjc-stack { --chw: 46px; }
  .bjp .btn.bjp-yes { min-height: 52px; font-size: 18px; }
}

@media (max-height: 600px) {
  .bjp { gap: 6px; }
  .bjp-bar { min-height: 46px; padding: 6px 12px; }
  .bjp-dealer { padding: 2px 10px; }
  .bjp-dealer .bjp-dcards { --cw: 34px !important; }
  .bjp-dtot { font-size: 16px; padding: 1px 8px; }
  .bjp-dock .ndp-fan.d52-fan { height: calc(var(--cw) * 1.4 + 18px); }
  .bjp-handhead { margin-bottom: 2px; }
  .bjp-bar.me span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bjp-dock:has(.bjp-minis) .bjp-handhead { display: none; }
}

/* the strip of the other players steps aside when the fixed tray would cover it (320x568) */
.bjp.tight .bjp-opps { display: none; }

/* /shared/poker.css */
/* Poker, shared by the TV and the phones: the card-room surface (.tbl-poker), play chips,
   the dealer button and blind pucks, the POKER wordmark. Dark rules first, then the light
   theme (the default). Everything is .pk-*; the cards are the shared deck. */

/* ---- the card room around the table (the phones' background too) ---- */
.tbl-poker {
  --tbl-edge: #071a14; --tbl-rim: #1f6b4c;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(40, 150, 100, .16), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #0c2a20 0%, #081d16 70%, #06150f 100%);
}
[data-theme="light"] .tbl-poker {
  --tbl-edge: #fffaf0; --tbl-rim: #cdb48a;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 255, 255, .7), transparent 70%),
    repeating-linear-gradient(45deg, rgba(31, 107, 69, .045) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(31, 107, 69, .045) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #f4efe3 0%, #ece3d0 100%);
}

/* ---- play chips: a little stack per colour (PokerArt.stack); size with --cs ---- */
.pk-chips { --cs: 30px; display: inline-flex; align-items: flex-end; gap: calc(var(--cs) * .08); vertical-align: bottom; }
.pk-col { position: relative; width: var(--cs); height: calc(var(--cs) + (var(--n, 1) - 1) * var(--cs) * .14); flex: none; }
.pk-chip {
  position: absolute; left: 0; bottom: calc(var(--k, 0) * var(--cs) * .14); width: var(--cs); height: var(--cs); border-radius: 50%;
  background:
    radial-gradient(circle, var(--cc) 0 42%, transparent 43%),
    radial-gradient(circle, transparent 0 49%, color-mix(in srgb, var(--ce) 85%, transparent) 50% 54%, transparent 55%),
    repeating-conic-gradient(from 11deg, var(--ce) 0 22deg, var(--cc) 22deg 45deg);
  box-shadow: 0 calc(var(--cs) * .06) 0 color-mix(in srgb, var(--cc) 55%, #000), 0 calc(var(--cs) * .1) calc(var(--cs) * .14) rgba(0, 0, 0, .35), inset 0 0 0 max(1px, calc(var(--cs) * .03)) rgba(0, 0, 0, .25);
}

/* a single coin beside a stack count */
.pk-coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #ffd23f 0 40%, transparent 42%), repeating-conic-gradient(#15161f 0 22deg, #ffd23f 22deg 45deg); box-shadow: 0 2px 0 #a8861c; flex: none; }

/* ---- the dealer button and the blind pucks ---- */
.pk-puck { --ps: 40px; width: var(--ps); height: var(--ps); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--pr-display, "Rubik", Arial, sans-serif); font-weight: 900; font-size: calc(var(--ps) * .42); letter-spacing: -.02em; line-height: 1;
  box-shadow: 0 calc(var(--ps) * .08) 0 rgba(0, 0, 0, .3), 0 calc(var(--ps) * .14) calc(var(--ps) * .3) rgba(0, 0, 0, .35); }
.pk-puck.dealer { background: radial-gradient(circle at 50% 38%, #fffef9, #ece5d4); color: #15161f; box-shadow: inset 0 0 0 calc(var(--ps) * .07) #fff, inset 0 0 0 calc(var(--ps) * .1) #15161f, 0 calc(var(--ps) * .08) 0 #b9ae97, 0 calc(var(--ps) * .14) calc(var(--ps) * .3) rgba(0, 0, 0, .35); font-size: calc(var(--ps) * .5); }
.pk-puck.sb { background: #38bdf8; color: #0b2a3d; font-size: calc(var(--ps) * .34); }
.pk-puck.bb { background: #ffd23f; color: #15161f; font-size: calc(var(--ps) * .34); }

/* ---- the wordmark ---- */
.pk-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #f6f2ea; }
.pk-logo b { display: inline-flex; align-items: center; font-family: var(--pr-display, "Rubik", Arial, sans-serif); font-weight: 900; font-size: 56px; line-height: .9; letter-spacing: -.02em; }
.pk-logo b svg { width: .74em; height: .74em; margin: 0 .03em; color: #ffd23f; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.pk-logo small { font-family: var(--pr-display, "Rubik", Arial, sans-serif); font-weight: 700; font-size: 13px; letter-spacing: .16em; opacity: .72; }
[data-theme="light"] .pk-logo { color: #15161f; }
[data-theme="light"] .pk-logo b svg { color: #1f9d55; }

/* /phone/games/poker.css */
/* Poker on the phone. Dark rules first, then the light theme (the default) repaints what they
   hard-code. The sheets and the overlay come from the core (.ndp-*); the rest is .pkp-*. */
.pkp { display: flex; flex-direction: column; gap: 8px; padding-bottom: 150px; }

/* whose turn */
.pkp-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 10px 14px; min-height: 62px; }
.pkp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pkp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffa400); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255, 170, 0, .45); animation: pkp-throb 1.6s ease-in-out .4s infinite; }
.pkp-bar.me.fresh { animation: pkp-pop .35s cubic-bezier(.2, 1.4, .4, 1) both, pkp-throb 1.6s ease-in-out .4s infinite; }
.pkp-bar.me b { font-family: var(--display); font-size: 28px; font-weight: 900; letter-spacing: -.01em; line-height: 1; }
.pkp-bar.me span { font-size: 15px; font-weight: 700; }
.pkp-bar.me .tclock { width: 58px; height: 58px; }
.pkp-bar.me .tclock b { font-size: 22px; }
.pkp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.pkp-bar.me .tclock.urgent .fg { stroke: #fff; }
.pkp-bar.me .tclock.urgent .bg { stroke: rgba(255, 255, 255, .25); }
.pkp-bar.won { background: #ffd23f; color: #15161f; }
.pkp-bar.won b { font-family: var(--display); font-size: 24px; font-weight: 900; }
.pkp-bar.won span { font-size: 14px; font-weight: 700; }
.pkp-bar.idle { background: rgba(0, 0, 0, .3); color: var(--label-2); font-size: 15px; }
.pkp-bar.idle b { color: var(--text); }
.pkp-bar .tclock { width: 44px; height: 44px; flex: none; }
.pkp-bar.idle .tclock .bg { stroke: rgba(255, 255, 255, .14); }
.pkp-bar.idle .tclock .fg { stroke: #ffb800; }
.pkp-bar.idle .tclock b { font-size: 16px; color: var(--text); }
@keyframes pkp-pop { from { transform: scale(.86); } }
@keyframes pkp-throb { 50% { box-shadow: 0 10px 40px rgba(255, 170, 0, .75); transform: scale(1.012); } }
body.pkp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255, 196, 0, .45); animation: pkp-frame 1.6s ease-in-out infinite; }
@keyframes pkp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255, 196, 0, .6); } }

/* the board and the pot, on a strip of baize */
.pkp-table { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; color: #f6f2ea;
  background: radial-gradient(ellipse at 50% 40%, #1d8a5d, #0e6040); box-shadow: inset 0 0 0 3px #6b4423, inset 0 0 0 5px #3b2117, 0 8px 22px rgba(0, 0, 0, .3); }
.pkp-board { display: flex; gap: 4px; flex: none; }
.pkp-slot { width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: 5px; border: 2px dashed rgba(246, 242, 234, .2); position: relative; }
.pkp-slot:has(.d52) { border-color: transparent; }
.pkp-slot .d52 { position: absolute; inset: -2px; width: auto; }
.pkp-slot .d52.win { box-shadow: 0 0 0 3px #ffd23f, 0 0 12px rgba(255, 210, 63, .8); transform: translateY(-3px); }
.pkp-slot .d52.dim { filter: saturate(.4) brightness(.6); }
.pkp-slot .d52.pkp-turn { animation: pkp-turn .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes pkp-turn { from { transform: rotateY(90deg) scale(1.1); } }
.pkp-pot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.pkp-pot span { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .72; }
.pkp-pot b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; color: #ffd23f; }
.pkp-pot small { font-size: 12px; font-weight: 600; opacity: .8; line-height: 1.25; }

/* everyone else: a compact grid, three across */
.pkp-opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pkp-opp { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; row-gap: 1px; align-items: center; padding: 5px 7px 5px 5px; border-radius: 14px; background: rgba(0, 0, 0, .28); min-width: 0; border: 2px solid transparent; }
.pkp-opp .avatar { grid-row: span 2; width: 26px; height: 26px; font-size: 13px; }
.pkp-opp .nm { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); line-height: 1.15; }
.pkp-ol { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pkp-opp .stk { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd23f; }
.pkp-opp em { font-style: normal; font-family: var(--display); font-size: 12px; font-weight: 900; letter-spacing: .04em; padding: 1px 5px; border-radius: 999px; background: #e9e2d2; color: #15161f; white-space: nowrap; }
.pkp-opp em.bet { background: #38bdf8; color: #08263a; }
.pkp-opp em.allin { background: #e5484d; color: #fff; }
.pkp-opp em.won { background: #ffd23f; }
.pkp-opp em.fold, .pkp-opp em.out { background: #3a3d48; color: #c9c6be; }
.pkp-opp.on { border-color: #ffb800; box-shadow: 0 0 14px rgba(255, 184, 0, .45); }
.pkp-opp.folded, .pkp-opp.out { opacity: .55; }
.pkp-d { position: absolute; left: 18px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fffef9; color: #15161f; font-style: normal; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px #15161f, 0 2px 4px rgba(0, 0, 0, .35); }
.pkp-opp.has-cards { grid-column: span 2; padding-right: 50px; }
.pkp-oc { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; }
.pkp-oc .d52 + .d52 { margin-left: -7px; }
.pkp-oc .d52.win { box-shadow: 0 0 0 2px #ffd23f; }

/* me */
.pkp-me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px 10px; border-radius: 22px; background: rgba(0, 0, 0, .26); }
.pkp-meline { align-self: stretch; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--label-2); }
.pkp-pos { font-family: var(--display); font-size: 13px; font-weight: 900; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #fffef9; color: #15161f; box-shadow: inset 0 0 0 2px #15161f; }
.pkp-stk { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; color: #ffd23f; font-variant-numeric: tabular-nums; }
.pkp-inf b { color: var(--text); font-weight: 800; }
.pkp-allin { font-family: var(--display); font-size: 12px; font-weight: 900; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: #e5484d; color: #fff; }
.pkp-eye { margin-left: auto; min-height: 44px; padding: 4px 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: var(--text); font-size: 13px; font-weight: 700; }
.pkp-eye.on { background: #ffd23f; color: #15161f; }
.pkp-hole { display: flex; justify-content: center; gap: calc(var(--cw) * .12); padding: 8px 0 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.pkp-hole .d52-flip { transition: translate .18s ease; }
.pkp-hole .d52-flip:first-child { rotate: -4deg; }
.pkp-hole .d52-flip:last-child { rotate: 4deg; }
.pkp-hole .d52-flip.lift { translate: 0 -16px; }
.pkp-hole .d52-flip.pkp-in { animation: pkp-in .55s cubic-bezier(.2, 1.2, .35, 1) both; }
@keyframes pkp-in { from { transform: translateY(-46vh) rotate(-25deg) scale(.5); opacity: 0; } 55% { opacity: 1; } }
.pkp-hole .d52-flip.win .d52 { box-shadow: 0 0 0 4px #ffd23f, 0 0 20px rgba(255, 210, 63, .8); }
.pkp-hole .d52-flip.dim { filter: saturate(.45) brightness(.7); }
.pkp-me.folded .pkp-hole { opacity: .45; filter: grayscale(.6); }
.pkp-words { min-height: 26px; text-align: center; font-size: 13px; color: var(--label-2); }
.pkp-words.on b { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--text); }
.pkp-outtxt { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 0; }
.pkp-outtxt b { font-family: var(--display); font-size: 24px; color: var(--text); }
.pkp-outtxt span { color: var(--label-2); font-size: 15px; }
.pkp-final .pk-logo, .pkp-final .pk-logo b { margin-bottom: 6px; }

/* the dock */
.pkp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 520px; margin: 0 auto; padding: 10px 12px calc(var(--safe-bottom) + 12px); display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to top, rgba(6, 18, 13, .96) 72%, rgba(6, 18, 13, 0)); }
.pkp-row { display: flex; gap: 8px; }
.pkp-btn { flex: 1; min-height: 54px; border-radius: 16px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-family: var(--display); cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transition: transform .1s; }
.pkp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.pkp-btn b { font-size: 20px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.pkp-btn small { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; }
.pkp-btn.fold { background: #3a3d48; color: #f6f2ea; }
.pkp-btn.check, .pkp-btn.call { background: #38bdf8; color: #08263a; }
.pkp-btn.raise { background: #ffd23f; color: #15161f; }
.pkp-btn.allin { background: #e5484d; color: #fff; }
.pkp-btn.go { background: #ffd23f; color: #15161f; }
.pkp-btn.ghost { background: rgba(255, 255, 255, .14); color: var(--text); }
.pkp-dock.sent .pkp-btn { opacity: .5; pointer-events: none; }
.pkp-wait { flex: 1; min-height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--label-2); border: 2px dashed rgba(255, 255, 255, .14); }
.pkp-end { align-self: center; min-height: 44px; padding: 4px 14px; border: 0; background: none; color: var(--label-2); font-size: 14px; font-weight: 600; text-decoration: underline; }
.pkp-end.sure { color: #ff6b6b; text-decoration: none; font-weight: 800; }

/* the raise sheet */
.pkp-rsheet { gap: 12px; }
.pkp-rhead { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pkp-rhead span { font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--label-2); }
.pkp-rhead b { font-family: var(--display); font-size: 46px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.pkp-rhead small { font-size: 14px; color: var(--label-2); }
.pkp-slider { width: 100%; height: 44px; accent-color: #ffd23f; touch-action: pan-x; }
.pkp-range { display: flex; justify-content: space-between; font-size: 13px; color: var(--label-2); margin-top: -8px; font-variant-numeric: tabular-nums; }
.pkp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pkp-q { min-height: 52px; border-radius: 12px; border: 0; background: var(--fill, rgba(120, 120, 128, .2)); color: var(--text); font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.pkp-q small { font-size: 12px; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
.pkp-q.on { background: #ffd23f; color: #15161f; }
.pkp-q.on small { color: rgba(21, 22, 31, .7); }
.pkp-clock { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--label-2); }
.pkp-clock .tclock.bar { flex: 1; }

/* the moments */
.pkp-moment { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; animation: pkp-mo 2s cubic-bezier(.2, 1.2, .4, 1) both; background: radial-gradient(circle, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35)); }
.pkp-moment.k-win { animation-duration: 2.6s; }
.pkp-moment.k-allin { background: radial-gradient(circle, rgba(130, 10, 20, .82), rgba(40, 0, 0, .45)); }
@keyframes pkp-mo { 0% { opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1.04); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.pkp-moment .big { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .95; text-align: center; color: #fff; -webkit-text-stroke: 3px #15161f; paint-order: stroke fill; text-shadow: 4px 5px 0 #15161f; transform: rotate(-4deg); }
.pkp-moment.k-allin .big { color: #ff5a5f; }
.pkp-moment.k-win .big { color: #ffd23f; }
.pkp-moment.k-blinds .big { color: #38bdf8; }
.pkp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 90vw; }

/* ---- light theme ---- */
[data-theme="light"] .pkp-bar.idle { background: rgba(255, 255, 255, .82); box-shadow: 0 6px 18px rgba(60, 50, 20, .1); }
[data-theme="light"] .pkp-bar.idle .tclock .bg { stroke: rgba(21, 22, 31, .1); }
[data-theme="light"] .pkp-opp { background: rgba(255, 255, 255, .85); box-shadow: 0 3px 10px rgba(60, 50, 20, .08); }
[data-theme="light"] .pkp-opp.on { border-color: #ffb800; }
[data-theme="light"] .pkp-opp .stk, [data-theme="light"] .pkp-stk { color: #9a6a00; }
[data-theme="light"] .pkp-me { background: rgba(255, 255, 255, .8); box-shadow: 0 8px 22px rgba(60, 50, 20, .1); }
[data-theme="light"] .pkp-eye { background: rgba(21, 22, 31, .08); }
[data-theme="light"] .pkp-eye.on { background: #ffd23f; }
[data-theme="light"] .pkp-dock { background: linear-gradient(to top, rgba(244, 239, 227, .97) 72%, rgba(244, 239, 227, 0)); }
[data-theme="light"] .pkp-btn { box-shadow: 0 4px 0 rgba(21, 22, 31, .35); }
[data-theme="light"] .pkp-btn.fold { background: #3a3d48; }
[data-theme="light"] .pkp-btn.ghost { background: rgba(21, 22, 31, .08); }
[data-theme="light"] .pkp-wait { border-color: rgba(21, 22, 31, .14); }
[data-theme="light"] .pkp-table { box-shadow: inset 0 0 0 3px #d9b07a, inset 0 0 0 5px #a0703f, 0 8px 22px rgba(60, 50, 20, .18); background: radial-gradient(ellipse at 50% 40%, #2ea36f, #1a7e52); }
[data-theme="light"] .pkp-moment { background: radial-gradient(circle, rgba(255, 250, 240, .85), rgba(255, 250, 240, .4)); }
[data-theme="light"] .pkp-moment.k-allin { background: radial-gradient(circle, rgba(255, 215, 215, .9), rgba(255, 200, 200, .45)); }

/* Short phones (320x568, 390x664): the buttons go in one row and the page shrinks so your two cards
   and the name of your hand stay in view above them (they used to be covered). */
@media (max-height: 700px) {
  .pkp { gap: 6px; padding-bottom: 96px; }
  .pkp-bar { min-height: 50px; padding: 6px 12px; }
  .pkp-bar.me b { font-size: 22px; }
  .pkp-bar.me span { font-size: 14px; }
  .pkp-bar.me .tclock, .pkp-bar .tclock { width: 44px; height: 44px; }
  .pkp-bar.me .tclock b { font-size: 18px; }
  .pkp-table { padding: 5px 8px; }
  .pkp-board { --cw: 34px !important; }
  .pkp-pot small { display: none; }
  .pkp-pot b { font-size: 22px; }
  .pkp-opp { padding: 3px 6px 3px 4px; }
  .pkp-me { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 6px 10px; }
  .pkp-me .pkp-meline { grid-column: 2; grid-row: 1; gap: 4px 8px; }
  .pkp-me .pkp-hole { grid-column: 1; grid-row: 1 / span 2; padding: 4px 0 0; }
  .pkp-me .pkp-words { grid-column: 2; grid-row: 2; min-height: 22px; text-align: left; }
  .pkp-me .pkp-words.on b { font-size: 18px; }
  .pkp-me .pkp-stk { font-size: 20px; }
  .pkp-eye { margin-left: 0; }
  .pkp-outtxt { padding: 8px 0; }
  .pkp-dock.mine { flex-direction: row; gap: 6px; padding-top: 8px; }
  .pkp-dock.mine .pkp-row { display: contents; }
  .pkp-dock.mine .pkp-btn { min-height: 52px; border-radius: 14px; min-width: 0; }
  .pkp-dock.mine .pkp-btn b { font-size: 16px; }
  .pkp-dock.mine .pkp-btn small { font-size: 13px; }
}
@media (max-width: 340px) {
  .pkp-pos { font-size: 12px; letter-spacing: 0; padding: 2px 8px; white-space: nowrap; }
}
@media (max-height: 700px) { .pkp { padding-bottom: 132px; } }

/* Short phones: the top bar already says who we are waiting for, so the grey "Wait for your turn" box
   (it sat over your cards and the name of your hand) is not drawn */
@media (max-height: 700px) {
  .pkp-dock.idle { display: none; }
  .pkp:not(:has(.pkp-dock:not(.idle))) { padding-bottom: 16px; }
}

/* /shared/cheat.css */
/* Cheat, shared by the TV and the phones: the table surface (.tbl-cheat) and the messy
   face-down pile. The cards are the shared deck (shared/deck52.css). Dark rules first, then
   the light theme (the default) repaints them. */

/* ---- the table: a card-room cloth with a lattice like a card back, under a spotlight ---- */
.tbl-cheat {
  --tbl-edge: #13060a; --tbl-rim: #9c7a2e; --tbl-glow: rgba(255,210,63,.12);
  background:
    radial-gradient(ellipse 38% 44% at 50% 50%, rgba(255,214,150,.16), transparent 72%),
    repeating-linear-gradient(45deg, rgba(255,210,63,.05) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(-45deg, rgba(255,210,63,.05) 0 2px, transparent 2px 36px),
    radial-gradient(ellipse 120% 100% at 50% 42%, #5b1623, #2a0910 78%);
}
[data-theme="light"] .tbl-cheat {
  --tbl-edge: #fffaf2; --tbl-rim: #c8232c; --tbl-glow: rgba(255,255,255,.3);
  background:
    radial-gradient(ellipse 38% 44% at 50% 50%, rgba(255,255,255,.8), transparent 72%),
    repeating-linear-gradient(45deg, rgba(200,35,44,.07) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(-45deg, rgba(200,35,44,.07) 0 2px, transparent 2px 36px),
    radial-gradient(ellipse 120% 100% at 50% 42%, #fcf1e8, #efd6c8 82%);
}

/* ---- the pile: backs thrown on at angles (CheatArt.pile) ---- */
.ch-pile { position: relative; width: calc(var(--cw, 100px) * 1.9); height: calc(var(--cw, 100px) * 1.9); }
.ch-pile .d52.ch-pc { position: absolute; left: 50%; top: 50%; margin: calc(var(--cw, 100px) * -.7) 0 0 calc(var(--cw, 100px) * -.5); transform: translate(var(--x), var(--y)) rotate(var(--r)); box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.18); }
.ch-pile .d52.ch-pc.ch-new { animation: ch-throw .5s cubic-bezier(.2,1.2,.4,1) var(--d, 0ms) both; }
@keyframes ch-throw { from { opacity: 0; transform: translate(calc(var(--x) * 2), calc(var(--y) - 120px)) rotate(calc(var(--r) - 40deg)) scale(1.25); } }
.ch-pile.ch-gone .d52.ch-pc { animation: ch-gone .45s ease-in both; }
@keyframes ch-gone { to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.6); } }
.ch-empty { position: absolute; left: 50%; top: 50%; width: var(--cw, 100px); aspect-ratio: 5 / 7; transform: translate(-50%, -50%); border-radius: calc(var(--cw, 100px) * .068); border: 3px dashed rgba(255,210,63,.3); display: flex; align-items: center; justify-content: center; font-weight: 900; letter-spacing: .14em; font-size: calc(var(--cw, 100px) * .11); color: rgba(255,210,63,.55); text-align: center; }
[data-theme="light"] .ch-empty { border-color: rgba(200,35,44,.3); color: rgba(200,35,44,.55); }

/* /phone/games/cheat.css */
/* Cheat on the phone. Dark rules first, then the light theme (the default) repaints what
   they hard-code. The fan and the peek come from the core (.ndp-*) and the shared deck
   (deck52.css); everything game-specific is .chp-*. */
.chp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 350px; }

/* whose turn */
.chp-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 11px 14px; font-size: 16px; min-height: 64px; }
.chp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffa400); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,170,0,.45); animation: chp-throb 1.6s ease-in-out .4s infinite; }
.chp-bar.me.fresh { animation: chp-pop .35s cubic-bezier(.2,1.4,.4,1) both, chp-throb 1.6s ease-in-out .4s infinite; }
.chp-bar.me b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.chp-bar.me span { font-size: 15px; font-weight: 700; }
.chp-bar.me em { font-style: normal; font-weight: 900; text-transform: uppercase; }
.chp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.chp-bar.me .tclock.urgent .fg { stroke: #fff; }
.chp-bar.me .tclock.urgent .bg { stroke: rgba(255,255,255,.25); }
.chp-bar.me .tclock.urgent b { animation: chp-urgent .5s ease-in-out infinite alternate; }
@keyframes chp-urgent { to { transform: scale(1.14); } }
.chp-bar.call { background: #d1242c; color: #fff; box-shadow: 0 10px 26px rgba(209,36,44,.35); }
.chp-bar.call .chp-bt span { font-size: 14px; font-weight: 600; opacity: .9; }
.chp-bar.call .chp-claim { font-size: 25px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.chp-hold { flex: none; background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.chp-bar.mine-claim { background: #1b1b1b; color: #ffd23f; }
.chp-bar.mine-claim b { font-size: 22px; font-weight: 900; font-style: italic; }
.chp-bar.mine-claim span { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; }
.chp-bar.idle { background: rgba(0,0,0,.28); color: var(--label-2); }
.chp-bar.idle b { color: var(--text); }
.chp-bar.idle .tclock { width: 46px; height: 46px; }
.chp-bar.idle .tclock .bg { stroke: rgba(255,255,255,.12); }
.chp-bar.idle .tclock .fg { stroke: #ffb800; }
.chp-bar.idle .tclock.urgent .fg { stroke: #ff453a; }
.chp-bar.idle .tclock b { font-size: 18px; color: var(--text); }
.chp-bar .avatar { flex: none; }
@keyframes chp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes chp-throb { 50% { box-shadow: 0 10px 40px rgba(255,170,0,.75); transform: scale(1.015); } }
body.chp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: chp-frame 1.6s ease-in-out infinite; }
@keyframes chp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
body.chp-callable::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 4px #e5484d, inset 0 0 50px rgba(229,72,77,.4); animation: chp-frame-r .8s ease-in-out infinite; }
@keyframes chp-frame-r { 50% { box-shadow: inset 0 0 0 6px #e5484d, inset 0 0 70px rgba(229,72,77,.55); } }
.chp.waiting .ndp-fan { opacity: .78; transition: opacity .3s; }
.chp.waiting .ndp-fan .d52.peeking { opacity: 1; }

/* the other players */
.chp-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.chp-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px 6px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; max-width: 48%; }
.chp-opp .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chp-opp.turn { border-color: #ffb800; box-shadow: 0 0 12px rgba(255,184,0,.5); }
.chp-opp.says { border-color: #e5484d; box-shadow: 0 0 12px rgba(229,72,77,.45); }
.chp-opp .ct { background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; font-weight: 900; }

/* the table strip */
.chp-table { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.22); border-radius: 18px; padding: 14px 12px 12px; }
.chp-mpile { position: relative; flex: none; width: 76px; height: 76px; }
.chp-mpile .ch-pile { position: absolute; left: 0; top: 0; }
.chp-pcount:empty, .chp-pcount.zero { display: none; }
.chp-pcount { position: absolute; right: -6px; bottom: -6px; z-index: 30; min-width: 30px; padding: 2px 7px; border-radius: 999px; background: #fffdf8; color: #1b1b1b; border: 3px solid #1b1b1b; font-weight: 900; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.chp-rank { flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.chp-rank small { font-size: 14px; font-weight: 900; letter-spacing: .04em; color: var(--label-2); }
.chp-rank b { width: 46px; height: 62px; border-radius: 7px; background: #fffdf8; color: #c8232c; display: flex; align-items: center; justify-content: center; font-family: "Spectral", Georgia, serif; font-size: 30px; font-weight: 700; box-shadow: 0 0 0 2px #1b1b1b, 0 0 0 5px #ffd23f, 0 4px 12px rgba(0,0,0,.35); }
.chp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chp-tline { font-size: 15px; font-weight: 700; color: var(--label-2); }
.chp-tline b { font-size: 22px; color: var(--text); font-weight: 900; }
.chp-tsmall { font-size: 14px; color: var(--label-2); line-height: 1.3; }
.chp-tlast { font-size: 14px; color: var(--label-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* who plays next */
.chp-up { display: flex; gap: 6px; align-items: center; padding: 0 4px; font-size: 14px; color: var(--label-2); font-weight: 700; flex-wrap: wrap; }
.chp-up > small { font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.chp-upc { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.2); border-radius: 999px; padding: 3px 10px 3px 3px; }
.chp-upc i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 30px; border-radius: 4px; background: #fffdf8; color: #15161f; font-family: "Spectral", Georgia, serif; font-weight: 700; font-size: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.chp-upc.me { background: rgba(255,196,0,.25); color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,184,0,.7); }

/* above the hand */
.chp-acts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.chp-playas { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; min-width: 0; }
.chp-playas small { white-space: nowrap; font-size: 14px; font-weight: 900; letter-spacing: .08em; color: var(--label-2); }
.chp-playas b { white-space: nowrap; font-size: 30px; font-weight: 900; text-transform: uppercase; color: #ffd23f; letter-spacing: -.01em; line-height: 1; }
.chp-quick { margin-left: auto; align-self: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid #ffd23f; background: transparent; color: var(--text); font-size: 15px; font-weight: 800; cursor: pointer; }
.chp-none { margin-left: auto; align-self: center; font-size: 14px; font-weight: 800; color: #ff7b7f; text-align: right; min-width: 0; line-height: 1.15; }
.btn.chp-play { min-height: 62px; background: #ffd23f; color: #1b1b1b; font-size: 20px; font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 5px 0 #1b1b1b; border: 3px solid #1b1b1b; padding: 6px 12px; }
.btn.chp-play small { font-size: 14px; font-weight: 800; opacity: 1; }
.btn.chp-play:disabled { opacity: 1; background: #ecdc90; color: #3a3000; border-color: #8a7a2a; box-shadow: none; }
.chp-cheat { position: relative; width: 100%; min-height: 104px; border-radius: 22px; border: 4px solid #1b1b1b; background: #c9282e; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 14px 30px; cursor: pointer; box-shadow: 0 6px 0 #1b1b1b, 0 12px 30px rgba(229,72,77,.45); animation: chp-pulse 1s ease-in-out infinite; }
.chp-cheat b { font-size: 46px; font-weight: 900; font-style: italic; line-height: .95; letter-spacing: -.01em; text-shadow: 3px 3px 0 #1b1b1b; }
.chp-cheat small { font-size: 15px; font-weight: 800; }
.chp-cheat:active { transform: translateY(4px); box-shadow: 0 2px 0 #1b1b1b; }
.chp-cheat.done { background: #ffd23f; color: #1b1b1b; animation: none; }
.chp-cheat.done b { font-size: 34px; text-shadow: none; }
@keyframes chp-pulse { 50% { box-shadow: 0 6px 0 #1b1b1b, 0 12px 40px rgba(229,72,77,.75); } }
.chp-cheat .chp-cbar, .chp-myplay .chp-cbar { position: absolute; left: 14px; right: 14px; bottom: 9px; }
.chp-cbar.tclock.bar b { font-size: 15px; color: inherit; text-shadow: none; font-style: normal; line-height: 1; }
.chp-cbar.tclock.bar i { height: 8px; background: rgba(0,0,0,.25); }
.chp-cbar.tclock.bar u { background: #fff; }
.chp-cheat.done .chp-cbar.tclock.bar u { background: #1b1b1b; }
.chp-myplay { position: relative; display: flex; align-items: center; gap: 12px; background: #1b1b1b; color: #fff; border-radius: 20px; padding: 10px 12px 30px; }
.chp-mpcards { display: flex; flex: none; }
.chp-mpcards .d52 + .d52 { margin-left: -24px; }
.chp-mptext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chp-mptext b { font-size: 17px; font-weight: 900; color: #ffd23f; }
.chp-mptext span { font-size: 14px; opacity: .9; }
.chp-myplay .chp-cbar.tclock.bar u { background: #ffd23f; }

/* motion */
.chp-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 50% 50%; }
.chp-ghost .d52 { box-shadow: 0 20px 40px rgba(0,0,0,.45); }

/* the moments */
.chp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 14px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, transparent), rgba(0,0,0,.72) 75%); animation: chp-moment 2.3s ease both; }
@keyframes chp-moment { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.chp-mshout, .chp-mbig { font-size: 84px; font-weight: 900; font-style: italic; line-height: .9; color: #fff; letter-spacing: -.03em; text-align: center; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 9px 9px 0 #d1242c; transform: rotate(-7deg); animation: chp-slam .45s cubic-bezier(.2,1.5,.4,1) both; }
.chp-mbig { font-size: 64px; color: #ffd23f; }
.chp-moment.k-reveal { background: radial-gradient(circle, color-mix(in srgb, var(--pc) 40%, rgba(0,0,0,.6)), rgba(0,0,0,.88) 75%); }
.chp-moment.k-win .chp-mbig { color: #4ade80; text-shadow: 4px 4px 0 #1b1b1b, -3px -3px 0 #1b1b1b, 3px -3px 0 #1b1b1b, -3px 3px 0 #1b1b1b, 9px 9px 0 #1f6b3a; font-size: 96px; }
@keyframes chp-slam { from { transform: rotate(-7deg) scale(3); opacity: 0; } }
.chp-mwho { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.78); color: #fff; font-size: 17px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 92vw; line-height: 1.25; }
.chp-mwho span:only-child { padding-left: 8px; }
.chp-moment .avatar { width: 40px; height: 40px; font-size: 18px; flex: none; }
.chp-mcards { display: flex; gap: 8px; margin-top: 6px; }
.chp-mslot { position: relative; animation: chp-deal .4s cubic-bezier(.2,1.3,.4,1) calc(var(--i) * 70ms + 700ms) both; }
@keyframes chp-deal { from { opacity: 0; transform: translateY(30px) scale(.7); } }
.judged .chp-mslot.bad .d52-ff .d52 { box-shadow: 0 0 0 4px #e5484d, 0 0 24px rgba(229,72,77,.8); }
.judged .chp-mslot.good .d52-ff .d52 { box-shadow: 0 0 0 4px #1f9d55, 0 0 20px rgba(31,157,85,.6); }
.chp-verdict { font-size: 64px; font-weight: 900; line-height: .95; padding: 2px 18px 8px; border: 7px solid currentColor; border-radius: 14px; background: rgba(255,253,248,.95); text-align: center; transform: rotate(-8deg) scale(2.2); opacity: 0; }
.chp-verdict small { display: block; font-size: 15px; font-weight: 800; color: #1b1b1b; letter-spacing: 0; }
.chp-verdict.liar { color: #d1242c; }
.chp-verdict.truth { color: #198a49; }
.judged .chp-verdict { animation: chp-stamp .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes chp-stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.chp-endfan { display: flex; justify-content: center; margin-bottom: 8px; }
.chp-endfan .d52 { transform: rotate(-10deg); }
.chp-endfan .d52:nth-child(2) { transform: translateY(-8px); margin: 0 -18px; z-index: 2; }
.chp-endfan .d52:nth-child(3) { transform: rotate(10deg); }

/* ======== light theme (the default) ======== */
[data-theme="light"] .chp-bar.idle, [data-theme="light"] .chp-opp, [data-theme="light"] .chp-table { background: rgba(255,253,248,.84); box-shadow: 0 4px 14px rgba(120,40,30,.08); }
[data-theme="light"] .chp-bar.idle .tclock .bg { stroke: rgba(0,0,0,.1); }
[data-theme="light"] .chp-bar.idle .tclock .fg { stroke: #e09a00; }
[data-theme="light"] .chp-upc { background: rgba(255,253,248,.84); box-shadow: 0 2px 8px rgba(120,40,30,.08); }
[data-theme="light"] .chp-upc.me { background: rgba(255,214,10,.3); box-shadow: inset 0 0 0 2px rgba(214,150,0,.7); }
[data-theme="light"] .chp-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .chp-playas b { color: #c8232c; }
[data-theme="light"] .chp-quick { border-color: #c8232c; color: #c8232c; background: #fff; }
[data-theme="light"] .chp-none { color: #c8232c; }
body.g-cheat .ndp-dock { background: rgb(8,8,12); box-shadow: 0 -8px 14px rgba(0,0,0,.3); }
[data-theme="light"] body.g-cheat .ndp-dock { background: rgb(250,236,226); box-shadow: 0 -8px 14px rgba(120,60,20,.14); }
[data-theme="light"] .chp-ghost .d52 { box-shadow: 0 20px 40px rgba(120,40,30,.3); }
[data-theme="light"] .chp-moment { background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, transparent), rgba(40,14,10,.6) 75%); }
[data-theme="light"] .chp-moment.k-reveal { background: radial-gradient(circle, color-mix(in srgb, var(--pc) 30%, rgba(60,20,14,.55)), rgba(40,14,10,.86) 75%); }

/* short phones (a 568px SE, a 664px browser window): one row for the play controls and a compact tray,
   so the table stays on screen above the hand */
.chp-playrow { display: flex; gap: 8px; align-items: stretch; }
.chp-playrow .chp-quick { margin: 0; align-self: stretch; flex: 0 0 34%; min-height: 54px; border-radius: 18px; font-size: 16px; line-height: 1.1; padding: 0 4px; }
.chp-playrow .btn.chp-play { flex: 1; min-width: 0; }
@media (max-height: 700px) {
  .chp { gap: 8px; }
  .chp-bar { min-height: 0; padding: 8px 12px; }
  .chp-bar.me b { font-size: 26px; }
  .chp-table { padding: 8px 10px; }
  .chp-mpile { width: 64px; height: 64px; }
  .chp-acts { margin-bottom: 2px; }
  .btn.chp-play { min-height: 54px; font-size: 18px; padding: 4px 8px; }
  .btn.chp-play small { font-size: 14px; }
  .chp-cheat { min-height: 88px; padding-bottom: 26px; }
  .chp-cheat b { font-size: 40px; }
  .chp-dock .ndp-fan.d52-fan { height: calc(var(--cw) * 1.4 + 26px); }
  .chp-dock .ndp-fan .d52 { top: 14px; }
}
