/* v07 The Climb: the mountain illustration and its overlay (pin, labels, camps, flag, wall). */
.mt { position: absolute; overflow: visible; }
.mt-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mt-ov { position: absolute; inset: 0; pointer-events: none; }

.mt-star { fill: #fff; animation: twinkle var(--tw, 3s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .95; } }
.sky:not([data-sky=dawn]):not([data-sky=gold]) .mt-stars { opacity: 0; transition: opacity 1s; }
.mt-sun { transition: opacity 1s; }
.sky[data-sky=storm] .mt-sun { opacity: .15; }
.sky[data-sky=day] .mt-sun { opacity: .55; }
.mt-far { fill: var(--far); opacity: .75; }
.mt-mid { fill: var(--mid); }
.mt-near { fill: var(--near); }
.mt-trees path { fill: var(--tree); opacity: .85; }
.mt-gully polyline { fill: none; stroke: #1c2155; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.sky[data-sky=day] { --far: #6f8fd0; --mid: #45609f; --rock-lit-top: #8a9bd6; --rock-lit-bot: #4a5a9c; --snow-lit: #ffffff; --sun: #fff2c9; }
.sky[data-sky=storm] { --far: #50557a; --mid: #363a5e; --rock-lit-top: #5d6390; --rock-lit-bot: #33386a; --snow-lit: #e4e7f6; --sun: #9aa0c8; }
.sky[data-sky=gold] { --far: #8a5f9e; --mid: #4b3d84; --snow-lit: #fff0e2; --sun: #ffc27a; }

.mt-cloud { fill: #fff; opacity: .82; }
.mt-cloud.d1 { animation: drift 46s linear infinite alternate; }
.mt-cloud.d2 { animation: drift 38s linear -12s infinite alternate-reverse; }
.mt-cloud.d3 { animation: drift 52s linear -20s infinite alternate; opacity: .6; }
.mt-cloud.d4 { animation: drift 34s linear -5s infinite alternate-reverse; opacity: .7; }
.mt-cloud.d5 { animation: drift 40s linear -9s infinite alternate; opacity: .65; }
@keyframes drift { from { translate: -60px 0; } to { translate: 90px 0; } }

.mt-zone { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.mt-zone--9 { stroke: rgba(255, 214, 120, .95); stroke-width: 2; }
.mt-trail { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mt-rope { fill: none; stroke: var(--rope); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255, 90, 78, .7)); }
.mt-summit line { stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; }
.mt-summit-flag { fill: #ffd56a; transform-origin: 0 -50px; animation: wave 1.4s ease-in-out infinite alternate; }
@keyframes wave { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(5deg) scaleX(1.04); } }
.mt-wall-band { fill: rgba(255, 90, 78, .55); stroke: #ff5a4e; stroke-width: 2; vector-effect: non-scaling-stroke; animation: wallin .8s ease both .3s; }
@keyframes wallin { from { opacity: 0; } to { opacity: 1; } }

/* zone labels */
.mt-tag { position: absolute; transform: translateY(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 999px;
  background: rgba(14, 18, 52, .55); color: rgba(255, 255, 255, .92); font: 700 11px/1 var(--ui); letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, transform .3s, opacity .3s; }
.mt-tag b { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-right: 3px; }
.mt-tag[data-h="9"] { background: rgba(255, 196, 90, .95); color: #3a1d00; }
.mt-tag.is-under { opacity: 0; }
.mt-tag.is-on { background: #fff; color: var(--ink); transform: translateY(-50%) scale(1.08); }

/* the climber pin */
.mt-pin { position: absolute; width: 0; height: 0; z-index: 3; }
.mt-pin-dot { position: absolute; left: -23px; top: -60px; width: 46px; height: 46px; border-radius: 50%; background: var(--rope); border: 3px solid #fff;
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.mt-pin-dot span { color: #fff; font: 800 11px/1 var(--ui); letter-spacing: .04em; }
.mt-pin::before { content: ''; position: absolute; left: -8px; top: -17px; border: 8px solid transparent; border-top: 11px solid #fff; }
.mt-pin::after { content: ''; position: absolute; left: -7px; top: -4px; width: 14px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.mt-pin:not(.is-moving) .mt-pin-dot { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -6px; } }
.mt-pin-alt { position: absolute; left: 30px; top: -52px; white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: #fff; color: var(--ink);
  font: 800 14px/1 var(--ui); font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.mt-pin.no-alt .mt-pin-alt { display: none; }
.mt.is-slipping .mt-pin-dot { background: #8a90b8; }

/* camps */
.mt-camp { position: absolute; transform: translate(-130%, -90%); display: grid; justify-items: center; gap: 2px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.mt-camp svg { width: 30px; height: 23px; }
.mt-tent { fill: #ffd56a; stroke: #7a3d00; stroke-width: 1.5; }
.mt-tent-door { fill: #7a3d00; }
.mt-camp span { font: 800 10px/1 var(--ui); color: #fff; background: rgba(14, 18, 52, .65); padding: 3px 6px; border-radius: 6px; white-space: nowrap; }

/* your flag (result) */
.mt-flag { position: absolute; width: 0; height: 0; z-index: 4; }
.mt-flag-pole { position: absolute; left: -2px; bottom: 0; width: 4px; height: 92px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transform-origin: 50% 100%; }
.mt-flag-cloth { position: absolute; left: 2px; bottom: 50px; min-width: 96px; width: max-content; padding: 8px 14px 8px 10px; background: var(--rope); color: #fff; border-radius: 2px 10px 10px 2px;
  display: grid; gap: 2px; transform-origin: 0 50%; animation: cloth 1.6s ease-in-out infinite alternate; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); }
.mt-flag-cloth b { font: 800 14px/1.05 var(--ui); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-flag-cloth small { font: 700 11px/1 var(--ui); opacity: .9; font-variant-numeric: tabular-nums; }
.mt-flag.is-left .mt-flag-cloth { left: auto; right: 2px; border-radius: 10px 2px 2px 10px; transform-origin: 100% 50%; padding: 8px 10px 8px 14px; text-align: right; }
@keyframes cloth { from { transform: skewY(-3deg); } to { transform: skewY(3deg) scaleX(.97); } }
.mt-flag.is-in .mt-flag-pole { animation: plant .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.mt-flag.is-in .mt-flag-cloth { animation: unfurl .7s cubic-bezier(.2, 1.2, .4, 1) .35s both, cloth 1.6s ease-in-out 1.05s infinite alternate; }
@keyframes plant { from { transform: translateY(-60px) scaleY(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes unfurl { from { transform: scaleX(0); } to { transform: none; } }

/* your wall (result) */
.mt-wall-tag { position: absolute; transform: translateY(-50%); padding: 7px 10px; border-radius: 10px; background: #fff; color: var(--ink); border: 2px solid var(--bad);
  font: 800 12px/1.15 var(--ui); white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) .6s both; }
.mt-wall-tag small { display: block; font: 700 10px/1 var(--ui); color: var(--bad); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }

/* the cloud bank (the gate) */
.cloudbank { position: absolute; left: -10%; right: -10%; top: 0; height: 46%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.cloudbank i { position: absolute; width: 70%; aspect-ratio: 2 / 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 246, 255, .98) 0 55%, rgba(220, 225, 245, .9) 75%, rgba(220, 225, 245, 0)); transition: transform 1.1s cubic-bezier(.6, 0, .3, 1), opacity 1.1s; }
.cloudbank i:nth-child(1) { left: -8%; top: 6%; animation: drift 14s ease-in-out infinite alternate; }
.cloudbank i:nth-child(2) { left: 36%; top: -4%; animation: drift 17s ease-in-out -4s infinite alternate-reverse; }
.cloudbank i:nth-child(3) { left: 12%; top: 30%; width: 80%; animation: drift 19s ease-in-out -7s infinite alternate; }
.cloudbank i:nth-child(4) { left: 52%; top: 26%; animation: drift 15s ease-in-out -2s infinite alternate-reverse; }
.cloudbank i:nth-child(5) { left: 26%; top: 52%; width: 60%; opacity: .8; animation: drift 21s ease-in-out -9s infinite alternate; }
body[data-phase=gate] .cloudbank { opacity: 1; }
.cloudbank.is-parting i:nth-child(odd) { transform: translateX(-80%); opacity: 0; }
.cloudbank.is-parting i:nth-child(even) { transform: translateX(80%); opacity: 0; }
