/* COUP — the "Title sequence" theme for Coup Classic: the opening titles of a 1960s spy film.
   Loaded after app.css on every page; it only applies under `.theme-poster`, which app.js puts on the page
   (html), the client root and the announcer layer whenever the view's edition is classic (and on the join
   screen). Rebellion G54 wears its own art-deco theme (deco.css, under `.theme-deco`): nothing here matches
   without `.theme-poster`, except the poster header, hidden by default (first block below). (The scope class and
   the file name are internal and stay from the earlier poster looks.)

   The look: flat cut-paper blocks in the Saul Bass / Maurice Binder manner — a plain stark-black ground (no
   rings, rays, stripes or grain), near-black panels, one hot signal red, bone white type and mustard used
   sparingly (coins, a second accent stripe). Square corners, no shadows, no outlines but the few listed below.
   Type: Jost (geometric sans, 600 / 800) for the logo, headings, labels, names and buttons — uppercase and widely
   tracked; the big claim line in Jost 800 with the role in red. Jost has no Thai: every display spot switches to
   Kanit 700 / 800 under :lang(th), never tracked or uppercased (the Thai block at the end; Kanit is also the
   fallback in every display stack). Body text stays Noto Sans Thai. The painted portraits are the only painterly
   thing on screen: they sit in plain bone frames, and a card's name sits straight on the picture over a dark fade
   (no plate, no bar behind it), with a short red underline.

   One rule decides every surface:
     bone + red edge   what you must act on now — the open decision window, prompts, your-turn action list — and
                       the big splash card: a bone panel with an 8 px signal-red bar down its left edge, black
                       type. Nothing else on screen is this bright.
     panel #161616     everything informational: seats (a 5 px #2b2b2b bar on their left edge), the status card
                       (no window open), the cards-out band, sheets (Roles, How to play, Cards out, Log), banners,
                       toasts, notices, the lobby / join / game-over panels. Bone type. Rows listed inside a panel
                       are black (--item); rows listed inside a bone panel are a deeper bone.
     signal red        "now" and "chosen": the current-turn seat, a selected option, the main buttons (CHALLENGE,
                       Create, Start ...), ELIMINATED bands. Red always carries black type.
     bone block        the room code (black type). Form fields are bone too (you act on them).
   Buttons: red block for the main action; the rest (ALLOW, Close, the dock, Copy, Back ...) black blocks with bone
   type — on dark surfaces outlined in bone, on bone they are solid black.

   Colour tokens come in three contexts, so any component that reads var(--ink) / var(--mut) / var(--acc) ... stays
   readable wherever it sits:
     dark (ground, panel)  --ink bone, --mut muted, --acc / --hot signal red, --warn mustard ... (the default)
     bone                  --ink black, --mut warm grey, --acc / --hot deep red, --warn brown ...   (reset on bone)
     red                   --ink / --mut / --acc / --warn black                                     (reset on red)
   Contrast (WCAG): bone on the ground 16.6:1, on the panel 15.4:1; muted #9d978c 6.7 / 6.2 (and 4.9 on the #2b2b2b
   bar); signal red as text 4.95 / 4.58 (labels, lost-card lines); mustard 10.3 / 9.5. On bone #f2ece0 / deeper bone
   #e8e0d0: black 16.6 / 14.9, warm grey #5f5a53 5.8 / 5.2, deep red #b3321b 5.3 / 4.7 (red type on bone — the claim
   role; the signal red itself is only 3.4:1 there, so on bone it is a fill, never type), brown #7a5200 5.9 / 5.3.
   Black on signal red 4.95:1 (light type on that red reaches 3.9 at best: so red blocks always carry black type),
   black on mustard 10.3:1. Outlines that carry meaning on dark (#7a756d) 4.3 / 4.0. Focus rings (--focus, 3 px,
   drawn outside the element, so the colour is the surrounding surface's): mustard on dark (≥ 9.5:1), black on
   bone. */

@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/jost-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/jost-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Kanit: the same files and descriptors as deco.css declares (both stylesheets are always on the page; whichever
   rule comes last wins and they are identical), so this theme never depends on the other one */
@font-face {
  font-family: "Kanit"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/kanit-700-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/kanit-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/kanit-800-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/kanit-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* the poster header: always in the markup (identical on every phone and in both themes), shown only here */
.phero { display: none; }

/* ── tokens ─────────────────────────────────────────────────────────────── */
.theme-poster {
  /* fixed colours */
  --ground: #0c0c0c;             /* the page: stark black (also the browser bar: app.js BAR, router.mjs) */
  --panel: #161616;              /* informational panels */
  --bar: #2b2b2b;                /* the seats' left-edge bar, rules */
  --black: #0c0c0c;              /* type on red, mustard and bone; the black buttons */
  --signal: #e8452c;             /* the one hot red */
  --signal-ink: #b3321b;         /* red type on bone (the signal red is a fill there) */
  --bone: #f2ece0; --bone2: #e8e0d0;
  --mustard: #e9b43b;
  --edge: #7a756d;               /* outlines that carry meaning on dark (the language switch, unchosen options) */
  --fade: linear-gradient(180deg, rgba(12, 12, 12, 0), rgba(12, 12, 12, .62) 42%, rgba(12, 12, 12, .9));  /* under a card's name */
  /* context: dark (bone type on the ground and the panels) */
  --ink: #f2ece0; --mut: #9d978c; --acc: #e8452c; --hot: #e8452c; --warn: #e9b43b; --ok: #f2ece0; --focus: #e9b43b;
  --item: #0c0c0c; --secbd: #f2ece0;
  --bg: var(--ground); --bg2: var(--panel); --steel: var(--panel); --steel2: #202020; --line: rgba(242, 236, 224, .2);
  --red: var(--signal); --red2: var(--signal); --red-ink: var(--black); --redglow: rgba(232, 69, 44, .3);
  /* category colours (G54 roles never render here; kept readable if one ever does); classic = signal red */
  --fin: #5fbf7a; --com: #6fa3e8; --frc: #f07a62; --spc: #b48ae8; --cls: var(--signal);
  --display: "Jost", "Kanit", "Noto Sans Thai", Futura, "Century Gothic", sans-serif;
  --thd: "Kanit", "Noto Sans Thai", sans-serif;
  --r: 0px;
  font-synthesis: none;          /* only the weights shipped: never smear a fake bold */
}
/* bone: what you must act on now, and the big splash card (see the rule above) */
.theme-poster :is(.event.w-open, .panel.acts, .overlay.prompt .sheet, .annscard, .htbubble) {
  --ink: #0c0c0c; --mut: #5f5a53; --acc: #b3321b; --hot: #b3321b; --warn: #7a5200; --ok: #0c0c0c; --focus: #0c0c0c;
  --item: var(--bone2); --secbd: var(--black);
  --bg: var(--bone); --bg2: var(--bone2); --steel: var(--bone2); --steel2: #ddd5c4; --line: rgba(12, 12, 12, .24);
  --fin: #2f7a46; --com: #2d63a8; --frc: #b3321b; --spc: #7445b0; --cls: var(--signal-ink);
  color: var(--ink);
}
/* red: now / chosen (--focus is left alone: a ring is drawn on the surface around the element) */
.theme-poster :is(.seat.turn, .avpick.on, .seg .on, .infobtn.on, .pcard.on, .popt.on, .cochip.gone) {
  --ink: #0c0c0c; --mut: #0c0c0c; --acc: #0c0c0c; --warn: #0c0c0c; --cls: #0c0c0c;
  color: var(--ink);
}

/* ── the page: plain stark black ───────────────────────────────────────── */
html.theme-poster body { background: var(--ground); color: var(--ink); }
html.theme-poster body::before, html.theme-poster body::after { background: none; }
/* the dev table mounts phones inside its own panels: there the client root paints the ground itself */
.app.embedded.theme-poster { background: var(--ground); color: var(--ink); }

/* ── base elements (low specificity: every component rule below still wins) ── */
:where(.theme-poster) button {
  font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 16px;
  background: var(--signal); color: var(--black); border: 0; border-radius: 0; box-shadow: none;
}
:where(.theme-poster) button:active:not(:disabled) { transform: translateY(1px); }
@media (prefers-reduced-motion: no-preference) { :where(.theme-poster) button { transition: transform .08s; } }
.theme-poster button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* text buttons: the tracking adds space after the last letter — indent by the same so the label sits centred */
.theme-poster :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button, .dock button, .seg button, .seg span) { text-indent: .14em; }
.theme-poster button.big { font-size: 17px; letter-spacing: .16em; text-indent: .16em; padding: 14px; }
.theme-poster button.sec { background: var(--black); color: var(--bone); border: 2px solid var(--secbd); }
/* a main button that cannot be pressed yet: a flat grey block with muted type (a dimmed red reads as mud) */
.theme-poster :is(button.big, .htnav button):not(.sec):disabled { opacity: 1; background: var(--steel2); color: var(--mut); }
.theme-poster button.small-btn { font-size: 14px; padding: 9px 14px; }
.theme-poster button.mini, .theme-poster .close.mini { background: transparent; color: var(--ink); border: 2px solid var(--edge); border-radius: 0; }
.theme-poster .linkish { background: transparent; color: var(--mut); border: 0; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.theme-poster .linkish.warnlink { color: var(--warn); }
.theme-poster .langbtn { color: var(--ink); border: 2px solid var(--edge); border-radius: 0; padding: 4px 12px; font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; }
/* form fields are bone (you act on them); the focus ring is the surrounding surface's */
.theme-poster input { background: var(--bone); color: var(--black); border: 2px solid var(--bone); border-radius: 0; box-shadow: none; }
.theme-poster input::placeholder { color: #5f5a53; }
.theme-poster input:focus { border-color: var(--bone); box-shadow: none; outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-poster input.codein { font-family: var(--display); font-weight: 800; letter-spacing: .3em; }
.theme-poster .panel { background: var(--panel); border: 0; border-radius: 0; box-shadow: none; padding: 14px; }
/* section labels: small tracked caps in red */
.theme-poster .tag { font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 1.3; letter-spacing: .32em; color: var(--acc); margin-bottom: 10px; }
.theme-poster .orr { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .32em; color: var(--mut); margin: 18px 0 6px; }
.theme-poster .orr::before, .theme-poster .orr::after { content: ""; flex: 1; height: 2px; background: var(--bar); }
.theme-poster .reason { color: var(--warn); }
.theme-poster .notice, .theme-poster .awaybar { background: var(--panel); color: var(--bone); border: 0; border-left: 6px solid var(--mustard); border-radius: 0; }
.theme-poster .recbar { background: var(--panel); color: var(--bone); border: 0; border-left: 6px solid var(--mustard); border-radius: 0; }
.theme-poster .recbar b { color: var(--bone); }
.theme-poster .recbar .ic { color: var(--mustard); }
.theme-poster .toast { background: var(--panel); color: var(--bone); border: 0; border-left: 6px solid var(--signal); border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font-weight: 700; }
/* the QR keeps a light ground so every camera reads it */
.theme-poster .qr { background: var(--bone); border-radius: 0; padding: 6px; }
.theme-poster .qr rect { fill: var(--bone); }
.theme-poster .qr path { fill: var(--black); }
.theme-poster .link { color: var(--mut); }

/* ── the header: COUP in Jost 800 bone over a short red bar; the room code a bone block ──── */
.theme-poster .top { min-height: 50px; align-items: center; margin-bottom: 14px; }
.theme-poster .brand .logo { display: none; }
.theme-poster :is(.brand h1, .plogo b) { position: relative; display: block; margin: 0; padding-bottom: 9px; font-family: var(--display); font-weight: 800; font-size: 40px;
  line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--bone); }
.theme-poster :is(.brand h1, .plogo b)::after { content: ""; position: absolute; left: .04em; bottom: 0; width: 2.6em; height: 6px; background: var(--signal); }
.theme-poster .brand.small h1 { font-size: 40px; }
.theme-poster .codechip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px 0 13px; font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: .2em; background: var(--bone); color: var(--black); border: 0; border-radius: 0; }
.theme-poster .top-r { gap: 8px; }
.theme-poster .langbtn { min-height: 40px; }
/* the room code in the lobby: a big bone block */
.theme-poster .code { font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: .22em; background: var(--bone); color: var(--black);
  border: 0; border-radius: 0; padding: 4px 8px 4px 18px; line-height: 1.15; }
.theme-poster .share .code { margin: 2px 0 14px; }

/* the poster header (join screen + Coup Classic lobby): the logo in the top bar's row, exactly where the table's
   header has it (the bar there holds only the code / language switch: the header row is pulled up under it), then
   the cast poster in a plain bone frame with a red bar down its left edge. With no art, just the logo. */
.theme-poster .top.notitle { position: relative; z-index: 2; justify-content: flex-end; margin-bottom: 0; }
.theme-poster .top.notitle + .phero { margin-top: -50px; }
.theme-poster .phero { display: block; position: relative; margin-bottom: 18px; }
.theme-poster .plogo { display: flex; align-items: center; height: 50px; margin: 0; font-size: 16px; pointer-events: none; }
.theme-poster .phero.art { padding-top: 66px; }
.theme-poster .pframe .plogo { position: absolute; left: 0; top: 0; }
.theme-poster .pframe { display: block; width: min(250px, 66vw); margin: 0 auto; border: 3px solid var(--bone); border-left: 10px solid var(--signal); background: var(--panel); overflow: hidden; }
.theme-poster .phero.sm .pframe { width: min(210px, 56vw); }
.theme-poster .pframe img.pimg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; border-radius: 0; }

