:root {
  --ink: #f8fff4;
  --muted: #d4eac9;
  --paper: #0f2411;
  --cream: #143a18;
  --teal: #9fd783;
  --green: #baf4a1;
  --coral: #fffbdf;
  --gold: #dfffc5;
  --forest: #185d24;
  --forest-bright: #3d8d35;
  --blue: #c9ffd9;
  --charcoal: #050505;
  --steel: #214a25;
  --neon-glow: 0 0 16px rgba(223, 255, 197, 0.9), 0 0 42px rgba(152, 221, 99, 0.48);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0b2f12;
  background-image:
    linear-gradient(180deg, rgba(6, 30, 8, 0.66), rgba(6, 30, 8, 0.76)),
    url("/assets/event-art/bingo-countdown-screen.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

html.player-page,
body.player-body {
  overscroll-behavior-y: none;
}

body.player-body {
  background-attachment: scroll;
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(232, 255, 213, 0.28) 0 7px, transparent 8px),
    linear-gradient(rgba(232, 255, 213, 0.2), rgba(232, 255, 213, 0.2));
  background-size: 74px 34px, 74px 100%;
  background-position: 14px 0, 51px 0;
  opacity: 0.44;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: var(--radius);
  color: #102612;
  background: var(--gold);
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  min-height: 44px;
  box-shadow: var(--neon-glow);
}

button:hover {
  filter: brightness(1.04);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

button.secondary {
  color: var(--ink);
  background: rgba(10, 42, 14, 0.82);
  border: 1px solid rgba(223, 255, 197, 0.45);
  box-shadow: none;
}

button.warning {
  color: #ffffff;
  background: #8f1d1d;
  box-shadow: 0 8px 20px rgba(143, 29, 29, 0.34);
}

button.gold {
  color: #081a0b;
  background: #dfffc5;
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.34);
}

a {
  color: var(--gold);
  font-weight: 900;
}

.app-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: clamp(112px, 14vw, 196px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(6, 31, 10, 0.9);
  padding: 7px;
  border: 1px solid rgba(223, 255, 197, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.brand-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.host-command-center {
  margin-bottom: 18px;
}

.host-runner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.host-runner-header h2 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
}

.host-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.host-health-tile {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 255, 197, 0.34);
  background: rgba(5, 24, 8, 0.82);
}

.host-health-tile.ok {
  border-color: rgba(223, 255, 197, 0.72);
  box-shadow: inset 4px 0 0 #dfffc5;
}

.host-health-tile.warn {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 4px 0 0 #ffffff;
}

.host-health-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.host-health-tile strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-health-tile em {
  color: #efffe8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.host-runner-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.host-steps,
.host-notes {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(3, 18, 5, 0.72);
  border: 1px solid rgba(223, 255, 197, 0.28);
}

.host-steps > strong,
.host-notes > strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
}

.host-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid rgba(223, 255, 197, 0.16);
}

.host-step:first-of-type {
  border-top: 0;
}

.host-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #071407;
  background: #dfffc5;
  font-weight: 950;
}

.host-step p,
.host-notes p {
  margin: 0;
  color: #f4ffed;
  font-weight: 800;
  line-height: 1.35;
}

.host-step.waiting {
  opacity: 0.62;
}

.host-step.active span {
  color: #ffffff;
  background: #185d24;
  box-shadow: var(--neon-glow);
}

.host-step.done p {
  color: var(--muted);
}

.panel,
.card {
  border: 1px solid rgba(223, 255, 197, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(27, 82, 28, 0.92), rgba(6, 29, 10, 0.96)),
    #102b12;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gold);
  font-weight: 950;
  white-space: nowrap;
}

.status-pill.break {
  color: #050505;
  background: #ffffff;
}

.status-pill.countdown {
  color: #050505;
  background: var(--green);
}

.status-pill.ended {
  color: #050505;
  background: var(--green);
}

.status-pill.setup {
  color: var(--ink);
  background: #171717;
  border: 1px solid rgba(31, 111, 82, 0.48);
}

.draw-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 6px solid var(--gold);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(162, 221, 98, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(35, 103, 37, 0.9), rgba(8, 40, 12, 0.96));
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 48px rgba(223, 255, 197, 0.12), var(--neon-glow);
}

