:root { --cyan: #29f8ff; --pink: #ff4fd8; --panel: rgba(7,20,32,.92); --muted: #9edce7; }
body { margin: 0; min-height: 100vh; font-family: Inter, Segoe UI, Arial, sans-serif; color: #e8fbff; background: radial-gradient(circle at 78% 8%, rgba(41,248,255,.18), transparent 38%), linear-gradient(135deg, #06131f, #081827 55%, #080d16); }
body.loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(circle at 50% 28%, rgba(41,248,255,.22), transparent 34%), linear-gradient(135deg, #040b13, #071827 58%, #070a12); transition: opacity .55s ease, visibility .55s ease; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-card { width: min(600px, 88vw); border: 1px solid rgba(41,248,255,.38); border-radius: 30px; padding: 34px 30px 30px; background: rgba(7,20,32,.82); box-shadow: 0 24px 100px rgba(0,0,0,.55), 0 0 80px rgba(41,248,255,.14); text-align: center; position: relative; overflow: hidden; }
.loader-inner { position: relative; z-index: 1; }
.loader-stage { position: relative; width: 156px; height: 156px; margin: 0 auto 18px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(41,248,255,.32); box-shadow: inset 0 0 30px rgba(41,248,255,.18), 0 0 46px rgba(41,248,255,.18); animation: logoRing 2.4s ease-in-out infinite; }
.loader-ring:nth-child(2) { inset: 15px; border-color: rgba(255,79,216,.30); animation-delay: .25s; }
.loader-sweep { position: absolute; width: 220px; height: 34px; transform: rotate(-28deg) translateX(-120%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent); filter: blur(8px); animation: logoSweep 2.8s ease-in-out infinite; }
.loader-logo { width: 104px; height: 104px; border-radius: 28px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 0 22px rgba(41,248,255,.70)) drop-shadow(0 0 44px rgba(255,79,216,.28)); animation: logoBoot 1.35s cubic-bezier(.2,.8,.2,1) both, logoFloat 2.4s ease-in-out 1.35s infinite; }
.loader h1 { font-size: clamp(30px, 6vw, 58px); margin: 0 0 8px; letter-spacing: -.05em; }
.loader p { color: #9edce7; margin-bottom: 20px; }
.loader-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(41,248,255,.22); }
.loader-bar span { display: block; height: 100%; width: 42%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--cyan)); animation: loaderSlide 1.25s ease-in-out infinite; }
.loader-foot { margin-top: 14px; font-size: 12px; color: #7dcdd8; }
@keyframes logoBoot { 0% { opacity: 0; transform: scale(.28) rotate(-8deg); filter: blur(10px) drop-shadow(0 0 0 rgba(41,248,255,0)); } 58% { opacity: 1; transform: scale(1.12) rotate(1deg); filter: blur(0) drop-shadow(0 0 36px rgba(41,248,255,.85)); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.025); } }
@keyframes logoRing { 0%, 100% { transform: scale(.86); opacity: .45; } 50% { transform: scale(1.08); opacity: .95; } }
@keyframes logoSweep { 0% { transform: rotate(-28deg) translateX(-130%); opacity: 0; } 28% { opacity: .9; } 55% { transform: rotate(-28deg) translateX(130%); opacity: 0; } 100% { transform: rotate(-28deg) translateX(130%); opacity: 0; } }
@keyframes loaderSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes sectionIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes panelChildIn { to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
main { width: min(1480px, 97vw); margin: 0 auto; padding: 22px 0 44px; }
.scroll-cue { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 120; display: inline-flex; align-items: center; gap: 10px; width: auto; max-width: calc(100vw - 28px); padding: 11px 15px; border-radius: 999px; border: 1px solid rgba(41,248,255,.42); background: rgba(4,13,22,.88); color: #e8fbff; box-shadow: 0 14px 42px rgba(0,0,0,.44), 0 0 26px rgba(41,248,255,.16); transform: translateX(-50%) translateY(18px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, transform .28s ease, visibility .28s ease, border-color .18s ease; backdrop-filter: blur(12px); }
.scroll-cue.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.scroll-cue span { white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.scroll-cue b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, rgba(41,248,255,.24), rgba(255,79,216,.18)); color: #ffffff; animation: cueBounce 1.25s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--cyan); box-shadow: 0 14px 46px rgba(0,0,0,.48), 0 0 34px rgba(41,248,255,.24); }
@keyframes cueBounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
.archive-hero { margin: 0 0 22px; padding: 6px 4px 0; }
.archive-hero, .season-panel { opacity: 0; transform: translateY(18px); filter: blur(8px); }
body.booted .archive-hero { animation: sectionIn .72s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .08s; }
body.booted .season-panel.in-view { animation: sectionIn .72s cubic-bezier(.2,.8,.2,1) forwards; }
.season-panel .hero > div,
.season-panel .chart,
.season-panel .side-panel,
.season-panel .pie-legend,
.season-panel .hint { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(8px); }
body.booted .season-panel.in-view .hero > div:nth-child(1) { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .10s; }
body.booted .season-panel.in-view .hero > div:nth-child(2) { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .20s; }
body.booted .season-panel.in-view .chart { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .32s; }
body.booted .season-panel.in-view .side-panel { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .44s; }
body.booted .season-panel.in-view .pie-legend { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .56s; }
body.booted .season-panel.in-view .hint { animation: panelChildIn .62s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .68s; }
.archive-hero h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 78px); letter-spacing: -0.05em; }
.archive-hero p { max-width: 980px; }
.season-panel { border: 1px solid rgba(41,248,255,.30); background: var(--panel); border-radius: 18px; padding: clamp(14px, 2vw, 22px); box-shadow: 0 18px 70px rgba(0,0,0,.46); margin-bottom: 28px; }
.hero { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 18px; align-items: end; margin-bottom: 14px; }
h1 { margin: 0 0 6px; font-size: clamp(28px, 4.6vw, 58px); letter-spacing: -0.04em; }
p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.season-window { color: #8edfe8; font-size: 14px; margin-top: 6px; }
.controls { display: grid; gap: 10px; }
label { color: #bdf7ff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
input, button, select { width: 100%; box-sizing: border-box; border-radius: 14px; border: 1px solid rgba(41,248,255,.35); background: rgba(5,14,24,.86); color: #e8fbff; padding: 11px 12px; font: inherit; }
button { cursor: pointer; background: linear-gradient(135deg, rgba(41,248,255,.2), rgba(255,79,216,.16)); }
button:hover, input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 22px rgba(41,248,255,.16); }
.viz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(520px, 620px); gap: 14px; align-items: stretch; }
.chart { position: relative; height: 720px; border: 1px solid rgba(41,248,255,.18); border-radius: 14px; overflow: hidden; background: rgba(4,13,22,.74); }
.plot { height: 720px; min-height: 720px; }
.chart .plotly-graph-div { height: 720px !important; min-height: 720px !important; }
.timeline-tooltip { display: none; position: absolute; z-index: 30; max-width: 280px; border: 1px solid var(--cyan); background: rgba(3,14,24,.94); color: #e8fbff; box-shadow: 0 12px 36px rgba(0,0,0,.45); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.35; pointer-events: none; white-space: normal; }
.timeline-tooltip strong { color: #ffffff; }
.timeline-tooltip .muted { color: #8edfe8; }
.pie-tooltip { display: none; position: absolute; z-index: 30; max-width: 260px; border: 1px solid var(--cyan); background: rgba(3,14,24,.94); color: #e8fbff; box-shadow: 0 12px 36px rgba(0,0,0,.45); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.35; pointer-events: none; white-space: normal; }
.pie-tooltip strong { color: #ffffff; }
.pie-tooltip .muted { color: #8edfe8; }
.cursor-line { display: none; position: absolute; z-index: 20; width: 1px; background: rgba(255,255,255,.72); box-shadow: 0 0 10px rgba(41,248,255,.55); pointer-events: none; }
.side-panel { position: relative; height: 720px; border: 1px solid rgba(41,248,255,.18); border-radius: 14px; background: rgba(4,13,22,.74); display: grid; grid-template-rows: auto 300px minmax(0, 1fr) auto; overflow: hidden; }
.side-head { padding: 14px 16px 4px; }
.side-head h2 { margin: 0; font-size: 18px; }
.side-head p { font-size: 13px; margin-top: 4px; }
.side-head .timeline-hover { color: #e8fbff; font-weight: 700; white-space: pre-line; }
.side-head .pie-hover { color: #e8fbff; font-weight: 700; }
.pie { height: 300px; padding: 0 8px 4px; }
.pie .plotly-graph-div { height: 100% !important; }
.pie-legend { min-height: 0; overflow: auto; scrollbar-gutter: stable; display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin: 0 10px 8px; padding: 8px 8px; color: #d8fbff; font-size: 13px; line-height: 1.25; text-align: left; border: 1px solid rgba(41,248,255,.18); border-radius: 14px; background: rgba(4,13,22,.74); }
.pie-legend .legend-row { display: block; width: 100%; box-sizing: border-box; white-space: nowrap; overflow: visible; text-overflow: initial; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.035); cursor: pointer; text-align: left; }
.pie-legend .legend-row:hover { background: rgba(41,248,255,.12); color: #ffffff; }
.pie-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.play-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(41,248,255,.12); background: rgba(4,13,22,.92); }
.hint { margin-top: 10px; font-size: 13px; color: #7dcdd8; }
@media (prefers-reduced-motion: reduce) { .archive-hero, .season-panel, .season-panel .hero > div, .season-panel .chart, .season-panel .side-panel, .season-panel .pie-legend, .season-panel .hint, .loader-logo, .loader-ring, .loader-sweep, .loader-bar span, .scroll-cue b { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; } }
@media (max-width: 980px) { .viz-grid { grid-template-columns: 1fr; } .side-panel { height: 640px; } }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .chart { height: 560px; } .plot { height: 560px; min-height: 560px; } .chart .plotly-graph-div { height: 560px !important; min-height: 560px !important; } }
