/* ============================================
   PEAKPOINT SAT PREP - PeakPoint Climb
   ============================================ */

.climb-screen {
  background: #eff9ff;
}

.climb-main {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgba(14, 165, 233, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0, #eff9ff 360px);
}

.climb-screen.sidebar-collapsed .climb-main {
  margin-left: 58px;
}

.climb-hero,
.climb-hud,
.achievement-row,
.climb-finish {
  width: min(1180px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.climb-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 0 28px;
}

.climb-hero .eyebrow {
  margin-bottom: 10px;
}

.climb-hero h1 {
  font-size: 3.65rem;
  line-height: 1;
  letter-spacing: 0;
}

.climb-hero-copy > p:last-child {
  max-width: 650px;
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.current-stage-pill,
.state-pill,
.xp-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.current-stage-pill {
  min-height: 44px;
  gap: 9px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  padding: 0 16px;
  box-shadow: var(--card-shadow);
}

.current-stage-pill i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.climb-primary,
.checkpoint-footer button,
.climb-finish button,
.dialog-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.18s var(--easing), box-shadow 0.18s var(--easing), background 0.18s var(--easing);
}

.climb-primary,
.checkpoint-footer button:not(:disabled) {
  background: var(--accent);
  color: #fff;
  padding: 0 18px 3px;
  box-shadow: inset 0 -4px 0 var(--accent-deep), 0 18px 30px -22px rgba(3, 105, 161, 0.68);
}

.climb-primary:hover,
.checkpoint-footer button:not(:disabled):hover,
.climb-finish button:hover {
  transform: translateY(-2px);
}

.climb-primary:active,
.checkpoint-footer button:not(:disabled):active,
.climb-finish button:active {
  transform: translateY(1px);
}

.climb-hud {
  min-height: 120px;
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) repeat(3, minmax(150px, 0.72fr));
  align-items: stretch;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 60px -44px rgba(3, 105, 161, 0.46), var(--card-shadow);
  overflow: hidden;
}

.summit-progress,
.hud-stat {
  min-width: 0;
  padding: 23px 24px;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--border-soft);
}

.hud-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hud-label-row span,
.hud-stat div span {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.hud-label-row strong {
  color: var(--accent-deep);
  font-size: 1.1rem;
}

.summit-progress-track {
  position: relative;
  height: 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
}

.summit-progress-track > span {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 6px 18px -8px var(--glow);
}

.progress-flag {
  position: absolute;
  left: calc(42% - 5px);
  top: -20px;
  width: 3px;
  height: 21px;
  border-radius: 2px;
  background: var(--accent-deep);
}

.progress-flag::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 14px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}

.hud-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--accent-deep);
  border: 1px solid var(--border-default);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.hud-stat div {
  min-width: 0;
}

.hud-stat strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streak-icon {
  position: relative;
  background: #fff7e6;
  border-color: #ffe1a3;
}

.streak-icon::before {
  content: "";
  width: 18px;
  height: 24px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(180deg, #ffb11f, #ff7b21);
  clip-path: polygon(50% 0, 76% 34%, 94% 58%, 88% 83%, 67% 100%, 34% 96%, 10% 73%, 15% 44%);
}

.streak-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 12px;
  left: 17px;
  bottom: 8px;
  border-radius: 60% 40% 55% 45%;
  background: #fff1a8;
}

.xp-icon {
  background: #edf8ff;
}

.achievement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 32px;
}

.achievement-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.achievement-heading > div > span {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.achievement-heading h2 {
  margin-top: 2px;
  font-size: 1.05rem;
}

.achievement-medal {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff6c9;
  border: 1px solid #ffe899;
}

.achievement-medal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #ffd35a;
  box-shadow: inset 0 -4px 0 #e6a72b;
}

.achievement-medal::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 8px;
  width: 10px;
  height: 8px;
  background: #fff3a7;
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 34%);
}

.achievement-list {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.achievement-chip {
  min-width: 172px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: 17px;
  background: #fff;
  color: var(--text-heading);
  padding: 10px 13px;
  text-align: left;
  box-shadow: var(--card-shadow);
  transition: border-color 0.18s var(--easing), transform 0.18s var(--easing), box-shadow 0.18s var(--easing);
}

.achievement-chip:hover,
.achievement-chip.is-celebrating {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 22px 36px -26px rgba(3, 105, 161, 0.5), var(--card-shadow);
}

.achievement-chip > span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface-2);
  position: relative;
}

.achievement-chip strong {
  align-self: end;
  font-size: 0.82rem;
}

.achievement-chip small {
  align-self: start;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.2;
}