.moment-host-box,
.display-moment-box {
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.display-moment-box {
  grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(16px, 2.2vw, 30px);
  padding: clamp(18px, 2.5vw, 34px);
  border-color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 255, 197, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(3, 22, 7, 0.93), rgba(3, 16, 6, 0.98));
}

.moment-copy {
  min-width: 0;
  width: 100%;
}

.display-moment-box .moment-copy {
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.moment-art {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: var(--radius);
  border: 4px solid var(--gold);
  background: #0b2f12;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.host-art {
  min-height: 190px;
}

.draw-word {
  width: 100%;
  padding: 24px;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 118px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  word-break: normal;
  text-shadow: var(--neon-glow);
}

.draw-category {
  margin-top: 10px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat {
  min-height: 82px;
  padding: 12px;
  border-radius: var(--radius);
  background: #0e0e0e;
  border: 1px solid rgba(31, 111, 82, 0.38);
}

.stat b {
  display: block;
  color: #ffffff;
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-chip {
  border-radius: 999px;
  color: #ffffff;
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  font-weight: 900;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-chip.current-pull {
  color: #050505;
  background: #ffffff;
  border-color: #ffffff;
}

.schedule {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: #101010;
  border: 1px solid rgba(31, 111, 82, 0.34);
}

.schedule-row.active {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}

.round-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gold);
  font-weight: 950;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.qr-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.qr-card img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: white;
  padding: 10px;
  border: 1px solid rgba(31, 111, 82, 0.48);
}

.claims {
  display: grid;
  gap: 8px;
}

.claim {
  padding: 10px;
  border-radius: var(--radius);
  color: #050505;
  color: #ffffff;
  background: var(--forest);
  border: 1px solid rgba(31, 111, 82, 0.65);
  font-weight: 900;
}

.display-body {
  overflow: hidden;
}

.display-body::before {
  content: "";
  opacity: 1;
  background: transparent;
}

.display-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: clamp(76px, 15vh, 116px) minmax(0, 1fr) clamp(68px, 13vh, 108px);
  gap: clamp(8px, 1.2vh, 14px);
  padding: clamp(12px, 1.6vw, 22px);
  position: relative;
  overflow: hidden;
  background-color: #0b2f12;
  background-image:
    linear-gradient(180deg, rgba(6, 30, 8, 0.34), rgba(6, 30, 8, 0.58)),
    url("/assets/event-art/bingo-countdown-screen.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.display-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle, rgba(230, 255, 215, 0.22) 0 8px, transparent 9px);
  background-size: 82px 100%, 82px 40px;
  background-position: 41px 0, 0 0;
  opacity: 0.36;
}

.display-body[data-display-status="countdown"] .display-shell,
.display-body[data-display-status="break"] .display-shell,
.display-body[data-display-status="ended"] .display-shell {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.display-body[data-display-status="countdown"] .display-shell {
  background-image: url("/assets/event-art/bingo-countdown-screen.png");
}

.display-body[data-display-status="break"] .display-shell,
.display-body[data-display-status="ended"] .display-shell {
  background-image: url("/assets/event-art/bingo-leaderboard-screen.png");
}

.display-body[data-display-status="countdown"] .display-shell::before,
.display-body[data-display-status="break"] .display-shell::before,
.display-body[data-display-status="ended"] .display-shell::before {
  content: none;
}

.display-shell > * {
  position: relative;
  z-index: 1;
}

.display-shell > .final-leaderboard-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b2f12;
}

.display-body[data-display-status="ended"] .display-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(13, 45, 14, 0.1), rgba(2, 12, 4, 0.45) 72%),
    linear-gradient(180deg, rgba(3, 14, 5, 0.18), rgba(3, 14, 5, 0.48));
}

.display-body[data-display-status="countdown"] .display-header,
.display-body[data-display-status="break"] .display-header,
.display-body[data-display-status="break"] .display-recent-pulls,
.display-body[data-display-status="break"] .join-strip,
.display-body[data-display-status="ended"] .display-header,
.display-body[data-display-status="ended"] .display-recent-pulls,
.display-body[data-display-status="ended"] .join-strip {
  opacity: 0;
  pointer-events: none;
}

.display-body[data-display-status="countdown"] .display-header {
  opacity: 0;
  pointer-events: none;
}

