@font-face { font-family: 'Manrope'; src: url('../assets/manrope.woff') format('woff'); font-weight: 200 800; font-display: swap; }
:root {
  --bg0: #060a1b; --bg1: #0b1836; --bg2: #11305a;
  --ink: #f4f7ff; --ink-2: #b9c6e2; --ink-3: #93a5c9;
  --cyan: #5ac8fa; --blue: #2997ff;
  --grad: linear-gradient(95deg, #ffb36b 0%, #ff6f91 30%, #b784ff 62%, #5ac8fa 100%);
  --glass: rgba(14, 28, 60, .55); --line: rgba(140, 175, 235, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(120% 80% at 70% 40%, #12305e 0%, rgba(17,48,90,0) 60%), linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg2) 100%);
  background-attachment: fixed; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
.sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sky--snow { z-index: 3; }
.bar, .hero, .foot { position: relative; z-index: 2; }
.bar { z-index: 5; } /* keeps the share panel above the globe */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.mark, .mini-mark { display: inline-block; background: var(--grad); -webkit-mask: url('../assets/icon.svg') center / contain no-repeat; mask: url('../assets/icon.svg') center / contain no-repeat; }
.mark { width: 34px; height: 27px; filter: drop-shadow(0 0 10px rgba(183,132,255,.55)); }
.mini-mark { width: 16px; height: 13px; vertical-align: -1px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.btn { font: 700 14px/1 'Manrope', sans-serif; color: #0a1022; background: var(--ink); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: transform .15s ease, background-color .2s ease; }
.btn:active { transform: scale(.985); }
.btn[aria-expanded="true"] { background: #dfe8ff; }

/* Share panel: calm popover, simple fade only */
.share { position: relative; }
.share-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 264px; padding: 14px 8px 8px; border-radius: 16px; background: #0d1a3a; box-shadow: inset 0 0 0 1px rgba(140,175,235,.28), 0 18px 40px rgba(2,6,20,.55); z-index: 20; opacity: 0; transition: opacity .16s ease; }
.share-panel.is-open { opacity: 1; }
.share-panel[hidden] { display: none; }
.share-panel__title { margin: 0 10px 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.share-panel__list { list-style: none; margin: 0; padding: 0; }
.share-panel__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.share-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 15px/1.2 'Manrope', sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.share-item__ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(140,175,235,.12); color: var(--ink); flex: none; }
.share-item__ic svg { display: block; }
.share-item:focus-visible { outline-offset: -2px; background: rgba(90,200,250,.12); }
.share-panel__status { margin: 0; padding: 0 10px; font-size: 13px; color: var(--ink-2); min-height: 0; }
.share-panel__status:not(:empty) { padding: 6px 10px 4px; }
@media (hover: hover) {
  .btn:hover { background: #fff; }
  .share-item:hover { background: rgba(140,175,235,.12); }
  .credit:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 3vw, 48px); padding: 0 clamp(18px, 4vw, 56px); min-height: 0; }
.copy { max-width: 560px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
body.is-live .kicker .dot { background: #ff6f91; box-shadow: 0 0 10px #ff6f91; }
h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(183,132,255,.35)); }
.sub { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; font-weight: 500; }

.countdown { display: flex; gap: 10px; margin-top: 28px; }
.countdown div { min-width: 76px; padding: 12px 10px 10px; text-align: center; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }
.countdown b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.countdown span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
body.is-live .countdown, body.is-done .countdown { display: none; }

.hud-wrap { margin: 28px 0 0; }
.hud { margin: 0; display: grid; grid-template-columns: 1fr 1fr 1.15fr; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); position: relative; overflow: hidden; }
.hud::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: .85; }
.hud__cell { padding: 16px 18px 15px; min-width: 0; }
.hud__cell + .hud__cell { border-left: 1px solid var(--line); }
.hud dt { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.hud dd { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.hud .num { white-space: nowrap; }
.hud .hud__sub { margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.hud .num { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hud-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-3); }
.stage { position: relative; display: grid; place-items: center; min-height: 0; }
.globe-wrap { position: relative; width: min(100%, 74vh, 760px); aspect-ratio: 1; }
#globe { width: 100%; height: 100%; display: block; }
.br { position: absolute; width: 9%; height: 9%; border: 2px solid var(--blue); opacity: .8; }
.br--tl { left: 4%; top: 4%; border-right: 0; border-bottom: 0; }
.br--tr { right: 4%; top: 4%; border-left: 0; border-bottom: 0; }
.br--bl { left: 4%; bottom: 4%; border-right: 0; border-top: 0; }
.br--br { right: 4%; bottom: 4%; border-left: 0; border-top: 0; }

.foot { display: grid; justify-items: center; gap: 8px; padding: 18px clamp(18px, 4vw, 56px) 22px; font-size: 14px; color: var(--ink-2); text-align: center; }
.foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.fine { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.fine .url { margin-left: 6px; }
.fine .url::before { content: '·'; margin-right: 8px; }
.credit { text-decoration: none; font-weight: 600; color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 6px; padding-top: 4px; }
  .copy { max-width: none; display: contents; }
  .kicker { order: 1; margin-bottom: 10px; } h1 { order: 2; }
  .countdown { order: 4; } .sub { order: 3; }
  .stage { order: 5; } .hud-wrap { order: 6; margin-top: 0; }
  .globe-wrap { width: min(100%, 520px); margin: 0 auto; }
}
@media (max-width: 560px) {
  .bar { padding: 14px 16px; }
  .brand__name { display: none; }
  .hero { padding: 0 16px; }
  h1 { font-size: 40px; }
  .sub { margin-top: 8px; font-size: 14px; }
  .countdown { margin-top: 16px; gap: 8px; }
  .countdown div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .countdown b { font-size: 28px; }
  .globe-wrap { width: min(100%, 340px, 44svh); margin: 0 auto; }
  body:not(.is-live):not(.is-done) .globe-wrap { width: min(100%, 300px, 36svh); }
  .hud { grid-template-columns: 1fr 1fr; }
  .hud__cell { padding: 11px 14px 10px; }
  .hud-note { margin-top: 8px; font-size: 12px; }
  .hud__cell--gifts { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .hud__cell--gifts dt { width: 100%; margin-bottom: 2px; }
  .hud dd { font-size: 15px; }
  .hud .num { font-size: 22px; }
  .foot { padding: 14px 16px 18px; gap: 4px; }
  .fine .url { display: block; margin: 4px 0 0; }
  .fine .url::before { content: none; }
  .share-panel { width: min(264px, calc(100vw - 32px)); }
}

/* Reduced motion: no transitions (canvas motion is handled in JS) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