.badge-camp::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 8px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid var(--accent);
}

.badge-camp::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 8px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 11px solid #fff;
}

.badge-fire::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 24px;
  left: 9px;
  top: 6px;
  border-radius: 60% 35% 55% 45%;
  background: linear-gradient(180deg, #ffb31d, #ff6f3c);
  clip-path: polygon(48% 0, 83% 39%, 93% 72%, 70% 100%, 28% 98%, 7% 72%, 14% 41%);
}

.badge-target::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--accent-deep);
}

.badge-target::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 3px;
  right: 3px;
  top: 7px;
  border-radius: 2px;
  background: #ffb21e;
  transform: rotate(-43deg);
}

.mountain-journey {
  position: relative;
  width: min(1320px, calc(100% - 36px));
  min-height: 3120px;
  margin: 0 auto;
  border: 1px solid rgba(186, 224, 253, 0.9);
  border-radius: 28px;
  background:
    linear-gradient(180deg,
      #e8f8ff 0%,
      #ddf7ee 31%,
      #dff4ed 43%,
      #e9f7ff 58%,
      #dceef7 77%,
      #fff5cf 100%);
  box-shadow: 0 42px 100px -64px rgba(3, 105, 161, 0.65);
  overflow: hidden;
  isolation: isolate;
}

.mountain-sky {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 85% 4%, rgba(255, 255, 255, 0.92) 0 54px, transparent 56px),
    radial-gradient(circle at 16% 32%, rgba(255, 255, 255, 0.62) 0 70px, transparent 72px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.55), transparent 44%);
}

.summit-glow {
  position: absolute;
  z-index: -3;
  width: 520px;
  height: 520px;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 94, 0.62) 0, rgba(255, 229, 148, 0.25) 42%, transparent 70%);
  animation: summit-breathe 5.5s ease-in-out infinite;
}

.mountain-spine,
.mountain-facet {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.mountain-spine {
  left: 8%;
  right: 8%;
  background: linear-gradient(180deg, rgba(137, 205, 143, 0.66) 0 26%, rgba(73, 151, 124, 0.62) 43%, rgba(132, 181, 198, 0.7) 61%, rgba(105, 139, 156, 0.76) 79%, rgba(225, 239, 247, 0.92) 100%);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 45% 100%);
}

.facet-left {
  left: 8%;
  right: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.46));
  clip-path: polygon(0 0, 100% 0, 22% 100%, 0 100%);
}

.facet-right {
  left: 52%;
  right: 8%;
  background: linear-gradient(180deg, rgba(12, 60, 97, 0.04), rgba(12, 60, 97, 0.12));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 78% 100%);
}

.climb-trail {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 3120px;
  overflow: visible;
  pointer-events: none;
}

.climb-trail path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trail-shadow {
  stroke: rgba(3, 66, 91, 0.17);
  stroke-width: 18;
}

.trail-line {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 10;
  stroke-dasharray: 3 15;
}

.trail-complete {
  stroke: var(--accent);
  stroke-width: 7;
  stroke-dasharray: 42 100;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.48));
}

.checkpoint {
  position: relative;
  z-index: 3;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 112px minmax(270px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 0 6%;
}

.checkpoint-card {
  width: min(100%, 390px);
  border: 1px solid rgba(186, 224, 253, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 18px 18px;
  box-shadow: 0 30px 70px -44px rgba(3, 105, 161, 0.58), var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing), border-color 0.3s var(--easing);
}

.checkpoint-left .checkpoint-card {
  grid-column: 1;
  justify-self: end;
}

.checkpoint-right .checkpoint-card {
  grid-column: 3;
  justify-self: start;
}

.checkpoint-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-soft);
  box-shadow: 0 36px 74px -42px rgba(3, 105, 161, 0.62), var(--card-shadow);
}

.is-current .checkpoint-card {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.1), 0 34px 76px -42px rgba(3, 105, 161, 0.68);
}

.is-locked .checkpoint-card {
  background: rgba(255, 255, 255, 0.86);
  filter: saturate(0.72);
}

.checkpoint-illustration {
  height: 116px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
}

.checkpoint-illustration svg {
  width: 100%;
  height: 100%;
}

