*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;color-scheme:only light}
body{background:#18233d;color:#fff;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;display:grid;place-items:center}
button,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
/* V0.10.5: maximum playable width = 9:16 of the available height.
   Narrower phones still fill the complete browser content width.
   Fold-open, tablets and PCs display a centered portrait game without
   giant blurred side panels or stretched sprites. */
#shell{position:relative;width:min(100dvw,56.25dvh);height:100dvh;overflow:hidden;isolation:isolate;background:#6ed8ff;box-shadow:0 0 50px #0a102b}
#game{display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated}
.hide{display:none!important}
/* V0.12.0: energy is counted on START only, no paid/rewarded revival. */
.heartsBar{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;
  max-width:100%;min-height:27px;padding:3px 8px;
  border:1px solid #ffddac;border-radius:12px;
  color:#fff5d6;background:#3c2a55bd;box-shadow:0 2px 6px #332b5778;
  font-weight:900;font-size:clamp(10px,2.7vw,13px);}
.heartsIcons{font-size:clamp(8px,2vw,11px);white-space:nowrap;letter-spacing:-1.8px}
.heartsBar strong{color:#fff2ba;white-space:nowrap}
.heartsBar small{color:#f3d9ff;white-space:nowrap;font-size:10px}
.resultHeartsLine{display:flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid #e9c9ffb3;background:#3e3565a6;color:#fff;
  border-radius:12px;padding:7px 9px;font-size:clamp(11px,2.8vw,14px);
  font-weight:900;}
.resultHeartsLine strong{color:#ffe1a7}
.resultHeartsLine span{color:#f9e8ff;font-size:11px}
.dogpanPromptOverlay,.dogpanVideoOverlay{position:absolute;inset:0;z-index:95;
  display:flex;align-items:center;justify-content:center;
  padding:13px 9px;background:#0d173bc9;backdrop-filter:blur(5px);}
.dogpanExitOverlay{position:absolute;inset:0;z-index:110;display:flex;
  align-items:center;justify-content:center;padding:16px;background:#0b163ac9;
  backdrop-filter:blur(4px)}
.dogpanExitOverlay.hide{display:none}
.dogpanExitOverlay.dogpanExitComplete{position:fixed;inset:0;
  background:linear-gradient(155deg,#293d79,#17223e);backdrop-filter:none}
.dogpanExitCard{width:min(100%,385px);border:3px solid #fff0c8;border-radius:23px;
  background:linear-gradient(160deg,#ffffff,#dfeeff 75%,#e6dcfa);
  color:#315578;text-align:center;padding:21px 16px;
  box-shadow:0 8px 0 #223151,0 18px 32px #12274b99}
.dogpanExitCard h2{font-size:clamp(19px,5vw,25px);margin:0 0 12px}
.dogpanExitCard p{font-size:clamp(12px,3.3vw,15px);line-height:1.55;margin:0 0 18px}
.dogpanExitActions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.dogpanExitActions button{min-height:49px;border-radius:12px;border:2px solid white;
  background:#58b5db;color:white;font-weight:900;font-size:clamp(13px,3.5vw,16px)}
#appExitConfirm{background:linear-gradient(#fd9094,#ed626f)}
#appExitRestart{min-height:52px;width:100%;padding:10px 16px;color:white;
  background:linear-gradient(#ffbb76,#f76c75);border:2px solid white;
  border-radius:12px;font-weight:900;font-size:17px}
.dogpanPromptCard{width:min(97%,400px);max-height:95%;overflow:auto;
  border:3px solid #fff2ca;border-radius:27px;
  box-shadow:0 10px 0 #252e5e,0 20px 45px #101d47b5;
  color:#314a70;text-align:center;padding:20px 16px 17px;
  background:linear-gradient(155deg,#fffefa,#e7f7ff 62%,#e9dbff);}
.dogpanPromptMascot{font-size:36px;line-height:1.2}
.dogpanPromptCard h2{font-size:clamp(20px,5vw,27px);margin:9px 0 12px;color:#2c5c93}
.dogpanPromptCard p{font-size:clamp(13px,3.6vw,17px);font-weight:800;line-height:1.6;white-space:pre-line}
.dogpanPromptHint{color:#6585a2;font-size:12px!important;font-weight:600!important}
.dogpanPromptCountdown{border-radius:12px;background:#f8ecfe;color:#805499;
  padding:10px;font-weight:900}
.dogpanPromptActions{display:flex;gap:10px;margin-top:15px}
.dogpanPromptActions button{flex:1;min-width:0;min-height:48px;border-radius:14px;
  border:2px solid #fff;font-size:clamp(13px,3.4vw,16px);font-weight:1000;
  box-shadow:0 4px #647a9699}
.dogpanWatchButton{color:white;background:linear-gradient(#ffa1a2,#f56f7f)}
.dogpanDismissButton{color:#2d5876;background:linear-gradient(#ffffff,#badfe9)}
.dogpanVideoCard{width:100%;max-width:450px;max-height:min(94%,850px);min-height:0;
  display:flex;flex-direction:column;overflow:hidden;padding:12px;
  border:3px solid #fff5cc;border-radius:22px;
  background:linear-gradient(165deg,#f7fdff,#e5f4ff 55%,#eee3ff);
  color:#2c5175;box-shadow:0 13px 35px #0b1a40ad}
.dogpanVideoHeader{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dogpanVideoHeader h2{font-weight:1000;font-size:clamp(18px,4.2vw,24px);margin:3px}
.dogpanVideoHeader button{width:35px;height:35px;flex-shrink:0;
  border:2px solid #b2ccdf;background:white;color:#365f7f;border-radius:12px;font-size:19px}
#videoIntro{margin:8px 3px;font-size:13px;color:#46799c}
.dogpanVideoListContent{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:9px;padding:6px 0 12px}
.dogpanVideoEntry{display:flex;gap:10px;align-items:center;min-height:85px;
  padding:8px;background:white;border:1px solid #cbe6f3;border-radius:13px}
.dogpanVideoEntry img{width:110px;min-width:110px;aspect-ratio:16/9;
  border-radius:7px;object-fit:cover;background:#dbe6ef}
.dogpanVideoDetails{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.dogpanVideoDetails strong{font-size:clamp(12px,3.1vw,14px);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dogpanVideoEntry button,.dogpanVideoEntry a,.dogpanChannelLink,
.dogpanVideoPlayerShell>a,.dogpanVideoPlayerShell>button{font-weight:900;
  border:2px solid white;box-shadow:0 3px #87acc7a6;padding:7px 12px;
  border-radius:11px;background:#59b9e4;color:#fff;
  text-decoration:none;text-align:center;font-size:12px}
.dogpanVideoPlayerShell{flex:1;min-height:0;overflow-y:auto;display:flex;
  flex-direction:column;gap:9px;padding:6px 0}
/* All playlist videos are Shorts: show the actual embed in a tall 9:16
   viewport, not a wide 16:9 rectangle. Limit height so Back/YouTube/channel
   controls remain reachable on compact portrait phones. */
#videoFrameHost{align-self:center;width:min(100%,32dvh,315px);aspect-ratio:9/16;
  min-height:0;flex:0 0 auto;overflow:hidden;border-radius:12px;background:#16284c}
#videoFrameHost iframe{width:100%;height:100%;min-height:0;aspect-ratio:9/16;display:block;border:0}
@media(max-height:700px){
  #videoFrameHost{width:min(100%,29dvh,235px)}
}
#videoFrameHost.isLocalFile{width:100%;min-height:0;aspect-ratio:auto;
  background:transparent;overflow:visible}
.dogpanLocalFileNotice{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;min-height:175px;padding:16px 13px;border-radius:13px;
  border:1px solid #b9d7e9;background:#fff;color:#365c7c;text-align:center}
.dogpanLocalFileNotice strong{font-size:clamp(15px,3.7vw,19px);color:#2c598a}
.dogpanLocalFileNotice p{font-size:12px;line-height:1.55;margin:0;color:#506f89;white-space:normal}
.dogpanLocalFileNotice a{display:inline-block;border-radius:11px;background:#4aa9dc;
  color:white;text-decoration:none;padding:10px 18px;font-size:13px;font-weight:900}
.dogpanChannelLink{display:block;flex-shrink:0;background:#fb7f86;padding:11px}
.dogpanVideoLikeInvite{flex-shrink:0;margin:8px 4px 2px;text-align:center;
  color:#d85a78;font-weight:900;font-size:clamp(11px,3vw,13px);line-height:1.45;
  white-space:normal}
.dogpanVideoFooter{margin:10px 0 0;text-align:center;font-size:11px;color:#7b85a0}
@media(max-width:365px){
  .dogpanVideoEntry img{width:91px;min-width:91px}
  .heartsIcons{font-size:8px}
  .dogpanPromptCard{padding:16px 11px}
}
/* V0.11.0: the user's portrait loading illustration is first-page content.
   It is intentionally present in the DOM before the large sprite scripts
   finish loading, preventing the initial blank/partially painted screen. */
.startupLoading{
  position:absolute;inset:0;z-index:100;display:block;overflow:hidden;
  background:linear-gradient(160deg,#f7e9d5,#eab895);
  pointer-events:auto;opacity:1;transition:opacity .32s ease-out;
}
.startupLoading img{
  width:100%;height:100%;display:block;object-fit:cover;object-position:center;
  image-rendering:auto;
}
.startupLoading.isLoaded{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){
  .startupLoading{transition:none}
}
#hud{position:absolute;top:0;left:0;right:0;min-height:194px;padding:13px 10px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:linear-gradient(180deg,#0e2442ec,#112c4cdd 78%,#122d4ab8);border-bottom:2px solid #99dafa5d;box-shadow:0 7px 14px #14243b5c;text-shadow:0 2px 4px #0b1b36;pointer-events:none}
.hudTimer{width:100%;height:13px;overflow:hidden;border:2px solid #ccdcf1;background:#263b61;border-radius:20px;box-shadow:0 2px 5px #12213799}
#timeFill{display:block;width:100%;height:100%;background:linear-gradient(90deg,#ffe68a,#ffd14c);transform:scaleX(1);transform-origin:left center;will-change:transform}
.hudCenter{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%}
#scoreHud{font-size:clamp(32px,9vw,46px);line-height:1.04;font-weight:1000;color:#fff}
#stageHud{font-size:clamp(11px,3vw,16px);font-weight:1000;letter-spacing:.09em;color:#b9edff}
.hudNumbers{display:flex;gap:16px;align-items:center;justify-content:center;font-size:clamp(12px,3.2vw,16px);font-weight:1000}
#pointsHud{color:#ffe47c}#comboHud{color:#b8fcee}
#hud.boost{border-bottom-color:#84ffc6;box-shadow:0 7px 20px #2de5a45e}
#hud.boost #comboHud{color:#baff84;text-shadow:0 0 9px #92ff9b}
#hud.boost #timeFill{background:linear-gradient(90deg,#b1ff9d,#4bebbf)}
#hud.danger .hudTimer{border-color:#ff7486}
#hud.danger #timeFill{background:linear-gradient(90deg,#ffad68,#f0446e)}
#hud.danger #timeFill{animation:danger-pulse .34s ease-in-out infinite alternate}
@keyframes danger-pulse{from{opacity:1}to{opacity:.52}}
#directionHud{font-size:clamp(10px,2.8vw,13px);font-weight:800;color:#d5f4ff}
.hudMeta{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;font-size:clamp(10px,2.8vw,13px)}
#areaHud{color:#ffe68b;font-size:clamp(10px,2.8vw,13px);font-weight:950;text-shadow:0 1px 3px #18345c}
.lootHud{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:2px;font-size:clamp(11px,3vw,14px);font-weight:900}
.lootHud span{display:inline-flex;align-items:center;gap:1px}
.lootHud img{width:23px;height:23px;object-fit:contain;image-rendering:pixelated}
.lootHud b{min-width:11px;text-align:center}
.topActions{position:absolute;top:57px;right:7px;display:flex;gap:5px;z-index:2}
.iconButton{border:2px solid white;border-radius:11px;background:linear-gradient(#8cefff,#35b7e3);color:#fff;font-size:18px;font-weight:900;width:36px;height:38px;box-shadow:0 3px #1e689a66}
.fpsCounter{position:absolute;bottom:21%;left:8px;max-width:calc(100% - 16px);z-index:4;
  padding:4px 7px;border-radius:7px;background:#071e3be0;color:#9efcc1;
  font:850 11px/1.4 monospace;pointer-events:none;white-space:normal}
.milestone{position:absolute;top:25%;left:5%;right:5%;z-index:6;pointer-events:none;text-align:center;padding:12px 8px;border:2px solid #ffedaa;border-radius:15px;background:linear-gradient(125deg,#394f9fe6,#b775c8e3);color:#fff7bd;box-shadow:0 0 22px #ffe2a55d;text-shadow:0 2px 3px #362f73;font-size:clamp(20px,6vw,30px);font-weight:1000;animation:celebrate-in .25s ease-out both}
.bonusHint{position:absolute;top:19.2%;left:50%;transform:translateX(-50%);z-index:5;pointer-events:none;white-space:nowrap;background:#332959c7;color:#ffe48b;border-radius:9px;border:1px solid #f8e6a0;padding:4px 8px;font-weight:950;font-size:13px}
@keyframes celebrate-in{from{opacity:0;transform:translateY(10px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}
#controls{position:absolute;bottom:2.5%;left:50%;right:auto;transform:translateX(-50%);width:min(92%,760px);height:17.5%;display:flex;gap:7%;pointer-events:none}
.controlButton{pointer-events:auto;flex:1;min-width:0;border:4px solid #f2fbff;border-radius:16px;background:linear-gradient(#f8ffff,#8dbbd9);color:#315b78;box-shadow:0 7px #244e7488;touch-action:manipulation;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4%;font-weight:900;user-select:none}
.controlButton:last-child{background:linear-gradient(#b1faff,#43bbe9);color:white}
.controlButton:active,.controlButton.pressed{transform:translateY(5px);box-shadow:0 2px #254e7688}
.locked .controlButton{pointer-events:none;opacity:.58;filter:grayscale(.2)}
.controlIcon{font-size:clamp(45px,13vw,73px);line-height:1}
.controlLabel{font-size:clamp(13px,3.5vw,18px)}
.cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:min(1.15dvh,12px);padding:12px 22px;background:radial-gradient(circle at 27% 18%,#d5f7ffe8 0,#89daf7eb 28%,transparent 55%),linear-gradient(164deg,#6acdeff2,#487cccea 62%,#554ba8f5);text-align:center;overflow:auto}
.cover:before{content:"";position:absolute;z-index:-1;width:115%;aspect-ratio:1;left:-28%;top:-31%;border:4px solid #ffffff38;border-radius:50%}
.cover:after{content:"";position:absolute;z-index:-1;width:100%;aspect-ratio:1;right:-35%;bottom:-32%;border:7px solid #ffffff20;border-radius:50%}
.eyebrow{letter-spacing:.13em;color:#fff6ad;font-size:clamp(11px,2.9vw,15px);font-weight:900;text-shadow:0 2px #365c84}
.cover canvas{display:block;width:min(54%,226px);height:auto;image-rendering:pixelated;filter:drop-shadow(0 10px 5px #31518d4f);flex-shrink:1;min-height:100px}
.cover h1{font-size:clamp(24px,7.2vw,41px);line-height:1.15;font-weight:1000;margin:0;text-shadow:0 4px #2955a7;white-space:nowrap}
.cover h1 em{font-style:normal;color:#fff5ab}
.tagline{font-size:clamp(12px,3.25vw,16px);font-weight:800;margin:0;line-height:1.4}
.bestCard{background:#ffffffed;color:#324c7a;border:2px solid #ffffff;border-radius:18px;font-size:clamp(14px,3.8vw,19px);font-weight:900;padding:7px 23px;box-shadow:0 4px #32659a69;min-width:190px}
.bestCard strong{font-size:1.3em;color:#ff8b51}
.itemBank{display:flex;align-items:center;justify-content:center;gap:8px;width:min(100%,305px);min-height:37px;padding:3px 8px;border-radius:12px;background:#234d83a1;border:1px solid #ffffff80;font-size:clamp(11px,2.9vw,14px);font-weight:950}
.itemBank .bankLabel{flex-shrink:0;color:#f9f4b7;font-size:12px}
.itemBank span:not(.bankLabel){display:inline-flex;align-items:center;gap:2px}
.itemBank img{display:block;width:28px;height:28px;object-fit:contain;image-rendering:pixelated}
.itemBank b{min-width:12px;text-align:center}
.settings{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:min(100%,300px)}
.effectSettings{display:flex;flex-direction:column;gap:2px}
.volumeControls{display:flex;align-items:center;gap:7px}
#effectsVolume{min-width:0;flex:1;accent-color:#f8cb53;height:23px;cursor:pointer}
#effectsVolumeValue{font-weight:950;color:#ffed99}
#previewPickup{background:#f7d76b;color:#43546d;border:2px solid #fff;border-radius:9px;padding:4px 10px;font-size:12px;font-weight:900;flex-shrink:0}
.advancedSettings{border:1px solid #d5ecffc4;background:#355c91b5;border-radius:10px;padding:5px 8px;text-align:left}
.advancedSettings summary{cursor:pointer;font-size:12px;font-weight:900;color:#fff5ba}
.advancedSettings label{margin-top:7px}
.advancedSettings .perfHint{margin:6px 0 0;color:#d4eeff;font-size:11px;
  line-height:1.55;text-align:left;text-shadow:0 1px #1b3158}
.advancedSettings #fpsSetting{width:100%;margin-top:8px;padding:8px}
.menuCover .menuStartButton:disabled{opacity:.80;cursor:wait}
.mapInfo{padding:8px 12px;border:1px solid #fff9c2b6;border-radius:12px;background:linear-gradient(110deg,#1a4772a6,#4c659db8);color:#fff5ba;font-size:clamp(12px,3.1vw,15px);font-weight:950;text-align:center}
.settings label{display:flex;justify-content:space-between;align-items:center;gap:9px;color:#ffffff;font-size:clamp(12px,3.1vw,15px);font-weight:800}
.settings select{min-width:0;flex:1;max-width:210px;padding:7px 8px;color:#29436f;border:2px solid #fff;border-radius:10px;background:#ebfaff;font-size:clamp(12px,2.95vw,14px);font-weight:750}
.soundSetting{border:2px solid #ffffffa8;background:#2b629e7d;color:#fff;border-radius:10px;padding:6px 10px;font-size:clamp(12px,3vw,14px);font-weight:900}
.primaryButton,.secondaryButton{width:min(100%,280px);border:3px solid #fff;border-radius:16px;padding:12px 18px;font-size:clamp(19px,4.4vw,24px);font-weight:950;line-height:1.2}
.primaryButton{background:linear-gradient(#ffe58a,#ffbe4d);color:#6a3e4b;box-shadow:0 6px #ca8439}
.secondaryButton{background:linear-gradient(#ebfbff,#b1dff9);color:#315677;box-shadow:0 5px #5983a7}
.primaryButton:active,.secondaryButton:active{transform:translateY(4px);box-shadow:0 1px #5983a7}
.help{font-size:clamp(11px,2.75vw,13px);font-weight:650;line-height:1.5;margin:0}
.version{font-size:clamp(9px,2.35vw,12px);font-weight:750;color:#eaf2ffb5;margin:0}
@media(max-height:760px){.cover{gap:5px;padding:7px 13px}.cover canvas{width:min(43%,180px);min-height:80px}.primaryButton,.secondaryButton{padding:8px 14px}.bestCard{padding:5px 15px}.itemBank{min-height:29px;padding:1px 6px}.itemBank img{width:22px;height:22px}.settings{gap:5px}.eyebrow{font-size:10px}.cover h1{font-size:clamp(21px,6vw,31px)}}
@media(max-height:900px){#menu{gap:5px}#menu canvas{width:min(42%,173px);min-height:75px}#menu .settings{gap:4px}#menu .bestCard{padding:5px 13px}#menu .itemBank{min-height:28px;padding:1px 6px}#menu .itemBank img{width:23px;height:23px}#menu .primaryButton{padding:10px 13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* V0.8 — title screen: a dedicated pixel-game lobby instead of a settings form */
.menuCover{
  position:absolute;inset:0;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;
  gap:clamp(4px,.8dvh,10px);padding:clamp(9px,1.8dvh,18px) clamp(13px,3.5%,20px);
  background:
    linear-gradient(180deg,rgba(15,35,79,.91) 0%,rgba(22,56,91,.36) 29%,rgba(25,48,83,.10) 48%,rgba(20,32,70,.58) 70%,rgba(12,27,60,.96) 100%),
    url("./assets/maps/map01_start.webp") center 48% / cover no-repeat;
  color:#fff;text-shadow:0 2px 2px #112b4b;
}
.menuCover::before{
  content:"";position:absolute;z-index:0;inset:0;width:auto;aspect-ratio:auto;
  left:0;top:0;border:0;border-radius:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 30%,#c0f7ff3e,transparent 46%);
}
.menuCover::after{
  content:"";position:absolute;z-index:0;inset:0;width:auto;aspect-ratio:auto;
  right:0;bottom:0;border:0;border-radius:0;pointer-events:none;
  background-image:radial-gradient(#ffeb9b 1.2px,transparent 1.2px);
  background-size:29px 37px;background-position:4px 17px;opacity:.27;
  mask-image:linear-gradient(180deg,#000,transparent 50%,#000);
}
.menuCover>*{position:relative;z-index:1;flex-shrink:0}
.menuHeader{display:flex;flex-direction:column;gap:7px;align-items:stretch;width:100%}
.menuHeaderRibbon{
  color:#fff1b0;font-size:clamp(9px,2.6vw,12px);font-weight:1000;
  letter-spacing:.13em;text-shadow:0 2px 1px #1d3761;
  padding:4px 5px;
}
.menuLogo{
  position:relative;padding:19px 6px 13px;
  border:3px solid #ffe7a4;border-radius:15px;
  box-shadow:inset 0 0 0 2px #bd7336,0 6px 0 #13244e,0 11px 20px #111631ae;
  background:linear-gradient(180deg,#3e67a7 0,#1c345e 45%,#152b50 100%);
}
.menuLogo::before,.menuLogo::after{
  content:"✦";position:absolute;top:37%;color:#ffe691;font-size:20px;
  text-shadow:0 0 9px #ffd56c;
}
.menuLogo::before{left:9px}.menuLogo::after{right:9px}
.menuLogoCrown{
  position:absolute;left:50%;top:-18px;transform:translateX(-50%);
  white-space:nowrap;padding:1px 16px;background:linear-gradient(#fce4a6,#d99147);
  border:3px solid #ffefa5;border-radius:30px;color:#4c3b68;
  font-size:14px;line-height:1.3;text-shadow:none;
}
.menuLogoTop{
  color:#ffe3a2;font-size:clamp(11px,3.4vw,16px);font-weight:1000;letter-spacing:.18em;
  text-shadow:0 2px 0 #8d5338;
}
.menuCover .menuLogo h1{
  font-size:clamp(25px,6.3vw,39px);white-space:nowrap;line-height:1.25;
  color:#fffefa;margin:3px 0 0;
  letter-spacing:-.04em;-webkit-text-stroke:.35px #fff8d4;
  text-shadow:2px 3px 0 #39638b,3px 5px 0 #152a55,0 0 14px #cdf3ff;
}
.menuCover .menuLogo h1 em{
  color:#ffcf56;text-shadow:2px 3px 0 #b66f2b,3px 5px 0 #182b50;
}
.menuHero{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  flex:1 1 200px;min-height:125px;max-height:265px;width:100%;
  position:relative;overflow:visible;
  background:radial-gradient(ellipse at 50% 57%,#d6f7ff58,transparent 48%);
}
.menuCover .menuHero #mascot{
  position:relative;z-index:2;width:min(82%,230px);min-height:0;
  max-height:100%;object-fit:contain;
  filter:drop-shadow(0 9px 1px #21355b80) drop-shadow(0 0 19px #ffffffa5);
  transform:translateY(-4px);
}
.menuHero::after{
  content:"";position:absolute;left:28%;right:28%;bottom:14%;
  height:17px;border-radius:50%;background:#18295665;filter:blur(8px);
}
.menuHeroStair{
  position:absolute;width:100px;height:44px;
  image-rendering:pixelated;opacity:.97;
  background:url("./assets/sample/brick.png") center / 100% 100% no-repeat;
  filter:drop-shadow(0 6px 0 #1c325b70);
}
.menuHeroStairA{left:2%;bottom:11%;transform:rotate(-8deg)}
.menuHeroStairB{right:2%;bottom:38%;transform:rotate(8deg)}
.menuHeroCaption{
  position:absolute;z-index:3;bottom:0;left:0;right:0;
  color:#fff6cb;font-size:clamp(10px,2.9vw,14px);font-weight:1000;
  text-shadow:0 2px 3px #203258,0 0 12px #3a9ad4;
}
.menuPrimary{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.menuCover .menuStartButton{
  width:min(100%,350px);padding:12px 10px;
  border:3px solid #fff1b4;border-radius:15px;
  color:#fffefa;font-size:clamp(20px,6vw,29px);
  font-weight:1000;text-shadow:0 2px 2px #b9544c;
  background:linear-gradient(180deg,#ffa98f 0,#f56b78 58%,#e54966 100%);
  box-shadow:inset 0 3px 0 #ffffff96,0 5px 0 #963d64,0 8px 14px #23335e80;
  animation:start-button-glow 2.3s ease-in-out infinite alternate;
}
.menuCover .menuStartButton span{display:inline-block;font-size:.78em;margin-right:.45em}
.menuCover .menuStartButton:active{transform:translateY(4px);box-shadow:0 1px #963d64}
@keyframes start-button-glow{to{filter:brightness(1.13)}}
.menuRecordRow{display:grid;grid-template-columns:1.1fr .9fr;align-items:stretch;gap:8px;width:100%}
.menuCover .bestCard{
  min-width:0;border:2px solid #fef0bf;border-radius:11px;
  padding:5px 7px;font-size:clamp(10px,2.75vw,14px);
  color:#fff6d1;background:linear-gradient(125deg,#233a62ea,#39548fdb);
  box-shadow:0 3px 0 #142954;
}
.menuCover .bestCard strong{color:#ffe183;font-size:1.4em}
.menuStageInfo{
  border:2px solid #bedef4c9;border-radius:11px;
  background:#264c7eda;display:flex;align-items:center;justify-content:center;
  padding:4px;color:#d1f3ff;font-size:clamp(10px,2.4vw,13px);font-weight:900;
}
.menuCover .itemBank{
  width:100%;min-height:38px;border:2px solid #9fd5f4;
  background:linear-gradient(100deg,#284d83f1,#1d3969e8);border-radius:11px;
  gap:clamp(5px,2vw,15px);padding:2px 8px;
}
.menuCover .itemBank img{width:25px;height:25px}
.menuCover .itemBank b{font-size:clamp(11px,3vw,14px)}
.menuQuickNav{
  width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;
}
.menuTile{
  min-width:0;min-height:72px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1px;
  border:2px solid #f0faff;border-radius:10px;padding:5px 2px;
  color:#294167;text-shadow:none;background:linear-gradient(#f4ffff,#b6d9f3);
  box-shadow:0 4px 0 #38547cab,0 6px 8px #1b35676b;
}
.menuTileIcon{font-size:25px;line-height:1.1;filter:drop-shadow(0 2px 1px #253d6330)}
.menuTile strong{font-size:clamp(11px,2.95vw,15px);font-weight:1000}
.menuTile small{font-size:clamp(7px,1.9vw,9px);font-weight:850;white-space:nowrap;color:#607ea0}
.menuTile:active{transform:translateY(3px);box-shadow:0 1px 0 #335274}
.shopTile{background:linear-gradient(#fff3c9,#f4c76a);border-color:#fff4c2;color:#865124}
.petTile{background:linear-gradient(#faedff,#d5bdf7)}
.characterTile{background:linear-gradient(#ffe6ee,#ffc1d2)}
.settingsTile{background:linear-gradient(#e2f5ff,#9fccea)}
.menuSocialRow{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;width:100%}
.menuSocialRow button,.menuSocialRow a{
  text-decoration:none;display:flex;align-items:center;justify-content:center;
  min-width:0;min-height:40px;padding:5px 6px;
  border-radius:10px;border:2px solid #f9ffff;color:#fff;font-size:clamp(11px,3vw,14px);
  font-weight:950;text-shadow:0 1px 2px #25385d;
  box-shadow:0 4px 0 #233c61b8;
}
.menuRecordButton{background:linear-gradient(#78bff1,#457cb6)}
.menuYoutubeButton{background:linear-gradient(#ff9e90,#e74b69)}
.menuVersion{font-size:clamp(8px,2.2vw,11px);color:#cce2ff;text-shadow:0 2px #233153e0}
.menuOverlay{
  position:absolute;inset:0;z-index:12;background:#122748cf;
  backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;
  padding:18px 14px;
}
.menuOverlayCard{
  display:flex;flex-direction:column;width:100%;max-height:100%;min-height:290px;overflow:hidden;
  background:linear-gradient(#eaf8ff,#b0d9f2);
  color:#244364;border:4px solid #fff5ba;border-radius:19px;
  box-shadow:0 8px 0 #375475,0 14px 30px #102043a9;text-shadow:none;
}
.menuOverlayTop{
  flex-shrink:0;display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px 10px;
  color:#fff3c0;background:linear-gradient(125deg,#365389,#233a6e);
  border-bottom:3px solid #c7e6ef;
}
.menuOverlayTop strong{font-size:clamp(17px,4.7vw,23px);font-weight:1000}
#closeMenuPanel{
  padding:5px 10px;border:2px solid #fff;border-radius:10px;
  background:#ffe095;color:#36516f;font-size:18px;font-weight:1000;
}
.menuOverlayScroll{overflow:auto;min-height:0;flex:1;padding:14px 12px 20px}
.menuPage{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;min-height:225px}
.menuPage h2{font-size:clamp(18px,5vw,23px);line-height:1.3;margin:3px 0 0;color:#29456c}
.menuPage p{font-size:13px;line-height:1.55;margin:0;color:#405a78;font-weight:650}
.shopWallet{
  width:100%;border:2px solid #f5d98f;background:#fff9e2;padding:9px;
  border-radius:12px;color:#795a30;
}
.walletTitle{font-weight:1000;font-size:14px}
.walletItems{display:flex;align-items:center;justify-content:space-around;margin-top:4px}
.walletItems span{display:flex;align-items:center;gap:4px;font-size:17px}
.walletItems img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.emptyShelf{width:100%;min-height:225px;border:3px dashed #9dc2e5;border-radius:15px;padding:18px 12px;background:#fff9f5b3}
.emptyShelfIcon{font-size:60px;filter:drop-shadow(0 6px 0 #cad6db)}
.emptyShelf h2{font-size:19px;margin:6px 0 10px}
.comingPill{display:inline-block;border-radius:50px;background:#354d84;color:#fff9bc;
  padding:6px 15px;font-size:12px;font-weight:1000;letter-spacing:.1em}
.shopFootnote,.recordFootnote{font-size:12px!important;color:#55728c!important}
.fashionProduct{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:12px 11px 15px;background:linear-gradient(155deg,#fffdf8,#dff3ff);
  border:3px solid #fff;border-radius:18px;box-shadow:0 5px 0 #8db8d5}
.fashionProductRibbon{padding:5px 14px;background:#fff0b4;color:#9a6146;
  border-radius:20px;border:2px solid #f3d48a;font-size:12px;font-weight:1000}
.fashionPreviewBox{position:relative;width:min(100%,245px);height:215px;
  border-radius:16px;border:3px solid #c4ebff;overflow:hidden;
  background:radial-gradient(circle at 50% 42%,#fffff8 0%,#d0f5ff 56%,#8ccbe8 100%);
  box-shadow:inset 0 0 0 2px #ffffff90}
.fashionPreviewBox::after{content:"✦";position:absolute;top:13px;right:19px;
  color:#ffcd62;font-size:28px;text-shadow:0 2px 2px #fff}
.fashionPreviewBox img{display:block;width:100%;height:100%;object-fit:contain;
  image-rendering:auto;filter:drop-shadow(0 7px 4px #5275955c)}
.fashionPreviewBox>span{position:absolute;right:8px;bottom:6px;
  border-radius:13px;padding:3px 8px;background:#395e85d9;color:white;
  font-size:10px;font-weight:900}
.fashionProduct h2{font-size:23px;line-height:1.24;margin:3px 0 0;color:#274c7d}
.fashionProduct>p:not(.fashionShopStatus){max-width:290px;font-size:12px;
  line-height:1.55;color:#55728c}
.fashionRequirements{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px}
.fashionRequirements>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;
  min-width:0;padding:8px 9px;border:2px solid #e3c6cb;border-radius:12px;
  background:linear-gradient(#fff7f7,#f8e3e5);color:#6f6777}
.fashionRequirements>div.requireMet{border-color:#94daca;
  background:linear-gradient(#f1fff8,#dbf6e9);color:#37766e}
.fashionRequirements span{font-size:11px;font-weight:950}
.fashionRequirements strong{font-size:14px;font-weight:1000;color:#375577}
.fashionRequirements small{font-size:10px;font-weight:900;color:inherit}
.fashionShopAction{width:100%;min-height:48px;border:3px solid #fff;
  border-radius:13px;background:linear-gradient(#ffcc86,#ff9e7b);color:#684460;
  box-shadow:0 4px 0 #b88c9d;font-size:clamp(13px,3.7vw,17px);font-weight:1000;
  text-shadow:0 1px #fff8}
.fashionShopAction[data-mode=owned]{background:linear-gradient(#a5f5e2,#63c7d8);
  color:#215c6c;box-shadow:0 4px #7da7a4}
.fashionShopAction[data-mode=locked]{background:linear-gradient(#e4ecf3,#b4c5d2);
  color:#56748c;box-shadow:0 4px #a3b0bc}
.fashionShopAction:disabled{opacity:.8;cursor:wait}
.fashionShopStatus{color:#5d7b95!important;font-weight:900!important;font-size:11px!important}
.fashionShopStatus.shopError{color:#b2485d!important}
/* In-game costume checkout. Never use native window.confirm(): on mobile
   Chrome it covers the game with an unstyled dialog and the English URL. */
.fashionConfirmOverlay{
  position:absolute;inset:0;z-index:85;display:flex;align-items:center;
  justify-content:center;padding:clamp(9px,2.5%,17px);
  background:#11213fcb;backdrop-filter:blur(3px);
}
.fashionConfirmCard{
  width:min(100%,395px);max-height:calc(100% - 9px);overflow-y:auto;
  overscroll-behavior:contain;border:3px solid #ffedb2;border-radius:23px;
  box-shadow:0 7px 0 #293d67,0 17px 34px #101b39a6;
  background:linear-gradient(155deg,#fffdf9 0%,#eaf7ff 58%,#dbedff 100%);
  color:#294e75;text-align:center;animation:fashionConfirmPop .19s ease-out both;
}
@keyframes fashionConfirmPop{
  from{opacity:.2;transform:translateY(9px) scale(.975)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.fashionConfirmTop{
  position:relative;display:flex;align-items:center;justify-content:center;
  padding:14px 39px 13px;
  background:linear-gradient(145deg,#3e639b,#263a74);
  border-bottom:3px solid #a9d9ef;color:#fff2b6;text-shadow:0 2px #203658;
}
.fashionConfirmTop strong{
  font-size:clamp(17px,4.7vw,22px);font-weight:1000;line-height:1.25;
}
.fashionConfirmSparkle{
  position:absolute;left:12px;top:6px;font-size:10px;color:#ffe69b;
}
.fashionConfirmClose{
  position:absolute;right:9px;top:9px;width:34px;height:34px;
  background:#ffebb2;border:2px solid #fff9da;border-radius:10px;
  color:#385678;box-shadow:0 2px #9dacce;font-size:17px;font-weight:1000;
}
.fashionConfirmBody{
  display:flex;flex-direction:column;gap:10px;
  padding:clamp(10px,2.5vw,15px);
}
.fashionConfirmHero{
  display:flex;align-items:center;gap:10px;
  padding:8px;background:#ffffffd9;border:2px solid #d7ebf7;border-radius:16px;
}
.fashionConfirmPicture{
  flex:0 0 clamp(90px,28%,122px);height:clamp(100px,13dvh,133px);
  background:radial-gradient(circle,#fffffc,#d6f6ff 70%,#b9e4f2);
  border-radius:13px;overflow:hidden;border:2px solid #b8e9f5;
}
.fashionConfirmPicture img{display:block;width:100%;height:100%;object-fit:contain}
.fashionConfirmIntro{text-align:left;flex:1;min-width:0}
.fashionConfirmBadge{
  display:inline-block;border-radius:20px;padding:3px 7px;
  background:#ffebad;color:#9a6630;font-size:clamp(9px,2.5vw,11px);font-weight:1000;
}
.fashionConfirmIntro h3{
  font-size:clamp(15px,4.5vw,19px);line-height:1.25;color:#2c5789;
  margin:6px 0;font-weight:1000;letter-spacing:-.04em;
}
.fashionConfirmIntro p{
  color:#65809a;font-size:clamp(10px,2.8vw,12px);
  line-height:1.5;margin:0;font-weight:850;
}
.fashionConfirmPriceHeading{
  align-self:flex-start;padding-left:4px;color:#3a638e;
  font-weight:1000;font-size:clamp(12px,3.4vw,15px);
}
.fashionConfirmCosts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.fashionConfirmCost{
  min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:8px 2px 7px;border:2px solid #f2d7a9;border-radius:13px;
  background:linear-gradient(#fffbe9,#fff0d1);
}
.fashionConfirmCost img{
  display:block;width:clamp(27px,8vw,35px);height:clamp(27px,8vw,35px);
  object-fit:contain;image-rendering:pixelated;
}
.fashionConfirmCost strong{font-size:clamp(14px,4vw,18px);color:#80553c;font-weight:1000}
.fashionConfirmCost small{
  max-width:100%;font-size:clamp(9px,2.5vw,11px);
  color:#866c5d;font-weight:900;white-space:nowrap;
}
.fashionConfirmCondition{
  padding:7px 9px;margin:0;border:1.5px solid #9bdcc2;border-radius:10px;
  background:#e7fff1;color:#39816f;font-weight:950;font-size:clamp(11px,3vw,13px);
}
.fashionConfirmCondition span{color:#24915c}
.fashionConfirmStatus{
  min-height:17px;margin:0;color:#6b7e96;font-weight:850;
  line-height:1.4;font-size:clamp(10px,2.6vw,12px);overflow-wrap:anywhere;
}
.fashionConfirmStatus.shopError{color:#c94e5a}
.fashionConfirmActions{display:grid;grid-template-columns:1fr 1.24fr;gap:8px}
.fashionConfirmActions button{
  min-width:0;min-height:clamp(42px,6.1dvh,52px);border:3px solid #fff;
  border-radius:14px;font-size:clamp(14px,3.8vw,18px);
  font-weight:1000;touch-action:manipulation;
}
.fashionConfirmCancel{
  color:#38607e;background:linear-gradient(#e6f7ff,#a8d2ec);
  box-shadow:0 4px #88acc6;
}
.fashionConfirmBuy{
  color:#fffdf2;background:linear-gradient(#ffbd8d,#f87675 65%,#eb686c);
  text-shadow:0 2px #c36b6a;box-shadow:0 4px #b97078;
}
.fashionConfirmActions button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px #9bb1c1}
.fashionConfirmActions button:disabled,.fashionConfirmClose:disabled{opacity:.65;cursor:wait}
@media(max-height:690px){
  .fashionConfirmBody{gap:7px;padding:9px}
  .fashionConfirmTop{padding-top:11px;padding-bottom:9px}
  .fashionConfirmPicture{height:95px;flex-basis:89px}
  .fashionConfirmCost{padding:5px 2px}
  .fashionConfirmHero{padding:6px}
}
.menuInstallButton{grid-column:1/-1;min-height:35px!important;
  background:linear-gradient(#9ce3df,#50abae)!important;color:#12485c!important;
  text-shadow:none!important;box-shadow:0 3px 0 #28677c!important}
.installOverlay{position:absolute;inset:0;z-index:70;display:flex;
  align-items:center;justify-content:center;padding:15px;background:#14284acc;
  backdrop-filter:blur(4px)}
.installCard{position:relative;width:min(100%,370px);max-height:92%;
  overflow-y:auto;text-align:center;padding:25px 16px 17px;
  border-radius:20px;border:4px solid #fff1c4;
  background:linear-gradient(#fffefd,#ddf2ff);box-shadow:0 9px 0 #254a78;
  color:#365778}
.installCard>img{border-radius:19px;box-shadow:0 3px 12px #53677b4a}
.installCard h2{font-size:22px;margin:12px 0;color:#285889}
.installCard p{font-size:14px;line-height:1.65;font-weight:800;
  color:#517693;margin:5px 0 18px;white-space:pre-line}
.installCard button{font-weight:1000}
.installClose{position:absolute;right:8px;top:8px;border-radius:50%;
  width:37px;height:37px;background:#f9fcff;color:#436482;
  border:2px solid #c5dce9;font-size:16px}
.installNativeButton{width:100%;padding:12px 9px;border-radius:14px;
  border:3px solid white;background:linear-gradient(#ffda8f,#ffaf75);
  color:#6b3f47;box-shadow:0 4px #b27e75;font-size:16px}
.installNativeButton.hide{display:none!important}
.installDismiss{margin:14px 0 0;border:0;background:none;color:#66819c;
  font-size:13px}
.comingArtwork{font-size:57px;margin:22px 0 3px}
.comingArtwork span{font-size:22px;color:#f47aab}
.recordGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%}
.recordEntry{
  padding:12px 5px;border:2px solid #d9effb;border-radius:12px;background:#fffaf1;
  display:flex;flex-direction:column;align-items:center;gap:7px;box-shadow:0 3px #90b7d5;
}
.recordEntry span{color:#6580a2;font-size:12px;font-weight:900}
.recordEntry strong{color:#2c5582;font-size:clamp(17px,5vw,24px);font-weight:1000}
.recordTop{grid-column:1/-1;background:linear-gradient(#fff3bc,#ffe0a0);border-color:#ffefc8}
.recordTop strong{color:#ad5a28;font-size:30px}
.menuSettingsPage{align-items:stretch}
.menuSettingsPage .settings{width:100%;max-width:none}
.menuSettingsPage .settings label{color:#325477;display:flex;flex-wrap:wrap;font-size:13px}
.menuSettingsPage .settings select{max-width:180px;background:#fff;border-color:#a6cdea}
.menuSettingsPage .mapInfo{color:#fff6d4}
.menuSettingsPage .effectSettings label{justify-content:space-between}
.menuSettingsPage .volumeControls input{min-width:0;flex:1;accent-color:#f0a54d}
.menuSettingsPage .volumeControls button{flex-shrink:0;padding:6px;font-size:12px;
  color:#37516a;background:#ffe4a2;border:2px solid #fff;border-radius:9px;font-weight:900}
.menuSettingsPage #effectsVolumeValue,.menuSettingsPage #stepVolumeValue{color:#ad6139}
.menuSettingsPage .advancedSettings{background:#d9eafe;border-color:#9ac2e0}
.menuSettingsPage .advancedSettings summary{color:#334f77}
.menuSettingsPage .soundSetting{background:#487ab2;border-color:#fff}
.settingsHelp{display:flex;flex-direction:column;gap:7px;background:#fff8e9;border:2px solid #e8cfa5;padding:11px;border-radius:11px}
.settingsHelp strong{color:#48698a}
.settingsHelp .help{color:#506b84}
.countdown{
  position:absolute;inset:0;z-index:7;pointer-events:none;
  background:radial-gradient(ellipse 52% 30% at 50% 39%,#1427473d,transparent 85%);
}
.countdownCard{
  position:absolute;left:50%;top:39%;
  transform:translate(-50%,-50%);width:min(74%,300px);height:160px;
  display:grid;place-items:center;isolation:isolate;text-align:center;
  border:0;border-radius:0;background:none;padding:0;box-shadow:none;
}
.countdownLabel,#countdownSub{display:none}
#countdownNumber{
  position:relative;z-index:2;display:block;width:100%;
  font-weight:1000;line-height:1;font-size:clamp(80px,26vw,116px);
  color:#fff9cc;letter-spacing:-.06em;white-space:nowrap;
  -webkit-text-stroke:2px #ffbd63;
  text-shadow:0 5px 0 #b34268,0 8px 13px #102c54,0 0 23px #ffe38b;
}
/* Two expanding light shockwaves: no card or rectangle. */
.countdownCard::before,.countdownCard::after{
  content:"";position:absolute;left:50%;top:50%;width:118px;height:118px;
  border:3px solid #ffe0a4;border-radius:50%;box-shadow:0 0 19px #ffb869;
  transform:translate(-50%,-50%) scale(.25);opacity:0;z-index:1;
}
.countdownCard::after{border-color:#9fedff;box-shadow:0 0 16px #7cdafa;z-index:0}
.countdownCard.isStart #countdownNumber{
  font-size:clamp(42px,11vw,60px);
  color:#fff9d3;-webkit-text-stroke:1.5px #ec9363;letter-spacing:-.03em;
}
.countdownCard.pulse #countdownNumber{animation:countdown-impact .98s both}
.countdownCard.pulse::before{animation:countdown-ring .75s ease-out both}
.countdownCard.pulse::after{animation:countdown-ring .75s .10s ease-out both}
@keyframes countdown-impact{
  0%{opacity:0;transform:translateY(-27px) scale(1.43) rotate(-5deg);filter:blur(5px)}
  21%{opacity:1;transform:translateY(4px) scale(1.09) rotate(2deg);filter:blur(0)}
  35%{transform:translateY(0) scale(.96) rotate(0)}
  54%{transform:scale(1)}
  77%{opacity:1;transform:scale(1)}
  100%{opacity:0;transform:translateY(-15px) scale(.76);filter:blur(2px)}
}
@keyframes countdown-ring{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}
  21%{opacity:.9}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.7)}
}
.countdownCard.pulse.isStart #countdownNumber{animation:countdown-start-flash .52s ease-out both}
.countdownCard.pulse.isStart::before{animation:countdown-ring .52s ease-out both}
.countdownCard.pulse.isStart::after{animation:countdown-ring .5s .05s ease-out both}
@keyframes countdown-start-flash{
  0%{opacity:0;transform:translateY(16px) scale(.84);filter:blur(3px)}
  34%{opacity:1;transform:translateY(0) scale(1.07);filter:blur(0)}
  68%{opacity:1;transform:scale(1)}
  100%{opacity:1;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .countdownCard.pulse #countdownNumber,.countdownCard.pulse.isStart #countdownNumber{animation:none;opacity:1;filter:none;transform:none}
  .countdownCard.pulse::before,.countdownCard.pulse::after{animation:none;opacity:0}
}
@media(max-height:790px){
  .menuCover{padding:8px 13px;gap:3px}
  .menuHeader{gap:3px}
  .menuLogo{padding:16px 6px 8px}
  .menuHero{min-height:105px}
  .menuCover .menuHero #mascot{width:min(70%,190px)}
  .menuQuickNav{gap:5px}
  .menuTile{min-height:62px;padding:2px}
  .menuTileIcon{font-size:21px}
  .menuCover .menuStartButton{padding:9px}
  .menuCover .itemBank{min-height:31px}
  .menuCover .itemBank img{width:21px;height:21px}
  .menuSocialRow button,.menuSocialRow a{min-height:35px}
}
@media(max-height:660px){
  .menuLogo{padding:13px 5px 5px}
  .menuHero{min-height:75px;max-height:135px}
  .menuHeroCaption{font-size:10px}
  .menuTile{min-height:50px}
  .menuTileIcon{font-size:17px}
  .menuCover .menuLogo h1{font-size:clamp(20px,5.5vw,29px)}
  .menuCover .menuStartButton{font-size:20px}
}


/* V0.9 — original dog-and-mom pixel poster full-screen title */
.menuCover{
  justify-content:flex-end;
  gap:clamp(5px,.85dvh,11px);
  padding:clamp(10px,2dvh,18px) clamp(12px,3.7%,20px) clamp(12px,1.8dvh,21px);
  background:
    linear-gradient(180deg,transparent 0%,transparent 51%,#492b3b12 58%,#442837ac 77%,#1e203bdc 100%),
    url("./assets/title/title_v09.webp") center top / cover no-repeat;
  text-shadow:0 2px 3px #422f38c4;
}
.menuCover::before,.menuCover::after{display:none}
.menuCover>.menuAccessibleTitle{
  position:absolute!important;
  overflow:hidden!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  border:0!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
.menuPosterBadge{display:none}
.menuCover .menuPrimary{flex:0 0 auto;gap:7px}
.menuCover .menuQuickNav{flex:0 0 auto}
.menuCover .menuSocialRow{flex:0 0 auto}
.menuCover .menuVersion{flex:0 0 auto;color:#fff3d8;text-shadow:0 2px 4px #4b2c36}
.menuCover .menuStartButton{
  background:linear-gradient(#ffa269,#f46e55 58%,#e04c59);
  border-color:#fff4d2;
  color:#fffdf8;
  box-shadow:inset 0 2px #ffffff85,0 5px #954450,0 8px 16px #412331a8;
  font-size:clamp(21px,5.6vw,27px);
  padding:clamp(9px,1.3dvh,13px) 12px;
  animation:start-button-glow 2.3s ease-in-out infinite alternate;
}
.menuCover .menuRecordRow{gap:6px}
.menuCover .bestCard{
  color:#ffeed9;background:linear-gradient(110deg,#5b3540ed,#784857e5);
  border-color:#f6d5ac;
}
.menuCover .menuStageInfo{background:#543c54e8;color:#fff4db;border-color:#efd6b3}
.menuCover .itemBank{border-color:#f7cfac;background:linear-gradient(110deg,#684352ee,#432f4eea)}
.menuCover .itemBank .bankLabel{color:#ffe7b7}
.menuCover .menuTile{border-color:#fff3dc}
.menuCover .menuRecordButton{background:linear-gradient(#79b8db,#3e7ca1)}
.menuCover .menuYoutubeButton{background:linear-gradient(#ffab85,#ea5c5a)}
.menuOverlay{background:#1f2a3bdd}
/* Pet catalogue: fill the playable phone screen instead of squeezing an
   iframe into the old short Coming Soon card. Scroll inside the catalogue. */
#menuOverlay[data-panel="pets"]{padding:clamp(5px,1.3dvh,10px) 6px}
#menuOverlay[data-panel="pets"] .menuOverlayCard{
  width:100%;height:100%;min-height:0;max-height:100%;
  border-radius:15px;display:flex;flex-direction:column
}
#menuOverlay[data-panel="pets"] .menuOverlayTop{
  padding:clamp(7px,1.3dvh,11px) 12px;min-height:45px;flex:0 0 auto
}
#menuOverlay[data-panel="pets"] .menuOverlayScroll{
  flex:1 1 auto;min-height:0;overflow:hidden;padding:0
}
#menuOverlay[data-panel="pets"] [data-menu-page="pets"]{
  display:flex;flex-direction:column;gap:0;width:100%;height:100%;
  min-height:0;align-items:stretch
}
.petPreviewFrame{
  display:block;flex:1 1 auto;width:100%;height:100%;
  min-height:0;min-width:0;border:0;background:#e6f0ff;
}
/* V32 mode picker and stopwatch, without modifying regular game settings. */
.modeChooser{position:absolute;inset:0;z-index:75;display:grid;place-items:center;
  background:#152440d7;backdrop-filter:blur(5px);padding:17px}
.modeChooserCard{width:min(100%,380px);padding:19px 15px 17px;border:3px solid #fff2b8;
  border-radius:21px;background:linear-gradient(165deg,#f5fbff,#e6e1ff);
  box-shadow:0 7px #34466f,0 15px 32px #1a284e9c;color:#334f7d;
  display:flex;flex-direction:column;gap:11px;text-align:center}
.modeChooserCard h2{font-size:23px;color:#394c88;margin:0}
.modeChooserCard p{font-size:12px;color:#7584a4;margin:0}
.modeChoice{width:100%;text-align:left;border:3px solid #fff;border-radius:15px;
  padding:14px 13px;display:flex;flex-direction:column;gap:5px;
  box-shadow:0 4px #b6bedc;color:#384f78}
.modeChoice strong{font-size:20px}
.modeChoice small{font-size:11px;font-weight:900}
.modeEscape{background:linear-gradient(110deg,#ddf9dc,#91d9af)}
.modeTime{background:linear-gradient(110deg,#ffe6af,#f5c593)}
.modeCancel{align-self:center;border:0;background:transparent;color:#65769a;
  font-weight:1000;padding:9px}
#modeStatus{min-height:12px;font-weight:900}
.timeAttackHud{position:absolute;z-index:5;top:8px;left:50%;transform:translateX(-50%);
  background:#233e70ef;border:2px solid #fff4b5;border-radius:16px;
  padding:7px 13px;color:#fff0c8;font-weight:900;font-size:14px;
  white-space:nowrap;box-shadow:0 4px 10px #1423487a}
.timeAttackHud strong{font-size:19px;font-variant-numeric:tabular-nums;color:#fff}
.timeAttackHud span{font-size:11px}
body.time-attack-active .hudTimer,body.time-attack-active #lootHud,
body.time-attack-active #pause,body.time-attack-active #bonusHud{display:none!important}
body.time-attack-active #pointsHud{display:none}
body.time-attack-active #stageHud{color:#ffdf94}
body.time-attack-active .resultLootBox,body.time-attack-active .resultHeartsLine,
body.time-attack-active .resultScoreMain,body.time-attack-active .resultScoreBest{display:none!important}
.timeAttackResult{width:100%;border:3px solid #fff2b7;background:linear-gradient(#fff7dc,#ffd4a2);
  border-radius:17px;display:flex;flex-direction:column;gap:7px;align-items:center;
  padding:13px 9px;color:#5f5181}
.timeAttackResult>span{font-size:14px;font-weight:1000}
.timeAttackResult>strong{font-size:clamp(29px,9vw,41px);font-variant-numeric:tabular-nums;
  letter-spacing:-.025em;color:#b75b6a}
.timeAttackResult>small{font-size:11px;text-align:center;font-weight:900}
.timeFireworks{position:absolute;inset:0;z-index:55;pointer-events:none;overflow:hidden}
.timeFireworks i{position:absolute;left:var(--x);top:var(--y);width:9px;height:9px;
  background:var(--c);border-radius:2px;transform:rotate(var(--r));
  animation:firework-burst 1.4s ease-out forwards;animation-delay:var(--d)}
@keyframes firework-burst{
  0%{transform:translate(0,0) rotate(0) scale(.1);opacity:0}
  15%{opacity:1}
  100%{transform:translate(var(--dx),var(--dy)) rotate(660deg) scale(.55);opacity:0}
}
.rankingModeTabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%;margin-bottom:10px}
.rankingModeTabs button{border:2px solid #cedbf0;border-radius:10px;background:#f0f6ff;
  padding:9px 4px;font-size:12px;font-weight:1000;color:#6076a0}
.rankingModeTabs button.selected{background:#695fb0;border-color:#fff1bf;color:white}
/* Expand shop like the pet catalogue and keep its own vertical scrolling. */
#menuOverlay[data-panel="shop"]{padding:clamp(5px,1.3dvh,10px) 6px}
#menuOverlay[data-panel="shop"] .menuOverlayCard{
  width:100%;height:100%;min-height:0;max-height:100%;border-radius:15px;
}
#menuOverlay[data-panel="shop"] .menuOverlayTop{
  padding:clamp(7px,1.3dvh,11px) 12px;min-height:45px;flex:0 0 auto;
}
#menuOverlay[data-panel="shop"] .menuOverlayScroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:9px 9px 14px;scrollbar-width:thin;
}
#menuOverlay[data-panel="shop"] [data-menu-page="shop"]{
  display:flex;flex-direction:column;align-items:stretch;gap:11px;
  min-height:0;max-width:100%;width:100%;
}
.shopCatalog{display:flex;flex-direction:column;gap:11px;width:100%}
.shopCatalogHero{
  position:relative;overflow:hidden;display:flex;flex-direction:column;
  align-items:flex-start;text-align:left;gap:6px;min-height:142px;padding:18px 16px;
  border:3px solid white;border-radius:19px;
  background:linear-gradient(125deg,#5278bc,#635bbb 67%,#9872cc);
  color:white;box-shadow:0 4px 0 #a7b7df,0 7px 17px #27375f24;
}
.shopCatalogHero::before{
  content:"";position:absolute;right:-54px;bottom:-82px;width:180px;height:180px;
  border:24px solid #ffffff1b;border-radius:50%;pointer-events:none;
}
.shopCatalogHero>span{position:relative;font-size:10px;font-weight:1000;color:#fff0aa;letter-spacing:.12em}
.shopCatalogHero>strong{
  position:relative;font-size:clamp(20px,5.9vw,26px);
  line-height:1.23;letter-spacing:-.055em;text-shadow:0 2px 1px #343c77;
}
.shopCatalogHero>small{position:relative;font-size:10px;color:#f0eaff;font-weight:900}
.shopCatalogHero>b{
  position:absolute;right:14px;top:52px;color:#ffefaa;font-size:24px;
  transform:rotate(12deg);pointer-events:none;
}
.shopCategoryTabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;
  padding:6px;border:2px solid #d4dff2;border-radius:13px;background:#fffdfde3;
}
.shopCategoryTabs>button{
  min-width:0;min-height:38px;border:2px solid #dde4f2;border-radius:10px;
  background:linear-gradient(#f3f7ff,#e6edfa);color:#7180a1;
  font-size:clamp(11px,3.3vw,13px);font-weight:1000;
}
.shopCategoryTabs>button.selected{
  border-color:#fff3c5;background:linear-gradient(#9284cd,#675bb1);
  box-shadow:0 2px #aba5cf;color:white;
}
.shopCategoryHeading{display:flex;align-items:center;justify-content:space-between;gap:7px}
.shopCategoryHeading>strong{font-size:17px;font-weight:1000;color:#354f86;letter-spacing:-.04em}
.shopCategoryHeading>span{
  padding:6px 9px;border:2px solid #c6d5ed;border-radius:9px;background:#f0f5ff;
  color:#5d74a2;font-size:11px;font-weight:1000;
}
.shopCatalogGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shopCollectionCard{
  display:flex;flex-direction:column;text-align:left;min-width:0;min-height:195px;
  padding:0;overflow:hidden;border:3px solid #fff;border-radius:17px;
  background:linear-gradient(145deg,#fff,#e8ecfc 88%);
  box-shadow:0 4px 0 #b8c7e0,0 6px 14px #47669e20;
  color:#40567c;text-shadow:none;
}
button.shopCollectionCard:active{transform:translateY(2px);box-shadow:0 1px #b8c7e0}
.shopCardArt{
  position:relative;min-height:117px;height:117px;display:flex;
  align-items:center;justify-content:center;
  background:radial-gradient(ellipse at 50% 60%,#f8faff,#d8e8ff 72%);
}
.shopCollectionCard:nth-child(2n) .shopCardArt{
  background:radial-gradient(ellipse at 50% 60%,#fffaff,#e9dcf7 75%);
}
.shopCardNumber{position:absolute;top:9px;left:9px;font-size:10px;color:#7288ad;font-weight:1000}
.shopCardFashion img{height:105px;width:105px;object-fit:contain;filter:drop-shadow(0 3px 4px #3b538557)}
.shopCardRibbon{
  position:absolute;bottom:5px;left:50%;transform:translateX(-50%);
  padding:4px 9px;border-radius:20px;background:#6b5aae;color:#fff6c5;
  font-size:9px;font-weight:1000;white-space:nowrap;
}
.shopCardInfo{padding:9px 9px 11px;display:flex;flex-direction:column;gap:4px;min-height:77px;flex:1}
.shopCardInfo strong{color:#344e78;font-size:clamp(12px,3.7vw,15px);font-weight:1000;line-height:1.22}
.shopCardInfo small{font-size:10px;color:#7584a1;font-weight:850}
.shopCardInfo>span{margin-top:auto;font-size:10px;color:#7262ad;font-weight:1000}
.shopEmptyCard{opacity:.75;border-style:dashed;background:linear-gradient(#fafcff,#e8eff9)}
.shopEmptyArt{
  display:grid;place-items:center;height:78px;width:78px;border-radius:50%;
  border:3px dashed #adc0d9;color:#a6b8ce;background:#ffffff6e;
  font-size:42px;font-weight:400;
}
.shopCatalogHint{font-size:11px!important;color:#6a81a0!important;text-align:center}
.shopBackButton{
  align-self:flex-start;min-height:38px;padding:6px 12px;border:2px solid #bbd4eb;
  border-radius:11px;background:#fffdf4;color:#3f6190;font-size:12px;font-weight:1000;
}
#menuOverlay[data-panel="shop"] .shopWallet{margin:0;padding:8px 9px;box-shadow:none}
#menuOverlay[data-panel="shop"] .walletTitle{font-size:12px}
#menuOverlay[data-panel="shop"] .walletItems span{font-size:14px}
#menuOverlay[data-panel="shop"] .walletItems img{width:25px;height:25px}
#menuOverlay[data-panel="shop"] .fashionProduct{margin:0}
#menuOverlay[data-panel="shop"] .fashionProduct h2{font-size:22px}
#menuOverlay[data-panel="shop"] .fashionProduct>p.shopPureCosmetic{
  padding:8px 10px;max-width:none;width:100%;margin:0;
  border-radius:10px;background:#ecf4ff;color:#665bb0;font-size:11px;
  font-weight:900;line-height:1.45;
}
#menuOverlay[data-panel="shop"] .shopFootnote{font-size:11px!important}
@media(max-width:340px){
  .shopCatalogGrid{gap:7px}
  .shopCollectionCard{min-height:174px}
  .shopCardArt{height:103px;min-height:103px}
  .shopCardInfo{min-height:68px;padding:7px}
  .shopCardFashion img{width:93px;height:93px}
  .shopCatalogHero{min-height:131px;padding:14px}
}
/* Keep the same original poster on wide hosts.  The 9:16 shell is already
   centered; the old blurred pseudo-element wings were distracting and
   made the title huge on tablets and desktop. */
@media (min-aspect-ratio: 9/16){
  .menuCover .menuPrimary,.menuCover .menuQuickNav,.menuCover .menuSocialRow{
    width:100%;max-width:510px;align-self:center;
  }
  .menuOverlayCard{max-width:510px}
  .resultCard{width:min(100%,max(392px,56dvh))}
}
@media(max-height:790px){
  .menuCover{gap:clamp(3px,.7dvh,7px);padding:8px 12px 10px}
  .menuCover .menuPrimary{gap:5px}
  .menuCover .menuStartButton{padding:8px 9px}
  .menuCover .menuQuickNav .menuTile{min-height:55px}
  .menuCover .menuQuickNav .menuTileIcon{font-size:19px}
  .menuCover .menuSocialRow a,.menuCover .menuSocialRow button{min-height:34px}
}
@media(max-height:650px){
  .menuCover .menuPrimary{gap:3px}
  .menuCover .bestCard,.menuCover .menuStageInfo{font-size:10px;padding:3px}
  .menuCover .itemBank{min-height:29px}
  .menuCover .itemBank img{width:19px;height:19px}
  .menuCover .menuQuickNav .menuTile{min-height:49px}
  .menuCover .menuVersion{font-size:8px}
}

/* V0.9 — frosted glass result card over an actual freeze-frame */
#over.resultCover{
  position:absolute;inset:0;z-index:5;box-sizing:border-box;
  background:rgba(23,23,46,.47);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  padding:clamp(10px,2vh,23px) 14px;
  overflow:hidden;
  align-items:center;justify-content:center;
  gap:0;text-shadow:none;
}
#over.resultCover::before,#over.resultCover::after{display:none}
.resultCard{
  width:min(100%,392px);
  max-height:100%;
  overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;
  align-items:stretch;justify-content:flex-start;
  gap:clamp(6px,.95vh,11px);
  padding:clamp(11px,1.7vh,18px);
  border:3px solid #fff6dd;
  outline:2px solid #e29c8ebd;
  outline-offset:-9px;
  border-radius:25px;
  color:#634b56;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.85),transparent 63%),
    linear-gradient(160deg,rgba(255,247,231,.95),rgba(255,224,215,.93) 63%,rgba(255,238,219,.95));
  box-shadow:0 8px 0 #5f4258b8,0 20px 50px #151d37b3,inset 0 2px 0 #fff;
  scrollbar-width:none;
  animation:result-entrance .35s cubic-bezier(.16,1.15,.5,1) both;
}
.resultCard::-webkit-scrollbar{display:none}
@keyframes result-entrance{
  from{opacity:0;transform:translateY(19px) scale(.95)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.resultCardTop{
  display:flex;align-items:center;justify-content:center;gap:11px;
  padding:3px 7px;
  margin:0 7px;
  border-radius:20px;
  border:1px solid #f0c9a7;
  color:#a85b5c;
  background:#ffe4cfaf;
  font-weight:1000;letter-spacing:.12em;
  font-size:clamp(10px,2.7vw,13px);
}
.resultAlertIcon{font-size:15px}
.resultMascotBox{
  position:relative;display:flex;justify-content:center;align-items:center;
  width:100%;height:clamp(115px,17.2dvh,175px);
  flex:0 0 auto;
  background:radial-gradient(ellipse at center,#90d5e9ba 0%,#c7eef3a1 37%,#fff3e000 72%);
}
.resultMascotBox #overMascot{
  display:block;flex:0 0 auto;min-height:0;
  width:auto;height:100%;aspect-ratio:250/205;
  image-rendering:pixelated;
  filter:drop-shadow(0 6px 3px #76576469);
  transform:translateY(-3px);
}
.resultSparkle{position:absolute;font-size:30px;color:#ffca75;text-shadow:0 0 7px #fff8cf;animation:result-sparkle 1.2s ease-in-out infinite alternate}
.resultSparkleLeft{left:14%;top:35%}.resultSparkleRight{right:14%;top:12%;animation-delay:.35s}
@keyframes result-sparkle{to{transform:scale(.75) rotate(24deg);opacity:.48}}
.resultHeading{display:flex;flex-direction:column;align-items:center;gap:3px}
.resultEyebrow{
  display:inline-block;color:#e87768;font-size:clamp(10px,2.8vw,13px);
  font-weight:1000;letter-spacing:.12em;text-shadow:0 1px #fff9f5;
}
.resultHeading h2{
  margin:2px 0 0;
  font-size:clamp(19px,5vw,25px);
  letter-spacing:-.06em;line-height:1.25;
  font-weight:1000;color:#704455;
  text-shadow:0 2px 0 #fff6e9;
  word-break:keep-all;
}
.resultHeading .resultSubtitle{margin:0;color:#a57177;font-size:clamp(11px,3vw,13px);font-weight:800;line-height:1.4}
.resultScore{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
  gap:8px;width:100%;
}
.resultScoreMain,.resultScoreBest{
  min-width:0;
  border:2px solid #f5d7ac;
  border-radius:14px;
  background:linear-gradient(180deg,#fff9e5,#ffe3c4);
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:8px 4px;
  box-shadow:0 3px 0 #d4b39c;
}
.resultScoreLabel{font-size:clamp(11px,2.9vw,14px);font-weight:1000;color:#96705d}
.resultScoreNumber{display:flex;align-items:baseline;justify-content:center;gap:4px;color:#ed7660}
.resultScoreNumber strong{font-size:clamp(32px,8.5vw,44px);line-height:1.17;letter-spacing:-.04em}
.resultScoreNumber span{font-size:15px;font-weight:1000}
.resultScoreBest{background:linear-gradient(#effaff,#cceafb);border-color:#cce5f1}
.resultScoreBest>span{font-size:clamp(11px,2.9vw,14px);color:#6682a3;font-weight:1000}
.resultScoreBest strong{color:#477cab;font-size:clamp(20px,5.1vw,26px);line-height:1.7}
.resultLootBox{
  display:flex;flex-direction:column;gap:5px;padding:8px 10px;
  border:2px solid #f4d8c6;border-radius:14px;
  background:#fff9f1ad;
  text-align:center;
}
.resultLootTitle{font-size:clamp(11px,3.2vw,14px);color:#9b6b65;font-weight:950}
.resultLootItems{display:flex;gap:10px;align-items:center;justify-content:space-around}
.resultLootItems span{
  display:flex;gap:4px;align-items:center;justify-content:center;
  color:#704c66;font-size:15px;font-weight:1000;
}
.resultLootItems img{width:clamp(26px,6.4vw,33px);height:clamp(26px,6.4vw,33px);object-fit:contain;image-rendering:pixelated}
.resultActions{display:flex;flex-direction:column;gap:7px;width:100%}
.resultActions button{
  border-radius:12px;
  font-weight:1000;font-size:clamp(16px,4.3vw,21px);
  padding:clamp(8px,1.15vh,12px);
  transition:transform .1s;
}
.resultActions button:active{transform:translateY(3px)}
.resultAgain{
  border:3px solid #fff8dc;color:#fff;
  background:linear-gradient(#ffb583,#f4777a 55%,#e75871);
  text-shadow:0 2px #b5535b;
  box-shadow:0 4px #ad5c68,inset 0 2px #ffffffb8;
}
.resultHome{
  border:2px solid #eaf6fc;
  color:#506e8f;
  background:linear-gradient(#f7fdff,#c9e6f3);
  box-shadow:0 3px #9bbfcf;
}
@media(max-height:790px){
  #over.resultCover{padding:8px 11px}
  .resultCard{gap:6px;padding:10px}
  .resultMascotBox{height:clamp(108px,16dvh,125px)}
  .resultCardTop{padding:2px}
  .resultHeading h2{font-size:clamp(18px,4.8vw,22px)}
  .resultLootBox{padding:6px}
  .resultScoreMain,.resultScoreBest{padding:6px 3px}
  .resultScoreNumber strong{font-size:clamp(29px,8vw,35px)}
  .resultActions button{font-size:17px;padding:7px}
}
@media(max-height:660px){
  .resultCard{gap:4px;padding:9px}
  .resultMascotBox{height:102px}
  .resultAlertText{font-size:11px}
  .resultHeading h2{font-size:18px}
  .resultHeading .resultSubtitle{font-size:10px}
  .resultScoreMain,.resultScoreBest{padding:4px}
  .resultLootBox{padding:4px}
  .resultLootItems img{width:23px;height:23px}
  .resultActions button{font-size:15px;padding:7px}
}

/* V0.10 — compact global ranking access in the existing lobby. */
.menuSocialRow{grid-template-columns:.95fr .9fr 1.25fr;gap:5px}
.menuSocialRow button,.menuSocialRow a{padding:5px 3px;font-size:clamp(10px,2.55vw,13px)}
.menuRankingButton{background:linear-gradient(180deg,#ffd889,#e6aa52);color:#633e36!important;text-shadow:none!important}
.rankRecordLink{
  width:100%;border-radius:10px;padding:10px 7px;color:#fff;font-size:13px;font-weight:1000;
  background:linear-gradient(180deg,#ffba74,#e97b74);border:2px solid #fff8d3;
  box-shadow:0 3px 0 #af6b6e;
}
.rankPage{align-items:stretch;text-align:left;gap:11px;min-height:0}
.rankPage h2{text-align:center}
.rankPage .rankingIntro{text-align:center}
.rankingMySummary{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.rankingMySummary>div{
  border-radius:13px;border:2px solid #c9e5fa;
  background:linear-gradient(#fffefa,#d9f0ff);padding:9px 5px;
  box-shadow:0 3px #a5c3d8;text-align:center;
  display:flex;flex-direction:column;gap:4px;
}
.rankingMySummary small{font-weight:900;color:#7087a1;font-size:11px}
.rankingMySummary strong{color:#355f8a;font-size:clamp(18px,5vw,24px);font-weight:1000}
.rankForm{
  width:100%;display:flex;flex-direction:column;align-items:stretch;gap:7px;
  padding:11px;border-radius:13px;border:2px solid #f1d39c;background:#fff9e8;
}
.rankForm label{font-weight:1000;color:#775d48;font-size:13px}
#rankNick{
  display:block;box-sizing:border-box;min-height:39px;width:100%;font-size:16px;
  padding:7px 11px;color:#34526e;background:#fff;border:2px solid #e8cba0;
  border-radius:9px;outline-offset:2px;
}
.rankLocalRecord{font-size:12px;color:#6e7f99;text-align:center}
.rankLocalRecord strong{color:#cc7460;font-size:15px}
#rankSubmit{
  min-height:42px;width:100%;background:linear-gradient(#ffa578,#f77779);
  border:2px solid #fff7e2;border-radius:10px;
  color:white;font-size:15px;font-weight:1000;text-shadow:0 1px #ae5567;
}
#rankSubmit:disabled{opacity:.6;filter:grayscale(.4)}
.rankStatus{min-height:24px;color:#486a8a;font-size:12px;line-height:1.5;font-weight:850;text-align:center}
.rankLeaderboard{
  width:100%;border:2px solid #b4d6ef;background:#f7fcff;border-radius:12px;overflow:hidden;
}
.rankBoardHeading{
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  padding:8px 10px;background:linear-gradient(#d2edff,#a9d8f9);color:#315f89;
}
.rankBoardHeading strong{font-size:13px}
#rankRefresh{
  flex-shrink:0;border:1px solid #f1f9ff;border-radius:8px;
  background:#fff9eb;color:#516a87;padding:5px 7px;font-size:11px;font-weight:900;
}
.rankList{margin:0;padding:2px 4px 6px;list-style:none;display:flex;flex-direction:column;gap:1px}
.rankList li{
  display:grid;grid-template-columns:41px minmax(0,1fr) 77px;align-items:center;
  gap:6px;min-height:37px;padding:5px 7px;border-bottom:1px solid #e2edf4;
  color:#4d5f74;font-size:13px;background:#fff;
}
.rankList li:nth-child(even){background:#f1f9ff}
.rankList li.rankMine{background:#fff0ce}
.rankList li.rankGold{background:#fff3cb}
.rankList li.rankSilver{background:#e9f0f8}
.rankList li.rankBronze{background:#fdebdc}
.rankList .rankPos{color:#61839c;font-weight:1000;text-align:center}
.rankList .rankNickname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900}
.rankList .rankFloor{text-align:right;color:#c06b56;font-size:14px;font-weight:1000}
.rankEmpty{text-align:center!important;padding:14px 7px!important}
.rankDisclaimer{font-size:11px!important;color:#7b8ba2!important;line-height:1.6!important}
.resultActionPair{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.resultActionPair button{font-size:clamp(11px,3.2vw,14px);padding:clamp(7px,1.1vh,10px)}
.resultRanking{
  border:2px solid #fff0ba;color:#845032;
  background:linear-gradient(#fff6cf,#f2c879);
  box-shadow:0 3px #c89c5a;
}
.titleMusicToggle{
  display:inline-flex;align-items:center;justify-content:center;
  align-self:center;min-height:26px;padding:3px 14px;
  border-radius:30px;border:1px solid #ffe8c2;
  background:#4b2c48b8;color:#fff6d3;
  font-weight:900;font-size:clamp(10px,2.8vw,12px);
  box-shadow:0 2px 4px #3e243e4d;
}
.titleMusicToggle[aria-pressed="true"]{background:#416476d4}
/* Menu utilities live beneath the start/record/food stack, entirely below
   the title artwork's running dog. A single row avoids the old overlap. */
.menuCover .menuUtilityRow{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.35fr);
  align-items:stretch;gap:6px;width:100%;min-width:0}
.menuCover .menuUtilityRow .titleMusicToggle{width:100%;min-width:0;min-height:37px;
  padding:4px 5px;border-radius:12px;font-size:clamp(9px,2.35vw,11px);
  line-height:1.25;text-align:center;white-space:normal}
.menuCover .menuUtilityRow .heartsBar{width:100%;min-width:0;min-height:37px;
  padding:3px 5px;gap:2px 5px;border-radius:12px;line-height:1.2}
.menuCover .menuUtilityRow .heartsIcons{font-size:clamp(9px,2.5vw,12px);letter-spacing:-1.3px}
.menuCover .menuUtilityRow .heartsBar small{font-size:clamp(9px,2.15vw,10px)}
@media(max-height:700px){
  .menuCover .menuUtilityRow{gap:4px}
  .menuCover .menuUtilityRow .titleMusicToggle,
  .menuCover .menuUtilityRow .heartsBar{min-height:31px;padding:2px 3px}
}
@media(max-height:700px){
  .titleMusicToggle{min-height:20px;padding:1px 8px;font-size:10px}
  .menuCover .menuPrimary{gap:3px}
  .menuSocialRow button,.menuSocialRow a{min-height:31px;font-size:10px}
  .resultActionPair button{padding:6px 3px;font-size:12px}
}

/* V0.10.6: intentionally small entry points; the first-time account
   creation form lives in an independent centered overlay. */
.cloudStatusButton{
  align-self:center;max-width:92%;border:1.5px solid #e9ddc0;
  border-radius:18px;padding:5px 14px;min-height:28px;
  background:#253e63d9;color:#fff2dc;box-shadow:0 2px 5px #16263f70;
  font-weight:900;font-size:clamp(10px,2.6vw,12px);
}
.cloudStatusButton.isLinked{background:#266268e8;border-color:#b6f3e8}
.cloudSettingsButton{
  width:100%;padding:12px 9px;border-radius:12px;border:2px solid #e2c583;
  background:linear-gradient(#fff2c9,#ffd98e);color:#6c4b3a;
  font-weight:1000;font-size:13px;margin:6px 0 10px;
}
.cloudOverlay{
  position:absolute;inset:0;z-index:65;display:flex;align-items:center;
  justify-content:center;padding:10px;background:#111e3bc9;
  backdrop-filter:blur(3px);
}
.cloudCard{
  position:relative;width:min(100%,420px);max-height:calc(100dvh - 20px);
  overflow-y:auto;overscroll-behavior:contain;
  border:3px solid #fff1c3;border-radius:23px;
  background:linear-gradient(#fcfaff,#e7f4ff 75%,#dceefe);
  padding:clamp(13px,2.1dvh,20px);
  box-shadow:0 9px 0 #203b68,0 16px 45px #08182e99;
  color:#315477;text-align:center;
}
.cloudCard .cloudClose{
  position:absolute;top:10px;right:10px;width:33px;height:33px;
  border:1px solid #abc7de;border-radius:50%;color:#315a85;
  background:#ffffffde;font-size:17px;font-weight:bold;
}
.cloudMascot{font-size:23px;line-height:1.1;margin:3px 0}
.cloudCard h2{
  font-size:clamp(19px,5vw,24px);line-height:1.25;margin:5px 28px 6px;
  color:#2c5b85;font-weight:1000;letter-spacing:-.04em;
}
.cloudCard .cloudSub{font-size:12px;margin:0 0 14px;color:#58819e;line-height:1.5}
.cloudPage{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.cloudPage label{text-align:left;font-size:12px;font-weight:900;color:#476785}
.cloudPage input,.cloudPage textarea{
  display:block;width:100%;box-sizing:border-box;padding:12px 10px;
  border:2px solid #b1cadd;border-radius:11px;
  background:#fff;color:#284461;font-size:16px;font-weight:800;
  min-height:43px;outline-offset:2px;
}
.cloudPage textarea{resize:vertical;min-height:70px;line-height:1.55;overflow-wrap:anywhere}
.cloudPage input[readonly]{color:#245282;background:#f8fcff;cursor:text;
  font-size:clamp(10px,2.6vw,13px);letter-spacing:-.035em;padding:12px 7px}
.cloudHint{margin:0;font-size:12px;line-height:1.55;color:#58768e}
.cloudPage button:not(.cloudTextButton){
  border-radius:12px;border:2px solid #fff;min-height:43px;
  padding:9px 11px;font-weight:1000;box-shadow:0 3px 0 #a7bed2;
  font-size:clamp(12px,3.5vw,15px);
}
.cloudPage .cloudMainButton{background:linear-gradient(#ffb084,#f97978);color:white;text-shadow:0 1px #be696c}
.cloudPage .cloudAltButton{background:linear-gradient(#d9f2ff,#a8dafa);color:#305b81}
.cloudPage .cloudCopyButton{background:linear-gradient(#ffe8a1,#ffc869);color:#65472d}
.cloudTextButton,.cloudLaterButton{border:0;background:none;color:#63809e;
  font-weight:800;font-size:12px;padding:8px;min-height:30px}
.cloudCodeGroup{display:flex;flex-direction:column;gap:6px;padding:10px;
  background:#dceef8;border-radius:13px;border:1px solid #b7d0e1}
.cloudWelcome{background:#e5f9f4;padding:9px 7px;border-radius:11px;color:#39766c}
.cloudWarning{margin:1px 0;font-size:11px;line-height:1.55;color:#906448;
  border-radius:10px;background:#fff5dd;padding:10px 8px;text-align:left}
.cloudStatus{font-size:12px;line-height:1.5;color:#426881;margin:12px 0 0;min-height:17px;
  font-weight:800;overflow-wrap:anywhere}
.cloudStatus.isError{color:#ad4149}
.cloudLaterButton{display:block;margin:4px auto 0}
@media(max-height:690px){
  .cloudCard{padding:10px 13px}
  .cloudPage{gap:7px}
  .cloudCard .cloudSub{margin-bottom:8px}
}
/* V53 - compact lobby groups instead of a sprawling pile of social buttons */
.lobbyGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin:7px 0 1px;align-items:start}
.lobbyGroup{min-width:0;border:2px solid #f9e8b3;border-radius:14px;background:linear-gradient(#eaf3ff,#bed7ea);color:#314d74;box-shadow:0 4px 0 #385477;overflow:hidden}
.lobbyGroup:nth-child(2){background:linear-gradient(#fff6e6,#ffd5a1);color:#624c70}
.lobbyGroup summary{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:53px;padding:7px 4px;cursor:pointer;list-style:none;text-align:center;user-select:none}
.lobbyGroup summary::-webkit-details-marker{display:none}
.lobbyGroup summary strong{font-size:clamp(12px,3.6vw,17px);line-height:1.2}
.lobbyGroup summary small{font-size:clamp(9px,2.6vw,11px);font-weight:700;opacity:.77}
.lobbyGroup[open] summary{border-bottom:1px solid #879abd88}
.lobbyGroupContent{padding:7px;display:grid;gap:7px}
.lobbyGroupContent>button{box-sizing:border-box!important;display:block!important;width:100%!important;grid-column:auto!important;margin:0!important;min-height:38px!important;padding:7px 4px!important;border-radius:10px!important;font-size:clamp(11px,2.8vw,14px)!important;line-height:1.2!important}
.lobbyGroupContent #friendShareButton{min-height:42px!important}
/* V54: expanding categories must never alter the main menu height */
.lobbyGroups{position:relative;isolation:isolate;overflow:visible!important;align-items:stretch}
.lobbyGroup{position:relative;overflow:visible!important;min-height:57px}
.lobbyGroup[open]{z-index:30}
.lobbyGroup summary{min-height:53px}
.lobbyGroup[open] summary{border-bottom:0}
.lobbyGroupContent{position:absolute;top:auto;bottom:calc(100% + 9px);left:-2px;right:-2px;z-index:40;border:2px solid #fff0bf;border-radius:15px;background:linear-gradient(#fffaf0,#e7edff);box-shadow:0 9px 20px #13234c88;padding:9px;display:grid;gap:8px}
.lobbyGroup:not([open]) .lobbyGroupContent{display:none}
.lobbyGroup[open] summary{box-shadow:inset 0 0 0 2px #7c73ad55}

/* V63: stop browser text-selection and image long-press menus in the game UI. */
#shell, #shell *:not(input):not(textarea):not(select){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#shell img,#shell canvas{ -webkit-user-drag:none;user-drag:none; }
#shell input,#shell textarea{ -webkit-user-select:text;user-select:text;-webkit-touch-callout:default; }

/* V65: compact two-button arcade pad; retain touch-friendly hit areas. */
#controls{width:min(86%,650px);height:clamp(86px,12.2%,150px);bottom:3%;gap:9%}
#controls .controlButton{border-width:3px;border-radius:17px;padding:7px 4px;gap:4px;touch-action:manipulation}
#controls .controlIcon{font-size:clamp(35px,10vw,58px);line-height:1}
#controls .controlLabel{font-size:clamp(12px,3.1vw,16px);line-height:1.2}
