:root {
  color-scheme: dark;
  --ink: #f3f5f2;
  --muted: #aab6b8;
  --dim: #708085;
  --panel: rgba(9, 18, 23, 0.94);
  --panel-solid: #0b151a;
  --line: rgba(255, 255, 255, 0.12);
  --soft-line: rgba(255, 255, 255, 0.07);
  --mint: #aee8cd;
  --mint-ink: #0a2b1d;
  --amber: #f5c56f;
  --green: #47c76d;
  --blue: #4f9ff4;
  --red: #ea6065;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071015;
  color: var(--ink);
}

button,
select,
input { font: inherit; }

button,
select { color: inherit; }

button { cursor: pointer; }

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: #111;
}

.skip-link:focus { transform: none; }

#experience,
#scene,
#scene canvas { width: 100%; height: 100%; }

#experience { position: relative; isolation: isolate; }

#scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 25%, #21343b 0, #0c171d 45%, #071015 100%);
}

#scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 25%, transparent 68%, rgba(0,0,0,.32));
}

#scene canvas { display: block; }

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, rgba(5, 12, 16, .88), rgba(5, 12, 16, .5));
  backdrop-filter: blur(18px);
}

.brand,
.mountain-title,
.top-actions,
.brand > span:last-child { display: flex; align-items: center; }

.brand { gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--mint);
  border: 1px solid rgba(174, 232, 205, .55);
  border-radius: 12px 12px 12px 3px;
  font-weight: 850;
  letter-spacing: -.08em;
}

