@font-face { font-family: "Bungee"; src: url("fonts/bungee.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Monoton"; src: url("fonts/monoton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Neonderthaw"; src: url("fonts/neonderthaw.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07040d;
  --text: #fff8ec;
  --muted: #c9bdd3;
  --gold: #ffd36a;
  --gold-deep: #b8862b;
  --pink: #ff3fb4;
  --pink-glow: #ff1f9a;
  --blue: #3ff0ff;
  --blue-glow: #00c2ff;
  --amber: #ffb43a;
  --danger: #ff8b8b;
  --success: #7dffb1;
  --display: "Bungee", Impact, "Arial Narrow", sans-serif;
  --script: "Neonderthaw", "Brush Script MT", cursive;
  --tubes: "Monoton", Impact, sans-serif;
  --body: "Segoe UI", Inter, system-ui, sans-serif;
  --bulb-on: radial-gradient(circle at 42% 38%, #fffef6 0 22%, #ffeaa0 42%, #ffb43a 68%, transparent 71%);
  --bulb-off: radial-gradient(circle at 40% 35%, #9a6428, #4a2606 72%);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 15% -5%, rgb(255 63 180 / 26%), transparent 38rem),
    radial-gradient(ellipse at 85% 5%, rgb(63 240 255 / 17%), transparent 36rem),
    radial-gradient(ellipse at 50% 108%, rgb(255 150 30 / 18%), transparent 46rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.45;
}

a { color: var(--gold); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hidden { display: none !important; }

/* Night sky: twinkling stars and two coloured searchlights. */
.night { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 22% 32%, #ffe9c4, transparent),
    radial-gradient(1.5px 1.5px at 37% 8%, #fff, transparent),
    radial-gradient(1px 1px at 52% 22%, #cfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 66% 14%, #fff, transparent),
    radial-gradient(1px 1px at 79% 36%, #ffd6f0, transparent),
    radial-gradient(1.5px 1.5px at 91% 9%, #fff, transparent),
    radial-gradient(1px 1px at 14% 58%, #fff, transparent),
    radial-gradient(1px 1px at 45% 64%, #ffe9c4, transparent),
    radial-gradient(1.5px 1.5px at 72% 70%, #fff, transparent),
    radial-gradient(1px 1px at 94% 52%, #cfe9ff, transparent),
    radial-gradient(1px 1px at 30% 86%, #fff, transparent);
  background-size: 640px 640px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars-far { background-position: 210px 320px; opacity: .6; animation-delay: -2.5s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.beam {
  position: absolute;
  top: -12vh;
  width: 70vmax;
  height: 150vh;
  mix-blend-mode: screen;
  transform-origin: 50% 0;
  animation: sweep 12s ease-in-out infinite alternate;
}
.beam-pink {
  left: -26vmax;
  background: conic-gradient(from 180deg at 50% 0, transparent 0 168deg, rgb(255 63 180 / 9%) 175deg, rgb(255 63 180 / 15%) 180deg, rgb(255 63 180 / 9%) 185deg, transparent 192deg);
}
.beam-blue {
  right: -26vmax;
  background: conic-gradient(from 180deg at 50% 0, transparent 0 168deg, rgb(63 240 255 / 8%) 175deg, rgb(63 240 255 / 13%) 180deg, rgb(63 240 255 / 8%) 185deg, transparent 192deg);
  animation-delay: -6s;
  animation-direction: alternate-reverse;
}
@keyframes sweep { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }

/* Hero: the bulb-lit MICASINO wordmark above the banner billboard. */
.hero { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 1140px; margin: 0 auto; padding: 58px 24px 0; overflow-x: clip; }
.back-link { position: absolute; top: 20px; left: 24px; color: var(--muted); font-family: var(--display); font-size: .7rem; letter-spacing: .08em; text-decoration: none; }
.back-link:hover { color: var(--gold); }
.marquee-word { position: relative; width: min(1060px, 100%); }
.marquee-word img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 0 #6a060b) drop-shadow(0 9px 0 #2b0205) drop-shadow(0 0 34px rgb(255 30 40 / 55%));
}
.word-bulbs { position: absolute; inset: 0; }
.word-bulb {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: .82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bulb-off);
  translate: -50% -50%;
}
.word-bulb::after {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: var(--bulb-on);
  box-shadow: 0 0 6px 2px rgb(255 220 130 / 90%), 0 0 18px 6px rgb(255 160 40 / 45%);
  content: "";
  animation: chase 1.2s linear var(--delay) infinite;
}

.billboard {
  position: relative;
  width: min(880px, 100%);
  margin-top: clamp(24px, 4vw, 40px);
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2c1708, #130904);
  box-shadow:
    0 0 0 3px var(--gold-deep),
    0 0 0 8px #160b04,
    0 0 0 10px rgb(255 211 106 / 60%),
    0 0 70px rgb(255 63 180 / 30%),
    0 34px 80px rgb(0 0 0 / 65%);
}
.frame-bulbs { position: absolute; inset: 0; pointer-events: none; }
.frame-bulb {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bulb-off);
  translate: -50% -50%;
}
.frame-bulb::after {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--bulb-on);
  box-shadow: 0 0 8px 2px rgb(255 220 130 / 90%), 0 0 18px 6px rgb(255 160 40 / 40%);
  content: "";
  animation: chase 1.2s linear var(--delay) infinite;
}
@keyframes chase { 0%, 33% { opacity: 1; } 34%, 100% { opacity: .1; } }
.billboard-screen { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 2px var(--gold-deep), 0 0 0 5px #000; }
.billboard-screen img { display: block; width: 100%; height: auto; }
.billboard-screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 16%) 47%, transparent 56%);
  content: "";
  animation: glare 8s ease-in-out infinite;
}
@keyframes glare { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }

.starburst {
  position: absolute;
  top: -40px;
  right: -36px;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  filter: drop-shadow(0 0 14px rgb(255 205 60 / 75%)) drop-shadow(0 6px 6px rgb(0 0 0 / 50%));
  rotate: 12deg;
}
.starburst::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff6c0, #ffd23f 55%, #e39a12);
  clip-path: polygon(50% 0%, 57.6% 11.7%, 69.1% 3.8%, 71.7% 17.6%, 85.4% 14.6%, 82.4% 28.3%, 96.2% 30.9%, 88.3% 42.4%, 100% 50%, 88.3% 57.6%, 96.2% 69.1%, 82.4% 71.7%, 85.4% 85.4%, 71.7% 82.4%, 69.1% 96.2%, 57.6% 88.3%, 50% 100%, 42.4% 88.3%, 30.9% 96.2%, 28.3% 82.4%, 14.6% 85.4%, 17.6% 71.7%, 3.8% 69.1%, 11.7% 57.6%, 0% 50%, 11.7% 42.4%, 3.8% 30.9%, 17.6% 28.3%, 14.6% 14.6%, 28.3% 17.6%, 30.9% 3.8%, 42.4% 11.7%);
  content: "";
  animation: spin 30s linear infinite;
}
.starburst span { position: relative; width: 66%; color: #8a0d12; font: .66rem/1.05 var(--display); text-align: center; text-transform: uppercase; }
@keyframes spin { to { rotate: 360deg; } }

.title-plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin: 0;
  padding: 6px 34px 12px;
  border: 3px solid rgb(255 63 180 / 85%);
  border-radius: 18px;
  background: linear-gradient(180deg, #1c0a22, #0a040f);
  box-shadow: 0 0 0 5px var(--bg), 0 0 30px rgb(255 63 180 / 60%), inset 0 0 24px rgb(255 63 180 / 28%);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  translate: -50% 58%;
}
.neon-script {
  color: #ffe4f5;
  font-family: var(--script);
  font-size: clamp(3rem, 9vw, 5.6rem);
  text-shadow: 0 0 3px #fff, 0 0 10px var(--pink), 0 0 24px var(--pink-glow), 0 0 52px var(--pink-glow);
}
.neon-tubes {
  margin-left: 8px;
  color: #e4fdff;
  font-family: var(--tubes);
  font-size: clamp(2.1rem, 6.6vw, 4.2rem);
  text-shadow: 0 0 3px #fff, 0 0 10px var(--blue), 0 0 24px var(--blue-glow), 0 0 52px var(--blue-glow);
  animation: flicker 7s infinite;
}
/* Two brief dips every seven seconds: well under three flashes per second. */
@keyframes flicker { 0%, 91.9%, 93%, 93.9%, 95%, 100% { opacity: 1; } 92%, 94% { opacity: .35; } }
.hero-tagline { margin: clamp(62px, 9vw, 88px) 0 0; color: var(--gold); font: .82rem/1.3 var(--display); letter-spacing: .14em; text-align: center; text-shadow: 0 0 12px rgb(255 160 40 / 55%); text-transform: uppercase; }

/* LED ticker with bulb rails. */
.ticker {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #050305 radial-gradient(circle, rgb(255 255 255 / 7%) 1px, transparent 1.5px) 0 0 / 4px 4px;
  box-shadow: 0 0 0 2px #2c2016, 0 0 0 3px rgb(255 211 106 / 35%), inset 0 0 22px #000;
}
.ticker::before, .ticker::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 8px;
  background: radial-gradient(circle, #fff3c4 0 1.6px, #ffb43a 2.4px, transparent 3.6px) 0 50% / 16px 8px repeat-x;
  content: "";
  animation: rail 1s steps(1) infinite;
}
.ticker::before { top: 0; }
.ticker::after { bottom: 0; background-position: 8px 50%; animation-delay: -.5s; }
@keyframes rail { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .25; } }
.ticker-track { display: flex; width: max-content; padding: 16px 0; animation: ticker var(--duration, 40s) linear infinite; }
.ticker-item { padding: 0 34px; color: var(--amber); font: 1rem/1.2 var(--display); letter-spacing: .06em; text-shadow: 0 0 7px rgb(255 160 40 / 95%); text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

.casino { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 34px 28px 10px; }
.floor-status { padding: 16px; border: 2px solid rgb(255 139 139 / 55%); border-radius: 14px; background: rgb(60 8 14 / 70%); color: var(--danger); text-align: center; }

/* Buttons: a neon tube and a glossy casino button. */
.neon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 26px;
  border: 3px solid var(--pink);
  border-radius: 999px;
  background: rgb(255 63 180 / 10%);
  color: #ffe4f5;
  font: 1rem/1 var(--display);
  letter-spacing: .04em;
  text-decoration: none;
  text-shadow: 0 0 8px var(--pink-glow);
  box-shadow: 0 0 14px rgb(255 63 180 / 60%), inset 0 0 14px rgb(255 63 180 / 40%);
  cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.neon-button:hover { background: rgb(255 63 180 / 22%); box-shadow: 0 0 28px rgb(255 63 180 / 90%), inset 0 0 18px rgb(255 63 180 / 55%); transform: translateY(-2px); }
.bet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a3c, #d1121f 55%, #8c0610);
  color: #fff6e6;
  font: 1rem/1 var(--display);
  letter-spacing: .04em;
  text-shadow: 0 2px 0 rgb(0 0 0 / 35%);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 45%), 0 0 24px rgb(255 50 40 / 55%), inset 0 2px 0 rgb(255 255 255 / 35%);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.bet-button:hover { box-shadow: 0 0 0 3px rgb(0 0 0 / 45%), 0 0 36px rgb(255 50 40 / 85%), inset 0 2px 0 rgb(255 255 255 / 35%); transform: translateY(-2px); }
.bet-button:disabled, .neon-button:disabled { filter: grayscale(.9); opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ghost-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid rgb(63 240 255 / 55%);
  border-radius: 999px;
  background: transparent;
  color: #d6fbff;
  font: .78rem/1 var(--display);
  cursor: pointer;
}
.ghost-button:hover:not(:disabled) { border-color: var(--blue); box-shadow: 0 0 14px rgb(63 240 255 / 55%); }
.ghost-button:disabled { opacity: .4; cursor: not-allowed; }

/* Members-only velvet rope. */
.velvet {
  position: relative;
  max-width: 640px;
  margin: 10px auto 30px;
  padding: 34px 30px 58px;
  border: 2px solid var(--gold-deep);
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0, rgb(255 90 120 / 25%), transparent 70%), linear-gradient(180deg, #5c0b16, #25040a);
  box-shadow: 0 30px 70px rgb(0 0 0 / 55%), inset 0 0 50px rgb(0 0 0 / 50%);
  text-align: center;
}
.velvet h2 { margin: 8px 0; font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.velvet p { color: #f6d8de; }
.rope {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 70%;
  height: 22px;
  border-bottom: 7px solid #c0182b;
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / 55%));
  translate: -50% 0;
}
.rope::before, .rope::after { position: absolute; top: -10px; width: 14px; height: 34px; border-radius: 7px; background: linear-gradient(90deg, #8a6a1e, #ffe08a, #8a6a1e); content: ""; }
.rope::before { left: -10px; }
.rope::after { right: -10px; }

/* Neon signs that flicker on as they scroll into view. */
.section-title, .neon-sign {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0 0 26px;
  color: rgb(255 235 245 / 22%);
  font: 400 clamp(2.8rem, 7vw, 4rem)/1 var(--script);
  text-shadow: 0 0 1px rgb(255 255 255 / 30%);
  text-align: center;
}
.neon-sign { margin: 0; font-size: clamp(2.6rem, 8vw, 3.6rem); }
.title-pink.is-lit { color: #ffe4f5; text-shadow: 0 0 3px #fff, 0 0 10px var(--pink), 0 0 24px var(--pink-glow), 0 0 50px var(--pink-glow); }
.title-blue.is-lit { color: #e4fdff; text-shadow: 0 0 3px #fff, 0 0 10px var(--blue), 0 0 24px var(--blue-glow), 0 0 50px var(--blue-glow); }
.title-gold.is-lit { color: #fff3c8; text-shadow: 0 0 3px #fff, 0 0 10px var(--gold), 0 0 24px #ff9d1c, 0 0 50px #ff7a00; }
.is-lit { animation: neon-on 1.2s linear both; }
@keyframes neon-on { 0% { opacity: .3; } 10%, 18% { opacity: 1; } 22%, 34% { opacity: .3; } 40%, 100% { opacity: 1; } }
.count { color: var(--muted); font: .95rem var(--display); text-shadow: none; }

/* Cashier window. */
.cashier {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 10px 34px;
  align-items: end;
  padding: 22px 28px;
  border: 2px solid rgb(63 240 255 / 60%);
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(32 12 44 / 94%), rgb(13 6 20 / 94%));
  box-shadow: 0 0 26px rgb(63 240 255 / 30%), inset 0 0 28px rgb(63 240 255 / 12%), 0 22px 50px rgb(0 0 0 / 55%);
}
.cashier .neon-button { grid-column: 5; }
.cashier-stack { display: flex; align-items: flex-end; min-width: 46px; min-height: 70px; }
.chip-label { display: block; margin-bottom: 6px; color: #c8fbff; font: .68rem/1 var(--display); letter-spacing: .14em; text-shadow: 0 0 8px var(--blue-glow); }
.reel { color: #fff3c8; font: clamp(2.2rem, 6vw, 3.1rem)/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px var(--gold), 0 0 26px #ff9d1c; }
.reel-quiet { color: #e4fdff; text-shadow: 0 0 10px var(--blue), 0 0 24px var(--blue-glow); }
.reel-unit { margin-left: 6px; color: var(--muted); font: .9rem var(--display); }
.reel.is-rolling { animation: glint .8s ease-out; }
@keyframes glint { 30% { color: #fff; text-shadow: 0 0 20px #fff, 0 0 40px var(--gold); } }
.cashier-note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.cashier-slots { grid-column: 1 / -1; margin: -4px 0 0; color: #ffd9ef; font-size: .8rem; }

.market-section { margin-top: 56px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); align-items: start; gap: 30px 26px; }
.empty-table { grid-column: 1 / -1; padding: 28px; border: 2px dashed rgb(255 63 180 / 40%); border-radius: 18px; color: var(--muted); text-align: center; }

/* The lobby: compact felt cards, sorted and searchable. A card opens its full table. */
.lobby-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 24px; }
.sort-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid rgb(255 63 180 / 45%);
  border-radius: 999px;
  background: transparent;
  color: #ffd9ef;
  font: .7rem/1 var(--display);
  cursor: pointer;
}
.sort-tab:hover { border-color: var(--pink); }
.sort-tab[aria-pressed="true"] { border-color: var(--pink); background: rgb(255 63 180 / 22%); color: #fff; box-shadow: 0 0 14px rgb(255 63 180 / 55%); text-shadow: 0 0 6px var(--pink-glow); }
.lobby-search { width: min(280px, 100%); }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); align-items: stretch; gap: 22px; }
.lobby-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 2px solid rgb(255 211 106 / 60%);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0, rgb(255 255 255 / 12%), transparent 65%),
    repeating-radial-gradient(circle at 30% 20%, rgb(0 0 0 / 6%) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, #12844e, #0b5c36 60%, #073e25);
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 0 0 4px #2a1206, 0 0 0 5px rgb(255 211 106 / 35%), 0 16px 34px rgb(0 0 0 / 55%), inset 0 0 30px rgb(0 0 0 / 45%);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lobby-card:hover { box-shadow: 0 0 0 4px #2a1206, 0 0 0 5px var(--gold), 0 0 30px rgb(255 211 106 / 40%), 0 20px 40px rgb(0 0 0 / 60%), inset 0 0 30px rgb(0 0 0 / 45%); transform: translateY(-4px); }
.lobby-card.is-new { animation: deal .65s cubic-bezier(.2, .9, .3, 1.25) both; }
.lobby-card[data-status="resolved"], .lobby-card[data-status="void"] {
  background: radial-gradient(ellipse at 50% 0, rgb(255 255 255 / 8%), transparent 65%), linear-gradient(170deg, #1f4a35, #143224 60%, #0d2219);
}
.lobby-top, .lobby-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lobby-foot { min-height: 18px; margin-top: auto; }
/* Exactly two lines, so cards line up; the full question is on the table. */
.lobby-question {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  font: 700 1.02rem/1.3 var(--body);
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgb(0 0 0 / 35%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.lobby-odds { display: grid; gap: 7px; }
.lobby-row { display: grid; grid-template-columns: minmax(0, 7rem) 1fr auto; align-items: center; gap: 9px; min-height: 16px; }
.lobby-row.is-empty { visibility: hidden; }
.lobby-label { overflow: hidden; color: #ffeab4; font: .68rem/1.2 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.lobby-row.is-winner .lobby-label::before { content: "♛ "; }
.lobby-share { color: var(--gold); font: .7rem/1 var(--display); }
.lobby-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.lobby-extra { min-width: 0; overflow: hidden; color: #bfd8c8; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.lobby-extra .plus { color: #ffd9ef; font-weight: 800; }
.lobby-mine { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--pink); box-shadow: 0 0 10px rgb(255 63 180 / 55%); color: #2a0218; font-size: .7rem; font-weight: 800; }
.lobby-mine.is-win { background: var(--success); box-shadow: 0 0 10px rgb(125 255 177 / 55%); color: #032a14; }
.lobby-status { color: #bfd8c8; font-size: .74rem; }
.lobby-card .countdown { margin: 0; }
.lobby-cta { margin-left: auto; color: #fff3c8; font: .64rem/1 var(--display); letter-spacing: .08em; text-shadow: 0 0 8px rgb(255 211 106 / 60%); }
.more-button { display: block; margin: 24px auto 0; }

/* Taking a seat: the full table in an overlay. */
.table-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: 94vh;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: var(--text);
}
.table-dialog::backdrop { background: rgb(5 2 8 / 82%); backdrop-filter: blur(6px); }
.table-close {
  position: sticky;
  z-index: 2;
  top: 10px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 10px 10px -52px 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #12061a;
  color: var(--gold);
  box-shadow: 0 0 14px rgb(255 211 106 / 45%);
}
.table-dialog .outcomes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
.table-dialog .market-top { padding-right: 52px; }
.table-dialog .market-question { font-size: 1.45rem; }
.add-spot { align-content: start; border-style: dashed; border-color: rgb(255 63 180 / 65%); background: rgb(255 63 180 / 6%); }
.add-spot .spot-label { color: #ffd9ef; }
.add-spot .ghost-button { justify-self: start; border-color: rgb(255 63 180 / 65%); color: #ffd9ef; }
.add-form { display: grid; gap: 8px; }
.add-form .field { width: 100%; }

/* Each market is a felt table inside a stitched leather rail. */
.market-card {
  position: relative;
  padding: 11px;
  border-radius: 32px;
  background: linear-gradient(160deg, #6a3215, #34160a 55%, #1e0c05);
  box-shadow: 0 0 0 2px #120602, 0 0 0 4px rgb(255 211 106 / 50%), 0 0 26px rgb(255 211 106 / 14%), 0 28px 60px rgb(0 0 0 / 65%);
}
.market-card::after {
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgb(255 220 170 / 32%);
  border-radius: 27px;
  content: "";
  pointer-events: none;
}
.market-card.is-new { animation: deal .65s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes deal { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg) scale(.95); } }
.felt {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  height: 100%;
  padding: 18px 16px 14px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0, rgb(255 255 255 / 13%), transparent 62%),
    repeating-radial-gradient(circle at 30% 20%, rgb(0 0 0 / 6%) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, #12844e, #0b5c36 60%, #073e25);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 35%), inset 0 0 44px rgb(0 0 0 / 55%);
}
.felt::before {
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 43%, rgb(255 240 200 / 12%) 50%, transparent 57%);
  content: "";
  pointer-events: none;
  transform: translateX(-60%);
  transition: transform 1s ease;
}
.market-card:hover .felt::before { transform: translateX(60%); }
.felt::after { color: rgb(255 211 106 / 36%); content: "Winners split the pot"; font: .6rem/1 var(--display); letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.market-card[data-status="resolved"] .felt, .market-card[data-status="void"] .felt {
  background:
    radial-gradient(ellipse at 50% 0, rgb(255 255 255 / 8%), transparent 62%),
    linear-gradient(170deg, #1f4a35, #143224 60%, #0d2219);
}

.market-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 2px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(0 0 0 / 50%);
  font: .62rem/1 var(--display);
  letter-spacing: .1em;
}
.badge-open { border-color: #ff4b5c; color: #ffe0e4; box-shadow: 0 0 10px rgb(255 75 92 / 60%); text-shadow: 0 0 6px #ff4b5c; }
.badge-open::before { width: 8px; height: 8px; border-radius: 50%; background: #ff4b5c; box-shadow: 0 0 10px #ff4b5c; content: ""; animation: pulse 1.6s ease-in-out infinite; }
.badge-closed { border-color: var(--amber); color: #ffe6bf; box-shadow: 0 0 10px rgb(255 180 58 / 55%); }
.badge-resolved { border-color: var(--gold); color: #fff3c8; box-shadow: 0 0 10px rgb(255 211 106 / 60%); }
.badge-void { color: var(--muted); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.pot { color: #fff3c8; font: 1rem/1 var(--display); text-shadow: 0 0 10px var(--gold), 0 0 22px #ff9d1c; }

.market-question { margin: 0; font: 700 1.22rem/1.28 var(--body); overflow-wrap: anywhere; text-shadow: 0 2px 0 rgb(0 0 0 / 35%); }
.market-meta { margin: -6px 0 0; color: #bfd8c8; font-size: .78rem; }
.countdown { margin: -4px 0 0; color: var(--amber); font: .78rem/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgb(255 160 40 / 75%); }

/* Betting spots printed on the felt, with chip stacks. */
.outcomes { display: grid; gap: 10px; }
.spot {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 13px;
  border: 2px solid rgb(255 211 106 / 55%);
  border-radius: 15px;
  background: rgb(0 0 0 / 14%);
  color: inherit;
  text-align: left;
}
button.spot { cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
button.spot:hover { border-color: var(--gold); background: rgb(255 211 106 / 7%); transform: translateY(-1px); }
.spot[aria-pressed="true"] { border-color: var(--pink); background: rgb(255 63 180 / 8%); box-shadow: 0 0 0 1px var(--pink), 0 0 24px rgb(255 63 180 / 45%), inset 0 0 18px rgb(255 63 180 / 15%); }
.spot.is-winner { border-color: var(--gold); background: rgb(255 211 106 / 10%); animation: winner 2.4s ease-in-out infinite; }
.spot.is-loser .stack { filter: grayscale(.85) brightness(.55); }
@keyframes winner { 0%, 100% { box-shadow: 0 0 14px rgb(255 211 106 / 35%); } 50% { box-shadow: 0 0 32px rgb(255 211 106 / 70%), inset 0 0 20px rgb(255 211 106 / 22%); } }
.spot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.spot-label { color: #ffeab4; font: .95rem/1.2 var(--display); overflow-wrap: anywhere; }
.spot.is-winner .spot-label::before { margin-right: 6px; content: "♛"; }
.spot-odds { color: var(--gold); font: .95rem/1 var(--display); white-space: nowrap; }
.spot-chips { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; min-height: 64px; }
.spot-empty { align-self: center; color: rgb(255 255 255 / 45%); font-size: .75rem; font-style: italic; }
.spot-chips:has(.pending-slot:not(:empty)) .spot-empty { display: none; }
.pending-slot { display: inline-flex; align-items: flex-end; gap: 6px; }
.pending-label { color: #ffe4f5; font: .82rem/1 var(--display); text-shadow: 0 0 8px var(--pink-glow); }
.odds-bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: rgb(0 0 0 / 45%); }
.odds-bar > span { display: block; width: var(--share, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 10px rgb(255 211 106 / 60%); }
.is-new .odds-bar > span { animation: fill 1.1s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes fill { from { width: 0; } }
.spot-foot { color: #bfd8c8; font-size: .75rem; }
.backers { display: flex; flex-wrap: wrap; gap: 5px; }
.backer { padding: 2px 9px; border: 1px dashed rgb(255 255 255 / 28%); border-radius: 99px; background: rgb(0 0 0 / 35%); color: #dbe8df; font-size: .72rem; }
.backer.is-me { border: 1px solid var(--pink); background: var(--pink); color: #2a0218; font-weight: 800; box-shadow: 0 0 10px rgb(255 63 180 / 60%); }

/* Casino chips, seen from the side in stacks and from above on the rack. */
.c1 { --c: #efe9dc; --s: #1f5fbf; --ink: #1b1916; }
.c5 { --c: #c8231b; --s: #fff2e0; --ink: #fff; }
.c25 { --c: #128a4c; --s: #fff; --ink: #fff; }
.c100 { --c: #1b1b1b; --s: #e6c35a; --ink: #ffd36a; }
.c500 { --c: #6b2fb3; --s: #fff; --ink: #fff; }
.c1000 { --c: #f2c230; --s: #1b1b1b; --ink: #1b1b1b; }
.c5000 { --c: #e8731a; --s: #fff; --ink: #fff; }
.c25000 { --c: #14a3a8; --s: #fff; --ink: #fff; }
.c100000 { --c: #e0408f; --s: #fff; --ink: #fff; }
.c500000 { --c: #1d2b6b; --s: #ffd36a; --ink: #ffd36a; }
.c1000000 { --c: #d9a520; --s: #7a0f1f; --ink: #3a0610; }
.c5000000 { --c: #c9ccd3; --s: #1b1b1b; --ink: #1b1b1b; }
.c25000000 { --c: #7a0f1f; --s: #ffd36a; --ink: #ffd36a; }
.stack { display: inline-flex; align-items: flex-end; gap: 4px; }
.stack-col { display: flex; flex-direction: column-reverse; }
.stack-chip {
  position: relative;
  width: 46px;
  height: 18px;
  border-radius: 23px / 7px;
  background: linear-gradient(rgb(0 0 0 / 30%), rgb(0 0 0 / 30%)), repeating-linear-gradient(90deg, var(--c) 0 7px, var(--s) 7px 11px);
  box-shadow: 0 2px 3px rgb(0 0 0 / 55%);
}
.stack-chip::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--c) 50%, var(--s) 51% 57%, var(--c) 58% 70%, transparent 71%),
    repeating-conic-gradient(var(--c) 0 20deg, var(--s) 20deg 40deg);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 25%);
  content: "";
}
.stack-chip + .stack-chip { margin-bottom: -12px; }
.stack-chip.is-dropping { animation: chip-drop .5s cubic-bezier(.3, 1.45, .5, 1) var(--d, 0s) both; }
@keyframes chip-drop { from { opacity: 0; transform: translateY(-64px); } 50% { opacity: 1; } }
.stack.is-pending { filter: drop-shadow(0 0 7px rgb(255 63 180 / 85%)); }
.chip-face, .chip-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--c) 0 46%, var(--s) 47% 51%, var(--c) 52% 60%, transparent 61%),
    repeating-conic-gradient(var(--c) 0 22.5deg, var(--s) 22.5deg 45deg);
  color: var(--ink);
  font: .62rem/1 var(--display);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 40%), 0 4px 0 rgb(0 0 0 / 55%);
}
.chip-button { cursor: pointer; transition: transform .12s ease; }
.chip-button:hover:not(:disabled) { transform: translateY(-4px) rotate(-12deg); }
.chip-button:active:not(:disabled) { box-shadow: 0 0 0 2px rgb(0 0 0 / 40%), 0 1px 0 rgb(0 0 0 / 55%); transform: translateY(2px); }
.chip-button:disabled { opacity: .45; cursor: not-allowed; }
.flying-chip { position: fixed; z-index: 70; width: 32px; height: 32px; font-size: .62rem; pointer-events: none; }

/* Bet slip: a wooden chip rack and the glossy bet button. */
.bet-slip { display: grid; gap: 11px; padding: 14px; border: 1px solid rgb(255 211 106 / 32%); border-radius: 16px; background: rgb(0 0 0 / 32%); }
.slip-label { margin: 0; color: #ffeab4; font: .74rem/1.3 var(--display); letter-spacing: .04em; }
.slip-min { margin-left: 10px; color: #cfe2d5; font: 600 .74rem var(--body); letter-spacing: 0; }
.rack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px 10px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #5a2c12, #2c1307);
  box-shadow: inset 0 3px 6px rgb(0 0 0 / 65%), 0 1px 0 rgb(255 220 170 / 18%);
}
.rack .ghost-button { min-height: 36px; padding: 6px 12px; border-color: rgb(255 211 106 / 55%); color: var(--gold); }
.slip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.estimate { min-height: 1.2em; margin: 0; color: #cfe2d5; font-size: .8rem; }
.estimate strong { color: var(--gold); }
.my-position { margin: 0; padding: 9px 12px; border-left: 3px solid var(--pink); border-radius: 4px; background: rgb(0 0 0 / 32%); font-size: .82rem; }

.field {
  min-height: 44px;
  padding: 9px 12px;
  border: 2px solid rgb(255 249 233 / 18%);
  border-radius: 12px;
  background: rgb(0 0 0 / 50%);
  color: var(--text);
}
.field:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(63 240 255 / 25%), 0 0 16px rgb(63 240 255 / 35%); }
.amount-input { width: 100px; font: 1rem var(--display); font-variant-numeric: tabular-nums; }
.slip-status, .form-status { min-height: 1.2em; margin: 0; font-size: .82rem; }
.is-error { color: var(--danger); }
.is-success { color: var(--success); }

/* Results and the bookie's desk. */
.result { display: grid; gap: 5px; padding: 12px 14px; border: 2px solid rgb(255 211 106 / 45%); border-radius: 14px; background: rgb(0 0 0 / 38%); }
.result p { margin: 0; }
.result-title { color: #fff3c8; font: 1rem/1.2 var(--display); text-shadow: 0 0 10px rgb(255 211 106 / 60%); }
.result-note { color: #dbe8df; font-size: .82rem; font-style: italic; overflow-wrap: anywhere; }
.result-payout { font-weight: 800; }
.result-payout.is-win { color: var(--success); font-family: var(--display); font-weight: 400; text-shadow: 0 0 12px rgb(125 255 177 / 55%); }
.result-payout.is-loss { color: var(--muted); font-weight: 600; }
.bookie-desk {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 2px solid rgb(255 75 92 / 60%);
  border-radius: 15px;
  background: repeating-linear-gradient(135deg, rgb(120 10 25 / 60%) 0 10px, rgb(80 6 16 / 60%) 10px 20px);
  box-shadow: 0 0 16px rgb(255 75 92 / 30%);
}
.desk-title { margin: 0; color: #ffe0e4; font: .7rem/1 var(--display); letter-spacing: .14em; text-shadow: 0 0 8px #ff4b5c; }
.bookie-desk .field { width: 100%; }
.bookie-desk > .ghost-button { justify-self: start; border-color: rgb(255 210 215 / 55%); color: #ffe0e4; }
.history-panel { display: grid; gap: 8px; }
.bet-history { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.history-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 7px 10px; border-radius: 9px; background: rgb(0 0 0 / 38%); font-size: .8rem; }
.history-time { color: #ffd2cc; font-variant-numeric: tabular-nums; }
.history-who { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.history-what { grid-column: 2; color: #e8dfe0; }
.history-row > .ghost-button, .history-void { grid-row: 1 / span 2; grid-column: 3; }
.history-button { min-height: 34px; padding: 4px 14px; border-color: #ff4b5c; color: #ffe0e4; }
.history-row.is-voided .history-who, .history-row.is-voided .history-what { opacity: .55; text-decoration: line-through; }
.history-void { max-width: 12rem; color: #ffb3a8; font-size: .74rem; font-style: italic; }
.voided-note { margin: 0; padding: 9px 12px; border-left: 3px solid #ff4b5c; border-radius: 4px; background: rgb(60 6 14 / 45%); color: #ffd2cc; font-size: .82rem; }

/* House rules sign. */
.house-rules {
  max-width: 780px;
  margin: 70px auto 20px;
  padding: 30px 34px;
  border: 3px solid var(--blue);
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(16 8 26 / 95%), rgb(8 4 14 / 95%));
  box-shadow: 0 0 24px rgb(63 240 255 / 40%), inset 0 0 26px rgb(63 240 255 / 15%);
}
.house-rules h2 { margin: 0 0 14px; color: #fff3c8; font: 1.5rem/1 var(--display); text-align: center; text-shadow: 0 0 10px var(--gold), 0 0 24px #ff9d1c; }
.house-rules ol { margin: 0; padding-left: 24px; color: #e6def0; font-size: .92rem; }
.house-rules li + li { margin-top: 9px; }
.house-rules li::marker { color: var(--pink); font-family: var(--display); }

.casino-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 22px 28px 30px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--muted);
  font-size: .75rem;
}
.casino-footer .brand { color: #ff4b4b; font-family: var(--display); letter-spacing: .1em; text-decoration: none; text-shadow: 0 0 10px rgb(255 40 40 / 60%); }

/* Create-market dialog. */
.proof-note { margin: 16px 0; padding: 10px 14px; border: 2px solid #ffbf16; border-radius: 12px; background: rgb(255 191 22 / 8%); font-size: .95rem; line-height: 1.45; }
.proof-note p { margin: 0; }
.proof-note strong { color: #ffcf43; }
.proof-note ul { margin: 6px 0 0; padding-left: 24px; }
.proof-note a { color: inherit; overflow-wrap: anywhere; text-decoration: none; }
.proof-note a:hover { text-decoration: underline; }
.modal {
  width: min(540px, calc(100% - 32px));
  max-height: min(90vh, 840px);
  padding: 30px;
  overflow-y: auto;
  border: 3px solid var(--pink);
  border-radius: 22px;
  background: linear-gradient(180deg, #1c0a24, #0b0510);
  color: var(--text);
  box-shadow: 0 0 34px rgb(255 63 180 / 50%), inset 0 0 26px rgb(255 63 180 / 15%), 0 30px 90px rgb(0 0 0 / 70%);
}
.modal::backdrop { background: rgb(5 2 8 / 80%); backdrop-filter: blur(5px); }
.modal-eyebrow { margin: 0; color: var(--blue); font: .7rem/1 var(--display); letter-spacing: .2em; text-shadow: 0 0 8px var(--blue-glow); }
.modal h2 { margin: 4px 0 18px; color: #ffe4f5; font: 400 3.2rem/1 var(--script); text-shadow: 0 0 3px #fff, 0 0 10px var(--pink), 0 0 24px var(--pink-glow); }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.create-form { display: grid; gap: 16px; }
.field-label { display: grid; gap: 6px; color: var(--gold); font: .72rem/1.2 var(--display); letter-spacing: .08em; }
.field-label .field { color: var(--text); font: 1rem var(--body); letter-spacing: 0; }
.plain-fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.plain-fieldset legend { margin-bottom: 6px; }
.plain-fieldset .ghost-button { justify-self: start; }
.outcome-fields { display: grid; gap: 8px; }
.outcome-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.remove-outcome { width: 44px; padding: 0; font-size: 1rem; }
.form-hint { margin: 0; color: var(--muted); font-size: .8rem; }
.check-label { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .95rem; cursor: pointer; }
.check-label input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink); }
.check-label .form-hint { display: block; margin-top: 2px; }

/* Toasts and coin showers. */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 14px 24px;
  border: 3px solid var(--pink);
  border-radius: 999px;
  background: #12061a;
  box-shadow: 0 0 30px rgb(255 63 180 / 55%), 0 18px 40px rgb(0 0 0 / 60%);
  color: #ffe4f5;
  font: .9rem/1.3 var(--display);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 30px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-win { border-color: var(--gold); background: linear-gradient(180deg, #ffeaa8, #e6b94d); color: #3a1d00; box-shadow: 0 0 40px rgb(255 211 106 / 70%); }
.toast.is-error { border-color: var(--danger); color: var(--danger); }
.coin-rain { position: fixed; inset: 0; z-index: 55; overflow: hidden; pointer-events: none; }
.coin {
  position: absolute;
  top: -60px;
  left: var(--x);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd25a 40%, #c98b17 75%, #8a5a08);
  color: #6b4300;
  font: .55rem/1 var(--display);
  box-shadow: inset 0 0 0 3px rgb(255 240 190 / 55%), 0 3px 8px rgb(0 0 0 / 45%);
  animation: coin-fall var(--duration, 2.4s) cubic-bezier(.35, .1, .6, 1) var(--delay, 0s) both;
}
@keyframes coin-fall { to { transform: translateY(calc(100vh + 120px)) rotateY(calc(var(--spin, 1) * 1080deg)) rotate(calc(var(--spin, 1) * 160deg)); } }

@media (max-width: 760px) {
  .hero { padding: 50px 16px 0; }
  .back-link { top: 18px; left: 16px; }
  .billboard { padding: 16px; border-radius: 16px; }
  .frame-bulb { width: 9px; height: 9px; }
  .starburst { top: -30px; right: -2px; width: 88px; }
  .starburst span { font-size: .48rem; }
  .title-plate { padding: 4px 20px 10px; }
  .ticker { margin: 26px 16px 0; }
  .casino { padding: 28px 16px 10px; }
  .cashier { grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; padding: 18px; }
  .cashier-stack { grid-row: span 2; align-self: center; }
  .cashier .neon-button { grid-column: 1 / -1; }
  .market-card { padding: 9px; border-radius: 26px; }
  .felt { padding: 16px 13px 13px; border-radius: 19px; }
  .house-rules { padding: 24px 20px; }
  .casino-footer { padding: 20px 16px 26px; }
  .modal { padding: 26px 20px; }
  .table-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 6px; }
  .lobby-search { width: 100%; }
  .history-row.is-voided .history-void { grid-row: 3; grid-column: 2 / -1; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-item:nth-child(n + 4) { display: none; }
}

/* Organiser-funded market perks, visible on the floor and at the table. */
.market-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.market-perks:empty { display: none; }
.pot-boost-badge, .creator-bonus-badge { display: inline-block; border-radius: 6px; padding: 8px 10px; font-size: .76rem; line-height: 1.45; font-weight: 700; }
.pot-boost-badge { color: #ffe49a; border: 1px solid #e5b756; background: linear-gradient(120deg, #503311, #26182b); box-shadow: 0 0 14px rgb(255 192 68 / 18%); }
.creator-bonus-badge { color: #bceff3; border: 1px solid #4ca5ae; background: #102a33; }
.promotion-controls { border: 1px solid #745837; border-radius: 8px; padding: 16px; margin-bottom: 16px; background: rgb(255 208 104 / 5%); }
.boost-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.boost-form label { display: grid; gap: 8px; color: #ffe49a; }
.creator-bonus-control { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; cursor: pointer; }
.creator-bonus-control input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #72d7df; }
@media (max-width: 520px) { .boost-form { grid-template-columns: 1fr; } }
.email-alerts { margin: 1.5rem 0 2rem; }
.email-alerts p { color: #d5c9b5; font-size: .9rem; line-height: 1.5; }
.email-choice p { line-height: 1.6; }
.email-choice-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
