:root {
  --navy: #071848;
  --navy-2: #0c2d72;
  --ink: #f4f7ff;
  --muted: #c5d2ee;
  --gold: #ffe14a;
  --gold-deep: #f5b400;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(56, 130, 255, 0.28), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(18, 70, 180, 0.35), transparent 50%),
    linear-gradient(180deg, #082056 0%, #071848 28%, #061433 100%);
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--gold); color: #241c04;
  padding: 8px 12px; border-radius: 8px; z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }
.site-header .topbar { width: min(1560px, calc(100% - 16px)); }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 24, 72, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.topbar { display: flex; align-items: center; gap: 12px; min-height: 78px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  padding-right: 14px; margin-right: 4px; border-right: 1px solid rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}
.logo-mark { width: 46px; height: 46px; }
.brand-hotel { display: block; font-weight: 700; font-size: 15px; line-height: 1; }
.brand-system { display: block; font-weight: 800; font-size: 20px; line-height: 1.05; color: var(--gold); }
.brand-tag { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.2px; color: #d5e2ff; }

.menu-btn {
  display: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: white; border-radius: 10px; padding: 8px 12px; font-weight: 700;
}
.main-nav {
  display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent;
  color: #e8efff; border-radius: 12px; padding: 8px 6px; font-weight: 700; font-size: 13px;
  white-space: nowrap; flex: 0 0 auto;
}
.nav-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); }
.nav-link.active {
  background: linear-gradient(180deg, #4b90ff, #1d4ed8);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
}

.account-link { flex: 0 0 auto; margin-left: 4px; }
.guest-wrap { position: relative; flex: 0 0 auto; }
.guest {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: white; padding: 4px;
}
.guest-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 0; }
.guest-label small { font-size: 11px; color: #c9d6f5; white-space: nowrap; }
.guest-label strong { font-size: 14px; white-space: nowrap; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #9ec8ff, #1d4ed8); color: white;
}
.guest-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px;
  background: #0d2b72; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 40;
}
.guest-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: white;
  border-radius: 8px; padding: 10px 12px; font-weight: 650;
}
.guest-menu button:hover { background: rgba(255, 255, 255, 0.08); }

.hero {
  position: relative; min-height: 312px; margin: 18px 0 20px; border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 22, 72, 0.97) 0%, rgba(6, 26, 82, 0.94) 30%, rgba(6, 30, 90, 0.45) 48%, rgba(6, 30, 90, 0.08) 66%, transparent 80%),
    radial-gradient(380px 150px at 10% 92%, rgba(56, 196, 255, 0.4), transparent 70%),
    url("assets/hero-photo.jpg") right center / cover no-repeat,
    #08245f;
  box-shadow: var(--shadow);
}
.hero-copy { position: relative; z-index: 2; width: min(360px, 42%); padding: 42px 26px 68px; }
.hero h1 { margin: 0; font-weight: 800; letter-spacing: -0.4px; line-height: 1.12; font-size: 28px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.hero .line { display: block; }
.hero .hub { display: block; color: var(--gold); font-size: 40px; line-height: 1.05; margin: 4px 0; }
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 54px; z-index: 3; }

