/* COUP — the "black & gold art-deco" theme for Rebellion G54: a 1930s deco poster, matching the G54 card back.
   Loaded after poster.css on every page; it only applies under `.theme-deco`, which app.js puts on the page
   (html), the client root and the announcer layer whenever the view's edition is g54 (Coup Classic and the join
   screen wear `.theme-poster` instead — never both). Every selector here is scoped under `.theme-deco`, so
   nothing changes Coup Classic; app.css stays the shared base (its dark steel look is simply never shown once
   this is on).

   The look: a calm near-black ground with very faint vertical gold pinstripes and a soft gold glow at the top
   (no rays, no centre line); dark panels in thin double gold frames (a complete chamfered outer line and an
   inner hairline with open corners); chamfered seats and panels, pointed "plaque" buttons; letter-spaced gold
   section labels between short gold rules; gold coin discs; gold-framed portrait cards with a dark name plate
   under a 3 px stripe in the role's category colour; a gold octagon countdown. Faces: Limelight for the logo,
   Bebas Neue (letter-spaced) for headings, buttons, names and labels, Anton for the big claim lines; Thai has
   no glyphs in any of them, so every display spot switches to Kanit 700 / 800 under :lang(th) (the Thai block
   at the end of this file; Kanit is also the fallback in every display stack). Body text stays Noto Sans Thai:
   it is already on the page for Classic, its looped Thai reads better than Kanit at 13–16 px, and it keeps
   Kanit to two weights.

   Outlined chamfered shapes: clip-path would cut a border at the corners (and a focus ring with it), so
   - panels / seats (never focused): the element is clipped to the chamfer (--oct) and its ::before draws the
     frame as an even-odd ring polygon (--ring: outer chamfer minus the same shape inset by --fb) — complete
     at every corner; the inner hairline is four background lines that stop short of the corners;
   - buttons: never clipped themselves (so :focus-visible outlines show in full); ::before is the fill and
     ::after the ring, both clipped to the pointed plaque (--hex / --hexring) and stacked under the label.

   Contrast (WCAG, on the ground #0e0d0b / the panel top #1b1812): cream 15.7 / 14.3, muted 8.6 / 7.8, gold
   8.9 / 8.1, light gold 12.9 / 11.7, warning orange 9.1 / 8.3; category text: finance 7.1 / 6.5, comms
   6.3 / 5.8, force 5.0 / 4.5, special 6.1 / 5.5; dark ink on gold 8.6 (on the deepest gold 6.1), dark muted
   on gold 4.9; cream on the CHALLENGE scarlet 4.9–5.8. Focus rings: light gold, 2 px, offset 3 px. */

@font-face {
  font-family: "Limelight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/limelight-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: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bebas-neue-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: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/anton-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: 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;
}

/* ── tokens ─────────────────────────────────────────────────────────────── */
.theme-deco {
  /* fixed deco colours */
  --dk: #14110a;                       /* dark ink: text on gold */
  --ground: #0e0d0b; --p1: #1b1812; --p2: #13110d; --solid: #17140e;
  --gold: #d6a94a; --gold2: #f0cf7a; --gold3: #8a6420; --cream: #f2e6c9; --cream-hi: #fff4dc;
  --scarlet: #c63330; --scarlet-d: #b42a2a;
  --frame: rgba(214, 169, 74, .62); --hair: rgba(214, 169, 74, .26);
  --goldfill: linear-gradient(180deg, var(--gold2), var(--gold) 68%, #b98a34);
  --coin: radial-gradient(circle at 35% 30%, #ffe7a3, var(--gold) 60%, var(--gold3));
  /* app.css tokens, re-pointed */
  --ink: var(--cream); --mut: #b9ab8a; --acc: var(--gold); --warn: #f0a050; --ok: #7fc98a; --focus: var(--gold2);
  --bg: var(--ground); --bg2: #17150f; --steel: #1d1a13; --steel2: #2a2418; --line: rgba(214, 169, 74, .3);
  --red: var(--scarlet); --red2: var(--frc); --red-ink: var(--cream-hi); --redglow: rgba(229, 72, 77, .3);
  /* the G54 category colours, a touch brighter so they read as text on black (same hues as app.css) */
  --fin: #4caf6c; --com: #5b95e0; --frc: #e5484d; --spc: #a67ae6; --cls: var(--gold2);
  --display: "Bebas Neue", "Kanit", "Noto Sans Thai", "Arial Narrow", sans-serif;
  --claim: "Anton", "Kanit", "Noto Sans Thai", Impact, "Arial Narrow", sans-serif;
  --logo: "Limelight", Georgia, serif;
  --thd: "Kanit", "Noto Sans Thai", sans-serif;
  --r: 0px;
  /* the chamfer kit's defaults: corner cut, frame width, hairline inset; plaque point depth */
  --ch: 10px; --fb: 1.5px; --hi: 4px; --pt: 11px;
  font-synthesis: none;                /* one weight per display face: never smear a fake bold */
}
/* the chamfer kit: shapes computed on each framed element from its own --ch / --fb / --hi */
.theme-deco :is(.panel, .seat, .event, .annscard, .notice, .awaybar, .recbar, .lcbar, .htdeck, .code) {
  --ik: calc(var(--ch) - var(--fb) * .586);
  --oct: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch));
  --ring: polygon(evenodd, var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch), var(--ch) 0,
    calc(var(--fb) + var(--ik)) var(--fb), calc(100% - var(--fb) - var(--ik)) var(--fb), calc(100% - var(--fb)) calc(var(--fb) + var(--ik)), calc(100% - var(--fb)) calc(100% - var(--fb) - var(--ik)),
    calc(100% - var(--fb) - var(--ik)) calc(100% - var(--fb)), calc(var(--fb) + var(--ik)) calc(100% - var(--fb)), var(--fb) calc(100% - var(--fb) - var(--ik)), var(--fb) calc(var(--fb) + var(--ik)), calc(var(--fb) + var(--ik)) var(--fb));
  --hairbg: linear-gradient(var(--hair), var(--hair)) 50% var(--hi) / calc(100% - 2 * var(--ch) - 2 * var(--hi)) 1px no-repeat,
    linear-gradient(var(--hair), var(--hair)) 50% calc(100% - var(--hi)) / calc(100% - 2 * var(--ch) - 2 * var(--hi)) 1px no-repeat,
    linear-gradient(var(--hair), var(--hair)) var(--hi) 50% / 1px calc(100% - 2 * var(--ch) - 2 * var(--hi)) no-repeat,
    linear-gradient(var(--hair), var(--hair)) calc(100% - var(--hi)) 50% / 1px calc(100% - 2 * var(--ch) - 2 * var(--hi)) no-repeat;
  --fill: linear-gradient(180deg, var(--p1), var(--p2));
  position: relative; clip-path: var(--oct); border: 0; border-radius: 0; box-shadow: none;
  background: var(--hairbg), var(--fill);
}
.theme-deco :is(.panel, .seat, .event, .annscard, .notice, .awaybar, .recbar, .lcbar, .htdeck, .code)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--frame); clip-path: var(--ring);
}
/* the plaque kit (pointed ends, as on the mock-up's ALLOW / CHALLENGE): buttons and the room-code chip */
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button, .codechip) {
  --hex: polygon(var(--pt) 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, var(--pt) 100%, 0 50%);
  --hexring: polygon(evenodd, var(--pt) 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, var(--pt) 100%, 0 50%, var(--pt) 0,
    calc(var(--pt) + var(--fb) * .67) var(--fb), calc(100% - var(--pt) - var(--fb) * .67) var(--fb), calc(100% - var(--fb) * 1.08) 50%,
    calc(100% - var(--pt) - var(--fb) * .67) calc(100% - var(--fb)), calc(var(--pt) + var(--fb) * .67) calc(100% - var(--fb)), calc(var(--fb) * 1.08) 50%, calc(var(--pt) + var(--fb) * .67) var(--fb));
}

