/* The secret fever issue: an original pachinko/cursed-energy skin layered on
   top of the existing newspaper system. No character art, logos or anime
   frames — the reference lives in timing, odds, colour and machine language. */

html[data-edition="jackpot"] {
  color-scheme: dark;
  --paper: #14091f;
  --paper-hi: #251238;
  --paper-low: #09040f;
  --ink: #fff5ff;
  --red: #ff38b8;
  --red-type: #ff8ddd;
  --acid: #baff2a;
  --yellow: #ffe858;
  --orange: #9b63ff;
  --rule: rgba(255,245,255,.28);
}

html[data-edition="jackpot"] body {
  background: #09040f;
  color: var(--ink);
}

html[data-edition="jackpot"] body::after {
  content: "";
  position: fixed;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(186,255,42,.12) 5px 6px);
  mix-blend-mode: screen;
  animation: jackpotScan 5s linear infinite;
}

@keyframes jackpotScan { to { transform: translateY(12px); } }

html[data-edition="jackpot"] .masthead,
html[data-edition="jackpot"] .dock {
  background: color-mix(in srgb, #14091f 92%, transparent);
  border-color: #d9b8ff;
  box-shadow: 0 0 22px rgba(155,99,255,.22);
}

html[data-edition="jackpot"] .brand em,
html[data-edition="jackpot"] .focus-label,
html[data-edition="jackpot"] .list-kicker,
html[data-edition="jackpot"] .dossier-type,
html[data-edition="jackpot"] .about-kicker { color: var(--red-type); }

html[data-edition="jackpot"] .live-dot {
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

html[data-edition="jackpot"] .press-plate,
html[data-edition="jackpot"] .theme-toggle,
html[data-edition="jackpot"] .search.open {
  background: #1c0c2b;
  border-color: #d9b8ff;
  box-shadow: 3px 3px 0 #7b3cff, 0 0 18px rgba(186,255,42,.18);
}

html[data-edition="jackpot"] .theme-toggle {
  background: var(--acid);
  color: #160921;
  font: 800 10px var(--mono);
  opacity: 1;
}

html[data-edition="jackpot"] .search-trigger[aria-expanded="true"],
html[data-edition="jackpot"] .search-trigger.has-query { background: var(--acid); color: #160921; }

html[data-edition="jackpot"] .world-view {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,56,184,.3), transparent 24%),
    radial-gradient(circle at 68% 55%, rgba(124,69,255,.36), transparent 38%),
    linear-gradient(#210d34, #0b0512 70%);
}

html[data-edition="jackpot"] .world-view::before {
  opacity: .7;
  background:
    linear-gradient(rgba(186,255,42,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186,255,42,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

html[data-edition="jackpot"] .world-vignette {
  background:
    radial-gradient(circle at 50% 42%, transparent 35%, rgba(9,4,15,.3) 67%, rgba(9,4,15,.9) 100%),
    conic-gradient(from 90deg at 50% 50%, transparent, rgba(255,56,184,.1), transparent 32%, rgba(186,255,42,.08), transparent 70%);
  animation: jackpotAura 4.11s ease-in-out infinite alternate;
}

@keyframes jackpotAura { to { filter: hue-rotate(16deg) saturate(1.25); opacity: .82; } }

html[data-edition="jackpot"] #world-canvas { filter: saturate(1.28) contrast(1.08) drop-shadow(0 0 12px rgba(155,99,255,.2)); }
html[data-edition="jackpot"] .world-intro { background: linear-gradient(90deg, rgba(20,9,31,.96) 0 78%, transparent); }
html[data-edition="jackpot"] .world-intro h1 em { color: var(--acid); text-shadow: 3px 3px 0 #7b3cff; }
html[data-edition="jackpot"] .gesture-coach { background: #0d0615; border: 1px solid var(--acid); color: #fff5ff; box-shadow: 4px 4px 0 #7b3cff; }

html[data-edition="jackpot"] .dock-btn.random .dock-icon,
html[data-edition="jackpot"] .filter-launch-count,
html[data-edition="jackpot"] .active-filter-chip,
html[data-edition="jackpot"] .dossier-outlet.active,
html[data-edition="jackpot"] .map-preview-open { background: var(--acid); color: #160921; }

html[data-edition="jackpot"] .place-row,
html[data-edition="jackpot"] .focus-card,
html[data-edition="jackpot"] .filter-sheet,
html[data-edition="jackpot"] .dossier,
html[data-edition="jackpot"] .map-preview,
html[data-edition="jackpot"] .about-card,
html[data-edition="jackpot"] .about-form,
html[data-edition="jackpot"] .policy-block {
  background: #211033;
  border-color: #d9b8ff;
  box-shadow: 4px 4px 0 #6d35c8;
}

html[data-edition="jackpot"] .place-row:hover { border-color: var(--acid); box-shadow: 5px 5px 0 #6d35c8, 0 0 22px rgba(186,255,42,.14); }
html[data-edition="jackpot"] .leaflet-tile-pane { filter: grayscale(1) invert(.9) sepia(.25) hue-rotate(220deg) brightness(.55) contrast(1.05); }
html[data-edition="jackpot"] .marker-cluster div { background: var(--acid) !important; box-shadow: 3px 3px 0 #7b3cff, 0 0 15px rgba(186,255,42,.35); }

/* Dedicated fever ticker. It owns a band, so it never floats over the city. */
.jackpot-hud[hidden] { display: none; }
.jackpot-hud {
  position: fixed;
  z-index: 98;
  top: var(--masthead-h);
  left: 0;
  right: 0;
  height: 50px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 78px 50px;
  align-items: stretch;
  border-bottom: 1.5px solid #d9b8ff;
  background: #0c0513;
  color: #fff5ff;
  box-shadow: 0 5px 0 #7b3cff, 0 0 28px rgba(255,56,184,.28);
}

.jackpot-hud::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: calc(var(--jackpot-progress, 1) * 100%);
  height: 3px;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
  transition: width .25s linear;
}

.jackpot-hud-mark {
  display: grid;
  place-content: center;
  border-right: 1px solid rgba(255,245,255,.28);
  background: var(--acid);
  color: #160921;
  text-align: center;
  text-transform: uppercase;
}
.jackpot-hud-mark b { font-family: var(--mono); font-size: 15px; line-height: 1; letter-spacing: .02em; }
.jackpot-hud-mark span { margin-top: 5px; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.jackpot-hud-copy { min-width: 0; display: flex; align-items: center; gap: 16px; padding: 0 14px; overflow: hidden; text-transform: uppercase; }
.jackpot-hud-copy strong { flex: none; color: var(--red-type); font-size: var(--t-label); letter-spacing: .12em; }
.jackpot-hud-copy span { white-space: nowrap; font-size: var(--t-micro); font-weight: 800; letter-spacing: .13em; animation: jackpotTicker 12s linear infinite alternate; }
@keyframes jackpotTicker { to { transform: translateX(-70px); } }
.jackpot-clock { display: grid; place-items: center; border-left: 1px solid rgba(255,245,255,.28); color: var(--acid); font-size: 17px; font-weight: 800; letter-spacing: .05em; text-shadow: 0 0 10px rgba(186,255,42,.6); }
.jackpot-end { border: 0; border-left: 1px solid rgba(255,245,255,.28); background: #ff38b8; color: #160921; font-size: 19px; font-weight: 800; }

body.jackpot-active .app-shell { top: calc(var(--masthead-h) + 50px); }
body.jackpot-active.search-open .search.open { top: calc(var(--masthead-h) + 60px); }
body.jackpot-active.search-open .app-shell { top: calc(var(--masthead-h) + 130px); }

/* Domain arrival: an original pair of platform doors opens onto the fever issue. */
.jackpot-burst[hidden] { display: none; }
.jackpot-burst {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  background: #14091f;
  color: #fff5ff;
  pointer-events: none;
}

.domain-door {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 50.4%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55), transparent 13% 85%, rgba(40,35,45,.2)),
    repeating-linear-gradient(0deg, #d9d7dc 0 2px, #aaa7ae 2px 4px);
  box-shadow: inset 0 0 0 3px #6b6870, inset 0 0 38px rgba(27,22,31,.4);
}

.domain-door::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, #29242e, #747079 42%, #2e2932);
  box-shadow: 0 0 0 2px #161219;
}

.domain-door::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  border-top: 4px solid #19151d;
  background: repeating-linear-gradient(135deg, #ffe858 0 15px, #17131b 15px 30px);
}

.domain-door-left { left: 0; border-right: 5px solid #17131b; }
.domain-door-left::before { right: 9%; }
.domain-door-right { right: 0; border-left: 5px solid #17131b; }
.domain-door-right::before { left: 9%; }

.domain-door-window {
  position: absolute;
  top: 18%;
  right: 8%;
  left: 8%;
  min-height: 29%;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 18px;
  border: 8px solid #28232d;
  background:
    linear-gradient(rgba(20,9,31,.15), rgba(20,9,31,.65)),
    repeating-linear-gradient(90deg, #512086 0 24px, #6426a5 24px 26px);
  color: #fff5ff;
  text-align: center;
  box-shadow: inset 0 0 0 2px #c3bec9, inset 0 0 34px #12071d;
}

.domain-door-window span {
  color: var(--acid);
  font-family: var(--serif);
  font-size: clamp(23px, 4vw, 46px);
  line-height: 1;
}

.domain-door-window b {
  max-width: 17ch;
  font-family: var(--mono);
  font-size: clamp(11px, 1.5vw, 17px);
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.domain-door-route {
  position: absolute;
  right: 8%;
  bottom: 20%;
  left: 8%;
  padding: 11px 10px;
  border: 3px solid #28232d;
  background: #f8f2e8;
  color: #17131b;
  font-size: clamp(8px, 1.1vw, 12px);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.domain-station-board {
  position: absolute;
  z-index: 6;
  top: 7%;
  left: 50%;
  width: min(520px, calc(100% - 36px));
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 12px 18px 14px;
  transform: translateX(-50%);
  border: 2px solid #fff5ff;
  background: #0c0513;
  color: #fff5ff;
  text-align: center;
  box-shadow: 5px 5px 0 #7b3cff, 0 0 24px rgba(255,56,184,.5);
}

.domain-station-board span,
.domain-station-board small {
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.domain-station-board span { color: #ff8ddd; }
.domain-station-board b {
  color: var(--acid);
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 50px);
  font-style: italic;
  line-height: .95;
}

.domain-platform-reveal {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(186,255,42,.09) 5px 6px),
    radial-gradient(circle, #7b3cff, #170723 62%);
  opacity: 0;
  text-align: center;
  text-transform: uppercase;
}

.domain-platform-reveal span,
.domain-platform-reveal small { font-size: var(--t-micro); font-weight: 800; letter-spacing: .2em; }
.domain-platform-reveal span { color: #ff8ddd; }
.domain-platform-reveal strong { color: #fff5ff; font-family: var(--serif); font-size: clamp(54px, 13vw, 128px); font-style: italic; line-height: .72; text-shadow: 5px 5px 0 #ff38b8; }
.domain-platform-reveal b { color: var(--acid); font-family: var(--mono); font-size: clamp(30px, 7vw, 66px); letter-spacing: .08em; text-shadow: 0 0 16px rgba(186,255,42,.55); }

.jackpot-burst.show .domain-door-left { animation: domainDoorLeft 3.25s cubic-bezier(.72,0,.18,1) both; }
.jackpot-burst.show .domain-door-right { animation: domainDoorRight 3.25s cubic-bezier(.72,0,.18,1) both; }
.jackpot-burst.show .domain-station-board { animation: domainBoard 3.25s var(--ease) both; }
.jackpot-burst.show .domain-platform-reveal { animation: domainReveal 3.25s var(--ease) both; }

@keyframes domainDoorLeft { 0%, 28% { transform: none; } 72%, 100% { transform: translateX(-103%); } }
@keyframes domainDoorRight { 0%, 28% { transform: none; } 72%, 100% { transform: translateX(103%); } }
@keyframes domainBoard { 0%, 28% { opacity: 1; transform: translateX(-50%); } 42%, 100% { opacity: 0; transform: translate(-50%, -14px); } }
@keyframes domainReveal { 0%, 32% { opacity: 0; } 54%, 82% { opacity: 1; } 100% { opacity: 0; } }

html[data-edition="jackpot"] .slot-marquee { background: linear-gradient(180deg, #a75cff, #742fd1 58%, #35105f); }
html[data-edition="jackpot"] .slot-crown { background: radial-gradient(circle at 50% 92%, rgba(186,255,42,.35), transparent 40%), linear-gradient(180deg, #ff65c8, #8a3be2 60%, #3b155f); box-shadow: inset 0 4px 0 rgba(255,255,255,.25), inset 0 -5px 0 rgba(30,4,49,.5), 0 0 0 4px #9d77c8, 0 0 0 7px #11071a, 0 8px 0 rgba(0,0,0,.45), 0 0 28px rgba(255,56,184,.42); }
html[data-edition="jackpot"] .slot-crown b { color: var(--acid); text-shadow: 2px 2px 0 #3e145f, 0 0 10px rgba(186,255,42,.48); }
html[data-edition="jackpot"] .slot-machine-deck { border-top-color: #d9b8ff; background: linear-gradient(#6f4296, #261535); }
html[data-edition="jackpot"] .slot-hardware { background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 10% 89%, rgba(0,0,0,.3)), linear-gradient(#68458a, #241431); }
html[data-edition="jackpot"] .slot-col-label { color: #ff8ddd; }
html[data-edition="jackpot"] .slot-col[data-reel="2"] .slot-col-label { color: var(--acid); }
html[data-edition="jackpot"] .slot-meter-fill { background: repeating-linear-gradient(90deg, var(--acid) 0 7px, #ff38b8 7px 14px, #9b63ff 14px 21px); }
html[data-edition="jackpot"] .slot-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
html[data-edition="jackpot"] .slot-foot span { min-width: 0; }
html[data-edition="jackpot"] .slot-foot span:last-child { white-space: nowrap; color: var(--acid); }
.lottery-overlay.jackpot-win .slot-shell { box-shadow: 0 0 0 4px var(--acid), 0 0 42px rgba(186,255,42,.65), 12px 14px 0 rgba(8,4,14,.8); }
.lottery-overlay.jackpot-win .slot-marquee { background: var(--acid); color: #160921; }
.lottery-overlay.jackpot-win .slot-pool { background: #ff38b8; }
.lottery-overlay.jackpot-win .slot-status { color: var(--acid); text-shadow: 0 0 10px rgba(186,255,42,.7); }
.lottery-overlay.jackpot-win .slot-name { color: var(--acid); }

/* Middle-layer clue: a secret phrase briefly turns the regular edition into
   a station signal without starting or extending the 04:11 timer. */
body.jackpot-whisper .masthead,
body.jackpot-whisper .dock { animation: whisperSignal 4.11s var(--ease) both; }
body.jackpot-whisper .press-plate,
body.jackpot-whisper .dock-btn.random .dock-icon { animation: whisperLamp .587s steps(2,end) 7; }
body.jackpot-whisper #world-canvas { filter: saturate(1.35) hue-rotate(245deg); transition: filter .4s; }
@keyframes whisperSignal {
  0%, 100% { box-shadow: none; }
  12%, 82% { border-color: #baff2a; box-shadow: 0 0 0 2px #7b3cff, 0 0 24px rgba(255,56,184,.42); }
}
@keyframes whisperLamp { 50% { background: #baff2a; color: #160921; box-shadow: 0 0 15px #baff2a; } }

@media (max-width: 759px) {
  .jackpot-hud { grid-template-columns: 62px minmax(0, 1fr) 64px 44px; }
  .jackpot-hud-copy { padding: 0 9px; }
  .jackpot-hud-copy strong { font-size: var(--t-micro); line-height: 1.2; }
  .jackpot-hud-copy span { display: none; }
  .jackpot-clock { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-edition="jackpot"] body::after,
  html[data-edition="jackpot"] .world-vignette,
  .jackpot-hud-copy span { animation: none !important; }
  .jackpot-burst.show .domain-door,
  .jackpot-burst.show .domain-station-board,
  .jackpot-burst.show .domain-platform-reveal { animation: none !important; }
  .jackpot-burst.show .domain-door,
  .jackpot-burst.show .domain-station-board { display: none; }
  .jackpot-burst.show .domain-platform-reveal { opacity: 1; }
  body.jackpot-whisper .masthead,
  body.jackpot-whisper .dock,
  body.jackpot-whisper .press-plate,
  body.jackpot-whisper .dock-btn.random .dock-icon { animation: none !important; }
}