.library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game-card, .feature-card {
  min-height: 300px; border-radius: var(--radius); padding: 14px 14px 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: white;
}
.game-card { border: 0; width: 100%; }
.game-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%);
}
.game-card > * { position: relative; z-index: 1; }
.card-art { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.game-card:hover { transform: translateY(-5px); }
.game-card:active .play-pill { transform: translateY(2px); }
.card-kahoot { background: linear-gradient(165deg, #a45bff 0%, #6d28d9 46%, #3b157f 100%); }
.card-bingo { background: linear-gradient(165deg, #3dce67 0%, #159445 58%, #0c6d34 100%); }
.card-karaoke { background: radial-gradient(circle at 50% 0%, rgba(255, 90, 210, 0.7), transparent 46%), linear-gradient(165deg, #7c2cff, #35106f 72%); }
.card-jeopardy { background: linear-gradient(180deg, #1d5fe0, #0c318c); }
.card-feud { background: radial-gradient(circle at 50% 18%, rgba(255, 214, 80, 0.28), transparent 36%), linear-gradient(180deg, #1c4eae, #091a4a); }
.card-wheel { background: radial-gradient(circle at 50% 42%, rgba(130, 80, 255, 0.45), transparent 42%), linear-gradient(180deg, #2a1868, #120a30); }
.card-whammy { background: linear-gradient(165deg, #ffc14a, #ff7a18 46%, #ef5600); }
.feature-card { background: linear-gradient(180deg, #1850be, #0c318c); align-items: stretch; text-align: left; border: 1px solid rgba(255, 255, 255, 0.14); }
.wordmark { font-family: Fredoka, Outfit, sans-serif; font-weight: 700; font-size: 34px; line-height: 0.95; letter-spacing: 0.2px; }
.wordmark.gold { color: #ffe56a; text-shadow: 0 3px 0 #8a5a00, 0 10px 18px rgba(0, 0, 0, 0.28); }
.wordmark.plain { text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.tag { font-weight: 700; font-size: 13px; }
.play-pill {
  margin-top: auto; min-width: 132px; padding: 9px 16px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22); display: inline-flex; justify-content: center; align-items: center; gap: 6px;
}
.card-kahoot .play-pill { background: linear-gradient(#c084fc, #7c3aed); }
.card-bingo .play-pill { background: linear-gradient(#4ade80, #16a34a); color: #05210f; }
.card-karaoke .play-pill { background: linear-gradient(#fb7185, #e11d78); }
.card-jeopardy .play-pill { background: linear-gradient(#60a5fa, #2563eb); }
.card-feud .play-pill { background: linear-gradient(#fbbf24, #f59e0b); color: #2a2108; }
.card-wheel .play-pill { background: linear-gradient(#a78bfa, #6d28d9); }
.card-wheel .wordmark { font-size: 26px; }
.card-feud .wordmark { font-size: 42px; }
.card-whammy .play-pill { background: linear-gradient(#fb7185, #e11d48); }

.q-marks { align-self: flex-start; font-weight: 800; opacity: 0.55; letter-spacing: 6px; }
.kahoot-art { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; min-height: 118px; }
.mini-grid { display: grid; grid-template-columns: 64px 64px; gap: 8px; }
.swatch { height: 36px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.swatch.red { background: #e21b3c; }
.swatch.blue { background: #1368ce; }
.swatch.yellow { background: #d89e00; }
.swatch.green { background: #26890c; }
.phone {
  width: 54px; height: 86px; border-radius: 10px; border: 3px solid #efeaff; background: #241246;
  display: grid; place-items: center; font-family: Fredoka, sans-serif; font-size: 22px;
}
.bingo-balls { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.bb {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: white;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 3px 0 rgba(0, 0, 0, 0.15);
}
.bb.b { background: #2f6bff; } .bb.i { background: #ff4d4d; } .bb.n { background: #ff4fa3; }
.bb.g { background: #22c55e; color: #05210f; } .bb.o { background: #ffb000; color: #2a2108; }
.mini-card {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: min(180px, 100%);
  background: white; color: #142043; padding: 6px; border-radius: 8px; font-size: 9px; font-weight: 800;
}
.mini-card span { background: #e8eeff; border-radius: 3px; min-height: 16px; display: grid; place-items: center; }
.mini-card .h { background: #5035c9; color: white; }
.mic-art { font-size: 42px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); }
.notes { letter-spacing: 8px; font-size: 20px; color: #ffe56a; }
.j-mini { width: 100%; display: grid; gap: 3px; font-size: 9px; font-weight: 800; }
.j-mini div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.j-mini span { background: rgba(5, 20, 70, 0.35); border-radius: 3px; padding: 4px 0; }
.j-mini .cat { background: rgba(255, 255, 255, 0.14); font-size: 8px; }
.j-mini .amt { color: #ffe56a; }
.mini-wheel {
  width: 132px; height: 132px; border-radius: 50%; border: 7px solid #ffe56a;
  background: conic-gradient(#e23b5a 0 45deg, #ff8a00 45deg 90deg, #241a38 90deg 135deg, #2f6fed 135deg 180deg, #7a3ff0 180deg 225deg, #20b486 225deg 270deg, #f2c14e 270deg 315deg, #ff4fa3 315deg 360deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); position: relative;
}
.mini-wheel::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #101a3a; border: 3px solid #ffe56a;
}
.whammy-mascot { width: 96px; height: 112px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25)); }
.feature-card h2 { margin: 4px 0 8px; font-size: 26px; display: flex; align-items: center; gap: 8px; }
.feature-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.feature-card li { display: flex; gap: 8px; align-items: flex-start; font-weight: 650; font-size: 14px; }
.feature-card .check { width: 18px; height: 18px; border-radius: 50%; background: #3dde7a; color: #05321a; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; padding: 18px 0 28px; }
.play-panel, .host {
  border-radius: 20px; padding: 18px; background: rgba(8, 24, 68, 0.78);
  border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px;
}
.play-kahoot { background: linear-gradient(180deg, rgba(74, 22, 140, 0.95), rgba(16, 10, 48, 0.95)); }
.play-bingo { background: linear-gradient(180deg, rgba(14, 110, 58, 0.95), rgba(6, 40, 28, 0.95)); }
.play-karaoke { background: linear-gradient(180deg, rgba(92, 20, 140, 0.95), rgba(24, 8, 48, 0.96)); }
.play-jeopardy { background: linear-gradient(180deg, rgba(16, 58, 160, 0.96), rgba(6, 20, 64, 0.96)); }
.play-familyfeud { background: linear-gradient(180deg, rgba(18, 52, 140, 0.96), rgba(6, 16, 48, 0.96)); }
.play-wheel { background: linear-gradient(180deg, rgba(46, 24, 110, 0.96), rgba(12, 8, 32, 0.96)); }
.play-whammy { background: linear-gradient(180deg, rgba(180, 78, 10, 0.95), rgba(70, 24, 8, 0.96)); }
.stage-head, .host-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 800; color: #b9c8ef; }
.stage-head h1, .host h2 { margin: 0; font-size: 32px; line-height: 1; }
.host h2 { font-size: 22px; margin-bottom: 8px; }
.lede, .session-line, .muted, .host-note p { color: var(--muted); }
.lede { margin: 8px 0 0; max-width: 62ch; }
.session-line { margin-top: 0; font-size: 13px; }
.status-pill { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.1); }
.status-running { background: #14583a; color: #8ef0c0; }
.status-paused { background: #6a4a12; color: #ffe08a; }
.status-completed { background: #1d4ed8; color: #dbeafe; }

.player-names { display: grid; gap: 6px; max-height: 320px; overflow: auto; margin-top: 4px; }
.player-names .field { margin: 0; font-size: 12px; }
.player-names input { margin-top: 4px; padding: 8px 10px; font-size: 14px; }
.field { display: block; font-size: 13px; margin: 10px 0; color: #d5e0fa; }
.field input, .field select, .inline-form input, .q-card input, .q-card select, .q-cats input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: #071433; color: white; font-size: 16px;
}
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: #31456f; position: relative; flex: 0 0 auto; }
.switch i::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 4px; left: 4px; }
.switch input:checked + i { background: #2f6fed; }
.switch input:checked + i::after { left: 22px; }
.switch input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 3px; }
.host-note { background: rgba(0, 0, 0, 0.22); border-radius: 12px; padding: 12px; margin: 8px 0 14px; }
.host-note strong { color: var(--gold); }
.host-note p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.host-actions { display: grid; gap: 8px; }
.btn {
  border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn svg { width: 16px; height: 16px; }
.btn.gold { background: linear-gradient(#ffe56a, #f5b400); color: #2a2108; }
.btn.blue { background: linear-gradient(#3b82f6, #1d4ed8); color: white; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: white; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; }
.btn.red { background: #9f1239; color: white; }
.btn.green { background: #15803d; color: white; }

.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.answer {
  min-height: 64px; border: 0; border-radius: 12px; color: white; font-weight: 800; text-align: left;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.answer.shape-0 { background: #e21b3c; }
.answer.shape-1 { background: #1368ce; }
.answer.shape-2 { background: #d89e00; }
.answer.shape-3 { background: #26890c; }
.answer.correct { outline: 4px solid white; }
.answer.wrong, .answer.dim { opacity: 0.45; }
.question-card, .prompt-card, .clue-card, .lyric-card {
  background: rgba(0, 0, 0, 0.22); border-radius: 16px; padding: 18px; margin-top: 8px;
}
.question-card h2, .prompt-card h2, .clue-card h2 { margin: 8px 0; font-size: clamp(22px, 3vw, 32px); }
.timer { font-family: Fredoka, sans-serif; font-size: 28px; color: var(--gold); }
.standings { margin-top: 16px; background: rgba(0, 0, 0, 0.22); border-radius: 14px; padding: 12px 14px; }
.standings h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; color: #d5e2ff; }
.standings ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.standings li, .queue-row, .feud-row, .history-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 8px 10px;
}
.podium { text-align: center; padding: 12px 0 4px; }

.bingo-layout, .wheel-layout, .karaoke-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 18px; align-items: center; }
.bingo-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: min(420px, 100%); margin: 0 auto; }
.bingo-head, .bingo-cell {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-weight: 800;
}
.bingo-head { background: #5035c9; }
.bingo-cell { background: white; color: #142043; border: 0; font-size: 16px; }
.bingo-cell.marked { background: #ffe14a; }
.bingo-cell.free { background: #dbe4ff; }
.ball-display {
  width: 140px; height: 140px; margin: 8px auto; border-radius: 50%; display: grid; place-items: center;
  font-family: Fredoka, sans-serif; font-size: 32px; color: #10203f;
  background: radial-gradient(circle at 35% 30%, white, #8fd0ff 28%, #1d6fe0 78%);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.15), 0 10px 24px rgba(0, 0, 0, 0.28);
}
.ball-display.b { background: radial-gradient(circle at 35% 30%, #fff, #8eb6ff 30%, #2457d6); }
.ball-display.i { background: radial-gradient(circle at 35% 30%, #fff, #ffb0b0 30%, #e11d48); color: white; }
.ball-display.n { background: radial-gradient(circle at 35% 30%, #fff, #ffc2e0 30%, #db2777); color: white; }
.ball-display.g { background: radial-gradient(circle at 35% 30%, #fff, #b6f5cb 30%, #16a34a); }
.ball-display.o { background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 30%, #f59e0b); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips span { background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.win-banner { background: #ffe14a; color: #241c04; border-radius: 12px; padding: 10px 12px; font-weight: 800; text-align: center; }

.lyric-card { text-align: center; min-height: 180px; display: grid; align-content: center; gap: 8px; }
.lyric-line { font-family: Fredoka, sans-serif; font-size: clamp(20px, 3vw, 34px); margin: 0; }
.play-karaoke .stage-head h1 { font-size: 19.6px; }
.play-karaoke .stage-head .eyebrow { font-size: 9.8px; letter-spacing: 0.08em; }
.play-karaoke .lede { font-size: 11.76px; line-height: 1.3; margin-top: 3.92px; }
.play-karaoke .session-line { font-size: 11.76px; margin-top: 1.96px; }
.play-karaoke .status-pill { font-size: 11.76px; padding: 5.88px 9.8px; }
.play-karaoke .kp-tab { font-size: 12.74px; padding: 6.86px 11.76px; }
.play-karaoke .lyric-card {
  width: 100%; min-height: 420px; padding: 36px 18px; box-sizing: border-box; gap: 16px;
}
.play-karaoke .lyric-card .eyebrow { font-size: 11.76px; letter-spacing: 0.1em; margin: 0; }
.play-karaoke .lyric-line { font-size: clamp(44px, 5vw, 76px); line-height: 1.12; width: 100%; }
.play-karaoke #lyricCount { font-size: 12.74px; margin: 0; }
.play-karaoke .muted { font-size: 11.76px; }
.play-karaoke .queue-row { font-size: 12.74px; padding: 5.88px 7.84px; }
.play-karaoke .kp-now label { font-size: 10.78px; }
.kp-tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.kp-tab { border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, 0.08); color: white; font-weight: 800; font-size: 13px; }
.kp-tab.on { background: linear-gradient(#3dff8a, #16c964); color: #04210f; }
.kp { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: start; }
.kp-side { max-height: 620px; overflow: auto; background: rgba(0, 0, 0, 0.2); border-radius: 14px; padding: 8px; }
.kp-label { margin: 10px 8px 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9eb0d8; }
.kp-item { width: 100%; display: flex; justify-content: space-between; gap: 8px; align-items: center; border: 0; background: transparent; color: #e8efff; border-radius: 8px; padding: 6px 8px; font-size: 13px; text-align: left; }
.kp-item.on { background: #14613a; }
.kp-item small { color: #b7c6e8; font-size: 11px; }
.kp-new, .kp-search, .kp-now { display: flex; gap: 8px; align-items: center; }
.kp-new { margin: 8px 4px; }
.kp-new input, .kp-search input, .kp-now select { min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: #071433; color: white; font-size: 14px; }
.kp-new input, .kp-search input { flex: 1; }
.kp-yt, .kp-main { background: rgba(0, 0, 0, 0.22); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.kp-yt h2, .kp-main h2 { margin: 0; font-size: 16px; }
.kp-yt-head span, .kp-main-head p, .kp-fine, .kp-note, .kp-empty { color: var(--muted); font-size: 12px; line-height: 1.4; }
.kp-yt-head, .kp-main-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kp-search, .kp-modes { margin-top: 8px; }
.kp-modes { display: flex; gap: 8px; }
.kp-mode { border: 0; border-radius: 999px; padding: 6px 12px; background: #12306d; color: white; font-size: 13px; font-weight: 700; }
.kp-mode.on { background: #2f6fed; }
.kp-results { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.kp-results li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.kp-results small, .kp-table small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.kp-scroll { overflow-x: auto; }
.kp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kp-table th { text-align: left; color: #9eb0d8; font-size: 11px; font-weight: 600; padding: 6px; white-space: nowrap; }
.kp-table td { padding: 7px 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); vertical-align: middle; }
.kp-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.kp-actions .btn, .kp-results .btn, .kp-search .btn, .kp-new .btn, .kp-now .btn { padding: 7px 10px; font-size: 12px; }
.kp-now { align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.kp-now label { font-size: 12px; color: #d5e0fa; flex: 1; min-width: 180px; }
.kp-now select { display: block; width: 100%; margin-top: 4px; }
.kp-player { background: rgba(0, 0, 0, 0.28); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.kp-player .eyebrow { margin: 0 0 8px; }
.kp-frame { position: relative; width: min(936px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; min-height: 220px; background: #000; border-radius: 12px; overflow: hidden; }
.kp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kp-transport { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kp-transport .btn { min-width: 92px; }
.kp-transport .btn.on { outline: 2px solid #ffe56a; }
.kp-switch { margin-top: 8px; font-size: 13px; }
.queue { display: grid; gap: 8px; margin: 12px 0; }
.queue-row.active { outline: 2px solid var(--gold); }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form input { margin-top: 0; }
.inline-form button, .feud-actions button, .judge-row button { flex: 0 0 auto; }

.j-scroll { overflow-x: auto; }
.j-board { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 6px; min-width: 520px; }
.j-cat, .j-tile {
  min-height: 64px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; text-align: center; padding: 6px; font-weight: 800;
}
.j-cat { background: #10265f; font-size: 13px; }
.j-tile { background: #123f9a; color: #ffe56a; font-family: Fredoka, sans-serif; font-size: 22px; }
.j-tile.used { background: #0b1738; color: transparent; pointer-events: none; }
.teams { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; max-height: 168px; overflow: auto; }
.team {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: white;
  border-radius: 12px; padding: 8px 12px; font-weight: 800;
}
.team.active { background: #1d4ed8; border-color: transparent; }
.clue-card { max-width: 720px; margin: 12px auto; text-align: center; }
.judge-row, .feud-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

.feud-board { display: grid; gap: 8px; margin-top: 12px; }
.feud-row { background: linear-gradient(90deg, #123f9a, #0c2a68); min-height: 52px; }
.feud-row b { min-width: 36px; text-align: right; }
.strikes { display: flex; gap: 8px; justify-content: center; margin: 8px 0; }
.strikes i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.strikes i.on { background: #e11d48; border-color: #e11d48; }

.wheel-stack { position: relative; width: min(320px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%; position: relative; border: 8px solid #ffe56a;
  box-shadow: 0 0 0 6px #17306d, 0 16px 40px rgba(0, 0, 0, 0.35);
}
.wheel-disc span {
  position: absolute; inset: 8px; display: flex; justify-content: center; padding-top: 8px;
  font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.pointer {
  position: absolute; left: 50%; top: -4px; transform: translateX(-50%); z-index: 3;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #ffe56a;
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #31498f, #101a3a); border: 4px solid #ffe56a;
}
.wheel-result { font-size: 28px; margin: 8px 0; font-family: Fredoka, sans-serif; }

.whammy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin: 12px auto; }
.box {
  min-height: 96px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, #ff5a4a, #9f1239); color: white; font-weight: 800; font-size: 28px;
}
.box.open { background: #1b2748; border-color: #8ea0cc; font-size: 16px; }
.box.open.bad { background: #7f1d1d; border-color: #fecaca; }
.box.open.good { background: #14532d; border-color: #86efac; }

footer { margin-top: 12px; padding-bottom: 8px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 8px; }
.powered { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #c5d4f5; }
.powered strong { font-size: 16px; color: white; }
.powered em { font-style: normal; color: var(--gold); }
.slogan { margin: 0; font-family: Pacifico, cursive; font-size: clamp(22px, 3vw, 32px); text-align: center; }
.footer-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.legal { text-align: center; color: rgba(255, 255, 255, 0.62); font-size: 11px; padding: 4px 16px 16px; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(12px);
  background: var(--gold); color: #241c04; padding: 12px 16px; border-radius: 12px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: 0.2s ease; z-index: 60; max-width: min(420px, calc(100% - 24px));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.exit-show {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; border: 0; border-radius: 999px;
  background: var(--gold); color: #241c04; font-weight: 800; padding: 12px 16px;
}
dialog {
  border: 0; border-radius: 20px; color: white; background: #0e2260; width: min(520px, calc(100% - 24px));
  padding: 22px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-height: min(860px, calc(100vh - 32px)); overflow: auto;
}
#settingsDialog.with-questions { width: min(760px, calc(100% - 24px)); }
#hotelQuestions { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
#hotelQuestions h2 { margin-bottom: 6px; }
.q-tabs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.q-tab { border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, 0.08); color: white; font-weight: 800; font-size: 13px; }
.q-tab.on { background: linear-gradient(#ffe56a, #f5b400); color: #2a2108; }
.q-scroll { display: grid; gap: 8px; }
.q-card { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.q-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-card label, .q-cats label { display: grid; gap: 4px; font-size: 13px; color: #d5e0fa; }
.q-cats { display: grid; gap: 8px; }
.q-answer { display: grid; grid-template-columns: 1.4fr 0.55fr 1fr; gap: 8px; }
@media (max-width: 700px) { .q-answer { grid-template-columns: 1fr; } }
dialog::backdrop { background: rgba(2, 8, 24, 0.72); }
#historyDialog { width: min(680px, calc(100% - 24px)); }
dialog h2 { margin: 0 0 8px; }
dialog ol { margin: 0 0 12px; padding-left: 18px; }
dialog li { margin: 8px 0; }
.checkline { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.history-item { margin: 8px 0; align-items: flex-start; }
.history-item div { display: grid; gap: 2px; }
.history-item small { color: var(--muted); }
.empty { color: var(--muted); }

.corner-palm { display: none; }

@media (max-width: 1320px) {
  .nav-link { padding: 7px 4px; font-size: 12px; gap: 3px; }
  .brand { gap: 6px; padding-right: 8px; }
  .logo-mark { width: 40px; height: 40px; }
}
@media (max-width: 1100px) {
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tag { display: none; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    background: #071a4f; padding: 10px; border-bottom: 1px solid var(--line); z-index: 35;
  }
  .main-nav.open { display: flex; }
  .site-header { position: sticky; }
  .topbar { position: relative; }
  .brand { border-right: 0; }
}
@media (max-width: 800px) {
  .hero { min-height: 250px; background-position: 72% center; }
  .hero-copy { width: min(280px, 70%); padding: 24px 16px 58px; }
  .hero h1, .hero .line { font-size: 22px; }
  .hero .hub { font-size: 32px; }
  .game-layout, .bingo-layout, .wheel-layout, .karaoke-layout, .footer-inner, .kp { grid-template-columns: 1fr; }
  .kp-side { max-height: 220px; }
  .footer-actions, .powered { justify-content: center; }
  .powered { align-items: center; }
  .guest-label { display: none; }
  .answer-grid { grid-template-columns: 1fr; }
  .play-panel, .host { min-height: 0; }
}
@media (max-width: 640px) {
  .library { grid-template-columns: 1fr; }
  .corner-palm { display: none; }
  .inline-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .game-card:hover { transform: none; }
}
body.presentation footer,
body.presentation .host,
body.presentation .corner-palm { display: none; }
body.presentation .game-layout { grid-template-columns: 1fr; }
body.presentation .play-panel { min-height: calc(100vh - 140px); }
body.presentation .play-karaoke .lyric-card { min-height: 0; padding: 24px 18px; }
body.presentation .lyric-line { font-size: clamp(56px, 6.5vw, 92px); }

body.signed-out .site-header,
body.signed-out main,
body.signed-out footer,
body.signed-out .exit-show { display: none !important; }
body.authed:not(.can-host) .host-actions { display: none; }
body.authed:not(.can-present) [data-action="toggle-presentation"] { display: none; }
body.authed:not(.can-export) [data-action="export"],
body.authed:not(.can-export) [data-action="save"],
body.authed:not(.can-export) [data-action="open-history"] { display: none; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.gate-card {
  width: min(440px, 100%);
  background: rgba(7, 24, 72, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
}
.gate-brand { margin-bottom: 8px; }
.gate-card h1 { margin: 8px 0 6px; font-family: Fredoka, Outfit, sans-serif; font-size: 34px; }
.gate-card .btn { width: 100%; margin-top: 8px; }
.text-link {
  display: block; width: 100%; margin-top: 12px; padding: 8px 0; border: 0; background: none;
  color: var(--gold); font-weight: 700; text-align: center;
}
.form-error { min-height: 1.2em; color: #ffb4b4; font-size: 14px; margin: 6px 0; }
.setup-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.setup-note summary { cursor: pointer; color: var(--gold); }
.setup-note p { margin: 8px 0; line-height: 1.4; }

#accountView.wrap { width: min(1480px, calc(100% - 24px)); }
.account-view { padding: 18px 0 40px; }
.um-page h1, .um-page h2 { font-family: Outfit, sans-serif; }
.um-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.um-titlebar h1 { margin: 0; font-size: 28px; }
.um-back, .um-create {
  border: 0; border-radius: 999px; background: linear-gradient(#3dff8a, #16c964); color: #04210f;
  font-weight: 800; padding: 10px 16px; cursor: pointer;
}
.um-create { width: 100%; margin-top: 8px; }
.um-intro, .um-card {
  background: rgba(6, 22, 58, 0.88);
  border: 1px solid rgba(120, 170, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.um-intro { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.um-intro h2 { margin: 0 0 6px; }
.um-intro p, .um-card .muted { margin: 0; }
.um-stats { display: flex; gap: 8px; align-items: stretch; }
.um-stats span, .um-pill {
  min-width: 86px; border: 1px solid rgba(120, 170, 255, 0.2); border-radius: 12px;
  padding: 8px 10px; text-align: center; background: rgba(0, 0, 0, 0.18);
}
.um-stats b, .um-stats small { display: block; }
.um-stats small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.um-pill { display: grid; place-items: center; color: #9eb6ff; font-size: 13px; white-space: nowrap; padding-inline: 14px; }
.um-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 14px; align-items: start; }
@media (max-width: 1400px) {
  .um-layout { grid-template-columns: 1fr; }
}
.um-layout > * { min-width: 0; }
.um-scroll { overflow-x: auto; max-width: 100%; }
.um-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.um-table th { text-align: left; color: #9eb0d8; font-size: 13px; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
.um-table td { padding: 12px 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); vertical-align: middle; }
.um-properties { min-width: 640px; }
.um-properties td:first-child { white-space: nowrap; }
.um-properties td:last-child { white-space: nowrap; }
.um-people { width: 100%; min-width: 920px; }
.um-people tbody tr { cursor: pointer; }
.um-people tr.um-selected td { background: rgba(255, 210, 58, 0.14); }
.um-people td:nth-child(2),
.um-people td:nth-child(4),
.um-people td:nth-child(6) { white-space: nowrap; }
.um-engine, .um-filter-row { display: flex; gap: 8px; align-items: center; }
.um-engine { flex-wrap: nowrap; }
.um-engine .btn { flex: 0 0 auto; padding: 8px 14px; }
.um-filters { display: grid; gap: 8px; }
.um-filter-row { flex-wrap: wrap; }
.um-engine input, .um-people input[type="number"] {
  width: 72px; padding: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: #071433; color: white;
}
.um-people select { width: 190px; min-width: 190px; padding: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: #071433; color: white; }
.um-register { display: grid; gap: 8px; margin-top: 14px; }
.um-register input, .um-filters input, .um-filters select, .stack-form input, .stack-form select {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: #071433; color: white; box-sizing: border-box;
}
.um-search { width: 100%; }
.um-filter-row select { width: auto; min-width: 160px; flex: 0 0 auto; }
.um-person { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.um-session .um-person { width: 100%; }
.um-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1 1 auto; }
.um-id b, .um-id small { display: block; max-width: 100%; line-height: 1.25; }
.um-id b { white-space: nowrap; font-size: 14px; }
.um-id small { overflow-wrap: anywhere; }
.um-person small { color: var(--muted); font-weight: 500; }
.um-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: #12306d; color: var(--gold); font-weight: 800;
}
.um-tools { margin-left: 8px; flex: 0 0 auto; }
.um-tools button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #d5e2ff; font-size: 16px; }
.um-online { color: #3dff8a; font-weight: 700; white-space: nowrap; }
.um-session .um-online { display: block; white-space: normal; line-height: 1.4; margin: 10px 0; }
.um-status { font-size: 13px; }
.um-status.active { color: #3dff8a; }
.um-status.invited { color: #ffd56a; }
.um-status.disabled { color: #ff8d8d; }
.um-session { border-color: rgba(61, 255, 138, 0.45); }
.um-remove { color: #ffb4b4; }
@media (max-width: 980px) {
  .um-layout, .um-intro { grid-template-columns: 1fr; display: grid; }
  .um-stats { flex-wrap: wrap; }
  .um-id b { white-space: normal; overflow-wrap: anywhere; }
}
.account-view h1 { margin: 0 0 6px; font-family: Fredoka, Outfit, sans-serif; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.account-card {
  background: rgba(8, 28, 78, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 16px 8px;
  margin: 14px 0;
}
.account-card h2, .account-card h3 { margin: 6px 0; }
.stack-form label { display: block; margin: 10px 0; font-size: 13px; color: #d5e0fa; }
.stack-form input, .stack-form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: #071433; color: white; font-size: 16px;
}
.stack-form .btn { margin: 8px 0 12px; }
.account-flash {
  background: rgba(255, 225, 74, 0.16);
  border: 1px solid rgba(255, 225, 74, 0.4);
  color: var(--gold);
  border-radius: 12px;
  padding: 10px 12px;
}
.people-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.people-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.people-list small { display: block; color: var(--muted); }
.group-list { display: grid; gap: 12px; }
.group-list article { background: rgba(0, 0, 0, 0.18); border-radius: 14px; padding: 12px; }
.group-list ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); }
.rule-list { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mail-item { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 0; }
.mail-item pre { white-space: pre-wrap; font-family: inherit; color: #dce6ff; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.phone-live {
  background: #04102e;
  border: 8px solid #d7deee;
  border-radius: 28px;
  min-height: 220px;
  padding: 16px 14px;
}
.phone-top { color: #8dffa8; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.phone-live h3 { margin: 18px 0 6px; font-size: 22px; }
