:root {
  color-scheme: dark;
  --ice: #f5f8ff;
  --night: #050c25;
  --blue: #a4c1ff;
  --gutter: clamp(1.25rem, 5.75vw, 7rem);
  --section-pad: clamp(3.25rem, 6vw, 6rem);
  --heading-gap: clamp(.75rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ice);
  background: var(--night);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .3em; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #56afeb; outline-offset: 5px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1460px); margin-inline: auto; }
.bar, nav, .brand { display: flex; align-items: center; }
.bar { min-height: 72px; justify-content: space-between; gap: .8rem; padding-block: .75rem; flex-wrap: wrap; }
header { background: #060d29; border-bottom: 1px solid #253252; }
.brand { gap: .55rem; font-weight: 750; font-size: 1.12rem; letter-spacing: -.025em; line-height: 1.2; }
nav { gap: clamp(1rem, 3vw, 3rem); font-size: .95rem; line-height: 1.25; }
.nav-mint { padding: .65em 1.1em; border: 1px solid #647aa4; border-radius: 2em; }
.nav-mint:hover { background: #1e3052; text-decoration: none; }
.hero {
  isolation: isolate; overflow: hidden; position: relative;
  background: #071032 url("./assets/midnight-snow.webp") center bottom / cover no-repeat;
}
.aurora {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 72% 39%, #506bff44, transparent 59%), linear-gradient(110deg,#15277433,transparent 50%,#265be030);
  animation: sky 10s ease-in-out infinite alternate;
}
.stage {
  position: relative; display: grid; grid-template-columns: 1.04fr 1fr; align-items: center;
  min-height: clamp(530px, 47vw, 760px); padding-block: 30px 65px;
}
.copy { position: relative; z-index: 1; }
.copy h1, .label { font-weight: 750; font-size: clamp(.85rem, 1.15vw, 1.12rem); line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; }
.copy h1 { letter-spacing: .28em; margin-bottom: clamp(1.5rem, 2.4vw, 2.5rem); }
.display { display: flex; align-items: center; gap: .085em; font-size: clamp(9rem, 18.3vw, 19rem); font-weight: 1000; letter-spacing: -.035em; color: white; }
.count { line-height: .82; font-variant-numeric: tabular-nums; }
.unit { display: grid; font-size: .44em; line-height: .94; letter-spacing: -.035em; }
@supports (text-box: trim-both cap alphabetic) {
  .count, .unit > span { text-box: trim-both cap alphabetic; }
  .unit { height: calc(1cap / .44); align-content: space-between; }
}
.date { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.65rem); margin-top: 1.6rem; letter-spacing: -.015em; line-height: 1.35; }
.date span { color: var(--blue); }
.platform { display: inline-flex; align-items: center; gap: .35em; margin-top: 1.75rem; }
.platform img { margin-right: .25rem; }
.hero-coin {
  position: relative; isolation: isolate; display: grid; place-items: center; margin: auto; padding: 0;
  width: min(100%, 575px); aspect-ratio: 1; border: 0; perspective: 1000px; background: none;
}
.float, .coin-rotor, .coin-rotor img { display: block; width: 100%; height: 100%; }
.float { animation: float 5.6s ease-in-out infinite; perspective: 1100px; }
.coin-rotor { position: relative; transform-style: preserve-3d; --depth: clamp(12px, 3vw, 32px); }
.coin-rotor img { position: absolute; inset: 0; object-fit: contain; backface-visibility: hidden; }
.coin-front { transform: translateZ(calc(var(--depth) / 2)); }
.coin-back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); }
.coin-rotor:not(.turning) .coin-rim { display:none; }
.coin-rim { position: absolute; left: 50%; top: 50%; width: calc(var(--depth) - 2px); height: 66%;
  border-radius: 45%; background: linear-gradient(#767ee5, #353ca3 52%, #171f6b);
  transform: translate(-50%, -50%) rotateY(90deg); }
.snowfall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.snowfall i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #bee1ff; }
.hint, #motion { border: 0; border-radius: 2em; background: #081638ce; color: #edf5ff; padding: .4em .8em; font-size: .85rem; }
.hint { display: inline-flex; align-items: center; gap: .4em; position: absolute; bottom: -.8rem; font-weight: 600; }
.hero-coin:disabled .hint { visibility: hidden; }
#motion { position: absolute; bottom: 1rem; right: max(var(--gutter), calc((100% - 1460px) / 2)); }
@keyframes float { 0%,100% { transform: translateY(3px); } 50% { transform: translateY(-10px); } }
@keyframes sky { from { opacity: .2; } to { opacity: 1; } }

.paused *, .paused *:after { animation-play-state: paused !important; }
.mint { background: #edf3fc; color: #142344; padding: var(--section-pad) 0; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: baseline; }
.mint .label { color: #495f83; }
.mint h2, .riddle-title { font: normal clamp(2.5rem, 4.5vw, 4.8rem)/1.09 Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.mint h2 { margin-top: var(--heading-gap); }
.mint h2 span { color: #5065ac; }
dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid #bdcadf; }
dl div:first-child { padding-top: 0; }
dt, #mint-description { color: #42526e; }
dd { display: inline-flex; align-items: center; gap: .45rem; text-align: right; font-weight: 700; }
#mint-status { margin: 1.2rem 0 .4rem; color: #354e80; font-weight: 700; }
#mint-description { line-height: 1.5; }
#mint-link { display: inline-block; margin-top: .85rem; background: #163277; color: white; padding: .75em 1.1em; border-radius: 2em; }
.winter { padding: var(--section-pad) 0; background: linear-gradient(90deg,#030b24ec,#050a2380 52%,#050a2312), url("./assets/winter-village.webp") center 63% / cover; }
summary { cursor: pointer; }
#riddle > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
#riddle > summary::-webkit-details-marker { display: none; }
.winter .label { display: block; color: #bcd3ff; margin-bottom: var(--heading-gap); }
.riddle-title { display: block; font-style: italic; }
.toggle { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex-shrink: 0; background: #09173899; border: 1px solid #adbee3; border-radius: 50%; font-size: 1.5rem; }
.toggle:before { content: '+'; }
details[open] > summary .toggle:before { content: '−'; }
.verse { margin-top: 1.5rem; }
.verse > p { font: italic 1.45rem/1.5 Georgia, serif; }
.clue { margin-top: 1.2rem; }
.clue summary { color: #c4d8ff; }
.clue p { margin-top: .5rem; }
footer { background: #050b20; border-top: 1px solid #263553; }
footer .social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
footer .bar { min-height: 85px; }
footer a:not(.brand) { color: #bbcde7; font-size: .9rem; }
@media(max-width: 700px) {
  .bar { min-height: 61px; } .brand { font-size: .99rem; gap: .3rem; }
  .brand img { width: 29px; height: 29px; } nav { gap: .8rem; font-size: .86rem; }
  .nav-mint { padding: .5em .7em; } .stage { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 54px; }
  .copy h1 { font-size: .875rem; margin-bottom: 1.25rem; } .display { font-size: clamp(8rem,31vw,13rem); }
  .date { margin-top: 1rem; } .platform { margin-top: 1rem; } .hero-coin { width: min(81%,330px); margin-top: .75rem; }
  .launch-grid { grid-template-columns: 1fr; gap: 2.1rem; }
  #motion { bottom: .55rem; } .riddle-title { font-size: clamp(2.1rem,8vw,3rem); }
}
@media(max-width: 355px) { :root { --gutter: 1rem; } nav { gap: .5rem; } .brand { font-size: .91rem; } }
@media(prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; } *, *:after { animation: none !important; }
}

.news { padding: clamp(2.5rem,5vw,5rem) 0; background: #0a1432; border-top: 1px solid #293757; }
.news-grid { display:grid; grid-template-columns: 1fr minmax(0, 1.25fr); gap:clamp(2rem,6vw,7rem); align-items:start; }
.news h1, .news h2 { margin:.35rem 0 1rem; font: normal clamp(2.7rem,5vw,5rem)/1 Georgia,serif; }
.news .label, .news a { color:#bdd2ff; }
.news-feature { margin:1.5rem 0; border-left:2px solid #799ae4; padding-left:1rem; }
.news-feature h3 { margin:0 0 .35rem; font-size:1.16rem; }
.news-feature p { color:#c9d3e7; max-width:34em; }
.news-feed { padding:1rem 1.25rem; border:1px solid #304365; border-radius:14px; background:#080f24; min-width:0; }
.news-feed header { display:flex; align-items:center; gap:.75rem; background:none; padding-bottom:.8rem; margin-bottom:.8rem; }
.news-feed a { text-decoration:underline; text-underline-offset:.2em; }
.news-feed iframe { max-width:100% !important; }
@media(max-width:700px) { .news-grid {grid-template-columns:1fr; gap:1.2rem;} }