/* ── the page: near-black, faint gold pinstripes, a soft gold glow at the top ── */
html.theme-deco body { background: radial-gradient(130% 48% at 50% -6%, rgba(214, 169, 74, .17), transparent 62%) fixed, var(--ground); color: var(--ink); }
html.theme-deco body::before { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(214, 169, 74, .035) 38px 39px) 50% 0 / 39px 100%; }
html.theme-deco body::after { background: radial-gradient(ellipse at 50% 40%, transparent 58%, rgba(0, 0, 0, .55) 100%); }
/* the dev table mounts phones inside its own panels: there the client root paints the ground itself */
.app.embedded.theme-deco { background: radial-gradient(130% 40% at 50% -6%, rgba(214, 169, 74, .15), transparent 62%), var(--ground); color: var(--ink); }

/* ── base elements (low specificity: every component rule below still wins) ── */
:where(.theme-deco) button { font-family: var(--display); font-weight: 400; letter-spacing: .1em; background: var(--goldfill); color: var(--dk); border-radius: 0; box-shadow: none; }
.theme-deco button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* plaque buttons: label above a clipped fill (::before) and a clipped gold ring (::after) */
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button) {
  --bfill: var(--goldfill); --bline: var(--gold2);
  position: relative; isolation: isolate; z-index: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
  color: var(--dk); font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: .12em; text-indent: .12em;
  padding: 11px calc(var(--pt) + 10px) 10px;
}
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bfill); clip-path: var(--hex);
}
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bline); clip-path: var(--hexring);
}
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button):active:not(:disabled) { transform: translateY(1px); filter: brightness(.94); }
@media (prefers-reduced-motion: no-preference) { .theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button) { transition: transform .08s, filter .08s; } }
.theme-deco button.sec { --bfill: linear-gradient(180deg, rgba(214, 169, 74, .12), rgba(214, 169, 74, .03)); --bline: var(--gold); color: var(--gold2); }
.theme-deco button.chal { --bfill: linear-gradient(180deg, var(--scarlet), var(--scarlet-d)); --bline: #e8605a; color: var(--cream-hi); }
.theme-deco button.big { font-size: 22px; padding-top: 13px; padding-bottom: 12px; }
.theme-deco button.small-btn { font-size: 17px; padding: 9px calc(var(--pt) + 8px) 8px; }
.theme-deco button.mini, .theme-deco .close.mini { background: transparent; color: var(--gold2); border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.theme-deco .linkish { background: transparent; color: var(--mut); border: 0; box-shadow: none; font-family: var(--body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.theme-deco .linkish.warnlink { color: var(--warn); }
.theme-deco .langbtn { color: var(--cream); border: 1px solid var(--line); border-radius: 0; }
.theme-deco input { background: var(--solid); color: var(--cream); border: 1px solid var(--frame); border-radius: 0; }
.theme-deco input:focus { border-color: var(--gold2); box-shadow: none; outline: 2px solid var(--focus); outline-offset: 1px; }
.theme-deco .panel { --ch: 12px; padding: 16px 15px; }
.theme-deco .tag { display: block; text-align: center; font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.3; letter-spacing: .34em; color: var(--gold); margin-bottom: 10px; }
/* section labels sit between two short gold rules */
.theme-deco .tag::before, .theme-deco .tag::after { content: ""; display: inline-block; width: 40px; height: 0; border-top: 1px solid currentColor; vertical-align: .32em; opacity: .85; }
.theme-deco .tag::before { margin-right: 12px; }
.theme-deco .tag::after { margin-left: calc(12px - .34em); }
.theme-deco .cnt { color: var(--gold2); }
.theme-deco .cnt.low { color: var(--warn); }
.theme-deco .reason { color: var(--warn); }
.theme-deco .notice, .theme-deco .awaybar { --ch: 8px; --frame: var(--warn); --fill: linear-gradient(180deg, rgba(240, 160, 80, .13), rgba(240, 160, 80, .05)); color: var(--warn); padding: 10px 14px; }
.theme-deco .notice .ic { color: var(--warn); }
.theme-deco .recbar { --ch: 8px; --fill: linear-gradient(180deg, rgba(214, 169, 74, .1), rgba(214, 169, 74, .03)); border: 0; color: var(--ink); padding: 8px 14px; }
.theme-deco .recbar b { color: var(--gold2); font-weight: 700; }
.theme-deco .recbar .ic { color: var(--gold2); }
.theme-deco .toast { background: var(--solid); color: var(--cream); border: 1.5px solid var(--gold); border-radius: 0; font-weight: 700;
  box-shadow: inset 0 0 0 3px var(--solid), inset 0 0 0 4px rgba(214, 169, 74, .32), 0 12px 30px rgba(0, 0, 0, .7); }
.theme-deco .qr { background: var(--cream); border-radius: 0; padding: 6px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--ground), 0 0 0 6px var(--hair); }
.theme-deco .qr rect { fill: var(--cream); }
.theme-deco .qr path { fill: var(--dk); }
.theme-deco .link { color: var(--mut); }
.theme-deco .foot { border-top: 1px solid var(--hair); padding-top: 6px; }

/* ── the header: COUP in Limelight gold, the edition's name letter-spaced under it, a double gold rule ── */
.theme-deco .top { position: relative; align-items: center; padding: 4px 2px 10px; margin: 0 0 18px; border-bottom: 1px solid rgba(214, 169, 74, .45); }
.theme-deco .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid rgba(214, 169, 74, .45); pointer-events: none; }
.theme-deco .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.theme-deco .brand .logo { display: none; }
.theme-deco .brand h1 { font-family: var(--logo); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold2); background: linear-gradient(180deg, #f8e3a0, var(--gold2) 45%, var(--gold) 80%, #b98a34); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #5c4317) drop-shadow(0 0 14px rgba(214, 169, 74, .22)); }
.theme-deco .brand.small h1 { font-size: 36px; }
.theme-deco .dsub { display: block; font-family: var(--display); font-weight: 400; font-size: 12px; line-height: 1; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); padding-left: 2px; white-space: nowrap; }
.theme-deco .top-r { gap: 10px; }
.theme-deco .top .langbtn { white-space: nowrap; padding: 4px 12px; }
/* narrow phones: the header row keeps the logo, the code and the language switch on one line */
@media (max-width: 374px) {
  .theme-deco .brand.small h1 { font-size: 32px; }
  .theme-deco .dsub { font-size: 11px; letter-spacing: .34em; }
  .theme-deco .top-r { gap: 8px; }
  .theme-deco .codechip { font-size: 19px; letter-spacing: .18em; text-indent: .18em; padding: 6px 16px 5px; }
  .theme-deco .top .langbtn { padding: 4px 9px; }
}
@media (max-width: 340px) {
  .theme-deco .brand.small h1 { font-size: 28px; }
  .theme-deco .dsub { font-size: 10px; letter-spacing: .26em; }
  .theme-deco .top-r { gap: 6px; }
  .theme-deco .codechip { --pt: 8px; font-size: 18px; letter-spacing: .12em; text-indent: .12em; padding: 6px 13px 5px; }
  .theme-deco .top .langbtn { padding: 4px 7px; font-size: 13px; }
}
.theme-deco .codechip { position: relative; display: inline-block; clip-path: var(--hex); --pt: 9px; background: rgba(214, 169, 74, .07); border: 0; border-radius: 0;
  font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: .24em; text-indent: .24em; color: var(--gold2); padding: 6px 20px 5px; }
.theme-deco .codechip::before { content: ""; position: absolute; inset: 0; background: var(--gold); clip-path: var(--hexring); pointer-events: none; }
/* the big room code in the lobby: a chamfered plaque */
.theme-deco .code { --ch: 12px; display: inline-block; font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1.05; letter-spacing: .3em; color: var(--gold2);
  padding: 8px 8px 4px calc(18px + .3em); margin: 4px 0 14px; --frame: var(--gold); }

/* ── avatars, players, pickers ──────────────────────────────────────────── */
/* avatars: the glyphs toned to old gold on a dark medal */
.theme-deco .av { background: radial-gradient(circle at 50% 38%, #3b3323, #15120c 75%); border: 1px solid var(--frame); filter: grayscale(1) sepia(.85) saturate(1.25) brightness(1.04); }
.theme-deco .prow { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); border: 1px solid var(--line); border-radius: 0; }
.theme-deco .prow.me { border-color: var(--gold2); box-shadow: inset 0 0 0 1px rgba(240, 207, 122, .25); }
.theme-deco .prow .nm { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .07em; line-height: 1.2; }
.theme-deco .prow .nm em { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0; color: var(--mut); }
.theme-deco .botlbl { border: 1px solid var(--line); border-radius: 0; }
.theme-deco .hostlbl { color: var(--gold2); }
.theme-deco .dot.on { background: var(--ok); box-shadow: 0 0 6px rgba(127, 201, 138, .6); }
.theme-deco .dot.off { background: transparent; border: 1px solid var(--mut); }
.theme-deco .avpick { background: rgba(214, 169, 74, .04); border: 1px solid var(--line); border-radius: 0; }
.theme-deco .avpick.on { border: 1.5px solid var(--gold2); box-shadow: inset 0 0 0 2px var(--ground), inset 0 0 0 3px rgba(240, 207, 122, .45); }
.theme-deco .avpick.on .av { filter: none; }
.theme-deco .avpick.taken { opacity: .25; }

/* segmented controls: the chosen option in gold, the others outlined */
.theme-deco .seg button, .theme-deco .seg span { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .12em; border-radius: 0; line-height: 1.1; }
.theme-deco .seg .on { background: var(--goldfill); color: var(--dk); border: 1px solid var(--gold2); }
.theme-deco .seg .off { background: transparent; color: var(--gold2); border: 1px solid var(--line); }

/* presets */
.theme-deco .preset { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.theme-deco .preset .pn { font-family: var(--display); font-size: 20px; letter-spacing: .07em; line-height: 1.1; }
.theme-deco .preset.on { border: 1.5px solid var(--gold2); background: rgba(214, 169, 74, .16); box-shadow: inset 0 0 0 2px var(--ground), inset 0 0 0 3px rgba(240, 207, 122, .4); }
.theme-deco .preset.on .pn { color: var(--gold2); }
.theme-deco .preset.rnd { border-style: dashed; }

/* roles in play: category headers with a trailing rule, slots with the category edge, portraits framed in gold */
.theme-deco .setname b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .1em; color: var(--gold2); }
.theme-deco .slotcat { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .3em; margin: 10px 0 2px; color: var(--cc); }
.theme-deco .slotcat::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .45; }
.theme-deco .slot { background: linear-gradient(180deg, rgba(214, 169, 74, .06), rgba(214, 169, 74, .015)); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .slotbtn, .theme-deco .infobtn { background: transparent; box-shadow: none; border-top: 0; border-right: 0; border-bottom: 0; }
.theme-deco .slotbtn { border-left: 0; border-radius: 0; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .08em; }
.theme-deco .slot.swappable .slotbtn:active { background: rgba(214, 169, 74, .1); }
.theme-deco .infobtn { color: var(--gold); border-left: 1px solid var(--line); border-radius: 0; font-family: var(--body); }
.theme-deco .infobtn.on { background: rgba(214, 169, 74, .16); color: var(--gold2); }
.theme-deco .swapic { color: var(--gold); }
.theme-deco .rtxt { color: var(--ink); opacity: .92; }
.theme-deco img.art { background: var(--ground); border-radius: 0; }
.theme-deco .slotbtn img.art.rg, .theme-deco .opt .opth img.art.rg { width: 33px; height: 44px; box-shadow: 0 0 0 1.5px var(--gold); }
.theme-deco .advtag, .theme-deco .usedtag { border: 1px solid var(--line); border-radius: 0; color: var(--gold); }
.theme-deco .opt { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .opt .opth { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .08em; }
.theme-deco .opt.on { border-color: var(--gold2); border-left-color: var(--cc); background: rgba(214, 169, 74, .15); }
.theme-deco .rchip { background: var(--bg2); border-radius: 0; }
.theme-deco .lead { border-bottom: 1px solid var(--hair); }
.theme-deco .lead b { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .08em; color: var(--gold2); }

/* ── sheets and prompts: a dark sheet in a square double gold frame (sheets scroll: no clip-path here) ── */
.theme-deco .overlay { background: rgba(6, 5, 3, .84); }
.theme-deco .sheet { background: var(--solid); border: 1.5px solid var(--gold); border-radius: 0; color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--solid), inset 0 0 0 5px var(--hair), 0 -10px 40px rgba(0, 0, 0, .65); padding: 16px; }
.theme-deco .sheet-h { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.theme-deco .sheet h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: .12em; color: var(--gold2); }
.theme-deco .sheet .tag { margin-top: 16px; }
.theme-deco .overlay.prompt { background: rgba(6, 5, 3, .8); }
.theme-deco .overlay.prompt .sheet { border-color: var(--gold2);
  box-shadow: inset 0 0 0 4px var(--solid), inset 0 0 0 5px rgba(240, 207, 122, .5), 0 0 0 1px rgba(0, 0, 0, .7), 0 0 44px rgba(214, 169, 74, .2); }
/* card choices in a prompt: little gold-framed portraits on a dark plate under the category stripe */
.theme-deco .pcards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.theme-deco .pcard { background: linear-gradient(180deg, #221d14, #14110c); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--cc); border-radius: 0; padding: 10px 4px 8px; }
.theme-deco .pcard img.art.rg { width: 58px; height: 77px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3px var(--dk); border-radius: 0; }
.theme-deco .pcard .bn { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .1em; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.theme-deco .pcard .ctag { color: var(--gold2); }
.theme-deco .pcard.on { border-color: var(--gold2); border-top-color: var(--cc); background: linear-gradient(180deg, rgba(214, 169, 74, .26), rgba(214, 169, 74, .08)); box-shadow: 0 0 0 1px var(--gold2), 0 0 16px rgba(214, 169, 74, .3); }
.theme-deco .pcard .okic { color: var(--gold2); }
.theme-deco .popt { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.theme-deco .popt.on { border: 1.5px solid var(--gold2); background: rgba(214, 169, 74, .17); }
.theme-deco .popt .pc { color: var(--gold); }
.theme-deco .popts.roles .popt { border-left: 4px solid var(--cc); }
.theme-deco .dline { font-family: var(--claim); font-weight: 400; font-size: 26px; line-height: 1.15; text-transform: uppercase; }
.theme-deco .dline .rl { font-weight: 400; }
.theme-deco button.react { border-left-width: 0 !important; --bline: var(--cc); } /* a reaction: the ring in its role's colour */

/* ── the table ─────────────────────────────────────────────────────────── */
.theme-deco .c-gen { --cc: var(--gold2); }
.theme-deco .who { color: var(--ink); }

/* player ring: dark chamfered seats in a double gold frame; the turn is solid gold with dark type */
.theme-deco .seats { gap: 10px; margin: 0 0 14px; }
.theme-deco .seat { --ch: 10px; --fb: 1px; --hi: 3px; --frame: rgba(214, 169, 74, .58); --hair: rgba(214, 169, 74, .24);
  --fill: linear-gradient(180deg, rgba(214, 169, 74, .09), rgba(214, 169, 74, .025)); padding: 8px 11px 9px; color: var(--ink); }
.theme-deco .seat.me { --fill: linear-gradient(180deg, rgba(214, 169, 74, .09), rgba(214, 169, 74, .025)); }
.theme-deco .seat.turn { --ink: var(--dk); --mut: #4a3d24; --frame: var(--gold2); --hair: rgba(20, 17, 10, .32); --fill: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--dk); }
.theme-deco .seat.tgt { --frame: var(--frc); --fb: 1.5px; }
.theme-deco .seat.tgt .tgtic { color: var(--frc); }
.theme-deco .seat.turn.tgt .tgtic { color: #8f1d1d; }
.theme-deco .seat.out { --frame: rgba(214, 169, 74, .28); --hair: rgba(214, 169, 74, .12); }
/* "waiting on": a pulsing gold diamond clear of the cut corner */
.theme-deco .seat.wait::after { top: 9px; right: 12px; width: 7px; height: 7px; border-radius: 0; background: var(--gold2); transform: rotate(45deg); }
.theme-deco .seat.turn.wait::after { background: var(--dk); }
.theme-deco .seat-h .nm { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: .07em; }
.theme-deco .youtag { font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--mut); }
.theme-deco .seat .av.xs { width: 24px; height: 24px; font-size: 13px; }
.theme-deco .seat.turn .av { border-color: rgba(20, 17, 10, .5); }
.theme-deco .seat-b { margin-top: 5px; }
/* gold coins */
.theme-deco .coins { color: var(--gold); font-family: var(--display); font-size: 23px; line-height: 1; gap: 5px; }
.theme-deco .coins .ic { width: 21px; height: 21px; vertical-align: 0; border-radius: 50%; background: var(--coin); box-shadow: 0 0 0 1px rgba(20, 17, 10, .55); }
.theme-deco .coins .ic circle { fill: transparent; }
.theme-deco .coins .ic path { stroke: var(--dk); stroke-opacity: .85; stroke-width: 1.8; }
.theme-deco .coins b { color: var(--ink); font-weight: 400; }
/* face-down cards: the G54 back with a thin gold edge */
.theme-deco .cd { width: 18px; height: 24px; }
.theme-deco .cd.back { background: var(--dk); border: 0; border-radius: 1px; box-shadow: 0 0 0 1px var(--gold); }
.theme-deco .seat.turn .cd.back { box-shadow: 0 0 0 1px var(--dk); }
.theme-deco .cd.back.aside { box-shadow: none; outline: 1px dashed var(--gold); }
/* tokens */
.theme-deco .tok { background: rgba(14, 13, 11, .7); border: 1px solid var(--line); border-radius: 0; color: var(--gold2); }
.theme-deco .tok.peace { color: #a8cdf2; border-color: var(--com); }
.theme-deco .tok.treaty { color: var(--gold2); border-color: var(--gold); }
.theme-deco .tok.tax { color: var(--cc); border-color: var(--cc); }
.theme-deco .tok.disp { color: #ff8a86; border-color: var(--frc); }
.theme-deco .seat.turn .tok { background: rgba(20, 17, 10, .88); }
/* lost / out-of-play cards on a seat */
.theme-deco .dci { border: 1px solid var(--gold); border-radius: 0; background: var(--ground); }
.theme-deco .dc.dead .dci { border-color: rgba(214, 169, 74, .4); }
.theme-deco .dcn { color: var(--mut); }
.theme-deco .dc.dead .dcn { text-decoration-color: var(--frc); }
.theme-deco .strike { background: var(--frc); box-shadow: 0 0 0 1px var(--dk); }
/* the ELIMINATED / ตกรอบ stamp: a scarlet stamp with a gold edge (a dark keyline so it reads over any picture) */
.theme-deco .stamp { font-family: var(--display); font-weight: 400; letter-spacing: .14em; text-indent: .14em; line-height: 1.05; color: var(--cream-hi); background: var(--scarlet-d);
  border: 2px solid var(--gold2); border-radius: 0; padding: 4px 10px 2px; box-shadow: 0 0 0 1.5px var(--dk), inset 0 0 0 1.5px rgba(20, 17, 10, .5), 0 4px 14px rgba(0, 0, 0, .6); }
.theme-deco .seatstamp { font-size: 17px; }
.theme-deco .hand .hrow .bcard .stamp { font-size: clamp(16px, 5vw, 23px); padding: 5px 10px 3px; border-width: 2px; }
.theme-deco .hand .hrow.many .bcard .stamp { font-size: 15px; padding: 3px 6px 1px; }

/* cards out: between two gold rules, each portrait edged in its category colour */
.theme-deco .cobar { position: relative; background: transparent; border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-radius: 0; box-shadow: none;
  padding: 7px 2px 6px; margin: 0 0 14px; color: var(--ink); font-family: var(--body); font-weight: 400; letter-spacing: 0; text-indent: 0; }
.theme-deco .cochip { border-radius: 0; }
.theme-deco .cochip img.art.rg { width: 18px; height: 24px; border-radius: 0; box-shadow: 0 0 0 1.5px var(--cc); }
.theme-deco .cochip .ic.rg { color: var(--cc); }
.theme-deco .coh { gap: 5px; }
.theme-deco .con { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .05em; color: var(--mut); }
.theme-deco .cochip.some .con { color: var(--gold2); }
.theme-deco .cnm { color: var(--mut); }
.theme-deco .cochip.gone { background: rgba(198, 51, 48, .2); border: 1px solid var(--frc); }
.theme-deco .cochip.gone .con, .theme-deco .cochip.gone .cnm { color: var(--cream-hi); }
.theme-deco .corow { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .corow img.art.rg { width: 36px; height: 48px; box-shadow: 0 0 0 1.5px var(--gold); }
.theme-deco .corow.gone { background: rgba(198, 51, 48, .14); border-color: var(--frc); border-left-color: var(--cc); }
.theme-deco .corow .cot b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .07em; }
.theme-deco .cogone { background: var(--scarlet-d); color: var(--cream-hi); border-radius: 0; }

/* the event card: a framed panel; the TURN / DECK line is the gold letter-spaced kicker; with a window open,
   the claim is an Anton line (the role in its category colour), the effect a quiet line under it, and the
   countdown a gold octagon in the corner */
.theme-deco .event { --ch: 12px; padding: 14px 15px 15px; margin: 0 0 14px; }
.theme-deco .ev-meta { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .32em; color: var(--gold); margin-bottom: 8px; }
.theme-deco .ev-meta .ic { width: .95em; height: .95em; }
.theme-deco .event.w-open .ev-meta { padding-right: 66px; justify-content: flex-start; gap: 18px; }
.theme-deco .ev-act { color: var(--mut); }
.theme-deco .ev-line { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.4; }
.theme-deco .eff { color: var(--mut); }
.theme-deco .waiting { color: var(--gold2); font-weight: 700; }
.theme-deco .wbar { border-left: 0; padding-left: 0; }
.theme-deco .wtxt { font-family: var(--claim); font-weight: 400; font-size: 28px; line-height: 1.12; letter-spacing: .015em; text-transform: uppercase; color: var(--ink); }
.theme-deco .wtxt::before { content: ""; float: right; width: 58px; height: 26px; }
.theme-deco .wtxt .who { font-weight: 400; }
.theme-deco .wtxt .rl { font-weight: 400; }
.theme-deco .wtxt .rl .rg { display: none; }
.theme-deco .wtxt .eff { display: block; margin-top: 7px; font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--mut); }
.theme-deco .wtxt .eff .who, .theme-deco .wtxt .eff .rl { font-weight: 700; }
.theme-deco .wtxt .eff .rl .rg { display: inline; }
.theme-deco .wq { display: block; margin-top: 6px; color: var(--gold2); font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .14em; }
/* the countdown: a gold octagon, the light-gold edge runs down as the time does */
.theme-deco .cring { position: absolute; right: 13px; top: 13px; width: 56px; height: 56px; border-radius: 0; z-index: 1;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: conic-gradient(var(--gold2) calc(var(--f) * 1turn), #5e4718 0); }
.theme-deco .cring::before { inset: 4px; border-radius: 0; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: linear-gradient(180deg, #e2b85a, var(--gold) 60%, #c0913a); }
.theme-deco .cring::after { font-family: var(--claim); font-weight: 400; font-size: 27px; line-height: 1; color: var(--dk); }
.theme-deco .wnote { color: var(--mut); }
.theme-deco .wbtns { gap: 10px; margin-top: 14px; }
.theme-deco .wbtns > button { flex: 1 1 40%; font-size: 22px; letter-spacing: .14em; text-indent: .14em; padding: 12px calc(var(--pt) + 6px) 11px; }
/* the window's answers are words only (ALLOW / CHALLENGE): the glyphs crowd the plaque */
.theme-deco .wbtns > button:not(.blk) > .ic { display: none; }
.theme-deco .wbtns button.blk { --bfill: linear-gradient(180deg, rgba(214, 169, 74, .1), rgba(214, 169, 74, .02)); --bline: var(--cc); color: var(--cream); flex-basis: 100%; font-size: 20px; letter-spacing: .08em; text-indent: .08em; }
.theme-deco .wbtns button.blk .rg { color: var(--cc); }
.theme-deco .wdone { color: var(--ok); }
.theme-deco .wwait { color: var(--mut); }
.theme-deco .wdot .av { border-color: var(--line); }
.theme-deco .wdot.on .av { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.theme-deco .wdot .dk { background: var(--ground); color: var(--ok); }
.theme-deco .nudgebtn { --pt: 9px; font-size: 17px; letter-spacing: .1em; text-indent: .1em; padding: 8px calc(var(--pt) + 8px) 7px; }

/* last challenge */
.theme-deco .lcbar { --ch: 8px; border: 0; padding: 9px 14px; }
.theme-deco .lcbar.lc_shown { --frame: var(--ok); }
.theme-deco .lcbar.lc_no { --frame: var(--frc); }
.theme-deco .lcbar.lc_pending { --frame: var(--gold2); }

/* your hand: no box, just YOUR CARDS between gold rules and the big gold-framed cards */
.theme-deco .panel.hand { clip-path: none; background: none; padding: 4px 0 2px; margin: 18px 0 8px; }
.theme-deco .panel.hand::before { content: none; }
.theme-deco .hand > .tag { margin-bottom: 12px; }
.theme-deco .hand > .tag::before, .theme-deco .hand > .tag::after { width: 64px; }
.theme-deco .hand .hcards { background: transparent; border: 0; box-shadow: none; }
.theme-deco .hand .hcards:active:not(:disabled) { transform: none; }
.theme-deco .hand .hrow { gap: 14px; }
.theme-deco .hand .hrow .hcards { gap: 14px; }
/* a card: a 4 px gold frame (inside the card's box, so app.css's big sizing stays as it is) */
.theme-deco .bcard, .theme-deco .hand .hrow .bcard, .theme-deco .hand .hrow.many .bcard { border-radius: 0; }
.theme-deco .bcard.face { background: linear-gradient(180deg, #221d14, #14110c); border: 4px solid var(--gold); border-image: linear-gradient(135deg, var(--gold2), var(--gold) 40%, var(--gold3)) 1; color: var(--ink); }
.theme-deco .hand .bcard.face, .theme-deco .hand .bcard.back { box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.theme-deco .bcard.face .rg { color: var(--cc); }
.theme-deco .bcard.back { background: var(--dk); border: 1.5px solid var(--gold2); color: rgba(240, 207, 122, .5); }
.theme-deco .bcard.back.aside { border-style: dashed; }
.theme-deco .bcard .bn { font-family: var(--display); font-weight: 400; letter-spacing: .14em; }
.theme-deco .bcard .bc, .theme-deco .bcard.face .bc { color: var(--cc); }
/* the name plate: dark, under a 3 px stripe in the category colour */
.theme-deco .bcard.face.pic .bn, .theme-deco .bcard.face.pic .bc { background: rgba(14, 13, 11, .93); }
.theme-deco .bcard.face.pic .bn { color: var(--gold2); border-top: 3px solid var(--cc); padding: 5px 3px 2px; text-indent: .14em; }
.theme-deco .bcard.face.pic .bc { color: var(--mut); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 0 3px 4px; }
.theme-deco .hand .hrow .bcard .bn, .theme-deco .hand .hrow .bcard.face.pic .bn { font-size: clamp(17px, 5.4vw, 23px); letter-spacing: .16em; text-indent: .16em; }
.theme-deco .hand .hrow .bcard.face.pic .bn { padding: 7px 3px 2px; }
.theme-deco .hand .hrow .bcard.face.pic .bc { font-size: 11px; padding-bottom: 6px; }
.theme-deco .hand .hrow.many .bcard .bn, .theme-deco .hand .hrow.many .bcard.face.pic .bn { font-size: 15px; letter-spacing: .1em; text-indent: .1em; }
.theme-deco .bcard.dead { border-image: none; border-color: #5c4a2a; }
.theme-deco .bcard.dead > :not(.stamp) { filter: grayscale(1) sepia(.3); opacity: .62; }
.theme-deco .bcard.oop { border-image: none; border: 3px dashed var(--gold); }
.theme-deco .ootag, .theme-deco .bclbl { background: var(--dk); color: var(--gold2); border: 1px solid var(--gold); border-radius: 0; }
.theme-deco .hand .peekhint, .theme-deco .hand .mut { color: var(--mut); }

/* your turn: the action list */
.theme-deco .aopt { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .aopt .aoh { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .08em; }
.theme-deco .aopt .rg { color: var(--cc); }
.theme-deco .aopt .rtxt { color: var(--ink); }
.theme-deco .aopt:disabled { opacity: .45; }
.theme-deco .cost { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .06em; color: var(--dk); background: var(--goldfill); padding: 1px 8px 0; line-height: 1.4; }
.theme-deco .taxt { color: #8f1d1d; }
.theme-deco .aopt .why, .theme-deco .popt .why { color: var(--warn); }

/* dock + log */
.theme-deco .dock { gap: 8px; margin: 16px 0; }
.theme-deco .dock button { --pt: 9px; flex: 1 1 auto; white-space: nowrap; font-size: 17px; letter-spacing: .08em; text-indent: .08em; padding: 10px calc(var(--pt) + 5px) 9px; }
@media (max-width: 340px) { .theme-deco .dock { flex-wrap: wrap; } }
.theme-deco .log li { border-bottom: 1px solid rgba(214, 169, 74, .14); }
.theme-deco .log li.lg-turn { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .26em; }
.theme-deco .log li.lg-lose, .theme-deco .log li.lg-out, .theme-deco .log li.lg-left { color: #ff8a86; }
.theme-deco .log li.lg-win { color: var(--gold2); }
/* Roles sheet */
.theme-deco .rcard { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .rcard .rch { font-family: var(--display); font-size: 21px; letter-spacing: .07em; }
.theme-deco .rcard .rch .rl { font-weight: 400; }
.theme-deco .rcard.pic { grid-template-columns: 60px 1fr; column-gap: 12px; }
.theme-deco .rcard.pic img.rthumb { width: 60px; height: 80px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3px var(--dk); margin: 3px 0; }
.theme-deco .catlbl { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .12em; line-height: 1.15; color: var(--cc); text-align: right; }
.theme-deco .toklegend .ic { color: var(--gold2); }
/* How to play */
.theme-deco .htdeck { --ch: 12px; padding: 14px 15px; }
.theme-deco .htdeck h3 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .08em; color: var(--gold2); }
.theme-deco .htill { background: radial-gradient(ellipse at 50% 40%, #241f15, #0f0d09 75%); border: 1px solid var(--line); padding: 12px 8px; }
.theme-deco .bcard.mini { border-width: 3px; }
.theme-deco .htq { font-family: var(--claim); font-weight: 400; color: var(--gold2); }
.theme-deco .htbubble { background: #221d14; color: var(--cream); border: 1.5px solid var(--gold); border-radius: 0; font-family: var(--claim); font-weight: 400; font-size: 19px; line-height: 1.15; text-transform: uppercase; }
.theme-deco .htbubble::before { border-right-color: var(--gold); left: -9px; }
.theme-deco .htbubble .rl, .theme-deco .htbubble .rl.c-classic { color: var(--cc); font-weight: 400; }
.theme-deco .htbubble .rl .rg { color: var(--cc); }
.theme-deco .htopt { background: linear-gradient(180deg, rgba(214, 169, 74, .07), rgba(214, 169, 74, .02)); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 0; }
.theme-deco .htopt b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .07em; }
.theme-deco .htopt img.art.rg { width: 20px; height: 27px; box-shadow: 0 0 0 1px var(--gold); }
.theme-deco .htalt { color: var(--mut); border-top: 1px dashed var(--line); }
.theme-deco .htkey { color: var(--gold2); }
.theme-deco .htwho { color: var(--gold); }
.theme-deco .htstamp { color: #ff8a86; border: 1.5px solid var(--frc); border-radius: 0; font-family: var(--display); font-weight: 400; letter-spacing: .1em; }
.theme-deco .htdot { width: 8px; height: 8px; border-radius: 0; transform: rotate(45deg); background: rgba(214, 169, 74, .3); }
.theme-deco .htdot.on { background: var(--gold2); box-shadow: 0 0 6px rgba(240, 207, 122, .6); }

/* ── game over: the winner in gold under a soft glow, then every card ────── */
.theme-deco .winner { --fill: radial-gradient(ellipse at 50% 0%, rgba(240, 207, 122, .24), transparent 70%), linear-gradient(180deg, var(--p1), var(--p2)); --frame: var(--gold2); padding: 20px 15px 18px; }
.theme-deco .winner .av { width: 66px; height: 66px; border: 1.5px solid var(--gold2); box-shadow: 0 0 0 4px rgba(214, 169, 74, .18), 0 0 22px rgba(214, 169, 74, .3); filter: none; }
.theme-deco .winner .tag { margin: 10px 0 2px; }
.theme-deco .winner h2 { font-family: var(--claim); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: .02em; color: var(--gold2); }
.theme-deco .winner h2 .who { color: inherit; font-weight: 400; }
.theme-deco .rvrow { border-bottom: 1px solid var(--hair); align-items: center; padding: 9px 0; }
.theme-deco .rvrow .nm { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .07em; color: var(--ink); align-self: center; }
.theme-deco .rvrow.win .nm { color: var(--gold2); }
.theme-deco .rvcards { gap: 10px; }
/* each card a small gold-framed portrait with its name under it */
.theme-deco .mcard { position: relative; flex-direction: column; align-items: center; gap: 3px; width: 72px; padding: 3px 3px 2px; border-radius: 0;
  background: #1b1710; color: var(--ink); border: 1px solid var(--gold); font-size: 10px; letter-spacing: 0; line-height: 1.25; }
.theme-deco .mcard > span:not(.mstamp) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-deco .mcard img.art.rg { width: 64px; height: 85px; box-shadow: inset 0 -3px 0 var(--cc); border-bottom: 3px solid var(--cc); }
.theme-deco .mcard .ic.rg { width: 26px; height: 26px; margin: 8px 0; color: var(--cc); }
.theme-deco .mcard.lost { border-color: rgba(214, 169, 74, .4); color: var(--mut); }
.theme-deco .mcard.lost > span:not(.mstamp) { text-decoration-color: var(--frc); }
.theme-deco .mstamp { position: absolute; top: 36px; left: 50%; transform: translateX(-50%) rotate(-14deg); font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .08em; padding: 1px 3px 0; white-space: nowrap;
  color: var(--cream-hi); background: var(--scarlet-d); border: 1px solid var(--gold2); border-radius: 0; }
.theme-deco .mcard.aside, .theme-deco .mcard.oop { border-style: dashed; }
.theme-deco .lgk { border-radius: 0; border-color: var(--gold); }

/* ── the action announcer: banners are framed slips; a splash is a little deco plaque ── */
.theme-deco .annb { background: var(--solid); color: var(--ink); border: 1.5px solid var(--gold); border-radius: 0;
  box-shadow: inset 0 0 0 3px var(--solid), inset 0 0 0 4px var(--hair), 0 12px 30px rgba(0, 0, 0, .7); }
.theme-deco .annb.big { border-color: var(--gold2); }
.theme-deco .annb.big.k-coup, .theme-deco .annb.big.k-bad, .theme-deco .annb.big.k-lose, .theme-deco .annb.big.k-out { border-color: var(--frc); }
.theme-deco .annb.big.k-ok { border-color: var(--ok); }
.theme-deco .annpic { border: 1px solid var(--gold); border-radius: 0; background: var(--ground); }
.theme-deco .annarr, .theme-deco .annsep { color: var(--gold); }
.theme-deco .anns { background: radial-gradient(ellipse at 50% 45%, rgba(14, 13, 11, .55), rgba(5, 4, 3, .9)); }
.theme-deco .annscard { --ch: 14px; --frame: var(--gold); --hair: rgba(214, 169, 74, .3); padding: 16px 16px 14px; }
.theme-deco .annscard.k-coup, .theme-deco .annscard.k-bad, .theme-deco .annscard.k-lose, .theme-deco .annscard.k-out { --frame: var(--frc); }
.theme-deco .annscard.k-win { --frame: var(--gold2); --fill: radial-gradient(ellipse at 50% 0%, rgba(240, 207, 122, .22), transparent 70%), linear-gradient(180deg, var(--p1), var(--p2)); }
/* the portrait: a gold-framed card */
.theme-deco .annport { width: 156px; height: 208px; border: 4px solid var(--gold); border-image: linear-gradient(135deg, var(--gold2), var(--gold) 40%, var(--gold3)) 1; border-radius: 0; background: var(--ground);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6); margin-bottom: 12px; }
.theme-deco .annport > .ic.rg { color: var(--cc); }
.theme-deco .annport .stamp { top: 52%; font-size: 21px; }
.theme-deco .annport.dead img, .theme-deco .annport.bad img { filter: grayscale(1) sepia(.3); opacity: .62; }
/* the icon splash (Coup, the win, an elimination): an octagon medal */
.theme-deco .annbig { border: 0; border-radius: 0; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: var(--coin); }
.theme-deco .annbig .ic { color: var(--dk); }
.theme-deco .k-coup .annbig { background: radial-gradient(circle at 35% 30%, #f06a62, var(--scarlet) 55%, #7a1f1c); }
.theme-deco .k-coup .annbig .ic, .theme-deco .k-out .annbig .ic { color: var(--cream-hi); }
.theme-deco .k-out .annbig { background: radial-gradient(circle at 35% 30%, #a83431, #7a1f1c 60%, #3f100e); }
.theme-deco .k-win .annbig .ic { color: var(--dk); }
.theme-deco .annx { background: var(--scarlet); color: var(--cream-hi); }
.theme-deco .annvs { font-family: var(--display); font-weight: 400; letter-spacing: .1em; color: var(--gold2); border: 1px solid var(--gold); border-radius: 0; }
.theme-deco .annavs .annto { color: var(--gold); }
.theme-deco .anntitle { font-family: var(--claim); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: .015em; color: var(--ink); text-transform: uppercase; }
.theme-deco .anntitle .who, .theme-deco .anntitle .rl { font-weight: 400; }
.theme-deco .annsub { color: var(--ink); }
.theme-deco .annhint { color: var(--mut); }
.theme-deco .nudgeflash { border-color: var(--gold2); box-shadow: inset 0 0 60px rgba(214, 169, 74, .55); }

/* ── Thai: Limelight, Bebas Neue and Anton have no Thai glyphs — every display spot switches to Kanit, never
   tracked or uppercased (Thai script breaks apart under letter-spacing). Last, so it wins every tie. ── */
.theme-deco :is(button.big, button.sec, button.small-btn, button.chal, .wbtns > button, .htnav button, .seg button, .seg span, .tag, .slotcat, .slotbtn, .setname b,
  .opt .opth, .aopt .aoh, .seat-h .nm, .prow .nm, .preset .pn, .pcard .bn, .bcard .bn, .ev-meta, .log li.lg-turn, .rcard .rch, .catlbl, .htopt b, .rvrow .nm,
  .lead b, .corow .cot b, .cost, .wq, .htstamp, .mstamp, .annvs):lang(th) {
  font-family: var(--thd); font-weight: 700; letter-spacing: 0; text-indent: 0; text-transform: none;
}
.theme-deco :is(.wtxt, .anntitle, .winner h2, .sheet h2, .htdeck h3, .dline, .htbubble, .stamp):lang(th) {
  font-family: var(--thd); font-weight: 800; letter-spacing: 0; text-indent: 0; text-transform: none;
}
.theme-deco :is(.wtxt, .anntitle, .winner h2, .dline, .htbubble) :is(.who, .rl):lang(th) { font-weight: 800; }
.theme-deco .tag:lang(th)::after { margin-left: 12px; }
.theme-deco :is(button.big, .wbtns > button):lang(th) { font-size: 19px; }
.theme-deco :is(button.sec, button.small-btn, .htnav button):lang(th) { font-size: 18px; }
.theme-deco .dock button:lang(th), .theme-deco button.nudgebtn:lang(th) { font-size: 16px; }
.theme-deco .wbtns button.blk:lang(th) { font-size: 18px; }
.theme-deco :is(.seg button, .seg span):lang(th) { font-size: 16px; }
.theme-deco .tag:lang(th) { font-size: 15px; }
.theme-deco :is(.slotbtn, .opt .opth, .aopt .aoh):lang(th) { font-size: 18px; }
.theme-deco :is(.seat-h .nm, .prow .nm, .rvrow .nm):lang(th) { font-size: 17px; }
.theme-deco :is(.preset .pn, .setname b, .rcard .rch, .corow .cot b):lang(th) { font-size: 17px; }
.theme-deco .slotcat:lang(th), .theme-deco .ev-meta:lang(th), .theme-deco .log li.lg-turn:lang(th), .theme-deco .catlbl:lang(th) { font-size: 13px; }
.theme-deco .pcard .bn:lang(th) { font-size: 16px; }
.theme-deco .htopt b:lang(th) { font-size: 15px; }
.theme-deco .wq:lang(th) { font-size: 17px; }
.theme-deco .cost:lang(th) { font-size: 13px; }
.theme-deco .sheet h2:lang(th) { font-size: 23px; line-height: 1.4; }
.theme-deco .htdeck h3:lang(th) { font-size: 25px; line-height: 1.4; }
.theme-deco .wtxt:lang(th) { font-size: 23px; line-height: 1.45; }
.theme-deco .anntitle:lang(th) { font-size: 22px; line-height: 1.45; }
.theme-deco .winner h2:lang(th) { font-size: 28px; line-height: 1.4; }
.theme-deco .dline:lang(th) { font-size: 22px; line-height: 1.4; }
.theme-deco .htbubble:lang(th) { font-size: 17px; line-height: 1.4; }
.theme-deco .stamp:lang(th) { line-height: 1.3; padding-top: 2px; }
.theme-deco .hand .hrow .bcard .bn:lang(th), .theme-deco .hand .hrow .bcard.face.pic .bn:lang(th) { font-size: clamp(15px, 4.4vw, 18px); letter-spacing: 0; text-indent: 0; }
.theme-deco .hand .hrow.many .bcard .bn:lang(th), .theme-deco .hand .hrow.many .bcard.face.pic .bn:lang(th) { font-size: 13px; letter-spacing: 0; text-indent: 0; }
.theme-deco .bcard.face.pic .bc:lang(th) { letter-spacing: 0; text-transform: none; }
