/* ============================================================
   NUMBERWANG — studio styling
   Dark 1990s quiz-show set: spotlights, neon, chunky podiums.
   No external assets or fonts: everything renders offline.
   ============================================================ */

:root {
  --bg:        #07050f;
  --bg-2:      #130a26;
  --ink:       #f6f1ff;
  --gold:      #ffd84d;
  --gold-hot:  #ffb200;
  --pink:      #ff2e8a;
  --cyan:      #35f0ff;
  --violet:    #7a3cff;
  --dim:       #9a8fb5;
  --ok:        #4dffa1;
  --pad:       clamp(12px, 2.4vw, 28px);
  --logo-font: "Arial Black", "Haettenschweiler", "Franklin Gothic Heavy", Impact, sans-serif;
  --ui-font:   ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Several of these blocks set `display`, which would otherwise win against the
   hidden attribute and leave the emote tray, the maths board and the entry form
   all on screen at once. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-2) 0%, var(--bg) 62%) fixed;
  color: var(--ink);
  font-family: var(--ui-font);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* ---------- studio backdrop ---------- */
.studio { position: fixed; inset: 0; overflow: hidden; z-index: 0; }

.beam {
  position: absolute;
  top: -30vh;
  width: 46vw;
  height: 150vh;
  filter: blur(28px);
  opacity: .32;
  transform-origin: 50% 0;
  mix-blend-mode: screen;
  animation: sweep 14s ease-in-out infinite alternate;
}
.beam-a { left: -8vw;  background: linear-gradient(180deg, var(--violet), transparent 70%); }
.beam-b { left: 28vw;  background: linear-gradient(180deg, var(--pink),   transparent 70%); animation-delay: -4s; }
.beam-c { right: -8vw; background: linear-gradient(180deg, var(--cyan),   transparent 70%); animation-delay: -9s; }

@keyframes sweep {
  from { transform: rotate(-11deg) translateX(-4vw); }
  to   { transform: rotate(11deg)  translateX(4vw); }
}

.floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 38vh;
  background:
    linear-gradient(180deg, transparent, rgba(122,60,255,.20)),
    repeating-linear-gradient(90deg, rgba(255,216,77,.10) 0 2px, transparent 2px 46px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 100%;
  opacity: .5;
}

.grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
}

#confetti {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ---------- screen switching ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  padding: var(--pad);
}
body[data-screen="title"]  #screen-title,
body[data-screen="search"] #screen-search,
body[data-screen="vs"]     #screen-vs,
body[data-screen="game"]   #screen-game,
body[data-screen="card"]   #screen-card { display: flex; }

/* ============================ TITLE ============================ */
#screen-title { align-items: center; justify-content: center; text-align: center; gap: clamp(18px, 4vh, 42px); }

.logo-wrap { animation: pop .7s cubic-bezier(.2,1.5,.4,1) both; }

.logo {
  font-family: var(--logo-font);
  font-size: clamp(42px, 12.5vw, 148px);
  line-height: .88;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: uppercase;
  transform: skewX(-7deg);
}
.logo span {
  display: block;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(53,240,255,.55), 0 6px 0 #2a1a52;
}
.logo em {
  display: block;
  font-style: normal;
  color: var(--gold);
  text-shadow:
    0 0 10px var(--gold-hot),
    0 0 42px rgba(255,178,0,.75),
    0 8px 0 #6d3b00;
  animation: neon 3.6s ease-in-out infinite;
}

@keyframes neon {
  0%, 92%, 100% { opacity: 1; }
  94%           { opacity: .55; }
  96%           { opacity: 1; }
  97%           { opacity: .7; }
}

.tagline {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--dim);
  font-size: clamp(13px, 2.3vw, 18px);
  letter-spacing: .02em;
}

.title-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.best { margin: 0; color: var(--gold); font-weight: 700; min-height: 1.2em; font-size: 14px; }

.contestant-strip {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.contestant-strip strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ui-font);
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 17px);
  letter-spacing: .08em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn-primary {
  color: #2a1500;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-hot) 100%);
  box-shadow: 0 8px 0 #7a4b00, 0 12px 34px rgba(255,178,0,.35);
}
.btn-primary:hover { box-shadow: 0 8px 0 #7a4b00, 0 14px 44px rgba(255,178,0,.55); }
.btn-primary:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
}
.icon-btn[aria-pressed="false"] { opacity: .4; }

