/* PowderSharing – shared stylesheet
   Theme: woodblock-print mountains (indigo, washi paper, vermilion stamp) drawn as pixel art. */
:root {
  --navy: #061838;          /* from the logo */
  --navy-2: #10284f;
  --blue: #2c5a9a;
  --sky: #a9c6e0;
  --mist: #dfe8ee;
  --paper: #f3e9d6;
  --paper-2: #e8dbc0;
  --snow: #f7f4ec;
  --red: #d4462c;
  --red-btn: #b5371f;       /* white text passes AA on this */
  --red-ink: #a8321d;       /* red text on paper */
  --ink: #061838;
  --ink-soft: #3b4d6b;
  --px: 4px;                /* one "art pixel" for borders */
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pixel: "DotGothic16", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pixel-border: 0 calc(-1 * var(--px)) 0 0 var(--navy), 0 var(--px) 0 0 var(--navy),
                  calc(-1 * var(--px)) 0 0 0 var(--navy), var(--px) 0 0 0 var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint washi-paper fibres, in pixels */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Cg fill='%23061838' fill-opacity='.045'%3E%3Crect x='6' y='10' width='2' height='2'/%3E%3Crect x='40' y='4' width='2' height='2'/%3E%3Crect x='22' y='34' width='2' height='2'/%3E%3Crect x='54' y='44' width='2' height='2'/%3E%3Crect x='12' y='54' width='2' height='2'/%3E%3Crect x='34' y='58' width='4' height='2'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--navy); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--red-btn); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 4rem 0; position: relative; }
.section__lead { color: var(--ink-soft); max-width: 60ch; font-size: 1.1rem; }
.center { text-align: center; }

.eyebrow, .kicker {
  font-family: var(--pixel); color: var(--red-ink);
  font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before, .kicker::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.center .kicker { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 var(--px) 0 0 var(--red);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--pixel); font-size: 1.35rem; color: var(--snow); text-decoration: none; letter-spacing: .02em;
}
.logo img { width: 40px; height: 40px; display: block; box-shadow: 0 0 0 2px var(--navy-2); }
.logo__word span { color: var(--sky); }
.logo:hover { color: var(--snow); }

.nav-toggle {
  display: none;
  background: transparent; color: var(--snow);
  border: 2px solid var(--snow); border-radius: 0;
  padding: .45rem .8rem; font: inherit; font-family: var(--pixel); cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: .5rem; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-list a {
  display: block; padding: .45rem .85rem;
  color: var(--snow); text-decoration: none; font-family: var(--pixel); font-size: 1.02rem;
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem; height: var(--px);
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .15s steps(4);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.site-header :focus-visible { outline-color: var(--snow); }

@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .75rem 1.25rem 1rem;
    background: var(--navy); border-top: var(--px) solid var(--red);
  }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { padding: .8rem .25rem; }
  .nav-list a::after { left: .25rem; right: auto; width: 3rem; }
  .nav { flex-wrap: wrap; }
  .logo { font-size: 1.2rem; }
}

