:root {
  color-scheme: light;
  --paper: #0b172c;
  --cream: #fff8e9;
  --pine: #273753;
  --ink: #182841;
  --quiet: #5b5361;
  --red: #a52d43;
  --line: #dcd0bb;
  --gold: #ffda94;
  --snow-white: #fffaf1;
  --night-line: #f9e6bc39;
  font: 16px/1.55 Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
body { color: var(--snow-white); min-height: 100vh; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a56129; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.winter-backdrop { position: fixed; inset: 0; z-index: -2; background: #0b172c url("winter-village.webp") 60% 55% / cover no-repeat; }
.winter-backdrop::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #071226f0 0%, #0b172c99 34%, #1220380f 72%), linear-gradient(0deg, #091526bc 0%, transparent 38%, #09152639 75%, #09152684 100%); }
.snow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: 0; left: var(--x); width: var(--size); height: var(--size); opacity: var(--opacity); border-radius: 50%; background: #fffdf6; box-shadow: 0 0 var(--glow) #e4efff; animation: snowfall var(--speed) var(--delay) linear infinite; }
@keyframes snowfall {
  0% { transform: translate3d(0, -5vh, 0); }
  45% { transform: translate3d(var(--sway), 46vh, 0); }
  100% { transform: translate3d(calc(var(--sway) * -0.3), 106vh, 0); }
}
.shell { width: min(100% - 10vw, 1240px); margin-inline: auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--night-line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: clamp(1.05rem, 2.2vw, 1.65rem); font-weight: 700; text-decoration: none; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffda947a; border-radius: 50%; color: var(--gold); font-size: 1.22rem; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-actions .outline { color: var(--snow-white); border-color: #ffedcb64; background: #0d1a33a6; white-space: nowrap; }
.top-actions .outline:hover { border-color: var(--gold); background: #293a58; }
.snow-control span { color: var(--gold); margin-right: .4em; }
.snow-control[aria-pressed="false"] span { opacity: .45; }
.outline { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid currentColor; border-radius: 50px; padding: 7px 18px; background: transparent; color: var(--pine); text-decoration: none; }
.outline:hover { background: #e9ebdd; }
.hero { display: grid; grid-template-rows: 1fr auto; gap: 26px; align-items: center; min-height: calc(100svh - 76px); padding-top: clamp(34px, 5vw, 64px); }
.hero-copy { max-width: 590px; padding-bottom: clamp(18px, 4vh, 54px); }
.eyebrow { font-family: "Segoe UI", sans-serif; color: var(--pine); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-kicker { color: var(--gold); display: flex; gap: 10px; align-items: center; margin-bottom: 21px; }
.hero-kicker span { font-size: 1.05rem; text-shadow: 0 0 14px #e1a556; }
h1 { font-weight: 400; font-size: clamp(4.2rem, min(11.2vw, 17vh), 10.2rem); line-height: .84; letter-spacing: -.07em; text-shadow: 0 5px 30px #070e22b3; }
h1 em { font-style: normal; color: var(--gold); }
.intro { font-size: clamp(1.12rem, 2.15vw, 1.63rem); line-height: 1.39; margin-block: 25px 26px; max-width: 31ch; color: #fbedd9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 23px; align-items: center; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 23px; border: 1px solid #ef9c914f; border-radius: 7px; padding: 11px 20px; color: #fff9ef; background: var(--red); font-size: 1.06rem; text-decoration: none; transition: background .18s, transform .18s; }
.hero .button { box-shadow: 0 5px 24px #6f122a65; }
.button:hover { background: #79151c; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button span { font-family: "Segoe UI", sans-serif; font-size: 1.28em; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 17px 0; background: #0b172cde; border: 1px solid var(--night-line); border-radius: 9px 9px 0 0; font-size: clamp(.78rem, 1.5vw, 1.08rem); text-align: center; }
.facts li + li { border-left: 1px solid var(--night-line); }
.facts span, .footer span { color: var(--gold); margin-right: 5px; }
.game, .rules, .footer { position: relative; isolation: isolate; }
.game::before, .rules::before, .footer::before { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; content: ""; background: #0b172cf5; }
.game { min-height: 100svh; display: grid; grid-template-columns: .81fr 1fr; align-content: center; align-items: start; gap: clamp(30px, 7vw, 100px); padding-block: 72px; border-top: 1px solid var(--night-line); }
h2 { font-size: clamp(2.65rem, 6vw, 5.25rem); line-height: 1; font-weight: 400; letter-spacing: -.06em; overflow-wrap: anywhere; }
.section-copy h2 { margin-block: 14px 20px; }
.section-copy .eyebrow { color: var(--gold); }
.section-intro { max-width: 34ch; color: #dedbeb; font-size: 1.2rem; }
.postcard { margin-top: 30px; width: min(82%, 350px); position: relative; padding: 7px; background: #ffeed0; box-shadow: 0 12px 33px #030b1a9c; transform: rotate(-4deg); }
.postcard img { width: 100%; height: clamp(125px, 16vw, 210px); object-fit: cover; object-position: 50% 52%; }
.postcard span { position: absolute; right: -15px; bottom: -15px; display: grid; place-items: center; width: 45px; height: 45px; border: 3px double #ffc991; border-radius: 50%; color: var(--gold); background: var(--red); font-size: 1.4rem; }
.paper { min-width: 0; padding: clamp(20px, 3.5vw, 45px); border: 1px solid #e4c49c; border-radius: 6px; color: var(--ink); background: var(--cream); box-shadow: 0 16px 55px #02091666; }
label { display: block; margin-bottom: 5px; font-weight: 700; }
small { color: var(--quiet); font-weight: 400; font-size: .79rem; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #929e8d; border-radius: 4px; padding: 9px 11px; background: #fffdfa; color: var(--ink); }
textarea { resize: vertical; min-height: 106px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-block: 16px; }
.field-pair small { display: block; }
.hint { color: var(--quiet); font-size: .92rem; }
form .button, #edit { margin-top: 18px; }
.error { margin-top: 10px; color: var(--red); }
h3 { font-size: 1.55rem; line-height: 1.2; margin-bottom: 8px; }
.link-list { padding: 0; margin-block: 18px; list-style: none; }
.link-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.link-list span { overflow-wrap: anywhere; }
.link-list button { flex-shrink: 0; font-size: .9rem; padding-inline: 11px; }
#copy-status:empty { display: none; }
.rules { min-height: 78svh; align-content: center; padding-block: 60px; border-top: 1px solid var(--night-line); }
.rules ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 50px); padding: 0; list-style: none; counter-reset: steps; margin: 38px 0; }
.rules li { border-top: 1px solid var(--night-line); padding-top: 16px; counter-increment: steps; }
.rules li::before { content: counter(steps, decimal-leading-zero); color: var(--gold); display: block; margin-bottom: 10px; }
.rules p { color: #dedbeb; max-width: 36ch; }
.text-link { text-underline-offset: 5px; }
.text-link:hover { color: var(--gold); }
.paper .text-link:hover { color: var(--red); }
.letter-view { min-height: calc(100svh - 150px); display: grid; place-items: center; padding-block: 40px; }
.letter { width: min(100%, 640px); text-align: center; padding-block: clamp(35px, 6vw, 72px); }
.seal { display: grid; place-items: center; margin: 0 auto 20px; width: 76px; aspect-ratio: 1; border: 4px double #f8d7ad; border-radius: 50%; background: var(--red); color: #fff8e6; font-size: 2.4rem; }
.letter h2 { font-size: clamp(2.4rem, 5vw, 4.15rem); margin-block: 12px; }
.letter p { overflow-wrap: anywhere; }
.letter .button, .letter .text-link { margin-top: 23px; }
.letter .text-link { display: inline-block; }
#recipient-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; animation: entrance .55s both; }
#recipient { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.08; color: var(--red); margin: 6px 0 15px; }
.footer { border-top: 1px solid var(--night-line); padding-block: 20px; color: #dedbeb; text-align: center; }
[data-enter] { animation: entrance .65s ease-out both; }
@keyframes entrance { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .shell { width: calc(100% - 34px); }
  .topbar { min-height: 64px; }
  .top-actions { gap: 6px; }
  .top-actions .outline { padding-inline: 10px; font-size: .82rem; }
  .brand { gap: 6px; }
  .brand-mark { width: 26px; height: 26px; font-size: .9rem; }
  .winter-backdrop { background-position: 84% 50%; }
  .winter-backdrop::after { background: linear-gradient(90deg, #091427ec, #09142764), linear-gradient(0deg, #091526c9, transparent 33%); }
  .game { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 64px); padding-top: 35px; gap: 0; }
  .hero-copy { align-self: start; padding-bottom: 160px; }
  h1 { font-size: clamp(4.2rem, 15vw, 7rem); }
  .intro { margin-block: 21px; }
  .facts { padding-block: 14px; }
  .facts li { padding-inline: 6px; }
  .facts span { display: block; margin: 0; }
  .game, .rules { min-height: auto; padding-block: 51px; }
  .postcard { width: min(77%, 265px); margin-bottom: 10px; }
  .rules ol { grid-template-columns: 1fr; margin-block: 27px; }
}
@media (max-width: 370px) {
  .field-pair { grid-template-columns: 1fr; }
  .outline { padding-inline: 12px; }
  .snow-control span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  :not(.snowflake), *::before, *::after { animation: none !important; transition: none !important; }
}
