/* v07 The Climb: where the mountain sits on each page, the landing, the camp sign, between, the gate. */
.scene { position: absolute; left: 0; right: 0; top: 0; bottom: var(--sheet, 50%); }
body[data-phase=landing] .scene { top: 25%; bottom: 31%; }
body[data-phase=results] .scene { display: none; }

.pg { position: relative; min-height: 100%; }

/* ---------- landing ---------- */
body[data-phase=landing] .stage { display: block; top: 69%; height: calc(31% / var(--ss, 1)); }
.land-copy { position: absolute; left: 20px; right: 20px; top: calc(54px + var(--sat)); text-align: center; color: #fff; display: grid; gap: 12px; justify-items: center; }
.land-h { color: #fff; text-shadow: 0 4px 30px rgba(10, 10, 40, .5); max-width: 9.5em; }
.land-sub { margin: 0; font: 600 16px/1.4 var(--ui); color: rgba(255, 255, 255, .88); max-width: 22em; }
.land-ridge { position: absolute; left: 0; right: 0; bottom: calc(31% - 3px); height: 30px; pointer-events: none; }
.land-ridge svg { width: 100%; height: 100%; display: block; fill: var(--near); }
.land-ridge::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 60px; background: linear-gradient(180deg, rgba(26, 29, 77, .9), rgba(26, 29, 77, 0)); }
.land-foot { position: absolute; left: 16px; right: 16px; bottom: calc(18px + var(--sab)); display: grid; gap: 10px; justify-items: center; }
.land-pros { margin: 0; padding: 7px 12px; border-radius: 99px; background: rgba(10, 14, 40, .6); color: #fff; font: 700 12px/1.2 var(--ui); text-align: center; }
.land-fine { margin: 0; color: rgba(255, 255, 255, .85); font: 700 12px/1 var(--ui); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.land-err { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); font: 700 14px/1.35 var(--ui); text-align: center; }
.land-foot .cta { max-width: 420px; }

/* ---------- the sheet (camp sign, between, gate) ---------- */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 28px 28px 0 0; padding: 22px 18px calc(18px + var(--sab)); display: grid; gap: 14px; max-height: calc(100% - 120px); }
.sheet.in { animation: sheetin .6s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes sheetin { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* the camp sign: a wooden trail marker on top of the card */
.sign { justify-self: start; display: grid; gap: 3px; margin: -46px 0 0 -4px; padding: 11px 40px 12px 16px; color: #fff8e6; rotate: -2deg;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .12)), repeating-linear-gradient(176deg, #9b5a2a 0 9px, #8a4e22 9px 11px, #a86434 11px 22px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .45); animation: signin .7s cubic-bezier(.2, 1.4, .4, 1) .15s both; transform-origin: 0 100%; }
@keyframes signin { from { opacity: 0; transform: rotate(-12deg) translateY(-20px); } to { opacity: 1; transform: none; } }
.sign-n { font: 800 11px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.sign-name { font: 900 26px/1.05 var(--display); }
.sheet-lead { font: 700 17px/1.35 var(--ui); color: var(--ink); }
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.howto li { display: grid; gap: 6px; justify-items: start; padding: 10px; border-radius: 14px; background: var(--snow-2); font: 600 13px/1.25 var(--ui); color: var(--ink-2); }
.howto li b { display: block; color: var(--ink); font-weight: 800; }
.howto svg { width: 22px; height: 22px; color: var(--rope); }
.rate { display: grid; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }
.rate-q { margin: 8px 0 0; font: 800 15px/1.3 var(--ui); color: var(--ink); }
.rate-q span { display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 99px; background: var(--bad-soft); color: #c23a2f; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.rate-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate-n { min-height: 50px; border: 0; border-radius: 14px; cursor: pointer; font: 900 21px/1 var(--display); color: var(--ink);
  background: linear-gradient(0deg, rgba(255, 107, 74, calc(.05 + var(--i) * .045)), rgba(255, 107, 74, calc(.02 + var(--i) * .02))), #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); transition: transform .12s, background .2s, color .2s; touch-action: manipulation; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(820ms + var(--i) * 25ms); }
.rate.is-arming .rate-n { visibility: hidden; }
.rate-n:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line); }
.rate-n.is-picked { background: var(--rope); color: #fff; box-shadow: 0 0 0 4px rgba(255, 90, 78, .3); transform: scale(1.12); }
.rate.is-done .rate-n:not(.is-picked) { opacity: .35; }
.rate-ends { display: flex; justify-content: space-between; font: 700 11px/1 var(--ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- between ---------- */
.alt-big { position: absolute; left: 18px; top: calc(16px + var(--sat)); color: #fff; display: grid; gap: 2px; text-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
.alt-big small { font: 800 11px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.alt-big b { font: 900 46px/1 var(--display); font-variant-numeric: tabular-nums; }
.bt-title { min-height: 1em; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.move { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: var(--snow-2); }
.move img { width: 58px; height: 40px; object-fit: cover; border-radius: 9px; display: block; }
.move-txt { display: grid; gap: 2px; min-width: 0; }
.move-txt b { font: 800 15px/1.1 var(--ui); }
.move-txt small { font: 600 12px/1.2 var(--ui); color: var(--ink-3); }
.move-v { display: grid; justify-items: end; gap: 3px; text-align: right; }
.move-v em { font: 800 12px/1 var(--ui); font-style: normal; padding: 4px 8px; border-radius: 99px; }
.move.is-good .move-v em { background: var(--good-soft); color: #138a55; }
.move.is-bad .move-v em { background: var(--bad-soft); color: #c23a2f; }
.move-v small { font: 700 11px/1.2 var(--ui); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-next { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 2px dashed var(--line); }
.bt-next-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 900 20px/1 var(--display); }
.bt-next b { display: block; font: 800 15px/1.2 var(--ui); }
.bt-next small { display: block; font: 600 13px/1.35 var(--ui); color: var(--ink-2); margin-top: 2px; }

/* ---------- the gate ---------- */
.gate-q { position: absolute; left: 50%; top: calc(var(--sat) + 9%); translate: -50% 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 12px rgba(255, 255, 255, .25), 0 20px 40px -10px rgba(20, 26, 69, .5); }
.gate-q span { font: 900 54px/1 var(--display); color: var(--ink); animation: bob 1.8s ease-in-out infinite; }
.gate-form { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld-l { font: 800 13px/1 var(--ui); color: var(--ink-2); }
.fld-in { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .2s; }
.fld-in:focus-within { box-shadow: inset 0 0 0 2px var(--sun-2), 0 0 0 4px rgba(255, 107, 74, .18); }
.fld-in i { font: 800 18px/1 var(--ui); color: var(--ink-3); font-style: normal; }
.fld-ico { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.fld-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 700 18px/1 var(--ui); color: var(--ink); }
.fld-in input::placeholder { color: #a5abc8; font-weight: 600; }
.err { font: 700 13px/1.3 var(--ui); font-style: normal; color: #d93b30; }
.err:empty { display: none; }
.fld.is-err .fld-in { box-shadow: inset 0 0 0 2px var(--bad); animation: shake .4s ease; }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.fine { margin: 0; text-align: center; font: 600 12px/1.3 var(--ui); color: var(--ink-3); }

/* ---------- laptop ---------- */
@media (min-width: 900px) {
  .scene { left: 0; right: 520px; bottom: 0 !important; }
  body[data-phase=landing] .scene { left: 36%; right: 0; top: 4%; bottom: 30% !important; }
  body[data-phase=landing] .stage { top: 70%; height: calc(30% / var(--ss, 1)); }
  .land-ridge { bottom: calc(30% - 3px); height: 40px; }
  .land-copy { left: 7vw; right: auto; top: 15%; width: 34vw; text-align: left; justify-items: start; }
  .land-h { font-size: 68px; }
  .land-sub { font-size: 19px; }
  .land-foot { left: 7vw; right: auto; width: 30vw; bottom: calc(30% + 44px); justify-items: start; }
  .land-pros { background: rgba(10, 14, 40, .35); }
  .sheet { left: auto; right: 6vw; top: 50%; bottom: auto; width: 460px; border-radius: 26px; padding: 26px 24px 24px; translate: 0 -50%; max-height: calc(100% - 60px); }
  .sheet.in { animation-name: cardin; }
  @keyframes cardin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .rate-n { min-height: 50px; }
  .alt-big { left: 40px; top: 36px; }
  .alt-big b { font-size: 64px; }
  .gate-q { left: calc((100% - 520px) / 2); top: 16%; }
  .cloudbank { right: 520px; left: -6%; height: 58%; }
}