.display-body[data-display-status="countdown"] .display-recent-pulls,
.display-body[data-display-status="countdown"] .join-strip {
  display: none;
}

.display-header,
.display-footer {
  display: flex;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.display-recent-pulls {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.display-recent-pulls > strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 950;
}

.display-recent-pulls .word-list {
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.display-recent-pulls .word-chip {
  min-width: 0;
  color: #ffffff;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1;
}

.display-recent-pulls .word-chip.current-pull {
  color: #ffffff;
  background: #050505;
  border-color: #ffffff;
}

.display-logo {
  width: clamp(92px, 10.5vw, 170px);
}

.display-brand {
  gap: clamp(10px, 1.3vw, 16px);
  min-width: 0;
}

.display-brand > div {
  min-width: 0;
}

.display-brand .brand-kicker {
  margin-bottom: 4px;
  font-size: clamp(10px, 1vw, 13px);
}

.display-brand h1 {
  margin-bottom: 4px;
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 0.9;
  max-width: min(58vw, 720px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-brand .subtitle {
  max-width: min(58vw, 760px);
  color: #f2ffe9;
  font-size: clamp(13px, 1.45vw, 19px);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-word {
  display: grid;
  width: 100%;
  min-width: 0;
  place-items: center;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}

.display-word .draw-box {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  border-width: clamp(5px, 0.65vw, 10px);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 255, 197, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(2, 16, 6, 0.98), rgba(4, 34, 9, 0.98));
}

.display-word .draw-word {
  display: block;
  padding: clamp(22px, 3vw, 44px);
  font-size: clamp(42px, 6.6vw, 104px);
  line-height: 0.94;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  text-overflow: clip;
  text-shadow: 0 0 24px rgba(223, 255, 197, 0.74), 0 6px 18px rgba(0, 0, 0, 0.72);
}

.display-art {
  width: 100%;
  max-width: 100%;
  height: min(44vh, 460px);
  max-height: 100%;
}

.timer {
  color: #ffffff;
  font-size: clamp(36px, 6.8vw, 86px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 30px rgba(31, 111, 82, 0.34);
}

.join-strip {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  align-items: center;
}

.display-body[data-display-status="countdown"] .display-footer {
  justify-content: center;
}

.countdown-instructions {
  display: none;
}

.display-body[data-display-status="countdown"] .countdown-instructions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  width: min(1440px, 100%);
  min-width: 0;
  padding: clamp(8px, 1.1vw, 14px);
  border: 1px solid rgba(223, 255, 197, 0.64);
  border-radius: var(--radius);
  background: rgba(4, 25, 7, 0.84);
  box-shadow: 0 0 24px rgba(223, 255, 197, 0.22);
  backdrop-filter: blur(4px);
}

.countdown-instructions div {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.countdown-instructions strong {
  color: #ffffff;
  font-size: clamp(12px, 1.15vw, 18px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: var(--neon-glow);
}

.countdown-instructions span {
  color: #f2ffe9;
  font-size: clamp(10px, 0.82vw, 14px);
  font-weight: 850;
  line-height: 1.15;
}

.display-body[data-display-status="countdown"] .join-strip {
  flex-direction: column;
  gap: 10px;
  width: clamp(190px, 19vw, 250px);
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid rgba(223, 255, 197, 0.64);
  border-radius: var(--radius);
  background: rgba(5, 26, 8, 0.78);
  box-shadow: 0 0 22px rgba(223, 255, 197, 0.24);
  backdrop-filter: blur(3px);
  text-align: center;
}

.display-body[data-display-status="countdown"] .join-strip strong {
  display: block;
  color: #ffffff;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: var(--neon-glow);
}

.display-body[data-display-status="countdown"] .join-strip .small {
  color: #f7ffe9;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.display-body[data-display-status="countdown"] .join-strip img {
  width: clamp(132px, 13vw, 178px);
  height: clamp(132px, 13vw, 178px);
  padding: 8px;
}

.join-strip img {
  width: clamp(76px, 8vw, 96px);
  height: clamp(76px, 8vw, 96px);
  background: white;
  border-radius: var(--radius);
  padding: 6px;
}

.player-shell {
  width: min(980px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.join-form {
  display: grid;
  gap: 12px;
}

.player-rules,
.player-game-rules {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(223, 255, 197, 0.42);
  border-radius: var(--radius);
  background: rgba(5, 26, 8, 0.82);
  color: #f7ffe9;
}

.player-rules strong,
.player-game-rules strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: var(--neon-glow);
}

.player-rules p,
.player-rules ul {
  margin: 0;
}

.player-rules p,
.player-rules li,
.player-game-rules span {
  color: #f2ffe9;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
}

.player-rules ul {
  padding-left: 18px;
}

.player-game-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  margin: 0 0 12px;
}

.player-game-rules > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.add-card-button {
  align-self: stretch;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(31, 111, 82, 0.48);
  border-radius: var(--radius);
  background: #101010;
  padding: 10px 12px;
  color: var(--ink);
}

.player-status {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -12px 12px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(31, 111, 82, 0.38);
  backdrop-filter: blur(8px);
}

.player-status strong {
  display: block;
  margin-bottom: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.bingo-card {
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1a1a1a, #0c0c0c);
  border: 1px solid rgba(31, 111, 82, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 900;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.bingo-head,
.bingo-cell {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.bingo-head {
  color: #050505;
  background: #ffffff;
  font-weight: 950;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(223, 255, 197, 0.58);
}

.bingo-cell {
  aspect-ratio: 1;
  padding: 6px;
  color: #041207;
  background: #ffffff;
  border: 2px solid rgba(223, 255, 197, 0.92);
  font-weight: 950;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: inset 0 0 0 1px rgba(12, 72, 20, 0.18);
}

.bingo-cell-text {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bingo-cell-text.text-lg {
  font-size: clamp(13px, 1.32vw, 16px);
}

.bingo-cell-text.text-md {
  font-size: clamp(12px, 1.18vw, 15px);
}

.bingo-cell-text.text-sm {
  font-size: clamp(10px, 1.02vw, 13px);
}

.bingo-cell-text.text-xs {
  font-size: clamp(9px, 0.9vw, 12px);
  line-height: 0.98;
}

.free-space-logo {
  width: min(82%, 58px);
  max-height: 70%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(223, 255, 197, 0.46));
}

.bingo-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.bingo-cell.selected,
.bingo-cell.free {
  color: #ffffff;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(223, 255, 197, 0.22), 0 0 10px rgba(0, 0, 0, 0.46);
}

.bingo-cell.win {
  color: #ffffff;
  background: #050505;
  border-color: #dfffbe;
  outline: 3px solid #dfffbe;
  outline-offset: -5px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    0 0 20px rgba(223, 255, 197, 0.86),
    0 0 8px rgba(255, 255, 255, 0.72);
}

.leaderboard-panel {
  width: min(1180px, 94vw);
  padding: 34px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.break-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: clamp(12px, 1.6vw, 20px);
  align-items: end;
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.break-header.final-header {
  grid-template-columns: 1fr;
  text-align: center;
}

.leaderboard-panel h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 0.95;
}

.break-next {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 850;
}

.break-countdown {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 16px);
  border-radius: var(--radius);
  border: 1px solid rgba(223, 255, 197, 0.58);
  background:
    linear-gradient(135deg, rgba(29, 95, 30, 0.72), rgba(5, 26, 8, 0.95)),
    #185d24;
}

.break-countdown span {
  color: var(--muted);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.break-countdown strong {
  color: #ffffff;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.winner-banner {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.winner-banner span {
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 950;
  text-transform: uppercase;
}

.winner-banner strong {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 950;
}

.winner-banner em {
  color: var(--green);
  font-style: normal;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 950;
}

.prize-claim {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 111, 82, 0.62);
  background: #101010;
  text-align: center;
}

.prize-claim span {
  color: var(--green);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 950;
  text-transform: uppercase;
}

.prize-claim strong {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 950;
}

.prize-claim p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 850;
}

.pregame-panel {
  width: min(1080px, 94vw);
  padding: 42px;
  border: 1px solid rgba(223, 255, 197, 0.58);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 18%, rgba(211, 255, 186, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 88, 25, 0.66), rgba(6, 35, 11, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}

.event-art-panel {
  color: #faffee;
  text-shadow: 0 0 16px rgba(35, 75, 23, 0.7);
}

.display-body[data-display-status="countdown"] .leaderboard-panel {
  width: min(1120px, 94vw);
  align-self: center;
  margin-bottom: 0;
  padding: 0;
}

.pregame-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 20vw, 250px);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  width: 100%;
}

.pregame-qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid rgba(223, 255, 197, 0.64);
  border-radius: var(--radius);
  background: rgba(5, 26, 8, 0.82);
  box-shadow: 0 0 22px rgba(223, 255, 197, 0.24);
  backdrop-filter: blur(3px);
  text-align: center;
}

.pregame-qr-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(25px, 2.9vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: var(--neon-glow);
}

.pregame-qr-card span {
  max-width: 100%;
  color: #f7ffe9;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pregame-qr-card img {
  width: clamp(136px, 13vw, 178px);
  height: clamp(136px, 13vw, 178px);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px;
}

.display-body[data-display-status="countdown"] .pregame-panel {
  width: 100%;
  margin-inline: auto;
  padding: clamp(18px, 2.2vw, 28px);
}

.display-body[data-display-status="countdown"] .pregame-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4.6vw, 64px);
}

.display-body[data-display-status="countdown"] .pregame-countdown {
  margin: 0 0 8px;
  font-size: clamp(58px, 10vw, 150px);
}

.display-body[data-display-status="countdown"] .pregame-copy {
  font-size: clamp(15px, 1.6vw, 22px);
}

.pregame-rules {
  display: grid;
  gap: 6px;
  width: min(760px, 100%);
  margin: clamp(10px, 1.4vw, 18px) auto 0;
  padding: clamp(10px, 1.2vw, 14px);
  border: 1px solid rgba(223, 255, 197, 0.62);
  border-radius: var(--radius);
  background: rgba(5, 26, 8, 0.72);
  box-shadow: 0 0 20px rgba(223, 255, 197, 0.16);
}

.pregame-rules strong {
  color: #ffffff;
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: var(--neon-glow);
}

.pregame-rules span {
  color: #f2ffe9;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 850;
  line-height: 1.18;
}

.display-body[data-display-status="break"] .leaderboard-panel,
.display-body[data-display-status="ended"] .leaderboard-panel {
  width: min(1360px, 92vw);
  margin-top: clamp(54px, 9vh, 116px);
  padding: clamp(10px, 1.2vw, 18px);
  color: #12320f;
}

.display-body[data-display-status="ended"] .leaderboard-panel {
  display: grid;
  gap: clamp(10px, 1.4vh, 16px);
  width: min(1360px, 92vw);
  margin-top: clamp(36px, 6vh, 84px);
  padding: 0;
  color: #ffffff;
}

.display-body[data-display-status="ended"] .break-header {
  margin: 0;
}

.display-body[data-display-status="ended"] .break-header h2,
.display-body[data-display-status="ended"] .break-next {
  color: #ffffff;
  text-shadow: var(--neon-glow);
}

.pregame-panel h2 {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.9;
}

.pregame-countdown {
  display: block;
  margin: 8px 0 22px;
  color: #ffffff;
  font-size: clamp(82px, 15vw, 210px);
  line-height: 0.88;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(31, 111, 82, 0.52);
}

.pregame-copy {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 850;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.final-winners-overlay {
  display: grid;
  gap: clamp(10px, 1.4vh, 16px);
  justify-items: center;
  text-align: center;
}

.final-winners-overlay .brand-kicker {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.4vw, 36px);
  text-shadow: var(--neon-glow);
}

.final-winner-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  width: 100%;
  align-items: end;
}

.final-winner-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 30px);
  border: 2px solid rgba(223, 255, 197, 0.78);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(211, 255, 186, 0.18), transparent 38%),
    rgba(3, 22, 7, 0.82);
  box-shadow: 0 0 32px rgba(223, 255, 197, 0.26), var(--shadow);
  backdrop-filter: blur(4px);
}