.brand > span:last-child { align-items: flex-start; flex-direction: column; line-height: 1.05; }
.brand strong { letter-spacing: .13em; font-size: 13px; }
.brand small { margin-top: 5px; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.mountain-title { gap: 9px; font-size: 13px; }
.mountain-title > span:last-child { color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(174,232,205,.1); }

.top-actions { justify-content: flex-end; gap: 9px; }

button,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

button { padding: 10px 13px; }
button:hover { background: rgba(255, 255, 255, 0.1); }

.primary {
  border-color: transparent;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 750;
}

.primary:hover { background: #c8f2dc; }
.primary.compact { padding: 10px 15px; }
.icon-button { color: var(--muted); }

.map-tools {
  position: absolute;
  z-index: 9;
  top: 92px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 17, 22, .78);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

.segmented button {
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.segmented button.active { background: rgba(255,255,255,.12); color: white; }

.legend {
  position: absolute;
  z-index: 8;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  max-width: 490px;
  padding: 10px 13px;
  border: 1px solid var(--soft-line);
  border-radius: 11px;
  background: rgba(8,17,22,.7);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
  backdrop-filter: blur(12px);
}

.legend span { display: flex; align-items: center; gap: 6px; }
.legend i,
.ability-grid i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.legend .green, .ability-grid .green { color: var(--green); }
.legend .blue, .ability-grid .blue { color: var(--blue); }
.legend .black, .ability-grid .black { color: #f3f3ee; box-shadow: inset 0 0 0 2px #1c2225; }
.legend .double, .ability-grid .double { color: var(--red); }
.legend .lift { width: 12px; height: 2px; border-radius: 0; color: var(--amber); }

.planner {
  position: absolute;
  z-index: 12;
  top: 76px;
  right: 0;
  bottom: 0;
  width: min(428px, 37vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -24px 20px 80px rgba(0,0,0,.32);
  backdrop-filter: blur(24px);
  transition: transform .36s cubic-bezier(.2,.8,.2,1);
}

.planner.closed { transform: translateX(100%); }

.planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 25px 25px 16px;
}

.planner h1,
.planner h2,
.selection-card h2,
dialog h2 { margin: 0; letter-spacing: -.035em; }
.planner h1 { font-size: 30px; line-height: 1; }
.planner h2 { font-size: 21px; }
.eyebrow { margin: 0 0 8px; color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }

#planner-close,
#selection-close,
#about-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 20px;
}

.planner-tabs {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 25px 13px;
  background: linear-gradient(180deg, var(--panel-solid) 65%, transparent);
}

.planner-tabs button {
  padding: 10px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 12px;
}

.planner-tabs button.active { border-bottom-color: var(--mint); color: var(--ink); }

fieldset {
  margin: 0;
  padding: 20px 25px 22px;
  border: 0;
  border-top: 1px solid var(--soft-line);
}

legend { float: left; width: 100%; margin-bottom: 14px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
legend + * { clear: both; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-up label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 10px; }
select { width: 100%; min-width: 0; padding: 10px 30px 10px 10px; color: var(--ink); font-size: 11px; }
select option { background: #111c21; }
.compact-fields { margin-top: 13px; }

.field-help { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.policy-note { margin: 10px 0 0; padding: 9px 11px; border: 1px solid rgba(245,197,111,.25); border-radius: 9px; background: rgba(245,197,111,.08); color: #f8d99e; font-size: 10px; line-height: 1.4; }

.ability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ability-grid label,
.chip-grid label { position: relative; }
.ability-grid input,
.chip-grid input { position: absolute; opacity: 0; pointer-events: none; }
.ability-grid span {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ability-grid span small { color: var(--dim); font-size: 8px; font-weight: 500; line-height: 1.2; }
.ability-grid input:checked + span { border-color: rgba(174,232,205,.65); background: rgba(174,232,205,.12); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-grid span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; cursor: pointer; }
.chip-grid input:checked + span { border-color: rgba(174,232,205,.45); background: rgba(174,232,205,.12); color: var(--mint); }

.assessment { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.045); color: var(--muted); font-size: 10px; line-height: 1.45; }
.assessment strong { color: var(--mint); }

.recommendations { padding: 20px 25px 26px; border-top: 1px solid var(--soft-line); }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }
#match-count { padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--dim); font-size: 9px; }
#recommendation-list { display: grid; gap: 9px; }

.run-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  transition: border-color .2s, transform .2s, background .2s;
}
.run-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.055); }
.run-card.selected { border-color: rgba(174,232,205,.5); background: rgba(174,232,205,.07); }
.run-card .card-main { min-width: 0; cursor: pointer; }
.run-card .card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.difficulty-badge { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.difficulty-badge.d1 { background: var(--green); }
.difficulty-badge.d2 { background: var(--blue); }
.difficulty-badge.d3 { background: #f2f2ec; box-shadow: inset 0 0 0 2px #161d21; }
.difficulty-badge.d4 { background: var(--red); }
.run-card h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.run-card .resort-name { margin-left: auto; color: var(--dim); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.run-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.run-card .mini-stats { display: flex; gap: 9px; margin-top: 8px; color: var(--dim); font-size: 8px; }
.run-card .fly-card { align-self: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border-color: rgba(174,232,205,.25); color: var(--mint); font-size: 14px; }

.planner-footer { padding: 18px 25px 28px; border-top: 1px solid var(--soft-line); color: var(--dim); font-size: 9px; line-height: 1.5; }
.planner-footer p { margin: 0 0 10px; }
.planner-footer div { display: flex; gap: 12px; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.model-story { padding: 22px 25px 32px; }
.model-story > p:not(.metric-kicker) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.metric-kicker { margin: 0 0 7px; color: var(--amber); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.metric-grid div { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--soft-line); border-radius: 12px; background: rgba(255,255,255,.03); }
.metric-grid strong { font-size: 19px; letter-spacing: -.03em; }
.metric-grid span { margin-top: 3px; color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.source-stack { display: grid; gap: 6px; }
.source-stack article { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--soft-line); }
.source-stack article > span { color: var(--mint); font-size: 9px; }
.source-stack strong { font-size: 11px; }
.source-stack p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.truth-card { margin-top: 20px; padding: 15px; border: 1px solid rgba(245,197,111,.25); border-radius: 13px; background: rgba(245,197,111,.055); }
.truth-card strong { color: var(--amber); font-size: 11px; }
.truth-card p { margin: 7px 0 0; color: #c2beb1; font-size: 10px; line-height: 1.55; }

.selection-card {
  position: absolute;
  z-index: 11;
  left: 22px;
  bottom: 74px;
  width: min(330px, calc(100vw - 44px));
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(8,17,22,.88);
  box-shadow: 0 22px 70px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}
.selection-card #selection-close { position: absolute; top: 10px; right: 10px; }
.selection-card h2 { margin-right: 30px; font-size: 23px; }
.selection-card .primary { width: 100%; margin-top: 13px; }
.run-stats { display: flex; gap: 13px; margin-top: 9px; color: var(--muted); font-size: 9px; }

.flight-hud {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  width: min(680px, calc(100vw - 44px));
  padding: 15px 18px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(174,232,205,.24);
  border-radius: 15px;
  background: rgba(6,14,18,.92);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
}
.flight-copy { display: flex; min-width: 0; flex-direction: column; }
.flight-copy .eyebrow { margin-bottom: 3px; }
.flight-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flight-copy > span { margin-top: 2px; color: var(--dim); font-size: 9px; }
.flight-controls { display: flex; align-items: center; gap: 8px; }
.flight-controls button { padding: 8px 11px; font-size: 10px; }
.flight-controls label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.flight-controls select { width: auto; padding: 7px 24px 7px 8px; }
.flight-progress { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.1); }
.flight-progress span { display: block; width: 0; height: 100%; background: var(--mint); }

.loading {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #081116;
  transition: opacity .55s, visibility .55s;
}
.loading.done { opacity: 0; visibility: hidden; }
.loading-mark { position: relative; width: 92px; height: 55px; margin-bottom: 20px; }
.loading-mark i { position: absolute; bottom: 0; width: 0; height: 0; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 45px solid rgba(174,232,205,.32); }
.loading-mark i:nth-child(1) { left: 0; transform: scale(.72); transform-origin: bottom; }
.loading-mark i:nth-child(2) { left: 20px; border-bottom-color: var(--mint); }
.loading-mark i:nth-child(3) { right: 0; transform: scale(.65); transform-origin: bottom; border-bottom-color: rgba(245,197,111,.52); }
.loading #loading-message { margin: 0; color: var(--muted); font-size: 12px; }
.loading-track { width: 180px; height: 2px; margin-top: 15px; background: rgba(255,255,255,.1); }
.loading-track span { display: block; width: 10%; height: 100%; background: var(--mint); transition: width .3s; }

dialog {
  width: min(560px, calc(100vw - 34px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b151a;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
dialog::backdrop { background: rgba(1,6,9,.7); backdrop-filter: blur(7px); }
dialog #about-close { position: absolute; top: 16px; right: 16px; }
dialog h2 { font-size: 30px; }
dialog > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.65; }
dialog .attribution { padding-top: 12px; border-top: 1px solid var(--soft-line); color: var(--dim) !important; font-size: 9px !important; }

.north { position: absolute; z-index: 7; left: 27px; top: 210px; display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,.75); font-size: 9px; font-weight: 800; }
.north i { width: 1px; height: 25px; margin-top: 3px; background: linear-gradient(var(--mint), transparent); transform: rotate(21deg); transform-origin: top; }

.toast { position: absolute; z-index: 60; left: 50%; top: 90px; max-width: min(420px, calc(100vw - 40px)); padding: 10px 14px; transform: translate(-50%, -20px); border: 1px solid var(--line); border-radius: 10px; background: rgba(8,17,22,.94); color: var(--muted); font-size: 10px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .planner { width: min(430px, 48vw); }
  .mountain-title > span:last-child { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .mountain-title { display: none; }
}

@media (max-width: 700px) {
  .topbar { height: 64px; padding: 10px 12px; }
  .icon-button { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .planner {
    top: 64px;
    width: 100%;
    border-left: 0;
    transform: translateY(0);
  }
  .planner.closed { transform: translateY(100%); }
  .planner-head { padding: 20px 18px 14px; }
  .planner-tabs { padding-left: 18px; padding-right: 18px; }
  fieldset,
  .recommendations,
  .model-story,
  .planner-footer { padding-left: 18px; padding-right: 18px; }
  .map-tools { top: 76px; left: 10px; right: 10px; }
  .segmented { align-self: flex-start; }
  .segmented button { padding: 7px 8px; font-size: 10px; }
  .legend,
  .north { display: none; }
  .selection-card { left: 10px; bottom: 10px; }
  .ability-grid { grid-template-columns: 1fr 1fr; }
  .flight-hud { bottom: 10px; grid-template-columns: 1fr; padding: 13px; }
  .flight-controls { flex-wrap: wrap; }
  .flight-progress { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Return to the unified WAI collection. */
a.brand{color:inherit;text-decoration:none}a.brand:hover{opacity:.8}


/* WAI social icon footer */
.ski-social-icons{display:inline-flex;gap:7px;align-items:center;margin-left:auto}
.ski-social-icons .social-icon{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--muted)}
.ski-social-icons .social-icon:hover{color:var(--mint);border-color:var(--mint)}
.ski-social-icons svg{width:13px;height:13px;fill:currentColor;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ski-social-icons svg rect,.ski-social-icons svg circle{fill:none}
.planner-footer div{align-items:center;flex-wrap:wrap}

/* Site build 2026-10-13-A: user-visible version stamp for cache diagnosis */
.build-version { font-size: 10px; color: var(--mint); opacity: .75; white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 820px) { .build-version { display: none; } }
