/* fomowar — the money surfaces: entry screen (the round's USDG prize, countdown, how to enter, live
   starting line), race prize chip, results payout, the header Table button and the table sheet. */

@keyframes hostbob { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
@keyframes tick { from { transform: scale(1.05); opacity: 0.82; } to { transform: none; opacity: 1; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes glint { 0%, 70% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes sheetin { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes goldpulse { 0%, 100% { box-shadow: 0 0 16px rgba(255, 209, 102, 0.3), var(--glass-shadow); } 50% { box-shadow: 0 0 30px rgba(255, 209, 102, 0.6), var(--glass-shadow); } }

.sym { white-space: nowrap; }
.ph-short, .nr-short { display: none; }
@keyframes lookaround { 0%, 18% { transform: translate(-2.4px, 0.6px); } 30%, 55% { transform: translate(2.4px, -0.8px); } 68%, 88% { transform: translate(0.4px, 2px); } 100% { transform: translate(-2.4px, 0.6px); } }

/* ------------------------------------------------------------------ header buttons */

.hbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  font: 700 13px/1 var(--display);
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--white);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}
.hbtn svg { width: 18px; height: 18px; flex: none; }
.hbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.hbtn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.hbtn-label { text-transform: uppercase; }
.table-btn svg { color: var(--gold); }
.table-btn.has-rows { border-color: rgba(255, 209, 102, 0.85); animation: goldpulse 1.8s ease-in-out infinite; }
.hbtn-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font: 700 11px/1 var(--body);
  letter-spacing: 0.2px;
  color: #2a1a05;
  background: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ race prize chip */

.rail { top: 158px; }
.prize-chip {
  position: fixed;
  z-index: 11;
  top: 96px;
  right: var(--gap);
  width: 268px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(104, 72, 20, 0.9), rgba(44, 26, 52, 0.92));
  border: 1px solid rgba(255, 209, 102, 0.65);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.22), var(--glass-shadow);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prize-chip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 207, 0.22), transparent);
  animation: glint 4.5s ease-in-out infinite;
  pointer-events: none;
}
.pc-ico { width: 20px; height: 20px; color: var(--gold); flex: none; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.6)); }
.pc-k { font: 700 11px/1 var(--body); letter-spacing: 1.8px; color: #f3dc9f; white-space: nowrap; }
.pc-v { margin-left: auto; font: 700 23px/1 var(--display); color: var(--gold); text-shadow: 0 0 18px rgba(255, 209, 102, 0.55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prize-chip:not([data-kind="sealed"]) {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.prize-chip:not([data-kind="sealed"])::after { display: none; }
.prize-chip:not([data-kind="sealed"]) .pc-ico { color: var(--lavender); filter: none; }
.prize-chip:not([data-kind="sealed"]) .pc-k { color: var(--lavender); }
.prize-chip[data-kind="demo"] .pc-v {
  font: 700 10px/1.2 var(--body);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: #2a1a05;
  text-shadow: none;
  background: repeating-linear-gradient(-45deg, #FFD166 0 6px, #f4bd45 6px 12px);
}
.prize-chip[data-kind="sealing"] .pc-v, .prize-chip[data-kind="none"] .pc-v { font-size: 14px; color: var(--muted); text-shadow: none; }
html:not([data-mode="race"]) .prize-chip { opacity: 0; transform: translateX(30px); pointer-events: none; }

/* ------------------------------------------------------------------ entry screen */

.entry {
  background:
    radial-gradient(ellipse 42% 48% at 22% 36%, rgba(255, 209, 102, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 70% at 22% 58%, rgba(145, 69, 248, 0.26), transparent 70%),
    radial-gradient(ellipse 50% 60% at 82% 42%, rgba(242, 151, 202, 0.09), transparent 70%),
    linear-gradient(90deg, rgba(17, 13, 23, 0.95), rgba(17, 13, 23, 0.84));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.entry-inner {
  position: absolute;
  top: 98px;
  bottom: 22px;
  left: 44px;
  right: 44px;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}
.entry-hero { position: relative; display: flex; flex-direction: column; padding: 16px 0 0 6px; min-height: 0; min-width: 0; }
.entry-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font: 700 11px/1 var(--body);
  letter-spacing: 1.4px;
  color: var(--mint);
  background: rgba(123, 224, 195, 0.1);
  border: 1px solid rgba(123, 224, 195, 0.38);
}
.entry-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: live 1.4s ease-in-out infinite; }
.entry-status.closed { color: var(--pink); background: rgba(242, 151, 202, 0.1); border-color: rgba(242, 151, 202, 0.4); }
.entry-status.closed .dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: none; }

/* the sealed prize */
.prize-hero { margin-top: 20px; min-width: 0; }
.prize-kicker { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--body); letter-spacing: 2.6px; color: #f3dc9f; }
.prize-kicker svg { width: 18px; height: 18px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.7)); }
.prize-amount { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; margin-top: 4px; min-width: 0; }
.prize-num {
  position: relative;
  font: 700 128px/1 var(--display);
  letter-spacing: -2px;
  padding-bottom: 6px;
  background: linear-gradient(100deg, #c8902f 0%, #ffd166 18%, #fff6d6 30%, #ffd166 42%, #eaa93a 60%, #ffe39a 76%, #d49a36 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.8s linear infinite;
  filter: drop-shadow(0 6px 0 #5c3b0e) drop-shadow(0 0 34px rgba(255, 209, 102, 0.42));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prize-unit { font: 700 40px/1 var(--display); letter-spacing: 1px; color: var(--gold); text-shadow: 0 5px 0 #5c3b0e, 0 0 24px rgba(255, 209, 102, 0.5); }
.prize-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; min-height: 30px; }
.prize-usd { font: 600 28px/1 var(--display); color: #f7e3b0; font-variant-numeric: tabular-nums; }
.prize-usd:empty { display: none; }
.prize-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  font: 700 12px/1 var(--body);
  letter-spacing: 0.6px;
  color: #ffe6a6;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.42);
  text-decoration: none;
  white-space: nowrap;
}
.prize-seal svg { width: 13px; height: 13px; color: var(--gold); }
.prize-seal[href]::after { content: "↗"; margin-left: 2px; }
.prize-seal[href]:hover { background: rgba(255, 209, 102, 0.2); }
.prize-note { font: 500 15px/1.45 var(--body); color: var(--muted); max-width: 460px; }
.prize-note:empty { display: none; }

.prize-hero:not([data-kind="sealed"]) .prize-num {
  font-size: 66px;
  letter-spacing: 0.5px;
  padding-bottom: 2px;
  background: none;
  color: var(--lavender);
  -webkit-text-fill-color: var(--lavender);
  animation: none;
  filter: drop-shadow(0 5px 0 var(--outline)) drop-shadow(0 0 26px rgba(145, 69, 248, 0.5));
}
.prize-hero[data-kind="sealing"] .prize-num { color: #f3dc9f; -webkit-text-fill-color: #f3dc9f; }
.prize-hero[data-kind="demo"] .prize-unit {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  font: 700 13px/1 var(--body);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #2a1a05;
  text-shadow: none;
  background: repeating-linear-gradient(-45deg, #FFD166 0 7px, #f2bb42 7px 14px);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.35);
}
.prize-hero:not([data-kind="sealed"]):not([data-kind="demo"]) .prize-unit { display: none; }

/* countdown */
.entry-countdown { display: flex; flex-direction: column; margin-top: 22px; }
.entry .cd-label { font: 600 22px/1.1 var(--display); letter-spacing: 1.6px; color: var(--lavender); }
.entry .cd-num {
  font: 700 148px/0.95 var(--display);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(145, 69, 248, 0.8), 0 7px 0 var(--outline);
  margin-left: -3px;
  white-space: nowrap;
}
.entry .cd-num.tick { animation: tick 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.2); transform-origin: 0% 60%; }
.entry .cd-num.hot { color: var(--pink); text-shadow: 0 0 44px rgba(242, 151, 202, 0.8), 0 7px 0 #6b1f4a; }
.entry .cd-num.word { font-size: 40px; line-height: 1.25; margin-top: 6px; white-space: normal; text-shadow: 0 0 24px rgba(145, 69, 248, 0.6), 0 4px 0 var(--outline); }

.pot-line { margin: 16px 0 0; font: 600 15px/1.45 var(--body); letter-spacing: 0.3px; color: #d9c7ec; max-width: 520px; }

/* host: a FOMO-eyes marble with a speech bubble */
.entry .host { position: absolute; right: -8px; bottom: -8px; display: flex; flex-direction: row-reverse; align-items: flex-end; pointer-events: none; }
.entry .host-marble { width: 150px; height: 150px; filter: drop-shadow(0 18px 30px rgba(8, 4, 14, 0.7)); animation: hostbob 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.entry .host-bubble {
  position: relative;
  margin: 0 -26px 132px 0;
  max-width: 210px;
  padding: 11px 15px;
  border-radius: 18px 18px 4px 18px;
  background: var(--white);
  color: var(--pupil);
  font: 600 15px/1.3 var(--display);
  box-shadow: 0 10px 30px rgba(8, 4, 14, 0.5), 0 0 0 3px var(--outline);
}

/* how to enter */
.entry-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.howto { border-radius: 22px; padding: 15px 16px 16px; flex: none; }
.howto-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 12px; }
.howto-next { font: 700 12px/1 var(--body); color: var(--gold); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.howto-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 13px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(215, 185, 243, 0.14);
}
.step-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #a365ff, #6a2fc4);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(145, 69, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step-ico svg { width: 22px; height: 22px; }
.step-ico.gold { background: linear-gradient(135deg, #ffe08f, #e9a93a); color: #3a2405; box-shadow: 0 6px 18px rgba(255, 190, 70, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.step-ico canvas { width: 36px; height: 36px; display: block; }
.step-n { position: absolute; top: 10px; right: 13px; font: 700 28px/1 var(--display); color: rgba(211, 179, 245, 0.2); }
.step-t { font: 500 15px/1.35 var(--body); color: #efe4fb; }
.step-t b { font-weight: 700; color: var(--white); }
.step-t .sym { color: var(--gold); }
.howto-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 15px;
  font: 700 18px/1 var(--display);
  letter-spacing: 0.3px;
  color: #241404;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe39a, #ffc245);
  border: 1px solid rgba(255, 240, 190, 0.8);
  box-shadow: 0 10px 30px rgba(255, 190, 70, 0.32), 0 4px 0 #9a6614, inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, filter 0.2s;
  white-space: nowrap;
}
.cta svg { width: 18px; height: 18px; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.cta:active { transform: translateY(2px); box-shadow: 0 6px 20px rgba(255, 190, 70, 0.3), 0 1px 0 #9a6614; }
.linklike {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--lavender);
  font: 600 14px/1.25 var(--body);
  text-decoration: underline;
  text-decoration-color: rgba(211, 179, 245, 0.35);
  text-underline-offset: 3px;
  text-align: left;
}
.linklike svg { width: 17px; height: 17px; flex: none; }
.linklike:hover { color: var(--white); }
.linklike.small { font-size: 12px; }
.howto-note { margin: 0; font: 500 13px/1.4 var(--body); color: var(--muted); }
.entry[data-phase="LOCK"] .howto-steps li { opacity: 0.8; }

/* live starting line */
.entry-grid-wrap { position: relative; flex: 1; min-height: 0; border-radius: 22px; padding: 14px 16px 10px; display: flex; flex-direction: column; }
.grid-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 8px; }
.grid-meta { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.grid-canvas-wrap { position: relative; flex: 1; min-height: 0; }
#entry-grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grid-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 12px; }
.empty-eyes svg { width: 118px; height: auto; display: block; filter: drop-shadow(0 0 26px rgba(145, 69, 248, 0.65)); animation: hostbob 2.6s ease-in-out infinite; }
.grid-empty strong { font: 600 27px/1.15 var(--display); margin-top: 8px; }
.grid-empty p { margin: 0; font: 500 15px/1.45 var(--body); color: var(--muted); max-width: 360px; }

.toasts { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; pointer-events: none; }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(92, 64, 20, 0.95), rgba(42, 24, 50, 0.96));
  border: 1px solid rgba(255, 209, 102, 0.65);
  box-shadow: 0 10px 30px rgba(8, 4, 14, 0.55), 0 0 26px rgba(255, 209, 102, 0.25);
  font: 600 15px/1 var(--display);
  color: var(--white);
  white-space: nowrap;
  animation: toastin 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.3);
  transition: opacity 0.45s, transform 0.45s;
}
.toast b { color: var(--gold); font-weight: 700; }
.toast-marble { width: 28px; height: 28px; flex: none; }
.toast .demo-chip { margin-left: 2px; }
.toast.out { opacity: 0; transform: translateY(8px) scale(0.96); }

/* ------------------------------------------------------------------ results: payout + void */

.results-main { gap: 0; }
.res-title { margin-bottom: 4px; }
.payout {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 8px;
  padding: 12px 14px 12px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(98, 68, 20, 0.62), rgba(38, 23, 50, 0.84));
  border: 1px solid rgba(255, 209, 102, 0.5);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.14), var(--glass-shadow);
  opacity: 0;
}
.results.open .payout { animation: rise 0.6s 0.25s cubic-bezier(0.2, 0.9, 0.25, 1.1) forwards; transform: translateY(16px); }
.payout-amount { display: flex; flex-direction: column; gap: 4px; padding-right: 18px; border-right: 1px solid rgba(255, 209, 102, 0.25); flex: none; min-width: 120px; }
.payout-k { font: 700 11px/1 var(--body); letter-spacing: 2px; color: #f3dc9f; }
.payout-val {
  font: 700 36px/1.05 var(--display);
  background: linear-gradient(100deg, #e6ad44, #ffe7a8 35%, #ffd166 55%, #f0b447);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.4s linear infinite;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.payout-unit { font: 700 13px/1 var(--display); letter-spacing: 1.5px; color: #e8d3a0; }
.payout-unit:empty { display: none; }
.payout-status { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.payout-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font: 700 20px/1 var(--display);
  background: rgba(211, 179, 245, 0.14);
  color: var(--lavender);
}
.payout-ico::before { content: "…"; }
.payout-lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.payout-text { font: 600 19px/1.2 var(--display); color: var(--white); overflow-wrap: anywhere; }
.payout-sub { font: 500 13px/1.35 var(--body); color: var(--muted); }
.payout-sub:empty { display: none; }
.payout-link, .payout-action {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font: 700 14px/1 var(--display);
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}
.payout-link svg { width: 14px; height: 14px; }
.payout-link + .payout-action { margin-left: 0; }
.payout-action { color: #241404; background: linear-gradient(180deg, #ffe39a, #ffc245); border-color: rgba(255, 240, 190, 0.8); box-shadow: 0 3px 0 #9a6614; }
.payout[data-outcome="paid"] .payout-ico { background: radial-gradient(circle, #8ff0d2, #3fa585); color: #0b2a21; box-shadow: 0 0 20px rgba(123, 224, 195, 0.45); }
.payout[data-outcome="paid"] .payout-ico::before { content: "✓"; }
.payout[data-outcome="void"] .payout-ico { background: radial-gradient(circle, #ffe39a, #e9a93a); color: #3a2405; box-shadow: 0 0 18px rgba(255, 209, 102, 0.35); }
.payout[data-outcome="void"] .payout-ico::before { content: "≡"; font-size: 22px; }
.payout[data-outcome="voiding"] .payout-ico::before { content: "↺"; }
.payout[data-outcome="settling"] .payout-ico::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 209, 102, 0.3); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
.payout[data-outcome="none"] .payout-ico::before { content: "↺"; }
.payout[data-outcome="off"], .payout[data-outcome="none"] { background: var(--glass-bg); border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
.payout[data-outcome="off"] .payout-k, .payout[data-outcome="none"] .payout-k { color: var(--lavender); }
.payout[data-outcome="off"] .payout-val {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 11px/1.2 var(--body);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  animation: none;
  color: #2a1a05;
  -webkit-text-fill-color: #2a1a05;
  background: repeating-linear-gradient(-45deg, #FFD166 0 6px, #f4bd45 6px 12px);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.payout[data-outcome="off"] .payout-ico::before { content: "◎"; }
.payout[data-outcome="none"] .payout-val { color: var(--muted); -webkit-text-fill-color: var(--muted); background: none; animation: none; }
.payout[data-outcome="void"] .payout-val { background: none; animation: none; color: #f3dc9f; -webkit-text-fill-color: #f3dc9f; }

.results[data-kind="void"] .res-title,
.results[data-kind="void"] .payout,
.results[data-kind="void"] .podium,
.results[data-kind="void"] .quote { display: none; }
.void-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: 26px; }
.void-eyes .pupil, .empty-eyes .pupil { animation: lookaround 4.2s ease-in-out infinite; }
.void-eyes svg { width: 190px; height: auto; display: block; filter: drop-shadow(0 0 34px rgba(145, 69, 248, 0.6)); animation: hostbob 3s ease-in-out infinite; }
.void-title { margin: 14px 0 0; font: 700 54px/1.08 var(--display); }
.void-sub { margin: 0; font: 500 19px/1.5 var(--body); color: var(--muted); max-width: 540px; }
.void-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 12px; border-radius: 10px; font: 700 13px/1 var(--display); color: var(--white); text-decoration: none; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); }
.void-link svg { width: 13px; height: 13px; }

.next-race { text-decoration: none; }
.next-race.open {
  color: #241404;
  background: linear-gradient(180deg, #ffe39a, #ffc245);
  border-color: rgba(255, 240, 190, 0.85);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.35), 0 3px 0 #9a6614;
  cursor: pointer;
}
.next-race.open::after { content: " ↗"; }

/* ------------------------------------------------------------------ sheets (dialogs) */

dialog.sheet {
  padding: 0;
  color: var(--white);
  background: linear-gradient(160deg, #2c203d, #19111f 72%);
  border: 1px solid rgba(215, 185, 243, 0.26);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(5, 2, 12, 0.72), 0 0 60px rgba(145, 69, 248, 0.22);
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(211, 179, 245, 0.28) transparent;
}
dialog.sheet::backdrop { background: rgba(10, 6, 16, 0.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.sheet[open] { animation: sheetin 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.15); }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 20px 18px 12px 22px; }
.sheet-eyes svg { width: 60px; height: auto; display: block; filter: drop-shadow(0 0 16px rgba(145, 69, 248, 0.6)); }
.sheet-titles { display: flex; flex-direction: column; min-width: 0; }
.sheet-titles h2 { margin: 5px 0 0; font: 700 27px/1.1 var(--display); }
.icon-btn { margin-left: auto; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.05); color: var(--lavender); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--white); border-color: rgba(215, 185, 243, 0.5); }
.sheet-body { padding: 4px 22px 22px; }
.sheet-trophy { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe08f, #e9a93a); color: #3a2405; box-shadow: 0 8px 24px rgba(255, 190, 70, 0.35); }
.sheet-trophy svg { width: 28px; height: 28px; }

.sheet-ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe08f, #e9a93a); color: #3a2405; box-shadow: 0 8px 24px rgba(255, 190, 70, 0.35); }
.sheet-ico svg { width: 26px; height: 26px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-weight: 600; letter-spacing: 0.2px; }
.sheet-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(242, 151, 202, 0.1); border: 1px solid rgba(242, 151, 202, 0.42); color: #ffd3e8; font: 500 13px/1.4 var(--body); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list:empty { display: none; }
.tx-link { font: 600 12px/1 var(--body); color: var(--lavender); text-decoration: none; white-space: nowrap; }
.tx-link:hover { color: var(--white); text-decoration: underline; }

/* ------------------------------------------------------------------ the table */

.table-sheet { width: min(640px, calc(100vw - 24px)); }
.table-lead { margin: 6px 0 12px; font: 500 14px/1.5 var(--body); color: #e8dcf5; text-wrap: pretty; }
.table-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.table-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font: 700 11px/1 var(--body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--lavender); background: rgba(211, 179, 245, 0.1); border: 1px solid rgba(211, 179, 245, 0.25); }
.table-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.table-status[data-kind="unpaid"] { color: var(--gold); background: rgba(255, 209, 102, 0.1); border-color: rgba(255, 209, 102, 0.4); }
.table-status[data-kind="clear"] { color: var(--mint); background: rgba(123, 224, 195, 0.1); border-color: rgba(123, 224, 195, 0.35); }
.table-contract { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--body); color: var(--lavender); text-decoration: none; }
.table-contract svg { width: 12px; height: 12px; }
.table-contract:hover { color: var(--white); }
.table-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 209, 102, 0.28); }
.trow[data-status="paid"] { border-color: rgba(123, 224, 195, 0.28); opacity: 0.88; }
.trow-marble { width: 44px; height: 44px; display: block; margin-top: 2px; }
.trow-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.trow-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trow-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.trow-who strong { font: 700 16px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-name { font: 500 12px/1.2 var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-amt { font: 700 18px/1 var(--display); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(255, 209, 102, 0.3); }
.tchip { padding: 4px 8px; border-radius: 999px; font: 700 10px/1 var(--body); letter-spacing: 1px; white-space: nowrap; background: rgba(255, 209, 102, 0.18); color: var(--gold); }
.tchip.paid { background: rgba(123, 224, 195, 0.16); color: var(--mint); }
.trow-thesis { margin: 0; font: 500 14px/1.45 var(--body); color: #efe4fb; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 600 12px/1.2 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.trow-reason { color: var(--pink); }
.trow-wallets { display: flex; flex-wrap: wrap; gap: 8px; }
.trow-nowallet { font: 500 12.5px/1.3 var(--body); color: var(--muted); }
.tcopy {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 8px; border-radius: 10px; cursor: pointer;
  color: var(--white); background: rgba(10, 6, 16, 0.5); border: 1px solid rgba(215, 185, 243, 0.28);
  font: 500 12.5px/1 var(--body); transition: border-color 0.2s, background 0.2s;
}
.tcopy:hover { border-color: rgba(215, 185, 243, 0.6); background: rgba(10, 6, 16, 0.7); }
.tcopy.copied { border-color: rgba(123, 224, 195, 0.7); color: var(--mint); }
.tcopy svg { width: 14px; height: 14px; color: var(--lavender); }
.tcopy-k { padding: 3px 6px; border-radius: 6px; font: 700 9.5px/1 var(--body); letter-spacing: 1px; color: #2a1a05; background: var(--lavender); }
.trow-paid, .tpay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; font: 500 13px/1.2 var(--body); background: rgba(123, 224, 195, 0.08); border: 1px solid rgba(123, 224, 195, 0.25); }
.tpay-k { font: 700 10px/1 var(--body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mint); }
.tpay-amt { font: 700 14px/1 var(--display); color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpay-to { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 12px; color: #d9c7ec; }
.tpay-when { font-size: 12px; color: var(--muted); }
.trow-paid .tx-link, .tpay .tx-link { margin-left: auto; }
.tpay-note { font-size: 12.5px; color: #efe4fb; overflow-wrap: anywhere; }
.tpay-hash { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 12px; color: #d9c7ec; margin-left: auto; }
/* owner only: rendered solely when a key is in localStorage (admin.js) */
.tmark {
  align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  color: var(--mint); background: rgba(123, 224, 195, 0.1); border: 1px solid rgba(123, 224, 195, 0.45);
  font: 700 11px/1 var(--body); letter-spacing: 0.8px; text-transform: uppercase; transition: background 0.2s, border-color 0.2s;
}
.tmark:hover { background: rgba(123, 224, 195, 0.2); border-color: var(--mint); }
.tmark:disabled { opacity: 0.5; cursor: wait; }
.table-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 12px 30px; }
.table-empty strong { font: 600 24px/1.15 var(--display); }
.table-empty p { margin: 0; font: 500 14px/1.45 var(--body); color: var(--muted); }
.table-extra { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(215, 185, 243, 0.12); }

/* ------------------------------------------------------------------ medium */

@media (max-width: 1280px) {
  .table-btn .hbtn-label { display: none; }
  .table-btn { padding: 0 12px; }
}

@media (max-width: 1180px) {
  .prize-chip { width: 230px; }
  .entry-inner { grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr); gap: 22px; left: 24px; right: 24px; }
  .prize-num { font-size: 96px; }
  .entry .cd-num { font-size: 110px; }
  .entry .host { display: none; }
  .howto-steps li { padding: 10px; }
  .step-t { font-size: 14px; }
}

@media (max-height: 820px) and (min-width: 761px) {
  .prize-num { font-size: 100px; }
  .entry .cd-num { font-size: 112px; }
  .entry-countdown { margin-top: 14px; }
  .entry .host-marble { width: 120px; height: 120px; }
  .entry .host-bubble { margin-bottom: 104px; }
}

/* ------------------------------------------------------------------ phone */

@media (max-width: 760px) {
  .ph-long, .nr-long { display: none; }
  .ph-short, .nr-short { display: inline; }
  .topright { gap: 5px; }
  .hbtn { height: 30px; min-width: 30px; padding: 0 7px; gap: 5px; }
  .hbtn svg { width: 16px; height: 16px; }
  .hbtn .hbtn-label { display: none; }
  .hbtn-badge { position: absolute; top: -6px; right: -8px; padding: 2px 5px; font-size: 9px; }
  .topright .mute { margin-left: 0; }
  .topright .source { margin-right: auto; }

  .rail { top: 96px; }
  .prize-chip { top: 108px; left: var(--gap); right: auto; width: auto; height: 34px; padding: 0 12px 0 10px; gap: 7px; border-radius: 999px; }
  .pc-ico { width: 15px; height: 15px; }
  .pc-k { font-size: 10px; letter-spacing: 1.2px; }
  .pc-v { font-size: 16px; margin-left: 4px; }

  .entry { overflow-y: auto; overflow-x: hidden; }
  .entry-inner { position: relative; top: auto; bottom: auto; left: auto; right: auto; min-height: 100%; padding: 110px var(--gap) 18px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .entry-hero { padding: 0 2px; }
  .entry .eyebrow { font-size: 11px; letter-spacing: 2px; }
  .entry-status { font-size: 10px; padding: 4px 8px 4px 7px; }
  .prize-hero { margin-top: 12px; }
  .prize-kicker { font-size: 11px; letter-spacing: 1.8px; }
  .prize-kicker svg { width: 14px; height: 14px; }
  .prize-num { font-size: 66px; letter-spacing: -1px; padding-bottom: 4px; filter: drop-shadow(0 4px 0 #5c3b0e) drop-shadow(0 0 22px rgba(255, 209, 102, 0.4)); }
  .prize-unit { font-size: 28px; }
  .prize-hero:not([data-kind="sealed"]) .prize-num { font-size: 38px; }
  .prize-sub { margin-top: 6px; gap: 8px; }
  .prize-usd { font-size: 19px; }
  .prize-seal { font-size: 11px; padding: 5px 9px 5px 8px; }
  .prize-note { font-size: 13px; }
  .entry-countdown { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 10px; margin-top: 10px; }
  .entry .cd-label { font-size: 15px; }
  .entry .cd-num { font-size: 46px; text-shadow: 0 0 26px rgba(145, 69, 248, 0.8), 0 4px 0 var(--outline); }
  .entry .cd-num.word { font-size: 22px; margin-top: 0; }
  .pot-line { font-size: 12px; margin-top: 6px; }
  .entry .host { display: none; }

  .howto { padding: 12px 12px 12px; border-radius: 18px; }
  .howto-head { margin-bottom: 8px; }
  .howto-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .howto-steps li { flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 8px 9px; border-radius: 13px; }
  .step-ico { width: 32px; height: 32px; border-radius: 10px; }
  .step-ico svg { width: 17px; height: 17px; }
  .step-ico canvas { width: 28px; height: 28px; }
  .step-n { display: none; }
  .step-t { font-size: 12.5px; line-height: 1.3; }
  .howto-actions { margin-top: 10px; gap: 10px; flex-direction: column; align-items: stretch; }
  .cta { width: 100%; height: 48px; font-size: 17px; }
  .howto-actions .linklike { align-self: center; font-size: 13px; }

  .entry-grid-wrap { flex: none; height: 300px; padding: 10px 10px 8px; border-radius: 18px; }
  .grid-empty strong { font-size: 21px; }
  .grid-empty p { font-size: 13px; }
  .empty-eyes svg { width: 84px; }
  .toast { font-size: 13px; }

  /* phone: the track is drawn right under these overlays, so their panels are (nearly) opaque here */
  .entry { background: linear-gradient(180deg, rgba(17, 13, 23, 0.985), rgba(17, 13, 23, 0.97)); }
  .results { background: linear-gradient(180deg, rgba(17, 13, 23, 0.965), rgba(17, 13, 23, 0.985)); }
  .entry .howto, .entry .entry-grid-wrap, .results .wins, .results .quote { background: linear-gradient(135deg, #2a1f3a, #1a1226); }
  .payout { background: linear-gradient(135deg, #3d2c14, #241630); }
  /* opaque panels need no blur; nested backdrop-filters also mis-composite in headless Chrome (track art painted through the cards) */
  .entry, .results, .entry .howto, .entry .entry-grid-wrap, .results .wins, .results .quote, .payout { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .results-main { overflow: hidden; }
  .res-title { overflow-wrap: normal; }
  .res-handle { overflow-wrap: anywhere; }
  .res-wins { white-space: nowrap; }
  .payout { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .payout-amount { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(255, 209, 102, 0.22); padding-bottom: 8px; }
  .payout-val { font-size: 28px; }
  .payout-status { flex-wrap: wrap; gap: 10px; }
  .payout-ico { width: 32px; height: 32px; font-size: 17px; }
  .payout-lines { flex: 1 1 220px; min-width: 0; }
  .results .wins { padding-bottom: 64px; }
  .payout-text { font-size: 16px; }
  .payout-link, .payout-action, .payout-link + .payout-action { margin-left: 42px; height: 34px; }
  .void-eyes svg { width: 130px; }
  .void-title { font-size: 34px; }
  .void-sub { font-size: 15px; }
  .next-race { max-width: calc(100vw - 20px); }
  .toasts { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; align-items: center; z-index: 25; }

  dialog.sheet { border-radius: 22px; }
  .sheet-head { padding: 16px 14px 10px 16px; gap: 10px; }
  .sheet-titles h2 { font-size: 22px; }
  .sheet-body { padding: 4px 16px 18px; }
  .sheet-ico { width: 42px; height: 42px; border-radius: 13px; }
  .trow { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 10px 10px 10px; }
  .trow-marble { width: 36px; height: 36px; }
  .trow-head { flex-wrap: wrap; }
  .trow-who { flex-basis: 100%; }
  .trow-amt { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .prize-num, .payout-val, .prize-chip::after, .empty-eyes svg, .void-eyes svg, .entry .host-marble, .table-btn.has-rows { animation: none; }
}

/* ------------------------------------------------------------------ fixes */

/* the token address helper next to the fomo button */
#howto-copy { align-self: flex-start; }

/* ALL-TIME WINS: sized to its rows, not a tall empty glass box */
@media (min-width: 761px) {
  .results-inner { align-items: center; }
  .results .wins { align-self: center; max-height: 100%; }
  .results .wins .wins-list { overflow: auto; min-height: 0; }
}

.table-sheet { margin-top: max(24px, 8vh); margin-bottom: auto; }

@media (max-width: 760px) {
  /* phone results: the next-round pill flows under the content instead of covering the wins list */
  .results .next-race { position: relative; left: auto; bottom: auto; transform: none; display: block; width: fit-content; margin: -56px auto 20px; }
  .results .wins { padding-bottom: 16px; }
  .table-sheet { margin-top: 12px; }
  #howto-copy { align-self: center; }
}

/* No live keeper behind this server (CHAIN=off, or no owner key): no prize surfaces at all. */
body.no-money #prize-chip,
body.no-money #prize-hero,
body.no-money #pot-line,
body.no-money #void-link,
body.no-money #payout { display: none !important; }

/* leaderboard */
.tchip.sending { background: rgba(215, 185, 243, 0.18); color: var(--lavender); animation: lbpulse 1.2s ease-in-out infinite; }
.tchip.nowallet { background: rgba(242, 151, 202, 0.16); color: #ffd3e8; }
@keyframes lbpulse { 50% { opacity: 0.45; } }
.lb-wallet { font: 600 12px/1.4 ui-monospace, Consolas, monospace; color: #efe4fb; background: rgba(10, 6, 16, 0.55); border: 1px solid rgba(215, 185, 243, 0.25); border-radius: 8px; padding: 4px 8px; overflow-wrap: anywhere; user-select: all; }
body.no-money #lb-btn { display: inline-flex !important; }

.lb-top { margin-bottom: 14px; }
.lb-toplist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-toprow { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(215, 185, 243, 0.14); }
.lb-toprow:first-child { border-color: rgba(255, 209, 102, 0.4); }
.lb-rank { font: 700 14px/1 var(--display); color: var(--muted); text-align: center; }
.lb-toprow:first-child .lb-rank { color: var(--gold); }
.lb-topmarble { width: 32px; height: 32px; }
.lb-handle { font: 700 15px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-wins { font: 700 13px/1 var(--body); color: #efe4fb; white-space: nowrap; }
.lb-total { font: 700 14px/1 var(--display); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