.final-winner-card.rank-1 {
  padding-block: clamp(22px, 2.8vw, 40px);
  border-color: rgba(255, 255, 255, 0.92);
}

.final-winner-card span {
  color: #eaffd9;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 950;
  text-transform: uppercase;
}

.final-winner-card strong {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.95;
  font-weight: 950;
  white-space: nowrap;
  text-shadow: var(--neon-glow);
}

.final-winner-card em {
  color: #dfffbe;
  font-size: clamp(22px, 2.6vw, 40px);
  font-style: normal;
  font-weight: 950;
}

.display-body[data-display-status="break"] .leaderboard-top-three {
  margin: clamp(6px, 1vh, 12px) 0 0;
}

.final-winner-card.no-winners {
  width: min(760px, 100%);
}

.display-body[data-display-status="ended"] .winner-banner,
.display-body[data-display-status="ended"] .prize-claim {
  display: none;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(34, 83, 24, 0.3);
  border-radius: var(--radius);
  background: rgba(244, 255, 234, 0.54);
  backdrop-filter: blur(2px);
}

.leaderboard-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--gold);
  color: #173515;
  font-weight: 950;
}

.leaderboard-name,
.leaderboard-score {
  color: #143311;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 950;
}

.leaderboard-score {
  color: #25590f;
}