/* ============================ GAME ============================ */
#screen-game { gap: clamp(8px, 1.6vh, 18px); }

.hud {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 2;
}
.hud-label { display: block; font-size: 10px; letter-spacing: .22em; color: var(--dim); text-transform: uppercase; }
.hud-round strong { font-size: clamp(13px, 2.4vw, 17px); font-weight: 800; }
.hud-logo {
  margin: 0;
  font-family: var(--logo-font);
  font-size: clamp(15px, 3.4vw, 26px);
  letter-spacing: .01em;
  transform: skewX(-7deg);
  color: var(--ink);
}
.hud-logo em { font-style: normal; color: var(--gold); }
.hud-tools { display: flex; gap: 8px; }

/* the board rotates / mirrors in later rounds */
.board {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* keep the set vertically centred */
  gap: clamp(8px, 2vh, 22px);
  min-height: 0;
  overflow-y: auto;             /* tall rounds scroll instead of spilling */
  overflow-x: hidden;           /* the revolving set must not widen the page */
  overscroll-behavior: contain;
  scrollbar-width: none;        /* a studio does not have scrollbars */
  padding: 2px;
  transition: transform .9s cubic-bezier(.6,-0.3,.3,1.3);
  transform-origin: 50% 50%;
}
/* ---------- the contestant rostrum, which revolves ---------- */
.rostrum-stage { perspective: 1500px; }

.rostrum {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}
.rostrum .face { backface-visibility: hidden; }
.rostrum .face-back {
  /* The back of the set is a whole other programme, so it needs more room than
     the podium row in front of it. Centre it rather than matching that height. */
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: clamp(190px, 30vh, 250px);
  transform: translateY(-50%) rotateY(180deg);
}

/* One full revolution. It goes past the other two contestants, does not stop
   for them, and returns to exactly where it started. */
.rostrum.revolving { animation: revolve var(--spin, 8s) cubic-bezier(.45,.05,.35,1) both; }
@keyframes revolve {
  0%   { transform: rotateY(0deg); }
  14%  { transform: rotateY(28deg); }      /* stagehands take the strain */
  20%  { transform: rotateY(24deg); }
  46%  { transform: rotateY(170deg); }
  56%  { transform: rotateY(186deg); }     /* the other two, briefly */
  62%  { transform: rotateY(180deg); }
  88%  { transform: rotateY(338deg); }
  100% { transform: rotateY(360deg); }
}

.standin { border-color: rgba(53,240,255,.45); }
.standin-verdict {
  font-size: clamp(10px, 2vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  min-height: 1.3em;
}
.standin-verdict.yes { color: var(--gold); }
.standin-caption {
  font-size: clamp(11px, 2.4vw, 15px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

/* ---------- the physical board ---------- */
.tile-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: clamp(5px, 1.1vw, 10px);
  width: min(760px, 100%);
  padding: clamp(8px, 1.6vw, 16px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(122,60,255,.22), rgba(0,0,0,.5));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15);
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 1.5s cubic-bezier(.62,-0.25,.28,1.2);
  will-change: transform;
}
.tile-grid.spinning { filter: blur(.4px); }
.board::-webkit-scrollbar { width: 0; height: 0; }

.tile {
  font-family: var(--logo-font);
  font-size: clamp(15px, 3.4vw, 26px);
  line-height: 1;
  padding: clamp(8px, 1.7vh, 16px) 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease, opacity .3s;
  text-shadow: 0 0 14px rgba(53,240,255,.35);
}
.tile:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(53,240,255,.35), rgba(53,240,255,.10));
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(53,240,255,.4);
  transform: translateY(-2px);
}
.tile:disabled { cursor: not-allowed; }
.tile.taken {
  opacity: .3;
  text-decoration: line-through;
  background: rgba(255,255,255,.03);
  box-shadow: none;
  transform: none;
}
.tile.taken-you  { border-color: rgba(255,216,77,.6); }
.tile.taken-them { border-color: rgba(255,46,138,.5); }
.tile.just-taken { animation: tileHit .55s ease; }
@keyframes tileHit {
  0%   { background: var(--gold); color: #241300; transform: scale(1.12); }
  100% { background: rgba(255,255,255,.03); }
}
.board.idle .tile:not(.taken) { opacity: .55; }

.podiums {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.5fr) 1fr;
  gap: clamp(6px, 1.6vw, 20px);
  align-items: stretch;
}

