:root {
  color-scheme: dark;
  --bg: #080b16;
  --panel: rgba(17, 23, 43, .78);
  --panel-border: rgba(166, 184, 255, .13);
  --text: #f4f6ff;
  --muted: #8992ad;
  --muted-2: #626d8a;
  --violet: #9a86ff;
  --cyan: #77d9e8;
  --mint: #a8f0d0;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Space Grotesk", "Manrope", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 62, 132, .24), transparent 44%),
    linear-gradient(180deg, #090c19 0%, #080b16 58%, #0a0d1b 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
.ambient {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(100px); opacity: .14; pointer-events: none; z-index: 0;
}
.ambient--one { background: #6150d9; top: 100px; left: -300px; }
.ambient--two { background: #1c9eae; top: 360px; right: -360px; opacity: .1; }
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .15;
  background-image: linear-gradient(rgba(160,175,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(160,175,230,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.topbar, .page-shell, .footer { position: relative; z-index: 1; }
.topbar {
  width: min(1160px, calc(100% - 64px)); height: 82px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(174,187,240,.1);
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: #e8eaff; text-decoration: none; font: 700 11px var(--display); letter-spacing: .16em; }
.brand-muted { color: #8d96b5; margin-left: 5px; }
.brand-mark { width: 26px; height: 26px; border: 1px solid rgba(160,145,255,.55); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-8deg); }
.brand-mark span { width: 3px; border-radius: 5px; background: linear-gradient(#b5a6ff, #6bd7e4); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 10px; }
.topbar-right { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.live-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8ce6be; box-shadow: 0 0 12px rgba(140,230,190,.8); }
.year-chip { padding: 7px 10px; border: 1px solid rgba(154,134,255,.28); color: #b9adff; border-radius: 7px; font: 700 11px var(--display); letter-spacing: .08em; }
.page-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.hero { padding: 88px 0 54px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #a9a3d6; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.eyebrow-line { width: 22px; height: 1px; background: linear-gradient(90deg, transparent, #9b8aff); }
h1 { margin: 23px 0 13px; font: 700 clamp(48px, 7vw, 88px)/1.02 var(--display); letter-spacing: -.065em; }
h1 span { color: transparent; background: linear-gradient(100deg, #c5b9ff 8%, #8ddce9 58%, #a5f0d0 100%); background-clip: text; -webkit-background-clip: text; }
.hero-copy { margin: 0 auto; color: #9ba4c0; font-size: 16px; line-height: 1.75; max-width: 560px; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.2vw, 25px); margin: 39px auto 23px; }
.time-unit { min-width: clamp(57px, 9vw, 105px); }
.time-value { color: #f4f5ff; font: 600 clamp(44px, 6.4vw, 76px)/1 var(--display); letter-spacing: -.07em; font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(154,134,255,.18); }
.time-label { margin-top: 12px; color: #687391; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.time-separator { padding-top: 4px; color: #655e98; font: 500 clamp(30px, 5vw, 52px)/1 var(--display); opacity: .65; }
.hero-bottom { display: flex; align-items: center; justify-content: center; gap: 22px; }
.timezone-note { color: #6e7895; font-size: 10px; }
.mini-spark { color: #b9aaff; margin-right: 5px; }
.hero-line { width: 36px; height: 1px; background: rgba(156,146,220,.28); }
.dashboard { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; }
.panel {
  position: relative; overflow: hidden; padding: 28px 30px;
  background: linear-gradient(145deg, rgba(23,29,53,.88), rgba(14,19,36,.82));
  border: 1px solid var(--panel-border); border-radius: 17px;
  box-shadow: 0 18px 55px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(16px);
}
.panel-heading, .visitors-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-kicker { margin-bottom: 8px; color: #8c91b8; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.panel h2 { margin: 0; color: #edf0ff; font: 600 20px/1.25 var(--display); letter-spacing: -.035em; }
.panel-icon { color: #9e91ed; font-size: 22px; line-height: 1; }
.year-panel { min-height: 245px; }
.progress-wrap { margin-top: 28px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; color: #7883a4; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.progress-meta strong { color: #b7acff; font: 600 14px var(--display); letter-spacing: 0; }
.progress-track { height: 7px; margin-top: 11px; overflow: hidden; border-radius: 10px; background: rgba(115,126,169,.16); }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8170e8, #79d8e5, #a7eacb); box-shadow: 0 0 16px rgba(122,205,220,.34); transition: width .6s ease; }
.progress-foot { display: flex; justify-content: space-between; margin-top: 10px; color: #697492; font-size: 9px; }
.year-note { display: flex; align-items: center; gap: 9px; margin-top: 23px; padding-top: 14px; border-top: 1px solid rgba(166,184,255,.09); color: #a0a9c3; font-size: 10px; }
.note-icon { color: #a99aff; }
.prediction-panel { min-height: 245px; background: radial-gradient(ellipse at 100% 0%, rgba(107,89,190,.16), transparent 48%), linear-gradient(145deg, rgba(23,29,53,.9), rgba(14,19,36,.82)); }
.prediction-content { display: flex; align-items: center; gap: 17px; min-height: 84px; margin: 12px 0 10px; }
.prediction-orb { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #e5dfff; font-size: 22px; background: radial-gradient(circle at 35% 25%, rgba(193,181,255,.4), rgba(111,91,192,.18) 55%, rgba(53,62,106,.12)); border: 1px solid rgba(176,160,255,.22); box-shadow: 0 0 30px rgba(129,108,220,.12); }
.prediction-text { margin: 0; color: #d4d8eb; font-size: 14px; line-height: 1.7; }
.prediction-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible { outline: 2px solid #a99aff; outline-offset: 3px; }
.button-primary { color: #0c1020; background: linear-gradient(100deg, #b9adff, #9ce5e3); box-shadow: 0 5px 20px rgba(127,126,220,.13); }
.button-primary:hover { filter: brightness(1.07); }
.button-quiet { color: #aab2cc; background: rgba(123,135,179,.08); border-color: rgba(160,174,222,.12); }
.button-quiet:hover { background: rgba(123,135,179,.14); }
.copy-status { color: #91dfbd; font-size: 9px; }
.snow-panel { min-height: 220px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 18px; }
.snow-copy h2 { font-size: 21px; line-height: 1.2; }
.snow-copy p { max-width: 235px; margin: 10px 0 0; color: #8d98b4; font-size: 12px; line-height: 1.7; }
.snow-control { padding: 14px; border: 1px solid rgba(165,180,232,.1); border-radius: 12px; background: rgba(7,11,24,.28); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; color: #dce1f4; font-size: 12px; font-weight: 700; cursor: pointer; }
.switch { position: relative; display: inline-flex; width: 34px; height: 19px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: absolute; inset: 0; border-radius: 20px; background: #39415d; transition: background .2s; cursor: pointer; }
.switch-track::after { content: ""; position: absolute; width: 13px; height: 13px; left: 3px; top: 3px; border-radius: 50%; background: #c5cbe0; transition: transform .2s; }
.switch input:checked + .switch-track { background: #7569c6; }
.switch input:checked + .switch-track::after { transform: translateX(15px); background: #fff; }
.density-label { display: flex; justify-content: space-between; margin-top: 19px; color: #7883a4; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.density-label strong { color: #aeb7d2; font-size: 9px; letter-spacing: 0; }
.range { display: block; width: 100%; margin: 12px 0 0; accent-color: #a99aff; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; margin-top: 3px; color: #65708d; font-size: 8px; }
.visitors-panel { min-height: 220px; background: radial-gradient(ellipse at 100% 0%, rgba(64,157,165,.12), transparent 50%), linear-gradient(145deg, rgba(23,29,53,.88), rgba(14,19,36,.82)); }
.visitor-symbol { color: #8edbd4; font-size: 22px; }
.visitor-number-row { display: flex; align-items: baseline; gap: 12px; margin-top: 17px; }
.visitor-number { color: #f0f5ff; font: 600 48px/1 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.visitor-caption { color: #8994b0; font-size: 9px; line-height: 1.45; }
.visitor-status { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #8e9ab6; font-size: 9px; }
.visitor-status .status-dot { width: 6px; height: 6px; background: #78839e; box-shadow: none; }
.visitor-status.is-live .status-dot { background: #8ce6be; box-shadow: 0 0 10px rgba(140,230,190,.65); }
.visitor-status.is-offline .status-dot { background: #e5b879; box-shadow: none; }
.privacy-note { margin: 10px 0 0; color: #626e89; font-size: 8px; line-height: 1.5; }
.closing-strip { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 20px 24px; border: 1px solid rgba(165,180,232,.1); border-radius: 14px; background: linear-gradient(100deg, rgba(92,82,154,.14), rgba(37,104,119,.08)); }
.closing-star { color: #b9adff; font-size: 24px; }
.closing-title { color: #dfe4f7; font: 600 15px var(--display); }
.closing-subtitle { margin-top: 4px; color: #7e89a7; font-size: 10px; }
.closing-year { margin-left: auto; color: rgba(177,170,240,.42); font: 700 31px var(--display); letter-spacing: -.08em; }
.footer { width: min(1280px, calc(100% - 64px)); margin: 36px auto 0; padding: 17px 0 22px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(174,187,240,.09); color: #58627e; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.footer-center { color: #7b85a3; }
.footer-center span { color: #a18eff; padding: 0 4px; }
#snow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.noscript { position: fixed; bottom: 12px; left: 12px; z-index: 10; padding: 12px; color: white; background: #242b49; border-radius: 8px; }
@media (max-width: 760px) {
  .topbar, .footer { width: min(100% - 36px, 600px); }
  .page-shell { width: min(100% - 36px, 600px); }
  .topbar { height: 68px; }
  .topbar-note { display: none; }
  .hero { padding: 58px 0 34px; }
  .dashboard { grid-template-columns: 1fr; }
  .panel { padding: 23px; }
  .year-panel, .prediction-panel, .snow-panel, .visitors-panel { min-height: auto; }
  .year-panel { padding-bottom: 19px; }
  .snow-panel { min-height: 190px; }
  .footer { flex-wrap: wrap; line-height: 1.5; }
  .footer-center { order: 3; width: 100%; }
}
@media (max-width: 430px) {
  .brand { font-size: 9px; gap: 9px; letter-spacing: .12em; }
  .brand-mark { width: 23px; height: 23px; }
  .year-chip { padding: 6px 8px; }
  .hero { padding-top: 48px; }
  .eyebrow { font-size: 8px; letter-spacing: .15em; }
  h1 { font-size: 47px; }
  .hero-copy { max-width: 330px; font-size: 13px; }
  .countdown { gap: 6px; margin-top: 32px; }
  .time-unit { min-width: 57px; }
  .time-value { font-size: 41px; }
  .time-label { font-size: 8px; letter-spacing: .12em; }
  .time-separator { font-size: 29px; }
  .timezone-note { font-size: 8px; }
  .progress-foot { font-size: 8px; }
  .snow-panel { grid-template-columns: 1fr; gap: 14px; }
  .snow-copy br { display: none; }
  .snow-control { padding: 13px; }
  .closing-strip { padding: 16px; gap: 11px; }
  .closing-title { font-size: 11px; }
  .closing-subtitle { font-size: 9px; }
  .closing-year { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Desktop readability pass: larger type, wider canvas, more breathing room. */
@media (min-width: 761px) {
  .topbar { width: min(1360px, calc(100% - 88px)); height: 92px; }
  .page-shell { width: min(1320px, calc(100% - 88px)); }
  .footer { width: min(1360px, calc(100% - 88px)); font-size: 10px; }
  .brand { font-size: 13px; gap: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar-right { font-size: 11px; gap: 13px; }
  .year-chip { font-size: 13px; padding: 9px 13px; }
  .hero { padding: 104px 0 66px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(78px, 7vw, 104px); margin: 28px 0 18px; }
  .hero-copy { max-width: 680px; font-size: 19px; }
  .countdown { gap: clamp(20px, 2.5vw, 36px); margin: 50px auto 28px; }
  .time-unit { min-width: clamp(110px, 10vw, 145px); }
  .time-value { font-size: clamp(76px, 6vw, 92px); }
  .time-label { font-size: 12px; margin-top: 15px; }
  .time-separator { font-size: 66px; }
  .timezone-note { font-size: 12px; }
  .dashboard { gap: 20px; }
  .panel { padding: 34px 36px; border-radius: 20px; }
  .panel-kicker { font-size: 12px; margin-bottom: 10px; }
  .panel h2 { font-size: 25px; }
  .panel-icon { font-size: 28px; }
  .year-panel, .prediction-panel { min-height: 290px; }
  .snow-panel, .visitors-panel { min-height: 250px; }
  .progress-wrap { margin-top: 34px; }
  .progress-meta { font-size: 12px; }
  .progress-meta strong { font-size: 18px; }
  .progress-track { height: 9px; margin-top: 14px; }
  .progress-foot { font-size: 11px; margin-top: 13px; }
  .year-note { font-size: 13px; margin-top: 27px; padding-top: 18px; }
  .prediction-content { min-height: 105px; gap: 20px; margin: 17px 0 15px; }
  .prediction-orb { flex-basis: 64px; height: 64px; font-size: 27px; }
  .prediction-text { font-size: 16px; line-height: 1.75; }
  .button { min-height: 43px; padding: 0 17px; font-size: 13px; border-radius: 10px; }
  .copy-status { font-size: 12px; }
  .snow-copy h2 { font-size: 28px; }
  .snow-copy p { max-width: 290px; font-size: 14px; line-height: 1.75; }
  .snow-control { padding: 19px; border-radius: 15px; }
  .toggle-row { font-size: 14px; }
  .switch { width: 42px; height: 23px; }
  .switch-track::after { width: 17px; height: 17px; }
  .switch input:checked + .switch-track::after { transform: translateX(19px); }
  .density-label { font-size: 10px; margin-top: 22px; }
  .density-label strong { font-size: 12px; }
  .range { margin-top: 15px; }
  .range-ends { font-size: 10px; }
  .visitor-number { font-size: 60px; }
  .visitor-caption { font-size: 12px; }
  .visitor-status { font-size: 12px; margin-top: 16px; }
  .privacy-note { font-size: 10px; }
  .closing-strip { margin-top: 22px; padding: 25px 30px; gap: 20px; }
  .closing-star { font-size: 30px; }
  .closing-title { font-size: 18px; }
  .closing-subtitle { font-size: 13px; }
  .closing-year { font-size: 40px; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .page-shell { width: calc(100% - 56px); }
  .topbar, .footer { width: calc(100% - 56px); }
  .panel { padding: 27px; }
  .panel h2 { font-size: 22px; }
  .time-unit { min-width: 95px; }
  .time-value { font-size: 68px; }
}
