/* Page basics (previously supplied by the Claude artifact frame). */
:root { color-scheme: light; box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; font: 14px -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; color: #000; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Clock Out — card styles. One card = 69×94 mm page (63×88 trim + 3 mm bleed).
   Coordinates inside .trim are measured from the TRIM edge. Safe area = 4 mm inside trim. */
@font-face { font-family: "Roboto"; font-weight: 500; src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 900; src: url("fonts/roboto-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Russo One"; font-weight: 400; src: url("fonts/russo-one-latin-400-normal.woff2") format("woff2"); }

.card {
  --unit: #fe3737; --on: #fff;
  --win-x: 9mm; --bar-h: 9.5mm; --win-h: 59mm; --strip-h: 10mm;
  position: relative; width: 69mm; height: 94mm; overflow: hidden;
  background: var(--unit); color: var(--on);
  font-family: "Roboto", system-ui, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.card * { box-sizing: border-box; margin: 0; }
.card .trim { position: absolute; inset: 3mm; }

/* wild: four-colour frame to the bleed edge */
.card { --q1: #fe3737; --q2: #00b41e; --q3: #dba101; --q4: #00acd7; }
.card.wild { --on: #fff; background: #000; }
.card .quads { position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; }
.card .quads i:nth-child(1) { background: var(--q1); }
.card .quads i:nth-child(2) { background: var(--q2); }
.card .quads i:nth-child(3) { background: var(--q3); }
.card .quads i:nth-child(4) { background: var(--q4); }

/* top / bottom unit bars (bottom = same bar rotated 180°) */
.card .bar {
  position: absolute; left: 0; right: 0; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: .6mm 4.5mm 0; text-transform: uppercase; line-height: 1; z-index: 3;
}
.card .bar.top { top: 0; }
.card .bar.bottom { bottom: 0; transform: rotate(180deg); }
.card .bar .unit { font-weight: 500; font-size: 3.4mm; letter-spacing: .05mm; }
.card .bar .fx { font-weight: 900; font-size: 4mm; letter-spacing: .05mm; white-space: nowrap; }

/* effect badge: icon + word, white plate with a hard comic shadow (same language as the bubble) */
.card .fxb {
  --tint: color-mix(in srgb, var(--unit) 78%, #fff);
  display: inline-flex; align-items: center; gap: .75mm; background: var(--tint); color: var(--on);
  padding: .65mm 1.5mm .55mm 1.1mm; border-radius: 1.1mm;
  font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: .05mm;
}
/* wilds: tint of the quadrant the badge sits on (opaque colours, no PDF transparency) */
.card.wild .bar.top .fxb { --tint: color-mix(in srgb, var(--q2) 78%, #fff); }
.card.wild .bar.bottom .fxb { --tint: color-mix(in srgb, var(--q3) 78%, #fff); }
.card.wild .dbar.top .fxb { --tint: color-mix(in srgb, var(--q1) 78%, #fff); }
.card.wild .dbar.bottom .fxb { --tint: color-mix(in srgb, var(--q4) 78%, #fff); }
.card .fxb svg { width: 1.1em; height: 1.1em; flex: none; display: block; }
.card .fxb b { font-weight: 900; }
.card .bar .fx.fxb { font-size: 3.5mm; }

/* art window */
.card .window {
  position: absolute; left: var(--win-x); right: var(--win-x); top: var(--bar-h); height: var(--win-h);
  overflow: hidden; background: #efe9dc;
}
.card .window.tall { height: calc(88mm - 2 * var(--bar-h)); }
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.card .art.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1mm;
  color: #9d927a; border: .35mm dashed #c9bfa8; font-size: 3mm; text-align: center; padding: 3mm;
}
.card .art.ph span { font-weight: 900; letter-spacing: .4mm; }
.card .art.ph small { font-size: 2.2mm; word-break: break-all; }

/* write-in prescription pad (Doctor's Orders) — leave room to write with a pen */
.card .art.pad { background: #f8f5ec; color: #0c3d3c; padding: 4mm 3.5mm 0; display: flex; flex-direction: column; }
.card .art.pad .rx { font-family: "Russo One", sans-serif; font-size: 9mm; line-height: 1; margin-bottom: 2.5mm; }
.card .art.pad i { display: block; height: 5.2mm; border-bottom: .3mm solid #9fb7b3; }
.card .art.pad .rx b { font-weight: 400; font-size: .55em; margin-left: -.05em; }
.card .art.pad .rxrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 3mm; }
.card .art.pad small { flex: 1; margin-bottom: 3mm; font-size: 1.9mm; font-weight: 700; letter-spacing: .25mm; color: #6d8885;
  border-top: .25mm solid #9fb7b3; padding-top: .6mm; padding-left: 9mm; text-align: right; }

/* flavor strip (unit colour; black on wilds), full bleed width */
.card .strip {
  position: absolute; left: -3mm; right: -3mm; top: calc(var(--bar-h) + var(--win-h)); height: var(--strip-h);
  display: flex; align-items: center; justify-content: center; padding: 0 7.5mm;
  background: var(--unit); z-index: 1;
}
.card.wild .strip { background: #000; }
.card .strip p {
  font-weight: 500; font-size: 2.35mm; line-height: 1.18; text-transform: uppercase;
  text-align: center; text-wrap: balance;
}

/* comic speech bubble with the card name */
.card .bubble { position: absolute; left: 3.6mm; top: 47.6mm; width: 37mm; height: 23mm; z-index: 2; color: #000; }
.card .bubble-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.card .bubble span {
  position: absolute; left: 2.6mm; right: 3.4mm; top: 1.6mm; height: 15.4mm;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "Russo One", "Roboto", sans-serif; font-size: 3.5mm; line-height: 1.08;
  text-transform: uppercase; text-wrap: balance;
}

/* number circle: top-right + rotated bottom-left */
.card .numcircle {
  position: absolute; width: 22.4mm; height: 22.4mm; border-radius: 50%; background: var(--unit);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.card .numcircle.tr { top: 0; right: 0; }
.card .numcircle.bl { bottom: 0; left: 0; transform: rotate(180deg); }
.card .numcircle .n { font-weight: 900; font-size: 14mm; line-height: 1; margin-top: .4mm; }
.card .numcircle .n.ul { text-decoration: underline; text-decoration-thickness: .9mm; text-underline-offset: 1mm; }

/* ---------- layout variant "both": name + flavor at both ends, art uncovered ---------- */
.card.both { --dbar-h: 17mm; }
.card.both .window { top: var(--dbar-h); height: calc(88mm - 2 * var(--dbar-h)); }
.card .dbar {
  position: absolute; left: 0; right: 0; height: var(--dbar-h); z-index: 3;
  padding: 3.1mm 4mm 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 7.6mm auto; column-gap: 2.5mm; row-gap: .7mm; align-items: center;
}
.card .dbar.top { top: 0; }
.card .dbar.bottom { bottom: 0; transform: rotate(180deg); }
.card .dbar .idx { display: flex; flex-direction: column; gap: .7mm; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.card .dbar .idx .unit { font-weight: 500; font-size: 2.9mm; letter-spacing: .05mm; }
.card .dbar .idx { align-items: flex-start; gap: 1mm; }
.card .dbar .idx .fx.fxb { font-size: 3.05mm; }
.card .dbar .tag { position: relative; justify-self: end; max-width: 100%; height: 7.6mm; padding: .6mm 3.2mm 1.4mm 2.6mm;
  display: flex; align-items: center; justify-content: center; color: #000; }
.card .dbar .tag-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.card .dbar .tag span { position: relative; font-family: "Russo One", "Roboto", sans-serif; font-size: 3.15mm; line-height: 1;
  text-transform: uppercase; text-align: center; text-wrap: balance; }
.card .dbar .tag.two { height: 8.6mm; padding-top: 1.2mm; padding-bottom: 1.4mm; }
.card .dbar .tag.two span { font-size: 2.55mm; line-height: .98; }
.card .dbar .fl { grid-column: 1 / -1; font-weight: 500; font-size: 2.1mm; line-height: 1.16; text-transform: uppercase;
  text-align: center; text-wrap: balance; }
.card.wild .dbar .fl { background: #000; padding: .25mm 1.2mm; border-radius: 1mm; }

/* back */
.card.back { background: #0c3d3c; }
.card .back-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* =====================================================================================
   VISUAL STYLES (skins). Same data, same layout, same safe areas — only the look changes.
   Applied with class s-<style> on .card (cardHTML opts.style). "bold" = the base above.
   ===================================================================================== */
@font-face { font-family: "Fredoka"; font-weight: 500; src: url("fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bangers"; font-weight: 400; src: url("fonts/bangers-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; src: url("fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------- 2. SCRUBS — soft scrub colours, cream mat, rounded type, pill bubble ---------- */
.card.s-scrubs { --q1: #e46a5e; --q2: #4f9e74; --q3: #e0a23c; --q4: #4f8fc6; font-family: "Fredoka", "Roboto", sans-serif; }
.card.s-scrubs[data-u="ER"]  { --unit: #e46a5e !important; }
.card.s-scrubs[data-u="ICU"] { --unit: #4f8fc6 !important; }
.card.s-scrubs[data-u="MS"]  { --unit: #4f9e74 !important; }
.card.s-scrubs[data-u="PD"]  { --unit: #e0a23c !important; }
.card.s-scrubs .window { border: 1.3mm solid #fbf4e6; border-radius: 3mm; box-shadow: 0 0 0 .25mm rgba(0,0,0,.12); }
.card.s-scrubs .bar .unit, .card.s-scrubs .dbar .idx .unit { font-weight: 600; }
.card.s-scrubs .fxb { font-weight: 700; border-radius: 99px; padding-inline: 1.3mm 1.8mm; }
.card.s-scrubs .fxb b { font-weight: 700; }
.card.s-scrubs .bubble-shape, .card.s-scrubs .tag-shape { display: none; }
.card.s-scrubs .bubble span { top: 4mm; height: 12mm; left: 1mm; right: 3mm; background: #fffaf0; border-radius: 6mm;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3.7mm; color: #3b2b25; padding: 0 2.5mm;
  box-shadow: 0 .6mm 0 rgba(0,0,0,.18); }
.card.s-scrubs .dbar .tag { background: #fffaf0; border-radius: 99px; box-shadow: 0 .45mm 0 rgba(0,0,0,.18); padding-inline: 2.6mm; }
.card.s-scrubs .dbar .tag span { font-family: "Fredoka", sans-serif; font-weight: 700; color: #3b2b25; }
.card.s-scrubs .strip p, .card.s-scrubs .dbar .fl { font-weight: 500; text-transform: none; font-size: 2.6mm; }
.card.s-scrubs .dbar .fl { font-size: 2.3mm; }
.card.s-scrubs .numcircle .n { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 15mm; }
.card.s-scrubs.wild .strip, .card.s-scrubs.wild .dbar .fl { background: #3b2b25; }

/* ---------- 3. CHART — patient-chart paper; colour lives in the bands; wristband name ---------- */
.card.s-chart { --paper: #f5f0e4; --ink: #1d2b2a; --q1: #e0453a; --q2: #2a9a4a; --q3: #d39a12; --q4: #1f8fc0;
  background: var(--paper) !important; font-family: "IBM Plex Mono", monospace; }
.card.s-chart[data-u="ER"]  { --unit: #e0453a !important; }
.card.s-chart[data-u="ICU"] { --unit: #1f8fc0 !important; }
.card.s-chart[data-u="MS"]  { --unit: #2a9a4a !important; }
.card.s-chart[data-u="PD"]  { --unit: #d39a12 !important; }
.card.s-chart .quads { display: none; }
/* bands run into the bleed */
.card.s-chart .bar, .card.s-chart .dbar { background: var(--unit); left: -3mm; right: -3mm; padding-left: 7.5mm; padding-right: 7.5mm; }
.card.s-chart .bar.top, .card.s-chart .dbar.top { top: -3mm; height: calc(var(--bar-h) + 3mm); padding-top: 3.6mm; }
.card.s-chart .bar.bottom, .card.s-chart .dbar.bottom { bottom: -3mm; height: calc(var(--bar-h) + 3mm); padding-top: 3.6mm; }
.card.s-chart .dbar.top, .card.s-chart .dbar.bottom { height: calc(var(--dbar-h) + 3mm); padding-top: 6.1mm; padding-left: 7mm; padding-right: 7mm; }
.card.s-chart.wild .bar, .card.s-chart.wild .dbar { background: linear-gradient(90deg, var(--q1) 0 25%, var(--q2) 25% 50%, var(--q3) 50% 75%, var(--q4) 75%); }
.card.s-chart .bar .unit, .card.s-chart .dbar .idx .unit { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .3mm; }
.card.s-chart .fxb { font-family: "Oswald", sans-serif; font-weight: 700; background: var(--paper) !important; color: var(--ink); border-radius: .6mm; }
.card.s-chart .fxb b { font-weight: 700; letter-spacing: .2mm; }
.card.s-chart .window { border: .35mm solid var(--ink); background: #fff; }
.card.s-chart .strip { background: transparent !important; }
.card.s-chart .strip p { color: var(--ink); font-size: 2.15mm; text-transform: none; font-weight: 500; }
.card.s-chart .strip p::before { content: "NOTES: "; font-weight: 700; }
.card.s-chart .dbar .fl { color: #fff; text-transform: none; font-family: "IBM Plex Mono", monospace; font-size: 2mm; }
.card.s-chart.wild .dbar .fl { background: rgba(0,0,0,.85); }
/* wristband name tag: white band, colour cap, barcode */
.card.s-chart .bubble-shape, .card.s-chart .tag-shape { display: none; }
.card.s-chart .bubble span { top: 6.5mm; height: 9mm; left: 0; right: 0; padding: 0 9mm 0 2.4mm; justify-content: flex-start; text-align: left;
  background: #fff linear-gradient(90deg, transparent calc(100% - 8mm), #fff calc(100% - 8mm)) no-repeat;
  border: .3mm solid var(--ink); border-left: 3mm solid var(--unit); border-radius: 4.5mm 1.2mm 1.2mm 4.5mm;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 3.6mm; color: var(--ink); letter-spacing: .1mm; }
.card.s-chart.wild .bubble span { border-left-color: var(--ink); }
.card.s-chart .bubble span::after { content: ""; position: absolute; right: 1.8mm; top: 1.6mm; bottom: 1.6mm; width: 5.4mm;
  background: repeating-linear-gradient(90deg, var(--ink) 0 .3mm, transparent .3mm .55mm, var(--ink) .55mm 1.05mm, transparent 1.05mm 1.35mm); }
.card.s-chart .dbar .tag { background: #fff; border: .3mm solid var(--ink); border-left: 2mm solid var(--ink); border-radius: 3.8mm 1mm 1mm 3.8mm; padding: .3mm 2.4mm 0 2mm; }
.card.s-chart .dbar .tag span { font-family: "Oswald", sans-serif; font-weight: 700; color: var(--ink); font-size: 3.4mm; }
.card.s-chart .dbar .tag.two span { font-size: 2.7mm; }
.card.s-chart .numcircle { background: var(--paper); border: .9mm solid var(--unit); width: 20mm; height: 20mm; top: 1.2mm; right: 1.2mm; z-index: 5; }
.card.s-chart .numcircle.bl { top: auto; right: auto; bottom: 1.2mm; left: 1.2mm; }
.card.s-chart .numcircle .n { color: var(--unit); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 12.5mm; }
.card.s-chart .art.pad { background: #fff; }

/* ---------- 4. NIGHT SHIFT — dark card, neon unit frame, monitor numerals ---------- */
.card.s-night { --navy: #0e1828; --q1: #ff5a5f; --q2: #3ee07a; --q3: #ffc93c; --q4: #31c7f0; background: var(--navy) !important; }
.card.s-night[data-u="ER"]  { --unit: #ff5a5f !important; --on: #ff5a5f !important; }
.card.s-night[data-u="ICU"] { --unit: #31c7f0 !important; --on: #31c7f0 !important; }
.card.s-night[data-u="MS"]  { --unit: #3ee07a !important; --on: #3ee07a !important; }
.card.s-night[data-u="PD"]  { --unit: #ffc93c !important; --on: #ffc93c !important; }
.card.s-night .quads { display: none; }
.card.s-night .trim::before { content: ""; position: absolute; inset: 1.4mm; border: .7mm solid var(--unit); border-radius: 2.6mm; z-index: 4; pointer-events: none; }
.card.s-night.wild .trim::before { border-color: transparent; border-image: conic-gradient(var(--q1) 0 25%, var(--q2) 0 50%, var(--q4) 0 75%, var(--q3) 0) 1; border-radius: 0; }
.card.s-night .fxb { background: transparent !important; border: .3mm solid currentColor; color: var(--on); }
.card.s-night.wild .fxb { color: #fff; }
.card.s-night .window { border: .3mm solid color-mix(in srgb, var(--unit) 60%, var(--navy)); }
.card.s-night.wild .window { border-color: #5b6b85; }
.card.s-night .strip { background: transparent !important; }
.card.s-night .strip p, .card.s-night .dbar .fl { color: #c9d4e3; }
.card.s-night.wild .dbar .fl { background: transparent; }
.card.s-night .bubble-shape path:first-child, .card.s-night .tag-shape path:first-child { fill: var(--unit); }
.card.s-night.wild .bubble-shape path:first-child, .card.s-night.wild .tag-shape path:first-child { fill: var(--q4); }
.card.s-night .bubble-shape path:last-child, .card.s-night .tag-shape path:last-child { fill: var(--navy); stroke: var(--unit); }
.card.s-night.wild .bubble-shape path:last-child, .card.s-night.wild .tag-shape path:last-child { stroke: #fff; }
.card.s-night .bubble span, .card.s-night .dbar .tag span { color: #fff; }
.card.s-night .numcircle { background: var(--navy); border: .6mm solid var(--unit); width: 20mm; height: 20mm; top: 1.9mm; right: 1.9mm; z-index: 5; }
.card.s-night .numcircle.bl { top: auto; right: auto; bottom: 1.9mm; left: 1.9mm; }
.card.s-night.both .trim::before { inset: .9mm; }
.card.s-night .numcircle .n { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 12mm; color: var(--unit); }
.card.s-night .bar .unit, .card.s-night .dbar .idx .unit { letter-spacing: .4mm; }

/* ---------- 5. POP — halftone comic, thick ink, yellow bubble ---------- */
.card.s-pop { --ink: #111; font-family: "Bangers", "Roboto", sans-serif; }
.card.s-pop::before, .card.s-pop .quads::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,.2) 32%, transparent 34%) 0 0 / 1.7mm 1.7mm; }
.card.s-pop .quads::after { z-index: 1; }
.card.s-pop .trim { z-index: 1; }
.card.s-pop .bar .unit, .card.s-pop .dbar .idx .unit { font-family: "Bangers", sans-serif; font-weight: 400; font-size: 4mm; letter-spacing: .3mm;
  -webkit-text-stroke: .35mm var(--ink); paint-order: stroke fill; }
.card.s-pop .fxb { background: var(--ink) !important; color: #fff; font-family: "Bangers", sans-serif; font-weight: 400; letter-spacing: .35mm; border-radius: .4mm; transform: rotate(-2deg); }
.card.s-pop .fxb b { font-weight: 400; }
.card.s-pop .bar .fx.fxb { font-size: 4mm; }
.card.s-pop .dbar .idx .fx.fxb { font-size: 3.5mm; }
.card.s-pop .window { border: .8mm solid var(--ink); border-radius: 5mm; }
.card.s-pop .bubble-shape path:last-child, .card.s-pop .tag-shape path:last-child { fill: #ffe94d; stroke-width: 2.4; }
.card.s-pop .bubble span, .card.s-pop .dbar .tag span { font-family: "Bangers", sans-serif; font-size: 4.6mm; letter-spacing: .25mm; color: var(--ink); }
.card.s-pop .dbar .tag span { font-size: 3.9mm; }
.card.s-pop .dbar .tag.two span { font-size: 3.1mm; }
.card.s-pop .strip { background: transparent !important; }
.card.s-pop .strip p { background: #fff; color: var(--ink); border: .45mm solid var(--ink); padding: .9mm 1.8mm; box-shadow: .6mm .6mm 0 var(--ink);
  font-family: "Roboto", sans-serif; font-weight: 700; font-size: 2.2mm; }
.card.s-pop .dbar .fl { background: #fff !important; color: var(--ink); border: .35mm solid var(--ink); padding: .3mm 1mm;
  font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1.95mm; }
.card.s-pop .numcircle { background: var(--unit); border: .8mm solid var(--ink); }
.card.s-pop .numcircle .n { font-family: "Bangers", sans-serif; font-weight: 400; font-size: 16mm; color: #fff;
  -webkit-text-stroke: .9mm var(--ink); paint-order: stroke fill; margin-top: 1.2mm; }


/* Clock Out — table simulator. Pop style on a scrubs-teal break-room table. */
:root {
  --felt: #0f4a45; --felt2: #0a3532; --ink: #111; --yel: #ffe94d; --cream: #fbf4e2; --er: #fe3737; --icu: #00acd7; --ms: #00b41e; --pd: #dba101;
  --ui: "Roboto", system-ui, sans-serif; --pop: "Bangers", "Impact", sans-serif;
  --ds: .9; --hs: .62; --os: .2; --spd: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--felt2); color: #fff; font-family: var(--ui); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; display: grid; grid-template-rows: 1fr; }
.logo { font-family: var(--pop); font-size: 24px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; line-height: 1; white-space: nowrap; }
.logo b { color: var(--yel); font-weight: 400; }
.logo small { font-family: var(--ui); -webkit-text-stroke: 0; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #9fd3cc; margin-left: 6px; vertical-align: middle; }
.status { font-size: 12.5px; color: #b9ddd8; font-variant-numeric: tabular-nums; line-height: 1.4; }
.hud { position: fixed; z-index: 90; bottom: max(10px, env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); display: flex; gap: 8px; align-items: flex-start; }
.hud > .btn { opacity: .82; box-shadow: 2px 2px 0 #000; } .hud > .btn:hover { opacity: 1; }
#menuBtn, #soundBtn { font-size: 18px; width: 40px; height: 36px; padding: 0; }
.menu { position: absolute; bottom: 44px; right: 0; max-height: calc(100vh - 80px); overflow: auto; width: 250px; display: grid; gap: 10px; padding: 14px; background: #0a2725; border: 2px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: #d6eeea; }
.mrow span { display: flex; gap: 6px; }
.menu #newBtn { justify-self: stretch; }
.btn { border: 2px solid #000; background: var(--yel); color: #000; font-family: var(--pop); letter-spacing: .6px; font-size: 16px; padding: 5px 12px 3px; border-radius: 8px;
  box-shadow: 2px 2px 0 #000; cursor: pointer; white-space: nowrap; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #000; }
.btn.ghost { background: #fff; }
.btn.red { background: var(--er); color: #fff; }
select.btn { padding: 4px 6px 3px; font-family: var(--pop); }

/* ---------- table ---------- */
.table { position: relative; display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3.2fr) minmax(90px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top top" "left center right" "you you you"; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #17645d 0%, var(--felt) 45%, var(--felt2) 100%); }
.table::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(circle, rgba(0,0,0,.35) 30%, transparent 33%) 0 0 / 9px 9px; }
.table > * { position: relative; }

/* seats */
.seat { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; min-width: 0; }
.seat-top { grid-area: top; padding-top: 8px; }
.seat-left { grid-area: left; flex-direction: column; }
.seat-right { grid-area: right; flex-direction: column; }
.seat-you { grid-area: you; flex-direction: column; gap: 4px; padding: 0 0 max(10px, env(safe-area-inset-bottom)); }
.who { display: flex; align-items: center; gap: 8px; }
.seat-left .who, .seat-right .who { flex-direction: column; gap: 4px; text-align: center; }
.av { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--cream); border: 3px solid #000; box-shadow: 3px 3px 0 #000;
  overflow: hidden; flex: none; transition: box-shadow .2s, transform .2s; }
.av img { position: absolute; left: 50%; top: 4px; width: 118%; transform: translateX(-50%); }
.nm { font-family: var(--pop); font-size: 19px; letter-spacing: .5px; -webkit-text-stroke: 1px #000; paint-order: stroke fill; line-height: 1; }
.nm small { display: block; font-family: var(--ui); -webkit-text-stroke: 0; font-size: 11px; color: #b9ddd8; letter-spacing: 0; margin-top: 3px; }
.cnt { font-family: var(--ui); -webkit-text-stroke: 0; letter-spacing: 0; vertical-align: 2px; display: inline-block; min-width: 26px; text-align: center; background: #fff; color: #000; border: 2px solid #000; border-radius: 99px; font-weight: 900; font-size: 13px; padding: 1px 6px; margin-left: 4px; }
.seat.active .av { box-shadow: 0 0 0 4px var(--yel), 3px 3px 0 4px #000; transform: scale(1.06); }
.seat.active .nm { color: var(--yel); }
.think { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; opacity: 0; }
.seat.active:not(.seat-you) .think { opacity: 1; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: var(--yel); animation: think 1s infinite; }
.think i:nth-child(2) { animation-delay: .15s; } .think i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.minifan { position: relative; height: calc(88mm * var(--os) + 6px); width: calc(63mm * var(--os) + 70px); }
.minifan .cw { position: absolute; left: 50%; bottom: 0; transform-origin: 50% 110%; }
.seat-left .minifan, .seat-right .minifan { margin-top: 2px; }

/* card wrapper: shows the trimmed card (63×88 mm) at scale --s */
.cw { --s: 1; position: relative; width: calc(63mm * var(--s)); height: calc(88mm * var(--s)); border-radius: calc(3.2mm * var(--s)); overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.35); background: #fff; }
.cw > .card { position: absolute; left: calc(-3mm * var(--s)); top: calc(-3mm * var(--s)); transform: scale(var(--s)); transform-origin: 0 0; }

/* center: draw pile + discard */
.center { grid-area: center; position: relative; min-height: 0; overflow: visible; }
/* both piles sit at the centre; JS moves them per phase (deal / play / draw) with transforms */
#drawPile, #discardWrap { position: absolute; left: 50%; top: 50%; translate: -50% -50%; transition: transform .6s cubic-bezier(.3,.85,.3,1), opacity .45s; will-change: transform; }
#discardWrap { z-index: 2; }
.pile { width: calc(63mm * var(--ds)); height: calc(88mm * var(--ds)); }
.pile .cw { position: absolute; inset: 0; --s: var(--ds); }
#drawPile { cursor: pointer; z-index: 3; }
#drawPile.peek { z-index: 1; }
#drawPile .cw:nth-child(1) { transform: translate(6px, 6px); } #drawPile .cw:nth-child(2) { transform: translate(3px, 3px); }
#drawPile.can::after { content: "DRAW"; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: var(--yel); color: #000; border: 2px solid #000; border-radius: 8px;
  font-family: var(--pop); font-size: 16px; padding: 3px 10px 1px; box-shadow: 2px 2px 0 #000; z-index: 3; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.deckn { position: absolute; right: -10px; top: -10px; z-index: 3; background: #fff; color: #000; border: 2px solid #000; border-radius: 99px; font-weight: 900; font-size: 12px; padding: 1px 7px; }
#discardWrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#discard { position: relative; width: calc(63mm * var(--ds)); height: calc(88mm * var(--ds)); }
#discard .cw { position: absolute; left: 0; top: 0; --s: var(--ds); }
#discard::before { content: ""; position: absolute; inset: -14px; border-radius: 22px; border: 5px solid var(--cur, #fff); opacity: .85; box-shadow: 0 0 34px var(--cur, #fff); transition: border-color .3s, box-shadow .3s; }
.unitpill { font-family: var(--pop); font-size: 18px; letter-spacing: .6px; background: var(--cur, #fff); color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill;
  border: 2px solid #000; border-radius: 99px; padding: 3px 14px 1px; box-shadow: 2px 2px 0 #000; transition: background .3s; }

/* your hand */
#hand { position: relative; display: flex; justify-content: center; align-items: flex-end; height: calc(88mm * var(--hs) + 30px); padding-bottom: 14px !important; width: 100%; padding: 0 12px; }
#hand .slot { position: relative; flex: none; transition: transform .25s, margin .25s; cursor: default; }
#hand .slot .cw { --s: var(--hs); transition: transform .18s, box-shadow .18s, filter .2s; }
#hand .slot.ok { cursor: pointer; }
#hand .slot.ok .cw { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--yel), 0 8px 16px rgba(0,0,0,.45); }
#hand .slot.ok:hover .cw { transform: translateY(-28px) scale(1.04); }
#hand.mine .slot:not(.ok) .cw { filter: brightness(.62) saturate(.7); }
#hand .slot.new .cw { animation: popin .35s ease-out; }
@keyframes popin { from { transform: translateY(30px) scale(.8); opacity: 0; } }
.youbar { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 30px; max-width: 100%; padding: 0 12px; }
.hint { font-size: 13px; color: #cfe8e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#dischargeBtn { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; z-index: 30; font-size: 22px; padding: 6px 16px 3px; animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }

/* callouts, bubbles, log */
#callout { position: absolute; left: 50%; top: 50%; z-index: 40; pointer-events: none; text-align: center; transform: translate(-50%, -50%); }
#callout::before { content: ''; position: absolute; left: 50%; top: 45%; width: 150%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.95) 0 8deg, rgba(255,233,77,.95) 8deg 16deg); -webkit-mask: radial-gradient(circle, #000 38%, transparent 70%); mask: radial-gradient(circle, #000 38%, transparent 70%); animation: burstSpin 1.6s linear; }
@keyframes burstSpin { to { rotate: 40deg; } }
#callout .big { display: block; font-family: var(--pop); font-size: clamp(64px, 15vw, 120px); line-height: .9; letter-spacing: 2px; color: var(--c, var(--yel));
  -webkit-text-stroke: clamp(3px, .6vw, 6px) #000; paint-order: stroke fill; text-shadow: 6px 6px 0 #000; white-space: nowrap; }
#callout .sub { display: inline-block; margin-top: 8px; background: #fff; color: #000; border: 3px solid #000; box-shadow: 4px 4px 0 #000; font-family: var(--pop);
  font-size: clamp(16px, 2.6vw, 26px); letter-spacing: .5px; padding: 4px 12px 2px; transform: rotate(-2deg); }
.bubble { position: absolute; z-index: 45; background: #fff; color: #000; border: 3px solid #000; border-radius: 16px; box-shadow: 3px 3px 0 #000; font-family: var(--pop);
  font-size: 22px; letter-spacing: .5px; padding: 6px 14px 3px; white-space: nowrap; pointer-events: none; }
.bubble.red { color: var(--er); font-size: 26px; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -11px; width: 14px; height: 14px; background: #fff; border-right: 3px solid #000; border-bottom: 3px solid #000; transform: skewX(-20deg) rotate(45deg); }
#log { position: absolute; left: max(12px, env(safe-area-inset-left)); top: 10px; z-index: 5; width: min(300px, 24vw); font-size: 12.5px; line-height: 1.35; color: #d6eeea; pointer-events: none; }
#log div { padding: 3px 8px; background: rgba(0,0,0,.28); border-radius: 6px; margin-top: 3px; animation: logIn .3s ease-out; }
#log div:not(:last-child) { opacity: .55; }
@keyframes logIn { from { transform: translateX(-12px); opacity: 0; } }

/* flying cards */
#fly { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#fly .cw { position: absolute; left: 0; top: 0; will-change: transform; }

/* overlays */
.ov { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(4, 22, 20, .72); backdrop-filter: blur(3px); padding: 16px; overflow-y: auto; }
.panel { background: var(--cream); color: #000; border: 4px solid #000; border-radius: 18px; box-shadow: 8px 8px 0 #000; padding: 22px 24px; max-width: 520px; width: 100%; text-align: center; }
.panel h2 { font-family: var(--pop); font-weight: 400; font-size: 40px; letter-spacing: 1px; margin: 0 0 4px; color: var(--er); -webkit-text-stroke: 2px #000; paint-order: stroke fill; line-height: 1; }
.panel p { margin: 6px 0 14px; line-height: 1.45; font-size: 15px; }
.panel .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.panel .btn { font-size: 20px; padding: 8px 16px 5px; }
.hero { font-family: var(--pop); line-height: .82; font-size: 74px; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 5px 5px 0 #000; transform: rotate(-5deg); margin: 4px 0 6px; }
.hero b { display: block; color: var(--yel); font-weight: 400; font-size: 84px; }
.ribbon { display: inline-block; background: #000; color: var(--yel); font-family: var(--pop); letter-spacing: 1px; font-size: 18px; padding: 4px 12px 2px; transform: rotate(-5deg); margin-bottom: 10px; }
.units4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ubtn { border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; color: #fff; font-family: var(--pop); font-size: 28px; letter-spacing: 1px; padding: 18px 8px 14px;
  -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; cursor: pointer; }
.ubtn small { display: block; font-family: var(--ui); -webkit-text-stroke: 0; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: 0; margin-top: 2px; }
.ubtn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.targets { display: grid; gap: 10px; margin-top: 10px; }
.tbtn { display: flex; align-items: center; gap: 12px; border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; background: #fff; padding: 8px 14px; cursor: pointer; font-family: var(--pop); font-size: 22px; }
.tbtn .av { width: 46px; height: 46px; box-shadow: none; border-width: 2px; }
.tbtn span { margin-left: auto; font-family: var(--ui); font-size: 14px; font-weight: 700; }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 79; pointer-events: none; animation: fall linear forwards; border: 1.5px solid #000; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
#prerender { position: absolute; left: -10000px; top: 0; width: 69mm; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .table { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "left top right" "center center center" "you you you"; }
  .seat-left, .seat-right, .seat-top { flex-direction: column; padding: 8px 4px 2px; gap: 3px; }
  .seat .who { flex-direction: column; gap: 3px; text-align: center; }
  .av { width: 46px; height: 46px; border-width: 2px; box-shadow: 2px 2px 0 #000; }
  .nm { font-size: 16px; } .nm small { display: none; }
  .minifan { display: none; }
  #log { display: none; }
  .btn { font-size: 14px; padding: 4px 9px 2px; }
  .hud > .btn { opacity: .7; }
  #hand { padding-bottom: 24px !important; height: calc(88mm * var(--hs) + 40px); }
}

/* live tables + forms */
.btn.icon { padding: 3px 8px 2px; font-size: 16px; font-family: var(--ui); }
.panel .row.live { margin-top: 10px; }
.panel .small { font-size: 12.5px; color: #555; margin: 12px 0 0; }
.fld { display: grid; gap: 4px; text-align: left; font-weight: 700; font-size: 13px; margin: 10px 0; }
.fld input { font: 700 20px var(--ui); padding: 10px 12px; border: 3px solid #000; border-radius: 10px; background: #fff; color: #000; box-shadow: 3px 3px 0 #000; text-transform: none; }
#joinCode { text-transform: uppercase; letter-spacing: 2px; font-family: var(--pop); font-size: 26px; }
#lobbyBody h2 { font-size: 56px; letter-spacing: 3px; color: var(--yel); }
ol.seats { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; text-align: left; }
ol.seats li { display: flex; align-items: center; gap: 10px; border: 3px solid #000; border-radius: 12px; padding: 8px 12px; background: #fff; font-weight: 700; box-shadow: 3px 3px 0 #000; }
ol.seats li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #000; color: var(--yel); font-family: var(--pop); font-weight: 400; font-size: 17px; flex: none; }
ol.seats li.live { background: #eafbe9; }
ol.seats .muted { color: #777; font-weight: 500; }
.hint.dark { color: #333; }
.av.human { display: grid; place-items: center; }
.av.human span { font-family: var(--pop); font-size: 34px; color: #fff; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; line-height: 1; }
@media (max-width: 760px) { .av.human span { font-size: 24px; } #lobbyBody h2 { font-size: 44px; } }

/* turn flow: faint dotted track between players, running dots from whoever plays now to who's next */
#flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
#flowBase path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 12; }
#flowNow { fill: none; stroke: #ffe94d; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0.1 16; animation: flowRun .9s linear infinite; filter: drop-shadow(0 0 4px rgba(255,233,77,.7)); }
#flowNow.off { opacity: 0; }
@keyframes flowRun { to { stroke-dashoffset: -16.1; } }
#drawBtn { font-size: 14px; padding: 3px 10px 1px; flex: none; }

/* ---------- shift clock + records */
.clock { position: fixed; z-index: 69; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; background: #0a2725; color: #fff; border: 2px solid #000; border-radius: 999px; box-shadow: 3px 3px 0 #000; font: 600 12px/1 system-ui, sans-serif; pointer-events: none; }
.clock b { font: 800 15px/1 var(--pop); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.clock span { opacity: .8; }
.clock em { font-style: normal; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.12); }
.clock.pace em { background: #ffe94d; color: #000; animation: pace 1.2s ease-in-out infinite; }
.clock.pace em::before { content: '🔥 on record pace · '; }
@keyframes pace { 50% { transform: scale(1.06); } }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; text-align: left; }
.statgrid div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; background: rgba(0,0,0,.06); border: 2px solid #000; border-radius: 9px; font-size: 12px; }
.statgrid b { font-variant-numeric: tabular-nums; }
.newrec { margin: 8px 0 10px; padding: 10px; background: #ffe94d; border: 3px solid #000; border-radius: 12px; box-shadow: 4px 4px 0 #000; animation: nrpop .5s cubic-bezier(.2,1.6,.4,1) both; }
.nr-burst { font: 400 30px/1 var(--pop); letter-spacing: .05em; color: #e8202a; -webkit-text-stroke: 1.5px #000; margin-bottom: 6px; }
.nr-row { display: flex; align-items: baseline; gap: 8px; justify-content: center; font-size: 13px; }
.nr-row em { font-style: normal; font-size: 10px; text-transform: uppercase; padding: 2px 6px; background: #000; color: #ffe94d; border-radius: 999px; }
.nr-name { display: flex; gap: 6px; margin-top: 8px; }
.nr-name input { flex: 1; min-width: 0; padding: 8px 10px; border: 2px solid #000; border-radius: 9px; font: inherit; }
@keyframes nrpop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.recwrap { margin: 12px 0 4px; }
.rb-h { margin: 0 0 6px; font: 400 18px/1 var(--pop); letter-spacing: .06em; }
.recboard { width: 100%; color: #000; font-family: var(--ui); border-collapse: separate; border-spacing: 0 4px; font-size: 12px; text-align: left; }
.recboard thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding: 0 6px; }
.recboard tbody th { padding: 5px 6px; font-weight: 700; width: 46%; }
.recboard tbody th em { display: block; font-style: normal; font-weight: 400; font-size: 10px; opacity: .65; }
.recboard td { padding: 5px 6px; background: rgba(0,0,0,.06); border-top: 2px solid #000; border-bottom: 2px solid #000; }
.recboard td:last-child { border-right: 2px solid #000; border-radius: 0 9px 9px 0; }
.recboard td:nth-child(2) { border-left: 2px solid #000; border-radius: 9px 0 0 9px; }
.recboard td b { display: block; font-variant-numeric: tabular-nums; }
.recboard td small { display: block; font-size: 10px; opacity: .7; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recboard td i { opacity: .5; }
@media (max-width: 760px) { .clock { top: auto; bottom: max(6px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 11px; gap: 6px; padding: 4px 9px 4px 7px; white-space: nowrap; background: rgba(10,39,37,.92); } .clock.pace em::before { content: '🔥 '; } .clock span { display: none; } .recboard tbody th em { display: none; } .statgrid div { font-size: 11px; } }
.finish { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.fin { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fin .av { width: 56px; height: 56px; }
.fin .av.human span { font-size: 28px; }
.fin b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin span { font: 700 11px/1 var(--ui); padding: 3px 8px; border: 2px solid #000; border-radius: 999px; background: #fff; }
.fin.won .av { border-color: #000; box-shadow: 0 0 0 4px var(--yel), 3px 3px 0 4px #000; }
.fin.won span { background: var(--yel); }
@media (max-width: 420px) { .fin .av { width: 48px; height: 48px; } .fin b { font-size: 12px; } }

/* ---------- support: real deck + tips */
.support { position: relative; margin: 12px 0 10px; padding: 12px; background: #fff; border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; text-align: left; }
.sup-h { font: 400 22px/1 var(--pop); letter-spacing: .05em; color: var(--er); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-align: center; margin-bottom: 8px; }
.sup-deck { font-size: 13.5px; line-height: 1.4; }
.sup-form { display: flex; gap: 6px; margin-top: 8px; }
.sup-form input { flex: 1; min-width: 0; padding: 9px 10px; border: 2px solid #000; border-radius: 10px; font: 15px var(--ui); }
.panel .sup-form .btn { font-size: 17px; padding: 7px 12px 4px; white-space: nowrap; }
.sup-fine { font-size: 11px; color: #666; margin-top: 4px; }
.sup-done { padding: 9px 10px; background: #e6f7e8; border: 2px solid #000; border-radius: 10px; font-weight: 600; }
.sup-tipsh { margin: 12px 0 6px; font: 400 15px/1 var(--pop); letter-spacing: .06em; text-align: center; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; background: var(--yel); color: #000; text-decoration: none; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; cursor: pointer; font: inherit; transition: transform .12s; }
.tip:hover { transform: translate(-1px, -1px) rotate(-1deg); } .tip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.tip i { font-style: normal; font-size: 24px; line-height: 1; }
.tip b { font: 400 20px/1 var(--pop); letter-spacing: .04em; }
.tip small { font-size: 10.5px; line-height: 1.15; text-align: center; }
.tip.soon { background: #f3eedc; }
.sup-msg { min-height: 0; font-size: 12.5px; text-align: center; margin-top: 6px; font-weight: 600; }
.sup-msg:empty { display: none; }
.sup-proof { margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 700; }
.sup-skip { position: absolute; top: 6px; right: 8px; background: none; border: 0; font: 600 11px var(--ui); color: #777; cursor: pointer; }
.ov { grid-template-columns: minmax(0, 1fr); }
.panel { box-sizing: border-box; min-width: 0; justify-self: center; }
.support, .support * { box-sizing: border-box; }
.tips > * { min-width: 0; }
@media (max-width: 420px) { .panel { padding: 18px 14px; } .sup-form { flex-wrap: wrap; } .sup-form input { flex-basis: 100%; } .panel .sup-form .btn { width: 100%; } }
.pv-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #000; font: 700 12px var(--ui); }
.panel .pv-bar .btn { font-size: 14px; padding: 6px 10px 4px; }
.pv-bar .btn.on { background: var(--yel); }

/* ---------- real-deck promo (start screen) */
.promo { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0 6px; padding: 14px 14px 14px 10px; text-align: left; cursor: pointer; font: inherit; color: #000;
  background: radial-gradient(circle, rgba(0,0,0,.13) 1.2px, transparent 1.6px) 0 0 / 9px 9px, var(--yel);
  border: 3px solid #000; border-radius: 16px; box-shadow: 5px 5px 0 #000; transform: rotate(-1.2deg); transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s;
  animation: promoIn .7s cubic-bezier(.2,1.5,.4,1) .25s both; overflow: visible; }
.promo:hover { transform: rotate(0deg) translateY(-3px) scale(1.02); box-shadow: 7px 8px 0 #000; }
.promo:active { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 2px 2px 0 #000; }
.promo-sticker { position: absolute; top: -13px; right: -8px; z-index: 3; padding: 5px 10px 3px; background: var(--er); color: #fff; font: 400 13px/1 var(--pop); letter-spacing: .08em; border: 2px solid #000; border-radius: 6px; box-shadow: 2px 2px 0 #000; transform: rotate(6deg); animation: stickerWob 2.6s ease-in-out infinite; }
.promo-fan, .sup-fan { position: relative; flex: none; width: 118px; height: 96px; }
.promo-fan .cw, .sup-fan .cw { --s: .25; position: absolute; left: 50%; bottom: 2px; margin-left: calc(-31.5mm * var(--s)); transform-origin: 50% 120%; box-shadow: 2px 2px 0 #000; border: 1.5px solid #000;
  transform: rotate(calc(var(--k) * 16deg)) translateX(calc(var(--k) * 6px)); animation: fanDeal .6s cubic-bezier(.2,1.4,.4,1) calc(.45s + var(--d)) both, fanBob 3.2s ease-in-out calc(1.3s + var(--d)) infinite; }
.promo:hover .promo-fan .cw { transform: rotate(calc(var(--k) * 24deg)) translateX(calc(var(--k) * 10px)) translateY(-6px); animation-play-state: paused; }
/* the deck's box, in 3D */
.promo-fan, .sup-fan { perspective: 520px; }
.box3d { --w: 60px; --h: 84px; --dp: 22px; position: absolute; left: 50%; bottom: 8px; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2); transform-style: preserve-3d;
  animation: boxIn .8s cubic-bezier(.2,1.5,.4,1) .4s both, boxSway 5s ease-in-out 1.2s infinite; }
.box3d i { position: absolute; display: block; border: 1.5px solid #000; box-sizing: border-box; }
.box3d .bf { inset: 0; border-radius: 3px; background: url(art/box-front.jpg) center / cover #e83434; transform: translateZ(calc(var(--dp) / 2)); overflow: hidden; }
.box3d .bf::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-70%); animation: boxGlint 5s ease-in-out 1.6s infinite; }
.box3d .bs { top: 0; left: calc(var(--w) - var(--dp) / 2); width: var(--dp); height: var(--h); background: radial-gradient(circle, rgba(0,0,0,.18) 1px, transparent 1.4px) 0 0 / 5px 5px, #b81d1d; transform: rotateY(90deg); }
.box3d .bs::after { content: "CLOCK OUT"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); font: 400 10px/1 var(--pop); letter-spacing: .08em; color: #ffe94d; white-space: nowrap; -webkit-text-stroke: .4px #000; }
.box3d .bt { left: 0; top: calc(var(--dp) / -2); width: var(--w); height: var(--dp); background: #d62a2a; transform: rotateX(90deg); }
.box-shadow { position: absolute; left: 50%; bottom: 0; width: 78px; height: 12px; margin-left: -36px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(2px); animation: boxShadow 5s ease-in-out 1.2s infinite; }
.promo:hover .box3d { animation-play-state: paused, paused; transform: rotateX(-12deg) rotateY(-44deg) translateY(-4px) scale(1.06); transition: transform .3s; }
@keyframes boxIn { from { transform: translateY(30px) rotateX(-10deg) rotateY(-80deg) scale(.6); } to { transform: rotateX(-10deg) rotateY(-34deg); } }
@keyframes boxSway { 0%, 100% { transform: rotateX(-10deg) rotateY(-34deg) translateY(0); } 50% { transform: rotateX(-7deg) rotateY(-20deg) translateY(-4px); } }
@keyframes boxGlint { 0%, 55% { transform: translateX(-70%); } 80%, 100% { transform: translateX(70%); } }
@keyframes boxShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.85); opacity: .7; } }
.promo-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo-txt b { font: 400 24px/.95 var(--pop); letter-spacing: .03em; color: #fff; -webkit-text-stroke: 1.6px #000; paint-order: stroke fill; text-shadow: 2px 2px 0 #000; }
.promo-txt small { font-size: 12.5px; font-weight: 600; }
.promo-cta { position: relative; align-self: flex-start; margin-top: 5px; padding: 7px 14px 5px; overflow: hidden; background: var(--er); color: #fff; font: 400 17px/1 var(--pop); letter-spacing: .06em; border: 2px solid #000; border-radius: 10px; box-shadow: 3px 3px 0 #000; }
.promo-cta i { display: inline-block; font-style: normal; animation: nudge 1.2s ease-in-out infinite; }
.promo-cta::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-18deg); animation: shine 3.4s ease-in-out 1.6s infinite; }
.promo-proof { font-style: normal; font-size: 11.5px; font-weight: 700; }
.promo-proof:empty { display: none; }
@keyframes promoIn { from { opacity: 0; transform: translateY(18px) rotate(-6deg) scale(.9); } }
@keyframes fanDeal { from { opacity: 0; transform: translateY(40px) rotate(0deg); } }
@keyframes fanBob { 50% { translate: 0 -4px; } }
@keyframes stickerWob { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-2deg) scale(1.06); } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
/* the same fan heads the deck/tips box */
.sup-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -4px 0 14px; }
.sup-fan { width: 96px; height: 74px; }
.sup-fan .cw { --s: .2; }
.sup-top .sup-h { margin: 0; }
@media (max-width: 420px) { .promo { gap: 10px; } .promo-fan { width: 100px; height: 88px; } .promo-fan .cw { --s: .22; } .promo-fan .box3d { --w: 56px; --h: 78px; --dp: 20px; } .promo-txt b { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .promo, .promo *, .sup-fan .cw, .sup-fan .box3d, .sup-fan .box3d *, .sup-fan .box-shadow { animation: none !important; } .box3d { transform: rotateX(-10deg) rotateY(-34deg); } }


/* AI seats: a small tag under the name */
.aitag { display: block; width: max-content; margin: 4px auto 0; padding: 2px 7px 1px; font: 700 10px/1.2 var(--ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase;
  -webkit-text-stroke: 0; color: #cfe8e4; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; }
@media (max-width: 760px) { .aitag { font-size: 9px; padding: 2px 6px 1px; margin-top: 3px; } }

/* ---------- attract mode: demo plays behind one big call to action */
.attract { position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 0 12px max(14px, env(safe-area-inset-bottom)); pointer-events: none;
  background: linear-gradient(to top, rgba(4,22,20,.97) 0%, rgba(4,22,20,.9) 62%, transparent 100%); padding-top: 90px; }
.at-card { pointer-events: auto; display: grid; justify-items: center; gap: 8px; max-width: 460px; width: 100%; text-align: center; animation: atIn .7s cubic-bezier(.2,1.4,.4,1) .4s both; }
.at-logo { font: 400 40px/.9 var(--pop); letter-spacing: 1px; color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #000; transform: rotate(-3deg); }
.at-logo b { color: var(--yel); font-weight: 400; }
.at-logo small { display: block; margin-top: 4px; font-size: 15px; letter-spacing: 2px; color: var(--yel); -webkit-text-stroke: 0; text-shadow: none; }
.at-card p { margin: 0; font-size: 14px; line-height: 1.4; color: #d6eeea; }
.btn.at-go { font-size: 30px; padding: 12px 34px 8px; border-width: 3px; border-radius: 14px; box-shadow: 5px 5px 0 #000; animation: atPulse 1.6s ease-in-out 1.4s infinite; }
.btn.at-go i { font-style: normal; display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
@keyframes atIn { from { opacity: 0; transform: translateY(40px); } }
@keyframes atPulse { 50% { transform: scale(1.05); } }
body.democta .youbar { visibility: hidden; }
body.democta .clock, body.democta #dischargeBtn, body.democta #drawBtn { display: none !important; }
@media (max-width: 760px) { .at-logo { font-size: 32px; } .btn.at-go { font-size: 26px; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .at-card, .btn.at-go, .btn.at-go i { animation: none; } }

/* start screen: the record board opens on demand */
.reclink { margin: 14px auto 0; display: block; background: none; border: 0; font: 700 14px var(--ui); color: #000; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* start screen title: the NURSE EDITION ribbon sits across the middle of CLOCK OUT */
.brand { position: relative; display: inline-block; margin: 4px 0 14px; }
.brand .hero { margin: 0; }
.brand .hero b { margin-top: 16px; }
.brand .ribbon { position: absolute; left: 50%; top: 47%; z-index: 2; margin: 0; white-space: nowrap; font-size: 17px; padding: 4px 12px 2px;
  border: 2px solid var(--yel); box-shadow: 3px 3px 0 #000; transform: translate(-50%, -50%) rotate(-8deg); }

/* support box: pitch under the title, beside the fan */
.support .sup-top { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: -2px 0 10px; }
.sup-head { flex: 1; min-width: 0; text-align: left; }
.sup-head .sup-h { text-align: left; margin: 0 0 5px; }
.panel .sup-lead { margin: 0; font-size: 13.5px; line-height: 1.38; }
.panel .sup-lead.sup-done { padding: 6px 8px; font-size: 12.5px; }
@media (max-width: 420px) { .support .sup-fan { width: 84px; } .panel .sup-lead { font-size: 12.5px; } }

/* tips: bigger icons that zoom in one after another, then hop in turn every few seconds */
.tip i { font-size: 40px; line-height: 1.05; display: inline-block; animation: tipHop 4.2s ease-in-out infinite; }
.tips .tip { animation: tipIn .5s cubic-bezier(.2,1.6,.4,1) both; }
.tips .tip:nth-child(1) { animation-delay: .35s; } .tips .tip:nth-child(2) { animation-delay: .6s; } .tips .tip:nth-child(3) { animation-delay: .85s; }
.tips .tip:nth-child(1) i { animation-delay: 1.6s; } .tips .tip:nth-child(2) i { animation-delay: 1.9s; } .tips .tip:nth-child(3) i { animation-delay: 2.2s; }
@keyframes tipIn { from { opacity: 0; transform: scale(.2) rotate(-12deg); } 70% { opacity: 1; transform: scale(1.08) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes tipHop { 0%, 14%, 100% { transform: none; } 5% { transform: scale(1.3) rotate(-10deg) translateY(-4px); } 10% { transform: scale(.95) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .tips .tip, .tip i { animation: none; } }

/* avatar picker (host + join forms) and emoji avatars */
.avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.avopt { aspect-ratio: 1; border: 2px solid #000; border-radius: 12px; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; transition: transform .12s; }
.avopt:hover { transform: scale(1.08); }
.avopt.on { background: var(--yel); box-shadow: 3px 3px 0 #000; transform: scale(1.1) rotate(-4deg); }
.av.human.emo span { -webkit-text-stroke: 0; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 36px; }
@media (max-width: 760px) { .av.human.emo span { font-size: 26px; } }
.fin .av.human.emo span { font-size: 30px; }
ol.seats li b.em { background: var(--yel); font-size: 18px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.invite-url { font: 600 12px var(--ui); color: #555; word-break: break-all; margin: 6px 0 0; }
.invite-url:empty { display: none; }

/* menu + sound live in the bottom-right corner; on phones they sit beside the shift clock under the hand */
@media (max-width: 760px) { .hud { bottom: max(6px, env(safe-area-inset-bottom)); right: max(8px, env(safe-area-inset-right)); gap: 6px; } #menuBtn, #soundBtn { width: 34px; height: 30px; font-size: 15px; } .menu { bottom: 38px; } }

/* "Host a live table": invite-your-friends call to action */
.btn.host-cta { position: relative; overflow: visible; display: inline-flex; align-items: center; gap: 8px; background: #ffe94d; animation: hostNudge 4s ease-in-out 1.4s infinite; }
.btn.host-cta::before { content: ""; position: absolute; inset: -3px; border-radius: 11px; border: 3px solid #ffe94d; opacity: 0; pointer-events: none; animation: hostRing 2s ease-out 1s infinite; }
.hc-avs { display: inline-flex; }
.hc-avs i { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -7px; border: 2px solid #000; border-radius: 50%; background: #fff; font-style: normal; font-size: 14px; line-height: 1;
  animation: hcPop .45s cubic-bezier(.2,1.6,.4,1) both, hcHop 4s ease-in-out infinite; }
.hc-avs i:first-child { margin-left: 0; }
.hc-avs i:nth-child(1) { animation-delay: .5s, 1.6s; } .hc-avs i:nth-child(2) { animation-delay: .7s, 1.8s; } .hc-avs i:nth-child(3) { animation-delay: .9s, 2s; }
.hc-tag { position: absolute; top: -12px; right: -10px; padding: 3px 7px 2px; background: var(--er); color: #fff; font: 400 11px/1 var(--pop); letter-spacing: .06em; border: 2px solid #000; border-radius: 6px; box-shadow: 2px 2px 0 #000; transform: rotate(5deg); white-space: nowrap; animation: stickerWob 2.6s ease-in-out infinite; }
.btn.host-cta:hover { animation-play-state: paused; }
@keyframes hostRing { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes hostNudge { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-3deg) scale(1.05); } 88% { transform: rotate(3deg) scale(1.05); } 92% { transform: rotate(-2deg); } 96% { transform: none; } }
@keyframes hcPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hcHop { 0%, 70%, 100% { translate: 0 0; } 76% { translate: 0 -6px; } 82% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .btn.host-cta, .btn.host-cta::before, .hc-avs i, .hc-tag { animation: none !important; } }

/* start screen: play buttons right under the title, rules text below them as a divider */
#start .brand + .row { margin-top: 4px; }
#start .brand + .row + p { margin-top: 16px; }

/* live tables: connection banner, toasts, resume-your-table box */
.net-banner { position: fixed; z-index: 96; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); max-width: min(92vw, 520px); padding: 8px 14px 7px; background: #0a2725; color: #fff; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; font: 600 13px/1.35 var(--ui); text-align: center; animation: nbIn .35s ease-out; }
.net-banner b { color: var(--yel); }
.net-banner.act { background: var(--yel); color: #000; cursor: pointer; animation: nbIn .35s ease-out, nbPulse 1.6s ease-in-out .4s infinite; }
.net-banner.act b { color: #000; text-decoration: underline; }
.net-toast { position: fixed; z-index: 95; left: 50%; top: 38%; transform: translateX(-50%); max-width: min(88vw, 440px); padding: 9px 14px 8px; background: rgba(10,39,37,.95); color: #fff; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; font: 600 13px/1.35 var(--ui); text-align: center; pointer-events: none; }
.net-toast.in { animation: toastIn 4.2s ease both; }
@keyframes nbIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes nbPulse { 0%, 100% { box-shadow: 3px 3px 0 #000; } 50% { box-shadow: 3px 3px 0 #000, 0 0 0 6px rgba(255,233,77,.35); } }
@keyframes toastIn { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.96); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 4px 0 10px; padding: 10px 12px; background: #e9f7f3; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; font-size: 13.5px; }
.resume span { display: flex; gap: 8px; }
.resume .btn { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .net-banner, .net-toast.in { animation: none !important; } }

/* end-of-shift deck box: room above the 3D box so its lid never pokes out of the panel */
.support .sup-top { margin-top: 6px; }
.support .sup-fan { height: 112px; }
@media (max-width: 420px) { .support .sup-fan { height: 104px; } }

/* "First print run" on the real-deck promo: a quiet paper tag, not another red sticker */
.promo .promo-sticker { background: #fffdf5; color: #000; font-size: 11px; padding: 4px 8px 2px; border-width: 1.5px; box-shadow: 1.5px 1.5px 0 #000; transform: rotate(3deg); animation: none; }

/* host/join forms: a preview of your seat on the felt */
.mepv { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 12px; padding: 10px 12px 14px; border: 2px solid #000; border-radius: 14px; box-shadow: 3px 3px 0 #000;
  background: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.4px) 0 0 / 8px 8px, radial-gradient(ellipse at 50% 30%, #1d6a60, #0d3b36); }
.mepv-lbl { font: 700 11px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #9fd3cc; }
.mepv .who { gap: 10px; }
.mepv .nm { color: #fff; font-size: 22px; text-align: left; }
.mepv .nm small { display: block; margin-top: 4px; font: 600 11px/1 var(--ui); -webkit-text-stroke: 0; color: #9fd3cc; letter-spacing: 0; }

/* "thinking" = a small white speech bubble, so it never reads as loose dots of the turn path */
.think { gap: 3px; padding: 4px 6px; margin-left: 6px; background: #fff; border: 2px solid #000; border-radius: 10px 10px 10px 3px; box-shadow: 1.5px 1.5px 0 #000; transition: opacity .2s; }
.think i { width: 4px; height: 4px; background: #0a2725; }

/* waitlist: privacy link + "remove my email" */
.sup-fine a, .linkish { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sup-rm { margin-top: 6px; }

/* special cards: the joke runs across the table on a news-ticker band */
#ticker { position: absolute; left: -4%; right: -4%; z-index: 39; pointer-events: none; transform: translateY(-50%) rotate(-3deg); }
#ticker .tk-band { position: relative; overflow: hidden; background: #0b0b0b; border-top: 3px solid var(--tk, #ffe94d); border-bottom: 3px solid var(--tk, #ffe94d); box-shadow: 0 5px 0 rgba(0,0,0,.35); padding: 6px 0 5px; }
#ticker .tk-track { display: inline-flex; white-space: nowrap; will-change: transform; }
#ticker .tk-item { display: inline-flex; align-items: baseline; gap: 14px; padding-right: 56px; font: 600 clamp(15px, 2.6vw, 22px)/1.15 var(--ui); color: #fff; }
#ticker .tk-item b { font: 400 clamp(18px, 3vw, 27px)/1 var(--pop); letter-spacing: .04em; color: var(--tk, #ffe94d); -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
#ticker .tk-item::after { content: '✚'; margin-left: 42px; color: var(--tk, #ffe94d); font-size: .9em; }
@media (prefers-reduced-motion: reduce) { #ticker .tk-track { transform: none !important; } }

/* the reading pause: a thin countdown along the band's bottom edge + a quiet skip hint */
#ticker .tk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tk, #ffe94d); opacity: .85; transform-origin: left center; }
#ticker .tk-skip { position: absolute; right: 8%; top: calc(100% + 7px); padding: 3px 8px 2px; border-radius: 99px; background: rgba(0,0,0,.55); font: 700 10px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
