:root {
  --bc-bg: #f7f5f8; --bc-panel: #ebe5ef; --bc-ink: #281e2e; --bc-muted: #62566b;
  --bc-border: #d5c9dc; --bc-accent: #733d8c; --bc-on-accent: #ffffff; --bc-hero-muted: #ede5f1;
  --bc-lime: #d5f564; --bc-purple: #ba9ef3; --bc-blue: #91cce6;
  --bc-pink: #f2a6bf; --bc-error: #f9a39b; --bc-wall: #eeeaf1; --bc-wall-side: #d8d0df;
  --bc-shadow: 0 5px 0 #382940; --bc-photo-shade: linear-gradient(90deg, #35203feF 0%, #35203fa6 48%, #35203f33 100%);
  color-scheme: light; font-family: Manrope, sans-serif; color: var(--bc-ink); background: var(--bc-bg);
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 320px; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--bc-accent); outline-offset: 4px; }
.masthead { max-width: none; margin: auto; background: var(--bc-accent); color: var(--bc-on-accent); display: flex; align-items: center; gap: 16px; min-height: 84px; padding: calc(16px + env(safe-area-inset-top)) max(28px, calc((100% - 1000px) / 2)) 16px; border-bottom: 1px solid var(--bc-border); }
.back, .icon-button { display: grid; place-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--bc-border); color: var(--bc-on-accent); border-radius: 50%; font-size: 22px; flex: none; }
.brand { display: flex; align-items: center; flex: none; width: 154px; height: 48px; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.collab { font-size: 10px; font-weight: 700; color: var(--bc-hero-muted); }
#haptics { margin-left: auto; }
.footer { max-width: 1000px; margin: 36px auto 0; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; border-top: 1px solid var(--bc-border); color: var(--bc-muted); font-size: 10px; letter-spacing: 1px; }
main { max-width: 1000px; margin: auto; }
.intro { position: relative; padding-top: 35px; }
.eyebrow { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--bc-accent); }
.eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--bc-accent); border-radius: 50%; }
h1, h2, h3, .display { font-family: 'Oswald', sans-serif; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 76px; line-height: 1.08; font-weight: 700; margin: 24px 0 20px; max-width: 650px; }
h1 em { color: var(--bc-accent); font-style: normal; }
.lead { color: var(--bc-muted); font-size: 16px; line-height: 1.7; max-width: 420px; margin: 0 0 24px; }
.hero-photo { position: absolute; inset: -24px -28px; background-color: var(--bc-panel); background-size: cover; background-position: center 42%; z-index: -1; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: var(--bc-photo-shade); }
.intro-top { color: var(--bc-on-accent); position: relative; isolation: isolate; min-height: 380px; padding-bottom: 24px; }
.start-row { display: flex; align-items: center; gap: 20px; }
.intro-top .lead, .start-row .meta { color: var(--bc-hero-muted); }
.intro-top .eyebrow, .intro-top h1 em { color: var(--bc-on-accent); }
.intro-top .eyebrow::before { background: var(--bc-on-accent); }
.intro-top .btn { border-color: var(--bc-on-accent); }
.btn { min-height: 50px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; font-weight: 800; border: 1px solid var(--bc-accent); background: var(--bc-accent); color: var(--bc-on-accent); border-radius: 4px; }
.btn.ghost { background: transparent; color: var(--bc-ink); border-color: var(--bc-border); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .arrow { font-size: 20px; }
.meta { font-size: 11px; color: var(--bc-muted); line-height: 1.8; }
.trail { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; border-top: 1px solid var(--bc-border); border-bottom: 1px solid var(--bc-border); }
.trail-item { padding: 20px 18px; border-right: 1px solid var(--bc-border); }
.trail-item:first-child { padding-left: 0; } .trail-item:last-child { border-right: 0; }
.trail-num { font: 700 26px 'Oswald', sans-serif; color: var(--bc-accent); }
.trail-item h3 { font-size: 21px; margin: 8px 0 5px; }
.trail-item p { margin: 0; color: var(--bc-muted); font-size: 11px; }
.intro-wall { margin-top: 24px; height: 220px; position: relative; overflow: hidden; background: var(--bc-wall); border-radius: 4px; }
.intro-wall::before, .wall::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 39%, var(--bc-wall-side) 39.2%, var(--bc-wall-side) 40%, transparent 40.2%, transparent 76%, var(--bc-wall-side) 76.2%); }
.wall-caption { position: absolute; left: 20px; right: 20px; bottom: 15px; color: var(--bc-ink); font: 600 20px 'Oswald', sans-serif; pointer-events: none; }
.hold { --hold-color: var(--bc-lime); position: absolute; width: 48px; height: 42px; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 45% 30% 40% 35%; border: 2px solid var(--bc-ink); background: var(--hold-color); box-shadow: var(--bc-shadow); color: var(--bc-ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.hold:nth-child(3n) { transform: translate(-50%, -50%) rotate(12deg); border-radius: 35% 50% 30% 45%; }
.hold.blue { --hold-color: var(--bc-blue); } .hold.pink { --hold-color: var(--bc-pink); } .hold.purple { --hold-color: var(--bc-purple); }
.hold.lit { outline: 4px solid var(--bc-ink); outline-offset: 5px; }
.hold.done { opacity: .55; box-shadow: none; }
.hold.bad { --hold-color: var(--bc-error); }
.about-climbing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--bc-border); }
.about-climbing h2 { font-size: 36px; line-height: 1.2; margin: 16px 0; }
.about-copy p { font-size: 14px; line-height: 1.8; color: var(--bc-muted); margin: 0 0 16px; }
.about-copy .btn { margin-top: 6px; }
.about-climbing .about-photo { height: auto; aspect-ratio: 4 / 3; background-position: center; }
.play-layout { display: grid; grid-template-columns: 1fr 460px; gap: 60px; padding-top: 35px; align-items: start; }
.play-copy { padding-top: 30px; }
.progress-path { display: flex; gap: 7px; margin-bottom: 35px; }
.progress-path span { height: 4px; width: 36px; background: var(--bc-border); }
.progress-path .passed { background: var(--bc-accent); } .progress-path .current { background: var(--bc-purple); }
h2 { font-size: 52px; line-height: 1.15; margin: 15px 0 20px; }
.level-info { color: var(--bc-muted); font-size: 14px; line-height: 1.8; }
.instruction { border-left: 2px solid var(--bc-accent); padding-left: 18px; margin: 28px 0; font-size: 14px; line-height: 1.7; }
.instruction strong { display: block; color: var(--bc-accent); font-size: 11px; margin-bottom: 6px; text-transform: uppercase; }
.skill { font-size: 11px; color: var(--bc-muted); border-top: 1px solid var(--bc-border); padding-top: 18px; }
.arena { min-width: 0; }
.hud { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--bc-muted); font-size: 11px; }
.hud strong { color: var(--bc-ink); font-size: 13px; }
.wall { height: 460px; background: var(--bc-wall); position: relative; overflow: hidden; border-radius: 4px; touch-action: none; }
.wall.led { background: var(--bc-panel); border: 1px solid var(--bc-border); }
.wall.led::before { background: radial-gradient(var(--bc-border) 1.5px, transparent 1.5px); background-size: 24px 24px; }
.wall.led .hold:not(.lit):not(.done) { background: var(--bc-wall-side); }
.wall.led .hold.lit { outline-color: var(--bc-lime); }
.wall .route-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-line polyline { fill: none; stroke: var(--bc-ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .3; }
.stage-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bc-wall); color: var(--bc-ink); gap: 14px; z-index: 3; padding: 30px; text-align: center; }
.stage-cover .display { font-size: 52px; line-height: 1; }
.stage-cover p { font-size: 13px; margin: 0; max-width: 280px; line-height: 1.7; }
.stage-cover .btn { border-color: var(--bc-ink); }
.feedback { height: 40px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--bc-accent); }
.controls { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.controls input { width: 100%; accent-color: var(--bc-accent); height: 40px; }
.controls .btn { flex: 1; }
.timer { height: 3px; background: var(--bc-border); margin-bottom: 14px; }
.timer span { display: block; background: var(--bc-accent); height: 100%; width: 100%; }
.balance-stage { color: var(--bc-ink); height: 100%; position: relative; }
.balance-stage svg { height: 270px; width: 100%; margin-top: 35px; }
.balance-stage svg .body { stroke: var(--bc-ink); fill: none; stroke-width: 6; stroke-linecap: round; }
.balance-stage svg .grip { fill: var(--bc-purple); stroke: var(--bc-ink); stroke-width: 2; }
.balance-track { position: absolute; left: 12%; right: 12%; bottom: 75px; height: 16px; background: var(--bc-wall-side); border-radius: 2px; }
.balance-target { position: absolute; width: 22%; height: 100%; background: var(--bc-lime); transform: translateX(-50%); }
.balance-marker { position: absolute; width: 4px; height: 32px; top: -8px; background: var(--bc-ink); }
.rhythm-rail { position: absolute; top: 18px; left: 10%; right: 10%; height: 8px; background: var(--bc-wall-side); }
.rhythm-zone { position: absolute; left: 42%; width: 16%; height: 8px; background: var(--bc-lime); }
.rhythm-marker { position: absolute; width: 6px; height: 22px; top: -7px; background: var(--bc-ink); }
.dyno-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.dyno-seam { fill: none; stroke: var(--bc-wall-side); stroke-width: 2; }
.dyno-grip { fill: var(--bc-purple); stroke: var(--bc-ink); stroke-width: .5; }
.dyno-grip.muted { fill: var(--bc-wall-side); }
.dyno-grip.target { fill: var(--bc-lime); stroke-width: .8; }
.dyno-target-ring { fill: none; stroke: var(--bc-accent); stroke-width: .4; stroke-dasharray: 1 1; }
.dyno-number { fill: var(--bc-accent); font: 700 4px Manrope, sans-serif; }
.dyno-climber { fill: var(--bc-on-accent); stroke: var(--bc-ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.dyno-climber path { fill: none; }
.dyno-climber .dyno-shirt { fill: var(--bc-accent); }
.dyno-preview { fill: none; stroke: var(--bc-accent); stroke-width: .5; stroke-dasharray: 1 1.5; }
#dyno-world { transition: transform 260ms ease-out; }
#dyno-world.ascending { transform: translateY(12px); }
.controls.dyno-controls { display: grid; gap: 10px; }
.dyno-control-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dyno-control-row label { flex: none; font-size: 12px; width: 85px; }
.dyno-control-row output { display: block; color: var(--bc-accent); font-weight: 800; }
.dyno-control-row .btn { touch-action: none; user-select: none; min-width: 0; gap: 8px; padding: 12px; }
.dyno-control-row .btn .arrow { display: none; }
.dyno-power { position: relative; flex: 1; height: 36px; background: var(--bc-panel); border: 1px solid var(--bc-border); overflow: hidden; }
.dyno-power span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bc-purple); opacity: .5; }
.dyno-power i { position: absolute; top: 0; bottom: 0; background: var(--bc-lime); border-inline: 1px solid var(--bc-accent); }
.dyno-power b { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--bc-ink); transform: translateX(-50%); z-index: 2; }
.dyno-power-label { font-size: 10px; color: var(--bc-muted); font-weight: 800; }
.dyno-power strong { position: relative; display: grid; place-items: center; height: 100%; font-size: 12px; }
.dyno-controls + * { margin-top: 12px; }
.dyno .feedback { white-space: normal; }
.arena:has(.dyno) .feedback { min-height: 40px; height: auto; text-align: center; line-height: 1.5; }
.boulder-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.boulder-links circle { fill: var(--bc-purple); fill-opacity: .15; stroke: var(--bc-accent); stroke-width: .4; stroke-dasharray: 1 1; }
.boulder-links polyline { fill: none; stroke: var(--bc-accent); stroke-width: 1; }
.boulder-obstacle { fill: var(--bc-error); stroke: var(--bc-ink); stroke-width: .5; }
.boulder-hatching { fill: url(#blocked-pattern); }
#blocked-pattern path { stroke: var(--bc-ink); stroke-width: .5; }
.boulder-slot.blocked { background: var(--bc-error); border-color: var(--bc-ink); color: var(--bc-ink); cursor: not-allowed; }
.boulder-anchor { position: absolute; left: 50%; transform: translate(-50%, -50%); color: var(--bc-on-accent); background: var(--bc-accent); font-size: 10px; font-weight: 800; padding: 7px 10px; border-radius: 4px; }
.boulder-anchor.start { top: 92%; } .boulder-anchor.finish { top: 8%; }
.boulder-slot { position: absolute; width: 44px; height: 40px; transform: translate(-50%, -50%); border: 1px dashed var(--bc-accent); background: var(--bc-panel); color: var(--bc-accent); border-radius: 40% 30% 35% 40%; font-size: 20px; }
.boulder-slot.occupied { background: var(--bc-lime); border: 2px solid var(--bc-ink); color: var(--bc-ink); }
.boulder-slot.purple { background: var(--bc-purple); } .boulder-slot.blue { background: var(--bc-blue); } .boulder-slot.pink { background: var(--bc-pink); }
.boulder-slot.selected { outline: 3px solid var(--bc-accent); outline-offset: 3px; }
.boulder-slot.connected { box-shadow: 0 3px 0 var(--bc-accent); }
.controls.boulder-controls { display: grid; gap: 16px; }
.boulder-tray { display: flex; gap: 12px; justify-content: center; }
.boulder-tray .hold { position: static; transform: none; flex: none; }
.boulder-tray .hold[aria-pressed="true"] { outline: 3px solid var(--bc-accent); outline-offset: 3px; }
.boulder-tray .hold.placed { opacity: .55; }
.boulder-actions { display: flex; gap: 8px; }
.boulder-actions .btn { font-size: 11px; padding: 10px; gap: 5px; }
.boulder-actions .arrow { display: none; }
.arena:has(.boulder) .feedback { height: auto; min-height: 44px; line-height: 1.5; text-align: center; }
.photo { width: 100%; height: 230px; background: var(--bc-panel); background-size: cover; background-position: center; border-radius: 4px; }
.fact { border-left: 2px solid var(--bc-purple); padding-left: 18px; margin: 22px 0; font-size: 13px; line-height: 1.8; color: var(--bc-muted); }
.fact strong { display: block; color: var(--bc-ink); }
.score { font: 700 100px/1 'Oswald', sans-serif; color: var(--bc-accent); margin: 18px 0; }
.score small { font: 500 18px Manrope; color: var(--bc-muted); }
.final { max-width: 650px; margin: 40px auto; }
.final h2 { font-size: 52px; padding-right: 55px; }
.result-card { border: 1px solid var(--bc-border); border-radius: 4px; padding: 28px; position: relative; overflow: hidden; }
.result-card::after { content: '↗'; position: absolute; right: 25px; top: 32px; font-size: 70px; color: var(--bc-purple); }
.bars { display: grid; gap: 17px; margin: 30px 0; }
.bar { display: grid; grid-template-columns: 125px 1fr 30px; gap: 15px; align-items: center; font-size: 12px; }
.bar-track { height: 5px; background: var(--bc-border); } .bar-track span { height: 100%; display: block; background: var(--bc-accent); }
.final-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.visit { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--bc-border); }
.visit h3 { font-size: 30px; }
.visit p, .disclaimer { font-size: 12px; color: var(--bc-muted); line-height: 1.8; }
.share-status { font-size: 12px; color: var(--bc-accent); }
.share-status:empty { display: none; }
.share-copy { display: block; width: 100%; margin-top: 10px; padding: 12px; color: var(--bc-ink); background: var(--bc-panel); border: 1px solid var(--bc-border); font: inherit; }
[hidden] { display: none !important; }
@media (max-width: 1056px) { main { padding: 0 28px; } .footer { margin-left: 28px; margin-right: 28px; } .play-layout { gap: 30px; grid-template-columns: 1fr 430px; } }
@media (max-width: 760px) {
  .masthead { gap: 12px; padding-left: 20px; padding-right: 20px; min-height: 72px; }
  main { padding: 0 20px; } .footer { margin-left: 20px; margin-right: 20px; font-size: 9px; }
  .brand { width: 132px; height: 42px; } .collab { font-size: 9px; }
  .intro { padding-top: 24px; } h1 { font-size: 48px; max-width: 100%; }
  .hero-photo { inset: -24px -20px 0; }
  .intro-top { min-height: 360px; } .lead { font-size: 14px; max-width: 300px; }
  .start-row { gap: 14px; } .start-row .btn { padding: 14px 16px; }
  .trail { grid-template-columns: 1fr; margin-top: 20px; }
  .trail-item, .trail-item:first-child { display: grid; grid-template-columns: 32px 1fr auto; padding: 13px 0; align-items: center; border-right: 0; border-bottom: 1px solid var(--bc-border); gap: 10px; }
  .trail-item:last-child { border-bottom: 0; } .trail-item h3 { margin: 0; font-size: 21px; }
  .trail-item p { font-size: 10px; } .trail-num { font-size: 22px; }
  .intro-wall { height: 190px; }
  .about-climbing { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; padding-top: 24px; }
  .about-climbing h2 { font-size: 30px; }
  .about-copy .btn { width: 100%; }
  .play-layout { grid-template-columns: 1fr; gap: 10px; padding-top: 22px; }
  .play-copy { padding-top: 0; } .progress-path { margin-bottom: 22px; }
  h2 { font-size: 38px; margin: 12px 0; } .level-info { font-size: 13px; margin: 10px 0; }
  .instruction { margin: 15px 0; font-size: 13px; } .skill { display: none; }
  .wall { height: 390px; } .hold { width: 44px; height: 39px; }
  .final { margin-top: 25px; } .final h2 { font-size: 36px; padding-right: 40px; }
  .result-card { padding: 20px; } .result-card::after { font-size: 45px; right: 14px; top: 22px; }
  .bar { grid-template-columns: 105px 1fr 25px; gap: 10px; font-size: 11px; }
  .final-actions .btn { flex: 1; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }.path-hold.big { width: 66px; height: 58px; } .path-hold.small { width: 36px; height: 32px; font-size: 12px; }
.path-climber { position: absolute; left: 50%; top: 84%; transform: translate(-50%,-50%); font-size: 34px; color: var(--bc-ink); }
.path-clue { position: absolute; left: 6%; right: 6%; bottom: 10px; text-align: center; font-weight: 800; color: var(--bc-ink); background: var(--bc-wall-side); padding: 8px 10px; border-radius: 4px; }
.rope-stage { position: relative; height: 100%; }
.rope-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.rope-line path { fill: none; stroke: var(--bc-purple); stroke-width: 1.2; }
.rope-anchor { position: absolute; left: 50%; top: 92%; transform: translate(-50%,-50%); font-weight: 800; color: var(--bc-ink); }
.rope-partner { position: absolute; left: 50%; transform: translate(-50%,-50%); font-size: 30px; color: var(--bc-ink); }
.rope-stage .balance-track { bottom: auto; top: 18px; }
