/* Buzzer Bear's shared web shell. Keep game boards, canvases and scoring colors independent. */
:root {
  --ui-glass: linear-gradient(145deg, #ffffff0e, #ffffff04), #101b30e8;
  --ui-hairline: #ffffff1c;
  --ui-muted: #b5c0d3;
  --ui-shadow: 0 24px 70px #02071340, inset 0 1px 0 #ffffff0c;
  --ui-ease: cubic-bezier(.22,.8,.3,1);
}
body, button, input, select { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body { -webkit-font-smoothing: antialiased; }
body.host-setup:not(.theme-skin), body.phone:not(.theme-skin), body.tv:not(.theme-skin), body.beta-page {
  background: radial-gradient(ellipse at 15% 8%, #334a7850, transparent 48%),
    radial-gradient(ellipse at 90% 70%, #36366a35, transparent 50%), #0b1222;
}
/* A quiet navigation layer, distinct from the colorful game artwork. */
.setup-wizard .welcome { max-width:1440px; padding:28px 40px; gap:16px; }
.setup-wizard .wordmark { font-size:22px; letter-spacing:-.6px; font-weight:800; color:#ffe297; }
.setup-wizard .connection-chip, .phone .connection-chip { border:1px solid #ffffff24; border-radius:999px; box-shadow:none; padding:10px 15px; letter-spacing:1px; }
.setup-wizard .connection-chip.is-online, .phone .connection-chip.is-online { background:#a2e7ef0e; color:#b9eced; }
.setup-wizard .connection-chip.is-local, .phone .connection-chip.is-local { background:#ffe0a610; color:#ffe1a1; }
.setup-wizard .landing-game-nav { gap:8px; }
.setup-wizard .smallbtn, .phone .smallbtn, .tv .smallbtn {
  border:1px solid #ffffff24; border-radius:999px; background:#ffffff09; color:#dfe7f5;
  box-shadow:inset 0 1px 0 #ffffff08; font-weight:600;
  transition:background .22s var(--ui-ease), transform .22s var(--ui-ease), border-color .22s;
}
.setup-wizard .landing-game-nav .smallbtn { min-height:44px; padding:10px 17px; font-size:13px; }
.setup-wizard .wizard-progress { gap:4px; align-self:flex-start; border:1px solid #ffffff0f; border-radius:999px; padding:4px; background:#ffffff06; color:var(--ui-muted); }
.setup-wizard .wizard-progress span { padding:9px 16px; border:0; border-radius:999px; }
.setup-wizard .wizard-progress [aria-current=step] { background:#ffffff13; color:#fff0c8; box-shadow:0 2px 8px #0002,inset 0 1px #ffffff13; }
.setup-wizard .setup-layout { gap:60px; }
.setup-wizard .welcome-copy .eyebrow { font-size:11px; font-weight:600; letter-spacing:2px; color:#c4cfdf; }
.setup-wizard .welcome-copy h1 { font-size:clamp(34px,3.5vw,50px); letter-spacing:-2px; line-height:1.08; font-weight:650; }
.setup-wizard .welcome-copy h1 span { color:#ffe2a0; }
.setup-wizard .welcome-copy p { font-size:15px; line-height:1.6; color:var(--ui-muted); }
.setup-wizard .welcome-bear { height:27vh; max-height:270px; filter:drop-shadow(0 18px 30px #02050e50); }
.setup-wizard .theme-preview { border:0; padding:0; gap:5px; }
.setup-wizard .theme-preview strong { font-size:23px; font-weight:650; letter-spacing:-.6px; }
.setup-wizard .theme-preview .eyebrow { color:#c3cfe0; font-size:9px; }
.setup-wizard .welcome-facts { color:var(--ui-muted); gap:20px; font-size:11px; }
.host-setup.setup-wizard .host-panel, .phone .panel, .den-panel, .phone .host-phone-tools, .tv .joinpanel, .tv .playerspanel, .tv .modal {
  border:1px solid var(--ui-hairline); border-radius:30px; background:var(--ui-glass); box-shadow:var(--ui-shadow);
}
.host-setup.setup-wizard .host-panel { padding:28px; }
.setup-wizard .setup-heading { margin-bottom:22px; }
.setup-wizard .setup-heading h2 { font-size:27px; font-weight:650; letter-spacing:-.8px; }
.setup-wizard .setup-beta { padding:6px 9px; border:1px solid #ffffff12; background:#ffffff05; border-radius:999px; font-size:9px; color:#aebbd0; }
/* The selected mode feels like a lifted segment instead of a neon outlined box. */
.host-setup .mode-switch { padding:5px; border:1px solid #ffffff0c; border-radius:24px; gap:5px; background:#03081348; }
.host-setup .mode-switch button { min-height:76px; border:1px solid transparent; border-radius:19px; padding:13px; background:transparent; font-size:16px; font-weight:600; transition:background .24s,box-shadow .24s; }
.host-setup .mode-switch small { font-size:11px; color:#b6c1d4; }
.host-setup .mode-symbol { font-size:24px; color:#b4c6db; }
.host-setup .mode-switch [data-mode=private][aria-pressed=true] { background:linear-gradient(140deg,#38657780,#23445370); border-color:#b7efff35; box-shadow:0 4px 14px #0002,inset 0 1px #ffffff12; }
.host-setup .mode-switch [data-mode=local][aria-pressed=true] { background:linear-gradient(140deg,#765d3480,#493e2c70); border-color:#ffe2a035; box-shadow:0 4px 14px #0002,inset 0 1px #ffffff12; }
.host-setup #mode-description { margin:12px 2px 20px; font-size:12px; color:var(--ui-muted); }
.host-setup.setup-wizard .host-play-choice { border:0; border-radius:0; background:none; padding:0 2px 19px; border-bottom:1px solid #ffffff10; box-shadow:none; }
.host-setup .host-play-choice p { font-size:11px; color:var(--ui-muted); }
.host-setup .host-panel label, .den-panel label:not(.den-player), .phone label { font-weight:600; letter-spacing:.9px; color:#c7d1df; }
.host-setup .play-here-toggle { letter-spacing:0!important; font-size:14px!important; }
.host-setup .play-here-toggle input { appearance:none; -webkit-appearance:none; position:relative; width:40px!important; height:24px!important; min-height:24px; border:1px solid #ffffff30!important; border-radius:999px!important; padding:0!important; background:#4a5567!important; flex:0 0 40px; cursor:pointer; }
.host-setup .play-here-toggle input:after { content:''; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:white; box-shadow:0 2px 4px #0004; transition:transform .2s var(--ui-ease); }
.host-setup .play-here-toggle input:checked { background:#4a927f!important; }
.host-setup .play-here-toggle input:checked:after { transform:translateX(16px); }
.host-setup .host-panel input:not([type=checkbox]), .host-setup .host-options select, .den-panel select, .phone input:not([type=checkbox]) {
  background:#ffffff07; border:1px solid #ffffff25; border-radius:15px; color:#f4f6fc;
  box-shadow:inset 0 1px 2px #0001; transition:border-color .2s,background .2s;
}
.host-setup .host-panel input:not([type=checkbox]), .host-setup .host-options select { min-height:48px; padding:12px 14px; font-size:15px; }
select option { background:#172236; color:#fff; }
.host-setup .password-help, .host-setup .room-limit { color:var(--ui-muted); }
.setup-wizard .chosen-game { border:0; border-radius:20px; background:#ffffff08; padding:16px 18px; box-shadow:inset 0 1px #ffffff0b; }
.setup-wizard .chosen-game strong { font-weight:650; letter-spacing:-.5px; color:#ffe3a6; }
.setup-wizard .chosen-game>span:last-child { color:#c3d2df; }
.setup-wizard .cta, .phone .cta, .tv .cta, .den-panel .cta {
  border:1px solid #fff0bc75; border-radius:999px; background:linear-gradient(120deg,#ffe8ab,#ffd575); color:#252330;
  box-shadow:0 6px 20px #ffc85e10,inset 0 1px #fff9; font-weight:650;
  transition:transform .22s var(--ui-ease),filter .22s,box-shadow .22s;
}
.setup-wizard .cta.secondary, .phone .cta.secondary, .tv .cta.secondary { background:#ffffff0c; color:#ecf1fa; border-color:#ffffff2b; box-shadow:inset 0 1px #ffffff12; }
.setup-wizard .cta.blue, .phone .cta.blue, .tv .cta.blue { background:linear-gradient(120deg,#77d2ff,#80aaff); border-color:#c5e8ff70; color:#10283b; }
.setup-wizard .wizard-actions .cta { min-height:50px; }
.setup-wizard .welcome-footer { border-color:#ffffff0e; color:#a7b4c9; padding:16px 0 0; font-size:11px; }
/* Let the mascots provide the color. Large continuous corners and soft light replace hard frames. */
.setup-wizard[data-setup-step="2"] .host-panel { padding:26px; }
.setup-wizard .avatar-picker { gap:18px; }
.setup-wizard .avatar-choice, .tv .classic-card {
  border:1px solid #ffffff22; border-radius:26px; padding:14px 12px;
  background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--pick-color,var(--game-color,#8ddff0)) 22%,transparent) 0%,transparent 85%),#ffffff05;
  box-shadow:inset 0 1px #ffffff0a,0 8px 25px #0002;
  transition:transform .24s var(--ui-ease),background .24s,box-shadow .24s,border-color .24s;
}
.setup-wizard .avatar-choice img { height:clamp(75px,12vh,145px); filter:drop-shadow(0 7px 8px #0004); }
.setup-wizard .avatar-choice strong, .tv .classic-card strong { color:#f4f5fa; text-transform:none; text-shadow:none; font-weight:650; letter-spacing:-.4px; }
.setup-wizard .avatar-choice>span:not(.mode-tile):not(.sr-only) { color:#c2ccdc; }
.setup-wizard .avatar-choice>small { color:#bfcadd; font-size:11px; }
.setup-wizard .trivia-choice { border:1px solid #ffffff18; border-radius:28px; padding:14px 14px 16px; background:#ffffff04; overflow:hidden; }
.setup-wizard .trivia-choice .mode-tile { max-width:230px; border-radius:24px; box-shadow:0 8px 24px #0003; }
.setup-wizard .trivia-choice>small { padding-top:7px; font-size:13px; }
.setup-wizard .picker-intro { color:#b5c2d6; font-size:14px; }
.setup-wizard .picker-pages { border-radius:999px; gap:8px; }
/* Phone and shared-display shells use the same visual language, without touching game surfaces. */
.phone .brand { letter-spacing:-.6px; font-weight:700; }
.phone h1, .phone h2, .den-heading h1 { font-weight:650; letter-spacing:-.7px; }
.phone .panel, .phone .host-phone-tools { padding:22px; }
.phone .host-phone-tools h2 { font-size:20px; }
.phone .host-phone-crew span, .den-crew span { border:1px solid #ffffff10; background:#ffffff08; border-radius:999px; padding:7px 11px; }
.phone .phone-music-bar .smallbtn { min-height:44px; font-size:12px; padding:10px 13px; }
.phone .answer, .phone .answer-review { border-radius:22px; }
.phone .answer:not(.correct):not(.dim):not(.wrong):not(.selected) { border:1px solid #ffffff26; background:linear-gradient(125deg,#ffffff0c,#ffffff04); box-shadow:inset 0 1px #ffffff0b; }
.phone .letter { border-radius:50%; background:#ffffff12; }
.phone .rank { border-radius:20px; border-width:1px; }
.phone .rank:not(:first-child) { background:#ffffff06; border-color:#ffffff14; }
.den-panel { padding:26px; }
.den-game-trigger, .den-game-choice { border:1px solid #ffffff22; border-radius:19px; background:#ffffff07; padding:12px; }
.den-game-trigger strong, .den-game-choice strong { font-weight:650; }
.den-game-options { border:1px solid #ffffff20; border-radius:22px; background:#111d31; padding:10px; box-shadow:0 16px 35px #0003; }
.den-game-choice[aria-pressed=true] { background:#ffe2a014; border-color:#ffe2a070; }
.den-player { border:1px solid #ffffff1b; border-radius:17px; background:#ffffff05; }
.tv .home-tools .smallbtn, .tv .home-join, .tv .home-tagline { border:1px solid #ffffff30; background:#0d1935c9; box-shadow:var(--ui-shadow); border-radius:999px; }
.tv .home-join { border-radius:28px; }
.tv .mode-tile { border-radius:24px; }
.tv .player { border:1px solid #ffffff25; background:#ffffff07; border-radius:20px; }
.tv .qr { border-radius:18px; box-shadow:0 4px 24px #0002; }
/* Only stationary shell panels get blur; never apply it to the game renderer. */
@supports (backdrop-filter:blur(16px)) {
  .setup-wizard .host-panel, .beta-page .beta-card, .tv .modal { backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
}
@media(hover:hover) {
  .setup-wizard .avatar-choice:hover, .tv .classic-card:hover { transform:translateY(-4px); border-color:#ffffff60; box-shadow:0 14px 32px #0003,inset 0 1px #ffffff25; }
  .setup-wizard .smallbtn:hover, .phone .smallbtn:hover { background:#ffffff15; border-color:#ffffff45; }
  .setup-wizard .cta:hover, .phone .cta:hover { filter:brightness(1.06); transform:translateY(-1px); }
}
.setup-wizard :is(button,a,input,select):focus-visible, .phone :is(.cta,.smallbtn,input,select):focus-visible, .den-panel button:focus-visible { outline:3px solid #b7eaff; outline-offset:4px; }
.tv :is(.cta,.smallbtn,.classic-card,.mode-tile):focus-visible { outline:4px solid #fff0ba; outline-offset:5px; }
.setup-wizard button:active, .phone .cta:active { transform:scale(.985); }
@keyframes surface-arrive { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.setup-wizard [data-step]:not([hidden]) { animation:surface-arrive .32s var(--ui-ease) both; }
/* Beta entrance shares the softer shell. */
.beta-page .beta-card { max-width:460px; border:1px solid #ffffff20; border-radius:36px; background:var(--ui-glass); box-shadow:var(--ui-shadow); padding:30px 36px; }
.beta-page h1 { font-weight:650; letter-spacing:-1.1px; }
.beta-page .eyebrow { color:#e7d7b3; font-weight:600; }
.beta-page input { background:#ffffff06; border:1px solid #ffffff28; border-radius:17px; }
.beta-page button { border-radius:999px; border:1px solid #ffedb76b; box-shadow:inset 0 1px #fff8,0 8px 22px #0002; background:linear-gradient(120deg,#ffe8ab,#ffd575); font-family:inherit; font-weight:650; }
@media(min-width:900px) and (max-height:780px) {
  .setup-wizard .welcome { padding:18px 28px; gap:10px; }
  .setup-wizard .landing-game-nav .smallbtn { min-height:36px; padding:8px 14px; }
  .setup-wizard .wizard-progress span { padding:7px 12px; }
  .setup-wizard .welcome-bear { height:23vh; }
  .host-setup.setup-wizard .host-panel { padding:20px; }
  .setup-wizard .setup-heading { margin-bottom:14px; }
  .host-setup #mode-description { margin-bottom:14px; }
  .host-setup .mode-switch button { min-height:64px; padding:10px; }
  .setup-wizard .avatar-picker { gap:12px; }
  .setup-wizard .avatar-choice { padding:10px; border-radius:22px; }
  .setup-wizard .avatar-choice img { height:10vh; }
  .setup-wizard .trivia-choice .mode-tile { max-width:190px; }
  .setup-wizard .chosen-game { padding:12px 16px; }
  .setup-wizard .welcome-footer { padding-top:12px; }
}
@media(max-width:899px) {
  .setup-wizard .welcome { padding:20px 16px; gap:15px; }
  .setup-wizard .setup-layout { gap:16px; }
  .setup-wizard .welcome-top { gap:12px; }
  .setup-wizard .wordmark { font-size:21px; }
  .setup-wizard .connection-chip { font-size:9px; padding:8px 11px; }
  .setup-wizard .landing-game-nav { flex-wrap:wrap; }
  .setup-wizard .landing-game-nav .smallbtn { font-size:12px; padding:10px 14px; }
  .setup-wizard .wizard-progress { align-self:stretch; justify-content:space-between; gap:0; font-size:10px; }
  .setup-wizard .wizard-progress span { padding:9px 8px; }
  .host-setup.setup-wizard .host-panel { border-radius:26px; padding:22px 18px; }
  .setup-wizard .setup-heading h2 { font-size:24px; }
  .setup-wizard .setup-beta { font-size:8px; padding:5px 7px; letter-spacing:.6px; }
  .host-setup .mode-switch { border-radius:21px; }
  .host-setup .mode-switch button { flex-direction:column; align-items:flex-start; gap:6px; padding:11px 9px; border-radius:16px; font-size:14px; }
  .host-setup .mode-switch small { font-size:10px; line-height:1.5; }
  .host-setup .mode-symbol { font-size:22px; }
  .host-setup.setup-wizard .host-play-choice { padding:0 0 18px; }
  .setup-wizard .host-play-choice #host-name { height:48px; }
  .setup-wizard .avatar-picker { gap:12px; }
  .setup-wizard .avatar-choice { padding:12px 9px; border-radius:23px; }
  .setup-wizard .avatar-choice img { height:120px; }
  .setup-wizard .avatar-choice strong { font-size:17px; }
  .setup-wizard .trivia-choice { padding:8px 8px 12px; }
  .setup-wizard .trivia-choice .mode-tile { border-radius:19px; }
  .setup-wizard .trivia-choice>small { font-size:11px; padding-top:4px; }
  .setup-wizard .wizard-actions { flex-wrap:wrap; }
  .setup-wizard .welcome-footer { line-height:1.6; }
  .phone .panel, .phone .host-phone-tools, .den-panel { border-radius:26px; }
  .beta-page .beta-card { padding:24px; }
}
@media(max-width:360px) {
  .setup-wizard .welcome { padding:16px 12px; }
  .host-setup.setup-wizard .host-panel { padding:20px 13px; }
  .setup-wizard .wizard-progress span { font-size:9px; padding:9px 6px; }
  .setup-wizard .setup-heading h2 { font-size:22px; }
  .setup-wizard .avatar-choice img { height:95px; }
  .setup-wizard .avatar-choice strong { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) {
  .setup-wizard *, .phone .cta, .phone .smallbtn, .tv .classic-card { animation:none!important; transition:none!important; }
  .setup-wizard button:hover, .setup-wizard button:active, .phone .cta:hover, .phone .cta:active, .tv .classic-card:hover { transform:none; }
}
@media(prefers-reduced-transparency:reduce) {
  .host-setup.setup-wizard .host-panel, .phone .panel, .den-panel, .phone .host-phone-tools, .tv .modal, .beta-page .beta-card { background:#142035; backdrop-filter:none; -webkit-backdrop-filter:none; }
}
/* Match the switch's full track to its thumb travel. */
.host-setup .play-here-toggle input { min-width:40px!important; max-width:40px!important; }
.host-setup .play-here-toggle { min-height:44px; }
/* Seasonal color stays visible, but the shell uses the same restrained surface treatment. */
body.host-setup.theme-skin, body.phone.theme-skin, body.tv.theme-skin {
  background:radial-gradient(ellipse at 20% 0%,color-mix(in srgb,var(--theme-glow) 52%,transparent),transparent 70%),var(--theme-deep);
  --ui-glass:linear-gradient(145deg,#ffffff0f,#ffffff03),color-mix(in srgb,var(--theme-panel2) 75%,#142035);
}
.host-setup.theme-skin .landing-game-nav .smallbtn, .host-setup.theme-skin .wizard-actions .smallbtn { background:#ffffff09; border:1px solid #ffffff24; box-shadow:inset 0 1px #ffffff08; }
@media(min-width:900px) {
  .setup-wizard .welcome-footer { margin-top:0; }
}
@media(min-width:900px) and (max-height:780px) {
  .setup-wizard .chosen-game { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; }
  .setup-wizard .chosen-game .eyebrow { display:none; }
  .setup-wizard .chosen-game strong { font-size:22px; }
  .setup-wizard .welcome { gap:8px; }
}
.setup-wizard .chosen-game .eyebrow { font-size:10px; letter-spacing:1.5px; }
@media(min-width:700px) and (max-height:650px) {
  .beta-page .beta-card { max-width:700px; padding:24px 28px 24px 280px; }
}
