/*!
 * Summit Path Booking — front-end styles
 * Layout: a climbing scene fills the form's frame; a frosted "trail register" panel
 * floats over it; an ascent profile above the panel tracks progress camp by camp.
 */

@property --spb-sky-top { syntax: '<color>'; inherits: true; initial-value: #f3c98b; }
@property --spb-sky-bot { syntax: '<color>'; inherits: true; initial-value: #9fd0d8; }
@property --spb-far     { syntax: '<color>'; inherits: true; initial-value: #8fb3a6; }
@property --spb-mid     { syntax: '<color>'; inherits: true; initial-value: #5f8a6e; }
@property --spb-near    { syntax: '<color>'; inherits: true; initial-value: #2e5240; }
@property --spb-cap     { syntax: '<color>'; inherits: true; initial-value: #6e9479; }

.spb {
  /* palette */
  --spb-pine: #16302a;
  --spb-pine-2: #2a4a40;
  --spb-moss: #4f7a4a;
  --spb-blaze: #e2632b;      /* painted trail-blaze orange */
  --spb-blaze-ink: #b8461a;
  --spb-snow: #f6f7f2;
  --spb-paper: rgba(250, 251, 247, .9);
  --spb-granite: #6f756e;
  --spb-line: rgba(22, 48, 42, .14);
  --spb-glacier: #9fc6d6;
  --spb-warn: #b3261e;
  /* type */
  --spb-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --spb-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --spb-mono: "Martian Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --spb-r: 18px;
  --spb-ease: cubic-bezier(.2, .8, .2, 1);

  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  color: var(--spb-pine);
  font-family: var(--spb-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: --spb-sky-top 1.4s var(--spb-ease), --spb-sky-bot 1.4s var(--spb-ease),
    --spb-far 1.4s var(--spb-ease), --spb-mid 1.4s var(--spb-ease),
    --spb-near 1.4s var(--spb-ease), --spb-cap 1.4s var(--spb-ease);
}
.spb *, .spb *::before, .spb *::after { box-sizing: border-box; }
:where(.spb) button { font: inherit; color: inherit; cursor: pointer; }
.spb :focus-visible { outline: 3px solid var(--spb-blaze); outline-offset: 2px; border-radius: 6px; }
.spb svg.spb-ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Altitude stages ---------- */
.spb[data-stage="0"] { --spb-sky-top:#f3c98b; --spb-sky-bot:#9fd0d8; --spb-far:#8fb3a6; --spb-mid:#5f8a6e; --spb-near:#2e5240; --spb-cap:#6e9479; --spb-forest:1;   --spb-flakes:0;  --spb-cloud-y:-30%; --spb-range-y:0px; }
.spb[data-stage="1"] { --spb-sky-top:#f6dcae; --spb-sky-bot:#8fc6dc; --spb-far:#8aa9ad; --spb-mid:#5d7f72; --spb-near:#314f45; --spb-cap:#b9cdc4; --spb-forest:.75; --spb-flakes:0;  --spb-cloud-y:-12%; --spb-range-y:14px; }
.spb[data-stage="2"] { --spb-sky-top:#d4e8ef; --spb-sky-bot:#79b4d4; --spb-far:#93a9b7; --spb-mid:#6b7f84; --spb-near:#3c5150; --spb-cap:#e6eef0; --spb-forest:.4;  --spb-flakes:0;  --spb-cloud-y:8%;   --spb-range-y:28px; }
.spb[data-stage="3"] { --spb-sky-top:#acd5ea; --spb-sky-bot:#5a98c6; --spb-far:#9fb2c4; --spb-mid:#77848f; --spb-near:#474f57; --spb-cap:#f4f8fa; --spb-forest:.12; --spb-flakes:.25; --spb-cloud-y:30%; --spb-range-y:44px; }
.spb[data-stage="4"] { --spb-sky-top:#80b6de; --spb-sky-bot:#3c74ad; --spb-far:#b4c3d3; --spb-mid:#8a95a1; --spb-near:#5a616b; --spb-cap:#ffffff; --spb-forest:0;   --spb-flakes:.55; --spb-cloud-y:52%; --spb-range-y:60px; }
.spb[data-stage="5"] { --spb-sky-top:#4f8cc7; --spb-sky-bot:#24518f; --spb-far:#c9d6e3; --spb-mid:#a3adb8; --spb-near:#6b727c; --spb-cap:#ffffff; --spb-forest:0;   --spb-flakes:.85; --spb-cloud-y:70%; --spb-range-y:76px; }
.spb[data-stage="6"] { --spb-sky-top:#24508f; --spb-sky-bot:#f5c48a; --spb-far:#e3e9f0; --spb-mid:#c5ccd5; --spb-near:#8a909a; --spb-cap:#ffffff; --spb-forest:0;   --spb-flakes:.2;  --spb-cloud-y:86%; --spb-range-y:96px; }

/* ---------- Scene ---------- */
.spb-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.spb-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--spb-sky-top), var(--spb-sky-bot)); }
.spb-sun {
  position: absolute; width: 140px; height: 140px; border-radius: 50%; right: 12%; top: 9%;
  background: radial-gradient(circle, rgba(255,245,215,.95) 0 34%, rgba(255,230,170,.35) 35%, rgba(255,230,170,0) 70%);
  transition: transform 1.6s var(--spb-ease), opacity 1.2s;
}
.spb[data-stage="4"] .spb-sun, .spb[data-stage="5"] .spb-sun { transform: translateY(-30px) scale(.8); opacity: .75; }
.spb[data-stage="6"] .spb-sun { transform: translate(-30%, 160%) scale(1.25); opacity: 1; }
.spb-range { position: absolute; left: -2%; width: 104%; bottom: 0; transition: transform 1.6s var(--spb-ease); }
.spb-range path { transition: fill 1.4s; }
.spb-range--far  { height: 62%; transform: translateY(calc(var(--spb-range-y) * .4)); }
.spb-range--mid  { height: 48%; transform: translateY(calc(var(--spb-range-y) * .9)); }
.spb-range--near { height: 30%; transform: translateY(calc(var(--spb-range-y) * 1.6)); }
.spb-range--far path { fill: var(--spb-far); }
.spb-range--near path { fill: var(--spb-near); }
.spb-forest { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; opacity: var(--spb-forest); transition: opacity 1.2s, transform 1.6s var(--spb-ease); transform: translateY(calc(var(--spb-range-y) * 2.2)); }
.spb-forest path { fill: #1b3a2f; }
.spb-clouds { position: absolute; inset: 0; transform: translateY(var(--spb-cloud-y)); transition: transform 1.8s var(--spb-ease); }
.spb-cloud {
  position: absolute; height: 34px; border-radius: 40px; background: rgba(255,255,255,.75);
  filter: blur(1px); animation: spb-drift linear infinite;
}
.spb-cloud::before, .spb-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.spb-cloud::before { width: 46%; height: 160%; left: 16%; top: -70%; }
.spb-cloud::after  { width: 32%; height: 130%; left: 52%; top: -48%; }
.spb[data-stage="6"] .spb-cloud { background: rgba(255,246,236,.92); }
@keyframes spb-drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.spb-flakes { position: absolute; inset: 0; opacity: var(--spb-flakes); transition: opacity 1.4s; }
.spb-flake { position: absolute; top: -10px; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: spb-fall linear infinite; }
@keyframes spb-fall { to { transform: translate(40px, 900px); } }

/* ---------- Frame ---------- */
.spb-frame { position: relative; padding: clamp(16px, 3.4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.spb [hidden] { display: none !important; }
.spb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #fff; text-shadow: 0 1px 12px rgba(10,30,25,.35); }
.spb-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spb-eyebrow { font-family: var(--spb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.spb-title { margin: 0; font-family: var(--spb-display); font-weight: 800; font-size: clamp(30px, 5vw, 48px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.spb-alt { text-align: right; font-family: var(--spb-mono); }
.spb-alt-num { display: block; font-size: clamp(24px, 3.6vw, 34px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.spb-alt-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }

/* ---------- Ascent profile (progress) ---------- */
.spb-profile { position: relative; height: 150px; margin-inline: 4px; }
.spb-profile svg.spb-prof-svg { position: absolute; inset: 0 0 28px 0; width: 100%; height: calc(100% - 28px); overflow: visible; }
.spb-prof-area { fill: rgba(255,255,255,.18); }
.spb-prof-line { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.spb-prof-done { fill: rgba(255,255,255,.34); }
.spb-prof-done-line { fill: none; stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.spb-camp {
  position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(22,48,42,.55); padding: 0; transition: background .3s, transform .3s;
}
.spb-camp[data-done="1"] { background: var(--spb-blaze); cursor: pointer; }
.spb-camp[data-done="1"]:hover { transform: translate(-50%, -50%) scale(1.25); }
.spb-camp[disabled] { cursor: default; }
.spb-camp-lbl {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--spb-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 6px rgba(10,30,25,.6); pointer-events: none;
}
.spb-camp[data-cur="1"] .spb-camp-lbl { font-weight: 700; }
.spb-camp[data-i="0"] .spb-camp-lbl { left: -4px; transform: none; }
.spb-camp[data-i="6"] .spb-camp-lbl { left: auto; right: -4px; transform: none; }
.spb-camps-row { position: absolute; inset: 0 0 28px 0; }
.spb-hiker { position: absolute; width: 30px; height: 38px; transform: translate(-50%, -94%); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.spb-hiker.is-walking svg { animation: spb-bob .32s ease-in-out infinite alternate; }
@keyframes spb-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3px) rotate(3deg); } }
.spb-print { position: absolute; width: 5px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); animation: spb-print-in .4s ease-out both; pointer-events: none; }
@keyframes spb-print-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.2); } }
.spb-summit-flag { position: absolute; transform: translate(-2px, -100%); width: 26px; height: 30px; pointer-events: none; }
.spb-summit-flag .pole { transform-origin: bottom; transform: scaleY(0); }
.spb-summit-flag .cloth { transform-origin: left center; transform: scaleX(0); }
.spb.is-summited .spb-summit-flag .pole { animation: spb-grow .5s .1s var(--spb-ease) forwards; }
.spb.is-summited .spb-summit-flag .cloth { animation: spb-unfurl .6s .55s var(--spb-ease) forwards, spb-wave 1.6s 1.2s ease-in-out infinite alternate; }
@keyframes spb-grow { to { transform: scaleY(1); } }
@keyframes spb-unfurl { to { transform: scaleX(1); } }
@keyframes spb-wave { from { transform: scaleX(1) skewY(0); } to { transform: scaleX(.9) skewY(-6deg); } }

/* ---------- Panel ---------- */
.spb-panel {
  position: relative; background: var(--spb-paper); border-radius: 24px; padding: clamp(18px, 3vw, 34px);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 25, .55), inset 0 1px 0 rgba(255,255,255,.7);
  min-height: 420px;
}
.spb-panel.is-shaking { animation: spb-rockfall .5s; }
@keyframes spb-rockfall { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.spb-step { display: none; }
.spb-step.is-active { display: block; animation: spb-step-in .6s var(--spb-ease) both; }
.spb-step.is-back { animation-name: spb-step-back; }
@keyframes spb-step-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes spb-step-back { from { opacity: 0; transform: translateY(-26px); } }
.spb-step-head { display: grid; gap: 4px; margin-bottom: 22px; max-width: 62ch; }
.spb-step-kicker { font-family: var(--spb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--spb-blaze-ink); }
.spb-step-title { margin: 0; font-family: var(--spb-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.spb-step-title:focus { outline: none; }
.spb-step-lede { margin: 4px 0 0; color: var(--spb-granite); }
.spb-sub { margin: 26px 0 12px; font-family: var(--spb-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Step 1 — Trails ---------- */
.spb-treks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.spb-trek {
  position: relative; text-align: left; border: 1.5px solid var(--spb-line); background: #fff; border-radius: var(--spb-r);
  padding: 16px; display: grid; gap: 10px; overflow: hidden; min-width: 0;
  transition: transform .35s var(--spb-ease), border-color .25s, box-shadow .35s;
}
.spb-trek:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(22,48,42,.5); }
.spb-trek[aria-checked="true"] { border-color: var(--spb-blaze); box-shadow: 0 0 0 3px rgba(226,99,43,.22), 0 16px 30px -18px rgba(22,48,42,.5); }
.spb-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.spb-topo path { fill: none; stroke: #c9d6c6; stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 0; }
.spb-trek:hover .spb-topo path, .spb-trek[aria-checked="true"] .spb-topo path { stroke: #e9b79c; animation: spb-contour 2.6s linear infinite; }
@keyframes spb-contour { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.spb-trek > *:not(.spb-topo) { position: relative; z-index: 1; }
.spb-trek-region { font-family: var(--spb-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--spb-granite); }
.spb-trek-name { font-family: var(--spb-display); font-size: 25px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.spb-spark { width: 100%; height: 44px; display: block; }
.spb-spark path.a { fill: rgba(79,122,74,.18); }
.spb-spark path.l { fill: none; stroke: var(--spb-moss); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.spb-trek[aria-checked="true"] .spb-spark path.l { stroke: var(--spb-blaze); }
.spb-trek[aria-checked="true"] .spb-spark path.a { fill: rgba(226,99,43,.16); }
.spb-trek-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--spb-pine-2); }
.spb-trek-meta b { font-family: var(--spb-mono); font-weight: 600; font-size: 12px; }
.spb-trek-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; border-top: 1px dashed var(--spb-line); padding-top: 10px; }
.spb-lung { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--spb-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--spb-granite); }
.spb-lung i { display: inline-block; width: 6px; height: 14px; border-radius: 3px; background: #dfe4dc; }
.spb-lung i.on { background: var(--spb-moss); }
.spb-lung[data-hard="1"] i.on { background: var(--spb-blaze); }
.spb-price { font-family: var(--spb-mono); font-weight: 600; font-size: 14px; white-space: nowrap; }
.spb-price small { font-weight: 400; font-size: 10px; color: var(--spb-granite); }
.spb-check { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--spb-blaze); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--spb-ease); z-index: 2; }
.spb-trek[aria-checked="true"] .spb-check { transform: scale(1); }

/* ---------- Step 2 — Weather window ---------- */
.spb-months { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.spb-month {
  flex: 0 0 auto; scroll-snap-align: start; width: 92px; border: 1.5px solid var(--spb-line); border-radius: 14px;
  padding: 10px 8px; display: grid; justify-items: center; gap: 4px; background: #fff; transition: transform .25s, border-color .25s;
}
.spb-month:hover { transform: translateY(-2px); }
.spb-month[aria-pressed="true"] { border-color: var(--spb-pine); background: var(--spb-pine); color: #fff; }
.spb-month-name { font-family: var(--spb-display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; }
.spb-month-yr { font-family: var(--spb-mono); font-size: 10px; opacity: .7; }
.spb-season { font-size: 10px; font-family: var(--spb-mono); text-transform: uppercase; letter-spacing: .06em; }
.spb-season[data-s="prime"] svg { color: #d9911b; }
.spb-season[data-s="shoulder"] svg { color: #5b8fb0; }
.spb-season[data-s="off"] svg { color: #7c8792; }
.spb-month[aria-pressed="true"] .spb-season svg { color: #fff; }
.spb-window { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.spb-cal { background: #fff; border: 1.5px solid var(--spb-line); border-radius: var(--spb-r); padding: 14px; }
.spb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.spb-cal-dow { font-family: var(--spb-mono); font-size: 10px; text-align: center; color: var(--spb-granite); padding-bottom: 4px; }
.spb-day {
  height: 44px; width: 100%; border: 0; border-radius: 10px; background: transparent; font-family: var(--spb-mono); font-size: 12.5px;
  display: grid; place-items: center; position: relative; color: #b5bbb3; cursor: default;
}
.spb-day.is-dep { background: #eef3ea; color: var(--spb-pine); cursor: pointer; font-weight: 600; }
.spb-day.is-dep:hover { background: #dfe9d8; }
.spb-day.is-dep::after { content: ""; position: absolute; bottom: 5px; width: 14px; height: 3px; border-radius: 2px; background: var(--spb-moss); }
.spb-day.is-low::after { background: var(--spb-blaze); }
.spb-day.is-full { background: #f3eeea; color: #b9a99e; text-decoration: line-through; cursor: not-allowed; }
.spb-day.is-full::after { display: none; }
.spb-day[aria-pressed="true"] { background: var(--spb-blaze); color: #fff; }
.spb-day[aria-pressed="true"]::after { background: #fff; }
.spb-cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--spb-granite); }
.spb-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.spb-cal-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--spb-moss); display: inline-block; }
.spb-cal-legend i.low { background: var(--spb-blaze); }
.spb-detail { border-radius: var(--spb-r); padding: 18px; color: #fff; display: grid; align-content: start; gap: 12px; min-height: 240px; position: relative; overflow: hidden; background: linear-gradient(160deg, #3e6f8f, #16302a); transition: background .8s; }
.spb-detail[data-s="prime"] { background: linear-gradient(160deg, #e2a04a, #2f5e72 70%); }
.spb-detail[data-s="shoulder"] { background: linear-gradient(160deg, #7fa8c4, #2a4a40 75%); }
.spb-detail[data-s="off"] { background: linear-gradient(160deg, #6f7c88, #2b333a 75%); }
.spb-detail h4 { margin: 0; font-family: var(--spb-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.spb-detail p { margin: 0; font-size: 14px; opacity: .92; }
.spb-detail .spb-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.spb-detail .spb-kv dt { font-family: var(--spb-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; padding-top: 2px; }
.spb-detail .spb-kv dd { margin: 0; font-weight: 600; }
.spb-tents { display: flex; flex-wrap: wrap; gap: 4px; }
.spb-tents svg { width: 22px; height: 22px; }
.spb-tents .t-free { color: #fff; opacity: .95; }
.spb-tents .t-taken { color: #fff; opacity: .3; }

/* ---------- Step 3 — Rope team ---------- */
.spb-team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.spb-rope-wrap { background: linear-gradient(180deg, #eef4f6, #fff); border: 1.5px solid var(--spb-line); border-radius: var(--spb-r); padding: 16px; }
.spb-rope { position: relative; height: 150px; }
.spb-rope svg.rope { position: absolute; inset: 0; width: 100%; height: 100%; }
.spb-rope svg.rope path { fill: none; stroke: var(--spb-blaze); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 9 4; }
.spb-climber { position: absolute; width: 34px; height: 46px; transform: translate(-50%, -12%); animation: spb-clip .7s var(--spb-ease) both; }
.spb-climber svg { width: 100%; height: 100%; }
.spb-climber.is-leaving { animation: spb-unclip .35s ease-in forwards; }
@keyframes spb-clip { 0% { opacity: 0; transform: translate(-50%, -140%) rotate(-25deg); } 70% { transform: translate(-50%, -4%) rotate(6deg); } 100% { opacity: 1; transform: translate(-50%, -12%) rotate(0); } }
@keyframes spb-unclip { to { opacity: 0; transform: translate(-50%, 60%) rotate(30deg); } }
.spb-stepper { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.spb-round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--spb-pine); background: #fff; display: grid; place-items: center; transition: background .2s; }
.spb-round:hover:not([disabled]) { background: var(--spb-pine); color: #fff; }
.spb-round[disabled] { opacity: .35; cursor: not-allowed; }
.spb-count { font-family: var(--spb-display); font-size: 46px; font-weight: 800; min-width: 2ch; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.spb-count-lbl { text-align: center; font-family: var(--spb-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--spb-granite); }
.spb-names { display: grid; gap: 8px; }
.spb-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff4ec; color: var(--spb-blaze-ink); font-size: 13.5px; margin-top: 12px; }
.spb-note.is-good { background: #edf4e8; color: #305c2c; }
.spb-fit { display: grid; gap: 8px; }
.spb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spb-chip { border: 1.5px solid var(--spb-line); background: #fff; padding: 9px 14px; border-radius: 999px; font-size: 14px; transition: all .2s; }
.spb-chip:hover { border-color: var(--spb-pine); }
.spb-chip[aria-pressed="true"] { background: var(--spb-pine); border-color: var(--spb-pine); color: #fff; }
.spb-match { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 14px; border-radius: var(--spb-r); background: #fff; border: 1.5px solid var(--spb-line); }
.spb-ring { width: 74px; height: 74px; flex: none; }
.spb-ring circle { fill: none; stroke-width: 7; }
.spb-ring .bg { stroke: #e7ebe4; }
.spb-ring .fg { stroke: var(--spb-moss); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s var(--spb-ease), stroke .4s; }
.spb-ring text { font-family: var(--spb-mono); font-size: 17px; font-weight: 600; fill: var(--spb-pine); }
.spb-match-txt { font-size: 14px; min-width: 0; }
.spb-match-txt strong { display: block; font-family: var(--spb-display); font-size: 20px; text-transform: uppercase; }
.spb-link { background: none; border: 0; padding: 0; color: var(--spb-blaze-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Fields ---------- */
.spb-field { display: grid; gap: 5px; min-width: 0; }
.spb-field label, .spb-label { font-family: var(--spb-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--spb-pine-2); }
.spb-field input, .spb-field select, .spb-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--spb-pine); background: #fff; border: 1.5px solid var(--spb-line);
  border-radius: 12px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
.spb-field textarea { min-height: 84px; resize: vertical; }
.spb-field input:focus, .spb-field select:focus, .spb-field textarea:focus { outline: none; border-color: var(--spb-moss); box-shadow: 0 0 0 3px rgba(79,122,74,.18); }
.spb-field [aria-invalid="true"] { border-color: var(--spb-warn); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.spb-err { font-size: 12.5px; color: var(--spb-warn); min-height: 0; }
.spb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.spb-grid2 .spb-wide { grid-column: 1 / -1; }

/* ---------- Step 4 — Pack ---------- */
.spb-pack { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.spb-gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.spb-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: #fff; border: 1.5px solid var(--spb-line); border-radius: 14px; padding: 12px; transition: border-color .2s; }
.spb-item.has-qty { border-color: var(--spb-moss); }
.spb-item-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; background: #eef3ea; display: grid; place-items: center; color: var(--spb-pine); }
.spb-item-ic svg { width: 24px; height: 24px; }
.spb-item-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.spb-item-meta { font-family: var(--spb-mono); font-size: 11px; color: var(--spb-granite); }
.spb-item-ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.spb-mini { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--spb-line); background: #fff; display: grid; place-items: center; }
.spb-mini:hover:not([disabled]) { border-color: var(--spb-pine); }
.spb-mini[disabled] { opacity: .35; cursor: not-allowed; }
.spb-mini svg { width: 14px; height: 14px; }
.spb-qty { font-family: var(--spb-mono); font-weight: 600; min-width: 2ch; text-align: center; }
.spb-backpack { position: sticky; top: 16px; background: #fff; border: 1.5px solid var(--spb-line); border-radius: var(--spb-r); padding: 16px; display: grid; justify-items: center; gap: 8px; }
.spb-backpack svg.bp { width: 140px; height: 170px; overflow: visible; }
.spb-backpack.is-bump svg.bp { animation: spb-bump .45s var(--spb-ease); }
@keyframes spb-bump { 30% { transform: scale(1.07, .95); } 60% { transform: scale(.97, 1.04); } }
.bp-fill { transition: y .6s var(--spb-ease), height .6s var(--spb-ease); fill: var(--spb-moss); }
.bp-fill.is-heavy { fill: var(--spb-blaze); }
.spb-weight { font-family: var(--spb-mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spb-weight-lbl { font-size: 12.5px; color: var(--spb-granite); text-align: center; }
.spb-fly { position: fixed; z-index: 99999; width: 30px; height: 30px; color: var(--spb-blaze); pointer-events: none; transition: transform .7s cubic-bezier(.5,-0.3,.7,1), opacity .7s; }
.spb-fly svg { width: 100%; height: 100%; }
.spb-shelters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spb-shelter { border: 1.5px solid var(--spb-line); border-radius: var(--spb-r); background: #fff; padding: 0; overflow: hidden; text-align: left; display: grid; transition: border-color .25s, transform .3s var(--spb-ease); min-width: 0; }
.spb-shelter:hover { transform: translateY(-3px); }
.spb-shelter[aria-checked="true"] { border-color: var(--spb-blaze); box-shadow: 0 0 0 3px rgba(226,99,43,.2); }
.spb-shelter-scene { height: 74px; position: relative; display: grid; place-items: end center; padding-bottom: 8px; color: #fff; background: linear-gradient(180deg, #8ec1dc, #d6ead9); transition: background .6s; }
.spb-shelter-scene svg.spb-ic { width: 38px; height: 38px; stroke-width: 1.4; color: var(--spb-pine); transition: color .6s; }
.spb-shelter-scene .orb { position: absolute; top: 10px; right: 14px; width: 16px; height: 16px; border-radius: 50%; background: #ffd77a; box-shadow: 0 0 12px #ffd77a; transition: all .6s; }
.spb-shelter-scene .stars { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 40% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 40%, #fff, transparent), radial-gradient(1px 1px at 85% 22%, #fff, transparent), radial-gradient(1px 1px at 12% 60%, #fff, transparent); }
.spb-shelter:hover .spb-shelter-scene, .spb-shelter[aria-checked="true"] .spb-shelter-scene { background: linear-gradient(180deg, #13234a, #34507a); }
.spb-shelter:hover .spb-shelter-scene .stars, .spb-shelter[aria-checked="true"] .spb-shelter-scene .stars { opacity: 1; }
.spb-shelter:hover .spb-shelter-scene .orb, .spb-shelter[aria-checked="true"] .spb-shelter-scene .orb { background: #f2f0e6; box-shadow: 0 0 10px #f2f0e6; }
.spb-shelter:hover .spb-shelter-scene svg.spb-ic, .spb-shelter[aria-checked="true"] .spb-shelter-scene svg.spb-ic { color: #ffe3a8; }
.spb-shelter-body { padding: 12px; display: grid; gap: 2px; }
.spb-shelter-body strong { font-family: var(--spb-display); font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.spb-shelter-body span { font-size: 12.5px; color: var(--spb-granite); }
.spb-shelter-body b { font-family: var(--spb-mono); font-size: 12px; margin-top: 4px; }

/* ---------- Step 5 — Basecamp ---------- */
.spb-base { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.spb-register { background: #fffdf6; border: 1.5px solid #e6dcc2; border-radius: var(--spb-r); padding: 16px; display: grid; gap: 10px; }
.spb-register h4 { margin: 0; font-family: var(--spb-display); font-size: 21px; text-transform: uppercase; }
.spb-register p { margin: 0; font-size: 13.5px; color: #6a5d43; font-style: italic; }
.spb-sig { position: relative; border-radius: 10px; background: repeating-linear-gradient(180deg, transparent 0 31px, #e8dcbc 31px 32px), #fffaf0; border: 1.5px dashed #d8c89f; touch-action: none; }
.spb-sig canvas { display: block; width: 100%; height: 130px; cursor: crosshair; }
.spb-sig-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #b0a07c; pointer-events: none; transition: opacity .3s; }
.spb-sig.has-ink .spb-sig-hint { opacity: 0; }
.spb-sig[aria-invalid="true"] { border-color: var(--spb-warn); }
.spb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.spb-checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.spb-checkline input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--spb-blaze); flex: none; }
.spb-ghost { border: 1.5px solid var(--spb-line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.spb-ghost:hover { border-color: var(--spb-pine); }

/* ---------- Step 6 — Permit ---------- */
.spb-permit-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.spb-permit {
  position: relative; background: #fbf8ef; border-radius: 6px; padding: 26px 26px 22px; color: #2b2a24;
  box-shadow: 0 2px 0 #e4dbc4, 0 18px 40px -20px rgba(40,30,10,.5);
  background-image: radial-gradient(circle at 0 50%, transparent 0 10px, #fbf8ef 10.5px), radial-gradient(circle at 100% 50%, transparent 0 10px, #fbf8ef 10.5px);
  overflow: hidden;
}
.spb-permit::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid #c9b88f; border-radius: 4px; pointer-events: none; }
.spb-permit.is-stamped { animation: spb-thud .35s .35s; }
@keyframes spb-thud { 30% { transform: translateY(4px) scale(.99); } }
.spb-permit-water { position: absolute; right: -30px; bottom: -20px; width: 260px; opacity: .07; pointer-events: none; }
.spb-permit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1.5px dashed #c9b88f; padding-bottom: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.spb-permit-head h3 { margin: 0; font-family: var(--spb-display); font-size: 30px; line-height: .95; text-transform: uppercase; letter-spacing: .03em; }
.spb-permit-no { font-family: var(--spb-mono); font-size: 11px; text-align: right; color: #7a6c4a; }
.spb-permit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.spb-permit-grid .full { grid-column: 1 / -1; }
.spb-pf dt { font-family: var(--spb-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a7a55; }
.spb-pf dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.spb-permit-sig { margin-top: 14px; display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.spb-permit-sig img { height: 46px; max-width: 180px; border-bottom: 1px solid #c9b88f; }
.spb-barcode { height: 34px; width: 150px; background: repeating-linear-gradient(90deg, #2b2a24 0 2px, transparent 2px 4px, #2b2a24 4px 5px, transparent 5px 8px, #2b2a24 8px 11px, transparent 11px 12px); opacity: .8; }
.spb-stamp {
  position: absolute; right: 26px; top: 64px; width: 150px; height: 150px; border-radius: 50%; border: 4px double var(--spb-blaze-ink);
  color: var(--spb-blaze-ink); display: grid; place-items: center; text-align: center; font-family: var(--spb-display); font-weight: 800; text-transform: uppercase;
  line-height: .95; font-size: 22px; opacity: 0; transform: scale(2.6) rotate(-4deg); pointer-events: none; mix-blend-mode: multiply;
}
.spb-stamp small { display: block; font-family: var(--spb-mono); font-size: 9px; font-weight: 500; letter-spacing: .12em; margin-top: 4px; }
.spb-permit.is-stamped .spb-stamp { animation: spb-stamp .45s cubic-bezier(.3,1.6,.6,1) forwards; }
@keyframes spb-stamp { 0% { opacity: 0; transform: scale(2.6) rotate(-4deg); } 60% { opacity: .95; transform: scale(.94) rotate(-14deg); } 100% { opacity: .85; transform: scale(1) rotate(-12deg); } }
.spb-bill { background: #fff; border: 1.5px solid var(--spb-line); border-radius: var(--spb-r); padding: 16px; display: grid; gap: 8px; }
.spb-bill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.spb-bill-row span:last-child { font-family: var(--spb-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spb-bill-row.is-disc span:last-child { color: var(--spb-moss); }
.spb-bill-row.is-total { border-top: 1.5px solid var(--spb-pine); padding-top: 10px; font-weight: 700; font-size: 16px; }
.spb-bill-row.is-dep { background: #fff4ec; margin: 4px -8px 0; padding: 8px; border-radius: 10px; color: var(--spb-blaze-ink); font-weight: 700; }
.spb-bill small { color: var(--spb-granite); font-size: 12px; }

/* ---------- Summit ---------- */
.spb-summit { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 10px 6px; }
.spb-prayer { width: 100%; max-width: 640px; height: 60px; }
.spb-prayer path { fill: none; stroke: #8b7d63; stroke-width: 1; }
.spb-prayer rect { transform-box: fill-box; transform-origin: top center; animation: spb-flutter 1.4s ease-in-out infinite alternate; }
@keyframes spb-flutter { from { transform: skewX(-6deg) scaleY(1); } to { transform: skewX(8deg) scaleY(.92); } }
.spb-summit h2 { margin: 0; font-family: var(--spb-display); font-size: clamp(40px, 7vw, 72px); font-weight: 900; line-height: .9; text-transform: uppercase; text-wrap: balance; }
.spb-summit p { margin: 0; max-width: 52ch; color: var(--spb-pine-2); }
.spb-ref { font-family: var(--spb-mono); font-size: 18px; font-weight: 600; background: var(--spb-pine); color: #fff; padding: 8px 16px; border-radius: 10px; letter-spacing: .06em; }
.spb-summit-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.spb-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 24px; }
.spb-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: spb-confetti 2.6s ease-in forwards; }
@keyframes spb-confetti { to { transform: translate(var(--dx), 640px) rotate(var(--rot)); opacity: 0; } }

/* ---------- Nav ---------- */
.spb-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--spb-line); flex-wrap: wrap; }
.spb-back { border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 4px; color: var(--spb-pine-2); }
.spb-back:hover { color: var(--spb-pine); }
.spb-back[hidden] { display: none; }
.spb-nav-mid { flex: 1; display: flex; justify-content: center; min-width: 0; }
.spb-total-pill { font-family: var(--spb-mono); font-size: 12.5px; background: rgba(22,48,42,.06); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.spb-total-pill b { font-weight: 700; }
.spb-next {
  display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 8px 20px 8px 8px;
  background: var(--spb-pine); color: #fff; font-weight: 700; font-size: 15px; transition: background .25s, transform .2s;
}
.spb-next:hover { background: #0e221d; }
.spb-next:active { transform: scale(.97); }
.spb-next.is-stamp { background: var(--spb-blaze); }
.spb-next.is-stamp:hover { background: var(--spb-blaze-ink); }
.spb-next[aria-busy="true"] { opacity: .7; cursor: progress; }
.spb-compass { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.spb-compass svg { width: 34px; height: 34px; }
.spb-needle { transform-origin: 17px 17px; transform: rotate(-35deg); transition: transform .7s cubic-bezier(.3,1.8,.5,1); }
.spb-next:hover .spb-needle, .spb-next:focus-visible .spb-needle { transform: rotate(90deg); }
.spb-next.is-lost .spb-needle { animation: spb-lost 1s ease-in-out; }
@keyframes spb-lost { 0% { transform: rotate(90deg); } 25% { transform: rotate(-200deg); } 45% { transform: rotate(140deg); } 60% { transform: rotate(40deg); } 75% { transform: rotate(110deg); } 100% { transform: rotate(-35deg); } }
.spb-next-txt { display: grid; text-align: left; line-height: 1.1; }
.spb-next-txt small { font-family: var(--spb-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.spb-cairn-msg { display: flex; align-items: center; gap: 10px; color: var(--spb-warn); font-size: 14px; font-weight: 600; margin-top: 14px; }
.spb-cairn-msg svg { width: 26px; height: 26px; }
.spb-cairn-msg svg ellipse { animation: spb-stack .5s var(--spb-ease) both; }
.spb-cairn-msg svg ellipse:nth-child(2) { animation-delay: .08s; }
.spb-cairn-msg svg ellipse:nth-child(3) { animation-delay: .16s; }
.spb-cairn-msg svg ellipse:nth-child(4) { animation-delay: .24s; }
@keyframes spb-stack { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Resume banner + toast ---------- */
.spb-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; background: rgba(22,48,42,.82); color: #fff; padding: 12px 16px; border-radius: 16px; font-size: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spb-banner-acts { display: flex; gap: 8px; }
.spb-banner button { border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.spb-banner button.pri { background: var(--spb-blaze); border-color: var(--spb-blaze); }
.spb-toast { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--spb-pine); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; display: flex; gap: 8px; align-items: center; transition: all .35s var(--spb-ease); pointer-events: none; z-index: 5; max-width: calc(100% - 32px); }
.spb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.spb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .spb-window, .spb-team, .spb-pack, .spb-base, .spb-permit-wrap { grid-template-columns: minmax(0, 1fr); }
  .spb-backpack { position: static; grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .spb-backpack svg.bp { width: 90px; height: 110px; grid-row: span 3; }
}
@media (max-width: 600px) {
  .spb { border-radius: 20px; font-size: 15px; }
  .spb-profile { height: 112px; }
  .spb-camp-lbl { display: none; }
  .spb-camp[data-cur="1"] .spb-camp-lbl { display: block; }
  .spb-shelters { grid-template-columns: minmax(0, 1fr); }
  .spb-shelter { grid-template-columns: 96px 1fr; }
  .spb-shelter-scene { height: auto; min-height: 84px; }
  .spb-grid2, .spb-permit-grid { grid-template-columns: minmax(0, 1fr); }
  .spb-nav-mid { order: -1; flex-basis: 100%; }
  .spb-next { margin-left: auto; }
  .spb-stamp { width: 110px; height: 110px; font-size: 17px; top: 90px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .spb, .spb *, .spb *::before, .spb *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .spb-cloud, .spb-flake { display: none; }
}

/* Summit Pass print view */
@media print {
  body * { visibility: hidden !important; }
  .spb-permit, .spb-permit * { visibility: visible !important; }
  .spb-permit { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
}