.podium {
  position: relative;
  border-radius: 16px;
  padding: clamp(8px, 1.6vw, 16px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.podium.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 36px rgba(255,216,77,.35);
  transform: translateY(-3px);
}
.podium.scored { animation: podiumHit .6s ease; }
@keyframes podiumHit {
  0%   { background: rgba(255,216,77,.55); }
  100% { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
}
.podium-name {
  font-size: clamp(10px, 2.1vw, 13px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-score {
  font-family: var(--logo-font);
  font-size: clamp(34px, 9vw, 76px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255,178,0,.6);
  font-variant-numeric: tabular-nums;
}
.podium-light {
  position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .2s;
}
.podium.active .podium-light { opacity: 1; }

.number-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }

.called-who {
  display: block;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  min-height: 1.2em;
}
.called-number {
  display: block;
  font-family: var(--logo-font);
  font-size: clamp(52px, 15vw, 132px);
  line-height: .95;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(53,240,255,.45);
  font-variant-numeric: tabular-nums;
}
.called-number.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop {
  from { transform: scale(.4) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.verdict {
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(12px, 2.6vw, 18px);
  min-height: 1.4em;
}
.verdict.yes { color: var(--gold); text-shadow: 0 0 18px rgba(255,178,0,.8); }
.verdict.no  { color: var(--dim); }

/* ---------- entry ---------- */
.turn-area { display: flex; flex-direction: column; gap: 10px; }

.timer { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.timer-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--ok), var(--gold), var(--pink));
  transform-origin: left center;
  transition: transform .1s linear;
}
.timer-fill.danger { animation: flashBar .4s steps(2) infinite; }
@keyframes flashBar { 50% { opacity: .35; } }

.entry { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.entry-label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.entry-row { display: flex; gap: 10px; width: min(520px, 100%); }

.num-input {
  flex: 1; min-width: 0;
  font-family: var(--logo-font);
  font-size: clamp(28px, 7vw, 44px);
  text-align: center;
  color: var(--ink);
  background: rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 6px 10px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.num-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(53,240,255,.18); }
.num-input::placeholder { color: rgba(255,255,255,.2); }
.num-input:disabled { opacity: .4; }
.btn-say { padding-inline: clamp(14px, 4vw, 30px); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font-family: var(--ui-font);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.chip:hover { background: rgba(53,240,255,.16); border-color: var(--cyan); }
.chip:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- history ---------- */
.history {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  min-height: 26px;
}
.history li {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.history li.wang { background: rgba(255,216,77,.2); border-color: var(--gold); color: var(--gold); }

/* ---------- host bar ---------- */
.host-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(122,60,255,.35), rgba(255,46,138,.18));
  border: 1px solid rgba(255,255,255,.16);
  z-index: 2;
}
.host-avatar { display: flex; flex: none; color: var(--gold); }
.host-avatar svg { width: 22px; height: 22px; display: block; }
.host-line { margin: 0; font-size: clamp(13px, 2.6vw, 17px); font-weight: 600; }

/* ============================ CARD ============================ */
#screen-card { align-items: center; justify-content: center; }

.card {
  width: min(620px, 100%);
  padding: clamp(20px, 4vw, 38px);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.card-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.card-title {
  margin: 0 0 14px;
  font-family: var(--logo-font);
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,178,0,.5);
  transform: skewX(-6deg);
}
.card-body { margin: 0 0 18px; color: var(--ink); font-size: clamp(14px, 2.6vw, 17px); line-height: 1.55; }
.card-body em { color: var(--cyan); font-style: normal; font-weight: 800; }
.card-scores {
  display: flex; justify-content: center; gap: clamp(28px, 8vw, 64px);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.card-scores div { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.card-scores strong {
  display: block; margin-top: 4px;
  font-family: var(--logo-font); font-size: clamp(30px, 8vw, 46px); color: var(--ink);
}
.card-scores .win strong { color: var(--gold); text-shadow: 0 0 22px rgba(255,178,0,.6); }
.card-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================ RULES ============================ */
.rules-modal {
  width: min(560px, calc(100% - 32px));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: #150c2b;
  color: var(--ink);
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.rules-modal::backdrop { background: rgba(4,2,10,.75); backdrop-filter: blur(3px); }
.rules-modal h2 { margin: 0 0 14px; font-family: var(--logo-font); color: var(--gold); font-size: clamp(20px, 5vw, 30px); }
.rules-modal ol { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; font-size: 15px; }
.rules-modal li { margin-bottom: 8px; }
.rules-modal em { color: var(--cyan); font-style: normal; font-weight: 800; }
.rules-foot { color: var(--dim); font-size: 13px; line-height: 1.5; margin: 0 0 18px; }

/* ============================ WANG FLASH ============================ */
.wang-flash {
  position: fixed; inset: 0;
  z-index: 50;
  display: none;
  align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,178,0,.30), rgba(6,3,14,.90));
  pointer-events: none;
}
.wang-flash.show { display: flex; animation: flashIn .25s ease both; }
@keyframes flashIn { from { opacity: 0; } to { opacity: 1; } }

.wang-text {
  font-family: var(--logo-font);
  font-size: clamp(34px, 11vw, 128px);
  line-height: .95;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 18px var(--gold-hot), 0 0 70px rgba(255,178,0,.9), 0 10px 0 #6b3a00;
  transform: skewX(-8deg);
  padding: 0 16px;
  animation: wangPunch .55s cubic-bezier(.15,1.7,.4,1) both;
}
@keyframes wangPunch {
  0%   { transform: skewX(-8deg) scale(.3) rotate(-9deg); opacity: 0; }
  60%  { transform: skewX(-8deg) scale(1.12) rotate(2deg); opacity: 1; }
  100% { transform: skewX(-8deg) scale(1) rotate(0); }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 620px) {
  .podiums { grid-template-columns: 1fr 1fr; grid-template-areas: "you cpu" "stage stage"; }
  .podium-you { grid-area: you; }
  .podium-cpu { grid-area: cpu; }
  .number-stage { grid-area: stage; }
  .history { max-height: 62px; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .board { transition: none; }
}

/* ============================================================
   v2 — lobby, matchmaking, inflection, voice, the board's working
   ============================================================ */

/* ---------- lobby ---------- */
.lobby {
  width: min(760px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vh, 22px);
  text-align: center;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
}
.profile-name { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.profile-name span {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.profile-name input {
  font-family: var(--ui-font);
  font-size: 16px; font-weight: 800;
  color: var(--ink);
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 180px;
}
.profile-name input:focus { outline: none; border-color: var(--cyan); }
.profile-stats { display: flex; gap: clamp(14px, 4vw, 30px); margin-left: auto; }
.profile-stats div { text-align: center; }
.profile-stats span {
  display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.profile-stats strong {
  font-family: var(--logo-font); font-size: clamp(18px, 4vw, 26px); color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.net-line {
  margin: 0; font-size: 13px; color: var(--dim);
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.net-line .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none;
}
.net-line.on .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
.net-line.off .dot { background: var(--pink); }
.net-line strong { color: var(--ink); }
@keyframes pulse { 50% { opacity: .35; } }

.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.table-card {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(122,60,255,.28), rgba(255,255,255,.03));
  color: var(--ink);
  cursor: pointer;
  font-family: var(--ui-font);
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
.table-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255,178,0,.28);
}
.table-card.locked { opacity: .45; cursor: not-allowed; }
.table-name { font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.table-stake {
  font-family: var(--logo-font); font-size: 22px; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.table-go { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.lobby-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- matchmaking ---------- */
#screen-search { align-items: center; justify-content: center; }
.search-box { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.search-box h2 {
  margin: 0; font-family: var(--logo-font); font-size: clamp(22px, 6vw, 40px);
  letter-spacing: .02em; transform: skewX(-6deg);
}
.search-box p { margin: 0; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

.search-ring { position: relative; width: 84px; height: 84px; }
.search-ring span {
  position: absolute; inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
.search-ring span:nth-child(2) { inset: 10px; border-top-color: var(--cyan); animation-duration: 1.9s; }
.search-ring span:nth-child(3) { inset: 20px; border-top-color: var(--pink); animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.search-faces { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.search-faces li {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  animation: bob 1.2s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(-8px); opacity: .5; } }

/* ---------- opponent found ---------- */
#screen-vs { align-items: center; justify-content: center; }
.vs-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 3vw, 30px);
  width: min(760px, 100%);
}
.vs-card {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: clamp(14px, 3vw, 26px) 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.18);
}
.vs-you { animation: slideL .5s cubic-bezier(.2,1.3,.4,1) both; }
.vs-opp { animation: slideR .5s cubic-bezier(.2,1.3,.4,1) .15s both; }
@keyframes slideL { from { transform: translateX(-60px); opacity: 0; } }
@keyframes slideR { from { transform: translateX(60px); opacity: 0; } }
.vs-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--logo-font); font-size: 30px;
  background: linear-gradient(180deg, var(--violet), var(--pink));
}
.vs-card strong { font-size: clamp(15px, 3vw, 20px); }
.vs-card span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.vs-mid { text-align: center; }
.vs-word {
  font-family: var(--logo-font); font-size: clamp(26px, 8vw, 54px); color: var(--gold);
  text-shadow: 0 0 28px rgba(255,178,0,.6);
  animation: pop .5s cubic-bezier(.2,1.6,.4,1) .3s both;
}
.vs-stake { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* ---------- inflection ---------- */
.inflection { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.infl {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 62px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--ui-font);
  transition: border-color .15s, background .15s, transform .1s;
}
.infl:hover:not(:disabled) { background: rgba(53,240,255,.14); }
.infl[aria-checked="true"] {
  border-color: var(--gold);
  background: rgba(255,216,77,.18);
  box-shadow: 0 0 18px rgba(255,178,0,.25);
}
.infl:disabled { opacity: .4; cursor: not-allowed; }
.infl-mark { font-size: 16px; line-height: 1; }
.infl-hint { font-size: 11px; color: var(--dim); font-style: italic; }

/* ---------- voice ---------- */
.mic-btn {
  flex: none;
  width: 56px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.45);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.mic-btn svg { width: 24px; height: 24px; }
.mic-btn:hover:not(:disabled) { border-color: var(--cyan); }
.mic-btn:disabled { opacity: .35; cursor: not-allowed; }
.mic-btn.listening {
  border-color: var(--pink);
  background: rgba(255,46,138,.25);
  box-shadow: 0 0 0 4px rgba(255,46,138,.18);
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse { 50% { box-shadow: 0 0 0 12px rgba(255,46,138,0); } }
.mic-note { margin: 0; font-size: 12px; color: var(--dim); min-height: 1.2em; }
.mic-note.live { color: var(--cyan); }

/* ---------- speech bubbles ---------- */
.bubble {
  position: absolute;
  left: 50%; top: -6px;
  transform: translate(-50%, -100%) scale(.8);
  background: var(--ink);
  color: #17092e;
  font-size: 12px; font-weight: 800;
  padding: 6px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 4;
}
.bubble.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.emote-tray {
  position: absolute;
  right: var(--pad); top: 64px;
  display: grid; gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(12,6,26,.95);
  border: 1px solid rgba(255,255,255,.18);
  z-index: 8;
}
.emote {
  font-family: var(--ui-font); font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.emote:hover { background: rgba(53,240,255,.18); }

/* ---------- the board's working ---------- */
.working {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(6,3,16,.78);
  padding: 10px 12px;
}
.working h3 {
  margin: 0 0 8px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim);
}
.working-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 6px 10px;
  margin-bottom: 8px;
}
.wk { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.wk-sym { font-size: 14px; color: var(--cyan); width: 1.2em; }
.wk-val { font-weight: 800; font-size: 13px; }
.wk-note { font-size: 10px; color: var(--dim); display: none; }
@media (min-width: 900px) { .wk-note { display: inline; } }

.working-bar {
  position: relative;
  height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.working-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  transition: width .4s ease;
}
.working-bar-fill.yes { background: linear-gradient(90deg, var(--gold), var(--gold-hot)); }
.working-bar-mark {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--ink);
  box-shadow: 0 0 8px var(--ink);
}
.working-foot {
  margin: 6px 0 0; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- purse on the end card ---------- */
.card-purse { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.card-purse span { font-size: 13px; letter-spacing: .1em; }
.card-purse .up { color: var(--ok); font-weight: 800; }
.card-purse .down { color: var(--pink); font-weight: 800; }
.card-purse .purse-total { color: var(--dim); }

/* ---------- the rules, and the equation ---------- */
.rules-lead { color: var(--dim); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.eq-scroll {
  overflow-x: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 14px;
}
.eq { color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.eq math, math.eq { color: var(--ink); }
.eq-verdict { margin: 10px 0 0; font-size: 13px; color: var(--dim); line-height: 1.6; }
.eq-verdict strong { color: var(--gold); }
.rules-notes { margin: 0 0 16px; padding-left: 18px; font-size: 13px; line-height: 1.65; color: var(--ink); }
.rules-notes li { margin-bottom: 8px; }
.rules-notes strong { color: var(--cyan); }

/* ---------- hud multiplier ---------- */
.hud-mult {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px; font-weight: 800;
  background: rgba(255,216,77,.2);
  color: var(--gold);
  border: 1px solid rgba(255,216,77,.5);
}

@media (max-width: 620px) {
  .profile-stats { margin-left: 0; width: 100%; justify-content: space-around; }
  .emote-tray { left: var(--pad); right: var(--pad); }
}


/* ---------- private rooms ---------- */
.friend-box { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.join-form { display: flex; gap: 8px; }
.join-form input {
  width: 110px;
  font-family: var(--logo-font);
  font-size: 20px;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 8px;
}
.join-form input:focus { outline: none; border-color: var(--cyan); }

.room-panel {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,216,77,.4);
  max-width: 420px;
}
.room-label { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.room-code {
  font-family: var(--logo-font);
  font-size: clamp(44px, 13vw, 76px);
  letter-spacing: .12em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,178,0,.7);
}
.room-hint { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.5; text-align: center; }


/* ---------- voice: the only way in ---------- */
.voice { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.mic-big {
  position: relative;
  width: clamp(76px, 17vw, 104px);
  height: clamp(76px, 17vw, 104px);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.14), rgba(0,0,0,.5));
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s ease, border-color .2s, box-shadow .2s, opacity .2s;
}
.mic-big svg { width: 42%; height: 42%; }
.mic-big:disabled { opacity: .3; cursor: not-allowed; }
.mic-big.listening {
  border-color: var(--pink);
  box-shadow: 0 0 0 6px rgba(255,46,138,.18), 0 0 60px rgba(255,46,138,.5);
  color: #fff;
}
.mic-big.thinking { border-color: var(--cyan); box-shadow: 0 0 40px rgba(53,240,255,.4); }
.mic-level {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}
.mic-big.listening .mic-level { opacity: .8; animation: micRing 1.1s ease-out infinite; }
@keyframes micRing {
  from { transform: scale(1); opacity: .75; }
  to   { transform: scale(1.55); opacity: 0; }
}

.link-btn {
  background: none; border: 0; padding: 4px;
  color: var(--dim); font-size: 12px; text-decoration: underline; cursor: pointer;
  font-family: var(--ui-font);
}
.link-btn:hover { color: var(--ink); }

/* the four inflections, shown as a read-out — the board decides, not you */
.infl-read {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 54px; padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--dim);
  transition: all .2s;
}
.infl-read.on {
  border-color: var(--gold);
  background: rgba(255,216,77,.18);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(255,178,0,.3);
}

/* ============================================================
   What is behind the rostrum: whole scenes, drawn in CSS, glimpsed
   for about two seconds and never mentioned again.
   ============================================================ */
.scene {
  position: relative;
  height: 100%;
  min-height: clamp(150px, 26vh, 240px);
  border-radius: 18px;
  overflow: hidden;
  background: #0d1a14;
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--ui-font);
}
.scene::after {                     /* someone else's studio, someone else's grade */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.16) 0 2px, transparent 2px 4px);
  pointer-events: none;
  opacity: .5;
}
.scene-floor {
  position: absolute; inset: auto 0 0 0; height: 26%;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border-top: 1px solid rgba(255,255,255,.14);
}

/* a channel ident, bottom left, as these things always have */
.scene-chyron {
  position: absolute; left: 10px; bottom: 8px; z-index: 3;
  padding: 3px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
  background: rgba(0,0,0,.55); color: #fff;
  border-left: 3px solid var(--sc-accent, #4dffa1);
}
.scene-title {
  position: absolute; top: 10px; left: 0; right: 0; z-index: 3;
  text-align: center;
  font-family: var(--logo-font);
  font-size: clamp(16px, 4vw, 30px);
  color: var(--sc-accent, #4dffa1);
  text-shadow: 0 0 18px currentColor;
  letter-spacing: .02em;
}
.scene-sub {
  position: absolute; top: clamp(34px, 7vw, 52px); left: 0; right: 0; z-index: 3;
  text-align: center; font-size: 11px; letter-spacing: .22em; color: rgba(255,255,255,.65);
}

/* people */
.fig { position: absolute; bottom: 22%; z-index: 2; transform: translateX(-50%) scale(var(--s, 1)); }
.fig .head {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  background: var(--skin, #f0c9a4); margin: 0 auto 2px;
  border: 1px solid rgba(0,0,0,.25);
}
.fig .body {
  display: block; width: 32px; height: 40px;
  border-radius: 14px 14px 5px 5px;
  background: var(--kit, #7a3cff);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.25);
}
.fig.talk .head { animation: nod 1.1s ease-in-out infinite; }
@keyframes nod { 50% { transform: translateY(-2px) rotate(3deg); } }
.fig.asleep .head { animation: doze 2.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes doze { 50% { transform: rotate(14deg) translateY(2px); } }

.desk {
  position: absolute; bottom: 18%; z-index: 3;
  width: 62px; height: 26px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.18);
}
.desk span {
  position: absolute; inset: 4px 6px auto; text-align: center;
  font-family: var(--logo-font); font-size: 13px; color: var(--sc-accent, #4dffa1);
}

.bub {
  position: absolute; z-index: 4;
  transform: translateX(-50%) scale(.7);
  background: #fff; color: #14121c;
  font-size: 11px; font-weight: 800;
  padding: 5px 9px; border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  animation: bubIn .35s var(--delay, .3s) forwards;
}
.bub::after {
  content: ''; position: absolute; left: 50%; bottom: -5px;
  border: 5px solid transparent; border-top-color: #fff; transform: translateX(-50%);
}
@keyframes bubIn { to { opacity: 1; transform: translateX(-50%) scale(1); } }

.applause {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  padding: 4px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 900; letter-spacing: .2em;
  background: #ff2e8a; color: #fff;
  animation: applaud .7s steps(2) infinite;
}
@keyframes applaud { 50% { opacity: .25; } }

/* props */
.prop { position: absolute; z-index: 2; transform: translateX(-50%); }
.fridge {
  width: 40px; height: 62px; bottom: 22%;
  background: linear-gradient(180deg, #dfe6ee, #b9c4d0);
  border-radius: 5px;
  box-shadow: inset -6px 0 10px rgba(0,0,0,.15);
}
.fridge::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: 38%; height: 2px; background: rgba(0,0,0,.3);
}
.tortoise {
  width: 46px; height: 22px; bottom: 20%;
  animation: plod 9s linear infinite;
}
.tortoise .shell {
  position: absolute; inset: 0 8px 4px 8px;
  border-radius: 22px 22px 6px 6px;
  background: linear-gradient(180deg, #8d6b3f, #5e4526);
}
.tortoise .head2 {
  position: absolute; right: -6px; top: 6px; width: 12px; height: 9px;
  border-radius: 6px; background: #6f8f4f;
}
@keyframes plod { from { left: 18%; } to { left: 76%; } }

.table-buffet {
  width: 130px; height: 34px; bottom: 20%;
  background: linear-gradient(180deg, #efe6d3, #cdbfa4);
  border-radius: 4px;
}
.table-buffet i {
  position: absolute; top: -7px; width: 14px; height: 8px; border-radius: 4px;
  background: #d8a15a; display: block;
}
.strip-light {
  top: 12px; width: 70%; height: 6px; left: 50%;
  background: #fff8d0; border-radius: 3px;
  box-shadow: 0 0 24px rgba(255,248,208,.7);
  animation: flicker 3.2s infinite;
}
@keyframes flicker { 0%,88%,100% { opacity: .9; } 90% { opacity: .25; } 92% { opacity: .8; } 95% { opacity: .3; } }

.deckchair {
  width: 58px; height: 34px; bottom: 19%;
  background: repeating-linear-gradient(90deg, #d94f4f 0 8px, #f4f1e6 8px 16px);
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%) skewX(-8deg);
}
.plant { width: 22px; height: 34px; bottom: 20%; }
.plant::before {
  content: ''; position: absolute; bottom: 0; left: 4px; width: 14px; height: 12px;
  background: #a4674a; border-radius: 0 0 4px 4px;
}
.plant::after {
  content: ''; position: absolute; bottom: 10px; left: 0; width: 22px; height: 26px;
  background: radial-gradient(circle at 50% 80%, #3f8f52, #2b6b3a);
  border-radius: 50% 50% 30% 30%;
}
.zzz {
  position: absolute; z-index: 4; color: #fff; font-weight: 900; font-size: 13px;
  animation: zfloat 2.6s linear infinite;
  opacity: 0;
}
@keyframes zfloat {
  0% { opacity: 0; transform: translate(0, 0) scale(.7); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(14px, -34px) scale(1.2); }
}

.fogbank {
  position: absolute; z-index: 2; height: 26px; border-radius: 20px;
  background: rgba(255,255,255,.35);
  filter: blur(6px);
  animation: drift 7s linear infinite;
}
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(22px); } }
.weathermap {
  position: absolute; z-index: 1; left: 52%; top: 26%;
  width: 46%; height: 52%;
  background: rgba(77,255,161,.16);
  border: 1px solid rgba(77,255,161,.5);
  border-radius: 40% 20% 45% 25%;
}

.subtitle-bar {
  position: absolute; left: 50%; bottom: 6%; z-index: 5;
  transform: translateX(-50%);
  background: rgba(0,0,0,.7); color: #ffe;
  padding: 3px 10px; border-radius: 4px;
  font-size: 12px; letter-spacing: .04em;
}


/* ---------- the seven ---------- */
.the-seven {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%) rotate(-4deg);
  font-family: var(--logo-font);
  font-size: calc(28px * var(--seven, 2));
  line-height: 1;
  color: rgba(255, 216, 77, .30);
  text-shadow: 0 0 40px rgba(255,178,0,.35);
  pointer-events: none;
  opacity: 0;
  transition: font-size .8s cubic-bezier(.2,1.4,.4,1), opacity .5s;
  z-index: 1;
}
.the-seven.show { opacity: 1; }
.the-seven.gone { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(12deg); }

/* ---------- the nativity ---------- */
.manger {
  width: 74px; height: 26px; bottom: 19%;
  background: linear-gradient(180deg, #b98a4b, #7d5a2c);
  border-radius: 6px 6px 3px 3px;
}
.manger::after {
  content: ''; position: absolute; left: 24px; top: -8px;
  width: 26px; height: 12px; border-radius: 8px; background: #f3e2c7;
}
.star {
  position: absolute; top: 16px; left: 50%; z-index: 3;
  width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: #ffe98a;
  box-shadow: 0 0 26px 8px rgba(255,233,138,.55);
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .55; transform: translateX(-50%) rotate(45deg) scale(.8); } }
.halo {
  position: absolute; top: -8px; left: 50%; width: 26px; height: 8px;
  transform: translateX(-50%);
  border: 2px solid #ffe98a; border-radius: 50%;
}
