:root{
  --ink:#14131c;
  --paper:#fff8e8;
  --sky:#1e9be8;
  --sky2:#7fd4ff;
  --red:#e42b2b;
  --red-dark:#a8121d;
  --gold:#ffce2e;
  --gold-deep:#e39a00;
  --cyan:#2fc4f0;
  --green:#45b649;
  --purple:#6b2bc8;
  --shadow:6px 6px 0 rgba(20,19,28,.85);
  --outline:3px solid var(--ink);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;background:#0f1526}
body{
  font-family:Rubik,system-ui,sans-serif;
  color:var(--ink);
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  touch-action:none;
  overscroll-behavior:none;
}
#game{position:fixed;inset:0;overflow:hidden}
#stage{position:absolute;inset:0;background:#8ed8ff}
#gameSky{position:absolute;left:0;right:0;top:0;height:62%;z-index:0;overflow:hidden;background:linear-gradient(#2495d8 0%,#63c8f4 55%,#c9eeff 100%)}
#stage canvas{position:relative;z-index:1}
#gameSky .gcloud{position:absolute;background:#fff;border:3px solid #14131c;border-radius:50px;opacity:.95}
#gameSky .gcloud:before,#gameSky .gcloud:after{content:"";position:absolute;background:#fff;border:3px solid #14131c;border-radius:50%}
#gameSky .g1{width:150px;height:44px;left:8%;top:34%}
#gameSky .g1:before{width:60px;height:60px;left:16px;top:-30px}
#gameSky .g1:after{width:44px;height:44px;left:76px;top:-20px}
#gameSky .g2{width:110px;height:34px;right:14%;top:58%}
#gameSky .g2:before{width:46px;height:46px;left:12px;top:-24px}
#gameSky .g2:after{width:34px;height:34px;left:58px;top:-14px}
#gameSky .gsun{position:absolute;right:12%;top:8%;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle at 40% 40%,#fff6c8,#ffd23f 60%,#ffb300);border:4px solid #14131c;box-shadow:0 0 0 8px rgba(255,255,255,.18)}
#sunWash{position:absolute;inset:0;z-index:5;pointer-events:none;background:radial-gradient(ellipse at 16% 6%,rgba(255,220,130,.6),rgba(255,150,60,.18) 42%,rgba(255,180,90,0) 72%),linear-gradient(180deg,rgba(255,190,90,.10),rgba(255,120,40,.06));mix-blend-mode:soft-light;opacity:1}
#panelFrame{position:absolute;inset:0;z-index:7;pointer-events:none;border:6px solid #14131c;box-shadow:inset 0 0 0 2px rgba(255,246,216,.25)}
#printGrain{position:absolute;inset:0;z-index:6;pointer-events:none;background-image:radial-gradient(rgba(20,19,28,.55) 0.9px,transparent 1.1px);background-size:4px 4px;mix-blend-mode:multiply;opacity:.13}
#stage.level-bg{background-repeat:repeat-x;background-position:0 100%;background-size:auto 44%}
#stage canvas{display:block;width:100%;height:100%}
.hidden{display:none !important}
.soft{color:#4a4657}
b,strong{font-weight:800}

/* ---------- loading ---------- */
.loading{
  position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(circle at 20% 15%, #8fd9ff 0 18%, transparent 18.5%),
    radial-gradient(circle at 80% 10%, #fff 0 12%, transparent 12.5%),
    linear-gradient(#1e9be8,#67caf7 60%,#ffd98a);
}
.loading-card{
  width:min(78vw,380px);padding:22px 22px 18px;background:var(--paper);
  border:4px solid var(--ink);border-radius:18px;box-shadow:8px 8px 0 rgba(20,19,28,.8);
  transform:rotate(-1.6deg);text-align:center;
}
.loading-logo{font-family:'Titan One',sans-serif;font-size:clamp(28px,8vw,46px);line-height:.9;color:var(--red);-webkit-text-stroke:2px var(--ink);text-shadow:3px 3px 0 var(--ink);letter-spacing:1px}
.loading-track{height:16px;margin:16px 0 10px;border:3px solid var(--ink);border-radius:10px;background:#fff;overflow:hidden}
.loading-track i{display:block;height:100%;width:10%;background:repeating-linear-gradient(45deg,var(--gold) 0 8px,#ffb300 8px 16px);transition:width .25s}
.loading-note{font-family:'Titan One',sans-serif;font-size:12px;letter-spacing:1px;color:#3d3a4e}

/* ---------- HUD ---------- */
#hud{position:absolute;inset:0;z-index:20;pointer-events:none}
.hud-bar{position:absolute;top:calc(8px + env(safe-area-inset-top));left:8px;right:8px;display:flex;align-items:flex-start;gap:8px;justify-content:space-between}
.hud-group{display:flex;align-items:flex-start;gap:7px}
.sticker{background:var(--paper);border:3px solid var(--ink);border-radius:12px;box-shadow:4px 4px 0 rgba(20,19,28,.75)}
.portrait-sticker{width:58px;height:58px;flex:0 0 auto;border-radius:50%;border:3px solid var(--ink);overflow:hidden;background:#ffd;box-shadow:4px 4px 0 rgba(20,19,28,.75);transform:rotate(-4deg)}
.portrait-sticker img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;transform:scale(1.25)}
.stat-sticker{padding:4px 8px 5px;min-width:122px;transform:rotate(-1deg);background:#f3ddae}
.hearts{display:flex;gap:2px;height:19px;align-items:center}
.hearts img{width:20px;height:20px;object-fit:contain;filter:drop-shadow(1px 1px 0 #00000022)}
.hearts img.off{opacity:.25;filter:grayscale(1)}
.coin-line{display:flex;align-items:center;gap:5px;margin-top:1px;white-space:nowrap}
.coin-icon{width:22px;height:22px;object-fit:contain}
.coin-line b{font-family:'Titan One',sans-serif;font-size:20px;line-height:1;color:#3a3218;-webkit-text-stroke:1px #fff;text-shadow:2px 2px 0 #00000026}
.lives{margin-left:10px;font-family:'Titan One',sans-serif;font-size:11px;color:#68627a;display:flex;gap:3px;align-items:center}
.lives i{font-style:normal;letter-spacing:.5px}
.lives b{font-size:16px;color:var(--ink)}
.super-track{position:relative;height:9px;margin-top:4px;border:2px solid var(--ink);border-radius:6px;background:#ded6c4;overflow:hidden}
.super-track i{display:block;height:100%;width:0%;background:linear-gradient(90deg,var(--cyan),var(--gold));transition:width .2s}
.super-track span{position:absolute;right:2px;top:-13px;font-family:'Titan One',sans-serif;font-size:8px;color:#8b8499;letter-spacing:.5px}
.hud-center{position:absolute;left:50%;top:calc(84px + env(safe-area-inset-top));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;z-index:2;pointer-events:none}
.world-tag{padding:3px 8px 4px;text-align:center;transform:rotate(-1deg);max-width:100%;background:#fff3cf;border:2px solid #14131c;border-radius:7px;box-shadow:2px 2px 0 rgba(20,19,28,.65)}
.tag-small{display:block;font-family:'Titan One',sans-serif;font-size:8px;letter-spacing:.8px;color:#6b6577}
.tag-big{display:block;font-family:'Titan One',sans-serif;font-size:14px;line-height:0.98;color:var(--red);-webkit-text-stroke:.5px var(--ink);white-space:normal;overflow-wrap:break-word;max-width:150px;margin:0 auto}
.boss-sticker{position:static;transform:rotate(-.6deg);padding:5px 10px;min-width:0;width:min(74vw,270px);background:#2a1130;border-color:#0c0710;box-shadow:4px 4px 0 rgba(0,0,0,.5);z-index:3}
.boss-head{display:flex;justify-content:space-between;gap:10px;font-family:'Titan One',sans-serif;font-size:11px;letter-spacing:.8px;color:#ffe6a6}
.boss-head b{color:#ff7b7b;font-size:11px}
.boss-bar{height:12px;margin-top:4px;border:2px solid #0c0710;border-radius:7px;background:#4b2440;overflow:hidden}
.boss-bar i{display:block;height:100%;width:100%;background:repeating-linear-gradient(45deg,#ff5849 0 8px,#d81f2a 8px 16px);transition:width .2s}
.hud-right{pointer-events:auto;gap:6px}
.round-btn{width:36px;height:36px;border-radius:50%;border:3px solid var(--ink);background:var(--gold);
  font-family:'Titan One',sans-serif;font-size:15px;color:var(--ink);box-shadow:3px 3px 0 rgba(20,19,28,.7);
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
}
.round-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 rgba(20,19,28,.75)}
.weapon-pill{position:absolute;top:calc(196px + env(safe-area-inset-top));right:10px;display:flex;align-items:center;gap:6px;padding:4px 9px 4px 5px;background:var(--ink);border:2px solid var(--gold);border-radius:8px;box-shadow:3px 3px 0 rgba(20,19,28,.7);font-family:'Titan One',sans-serif;font-size:10px;letter-spacing:.6px;color:var(--gold);transform:rotate(1.5deg)}
.weapon-pill img{width:34px;height:24px;object-fit:contain}
.weapon-pill b{color:#ff8b7a}
.ride-prompt{position:absolute;left:50%;bottom:calc(110px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:6px 12px;background:var(--gold);border:3px solid var(--ink);border-radius:20px;box-shadow:4px 4px 0 rgba(20,19,28,.8);font-family:'Titan One',sans-serif;font-size:12px;letter-spacing:.7px;animation:bob .7s ease-in-out infinite alternate}
.ride-prompt em{font-style:normal;background:var(--ink);color:#fff;border-radius:6px;padding:1px 6px;font-size:13px}
@keyframes bob{from{transform:translate(-50%,0)}to{transform:translate(-50%,-5px)}}
.toast{position:absolute;left:50%;top:auto;bottom:calc(150px + env(safe-area-inset-bottom));z-index:18;transform:translate(-50%,-10px);padding:8px 16px;background:var(--red);border:3px solid var(--ink);border-radius:9px;box-shadow:5px 5px 0 rgba(20,19,28,.8),0 0 0 3px var(--gold);font-family:'Titan One',sans-serif;font-size:14px;color:#ffe6a6;text-shadow:2px 2px 0 var(--ink);opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap;max-width:88vw;overflow:hidden;text-overflow:ellipsis}
.toast.show{opacity:1;transform:translate(-50%,0) rotate(-1deg)}

/* ---------- touch controls ---------- */
.touch{position:absolute;inset:0;pointer-events:none;z-index:25}
#stickZone{position:absolute;left:calc(12px + env(safe-area-inset-left));bottom:calc(14px + env(safe-area-inset-bottom));width:124px;height:124px;pointer-events:auto;touch-action:none}
#stickBase{position:absolute;inset:0;border-radius:50%;border:3px solid var(--ink);background:rgba(255,248,232,.55);box-shadow:3px 3px 0 rgba(20,19,28,.45)}
#stickBase:before{content:"";position:absolute;inset:18px;border-radius:50%;border:2px dashed rgba(20,19,28,.28)}
#stickKnob{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;border:3px solid var(--ink);background:var(--paper);box-shadow:2px 3px 0 rgba(20,19,28,.5);display:flex;align-items:center;justify-content:center;font-family:'Titan One',sans-serif;font-size:20px;color:#c9bfae}
#touchButtons{position:absolute;right:calc(10px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,64px);grid-template-rows:repeat(2,64px);gap:8px;pointer-events:auto}
.tbtn{
  width:64px;height:64px;border-radius:50%;border:3px solid var(--ink);
  background:var(--paper);font-family:'Titan One',sans-serif;font-size:12px;letter-spacing:.5px;color:var(--ink);
  box-shadow:4px 4px 0 rgba(20,19,28,.7);cursor:pointer;padding:0;touch-action:none;
}
.tbtn span{display:block;transform:rotate(-3deg)}
.tbtn:active,.tbtn.on{transform:translate(2px,3px);box-shadow:2px 1px 0 rgba(20,19,28,.8)}
.tbtn-jump{background:var(--gold);font-size:14px}
.tbtn-punch{background:#ff6a5e}
.tbtn-run{background:#9be0ff;font-size:12px}
.tbtn-special{background:#c8a6ff;font-size:11px}
.tbtn-carry{background:var(--gold);font-size:10px}

/* ---------- screens ---------- */
#screens{position:absolute;inset:0;z-index:40;pointer-events:none}
.screen{position:absolute;inset:0;display:none;overflow-y:auto;overflow-x:hidden;pointer-events:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.screen.show{display:block}
.title-sky{position:fixed;inset:0;background:linear-gradient(#0f6fbf 0%,#1e9be8 42%,#7fd4ff 72%,#ffe1a0 100%)}
.title-sky .sun{position:absolute;right:8%;top:7%;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle at 40% 40%,#fff6c8,#ffd23f 60%,#ffb300);border:4px solid var(--ink);box-shadow:0 0 0 10px rgba(255,255,255,.16)}
.title-sky .cloud{position:absolute;background:#fff;border:3px solid var(--ink);border-radius:50px;opacity:.95}
.title-sky .cloud:before,.title-sky .cloud:after{content:"";position:absolute;background:#fff;border:3px solid var(--ink);border-radius:50%}
.c1{width:150px;height:44px;left:6%;top:14%}
.c1:before{width:60px;height:60px;left:16px;top:-30px}
.c1:after{width:44px;height:44px;left:76px;top:-20px}
.c2{width:110px;height:34px;right:18%;top:26%}
.c2:before{width:46px;height:46px;left:12px;top:-24px}
.c2:after{width:34px;height:34px;left:58px;top:-14px}
.c3{width:90px;height:30px;left:32%;top:5%;opacity:.8}
.c3:before{width:38px;height:38px;left:10px;top:-20px}
.c3:after{width:28px;height:28px;left:48px;top:-10px}
.title-panels{position:fixed;inset:0;overflow:hidden;pointer-events:none}
.tpanel{position:absolute;border:3px solid var(--ink);overflow:hidden;box-shadow:6px 6px 0 rgba(20,19,28,.35);opacity:.5}
.tpanel img{width:100%;height:100%;object-fit:cover}
.tpanel.p1{left:-6%;top:34%;width:26vw;height:26vw;transform:rotate(-8deg)}
.tpanel.p2{left:12%;top:52%;width:24vw;height:24vw;transform:rotate(5deg)}
.tpanel.p3{right:-4%;top:30%;width:30vw;height:30vw;transform:rotate(7deg)}
.tpanel.p4{right:10%;top:56%;width:26vw;height:26vw;transform:rotate(-6deg)}
.tpanel.p5{left:38%;top:62%;width:26vw;height:26vw;transform:rotate(3deg)}
.tpanel-dots{position:fixed;inset:0;background-image:radial-gradient(rgba(20,19,28,.28) 1.2px,transparent 1.4px);background-size:8px 8px;opacity:.5;mix-blend-mode:multiply}
.title-wrap{position:relative;z-index:2;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom))}
.logo{position:relative;text-align:center;margin-bottom:2px;filter:drop-shadow(5px 6px 0 rgba(20,19,28,.55))}
.logo-line{font-family:'Titan One',sans-serif;line-height:.82;letter-spacing:1px;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill}
.logo-line1{font-size:clamp(46px,12.4vw,96px);color:#e42b2b;-webkit-text-stroke:8px #fff8e8;paint-order:stroke fill;filter:drop-shadow(0 0 2px #14131c) drop-shadow(0 4px 0 #14131c) drop-shadow(0 7px 0 #7a0f17)}
.logo-line2{font-size:clamp(34px,9.4vw,76px);background:linear-gradient(180deg,#7ce86b 0%,#45b649 42%,#2fc4f0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:7px #fff8e8;paint-order:stroke fill;filter:drop-shadow(0 0 2px #14131c) drop-shadow(0 5px 0 #14131c);transform:rotate(-1.5deg);margin-top:2px}
.logo .crown{position:absolute;left:1%;top:-36%;width:clamp(58px,14vw,106px);transform:rotate(-14deg);z-index:3;filter:drop-shadow(3px 4px 0 rgba(20,19,28,.5))}
.logo .swoosh{display:block;width:clamp(230px,54vw,470px);margin:6px auto 0;transform:rotate(-1deg)}
.tagline{font-family:'Titan One',sans-serif;font-size:clamp(9px,2.4vw,13px);letter-spacing:2px;color:#08304d;background:rgba(255,248,232,.82);border:2px solid var(--ink);border-radius:20px;padding:3px 12px;transform:rotate(-1deg);margin:0}
.big-sticker{
  font-family:'Titan One',sans-serif;font-size:clamp(15px,4vw,20px);letter-spacing:.8px;
  border:3px solid var(--ink);border-radius:14px;background:var(--paper);color:var(--ink);
  box-shadow:5px 5px 0 rgba(20,19,28,.8);padding:11px 26px;cursor:pointer;transition:transform .06s;
}
.big-sticker:active{transform:translate(3px,3px);box-shadow:2px 2px 0 rgba(20,19,28,.85)}
.big-sticker.alt{background:#e9f6ff;font-size:clamp(11px,3vw,14px);padding:9px 16px}
.play-btn{display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--red);color:#fff;border-color:var(--ink);padding:10px 30px 11px;transform:rotate(-1.2deg);box-shadow:0 7px 0 #7a0f17,0 10px 0 var(--ink),7px 12px 0 rgba(20,19,28,.35)}
.play-btn .play-main{font-size:clamp(24px,7vw,36px);line-height:1;text-shadow:2px 3px 0 #7a0f17,-1px -1px 0 var(--ink)}
.play-btn .play-sub{font-family:Rubik,sans-serif;font-weight:800;font-size:9px;letter-spacing:1.2px;color:#ffe6a6}
.title-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.title-cards{display:flex;gap:10px;margin-top:8px;width:min(94vw,640px);flex-wrap:wrap;justify-content:center}
.paper-card{flex:1 1 240px;max-width:320px;background:var(--paper);border:3px solid var(--ink);border-radius:12px;padding:9px 12px 10px;box-shadow:5px 5px 0 rgba(20,19,28,.55);transform:rotate(-.8deg)}
.paper-card:nth-child(2){transform:rotate(.9deg)}
.paper-card h3{font-family:'Titan One',sans-serif;font-size:13px;letter-spacing:1px;margin:0;color:var(--ink)}
.paper-card .squiggle{display:block;width:100%;height:10px;margin:1px 0 4px}
.paper-card p{font-size:10.5px;line-height:1.45;margin:3px 0}
kbd{display:inline-block;background:#fff;border:2px solid var(--ink);border-bottom-width:3px;border-radius:5px;padding:0 4px;font-family:'Titan One',sans-serif;font-size:8.5px;margin:0 1px}
.world-pips{display:flex;gap:4px;margin:6px 0 2px}
.pip{width:22px;height:22px;border-radius:50%;border:2px solid var(--ink);background:var(--gold);font-family:'Titan One',sans-serif;font-size:10px;display:flex;align-items:center;justify-content:center}
.credits{font-family:'Titan One',sans-serif;font-size:8px;letter-spacing:2px;color:#08304d;opacity:.7;margin:4px 0 0}
.title-footer{position:absolute;left:0;right:0;bottom:calc(14px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;z-index:3;padding:8px 14px;max-width:620px;margin:0 auto;pointer-events:none}
.tf-art{flex:0 0 120px;height:64px;border:3px solid var(--ink);border-radius:10px;overflow:hidden;transform:rotate(-2deg);box-shadow:4px 4px 0 rgba(20,19,28,.45)}
.tf-art img{width:100%;height:100%;object-fit:cover}
.tf-dre{flex:0 0 62px;width:62px;height:62px;border-radius:50%;border:3px solid var(--ink);overflow:hidden;background:#ffd;transform:rotate(4deg);box-shadow:4px 4px 0 rgba(20,19,28,.45);margin-left:-4px}
.tf-dre img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;transform:scale(1.2)}
.tf-copy{display:flex;flex-direction:column;gap:2px;background:rgba(255,248,232,.9);border:2px solid var(--ink);border-radius:9px;padding:5px 9px;box-shadow:3px 3px 0 rgba(20,19,28,.4);transform:rotate(.6deg);min-width:0}
.tf-copy b{font-family:'Titan One',sans-serif;font-size:10.5px;letter-spacing:.6px;color:var(--red)}
.tf-copy span{font-size:7.4px;letter-spacing:.4px;color:#3d3a4e;line-height:1.25;max-width:52vw}
@media (max-height:640px){.title-footer{display:none}}

/* map */
.map-screen{background:linear-gradient(#0f6fbf,#1e9be8 45%,#ffcf6a);}
.map-wrap{max-width:900px;min-height:100%;margin:0 auto;padding:calc(16px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:center}
.map-head{text-align:center;color:#fff}
.menu-card .small-tag{color:#8a6a2f}
.map-head .small-tag{font-size:10px;color:#fff;text-shadow:2px 2px 0 rgba(20,19,28,.5)}
.small-tag{font-family:'Titan One',sans-serif;font-size:9px;letter-spacing:2.4px;color:#ffe6a6;margin:0}
.map-head h2,.menu-card h2{font-family:'Titan One',sans-serif;font-size:clamp(26px,7vw,44px);margin:2px 0;color:#fff;-webkit-text-stroke:2.5px var(--ink);text-shadow:4px 4px 0 var(--ink);letter-spacing:1px;line-height:1}
.map-head .squiggle{width:min(260px,70vw);height:14px;display:block;margin:4px auto 2px}
.map-sub{color:#08304d;background:rgba(255,248,232,.8);display:inline-block;padding:3px 12px;border-radius:20px;border:2px solid var(--ink);font-size:11px;margin:6px 0 0}
.map-list{display:flex;flex-direction:column;gap:10px;margin:14px 0 16px}
.world-card{position:relative;display:flex;align-items:center;gap:10px;text-align:left;background:var(--paper);border:3px solid var(--ink);border-radius:14px;box-shadow:6px 6px 0 rgba(20,19,28,.7);padding:7px;overflow:hidden;cursor:pointer;transition:transform .08s;transform:rotate(var(--tilt,0deg))}
.world-card:nth-child(odd){--tilt:-.5deg}
.world-card:nth-child(even){--tilt:.6deg}
.world-card:active{transform:translate(3px,3px) rotate(var(--tilt,0deg));box-shadow:2px 2px 0 rgba(20,19,28,.8)}
.world-art{width:132px;height:64px;flex:0 0 auto;border:3px solid var(--ink);border-radius:9px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}
.world-num{position:absolute;left:0;top:0;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--red);color:#fff;font-family:'Titan One',sans-serif;font-size:16px;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);border-radius:0 0 10px 0;z-index:2}
.world-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.world-copy em{font-style:normal;font-family:'Titan One',sans-serif;font-size:8.5px;letter-spacing:1.4px;color:#8b8499}
.world-copy b{font-family:'Titan One',sans-serif;font-size:clamp(15px,4.2vw,20px);line-height:1.05;color:var(--ink)}
.world-copy i{font-style:normal;font-size:9.5px;color:#6b6577;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-play{font-family:'Titan One',sans-serif;font-size:12px;background:var(--gold);border:2px solid var(--ink);border-radius:20px;padding:4px 12px;box-shadow:2px 2px 0 rgba(20,19,28,.7);flex:0 0 auto}
.world-card.locked{filter:saturate(.35);opacity:.75}
.world-card.locked .world-play{background:#cfc8b8;font-size:10px}
.world-card .world-cleared{position:absolute;right:10px;top:6px;font-family:'Titan One',sans-serif;font-size:8px;color:var(--green);letter-spacing:1px;display:none}
.world-card.cleared .world-cleared{display:block}
.map-actions{display:flex;justify-content:center}

/* menus */
.menu-card{position:relative;width:min(88vw,420px);margin:max(24px,12vh) auto calc(24px + env(safe-area-inset-bottom));background:var(--paper);border:4px solid var(--ink);border-radius:18px;padding:16px 18px 18px;box-shadow:9px 9px 0 rgba(20,19,28,.75);text-align:center;transform:rotate(-.8deg)}
.menu-card h2{color:var(--red);-webkit-text-stroke:2px var(--ink);text-shadow:3px 3px 0 var(--ink),0 6px 0 #7a0f17}
.menu-card .squiggle{width:min(230px,80%);height:12px;margin:2px auto 8px;display:block}
#pauseScreen,#clearScreen,#overScreen{background:rgba(10,16,30,.58);backdrop-filter:blur(2px)}
.menu-card .big-sticker{display:block;width:100%;margin:6px 0;padding:10px 6px}
.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 8px}
.result-grid div{background:#fff;border:2px solid var(--ink);border-radius:9px;padding:5px 4px;display:flex;flex-direction:column;gap:2px}
.result-grid span{font-family:'Titan One',sans-serif;font-size:8px;letter-spacing:1px}
.result-grid b{font-family:'Titan One',sans-serif;font-size:18px;color:var(--ink);line-height:1}
.stars-row{display:flex;justify-content:center;gap:6px;font-size:30px;line-height:1;margin:2px 0 6px;color:var(--gold);-webkit-text-stroke:2px var(--ink);text-shadow:2px 3px 0 rgba(20,19,28,.4)}
.stars-row span.off{color:#d9d1c0;opacity:.8}
.note{font-size:11px;font-style:italic}

/* help */
.help-card{touch-action:pan-y;position:absolute;z-index:55;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-.6deg);width:min(92vw,440px);max-height:86vh;overflow-y:auto;background:var(--paper);border:4px solid var(--ink);border-radius:16px;padding:14px 16px 16px;box-shadow:10px 10px 0 rgba(20,19,28,.8)}
.help-card h3{font-family:'Titan One',sans-serif;font-size:20px;margin:0 0 6px;color:var(--red);-webkit-text-stroke:1px var(--ink);letter-spacing:.8px}
.help-card ul{list-style:none;margin:0;padding:0}
.help-card li{display:flex;gap:8px;padding:4px 0;border-bottom:1.5px dashed #d8cfb9;font-size:11px;line-height:1.35}
.help-card li:last-child{border-bottom:0}
.help-card li b{flex:0 0 64px;font-family:'Titan One',sans-serif;font-size:10px;letter-spacing:.5px;color:#3d3a4e;padding-top:1px}
.help-card li span{flex:1}
.close-btn{position:absolute;right:8px;top:6px;width:30px;height:30px;border-radius:50%;border:3px solid var(--ink);background:#fff;font-family:'Titan One',sans-serif;font-size:18px;line-height:1;cursor:pointer;box-shadow:2px 2px 0 rgba(20,19,28,.6)}

/* desktop size up */
@media (min-width:760px){
  .world-art{width:190px;height:86px}
  .map-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .map-list .world-card:last-child{grid-column:1/-1}
  .portrait-sticker{width:66px;height:66px}
  .stat-sticker{min-width:150px}
  .tag-big{font-size:18px;max-width:30vw}
  .tbtn{width:70px;height:70px}
  #touchButtons{grid-template-columns:repeat(2,70px);grid-template-rows:repeat(2,70px)}
}
@media (max-width:420px){
  .title-cards{display:none}
  .title-wrap{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .hud-center .world-tag{padding:3px 6px}
  .tag-big{font-size:12.5px;max-width:150px}
  .stat-sticker{min-width:112px;padding:4px 7px 5px}
  .portrait-sticker{width:50px;height:50px}
  .hearts img{width:17px;height:17px}
  .coin-line b{font-size:18px}
  .weapon-pill{top:calc(186px + env(safe-area-inset-top));font-size:9px}
  .weapon-pill img{width:28px;height:20px}
}
@media (max-height:560px){
  .title-wrap{justify-content:flex-start;padding-top:8px}
  .logo{margin-top:2px}
  .title-cards{display:none}
  .logo-line1{font-size:44px}
  .logo-line2{font-size:34px}
  .logo .logo-awning{display:none}
}

@media (max-height:520px){
  .hud-center{top:calc(56px + env(safe-area-inset-top))}
  .tag-small{display:none}
  .tag-big{font-size:11px;max-width:190px;line-height:1}
  .weapon-pill{top:calc(110px + env(safe-area-inset-top));font-size:9px}
  .boss-sticker{width:min(52vw,230px)}
  .portrait-sticker{width:44px;height:44px}
  .stat-sticker{min-width:104px;padding:3px 7px 4px}
  .hearts img{width:14px;height:14px}
  .coin-line b{font-size:16px}
  #stickZone{width:96px;height:96px}
  #stickKnob{width:44px;height:44px;margin:-22px 0 0 -22px}
  .tbtn{width:54px;height:54px;font-size:10px}
  #touchButtons{grid-template-columns:repeat(2,54px);grid-template-rows:repeat(2,54px);gap:6px}
  .round-btn{width:32px;height:32px;font-size:13px}
  .title-footer{display:none}
  .title-cards{display:none}
}