/* ── avatars, players, pickers ──────────────────────────────────────────── */
/* avatars: full-colour badges on a bone disc (the black crow and cat vanish on a dark one) */
.theme-poster .av { background: var(--bone2); border: 0; filter: none; }
/* on a bone surface the disc goes a shade deeper and takes a black hairline, so it never melts into the panel */
.theme-poster :is(.event.w-open, .annscard, .overlay.prompt .sheet) .av { background: #ddd5c4; box-shadow: 0 0 0 1.5px var(--black); }
.theme-poster .prow { background: var(--item); border: 0; border-left: 5px solid var(--bar); border-radius: 0; }
.theme-poster .prow.me { border-left-color: var(--signal); }
.theme-poster .prow .nm { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.theme-poster .prow .nm em { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--mut); }
.theme-poster .botlbl { border: 1.5px solid var(--edge); border-radius: 0; }
.theme-poster .hostlbl { color: var(--mustard); }
.theme-poster .dot.on { background: var(--bone); box-shadow: none; }
.theme-poster .dot.off { background: transparent; border: 1.5px solid var(--mut); }
.theme-poster .avpick { background: var(--item); border: 0; border-radius: 0; box-shadow: none; }
.theme-poster .avpick.on { background: var(--signal); border: 0; box-shadow: none; }
.theme-poster .avpick.taken { opacity: .25; }

/* segmented controls: the chosen option is a red block; the others are outlined */
.theme-poster .seg { gap: 8px; }
.theme-poster .seg button, .theme-poster .seg span { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-indent: .1em; border-radius: 0; justify-content: center; white-space: nowrap; }
.theme-poster .seg .on { background: var(--signal); color: var(--black); border: 2px solid var(--signal); }
.theme-poster .seg .off { background: transparent; color: var(--bone); border: 2px solid var(--edge); }

/* roles in play (classic lobby): black rows, each portrait in a thin bone frame */
.theme-poster .slot { background: var(--item); border: 0; border-radius: 0; }
.theme-poster .slotbtn { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .12em; color: var(--ink); background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.theme-poster .infobtn { background: transparent; color: var(--mut); border: 0; border-left: 2px solid var(--bar); border-radius: 0; box-shadow: none; font-family: var(--body); }
.theme-poster .infobtn.on { background: var(--signal); }
.theme-poster .rtxt { color: var(--ink); opacity: 1; }
.theme-poster img.art { background: var(--panel); border-radius: 0; }
.theme-poster .slotbtn img.art.rg, .theme-poster .opt .opth img.art.rg { box-shadow: 0 0 0 1.5px var(--bone); }
.theme-poster .advtag, .theme-poster .usedtag { border: 1.5px solid var(--edge); border-radius: 0; color: var(--mut); }
.theme-poster .opt, .theme-poster .preset { background: var(--item); color: var(--ink); border: 0; border-left: 5px solid var(--bar); border-radius: 0; }
.theme-poster .rchip { background: var(--item); border-radius: 0; }
.theme-poster .lead { border-bottom: 1px solid var(--bar); }
.theme-poster .lead .nm { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.theme-poster .lead b { font-family: var(--display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-poster .dlabel { font-weight: 700; }
.theme-poster .cnt.low { color: var(--warn); }

/* ── sheets and prompts: panel-coloured sheets with a red-barred title; a prompt is bone with the red edge ── */
.theme-poster .overlay { background: rgba(12, 12, 12, .86); }
.theme-poster .sheet { background: var(--panel); color: var(--ink); border: 0; border-top: 5px solid var(--bar); border-radius: 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); padding: 14px 16px 16px; }
.theme-poster .sheet-h { align-items: flex-start; margin-bottom: 6px; }
.theme-poster .sheet h2 { position: relative; padding: 6px 0 12px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: .1em; color: var(--ink); }
.theme-poster .sheet h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 5px; background: var(--signal); }
.theme-poster .overlay.prompt { background: rgba(12, 12, 12, .8); }
.theme-poster .overlay.prompt .sheet { background: var(--bone); border: 0; border-left: 8px solid var(--signal); box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); }
.theme-poster .pcards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.theme-poster .pcard { background: var(--item); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; padding: 10px 6px 8px; }
.theme-poster .pcard.on { background: var(--signal); }
.theme-poster .pcard .bn { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.theme-poster .pcard img.art.rg { width: 60px; height: 80px; border-radius: 0; box-shadow: 0 0 0 2px var(--black); }
.theme-poster .pcard .ctag { color: var(--warn); }
.theme-poster .pcard .okic { color: var(--black); }
.theme-poster .popt { background: var(--item); color: var(--ink); border: 0; border-radius: 0; }
.theme-poster .popt.on { background: var(--signal); border: 0; }
.theme-poster .popt .pc { color: var(--warn); }
.theme-poster .dline { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.theme-poster .dline .rl .rg { color: var(--signal); }
.theme-poster .react { border-left: 8px solid var(--signal) !important; }

/* ── the table ─────────────────────────────────────────────────────────── */
.theme-poster .who { color: var(--ink); }
.theme-poster .rl.c-classic, .theme-poster .rl.c-gen { color: var(--ink); }
.theme-poster .rl.c-classic .rg { color: var(--cls); }

/* player ring: panel blocks with a dark left bar; the current turn a solid red block with a bone bar */
.theme-poster .seats { gap: 10px; margin: 4px 0 12px; }
.theme-poster .seat { background: var(--panel); border: 0; border-left: 5px solid var(--bar); border-radius: 0; box-shadow: none; padding: 8px 10px 9px; }
.theme-poster .seat.me { background: var(--panel); }
.theme-poster .seat.turn { background: var(--signal); border-left-color: var(--bone); box-shadow: none; }
.theme-poster .seat.tgt { border-style: solid; border-left-color: var(--signal); box-shadow: inset 0 0 0 2px var(--signal); }
.theme-poster .seat.tgt .tgtic { color: var(--signal); }
.theme-poster .seat.out { background: var(--panel); border-left-color: var(--bar); }
.theme-poster .seat.wait::after { width: 8px; height: 8px; top: 7px; right: 7px; border-radius: 0; background: var(--mustard); box-shadow: 0 0 0 1.5px var(--black); }
.theme-poster .seat-h { gap: 8px; }
.theme-poster .seat-h .nm { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.theme-poster .youtag { font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.theme-poster .seat-b { margin-top: 6px; }
.theme-poster .coins { color: var(--mustard); font-family: var(--display); font-weight: 800; font-size: 17px; gap: 5px; }
.theme-poster .coins .ic { width: 19px; height: 19px; }
.theme-poster .coins .ic path { stroke: var(--black); stroke-opacity: .45; }
.theme-poster .coins b { color: var(--ink); font-weight: 800; }
/* card backs: the card-back art (stripes without it), a hairline of black */
.theme-poster .cd { width: 16px; height: 22px; border-radius: 0; }
.theme-poster .cd.back { background: repeating-linear-gradient(45deg, var(--signal) 0 3px, #9e2a17 3px 6px); border: 0; box-shadow: 0 0 0 1px var(--black); }
/* lost / out-of-play cards on a seat: small bone-framed portraits, a red band across a lost one */
.theme-poster .dci { border: 0; border-radius: 0; background: var(--ground); box-shadow: 0 0 0 1.5px var(--bone); }
.theme-poster .dc.dead .dci { border: 0; }
.theme-poster .dcn { font-size: 10.5px; color: var(--mut); }
.theme-poster .dc.dead .dcn { text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; }
.theme-poster .strike { left: -2px; right: -2px; top: 50%; height: 7px; margin-top: -3.5px; transform: none; background: var(--signal); box-shadow: none; }
/* ELIMINATED / ตกรอบ: a bold red band straight across the card (or the seat), black type */
.theme-poster .stamp { left: 0; right: 0; top: 48%; width: auto; transform: translateY(-50%); text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.15; letter-spacing: .14em; text-indent: .14em;
  color: var(--black); background: var(--signal); border: 0; border-radius: 0; box-shadow: none; padding: 5px 2px 4px; }
.theme-poster .seatstamp { top: 50%; font-size: 15px; padding: 6px 2px 5px; }
.theme-poster .hand .hrow .bcard .stamp { font-size: clamp(14px, 4.4vw, 19px); font-size: clamp(14px, calc((100cqi - 30px) / 20), 19px); padding: 7px 2px 6px; border: 0; }

/* cards out: a panel band, tracked uppercase role labels; a role with no copy left is a red block */
.theme-poster .cobar { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 0; padding: 7px 6px; margin: 0 0 12px; min-height: 54px;
  background: var(--panel); color: var(--bone); border: 0; border-radius: 0; font-family: var(--body); font-weight: 400; letter-spacing: 0; text-indent: 0; }
.theme-poster .cochip { border: 0; border-radius: 0; padding: 3px 2px 2px; }
.theme-poster .coh { gap: 4px; }
.theme-poster .cochip img.art.rg { width: 15px; height: 20px; border-radius: 0; }
.theme-poster .cochip .ic.rg { color: var(--bone); }
.theme-poster .con { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--bone); }
.theme-poster .cochip.some .con { color: var(--bone); }
.theme-poster .cnm { font-family: var(--display); font-weight: 600; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
@media (max-width: 350px) { .theme-poster .cnm { font-size: 8.5px; letter-spacing: .03em; } }
.theme-poster .cochip.gone { background: var(--signal); }
.theme-poster .cochip.gone :is(.con, .cnm, .ic.rg) { color: var(--black); }
.theme-poster .corow { background: var(--item); color: var(--ink); border: 0; border-left: 5px solid var(--bar); border-radius: 0; }
.theme-poster .corow img.art.rg { width: 36px; height: 48px; border-radius: 0; box-shadow: 0 0 0 1.5px var(--bone); }
.theme-poster .corow.gone { border-left-color: var(--signal); }
.theme-poster .corow .cot b { font-family: var(--display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-poster .cogone { background: var(--signal); color: var(--black); border-radius: 0; font-family: var(--display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* the event card: a panel block while it only reports who is deciding; an open window turns it to a bone panel
   with the red edge bar and the countdown badge — the one thing on screen you must act on */
.theme-poster .event { position: relative; background: var(--panel); border: 0; border-left: 5px solid var(--bar); border-radius: 0; box-shadow: none; padding: 12px 14px 14px; margin: 12px 0 14px; }
.theme-poster .event.w-open { background: var(--bone); border-left: 8px solid var(--signal); padding: 14px 14px 14px; }
.theme-poster .ev-meta { justify-content: flex-start; gap: 0; margin-bottom: 8px; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .3em; color: var(--mut); }
.theme-poster .ev-meta > span + span::before { content: "·"; margin: 0 .5em 0 .7em; letter-spacing: 0; }
.theme-poster .ev-meta .ic { display: none; }
.theme-poster .ev-act { color: var(--mut); }
/* status sentences ("Bee's turn — choosing an action…") stay in the body face; the claim itself (.wtxt) is the title line */
.theme-poster .ev-line { font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.35; }
.theme-poster .eff { color: var(--mut); }
.theme-poster .waiting { color: var(--mut); font-weight: 700; }
/* "Waiting on …" and friends breathe gently here (never below 4.5:1); still off under reduced motion */
.theme-poster .pulse { animation-name: posterPulse; }
@keyframes posterPulse { 0%, 100% { opacity: 1; } 50% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .theme-poster .pulse { animation: none; } }
.theme-poster .wbar { border-left: 0; padding-left: 0; }
/* the claim: big Jost 800 caps, the role in red; the first line keeps clear of the countdown */
.theme-poster .wtxt { font-family: var(--display); font-weight: 800; font-size: clamp(25px, 7.8vw, 31px); line-height: 1.04; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.theme-poster .wtxt::before { content: ""; float: right; width: 54px; height: 1.1em; }
.theme-poster .wtxt .who { font-weight: 800; }
.theme-poster .wtxt .rl { color: var(--acc); }
.theme-poster .wtxt .rl .rg { display: none; }
.theme-poster .wtxt .eff { display: block; margin-top: 8px; font-family: var(--body); font-weight: 500; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.theme-poster .wtxt .eff .who { font-weight: 700; }
.theme-poster .wq { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .16em; color: var(--acc); }
/* the countdown: a black disc in a bone ring that runs down, a thin red ring outside */
.theme-poster .event.w-open .cring { position: absolute; right: 12px; top: 12px; width: 52px; height: 52px; z-index: 1;
  background: conic-gradient(var(--bone) calc(var(--f) * 1turn), #3a3632 0); box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--signal); }
.theme-poster .event.w-open .cring::before { inset: 4px; background: var(--black); }
.theme-poster .event.w-open .cring::after { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--bone); }
.theme-poster .wnote { color: var(--mut); }
.theme-poster .wbtns { gap: 10px; margin-top: 14px; }
.theme-poster .wbtns > button { font-size: 16px; letter-spacing: .2em; text-indent: .2em; padding: 12px 6px; min-height: 50px; }
.theme-poster .wbtns > button.sec { background: var(--black); color: var(--bone); border: 0; }
.theme-poster .wbtns button.chal { background: var(--signal); color: var(--black); }
/* the window's answer buttons are words only (ALLOW / CHALLENGE): the ✓ / ⚠ glyphs made CHALLENGE wrap */
.theme-poster .wbtns > button:not(.blk) > .ic { display: none; }
.theme-poster .wbtns button.blk { background: transparent; color: var(--black); border: 2px solid var(--black); border-left: 8px solid var(--signal); font-size: 15px; letter-spacing: .1em; text-indent: 0; }
.theme-poster .wbtns button.blk .rg { color: var(--signal-ink); }
.theme-poster .wdone { color: var(--ok); }
.theme-poster .wwait { color: var(--mut); }
.theme-poster .wdot .av { border: 2px solid transparent; }
.theme-poster .wdot.on .av { border-color: var(--ink); box-shadow: none; }
.theme-poster .wdot .dk { background: var(--bg); color: var(--ink); border-radius: 0; }
.theme-poster .nudgebtn { font-size: 13px; }

/* last challenge: a panel strip, its verdict in the left bar */
.theme-poster .lcbar { background: var(--panel); color: var(--ink); border: 0; border-left: 6px solid var(--mustard); border-radius: 0; }
.theme-poster .lcbar.lc_shown { border-left: 6px solid var(--bone); }
.theme-poster .lcbar.lc_no { border-left: 6px solid var(--signal); }
.theme-poster .lcbar.lc_pending { border-left: 6px solid var(--mustard); }

/* your hand: "YOUR CARDS" in tracked red caps, then the two big portrait cards in bone frames. The hand reaches
   6 px into the page gutter and is a size container, so the cards are sized from the room it really has (100cqi;
   the dev table's narrower phones too): (content − 12 gap − 18 slack) / 2 — 170 px on a 390 px phone, 155 px at
   360 px, 200 px at most (older browsers without cqi: the same from 100vw). */
.theme-poster .panel.hand { position: relative; background: transparent; padding: 4px 0 2px; margin: 22px -6px 0; container-type: inline-size; }
.theme-poster .hand > .tag { margin: 0 0 10px 6px; }
.theme-poster .hand .hcards { border: 0; box-shadow: none; background: transparent; }
.theme-poster .hand .hcards:active:not(:disabled) { transform: none; }
.theme-poster .hand .hrow { gap: 12px; padding: 2px 0 10px; }
.theme-poster .hand .hrow .hcards { gap: 12px; padding: 0; } /* no side padding: a dead card beside it sits where a second live card would */
.theme-poster .hand .hcards:focus-visible { outline-offset: 4px; }
.theme-poster .hand .hrow .bcard { width: clamp(108px, calc((min(100vw, 560px) - 50px) / 2), 200px); width: clamp(108px, calc((100cqi - 30px) / 2), 200px); border-radius: 0; }
.theme-poster .hand .hrow.many .bcard { width: clamp(84px, calc((min(100vw, 560px) - 60px) / 3), 132px); width: clamp(84px, calc((100cqi - 40px) / 3), 132px); height: auto; border-radius: 0; }
/* a card: a bone frame, flat (no tilt, no shadow) */
.theme-poster .bcard { border-radius: 0; }
.theme-poster .bcard.face, .theme-poster .bcard.back { border: 3px solid var(--bone); box-shadow: none; }
.theme-poster .bcard.face { background: var(--panel); color: var(--bone); }
.theme-poster .bcard.face .rg { color: var(--signal); }
.theme-poster .bcard.back { background: repeating-linear-gradient(45deg, var(--signal) 0 7px, #9e2a17 7px 14px); color: rgba(242, 236, 224, .55); }
.theme-poster .bcard.back.pic { background: var(--panel); }
.theme-poster .bcard .bn { font-family: var(--display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.theme-poster .bcard .bc, .theme-poster .bcard.face .bc { color: var(--mut); }
/* the name sits straight on the picture: bone caps over a soft dark fade across the card's lowest ~30%, a thin
   shadow for bright art, a short red underline; no plate, no bar behind it (classic cards need no second line) */
.theme-poster .bcard.face.pic .bn { width: 100%; padding: max(12px, calc(40% - 34px)) 2px 9px; background: var(--fade); color: var(--bone);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .5); text-indent: .14em; line-height: 1.15; }
.theme-poster .bcard.face.pic .bn::after { content: ""; display: block; width: 24px; height: 3px; margin: 5px auto 0; background: var(--signal); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.theme-poster .bcard.face.pic .bc { background: rgba(12, 12, 12, .9); color: var(--mut); }
.theme-poster .bcard.face.pic.c-classic .bc { display: none; }
/* the name follows the card (≈ a twentieth of the room: AMBASSADOR, tracked, is ≈ 8.5 em, so it always fits whole) */
.theme-poster .hand .hrow .bcard .bn, .theme-poster .hand .hrow .bcard.face.pic .bn { font-size: clamp(13px, 4.3vw, 18px); font-size: clamp(13px, calc((100cqi - 30px) / 20), 18px); }
.theme-poster .hand .hrow .bcard.face.pic .bn { padding-bottom: 11px; }
.theme-poster .hand .hrow.many .bcard .bn, .theme-poster .hand .hrow.many .bcard.face.pic .bn { font-size: 11px; letter-spacing: .08em; text-indent: .08em; }
.theme-poster .bcard.dead { border-color: var(--bone); }
.theme-poster .bcard.dead > :not(.stamp) { filter: grayscale(1); opacity: .62; }
.theme-poster .bcard.oop { border-style: dashed; }
.theme-poster .ootag, .theme-poster .bclbl { background: var(--black); color: var(--bone); border: 1.5px solid var(--bone); border-radius: 0; font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.theme-poster .hand .peekhint, .theme-poster .hand .mut { color: var(--mut); }

/* your turn: the action list (a bone panel with the red edge — you must act on it) */
.theme-poster .panel.acts { background: var(--bone); border-left: 8px solid var(--signal); }
.theme-poster .aopts { gap: 8px; }
.theme-poster .aopt { background: var(--item); color: var(--ink); border: 0; border-left: 5px solid var(--black); border-radius: 0; box-shadow: none; }
.theme-poster .c-gen { --cc: var(--ink); }
.theme-poster .aopt .aoh { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .1em; }
.theme-poster .aopt .rg { color: var(--cls); }
.theme-poster .aopt.c-gen .rg { color: var(--ink); }
.theme-poster .aopt .rtxt { color: var(--ink); }
.theme-poster .aopt:disabled { opacity: .5; }
.theme-poster .cost { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .06em; color: var(--black); background: var(--mustard); border-radius: 0; padding: 1px 7px 0; line-height: 1.6; }
.theme-poster .taxt { color: var(--hot); }
.theme-poster .aopt .why, .theme-poster .popt .why { color: var(--warn); }

/* dock + log + sheets' contents */
.theme-poster .dock { gap: 8px; margin: 14px 0; }
.theme-poster .dock button { flex: 1 1 auto; white-space: nowrap; font-size: 13px; line-height: 1.15; letter-spacing: .1em; text-indent: .1em; padding: 8px 6px; }
@media (max-width: 330px) { .theme-poster .dock { flex-wrap: wrap; } }
.theme-poster .log li { border-bottom: 1px solid var(--bar); }
.theme-poster .log li.lg-turn { color: var(--mut); font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .24em; }
.theme-poster .log li.lg-lose, .theme-poster .log li.lg-out, .theme-poster .log li.lg-left { color: var(--hot); }
.theme-poster .log li.lg-win { color: var(--mustard); }
/* Roles sheet: black rows, each portrait in a bone frame */
.theme-poster .rcard { background: var(--item); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; }
.theme-poster .rcard .rch { font-family: var(--display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-poster .rcard .rch .rl { font-weight: 800; }
.theme-poster .rcard.pic .rch .rl .rg { display: none; }
.theme-poster .rcard .rch .rl .rg { margin-right: 7px; }
.theme-poster .rcard.pic { grid-template-columns: 72px 1fr; column-gap: 14px; padding: 10px 12px 10px 10px; }
.theme-poster .rcard.pic img.rthumb { width: 72px; height: 96px; border-radius: 0; box-shadow: 0 0 0 2px var(--bone); }
.theme-poster .catlbl { color: var(--cc); }
/* How to play: a black card per step, the scene on a panel inset, the claims in bone speech bubbles */
.theme-poster .htdeck { background: var(--item); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; }
.theme-poster .htdeck h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: .06em; color: var(--ink); }
.theme-poster .htill { background: var(--panel); border-radius: 0; padding: 14px 8px; }
.theme-poster .bcard.mini:is(.face, .back) { border-width: 2px; box-shadow: none; border-radius: 0; }
.theme-poster .bcard.mini.face.pic .bn { padding: 14px 1px 6px; font-size: 10px; letter-spacing: .1em; text-indent: .1em; }
.theme-poster .bcard.mini.face.pic .bn::after { width: 14px; height: 2px; margin-top: 3px; }
.theme-poster .bcard.mini .stamp { font-size: 9px; letter-spacing: .06em; text-indent: .06em; padding: 3px 1px 2px; }
.theme-poster .htq { font-family: var(--display); font-weight: 800; color: var(--bone); }
.theme-poster .htbubble { background: var(--bone); font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; border: 0; border-radius: 0; }
.theme-poster .htbubble::before { border-right-color: var(--bone); }
.theme-poster .htbubble .rl, .theme-poster .htbubble .rl.c-classic { color: var(--signal-ink); }
.theme-poster .htbubble .rl .rg { color: var(--signal-ink); }
.theme-poster .htopt { background: var(--panel); border: 0; border-left: 4px solid var(--bar); border-radius: 0; }
.theme-poster .htopt b { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.theme-poster .htopt img.art.rg { width: 20px; height: 27px; }
.theme-poster .htalt { color: var(--mut); border-top: 1px solid var(--bar); }
.theme-poster .htkey { color: var(--warn); }
.theme-poster .htwho { color: var(--acc); }
.theme-poster .htstamp { color: var(--black); background: var(--signal); border: 0; border-radius: 0; padding: 0 6px; font-family: var(--display); font-weight: 800; letter-spacing: .1em; }
.theme-poster .htdot { width: 10px; height: 10px; border-radius: 0; background: transparent; border: 2px solid var(--edge); }
.theme-poster .htdot.on { background: var(--signal); border-color: var(--signal); box-shadow: none; }

/* ── game over: the winner's panel, then every card as a small portrait ────── */
.theme-poster .winner { padding: 22px 14px 22px; }
.theme-poster .winner .tag { margin: 14px 0 4px; }
.theme-poster .winner h2 { position: relative; padding-bottom: 14px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: .04em; color: var(--bone); overflow-wrap: anywhere; }
.theme-poster .winner h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 6px; margin-left: -32px; background: var(--signal); }
.theme-poster .winner h2 .who { color: var(--signal); }
.theme-poster .panel.rv > .tag { margin-bottom: 4px; }
.theme-poster .rvrow { border-bottom: 1px solid var(--bar); align-items: center; padding: 10px 0; }
.theme-poster .rvrow .nm { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); align-self: center; }
.theme-poster .rvrow.win .nm { color: var(--mustard); }
.theme-poster .rvcards { gap: 8px; }
/* each card a small portrait in a bone frame, its name straight on the picture (like your hand) */
.theme-poster .mcard { position: relative; display: block; width: 78px; height: 104px; padding: 0; overflow: hidden; border: 2px solid var(--bone); border-radius: 0;
  background: var(--panel); color: var(--bone); font-size: 10px; line-height: 1.2; }
.theme-poster .mcard img.art.rg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.theme-poster .mcard .ic.rg { display: block; width: 28px; height: 28px; margin: 18px auto 0; color: var(--signal); }
.theme-poster .mcard > span:not(.mstamp) { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 1px 5px; text-align: center; background: var(--fade);
  font-family: var(--display); font-weight: 800; font-size: 9px; letter-spacing: .02em; text-indent: .02em; text-transform: uppercase; color: var(--bone);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85); white-space: nowrap; overflow: hidden; }
.theme-poster .mcard.lost { border-color: var(--bone); }
.theme-poster .mcard.lost > :not(.mstamp) { filter: grayscale(1); opacity: .62; }
.theme-poster .mcard.lost > span:not(.mstamp) { text-decoration: none; }
.theme-poster .mstamp { position: absolute; left: 0; right: 0; top: 38%; z-index: 1; transform: translateY(-50%); text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 9px; letter-spacing: .06em; text-indent: .06em; color: var(--black); background: var(--signal); border: 0; border-radius: 0; padding: 3px 1px 2px; }
.theme-poster .mcard.aside, .theme-poster .mcard.oop { border-style: dashed; }
.theme-poster .lgk { border-radius: 0; border-width: 1.5px; border-color: var(--ink); }

/* ── the action announcer: banners are panel slips with a red left bar; a splash is a bone card with the red edge ── */
.theme-poster .annb { background: var(--panel); color: var(--ink); border: 0; border-left: 8px solid var(--signal); border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .65); }
.theme-poster .annb.big { border-left-color: var(--signal); }
.theme-poster .annb.big.k-ok { border-left-color: var(--bone); }
.theme-poster .annb.big.k-win { border-left-color: var(--mustard); }
.theme-poster .annpic { border: 0; border-radius: 0; background: var(--ground); box-shadow: 0 0 0 1.5px var(--bone); }
.theme-poster .annarr, .theme-poster .annsep { color: var(--mut); }
.theme-poster .anns { background: rgba(12, 12, 12, .86); }
.theme-poster .annscard { background: var(--bone); border: 0; border-left: 8px solid var(--signal); border-radius: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); padding: 16px 16px 12px; }
/* a portrait splash: the painting on a black band across the top of the card, in a bone frame */
.theme-poster .annscard.port { padding-top: 0; overflow: hidden; }
.theme-poster .annscard.port .annport { margin: 0 -16px 14px; width: auto; height: 236px; border: 0; border-radius: 0; box-shadow: none; background: var(--black); overflow: visible; }
.theme-poster .annscard.port .annport img.cimg { inset: auto; left: 50%; top: 16px; width: 153px; height: 204px; transform: translateX(-50%); border: 3px solid var(--bone); border-radius: 0; }
.theme-poster .annscard.port .annport > .ic.rg { color: var(--signal); }
.theme-poster .annscard.port .annport .stamp { left: calc(50% - 76px); right: calc(50% - 76px); top: 52%; font-size: 18px; padding: 7px 2px 6px; }
.theme-poster .annscard.port .annport .annx { right: calc(50% - 90px); top: 6px; }
.theme-poster .annport.dead img, .theme-poster .annport.bad img { filter: grayscale(1); opacity: .7; }
.theme-poster .annbig { width: 84px; height: 84px; border-radius: 0; background: var(--black); border: 0; }
.theme-poster .annbig .ic { color: var(--bone); }
.theme-poster .k-coup .annbig { background: var(--signal); }
.theme-poster .k-coup .annbig .ic { color: var(--black); }
.theme-poster .k-out .annbig .ic { color: var(--signal); }
.theme-poster .k-win .annbig { background: var(--mustard); }
.theme-poster .k-win .annbig .ic { color: var(--black); }
.theme-poster .annx { background: var(--signal); color: var(--black); border-radius: 0; box-shadow: none; font-family: var(--display); font-weight: 800; }
.theme-poster .annvs { font-family: var(--display); font-weight: 800; letter-spacing: .12em; color: var(--bone); background: var(--black); border: 0; border-radius: 0; padding: 1px 6px 0 8px; }
.theme-poster .annavs .annto { color: var(--acc); }
.theme-poster .anntitle { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.06; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.theme-poster .anntitle .who { font-weight: 800; }
.theme-poster .anntitle .rl, .theme-poster .anntitle .rl.c-classic { color: var(--acc); }
.theme-poster .annsub { color: var(--ink); }
.theme-poster .annhint { color: var(--mut); font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.theme-poster .nudgeflash { border-color: var(--signal); box-shadow: inset 0 0 60px rgba(232, 69, 44, .5); }

/* ── cinematics: Coup Classic, every phone the same (app.js cinePlan → cineStart) ──────────────────────────
   A Coup carried out: a film frame — black letterbox bars with a red rule on their inner edge — closes over the
   dimmed table, a red flash, COUP (Jost 800, bone, over the logo's red bar) slams in and the frame shakes, the
   actor faces the target, a red slash across the target's avatar; the frame opens again and the target's seat
   flickers red twice (.seat.cflick). An assassination landed: the screen dims, one dagger stroke streaks across
   the centre with a flash, the target ASSASSINATED. GSAP moves everything (transform / opacity, never layout);
   the only CSS animation is the seat's flicker. Full screen takes the tap that skips it; .compact is a strip in
   the banner band (top, or the bottom like a banner) that takes no taps and covers nothing you act on. */
.theme-poster .cine { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; pointer-events: auto; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.theme-poster .cine.out { opacity: 0; transition: opacity .16s ease-in; pointer-events: none; }
.theme-poster .cine .csr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.theme-poster .cframe { position: absolute; inset: 0; }
.theme-poster .cdim { position: absolute; inset: -16px; background: rgba(12, 12, 12, .9); }
.theme-poster .cbar { position: absolute; left: -16px; right: -16px; height: calc(12% + 16px); background: #050505; }
.theme-poster .cbar.ctop { top: -16px; box-shadow: inset 0 -4px 0 var(--signal); }
.theme-poster .cbar.cbot { bottom: -16px; box-shadow: inset 0 4px 0 var(--signal); }
.theme-poster .cflash { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 238, 220, .92), rgba(232, 69, 44, .86) 46%, rgba(140, 18, 12, .82)); }
.theme-poster .cstage { position: absolute; left: 16px; right: 16px; top: 12%; bottom: 12%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
/* the big word: the logo's lettering, its red bar under the start of the word (sized by the phone's width: cqi, the
   cinematic being the container — so a dev-table frame or a zoomed page sizes it as a phone would) */
.theme-poster .cword { position: relative; font-size: clamp(70px, 27cqi, 140px); line-height: 1; }
.theme-poster .cword b { display: block; padding: 0 0 .2em; font-family: var(--display); font-weight: 800; letter-spacing: .06em; margin-right: -.06em;
  text-transform: uppercase; color: var(--bone); white-space: nowrap; }
.theme-poster .cline { position: absolute; left: .04em; bottom: 0; width: 80%; height: .12em; background: var(--signal); transform-origin: 0 50%; }
.theme-poster .cduel { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.theme-poster .cwho { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 1 40%; min-width: 0; }
.theme-poster .cav { position: relative; display: block; }
.theme-poster .cav .av { width: 84px; height: 84px; font-size: 47px; background: var(--bone2); box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--bone); }
.theme-poster .cnm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: .1em; margin-right: -.1em; text-transform: uppercase; color: var(--bone); }
.theme-poster .cvs { display: block; flex: none; width: 42px; height: 42px; color: var(--signal); }
.theme-poster .cvs .ic { display: block; width: 100%; height: 100%; }
/* the slash across the target's avatar: a red stroke with a hot core (as the Assassin's card slash), and a hit flash */
/* (the wrapper is turned; GSAP only scales the stroke inside it, from its left end) */
.theme-poster .cslash { position: absolute; left: -36%; right: -36%; top: 50%; height: 15px; margin-top: -7.5px; transform: rotate(-38deg); }
.theme-poster :is(.cslash, .cdagger) > i { display: block; width: 100%; height: 100%; border-radius: 50%; transform-origin: 0 50%; }
.theme-poster .cslash > i { background: linear-gradient(90deg, transparent 2%, #7a0d12 14%, #e8452c 32%, #fff6e8 50%, #e8452c 68%, #7a0d12 86%, transparent 98%);
  box-shadow: 0 0 14px 3px rgba(240, 70, 50, .85), 0 0 3px 1px rgba(255, 220, 200, .9); }
.theme-poster .chit { position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 240, 224, .95), rgba(232, 69, 44, .7) 60%, rgba(232, 69, 44, 0)); }
/* the assassination: one dagger stroke across the centre (bottom-left → top-right), a smaller stage */
.theme-poster .cdagger { position: absolute; left: -20%; width: 140%; top: 44%; height: 16px; margin-top: -8px; transform: rotate(-27deg); }
.theme-poster .cdagger > i { background: linear-gradient(90deg, transparent 0, #5c0a0d 10%, #c9301f 28%, #ff7a5c 44%, #fff8ee 52%, #e8452c 66%, #7a0d12 86%, transparent 100%);
  box-shadow: 0 0 22px 5px rgba(232, 69, 44, .75), 0 0 4px 1px rgba(255, 226, 210, .95); }
.theme-poster .k-assassin .cstage { gap: 20px; }
.theme-poster .k-assassin .cav .av { width: 92px; height: 92px; font-size: 52px; }
.theme-poster .k-assassin .cnm { font-size: 22px; }
.theme-poster .k-assassin .cword { font-size: clamp(30px, 10cqi, 54px); }
.theme-poster .k-assassin .cword b { letter-spacing: .08em; margin-right: -.08em; }
.theme-poster .k-assassin .cwho { flex: none; max-width: 100%; }
/* compact: a banner-sized slip in the top band (or at the bottom), no dim, nothing to tap */
.theme-poster .cine.compact { inset: auto; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); width: min(528px, calc(100% - 32px)); height: 70px;
  transform: translateX(-50%); overflow: visible; pointer-events: none; cursor: default; }
.theme-poster .cine.compact.bottom { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.theme-poster .cbox { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 14px; overflow: hidden; background: var(--panel);
  border-left: 8px solid var(--signal); box-shadow: 0 10px 30px rgba(0, 0, 0, .65); }
.theme-poster .cbox .cword { flex: none; font-size: 40px; }
.theme-poster .cbox .cword b { padding-bottom: .16em; }
.theme-poster .cbox .cduel { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; }
.theme-poster .cbox .cwho { flex: 0 1 auto; gap: 3px; max-width: 42%; }
.theme-poster .cbox .cav .av { width: 34px; height: 34px; font-size: 19px; box-shadow: 0 0 0 1.5px var(--bone); }
.theme-poster .cbox .cnm { font-size: 10px; letter-spacing: .08em; margin-right: -.08em; }
.theme-poster .cbox .cvs { width: 18px; height: 18px; }
.theme-poster .cbox .cslash { height: 6px; margin-top: -3px; }
.theme-poster .cbox .chit { inset: -6px; }
.theme-poster .k-assassin .cbox .cwho { flex-direction: row; gap: 8px; max-width: 46%; }
.theme-poster .k-assassin .cbox .cnm { font-size: 13px; }
.theme-poster .k-assassin .cbox .cword { font-size: 21px; margin-left: auto; }
.theme-poster .cbox .cdagger { left: -5%; width: 110%; top: 50%; height: 8px; margin-top: -4px; transform: rotate(-9deg); }
/* the target's seat: two red flickers as the frame opens (--cfd: when, --cfk: the speed, both from app.js) */
.theme-poster .seat.cflick::before { content: ""; position: absolute; inset: -2px; z-index: 4; pointer-events: none; background: var(--signal); opacity: 0;
  box-shadow: 0 0 18px 2px rgba(232, 69, 44, .7); animation: posterCineFlick calc(.64s * var(--cfk, 1)) linear var(--cfd, 0ms) both; }
@keyframes posterCineFlick { 0% { opacity: 0; } 6%, 28% { opacity: .88; } 34%, 54% { opacity: 0; } 60%, 82% { opacity: .88; } 88%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .theme-poster .cine, .theme-poster .seat.cflick::before { display: none; } }

/* ── footer: the credits — small tracked caps ─────────────────────────── */
.theme-poster .foot { gap: 0 14px; margin-top: 22px; }

/* ── new-card effects: your own phone, Coup Classic (app.js newCardFx / fxCard) ─────────────────────────────
   The deal (both cards, 400 ms apart: --fxd) and the challenge swap (the new card): one element per card in its
   hand slot (.fxc — a hand card's size), raised over its neighbour while it plays. .fxbox carries the
   card's entrance, .fxflip turns it face down at 2.05 s (.fxup: the hand was open, so it stays face up), .fxclip
   is a card-shaped window for light over the face, and .fxp holds the particles: behind the card (.fxb) or in
   front (.fxf). Everything ends by 2.5 s; app.js then renders the slot as usual (FX_MS 2560). transform /
   opacity only; nothing changes the layout; particles stay within ~45 px of the card. Square cards (--r 0) like
   the rest of the theme; the coins are the seats' flat mustard discs. */
.theme-poster .hand .hcards > .fxc { position: relative; z-index: 3; --fxd: 0ms; }
.theme-poster .fxc .fxbox { position: absolute; inset: 0; animation: posterFxIn .42s cubic-bezier(.2, .8, .3, 1) var(--fxd) both; }
.theme-poster .fxc .fxflip { position: absolute; inset: 0; transform-style: preserve-3d; animation: posterFxFlip .45s cubic-bezier(.45, 0, .25, 1) calc(var(--fxd) + 2.05s) both; }
.theme-poster .fxc.fxup .fxflip { animation: none; }
.theme-poster .fxc.fxup:not(.fxg) .fxback { display: none; }
.theme-poster .hand .hrow .fxc .fxs { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.theme-poster .hand .hrow .fxc .fxback { transform: rotateY(180deg); }
.theme-poster .fxc .fxclip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r); pointer-events: none; }
.theme-poster .fxc .fxp { position: absolute; inset: 0; pointer-events: none; }
.theme-poster .fxc .fxq { position: absolute; display: block; z-index: 3; }
.theme-poster .fxc .fxq.fxb { z-index: -1; }
.theme-poster .fxq svg { display: block; width: 100%; height: 100%; }
@keyframes posterFxIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes posterFxFlip {
  0% { transform: perspective(900px) rotateY(0deg) scale(1); }
  50% { transform: perspective(900px) rotateY(90deg) scale(1.05); }
  100% { transform: perspective(900px) rotateY(180deg) scale(1); }
}
/* a coin (Duke, Captain): a flat mustard disc with a darker rim, spinning on its edge */
.theme-poster .fxcoin > i, .theme-poster .fxspill > i > i { display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e9b43b 0 50%, #c99223 52% 60%, #e9b43b 62%);
  box-shadow: inset 0 0 0 1.5px #8a5f0e, 1px 1px 0 rgba(12, 12, 12, .55);
  animation: posterFxSpin var(--sp, .4s) linear infinite; }
@keyframes posterFxSpin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.16); } }

/* Duke — the card rises in a purple velvet glow; gold coins burst up from behind it and rain down over it; a shimmer */
.theme-poster .fx-duke .fxbox { animation: posterFxRise .55s cubic-bezier(.2, .9, .3, 1) var(--fxd) both; }
@keyframes posterFxRise { 0% { opacity: 0; transform: translateY(34px) scale(.92); } 45% { opacity: 1; } 70% { transform: translateY(-6px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.theme-poster .fxglow { inset: 0; border-radius: var(--r); background: #5a2290;
  box-shadow: 0 0 16px 5px rgba(196, 128, 250, .95), 0 0 38px 14px rgba(132, 58, 204, .7), 0 -18px 44px 8px rgba(110, 40, 180, .45);
  animation: posterFxGlow 1.95s ease-out var(--fxd) both; }
@keyframes posterFxGlow { 0% { opacity: 0; transform: scale(.8); } 24% { opacity: 1; transform: scale(1.03); } 64% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
.theme-poster .fxcoin { top: 20%; width: 18px; height: 18px; margin: -9px 0 0 -9px; animation: posterFxCoin 1.35s linear calc(var(--fxd) + var(--d)) both; }
@keyframes posterFxCoin {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); z-index: -1; animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  6% { opacity: 1; }
  34% { transform: translate(var(--x), var(--y)) scale(1); z-index: -1; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  35% { z-index: 3; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x2), var(--y2)) scale(.9); z-index: 3; }
}
.theme-poster .fxspark { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; color: #fff3c4; fill: currentColor; animation: posterFxTwinkle .55s ease-in-out calc(var(--fxd) + var(--d)) both; }
.theme-poster .fxspark svg { filter: drop-shadow(0 0 3px rgba(255, 214, 110, .95)); }
@keyframes posterFxTwinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
.theme-poster .fxsheen { position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; background: linear-gradient(100deg, transparent 0 28%, rgba(255, 242, 206, .6) 50%, transparent 72%);
  animation: posterFxSheen .6s ease-in-out calc(var(--fxd) + 1s) both; }
@keyframes posterFxSheen { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(260%) skewX(-12deg); } }

/* Assassin — the shadows close in around the card; a crimson slash streaks across it with a sharp flash; smoke */
.theme-poster .fx-assassin .fxbox { animation: posterFxSneak .42s cubic-bezier(.2, .8, .3, 1) var(--fxd) both; }
@keyframes posterFxSneak { from { opacity: 0; transform: translateX(-16px) scale(.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
.theme-poster .fxdim { inset: 0; border-radius: var(--r); background: rgba(5, 4, 4, .85); box-shadow: 0 -4px 14px 22px rgba(5, 4, 4, .8); animation: posterFxDim 1.95s ease-in-out var(--fxd) both; }
@keyframes posterFxDim { 0% { opacity: 0; } 14% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
.theme-poster .fxslash { left: -25%; width: 150%; top: 50%; height: 13px; margin-top: -6.5px; transform: rotate(-53deg); }
.theme-poster .fxslash > i { display: block; width: 100%; height: 100%; border-radius: 50%; transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent 2%, #7a0d12 14%, #e8452c 32%, #fff6e8 50%, #e8452c 68%, #7a0d12 86%, transparent 98%);
  box-shadow: 0 0 14px 3px rgba(240, 70, 50, .8), 0 0 3px 1px rgba(255, 220, 200, .9);
  animation: posterFxSlash .95s cubic-bezier(.2, .9, .3, 1) calc(var(--fxd) + .5s) both; }
@keyframes posterFxSlash { 0% { opacity: 1; transform: scaleX(0) scaleY(1); } 20% { transform: scaleX(1) scaleY(1); } 45% { opacity: 1; transform: scaleX(1) scaleY(.55); } 100% { opacity: 0; transform: scaleX(1) scaleY(.25); } }
.theme-poster .fxflash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 244, 228, .95), rgba(224, 80, 58, .6) 62%, rgba(110, 12, 16, .35));
  animation: posterFxFlash .42s ease-out calc(var(--fxd) + .66s) both; }
@keyframes posterFxFlash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
.theme-poster .fxsmoke { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(128, 120, 112, .75), rgba(70, 64, 60, .5) 50%, rgba(30, 28, 26, 0));
  animation: posterFxSmoke 1s ease-out calc(var(--fxd) + var(--d)) both; }
@keyframes posterFxSmoke { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(var(--sc)); } }

/* Captain — the card swings in like a sack of loot hauled aboard (a pendulum settling, from the middle of the
   hand); a few coins spill off toward the middle */
.theme-poster .fx-captain .fxbox { transform-origin: 50% -16%; animation: posterFxSwing 1.25s ease-in-out var(--fxd) both; }
.theme-poster .hcards > .fx-captain:nth-child(odd) { --sw: -1; }
.theme-poster .hcards > .fx-captain:nth-child(even) { --sw: 1; }
@keyframes posterFxSwing {
  0% { opacity: 0; transform: translateY(-28px) rotate(calc(var(--sw, 1) * 11deg)); }
  14% { opacity: 1; }
  32% { transform: translateY(0) rotate(calc(var(--sw, 1) * -6deg)); }
  52% { transform: translateY(0) rotate(calc(var(--sw, 1) * 3.4deg)); }
  70% { transform: translateY(0) rotate(calc(var(--sw, 1) * -1.6deg)); }
  86% { transform: translateY(0) rotate(calc(var(--sw, 1) * .6deg)); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.theme-poster .fxspill { top: 93%; width: 21px; height: 21px; margin: -10.5px 0 0 -10.5px; animation: posterFxSpillX .9s cubic-bezier(.25, .6, .5, 1) calc(var(--fxd) + var(--d)) both; }
.theme-poster .fxspill > i { display: block; width: 100%; height: 100%; animation: posterFxSpillY .9s linear calc(var(--fxd) + var(--d)) both; }
@keyframes posterFxSpillX { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--x)); } }
@keyframes posterFxSpillY {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.3, .6, .6, 1); }
  26% { transform: translateY(-22px); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  100% { transform: translateY(var(--y)); }
}

/* Ambassador — sealed envelopes flutter out from behind the card and circle it once (an ellipse: two eased
   axes a quarter turn apart, 1.24 s a turn); a red wax seal stamps onto a corner, then fades */
.theme-poster .fx-ambassador .fxbox { animation: posterFxIn .42s cubic-bezier(.2, .8, .3, 1) var(--fxd) both, posterFxThump .24s ease-out calc(var(--fxd) + 1.2s); }
@keyframes posterFxThump { 0% { transform: scale(1); } 35% { transform: scale(.965) rotate(-.6deg); } 100% { transform: scale(1) rotate(0deg); } }
.theme-poster .fxorb { left: 6%; right: 6%; top: -9%; bottom: -9%; animation: posterFxOrb 1.5s ease-out calc(var(--fxd) + .2s) both; }
@keyframes posterFxOrb { 0% { opacity: 0; transform: scale(.2); z-index: -1; } 18% { opacity: 1; transform: scale(1); z-index: -1; } 19% { z-index: 3; } 84% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); z-index: 3; } }
.theme-poster .fxorb > i, .theme-poster .fxorb > i > i { position: absolute; inset: 0; display: block; }
.theme-poster .fxorb .fxox { animation: posterFxOx .62s ease-in-out calc(var(--fxd) + .2s + var(--ph)) infinite alternate both; }
.theme-poster .fxorb .fxoy { animation: posterFxOy .62s ease-in-out calc(var(--fxd) + .2s + var(--ph) - .93s) infinite alternate both; }
@keyframes posterFxOx { from { transform: translateX(-50%); } to { transform: translateX(50%); } }
@keyframes posterFxOy { from { transform: translateY(-50%); } to { transform: translateY(50%); } }
.theme-poster .fxenv { position: absolute; left: 50%; top: 50%; width: 32px; height: 22px; margin: -11px 0 0 -16px; filter: drop-shadow(2px 2px 0 rgba(12, 12, 12, .5));
  animation: posterFxFlutter var(--fl, .26s) ease-in-out infinite alternate; }
@keyframes posterFxFlutter { from { transform: rotate(-14deg) scaleY(1); } to { transform: rotate(12deg) scaleY(.76); } }
.theme-poster .fxseal { right: 3%; top: 3%; width: 34%; aspect-ratio: 1; animation: posterFxStamp 1s ease-out calc(var(--fxd) + 1.05s) both; }
.theme-poster .fxseal svg { filter: drop-shadow(2px 3px 0 rgba(12, 12, 12, .55)); }
@keyframes posterFxStamp {
  0% { opacity: 0; transform: scale(2.4) rotate(-28deg); }
  16% { opacity: 1; transform: scale(.86) rotate(6deg); }
  24% { transform: scale(1.06) rotate(-2deg); }
  32% { transform: scale(1) rotate(0deg); }
  72% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.04) rotate(0deg); }
}

/* Contessa — a black lace fan (13 blades, gold sticks, bone edges) sweeps open behind the card, a half circle
   against a crimson glow that shows through the lace; crimson rose petals drift down */
.theme-poster .fx-contessa .fxbox { animation: posterFxGrace .55s cubic-bezier(.2, .8, .3, 1) var(--fxd) both; }
@keyframes posterFxGrace { from { opacity: 0; transform: translateY(12px) scale(.95) rotate(-1.5deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); } }
.theme-poster .fxrose { left: -8%; width: 116%; top: -24%; height: 52%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(236, 52, 76, 1), rgba(196, 24, 52, .85) 62%, rgba(120, 10, 30, .3) 88%, rgba(92, 8, 24, 0) 100%);
  transform-origin: 50% 100%; animation: posterFxRose 1.8s ease-out calc(var(--fxd) + .15s) both; }
@keyframes posterFxRose { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.theme-poster .fxfan { left: -6%; width: 112%; top: -20%; height: 42%; }
.theme-poster :is(.fxfan, .fxgfan) > i { position: absolute; left: 43.3%; width: 13.4%; bottom: 0; height: 100%; transform-origin: 50% 100%;
  clip-path: polygon(50% 100%, 0 7%, 10% 2.5%, 25% .4%, 50% 0, 75% .4%, 90% 2.5%, 100% 7%);
  background: radial-gradient(circle at 50% 100%, transparent 0 93.5%, rgba(242, 236, 224, .85) 93.5% 95.5%, transparent 95.5%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(233, 180, 59, .95) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 100% / 100% 58% no-repeat,
    repeating-radial-gradient(circle at 50% 100%, transparent 0 5px, rgba(12, 10, 9, .9) 5px 6.5px),
    radial-gradient(circle, transparent 0 2.3px, rgba(12, 10, 9, .9) 2.8px) 0 0 / 7px 7px,
    radial-gradient(circle at 50% 100%, #7c0c20 0 40%, #c41e3a 72%, #94122a 100%); }
.theme-poster .fxfan > i { animation: posterFxFan 1.6s cubic-bezier(.3, .7, .3, 1) calc(var(--fxd) + .25s) both; }
@keyframes posterFxFan { 0% { opacity: 0; transform: rotate(-84deg); } 8% { opacity: 1; } 38% { transform: rotate(var(--a)); } 74% { opacity: 1; transform: rotate(var(--a)); } 100% { opacity: 0; transform: rotate(var(--a)); } }
.theme-poster .fxpetal { width: 21px; height: 25px; margin-left: -10.5px; animation: posterFxFall var(--t) cubic-bezier(.3, .2, .6, 1) calc(var(--fxd) + var(--d)) both; }
.theme-poster .fxpetal > i { display: block; width: 100%; height: 100%; animation: posterFxSway .5s ease-in-out calc(var(--d) * -1) infinite alternate; }
@keyframes posterFxFall { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--y)); } }
@keyframes posterFxSway { from { transform: translateX(calc(var(--w) * -1)) rotate(-40deg) scaleY(1); } to { transform: translateX(var(--w)) rotate(36deg) scaleY(.7); } }
/* ── v2: GSAP (app.js fxPlan → fxPlay) ──
   A run that starts with GSAP loaded is .fxg: no CSS animation at all; GSAP drives the card (.fxbox: in, swing,
   recoil, thump; .fxflip: the 3D flips), the light over the face (.fxgsheen: the bone sheen at the peak;
   .fxgflash: the Assassin's flash) and the parts it builds into .fxp (.fxpt, centred on x / y, z-index -1 behind
   the card or 3 in front), transform / opacity only. A part is a painted prop (.spr: art/fx-<name>.webp) or the
   drawn shape below. The CSS effect above stays as the fallback (GSAP not loaded yet, or failed). */
.theme-poster .fxc.fxg .fxbox, .theme-poster .fxc.fxg .fxflip { animation: none; }
.theme-poster .fxc.fxg .fxflip { will-change: transform; }
.theme-poster .fxc.fxg .fxpt { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.theme-poster .fxg .fxpt [data-r] { position: absolute; inset: 0; display: block; }
.theme-poster .fxg .fxpt svg, .theme-poster .fxg .fxspr { display: block; width: 100%; height: 100%; }
.theme-poster .fxg .fxspr { object-fit: contain; -webkit-user-drag: none; user-select: none; }
.theme-poster .fxg .fxgsheen { position: absolute; top: -20%; bottom: -20%; left: -64%; width: 46%; /* off the card until GSAP sweeps (and skews) it; no CSS transform: GSAP would add to it */
  background: linear-gradient(90deg, transparent 0 26%, rgba(242, 236, 224, .66) 50%, transparent 74%); }
.theme-poster .fxg .fxgflash { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 246, 232, .95), rgba(232, 69, 44, .55) 62%, rgba(110, 12, 16, .3)); }
/* the Duke's glow, the Assassin's dim, the Contessa's crimson glow behind the fan: always drawn */
.theme-poster .fxg .k-glow [data-r] { background: #5a2290; box-shadow: 0 0 16px 5px rgba(196, 128, 250, .9), 0 0 30px 10px rgba(132, 58, 204, .55); }
.theme-poster .fxg .k-dim [data-r] { background: radial-gradient(var(--vw) var(--vh) at var(--vx) var(--vy), rgba(5, 4, 4, 0) 0 55%, rgba(5, 4, 4, .8) 100%, rgba(5, 4, 4, .42) 165%, rgba(5, 4, 4, .3));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-composite: intersect; } /* feathered edges: the panel's box never shows */
.theme-poster .fxg .k-rose [data-r] { border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(236, 52, 76, .95), rgba(196, 24, 52, .8) 60%, rgba(120, 10, 30, .3) 86%, rgba(92, 8, 24, 0)); }
/* drawn shapes, until the painted props arrive: coins (the seats' mustard; the Captain's doubloon worn, with a cross),
   the slash (a crimson streak along the window), smoke, the fan's lace blades, the SVGs of the CSS effect */
.theme-poster .fxg .fxdisc { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #8a5f0e, 1px 1px 0 rgba(12, 12, 12, .55);
  background: radial-gradient(circle at 50% 50%, #e9b43b 0 50%, #c99223 52% 60%, #e9b43b 62%); }
.theme-poster .fxg .fxdisc.fxdbl { box-shadow: inset 0 0 0 1.5px #5e420c, 1px 1px 0 rgba(12, 12, 12, .55);
  background: linear-gradient(#6b4c12, #6b4c12) 50% 50% / 14% 50% no-repeat, linear-gradient(#6b4c12, #6b4c12) 50% 50% / 50% 14% no-repeat,
    radial-gradient(circle at 50% 50%, #c9a24a 0 54%, #8f6a1c 56% 64%, #b88f36 66%); }
.theme-poster .fxg .k-slash [data-r="w"] { overflow: hidden; }
.theme-poster .fxg .fxpt .fxslc { left: 50%; top: 50%; right: auto; bottom: auto; } /* centred (GSAP: -50% / -50%), its size inline */
.theme-poster .fxg .fxbar { position: absolute; left: 4%; right: 4%; top: 50%; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: linear-gradient(90deg, transparent 2%, #7a0d12 14%, #e8452c 32%, #fff6e8 50%, #e8452c 68%, #7a0d12 86%, transparent 98%);
  box-shadow: 0 0 14px 3px rgba(240, 70, 50, .8), 0 0 3px 1px rgba(255, 220, 200, .9); }
.theme-poster .fxg .fxpuff { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 166, 154, .72), rgba(112, 104, 96, .5) 50%, rgba(40, 36, 34, 0)); }
.theme-poster .fxg .fxgfan { position: absolute; inset: 0; }
.theme-poster .fxgfan > i { transform: rotate(var(--a)); }
.theme-poster .fxg .k-sparkle:not(.spr) svg { fill: #fff3c4; filter: drop-shadow(0 0 3px rgba(255, 214, 110, .95)); }
.theme-poster .fxg :is(.k-envelope, .k-seal, .k-sack):not(.spr) svg { filter: drop-shadow(2px 2px 0 rgba(12, 12, 12, .5)); }

/* app.js never starts an effect under reduced motion; should the setting change mid-effect, the card simply rests */
@media (prefers-reduced-motion: reduce) {
  .theme-poster .fxc .fxp, .theme-poster .fxc .fxclip { display: none; }
  .theme-poster .fxc .fxbox, .theme-poster .fxc .fxflip { animation: none; }
  .theme-poster .fxc:not(.fxup) .fxflip { transform: rotateY(180deg); }
}

/* ── Thai: Jost has no Thai glyphs — every display spot switches to Kanit, never tracked or uppercased (Thai
   script breaks apart under letter-spacing); the smallest labels use Noto Sans Thai bold, which reads faster at
   10–14 px. Last, so it wins every tie. ── */
.theme-poster :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button, .dock button, .seg button, .seg span, .tag, .orr, .slotbtn,
  .aopt .aoh, .seat-h .nm, .prow .nm, .pcard .bn, .ev-meta, .log li.lg-turn, .rcard .rch, .htopt b, .rvrow .nm, .lead .nm, .lead b, .corow .cot b, .cogone, .wq, .htstamp,
  .annvs, .htq):lang(th) {
  font-family: var(--thd); font-weight: 700; letter-spacing: 0; text-indent: 0; text-transform: none;
}
.theme-poster :is(.wtxt, .anntitle, .winner h2, .sheet h2, .htdeck h3, .dline, .htbubble, .stamp, .mstamp, .bcard .bn, .mcard > span, .cword b, .cnm):lang(th) {
  font-family: var(--thd); font-weight: 800; letter-spacing: 0; text-indent: 0; text-transform: none;
}
.theme-poster :is(.linkish, .cost, .cnm, .youtag, .ootag, .bclbl, .annhint):lang(th) {
  font-family: var(--body); font-weight: 700; letter-spacing: 0; text-indent: 0; text-transform: none;
}
.theme-poster :is(.wtxt, .anntitle, .winner h2, .dline, .htbubble) :is(.who, .rl):lang(th) { font-weight: 800; }
.theme-poster :is(button.big, .wbtns > button):lang(th) { font-size: 18px; }
.theme-poster :is(button.sec, button.small-btn, .htnav button):lang(th) { font-size: 17px; }
.theme-poster .dock button:lang(th), .theme-poster button.nudgebtn:lang(th) { font-size: 15px; }
.theme-poster .wbtns button.blk:lang(th) { font-size: 17px; }
.theme-poster :is(.seg button, .seg span):lang(th) { font-size: 15px; }
.theme-poster :is(.tag, .orr):lang(th) { font-size: 14px; }
.theme-poster :is(.slotbtn, .aopt .aoh):lang(th) { font-size: 17px; }
.theme-poster :is(.seat-h .nm, .prow .nm, .rvrow .nm, .lead .nm):lang(th) { font-size: 16px; }
.theme-poster :is(.rcard .rch, .corow .cot b):lang(th) { font-size: 17px; }
.theme-poster :is(.ev-meta, .log li.lg-turn):lang(th) { font-size: 13px; }
.theme-poster .linkish:lang(th) { font-size: 14px; }
.theme-poster .pcard .bn:lang(th) { font-size: 15px; }
.theme-poster .htopt b:lang(th) { font-size: 15px; }
.theme-poster .wq:lang(th) { font-size: 17px; }
.theme-poster .cost:lang(th) { font-size: 12px; }
.theme-poster .cnm:lang(th) { font-size: 10px; }
.theme-poster .youtag:lang(th) { font-size: 11px; }
.theme-poster .sheet h2:lang(th) { font-size: 22px; line-height: 1.35; }
.theme-poster .htdeck h3:lang(th) { font-size: 23px; line-height: 1.35; }
.theme-poster .wtxt:lang(th) { font-size: 25px; line-height: 1.4; }
.theme-poster .wtxt:lang(th)::before { height: 1.2em; }
.theme-poster .anntitle:lang(th) { font-size: 22px; line-height: 1.4; }
.theme-poster .winner h2:lang(th) { font-size: 28px; line-height: 1.35; }
.theme-poster .dline:lang(th) { font-size: 20px; line-height: 1.4; }
.theme-poster .htbubble:lang(th) { font-size: 17px; line-height: 1.4; }
.theme-poster .stamp:lang(th) { line-height: 1.3; }
.theme-poster .hand .hrow .bcard .bn:lang(th), .theme-poster .hand .hrow .bcard.face.pic .bn:lang(th) { font-size: clamp(15px, 4.6vw, 19px); font-size: clamp(15px, calc((100cqi - 30px) / 18), 19px); }
.theme-poster .hand .hrow.many .bcard .bn:lang(th), .theme-poster .hand .hrow.many .bcard.face.pic .bn:lang(th) { font-size: 13px; }
.theme-poster .bcard.mini.face.pic .bn:lang(th) { font-size: 12px; }
.theme-poster .mcard > span:not(.mstamp):lang(th) { font-size: 11px; }
.theme-poster .mstamp:lang(th) { font-size: 10px; }
/* the cinematics' words in Kanit: a little smaller than the Latin caps (the Thai words are longer), never tracked */
.theme-poster :is(.cword b, .cnm):lang(th) { margin-right: 0; }
.theme-poster .cword:lang(th) { font-size: clamp(42px, 14cqi, 72px); line-height: 1.3; }
.theme-poster .k-assassin .cword:lang(th) { font-size: clamp(30px, 9.6cqi, 50px); }
.theme-poster .cbox .cword:lang(th) { font-size: 26px; }
.theme-poster .k-assassin .cbox .cword:lang(th) { font-size: 19px; }
.theme-poster .cnm:lang(th) { font-size: 20px; }
.theme-poster .cbox .cnm:lang(th) { font-size: 11px; }