/* ---------- Buttons (pixel corners) ---------- */
.btn {
  display: inline-block; padding: .85rem 1.4rem; margin: var(--px);
  font-family: var(--pixel); font-size: 1.05rem; line-height: 1.2; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 0; border-radius: 0;
  background: var(--red-btn); color: #fff;
  box-shadow: var(--pixel-border), inset 0 calc(-1 * var(--px)) 0 0 rgba(0,0,0,.28), inset 0 var(--px) 0 0 rgba(255,255,255,.18);
  transition: transform .08s steps(2), background .15s;
}
.btn:hover { background: #9f2f1a; color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: var(--pixel-border), inset 0 var(--px) 0 0 rgba(0,0,0,.28); }
.btn--ghost { background: var(--snow); color: var(--navy); box-shadow: var(--pixel-border), inset 0 calc(-1 * var(--px)) 0 0 rgba(6,24,56,.15); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(640px, 92vh, 920px);
  display: flex; align-items: flex-start;
  /* fallback before the canvas paints (or without JS) */
  background:
    url("/assets/range.svg") repeat-x left bottom / 288px 84px,
    linear-gradient(180deg, #183462 0%, #4a70a0 22%, #96b6ce 42%, #d6e0e2 55%, var(--paper) 66%, var(--paper) 100%);
  background-color: var(--navy);
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  image-rendering: pixelated; image-rendering: crisp-edges;
  display: block;
}
.hero__inner { padding-top: clamp(2.5rem, 9vh, 6rem); padding-bottom: 6rem; }
.cartouche {
  position: relative; max-width: 540px;
  background: var(--snow); color: var(--ink);
  padding: 2rem 2rem 1.75rem; margin: var(--px);
  box-shadow: var(--pixel-border), 12px 12px 0 0 rgba(6,24,56,.35);
}
.cartouche::before { /* inner rule, like a print's title box */
  content: ""; position: absolute; inset: 8px; border: 2px solid var(--navy); pointer-events: none; opacity: .18;
}
.cartouche h1 { margin-bottom: .5em; }
.cartouche p { font-size: 1.12rem; color: var(--ink-soft); }
.cartouche .btn-row { margin-top: 1.25rem; }

.hanko {
  position: absolute; top: -22px; right: -18px;
  writing-mode: vertical-rl; font-family: var(--pixel); font-size: 1.35rem; line-height: 1;
  color: var(--snow); background: var(--red);
  padding: .55rem .4rem; letter-spacing: .1em;
  transform: rotate(4deg);
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px rgba(247,244,236,.85);
}

@media (max-width: 759px) {
  .hero { display: block; min-height: 0; background: linear-gradient(180deg, #183462 0%, #96b6ce 40%, var(--paper) 58%, var(--navy) 58%) top / 100% 58vh no-repeat, var(--navy); }
  .hero-art { height: 58vh; bottom: auto; }
  .hero__inner { padding-top: 46vh; padding-bottom: 2.5rem; }
  .cartouche { padding: 1.6rem 1.3rem 1.4rem; box-shadow: var(--pixel-border), 8px 8px 0 0 rgba(0,0,0,.35); }
  .hanko { top: -20px; right: 6px; font-size: 1.15rem; }
}

/* ---------- Pixel wave dividers ---------- */
.divider { height: 56px; background-repeat: repeat-x; background-position: left bottom; background-size: 192px 56px; image-rendering: pixelated; }
.divider--to-paper { background-color: var(--navy); background-image: url("/assets/wave-cream.svg"); }
.divider--to-navy { background-color: var(--paper); background-image: url("/assets/wave-navy.svg"); }
.divider--to-mist { background-color: var(--navy); background-image: url("/assets/wave-blue.svg"); }
.divider--mist-to-navy { background-color: var(--mist); background-image: url("/assets/wave-navy.svg"); }

/* ---------- Section variants ---------- */
.section--navy {
  background-color: var(--navy); color: var(--snow);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' shape-rendering='crispEdges'%3E%3Cg fill='%23f7f4ec' fill-opacity='.22'%3E%3Crect x='20' y='30' width='5' height='5'/%3E%3Crect x='120' y='14' width='5' height='5'/%3E%3Crect x='80' y='110' width='5' height='5'/%3E%3Crect x='150' y='150' width='5' height='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' shape-rendering='crispEdges'%3E%3Cg fill='%23f7f4ec' fill-opacity='.4'%3E%3Crect x='10' y='14' width='3' height='3'/%3E%3Crect x='52' y='40' width='3' height='3'/%3E%3Crect x='90' y='8' width='3' height='3'/%3E%3Crect x='30' y='78' width='3' height='3'/%3E%3Crect x='76' y='96' width='3' height='3'/%3E%3Crect x='104' y='60' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E");
  animation: snowfall 26s linear infinite;
}
@keyframes snowfall {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -180px 360px, -120px 480px; }
}
.section--navy h2, .section--navy h3 { color: var(--snow); }
.section--navy .section__lead, .section--navy p { color: #d5e0ec; }
.section--navy .kicker { color: #f19a86; }
.section--navy a { color: #fff; }
.section--navy a:hover { color: var(--sky); }
.section--navy :focus-visible { outline-color: var(--snow); }
.section--mist { background-color: var(--mist); }
.section--tint { background-color: var(--mist); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 2rem; margin-top: 2.25rem; }
@media (min-width: 760px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; background: var(--snow); color: var(--ink);
  padding: 1.6rem; margin: var(--px);
  box-shadow: var(--pixel-border), 10px 10px 0 0 rgba(6,24,56,.18);
}
.section--navy .card { box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--snow), 0 var(--px) 0 0 var(--snow), calc(-1 * var(--px)) 0 0 0 var(--snow), var(--px) 0 0 0 var(--snow), 10px 10px 0 0 var(--red); }
.section--navy .card p, .section--navy .card h3 { color: var(--ink); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.px-icon { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.step-num {
  font-family: var(--pixel); font-size: 1rem; color: #fff; background: var(--red-btn);
  padding: .2rem .55rem; letter-spacing: .08em;
}
.card--owner h3 { color: var(--red-ink); }
.card--renter h3 { color: var(--blue); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23d4462c' d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h2v1H4zM0 3h2v1H0zM3 3h2v1H3zM1 4h3v1H1zM2 5h1v1H2z'/%3E%3C/svg%3E") no-repeat center / contain;
  image-rendering: pixelated;
}
.section--navy .ticks li::before { filter: brightness(1.25); }

.notice { background: var(--snow); border-left: 8px solid var(--red); padding: 1rem 1.25rem; box-shadow: 6px 6px 0 0 rgba(6,24,56,.12); }

/* ---------- Problem: season strip ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.season { margin: 0; background: var(--snow); padding: 1.5rem; box-shadow: var(--pixel-border), 10px 10px 0 0 rgba(6,24,56,.18); margin: var(--px); }
.season__months { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.season__months li {
  aspect-ratio: 1 / 1.6; display: grid; place-items: end center; padding-bottom: .3rem;
  font-family: var(--pixel); font-size: .85rem; color: var(--ink-soft); background: var(--paper-2);
}
.season__months li.is-snow {
  color: var(--snow); background: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23f7f4ec' d='M2 0h1v5H2zM0 2h5v1H0zM0 0h1v1H0zM4 0h1v1H4zM0 4h1v1H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center 28%; background-size: 60% auto;
  image-rendering: pixelated;
}
.season__legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: .92rem; color: var(--ink-soft); margin: 0 0 .75rem; padding: 0; list-style: none; }
.season__legend li { display: flex; align-items: center; gap: .5rem; }
.season__legend i { width: 14px; height: 14px; display: inline-block; background: var(--paper-2); }
.season__legend i.snow { background: var(--navy); }
.season figcaption { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Community / rules ---------- */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li {
  counter-increment: rule; position: relative; padding: 1rem 1rem 1rem 3.6rem;
  background: rgba(247,244,236,.06); border: 2px solid rgba(247,244,236,.25);
}
.rules li::before {
  content: counter(rule, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem;
  font-family: var(--pixel); color: #f19a86;
}

/* ---------- CTA lift ticket ---------- */
.ticket {
  display: grid; grid-template-columns: auto 1fr; max-width: 820px; margin: 0 auto;
  background: var(--snow); text-align: left;
  box-shadow: var(--pixel-border), 12px 12px 0 0 var(--navy);
  margin-top: var(--px);
}
.ticket__stub {
  background: var(--red-btn); color: var(--snow);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--pixel); letter-spacing: .25em; font-size: 1rem;
  padding: 1.5rem .9rem; text-align: center;
  border-left: 4px dashed var(--paper);
}
.ticket__body { padding: 2.25rem 2rem; position: relative; }
.ticket__body h2 { margin-bottom: .3em; }
.ticket__body .section__lead { margin: 0; }
.ticket .kicker { justify-content: flex-start; }
.ticket__body .btn-row { margin-top: 1.5rem; }
.ticket__logo { position: absolute; top: 1.25rem; right: 1.25rem; width: 56px; height: 56px; }
@media (max-width: 599px) {
  .ticket__body { padding: 1.75rem 1.25rem; }
  .ticket__logo { display: none; }
}

/* ---------- Forms ---------- */
.tabs { display: flex; gap: .75rem; margin: 1.75rem 0 1.25rem; flex-wrap: wrap; }
.tab {
  font: inherit; font-family: var(--pixel); padding: .7rem 1.2rem; cursor: pointer; margin: var(--px);
  border: 0; border-radius: 0; background: var(--snow); color: var(--ink); box-shadow: var(--pixel-border);
}
.tab[aria-selected="true"] { background: var(--navy); color: var(--snow); box-shadow: var(--pixel-border), 0 calc(var(--px) * 2) 0 0 var(--red); }
.tab-panel[hidden] { display: none; }

.form {
  display: grid; gap: 1.15rem; background: var(--snow); padding: 1.75rem; margin: var(--px);
  box-shadow: var(--pixel-border), 10px 10px 0 0 rgba(6,24,56,.18);
}
.form h2 { font-family: var(--pixel); }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.field .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--navy); border-radius: 0; padding: .65rem .8rem;
  box-shadow: inset 3px 3px 0 0 rgba(6,24,56,.08);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--red-btn); box-shadow: none; }
.field--check label { font-weight: 400; margin: 0; }
.row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .row--2 { grid-template-columns: 1fr 1fr; } }
.req { color: var(--red-ink); }
.form-status { min-height: 1.5em; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Inner pages ---------- */
main.section > .container > h1:first-child { position: relative; padding-bottom: .4em; }
main.section > .container > h1:first-child::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: var(--px);
  background: var(--red); box-shadow: 80px 0 0 0 var(--navy);
}

/* ---------- Prose (privacy) ---------- */
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: 84px;
  background: var(--navy); color: #d5e0ec; padding: 2.5rem 0 2rem; font-size: .95rem;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -83px; height: 84px;
  background: url("/assets/range.svg") repeat-x left bottom / 288px 84px; image-rendering: pixelated;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-family: var(--pixel); font-size: 1.3rem; color: var(--snow); }
.footer-brand img { width: 48px; height: 48px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.site-footer p { margin-bottom: .75rem; max-width: 62ch; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--pixel); }
.site-footer :focus-visible { outline-color: #ffffff; }

.not-found { padding: 6rem 0; text-align: center; }
.not-found .px-icon { margin: 0 auto 1.5rem; width: 96px; height: 96px; transform: rotate(-20deg); }

/* ---------- "Powder sent!" avalanche ---------- */
.form { position: relative; scroll-margin-top: 96px; }
.form.is-rumbling { animation: rumble .5s steps(6) .15s; }
@keyframes rumble {
  0%, 100% { transform: none; }
  20% { transform: translate(-4px, 0); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(4px, 0); }
}
.avalanche {
  position: absolute; inset: 0; z-index: 5; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 3.5rem 1.5rem 2rem; text-align: center;
}
.avalanche__snow {
  position: absolute; inset: 0; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%23a9c6e0'%3E%3Crect x='8' y='12' width='4' height='4'/%3E%3Crect x='52' y='30' width='8' height='4'/%3E%3Crect x='80' y='6' width='4' height='4'/%3E%3Crect x='24' y='60' width='8' height='4'/%3E%3Crect x='70' y='76' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Crect x='36' y='8' width='4' height='4'/%3E%3Crect x='14' y='40' width='4' height='4'/%3E%3Crect x='86' y='52' width='4' height='4'/%3E%3Crect x='48' y='84' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E");
  animation: avalanche-slide 1.5s steps(15) .2s backwards;
}
.avalanche__snow::after { /* bumpy, foamy leading edge */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 56px;
  background: url("/assets/wave-cream.svg") repeat-x left bottom / 192px 56px;
  transform: scaleY(-1); image-rendering: pixelated;
}
@keyframes avalanche-slide {
  from { transform: translateY(calc(-100% - 60px)); }
  to   { transform: translateY(0); }
}
.avalanche__chunk {
  position: absolute; top: -24px; background: #fff; opacity: 0;
  box-shadow: 0 0 0 2px var(--sky);
  animation-name: chunk-tumble; animation-timing-function: steps(10); animation-fill-mode: backwards;
}
@keyframes chunk-tumble {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to   { opacity: 1; transform: translate(var(--dx), var(--fall)) rotate(270deg); }
}
.avalanche__msg {
  position: relative; max-width: 30rem;
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  animation: powder-pop .45s steps(4) 1.6s backwards;
}
.avalanche__title {
  font-family: var(--pixel); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1;
  color: var(--navy); margin: .5rem 0 .25rem;
  text-shadow: 4px 4px 0 var(--sky);
}
.avalanche__text { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1rem; }
@keyframes powder-pop {
  from { opacity: 0; transform: translateY(-16px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
