@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap");
:root{color-scheme:dark;--ink:#eee2c9;--paper:#28231d;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#250f0e;color:var(--ink)}*{box-sizing:border-box}body{margin:0;overflow:hidden;overscroll-behavior:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:var(--ink);background:#41362a;border:1px solid #807056;border-radius:9px;min-height:44px;padding:10px 15px;font-weight:650}button:hover{background:#52432f}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffce7e;outline-offset:3px}[hidden]{display:none!important}#scene{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;z-index:3;top:0;left:0;right:0;padding:calc(9px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));height:calc(55px + env(safe-area-inset-top));display:flex;gap:9px;align-items:center;background:#211a16f2}.back{display:grid;place-items:center;width:29px;height:37px;font-size:30px;color:#e4cba3;text-decoration:none}.brand{display:grid;gap:2px}.brand strong{font-size:15px;letter-spacing:-.5px}.brand span{font-size:8px;letter-spacing:2px;color:#ac9d83}.brand em{display:none}header>button{margin-left:auto;min-height:36px;padding:7px 9px;font-size:11px}.chapter{position:fixed;z-index:2;top:calc(57px + env(safe-area-inset-top));left:max(15px,env(safe-area-inset-left));right:190px;display:flex;gap:9px;align-items:start;pointer-events:none}.chapter>span{font-size:9px;color:#b4a07e;padding-top:2px;white-space:nowrap}.chapter>div{min-width:0}.chapter small{display:none}.chapter strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter p{font-size:10px;line-height:1.35;margin:4px 0 0;color:#cab894;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.campaign-progress{position:fixed;top:calc(52px + env(safe-area-inset-top));height:2px;left:15px;right:15px;z-index:3;background:#ffffff12}.campaign-progress:before{content:'';display:block;width:var(--progress,0%);height:100%;background:#d59457}.boss-hud{position:fixed;z-index:3;left:15px;top:calc(99px + env(safe-area-inset-top));width:240px;padding:6px 9px;background:#241c18eb;border:1px solid #c5895944;border-radius:6px;pointer-events:none}.boss-hud>div{display:flex;justify-content:space-between;gap:8px;font-size:9px}.boss-hud strong{font-size:10px;color:#f2ce8a}.boss-hud progress{display:block;width:100%;height:4px;margin-top:5px;accent-color:#dd7753}.map-button{position:fixed;z-index:4;right:64px;top:calc(7px + env(safe-area-inset-top));width:112px;height:82px;min-height:0;padding:0;border:1px solid #8c704a;background:#211611;overflow:hidden;border-radius:5px}.map-button canvas{display:block;width:112px;height:62px}.map-button span{display:block;text-align:center;font-size:8px;letter-spacing:1px;padding:3px;color:#d7b985}.map-sheet{max-width:760px!important;width:min(760px,100%)!important}.map-sheet h2{font-size:17px!important}.map-sheet p{font-size:11px!important}#largeMap{display:block;width:100%;height:auto;max-height:50vh;object-fit:contain;background:#210f0d}.runbar{position:fixed;z-index:2;left:15px;right:15px;bottom:calc(105px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:8px;pointer-events:none;color:#baa482;font-size:9px}.runbar span{padding:4px 7px;background:#211a16dc;border-radius:4px}.controls{position:fixed;z-index:5;bottom:0;left:0;right:0;height:calc(102px + env(safe-area-inset-bottom));padding:6px max(15px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;background:#211a16f5;border-top:1px solid #80634244;touch-action:none;user-select:none;-webkit-user-select:none}#moveArea{display:flex;gap:8px;touch-action:none}#leftButton,#rightButton{width:64px;height:64px;padding:0;font-size:24px;border:1px solid #a88a60;border-bottom:4px solid #776042;background:#483c2c;touch-action:none}button.held{background:#a98249!important;border-color:#ffdc93!important;color:#20170f}.action-buttons{display:flex;align-items:center;gap:8px;touch-action:none}#jumpButton{height:77px;width:77px;border-radius:50%;border:2px solid #e4b877;border-bottom:5px solid #9a6837;background:#ba8545;color:#211810;font-size:29px;padding:5px;line-height:1;touch-action:none}#jumpButton small{display:block;font-size:10px;margin-top:4px}#dropButton{width:44px;height:44px;min-height:44px;padding:2px;border-color:#83a3a7;color:#c6e4e5;background:#344a4d;font-size:20px;line-height:1;touch-action:none}#dropButton small{display:block;font-size:8px;margin-top:2px}.jump-tip{font-size:9px;line-height:1.5;text-align:center;color:#ad9878;margin:0 6px}.overlay{position:fixed;inset:0;z-index:10;display:grid;place-items:center;overflow:auto;padding:calc(65px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));background:#180e0bb8;backdrop-filter:blur(3px)}.sheet{width:min(430px,100%);padding:25px;border-radius:15px;background:var(--paper);color:var(--ink);border:1px solid #786046;box-shadow:0 20px 70px #0008}.sheet h1{font-family:Georgia,serif;font-size:44px;font-weight:500;letter-spacing:-1px;line-height:1.04;margin:18px 0;color:#f3d4a2}.sheet h2{font-size:25px;margin:10px 0 15px}.sheet p{font-size:13px;line-height:1.6;color:#c0ad8e}.sheet>button{width:100%;margin-top:9px}.sheet .primary{background:#c99a59;color:#251c13;border-color:#dcb675;text-align:left;padding:14px 18px}.primary span{float:right}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:#cc9d64}.room-stamps{display:none}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.sheet-head button{font-size:25px;border:0;background:none}.sheet details{font-size:12px;line-height:1.5;margin:16px 0}.join,.practice-row{display:flex;gap:7px;margin-top:10px}.join input,.practice-row select{min-width:0;width:100%;padding:9px;border:1px solid #806c50;border-radius:8px;background:#191713;color:#e0cfb2;font-size:12px}.practice-details label{display:block;margin-top:10px;font-size:10px}.practice-row button{font-size:11px}.sheet .fine{font-size:10px;margin:12px 0 0;line-height:1.4;color:#a59276}.audio{display:flex;gap:8px}.audio button{flex:1;font-size:12px}.crew{display:flex;gap:7px;flex-wrap:wrap}.crew span{padding:7px 10px;background:#54432b;border-radius:7px;font-size:12px}.medallion{font-size:50px;text-align:center;color:#eac78b}.result{text-align:center}.result .primary{text-align:center}.original-option{display:block;margin:10px 0;padding:12px;border:1px solid #8e7858;border-radius:8px;color:#e6cba0;font-size:13px;text-align:center;text-decoration:none}.open-runs{display:grid;gap:6px}.open-runs:empty{display:none}.open-runs button{text-align:left;font-size:11px}#notice{position:fixed;z-index:20;left:50%;bottom:calc(137px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:88%;background:#ead0a3;color:#2e2116;border-radius:8px;padding:10px 15px;box-shadow:0 8px 25px #0006;font-size:12px;text-align:center;pointer-events:none}#notice:empty{display:none}.spectator{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:5;max-width:90%;width:max-content;background:#382719;color:#eedabb;border-color:#a9854b;font-size:12px}.team-clear{position:fixed;left:50%;top:43%;transform:translate(-50%,-50%);z-index:6;padding:20px 25px;border-radius:12px;background:#ead0a3f2;color:#302214;font-size:19px;font-weight:800;text-align:center;max-width:88%;pointer-events:none}.chat-toggle{position:fixed;z-index:5;right:15px;bottom:calc(130px + env(safe-area-inset-bottom));min-height:36px;padding:7px 11px;font-size:11px}.chat-panel{position:fixed;z-index:8;right:15px;bottom:calc(170px + env(safe-area-inset-bottom));width:min(330px,calc(100vw - 30px));background:#28231d;border:1px solid #806b4b;border-radius:12px;padding:12px}.chat-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px}.chat-heading button{min-height:30px;padding:0 8px;font-size:22px;border:0;background:none}.chat-log{height:130px;overflow:auto;overscroll-behavior:contain;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat-log:empty:before{content:'Send a hint to the crew.';color:#a29279;display:block;margin-top:18px}.chat-log p{margin:6px 0}.quick-chat{display:flex;gap:5px;margin:8px 0}.quick-chat button{flex:1;padding:4px;min-height:32px;font-size:11px}.chat-panel form{display:flex;gap:6px}.chat-panel input{width:100%;min-width:0;background:#181510;color:#ead1aa;border:1px solid #7e6949;border-radius:7px;padding:8px;font-size:12px}.chat-panel form button{font-size:12px;min-height:36px;padding:7px 10px}#mcw-audio-bar{display:none!important}
@media(min-width:800px){header{padding-left:25px;padding-right:25px}.brand strong{font-size:18px}.chapter{left:28px;right:230px}.chapter strong{font-size:14px}.chapter p{font-size:11px}.map-button{right:95px;width:145px;height:84px}.map-button canvas{width:145px;height:65px}.controls{padding-left:28px;padding-right:28px}.jump-tip{margin-left:auto;margin-right:25px}.overlay:has(.launch){place-items:center start;padding-left:7vw;background:linear-gradient(90deg,#180e0bdd,#180e0b22);backdrop-filter:none}.launch{width:390px}}
@media(max-width:380px){.brand strong{font-size:12px}.brand span{font-size:7px;letter-spacing:1px}.map-button{width:90px;right:60px}.map-button canvas{width:90px}.chapter{right:155px}#leftButton,#rightButton{width:55px;height:60px}#moveArea{gap:6px}#jumpButton{width:70px;height:70px}.controls{padding-left:10px;padding-right:10px}.jump-tip{font-size:8px;margin:0 4px}.action-buttons{gap:5px}}
@media(max-height:560px){header{height:42px;padding-top:4px;padding-bottom:4px}.brand strong{font-size:12px}.brand span{display:none}.chapter{top:46px;left:18px;right:190px}.chapter p{display:none}.chapter strong{font-size:12px}.campaign-progress{top:41px}.map-button{top:5px;height:57px;width:106px;right:76px}.map-button canvas{width:106px;height:43px}.map-button span{font-size:7px;padding:1px}.boss-hud{top:69px;left:auto;right:15px;width:220px}.controls{height:calc(78px + env(safe-area-inset-bottom));padding-top:4px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}#leftButton,#rightButton{height:55px;width:65px}#jumpButton{height:61px;width:61px;font-size:24px}.runbar{bottom:calc(80px + env(safe-area-inset-bottom));font-size:8px}.jump-tip{margin-left:auto;margin-right:20px}.overlay{padding:50px 16px 16px;place-items:start center}.sheet{padding:18px}.sheet h1{font-size:32px}.chat-toggle{bottom:102px}.chat-panel{bottom:143px}.chat-log{height:80px}#notice{bottom:107px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* The thumb controls remain in the same place in every scenario. */
:root{--paper:#182732;--ink:#eef0df;background:#101c28}header{background:#111f2af2}.controls{background:#111f2af5;border-top-color:#7da7ab33}.chapter p{color:#bbcdd1}.runbar span{background:#122330df}.sheet{border-color:#4b6b78}.sheet p{color:#c1ced0}.sheet h1{color:#f2ddb3}.jump-tip{display:none}.action-buttons{position:relative}#climbButton{position:absolute;right:0;bottom:90px;width:62px;height:50px;padding:3px;background:#184d4d;border-color:#6fd5bd;color:#c5ffea;font-size:23px;touch-action:none}#climbButton small{display:block;font-size:9px}#climbButton.attached{box-shadow:0 0 0 3px #73eec43b}#dropButton{position:absolute;right:88px;bottom:17px}.pressure{position:fixed;z-index:2;left:50%;transform:translateX(-50%);bottom:calc(109px + env(safe-area-inset-bottom));font-size:9px;letter-spacing:1px;color:#ffcc97;pointer-events:none;background:#15202bdb;padding:5px 9px;border-radius:4px;white-space:nowrap}.pressure[data-active="true"]{border-left:2px solid #ff9864}body[data-scene="harbor"] .pressure{color:#a7f4f0}.runbar{bottom:calc(134px + env(safe-area-inset-bottom))}.chat-toggle{bottom:calc(165px + env(safe-area-inset-bottom))}body[data-scene="tower"] .campaign-progress:before{background:#8ae5d5}body[data-scene="harbor"] .campaign-progress:before{background:#7bdbe7}body[data-scene="observatory"] .campaign-progress:before{background:#c6a8ff}@media(max-height:560px){#climbButton{bottom:69px;height:44px}.pressure{bottom:84px}.runbar{bottom:109px}#dropButton{right:73px;bottom:9px}}

#skillButton{position:absolute;right:88px;bottom:4px;width:68px;height:68px;padding:4px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid #a5d9bf;background:linear-gradient(to top,#344e59 var(--cooldown,0%),#244a3e var(--cooldown,0%));color:#d9f7e6;border-radius:16px;touch-action:none}#skillButton:disabled{opacity:.72}#skillButton[data-skill="rope"]{border-color:#e8c58f;color:#ffe1ae}#skillButton[data-skill="ward"]{border-color:#a9baff;color:#d9e1ff}#skillIcon{font-size:24px;line-height:1}#skillName{font-size:9px;line-height:1.1}#skillState{font-size:8px}#dropButton{right:88px;bottom:91px}#yourSkill{padding:10px;border-left:2px solid #a5d9bf;background:#a5d9bf0b}@media(max-height:560px){#skillButton{right:73px;width:62px;height:58px;bottom:0}#skillIcon{font-size:21px}#dropButton{bottom:70px}}

/* The adventure fills the screen; instruments sit above it like game controls. */
:root{--paper:#142e3b;--ink:#f0e5c7;font-family:"Trebuchet MS",sans-serif;background:#102631}#scene{image-rendering:pixelated}header{background:linear-gradient(#102631e8,#10263100);height:60px;border:0}.brand strong{font-weight:900;font-size:17px;color:#f3deb0}.brand span{color:#8aacae;letter-spacing:2.4px;font-size:8px}button{background:#244450;border-color:#72928d;border-radius:5px;box-shadow:0 3px 0 #0a202b;color:#e5ead7}button:hover{background:#375c66}header>button{background:#132d39cc;border:1px solid #66848a;min-width:48px}.campaign-progress{top:0;left:0;right:0;height:3px;background:transparent}.campaign-progress:before{background:#ecc987}.chapter{top:64px;gap:10px;right:200px;text-shadow:0 2px 2px #071d28}.chapter>span{color:#ebc583;font-size:10px;padding-top:4px}.chapter strong{font-size:17px;color:#f0e3bf}.chapter p{font-size:11px;color:#b8cfd0;max-width:420px}.map-button{background:#102b38c9;border-color:#5f7f7c;box-shadow:0 3px 0 #0a202b;width:112px;height:72px;right:80px}.map-button canvas{width:112px;height:55px;opacity:.85}.map-button span{font-size:8px;color:#c3d9cb;padding:2px}.controls{background:linear-gradient(transparent,#102631a6);border:0;height:102px;padding-bottom:16px}.runbar{color:#bed0c5;bottom:116px;font-size:9px}.runbar span{background:transparent;text-shadow:0 2px 2px #102631;padding:0}.pressure{bottom:114px;background:#102631ba;border-radius:3px;color:#f0ca8e;letter-spacing:.5px;font-size:9px;padding:5px 8px}#leftButton,#rightButton{background:#1d3e4bdd;border:1px solid #8cafaa;border-bottom:4px solid #102834;border-radius:8px;color:#d4e5d2;width:64px;height:64px;box-shadow:0 3px 0 #071c25}#jumpButton{background:#edc584;color:#173643;border:2px solid #ffdfa0;border-bottom:6px solid #987448;box-shadow:0 3px 0 #0a202b}#climbButton{background:#164c4edb;border-color:#71b9aa;border-radius:7px;color:#c7f1d8;bottom:89px}#skillButton{border-radius:9px;background:linear-gradient(to top,#2c4a56 var(--cooldown,0%),#194342 var(--cooldown,0%));border-color:#91c1ae;box-shadow:0 3px 0 #0b232d}.overlay{background:#071b26bd}.sheet{background:#15313df5;border:2px solid #728982;border-radius:8px;box-shadow:8px 8px 0 #09232cb0}.sheet h1{font-family:"Trebuchet MS",sans-serif;font-size:62px;font-weight:900;letter-spacing:-3px;line-height:.94;color:#f5dfab;text-shadow:3px 4px 0 #835945;margin:14px 0 20px}.sheet p{color:#b9ceca;font-size:13px;line-height:1.6}.sheet .primary{background:#e3ba76;color:#173341;border-color:#ffe0a3;box-shadow:0 4px 0 #846642;font-weight:900}.eyebrow{color:#8ebdb5;letter-spacing:1px}.launch{border:0;background:transparent;box-shadow:none}.launch>p{max-width:320px}.launch .primary{margin-top:20px}.original-option{border-color:#53736e;color:#b7cdc7;font-size:11px}.launch .fine{color:#94b1ae}.join input,.practice-row select{background:#0e2733;border-color:#678780;color:#e7e3c9}.sheet .fine{color:#a7c3ba}.chat-toggle,.chat-panel{background:#173541;border-color:#617f79}.chat-toggle{bottom:151px}.team-clear,#notice{background:#ecce91;color:#183743;border-radius:4px}.boss-hud{background:#112b36cc;border-color:#688982}
@media(min-width:800px){.overlay:has(.launch){padding-left:8vw;background:linear-gradient(90deg,#0b2432f5 0%,#0b2432c4 30%,#0b243200 70%)}.launch{width:365px}.chapter{left:28px;right:230px}.chapter strong{font-size:17px}.map-button{width:120px;height:74px;right:90px}.map-button canvas{width:120px;height:57px}}
@media(max-width:600px){.sheet h1{font-size:48px}.overlay:has(.launch){background:linear-gradient(0deg,#0d2734f0,#0d2734a1)}.launch{padding:18px}.chapter{right:142px;left:15px;top:63px}.chapter strong{font-size:13px}.chapter p{font-size:10px;max-width:220px}.map-button{right:67px;width:72px;height:53px;top:8px}.map-button canvas{width:72px;height:38px}.map-button span{font-size:7px}.brand strong{font-size:14px}.brand span{font-size:7px}.runbar{bottom:112px}.runbar #crewStatus{display:none}.pressure{max-width:70vw;font-size:8px;bottom:113px}.controls{padding-left:12px;padding-right:12px}#leftButton,#rightButton{width:56px;height:61px}#moveArea{gap:7px}#jumpButton{width:70px;height:70px}#skillButton{right:79px;width:61px;height:61px}#climbButton{bottom:80px;width:58px;height:48px}#dropButton{right:79px;bottom:80px}}
@media(max-height:560px){header{height:42px}.brand strong{font-size:12px}.chapter{top:45px}.chapter strong{font-size:12px}.chapter p{display:none}.controls{height:78px;padding-bottom:8px}.map-button{height:48px;width:80px}.map-button canvas{height:34px;width:80px}.runbar{bottom:85px}.pressure{bottom:86px}#climbButton{bottom:69px;height:44px}#dropButton{bottom:70px}.sheet h1{font-size:36px}.launch{padding:10px}.launch p{font-size:11px}.launch .primary{margin-top:6px}.launch details{margin:10px 0}}
@media(min-width:800px){.launch h1{font-size:52px;letter-spacing:-2px}.launch .original-option{margin:10px 0}.launch details{margin:12px 0}}

.controls.recovering #moveArea,.controls.recovering #jumpButton,.controls.recovering #climbButton,.controls.recovering #skillButton{visibility:hidden;pointer-events:none}

@media(max-width:600px){.runbar #crewStatus{display:block;max-width:75%;font-size:10px;text-align:right}}

/* One useful cue at a time, above the steady thumb controls. */
#actionHint{position:fixed;z-index:4;left:50%;bottom:calc(151px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 30px);width:max-content;padding:6px 10px;border-left:2px solid #a9d9c5;border-radius:4px;background:#102a36ed;color:#e4e8cc;font-size:11px;text-align:center;pointer-events:none}#actionHint[data-kind="rescue"]{border-color:#f1be80;color:#ffe1ac}#skillButton[data-ready="true"]{border-color:#d4f1bf;box-shadow:0 3px 0 #0b232d,0 0 0 2px #bfe5bf1a}#skillButton[data-ready="false"] #skillState{color:#d5d9c8}#skillButton:disabled{opacity:.85}.team-clear{padding:16px 22px;box-shadow:0 6px 0 #715b3b,0 14px 35px #071b2644;border:1px solid #ffe5ad}.team-clear strong{display:block;font-size:19px}.team-clear small{display:block;font-size:11px;font-weight:400;margin-top:7px}#notice{bottom:calc(190px + env(safe-area-inset-bottom));max-width:min(440px,calc(100% - 36px));line-height:1.4}.controls button{transition:background .08s,border-color .08s}.controls button.held{transform:translateY(2px);box-shadow:0 1px 0 #0a202b}@media(max-height:560px){#actionHint{bottom:112px;font-size:10px;padding:5px 8px;max-width:55%}#notice{bottom:149px;max-width:55%;font-size:11px}.team-clear{top:42%;padding:12px 18px}.team-clear strong{font-size:17px}}@media(prefers-reduced-motion:reduce){.controls button{transition:none}.controls button.held{transform:none}}


/* Ballpoint paper: cream surfaces, blue pen lines, hand-lettered ink; the course is drawn in JS to match. */
:root{--paper:#fbf4e4;--ink:#283a8c;--pen-soft:rgba(40,58,140,.18);--sketch:255px 15px 225px 15px/15px 225px 15px 255px;color-scheme:light;background:#f1e8d6}
html body{background:#f1e8d6;color:#283a8c}
html body #scene{image-rendering:auto}
html body header{background:linear-gradient(#f1e8d6f2,#f1e8d600);border:0}
html body .brand strong{color:#283a8c;font-family:Caveat,"Chalkboard SE","Comic Sans MS",cursive;font-size:24px;font-weight:700;letter-spacing:0}
html body .brand strong em{color:#c8423a}
html body .brand span{color:#3b53b8}
html body button,html body .back,html body select,html body input{background:#fbf4e4;color:#283a8c;border:1.6px solid #283a8c;border-radius:var(--sketch);box-shadow:2px 3px 0 var(--pen-soft)}
html body button:hover{background:#fff8ea}
html body button.held{background:#ffe3a0;box-shadow:0 1px 0 var(--pen-soft)}
html body header>button,html body .back{background:#fbf4e4;color:#283a8c;border:1.6px solid #283a8c}
html body .chapter,html body .chapter strong{color:#283a8c;text-shadow:0 0 4px #fbf4e4,0 0 2px #fbf4e4}
html body .chapter strong{font-family:Caveat,"Chalkboard SE",cursive;font-size:21px;font-weight:700}
html body .chapter p,html body .chapter small{color:#3a4a8a;text-shadow:0 0 3px #fbf4e4}
html body .chapter>span{color:#c8423a;background:#fbf4e4;border:1.4px solid #283a8c;border-radius:var(--sketch)}
html body .campaign-progress{background:rgba(40,58,140,.12)}
html body .campaign-progress:before{background:#c8423a}
html body .boss-hud{background:#fbf4e4;color:#283a8c;border:1.6px solid #283a8c;border-radius:14px 6px 15px 7px/7px 15px 6px 14px;box-shadow:3px 4px 0 var(--pen-soft)}
html body .boss-hud strong{color:#a23a2c}
html body .boss-hud progress{accent-color:#c8423a}
html body .pressure{background:#fbe1dc;color:#7a231b;border:1.5px solid #c8423a}
html body .runbar span{background:rgba(251,244,228,.92);color:#283a8c;border:1.2px solid rgba(40,58,140,.4)}
html body .map-button{background:#fbf4e4;border:1.6px solid #283a8c;box-shadow:2px 3px 0 var(--pen-soft)}
html body .map-button span{color:#283a8c;background:transparent}
html body .overlay{background:rgba(241,232,214,.55);backdrop-filter:none}
html body .overlay:has(.launch){background:linear-gradient(0deg,rgba(241,232,214,.94) 30%,rgba(241,232,214,.55))}
html body .sheet{background:#fbf4e4;color:#283a8c;border:1.8px solid #283a8c;border-radius:22px 9px 24px 10px/10px 24px 9px 22px;box-shadow:5px 7px 0 rgba(40,58,140,.16)}
html body .overlay:not([hidden]) .sheet{animation:pe-pop .46s cubic-bezier(.34,1.56,.64,1)}
@keyframes pe-pop{from{opacity:0;transform:translateY(16px) scale(.94) rotate(-.8deg)}to{opacity:1;transform:none}}
html body .sheet h1,html body .sheet h2{font-family:Caveat,"Chalkboard SE","Comic Sans MS",cursive;color:#283a8c;text-shadow:none;letter-spacing:0;font-weight:700}
html body .sheet h1{font-size:60px;line-height:.9}
html body .sheet p,html body .sheet .fine,html body .launch .fine{color:#3a4a8a}
html body .eyebrow{color:#c8423a}
html body .sheet .primary,html body .primary{background:#ffd36f;color:#283a8c;border-color:#283a8c;box-shadow:3px 4px 0 rgba(40,58,140,.28)}
html body .original-option{color:#3b53b8}
html body .room-stamps span{color:#283a8c;border-color:rgba(40,58,140,.45)}
html body details summary{color:#283a8c}
html body .medallion{color:#c8423a;border-color:#283a8c;background:#fff8ea}
html body .crew span{background:#fff8ea;color:#283a8c}
html body .controls{background:linear-gradient(#f1e8d600,#f1e8d6f0 35%);border-top:0}
html body .controls button{background:#fbf4e4;color:#283a8c;border:2px solid #283a8c;box-shadow:3px 4px 0 rgba(40,58,140,.22)}
html body #jumpButton{background:#ffd36f}
html body #climbButton{background:#d9ecd0;border-color:#2e7d5b;color:#1f5a3f}
html body #climbButton.attached{box-shadow:0 0 0 3px #2e7d5b55}
html body #skillButton{background:#e6e0f7;border-color:#283a8c;color:#283a8c}
html body #skillButton[data-skill="rope"]{background:#fff0c4;color:#5c3d06;border-color:#b5781f}
html body #skillButton[data-skill="ward"]{background:#dfe6fb}
html body #skillButton[data-ready="false"] #skillState{color:#5d6a9e}
html body .jump-tip{color:#3a4a8a}
html body #actionHint{background:#fbf4e4;color:#283a8c;border:1.4px solid #283a8c;border-left-width:3px}
html body #actionHint[data-kind="rescue"]{border-color:#c8423a;color:#7a231b}
html body #notice{background:#fffaf0;color:#283a8c;border:1.5px solid #283a8c;border-radius:var(--sketch);box-shadow:3px 4px 0 var(--pen-soft)}
html body #notice:not(:empty){animation:pe-drop .38s cubic-bezier(.34,1.56,.64,1)}
@keyframes pe-drop{from{opacity:0;margin-bottom:-10px}to{opacity:1;margin-bottom:0}}
html body .team-clear{background:#fbf4e4;color:#283a8c;border:1.8px solid #283a8c;box-shadow:5px 7px 0 rgba(40,58,140,.16)}
html body .spectator{background:#fbf4e4;color:#283a8c}
html body .chat-panel,html body .chat-toggle{background:#fbf4e4;color:#283a8c;border:1.6px solid #283a8c}
html body .chat-panel input{background:#fff8ea}
html body #largeMap{background:#fbf4e4;border:1.4px solid #283a8c}
@media (prefers-reduced-motion:reduce){html body .overlay:not([hidden]) .sheet,html body #notice:not(:empty){animation:none}}
@media(max-width:600px){html body .sheet h1{font-size:50px}}
html body .practice-row select,html body .join input{background:#fff8ea;color:#283a8c;border:1.5px solid #283a8c}
html body .controls #leftButton,html body .controls #rightButton,html body .controls #dropButton{background:#fbf4e4;color:#283a8c;border:2px solid #283a8c;box-shadow:3px 4px 0 rgba(40,58,140,.22)}
html body .controls #leftButton.held,html body .controls #rightButton.held,html body .controls #dropButton.held,html body .controls #jumpButton.held{background:#ffe3a0;box-shadow:1px 1px 0 rgba(40,58,140,.22)}
/* critic round: 44px header targets, paper plate behind HUD text, run bar stacked left clear of the action buttons */
html body .back{min-width:44px;min-height:44px}
html body header>button{min-height:44px;min-width:44px}
html body .chapter>div{background:rgba(251,244,228,.9);border-radius:12px 5px 12px 6px;padding:3px 9px 5px;box-shadow:0 0 0 1px rgba(40,58,140,.14)}
html body .chapter strong{line-height:1.2;padding-right:.3em}
html body .runbar{flex-direction:column;align-items:flex-start;right:auto;max-width:min(56%,320px);gap:4px;font-size:11px}
html body .runbar span{padding:2px 8px;border-radius:8px}
html body .runbar #crewStatus{text-align:left;max-width:none;font-size:11px}
html body .team-clear{z-index:2147483000}
/* critic round 2: 44px summary/link targets, three-line hint, pressure banner moved to the top-right clear of the run bar */
html body summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}
html body .original-option{min-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
html body .chapter p{-webkit-line-clamp:3}
html body .pressure{left:auto;right:max(15px,env(safe-area-inset-right));top:calc(70px + env(safe-area-inset-top));bottom:auto;transform:none;max-width:150px;white-space:normal;text-align:right;font-size:11px;line-height:1.3;letter-spacing:.3px;border-radius:9px 4px 10px 5px;padding:5px 8px}
@media(max-height:560px){html body .pressure{top:calc(58px + env(safe-area-inset-top));max-width:230px}}
@media(max-width:600px) and (min-height:561px){html body .pressure{max-width:calc(100vw - 258px)}}
html body .title-crew{display:block;width:156px;height:78px;margin:-4px 0 2px -8px}
@media(max-height:560px){html body .title-crew{width:117px;height:58px;margin:-6px 0 0 -6px}}
html body #launch h1{transform-origin:20% 90%;animation:pe-breathe 3.4s ease-in-out infinite}
@keyframes pe-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.012,1.022) rotate(-.4deg)}}
@media(prefers-reduced-motion:reduce){html body #launch h1{animation:none}}
html body summary{list-style:none}
html body summary::-webkit-details-marker{display:none}
html body summary::before{content:'\25B8';font-size:.9em;color:#283a8c;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
html body details[open]>summary::before{transform:rotate(90deg)}
/* critic round 3: full stage names, pen clear card with an entrance that keeps its centring */
html body .chapter strong{white-space:normal;font-size:clamp(17px,5.3vw,21px);line-height:1.08;overflow:visible;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
html body .team-clear{border-radius:16px 6px 18px 7px/7px 18px 6px 16px;padding:14px 22px 12px;animation:pe-pop-centred .5s cubic-bezier(.34,1.56,.64,1)}
html body .team-clear strong{font-family:Caveat,"Chalkboard SE","Comic Sans MS",cursive;font-size:30px;font-weight:700;letter-spacing:0;line-height:1}
html body .team-clear small{font-size:12px;color:#3a4a8a}
@keyframes pe-pop-centred{from{opacity:0;transform:translate(-50%,-50%) translateY(16px) scale(.9) rotate(-1.5deg)}60%{opacity:1}to{opacity:1;transform:translate(-50%,-50%)}}
@media(prefers-reduced-motion:reduce){html body .team-clear{animation:none}}
@media(max-height:560px) and (min-width:600px){html body #notice,html body #actionHint{bottom:22px;max-width:calc(100% - 360px);z-index:6;padding:6px 10px;pointer-events:none}}
/* round 5: Relaxed/Challenge picker; climbing is automatic (push toward a mint grip), so the Climb button goes */
html body .pace-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 8px}
html body .pace-picker button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:58px;padding:9px 12px;text-align:left;background:#fbf4e4;color:#283a8c;border:1.5px solid rgba(40,58,140,.45);border-radius:14px 6px 15px 7px/7px 15px 6px 14px;box-shadow:none;width:auto}
html body .pace-picker button b{font-family:Caveat,"Chalkboard SE","Comic Sans MS",cursive;font-size:22px;line-height:1}
html body .pace-picker button small{font-size:12px;line-height:1.3;color:#3a4a8a;font-weight:400;letter-spacing:0;text-transform:none}
html body .pace-picker button.on{background:#fff0c4;border:2px solid #283a8c;box-shadow:3px 3px 0 rgba(40,58,140,.25)}
html body .pace-picker button[data-pace="challenge"].on{background:#fbe1dc}
html body #climbButton{display:none}
@media(max-width:600px){html body #leftButton,html body #rightButton{width:72px;height:68px}}
/* legibility floor: nothing a child needs to read is under 11px */
html body .brand span,html body #chapterCount,html body #roomHint,html body .sheet .eyebrow,html body .practice-details label,html body #onlineStatus,html body p.fine,html body #mapButton span,html body #skillName,html body #skillState,html body #dropButton small,html body #jumpButton small{font-size:11px}
html body .brand span{letter-spacing:.4px;white-space:nowrap}