.leaderboard-empty {
  color: var(--muted);
  font-size: 26px;
  font-weight: 850;
}

.bingo-alert {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(980px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  padding: clamp(30px, 4vw, 58px);
  border: clamp(6px, 0.8vw, 10px) solid #ffffff;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 28%, rgba(223, 255, 197, 0.18), transparent 42%),
    #050505;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 44px rgba(223, 255, 197, 0.38);
}

.bingo-alert-title {
  font-size: clamp(78px, 12vw, 180px);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: var(--neon-glow);
}

.bingo-alert-name {
  margin-top: 10px;
  font-size: clamp(42px, 6.8vw, 96px);
  font-weight: 950;
  line-height: 0.96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bingo-alert-points {
  margin-top: 8px;
  color: #dfffbe;
  font-size: clamp(28px, 4.4vw, 58px);
  font-weight: 950;
}

.bingo-alert.hype-alert {
  width: min(620px, calc(100vw - 48px));
  padding: clamp(18px, 2.5vw, 34px);
  border-width: clamp(4px, 0.45vw, 7px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.62), 0 0 28px rgba(223, 255, 197, 0.28);
}

.bingo-alert.hype-alert .bingo-alert-title {
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.95;
}

.bingo-alert.hype-alert .bingo-alert-points {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.05;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.recent-pulls {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(31, 111, 82, 0.42);
}

.recent-pulls > strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 950;
}

.player-recent {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-inline: -12px;
  padding: 14px 12px 12px;
  border-bottom: 0;
  border-color: rgba(223, 255, 197, 0.5);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.32);
}

.player-recent > strong {
  margin-bottom: 8px;
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1;
}

.player-recent .word-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.player-recent .word-chip {
  flex: 0 0 auto;
}

.player-word-chip {
  display: grid;
  align-content: center;
  min-width: clamp(124px, 16vw, 178px);
  max-width: min(72vw, 220px);
  min-height: 56px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: #050505;
  border-color: rgba(223, 255, 197, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-word-chip span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.player-word-chip strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: #ffffff;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.02;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-word-chip.current-pull {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: var(--neon-glow);
}

.player-word-chip.current-pull span {
  color: #185d24;
}

.player-word-chip.current-pull strong {
  color: #050505;
}

.empty-recent {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 850;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  width: min(440px, calc(100vw - 28px));
  transform: translateX(-50%);
  border-radius: var(--radius);
  background: var(--gold);
  color: #081a0b;
  padding: 12px 14px;
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.dashboard-shell {
  width: min(1680px, calc(100vw - 28px));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-editor {
  min-width: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 16px;
}

.create-game-form,
.saved-games-list,
.deck-list {
  display: grid;
  gap: 12px;
}

.create-game-form {
  margin-bottom: 16px;
}

.saved-game-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(223, 255, 197, 0.26);
  border-radius: var(--radius);
  background: rgba(3, 18, 5, 0.7);
}

.saved-game-row.selected {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}

.saved-game-main {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}

.saved-game-main strong,
.saved-game-main span,
.saved-game-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-game-main strong {
  color: #ffffff;
  font-size: 18px;
}

.saved-game-main span,
.saved-game-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.saved-game-actions,
.dashboard-toolbar,
.manual-word-row,
.custom-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.saved-game-actions button {
  min-height: 36px;
  padding: 8px 10px;
  box-shadow: none;
}

.dashboard-toolbar {
  margin-bottom: 14px;
}

.dashboard-toolbar label {
  flex: 1 1 220px;
}

.dashboard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.manual-word-row {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(3, 18, 5, 0.68);
  border: 1px solid rgba(223, 255, 197, 0.22);
}

.manual-word-row input {
  flex: 1 1 210px;
}

.deck-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 255, 197, 0.28);
  background: rgba(4, 22, 7, 0.82);
}

.deck-item.approved {
  border-color: rgba(223, 255, 197, 0.66);
}

.deck-item-main {
  display: grid;
  grid-template-columns: 40px minmax(160px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.deck-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #071407;
  background: var(--gold);
  font-weight: 950;
}

.image-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-weight: 950;
  white-space: nowrap;
}

.image-status.ok {
  color: #071407;
  background: var(--gold);
}

.image-status.warn {
  color: #ffffff;
  background: #8f1d1d;
}

.approved-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.approved-preview img,
.empty-image,
.recommendation img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 255, 197, 0.34);
  background: #101010;
}

