*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#80c4ee;color:#fff;font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif}
button{font:inherit;font-weight:900;color:inherit;cursor:pointer;touch-action:none;min-height:44px;min-width:44px;border:0;border-radius:18px;background:#245589;box-shadow:0 4px 0 #163653}
button:hover{filter:brightness(1.12)}button:active{transform:translateY(2px);box-shadow:0 2px 0 #163653}
button:focus-visible{outline:3px solid white;outline-offset:4px}
[hidden]{display:none!important}
#game{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden}
#game:fullscreen{width:100vw;height:100vh}
#view{display:block;width:100%;height:100%;touch-action:none}
#holds{position:absolute;inset:0;pointer-events:none}
.hold{position:absolute;width:48px;height:48px;min-width:48px;min-height:48px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;box-shadow:none;pointer-events:auto;outline:none!important}
.hold:hover,.hold:active{transform:translate(-50%,-50%);background:#9bffb82b;box-shadow:0 0 22px #94ffb835;filter:none}
.hold.far:hover{background:#ff9c482b;box-shadow:none}
.hold:focus-visible{background:#fff5;outline:2px solid white!important}
#hud{position:absolute;top:0;left:0;right:0;padding:22px 25px;pointer-events:none;display:grid;grid-template-columns:1fr auto 1fr;gap:7px 16px;text-shadow:0 2px 0 #17365b,2px 0 0 #17365b,-2px 0 0 #17365b,0 -2px 0 #17365b;filter:drop-shadow(0 2px 1px #152f5244)}
.brand{grid-row:1;font-size:14px;align-self:center}
.brand small{font-size:14px;font-weight:950}
.status{display:flex;align-items:center;gap:12px;justify-content:center;font-size:24px;font-weight:950}
#wind{font-size:12px;border-radius:18px;padding:5px 9px;background:#28527b80}
.tools{display:flex;justify-content:flex-end;gap:8px;pointer-events:auto}
.tools button{font-size:22px;width:46px;height:46px;border:2px solid white;background:#235788cb;border-radius:50%;box-shadow:0 3px 0 #163653}
.energy{grid-column:2;display:flex;align-items:center;gap:7px;font-size:17px;font-weight:900;text-shadow:0 2px 0 #17365b;min-width:220px}
.energy>span{font-size:22px}
.energy>div{height:12px;flex:1;min-width:120px;background:#213e68c9;border:2px solid #fff;border-radius:9px;overflow:hidden;box-shadow:0 2px 0 #17365b}
.energy i{height:100%;display:block;width:100%;background:#8cfa72;transition:width .12s}
.energy b{font-size:14px;width:40px}
.progress{grid-column:2;height:4px;border-radius:4px;background:#ffffff80;margin-left:30px;margin-right:45px}
.progress i{display:block;height:100%;background:#ffcc35;width:0}
#message{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);max-width:70%;font-size:20px;font-weight:950;text-align:center;line-height:1.2;text-shadow:-2px -2px 0 #17365b,2px -2px 0 #17365b,-2px 2px 0 #17365b,2px 2px 0 #17365b,0 4px 0 #17365b;pointer-events:none}
#controls{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));right:22px;display:flex;align-items:center;gap:12px}
#controls #drop{width:48px;height:48px;border-radius:50%;font-size:28px;border:2px solid white}
#controls #rest{min-width:105px;height:52px;padding:0 15px;background:#ffca35;color:#193959;border:3px solid white;border-radius:28px;box-shadow:0 4px 0 #a87818;font-size:17px}
.overlay{position:absolute;inset:0;overflow:auto;display:flex;align-items:center;padding:40px 7%;background:linear-gradient(90deg,#1745678c,transparent 75%)}
.menu-copy{width:470px;max-width:100%;text-shadow:0 3px 0 #163c63}
.eyebrow{font-size:14px;font-weight:900;margin:0 0 14px;color:#fff7c1}
h1{font-size:clamp(54px,6vw,90px);line-height:.91;letter-spacing:-.055em;margin:10px 0 18px;font-weight:1000;text-shadow:-3px -3px 0 #1b3d64,3px -3px 0 #1b3d64,-3px 3px 0 #1b3d64,3px 3px 0 #1b3d64,0 7px 0 #1b3d64;transform:rotate(-3deg)}
h1 em{font-style:normal;color:#ffcd35}
.intro{font-size:19px;font-weight:850;margin:22px 0}
.routes{display:grid;gap:12px;margin:28px 0 18px;max-width:330px}
.route{min-height:58px;padding:11px 17px;background:#ffb532;color:#17385c;border:3px solid white;border-radius:25px;font-size:18px;text-align:left;box-shadow:0 5px 0 #986123;text-shadow:none;display:flex;align-items:center;gap:10px}
.route:nth-child(2){background:#50ddd2;box-shadow:0 5px 0 #207c89}
.route:nth-child(3){background:#c8a2ff;box-shadow:0 5px 0 #65539a}
.route>b{font-size:20px}.route>span:first-of-type{flex:1}.route strong{font-size:17px}.route small{display:none}.route .arrow{flex:0;font-size:24px}
.how{font-size:16px;line-height:1.5;font-weight:850;margin:24px 0 10px}.how strong{color:#a7ff94}
.keys,.preview{font-size:11px;font-weight:800;margin:10px 0}.preview{color:#e4effc}
#modal{justify-content:center;background:#1a416d66;padding:25px}
.card{max-width:430px;width:100%;text-align:center;background:#285b91ed;border:4px solid white;border-radius:28px;padding:30px;box-shadow:0 9px 0 #173961}
.card h2{font-size:42px;line-height:1.02;margin:16px 0;color:#ffcf34;text-shadow:0 4px 0 #153958}
.card>p:not(.eyebrow){font-size:16px;line-height:1.5;font-weight:800}
.card button{width:100%;padding:13px;margin-top:12px;font-size:16px;border:3px solid white}
#resume{background:#ffbf31;color:#1c3d61;box-shadow:0 5px 0 #ac741b}
#modal.summit{justify-content:flex-start;background:linear-gradient(90deg,#173a6ca6,transparent 78%)}
#modal.summit .card{background:transparent;border:0;box-shadow:none;text-align:left;padding:0;max-width:400px}
#modal.summit h2{font-size:64px;text-shadow:-2px -2px 0 #183957,2px 2px 0 #183957,0 5px 0 #183957}
#modal.summit .eyebrow{font-size:22px;color:#a8ff8d;text-shadow:0 3px 0 #183957}
#failure{position:absolute;inset:25%;padding:25px;background:#6c2536;border:3px solid white;border-radius:20px;font-weight:800}
@media(max-width:600px){
  #hud{padding:13px 12px;grid-template-columns:1fr auto;gap:6px}
  .brand{display:none}.status{grid-column:1;font-size:22px;gap:7px;justify-content:flex-start}
  #wind{font-size:10px;padding:4px 6px}
  .tools{grid-column:2;gap:6px}.tools button{width:44px;height:44px}
  .energy{grid-column:1/3;min-width:0;width:215px;margin:auto;font-size:15px}
  .energy>div{min-width:115px;height:11px}.energy>span{font-size:19px}.energy b{font-size:12px}
  .progress{grid-column:1/3;max-width:140px;width:100%;margin:0 auto}
  #message{bottom:92px;font-size:17px;max-width:90%;width:max-content}
  #controls{bottom:max(20px,env(safe-area-inset-bottom));right:15px;gap:10px}
  #controls #rest{height:48px;min-width:98px;font-size:15px}
  .overlay{padding:28px 24px;align-items:flex-start;background:linear-gradient(180deg,#173c7459,transparent 42%,#163e767a)}
  .menu-copy{width:100%;padding-top:6px}h1{font-size:56px;margin:6px 0 10px}.eyebrow{font-size:11px;margin-bottom:8px}
  .intro{font-size:15px;margin:15px 0}
  .routes{position:absolute;bottom:132px;left:24px;right:24px;max-width:none;margin:0;gap:10px}
  .route{min-height:55px;font-size:16px;padding:10px 16px}.route strong{font-size:16px}
  .how{position:absolute;bottom:51px;left:24px;font-size:14px;line-height:1.5;margin:0}
  .keys{display:none}.preview{position:absolute;bottom:17px;margin:0;font-size:10px}
  .card{padding:24px}.card h2{font-size:35px}
  #modal{align-items:center}
  #modal.summit{align-items:flex-start;background:linear-gradient(#173c7466,transparent 45%,#163e7644)}
  #modal.summit .card{padding-top:15px;max-width:100%}
  #modal.summit h2{font-size:43px;max-width:330px;margin:12px 0}
  #modal.summit .eyebrow{font-size:19px}
  #modal.summit .card>p:not(.eyebrow){font-size:14px;max-width:285px}
  #modal.summit #resume{position:absolute;bottom:95px;left:25px;right:25px;width:calc(100% - 50px)}
  #modal.summit #back{position:absolute;bottom:27px;left:25px;right:25px;width:calc(100% - 50px)}
}
@media(max-height:500px){
  #hud{padding:10px 14px;gap:3px}.brand{font-size:12px}.brand small{font-size:12px}
  .status{font-size:21px}.energy{min-width:190px}.energy>div{min-width:100px}
  .tools button{width:44px;height:44px}#message{bottom:20px;font-size:16px;max-width:55%}
  #controls{bottom:15px;right:15px}#controls #rest{height:46px;font-size:14px}
  .overlay{padding:20px 5%;align-items:center}
  .menu-copy{width:100%;max-width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 30px}
  h1{font-size:50px;margin:10px 0}.eyebrow{font-size:10px}.intro{font-size:14px;margin:12px 0}
  .routes{position:static;grid-column:2;grid-row:1/5;margin:8px 0;gap:10px;max-width:330px}
  .route{min-height:54px;padding:10px 14px}.route strong{font-size:15px}
  .how{position:static;grid-column:2;font-size:12px;margin:8px 0}.keys{font-size:10px;margin:0}.preview{position:static;font-size:9px}
  .card{padding:18px}.card h2{font-size:32px;margin:8px 0}.card>p:not(.eyebrow){font-size:13px;margin:8px 0}.card button{padding:10px;margin-top:8px}
  #modal.summit h2{font-size:41px}#modal.summit .card{max-width:340px}#modal.summit .eyebrow{font-size:16px}
}
