/* =====================================================================
   Control-room theme: depth, texture and glow layered over each page's
   base styles. Loaded last on every page so it wins ties.
   ===================================================================== */

:root{
  --glass: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 40%, rgba(255,255,255,.008));
  --glass-solid: rgba(15,18,16,.78);
  --edge: rgba(255,255,255,.08);
  --edge-strong: rgba(255,255,255,.14);
  --glow-accent: 0 0 0 1px rgba(232,255,58,.4), 0 10px 30px -8px rgba(232,255,58,.45);
}

/* ---- the room: faded newsprint and halftone, light from above, vignette, film grain ---- */
html{background:#070908}
body{
  background:
    radial-gradient(ellipse 620px 430px at 50% 300px, rgba(9,11,10,.9), rgba(9,11,10,.55) 55%, transparent 80%),
    radial-gradient(1100px 520px at 50% -12%, rgba(232,255,58,.075), transparent 62%),
    radial-gradient(800px 480px at 105% 8%, rgba(79,209,197,.06), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgba(213,140,255,.045), transparent 60%),
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px) 0 0 / 7px 7px,
    url("/newsprint.svg?v=9bc1ba59") 0 0 / 1200px 900px,
    #090b0a;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}
body::before{ /* film grain */
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.07; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after{ /* vignette */
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.6) 100%);
}
main, footer, header, .topnav, .top, section, aside{position:relative; z-index:1}
.topnav, .top{z-index:20}

/* ---- glass top bars ---- */
.topnav, .top{
  background:rgba(9,11,10,.7) !important;
  backdrop-filter:blur(12px) saturate(140%); -webkit-backdrop-filter:blur(12px) saturate(140%);
  border-bottom:1px solid var(--edge) !important;
  box-shadow:0 1px 0 rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.8);
}

/* ---- glass panels ---- */
.panel, .w, .win, .board, .pcard, .bignews{
  background:var(--glass), var(--glass-solid) !important;
  border-color:var(--edge) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.012), 0 26px 50px -26px rgba(0,0,0,.85);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  position:relative;
}
/* a thin rule across the top of each panel, like a newspaper column head */
.panel, .w, .win, .board{border-top:2px solid rgba(255,255,255,.16) !important}

.bignews.has-big{border-color:rgba(255,77,77,.5) !important; box-shadow:0 0 0 1px rgba(255,77,77,.2), 0 0 40px -10px rgba(255,77,77,.45), 0 26px 50px -26px rgba(0,0,0,.85)}
.pcard:hover, .tile:hover{border-color:var(--edge-strong) !important}

/* inner cards: darker glass so they read as screens inside the panel */
.receipt, .it:hover{ }
.receipt{
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)), rgba(6,8,7,.72) !important;
  border-color:var(--edge) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.tile{
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)), rgba(6,8,7,.72);
  border-top-color:var(--edge); border-right-color:var(--edge); border-bottom-color:var(--edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.tile.major{box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 0 26px -8px rgba(255,77,77,.5)}
.tile.degraded, .tile.spiking{box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 0 22px -10px rgba(255,176,32,.45)}

/* ---- the big answer: lit from above, soft glow, scanlines ---- */
.hero{position:relative}
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
  -webkit-mask-image:radial-gradient(ellipse 60% 55% at 50% 42%, #000 35%, transparent 80%);
          mask-image:radial-gradient(ellipse 60% 55% at 50% 42%, #000 35%, transparent 80%);
}
.answer{
  background:linear-gradient(180deg, #ffffff 0%, #eef2ee 45%, #a8b1aa 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent !important;
  filter:drop-shadow(0 14px 30px rgba(0,0,0,.75));
}
body.yes .answer{background:linear-gradient(180deg, #ff9a9a 0%, #ff4d4d 55%, #b71f1f 100%); -webkit-background-clip:text; background-clip:text;
  filter:drop-shadow(0 0 40px rgba(255,77,77,.35)) drop-shadow(0 14px 34px rgba(0,0,0,.7))}
body.maybe .answer{background:linear-gradient(180deg, #ffd27a 0%, #ffb020 55%, #b97a00 100%); -webkit-background-clip:text; background-clip:text}


/* ---- buttons & live indicators glow ---- */
.btn.primary, .links a.cta, .nav a.cta{box-shadow:var(--glow-accent)}
.btn.primary:hover, .links a.cta:hover, .nav a.cta:hover{box-shadow:0 0 0 1px rgba(232,255,58,.6), 0 12px 36px -6px rgba(232,255,58,.6)}
.btn.room{box-shadow:inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 30px -14px rgba(255,77,77,.5)}
.live-dot, .rec i, .bn-head.big .bn-dot{box-shadow:0 0 10px rgba(255,77,77,.85)}
.dot.none, .tile-state i{box-shadow:0 0 8px currentColor}

/* ---- news-style section heads (condensed bold, thin rule) and serif headlines ---- */
.label, .sec-title, .w h2, .win-title, .bn-head{
  font-family:"Barlow Condensed", "Arial Narrow", sans-serif !important;
  font-weight:700 !important; font-size:15px !important; letter-spacing:.05em !important; text-transform:uppercase;
}
.label, .w h2{color:#c9cfca !important; padding-bottom:9px; border-bottom:1px solid var(--edge); margin-bottom:14px !important}
.label > span + span, .w h2 > span + span, .sec-title .sec-sub, .sec-title .sec-link, .bn-sub{
  font-family:var(--sans) !important; font-weight:400 !important; font-size:12px !important; letter-spacing:0 !important; text-transform:none !important; color:var(--muted) !important;
}
.sec-title{color:#c9cfca !important; border-bottom:2px solid rgba(255,255,255,.16); padding-bottom:8px}
.sec-title .sec-link{color:var(--accent) !important}
.kicker{font-family:"Barlow Condensed", "Arial Narrow", sans-serif !important; font-weight:600; font-size:15px !important; letter-spacing:.08em !important}
h1:not(.answer), .vote-q, .board-title, .news h3, .c-claim, .cd-head h3{
  font-family:"Source Serif 4", Georgia, "Times New Roman", serif !important; font-weight:700 !important; letter-spacing:-.01em !important;
}
.c-claim{font-size:22px !important; line-height:1.15 !important}
.stat .n, .st .n, .count{text-shadow:none}

/* ---- inputs ---- */
input, textarea{box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
input:focus, textarea:focus{box-shadow:0 0 0 3px rgba(232,255,58,.12), inset 0 1px 2px rgba(0,0,0,.5)}

/* ---- stamps get a little ink texture ---- */
.stamp{text-shadow:0 0 1px currentColor; filter:drop-shadow(0 0 10px rgba(255,77,77,.25))}
.stamp.happened{filter:drop-shadow(0 0 10px rgba(61,220,132,.25))}

@media (prefers-reduced-motion:reduce){ .live-dot, .rec i{animation:none} }
@media (max-width:640px){ body{background-attachment:scroll} .panel, .w, .win, .board, .pcard, .bignews{backdrop-filter:none; -webkit-backdrop-filter:none} }