.empty-image {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.custom-image-row input {
  flex: 1 1 260px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.recommendation {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 255, 197, 0.26);
  background: #101010;
}

.recommendation.approved {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(223, 255, 197, 0.34);
}

.recommendation.denied {
  opacity: 0.46;
}

.recommendation span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recommendation button {
  min-height: 36px;
  padding: 8px;
  box-shadow: none;
}

.is-busy button {
  cursor: wait;
}

@media (max-width: 860px) {
  .topbar,
  .layout,
  .dashboard-grid,
  .display-header,
  .display-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-actions {
    justify-content: start;
  }

  .host-runner-header,
  .host-runner-body {
    grid-template-columns: 1fr;
  }

  .host-runner-header button {
    width: 100%;
  }

  .host-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-item-main,
  .approved-preview {
    grid-template-columns: 1fr;
  }

  .display-shell {
    padding: 16px;
  }

  .display-word .draw-word {
    font-size: clamp(24px, 8vw, 44px);
    white-space: nowrap;
  }

  .brand-lockup,
  .moment-host-box,
  .display-moment-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-logo {
    width: 150px;
  }

  .leaderboard-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .break-header {
    grid-template-columns: 1fr;
  }

  .pregame-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pregame-qr-card {
    justify-self: center;
    width: min(100%, 280px);
  }

  .display-body[data-display-status="countdown"] .countdown-instructions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-score {
    grid-column: 2;
    font-size: 24px;
  }

  .join-strip {
    display: none;
  }

  .player-shell {
    width: min(100%, calc(100vw - 14px));
    padding: 8px 0 18px;
  }

  .player-shell .panel {
    padding: 14px;
  }

  .player-brand {
    gap: 10px;
  }

  .player-brand h1 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .player-status {
    margin-inline: -7px;
    padding: 10px 8px;
  }

  .player-rules,
  .player-game-rules {
    padding: 10px;
  }

  .player-game-rules {
    grid-template-columns: 1fr;
  }

  .add-card-button {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bingo-card {
    padding: 8px;
  }

  .card-title {
    font-size: 14px;
  }

  .bingo-grid {
    gap: 3px;
  }

  .bingo-head,
  .bingo-cell {
    min-height: 34px;
    border-radius: 4px;
  }

  .bingo-head {
    font-size: 14px;
  }

  .bingo-cell {
    padding: 3px;
  }

  .bingo-cell-text.text-lg {
    font-size: clamp(11px, 3.2vw, 14px);
  }

  .bingo-cell-text.text-md {
    font-size: clamp(10px, 2.9vw, 13px);
  }

  .bingo-cell-text.text-sm {
    font-size: clamp(9px, 2.55vw, 12px);
  }

  .bingo-cell-text.text-xs {
    font-size: clamp(8px, 2.28vw, 11px);
    line-height: 0.96;
  }

  .free-space-logo {
    width: min(84%, 48px);
    max-height: 66%;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions button {
    width: 100%;
  }

  .player-recent {
    margin-inline: -7px;
    padding: 10px 8px 9px;
  }

  .player-recent .word-chip {
    min-width: 132px;
    min-height: 52px;
    padding: 8px 10px;
  }

  .player-word-chip strong {
    font-size: clamp(16px, 4.8vw, 20px);
  }
}

@media (max-width: 540px) {
  .host-health-grid {
    grid-template-columns: 1fr;
  }
}