.camp-illustration { background: linear-gradient(180deg, #dff5ff, #f7fcff); }
.meadow-illustration { background: linear-gradient(180deg, #dcf5ff, #ecfff4); }
.forest-illustration { background: linear-gradient(180deg, #caeff4, #d9f6e7); }
.snow-illustration { background: linear-gradient(180deg, #ccecff, #f5fbff); }
.cliff-illustration { background: linear-gradient(180deg, #d6edf8, #e8f2f7); }
.summit-illustration { background: linear-gradient(180deg, #fff0b8, #dff4ff); }

.checkpoint-topline,
.checkpoint-progress-label,
.checkpoint-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkpoint-topline > span:first-child {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.state-pill {
  min-height: 27px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.complete-pill {
  background: #dcfce7;
  color: #15803d;
}

.current-pill {
  background: var(--surface-2);
  color: var(--accent-deep);
}

.locked-pill {
  gap: 6px;
  background: #eef2f5;
  color: #64748b;
}

.locked-pill i,
.mini-lock {
  position: relative;
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.locked-pill i::before,
.mini-lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -6px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.summit-pill {
  background: #fff3bf;
  color: #9a6700;
}

.checkpoint-card h2 {
  margin-top: 9px;
  font-size: 1.75rem;
}

.checkpoint-card > p {
  min-height: 50px;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.5;
}

.checkpoint-progress-label {
  margin: 16px 0 7px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
}

.checkpoint-progress-label strong {
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.checkpoint-progress {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.checkpoint-progress span {
  display: block;
  width: var(--stage-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.checkpoint-footer {
  margin-top: 16px;
}

.xp-reward {
  min-height: 32px;
  border-radius: 10px;
  background: #fff6d6;
  color: #9a6700;
  padding: 0 10px;
  font-size: 0.75rem;
}

.checkpoint-footer button {
  min-height: 43px;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 0.78rem;
}

.checkpoint-footer button:disabled {
  background: #edf2f5;
  color: #7d8b96;
  cursor: not-allowed;
  box-shadow: inset 0 -3px 0 #dce5ea;
}

.trail-stop {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--accent), 0 16px 30px -18px rgba(3, 105, 161, 0.75);
}

.complete-stop {
  background: #22c55e;
  box-shadow: 0 0 0 2px #22c55e, 0 0 28px rgba(34, 197, 94, 0.42);
}

.current-stop {
  animation: current-pulse 2.5s ease-in-out infinite;
}

.locked-stop {
  background: #b4c4ce;
  color: #657580;
  box-shadow: 0 0 0 2px #a8bac5, 0 16px 30px -22px rgba(42, 65, 81, 0.44);
}

.locked-stop .mini-lock {
  width: 15px;
  height: 13px;
}

.locked-stop .mini-lock::before {
  left: 2px;
  top: -9px;
  width: 11px;
  height: 10px;
}

.summit-stop {
  background: #ffd452;
  box-shadow: 0 0 0 2px #e7a928, 0 0 34px rgba(255, 204, 72, 0.55);
}

.summit-flag {
  position: relative;
  width: 3px;
  height: 30px;
  border-radius: 2px;
  background: var(--text-heading);
}

.summit-flag::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 22px;
  height: 13px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}

.climber-avatar {
  position: absolute;
  width: 52px;
  height: 68px;
  left: 55px;
  top: -13px;
  filter: drop-shadow(0 8px 8px rgba(12, 60, 97, 0.22));
  animation: climber-bob 2.1s ease-in-out infinite;
}

.climber-head,
.climber-body,
.climber-pack {
  position: absolute;
  display: block;
}

.climber-head {
  width: 25px;
  height: 25px;
  left: 14px;
  top: 1px;
  border-radius: 50%;
  background: #ffd9bc;
  border: 4px solid #0c3c61;
}

.climber-head::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: 3px;
  top: 8px;
  border-radius: 50%;
  background: #0c3c61;
}

.climber-body {
  width: 27px;
  height: 38px;
  left: 13px;
  top: 24px;
  border-radius: 9px 9px 7px 7px;
  background: var(--accent);
  box-shadow: inset -7px 0 0 var(--accent-deep);
}

.climber-body::before,
.climber-body::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 19px;
  bottom: -7px;
  border-radius: 5px;
  background: #0c3c61;
}

.climber-body::before { left: 2px; transform: rotate(8deg); }
.climber-body::after { right: 2px; transform: rotate(-8deg); }

.climber-pack {
  width: 16px;
  height: 27px;
  left: 4px;
  top: 29px;
  border-radius: 7px 4px 4px 7px;
  background: #ffaf45;
  border: 3px solid #cc7622;
}

.altitude-ruler {
  position: absolute;
  inset: 0 20px 0 auto;
  z-index: 1;
  width: 64px;
  border-left: 1px dashed rgba(12, 60, 97, 0.18);
}

.altitude-ruler span {
  position: absolute;
  top: var(--altitude-y);
  right: 0;
  color: rgba(12, 60, 97, 0.5);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
}

.altitude-ruler span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 52px;
  width: 12px;
  border-top: 1px solid rgba(12, 60, 97, 0.25);
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 98px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  filter: drop-shadow(0 8px 13px rgba(44, 112, 145, 0.09));
  animation: cloud-drift 13s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 42px; height: 42px; left: 18px; bottom: 8px; }
.cloud::after { width: 56px; height: 56px; right: 8px; bottom: 4px; }
.cloud-one { top: 7%; left: 6%; }
.cloud-two { top: 24%; right: 5%; width: 132px; animation-delay: -3s; }
.cloud-three { top: 56%; left: 3%; width: 76px; opacity: 0.66; animation-delay: -7s; }

.bird-flock {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 20px;
  animation: birds-glide 8s ease-in-out infinite alternate;
}

.flock-one { top: 34%; right: 11%; }
.flock-two { top: 41%; left: 13%; transform: scale(0.75); animation-delay: -4s; }

.bird-flock i {
  width: 17px;
  height: 8px;
  border-top: 3px solid rgba(12, 60, 97, 0.68);
  border-radius: 50%;
  transform: rotate(12deg);
}

.bird-flock i::after {
  content: "";
  display: block;
  width: 17px;
  height: 8px;
  margin-left: 12px;
  margin-top: -3px;
  border-top: 3px solid rgba(12, 60, 97, 0.68);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.snowfall {
  position: absolute;
  inset: 52% 0 5%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.snowfall i {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: snow-fall 8s linear infinite;
}

.snowfall i:nth-child(1) { left: 5%; animation-delay: -1s; }
.snowfall i:nth-child(2) { left: 14%; animation-delay: -5s; animation-duration: 10s; }
.snowfall i:nth-child(3) { left: 24%; animation-delay: -3s; }
.snowfall i:nth-child(4) { left: 33%; animation-delay: -7s; animation-duration: 11s; }
.snowfall i:nth-child(5) { left: 43%; animation-delay: -4s; }
.snowfall i:nth-child(6) { left: 51%; animation-delay: -8s; animation-duration: 12s; }
.snowfall i:nth-child(7) { left: 59%; animation-delay: -2s; }
.snowfall i:nth-child(8) { left: 68%; animation-delay: -6s; animation-duration: 9s; }
.snowfall i:nth-child(9) { left: 76%; animation-delay: -3s; }
.snowfall i:nth-child(10) { left: 84%; animation-delay: -9s; animation-duration: 13s; }
.snowfall i:nth-child(11) { left: 91%; animation-delay: -5s; }
.snowfall i:nth-child(12) { left: 97%; animation-delay: -7s; animation-duration: 10s; }

.climb-animations .checkpoint {
  opacity: 0.28;
  transform: translateY(26px);
  transition: opacity 0.62s var(--easing), transform 0.62s var(--easing);
}

.climb-animations .checkpoint.in-view {
  opacity: 1;
  transform: translateY(0);
}

.climb-finish {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px 0 54px;
}

.climb-finish p {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.climb-finish button {
  min-height: 42px;
  border: 1px solid var(--border-default);
  background: #fff;
  color: var(--accent-deep);
  padding: 0 15px;
  box-shadow: var(--card-shadow);
}

.finish-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  position: relative;
}

.finish-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--accent);
}

.climb-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--border-default);
  border-radius: 24px;
  background: #fff;
  color: var(--text-primary);
  padding: 30px;
  box-shadow: 0 38px 100px -32px rgba(3, 45, 72, 0.56);
}

.climb-dialog::backdrop {
  background: rgba(8, 41, 62, 0.38);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-deep);
  font-size: 1.5rem;
}

.dialog-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dcf5ff, #dff8e9);
  border: 1px solid var(--border-default);
  overflow: hidden;
}

.dialog-icon span,
.dialog-icon i {
  position: absolute;
  bottom: 8px;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 44px solid #168877;
}

.dialog-icon span { left: 2px; }
.dialog-icon i { right: -8px; border-bottom-color: #0ea5e9; transform: scale(0.8); }

.climb-dialog h2 {
  margin-top: 6px;
  font-size: 1.8rem;
}

.dialog-copy {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lesson-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.lesson-details span {
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 12px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.lesson-details strong {
  display: block;
  color: var(--accent-deep);
  font-size: 1.15rem;
}

.lesson-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lesson-focus span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-heading);
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.dialog-secondary {
  border: 1px solid var(--border-default);
  background: #fff;
  color: var(--text-secondary);
  padding: 0 16px;
}

.climb-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  max-width: min(420px, calc(100% - 32px));
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  background: var(--text-heading);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.22s var(--easing), transform 0.22s var(--easing);
  box-shadow: 0 22px 50px -24px rgba(3, 40, 65, 0.8);
}

.climb-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.climb-primary:focus-visible,
.checkpoint-footer button:focus-visible,
.achievement-chip:focus-visible,
.climb-finish button:focus-visible,
.dialog-close:focus-visible,
.dialog-secondary:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

@keyframes cloud-drift {
  from { transform: translateX(-14px); }
  to { transform: translateX(24px); }
}

@keyframes snow-fall {
  0% { transform: translate3d(0, -20px, 0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(38px, 1400px, 0); opacity: 0.15; }
}

@keyframes birds-glide {
  from { transform: translate(-8px, 3px); }
  to { transform: translate(28px, -8px); }
}

@keyframes summit-breathe {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@keyframes current-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px rgba(14, 165, 233, 0.12), 0 16px 30px -18px rgba(3, 105, 161, 0.75); }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 16px rgba(14, 165, 233, 0.03), 0 16px 30px -18px rgba(3, 105, 161, 0.75); }
}

@keyframes climber-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@media (max-width: 1180px) {
  .climb-hud {
    grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(135px, 0.72fr));
  }

  .achievement-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .achievement-list {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .checkpoint {
    padding-left: 4%;
    padding-right: 4%;
  }
}

@media (max-width: 1020px) {
  .climb-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .climb-hud {
    grid-template-columns: repeat(3, 1fr);
  }

  .summit-progress {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border-soft);
  }

  .hud-stat:first-of-type {
    border-left: 0;
  }

  .checkpoint {
    grid-template-columns: minmax(240px, 1fr) 90px minmax(240px, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .climb-screen.sidebar-collapsed .climb-main {
    margin-left: 58px;
  }

  .climb-hero,
  .climb-hud,
  .achievement-row,
  .climb-finish {
    width: calc(100% - 32px);
  }

  .climb-hero {
    padding-top: 34px;
  }

  .climb-hero h1 {
    font-size: 3rem;
  }

  .mountain-journey {
    width: calc(100% - 24px);
  }

  .checkpoint {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    padding: 0 18px 0 0;
  }

  .checkpoint-left .checkpoint-card,
  .checkpoint-right .checkpoint-card {
    grid-column: 2;
    justify-self: start;
    width: min(100%, 480px);
  }

  .trail-stop {
    grid-column: 1;
  }

  .climb-trail {
    width: 148px;
  }

  .mountain-spine {
    left: 3%;
    right: -16%;
  }

  .facet-left { left: 3%; }
  .facet-right { right: -16%; }
  .altitude-ruler { display: none; }
  .climber-avatar { left: 38px; transform: scale(0.9); }
}

@media (max-width: 620px) {
  .climb-hero h1 {
    font-size: 2.45rem;
  }

  .climb-hero-copy > p:last-child {
    font-size: 0.94rem;
  }

  .hero-actions,
  .current-stage-pill,
  .hero-actions .climb-primary {
    width: 100%;
  }

  .climb-hud {
    grid-template-columns: 1fr;
  }

  .summit-progress {
    grid-column: auto;
  }

  .hud-stat,
  .hud-stat:first-of-type {
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .achievement-list {
    scroll-snap-type: x mandatory;
  }

  .achievement-chip {
    flex: 0 0 185px;
    scroll-snap-align: start;
  }

  .mountain-journey {
    border-radius: 22px;
  }

  .checkpoint {
    min-height: 520px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding-right: 10px;
  }

  .climb-trail {
    width: 116px;
  }

  .trail-stop {
    width: 50px;
    height: 50px;
    border-width: 5px;
    font-size: 0.9rem;
  }

  .checkpoint-card {
    padding: 13px 14px 15px;
    border-radius: 18px;
  }

  .checkpoint-illustration {
    height: 98px;
    border-radius: 13px;
  }

  .checkpoint-card h2 {
    font-size: 1.45rem;
  }

  .checkpoint-card > p {
    min-height: 0;
    font-size: 0.8rem;
  }

  .checkpoint-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .checkpoint-footer button {
    width: 100%;
  }

  .xp-reward {
    width: fit-content;
  }

  .climber-avatar {
    left: 30px;
    top: -10px;
    transform: scale(0.78);
    transform-origin: left center;
  }

  .climb-finish {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-details {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions form,
  .dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .bird-flock,
  .snowfall i,
  .summit-glow,
  .current-stop,
  .climber-avatar {
    animation: none !important;
  }

  .climb-animations .checkpoint {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
