:root{font-family:system-ui,-apple-system,"Trebuchet MS",sans-serif;color:#fff8ed;background:#211c32;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none;min-width:300px;background:radial-gradient(circle at 20% -5%,#534061 0,transparent 36%),linear-gradient(155deg,#242039,#34253f 58%,#201e35);min-height:100dvh}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}#app{min-height:100dvh}.shell{max-width:620px;margin:auto;min-height:100dvh;padding:env(safe-area-inset-top) 15px calc(99px + env(safe-area-inset-bottom));position:relative}.top{height:68px;display:flex;align-items:center;justify-content:space-between;gap:8px}.top .brand{width:148px;height:64px;object-fit:contain;object-position:left center;filter:drop-shadow(0 6px 6px #0b0a1633)}.topActions{display:flex;align-items:center;gap:8px}.currency{display:flex;align-items:center;background:#191629a8;border:2px solid #77627f;border-radius:25px;padding:6px 11px;font-size:13px;font-weight:900}.currency img{width:25px;height:24px;object-fit:contain}.avatar{background:#4b344d;border:2px solid #9c7fa0;width:43px;height:43px;border-radius:50%;font-size:23px;color:white}.page{animation:fadeIn .2s both}.banner{background:linear-gradient(125deg,#6d3855,#3a294a);border:2px solid #aa769c;border-radius:24px;padding:18px;margin:12px 0;box-shadow:0 13px 25px #110d2370}.hero{min-height:218px;display:flex;align-items:center;gap:10px;background:radial-gradient(circle at 70% 36%,#f77c7c55,transparent 37%),linear-gradient(130deg,#684367,#362949);overflow:hidden}.hero img{width:45%;max-height:220px;object-fit:contain;filter:drop-shadow(0 12px 8px #19102173)}.heroText{flex:1}.eyebrow{text-transform:uppercase;font-weight:900;color:#ffcf70;font-size:11px;letter-spacing:1.5px}.hero h1{font-size:clamp(23px,6vw,34px);line-height:1.04;margin:6px 0}.hero p{font-size:13px;line-height:1.4;color:#ffe5e6}.cta,.secondaryBtn,.ghostBtn{border:0;border-radius:17px;padding:12px 16px;font-weight:1000;color:#251f32;box-shadow:0 5px 0 #236e40; background:linear-gradient(#6cf29e,#1dc46d)}.cta:active,.secondaryBtn:active{transform:translateY(3px);box-shadow:0 2px 0 #236e40}.secondaryBtn{background:linear-gradient(#ffe69b,#ffad3c);box-shadow:0 5px 0 #9c5c23}.ghostBtn{background:#574665;color:#fff;box-shadow:none;border:1px solid #9b7da5}.big{width:100%;padding:16px;font-size:16px}.sectionTitle{font-size:19px;font-weight:1000;margin:20px 0 10px}.muted{color:#c7b8cd;font-size:13px}.modeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.modeCard{border:2px solid #9b7f9d;background:linear-gradient(#553a63,#332a45);border-radius:21px;min-height:166px;padding:10px 5px;color:white;box-shadow:0 6px 0 #171326;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center}.modeCard img{width:92%;height:100px;object-fit:contain}.modeCard strong{font-size:13px}.tileList{display:grid;grid-template-columns:1fr 1fr;gap:10px}.infoCard{background:linear-gradient(140deg,#44344e,#302940);border:1px solid #8d7298;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:7px}.infoCard b{font-size:15px}.infoCard span{font-size:12px;color:#cbb9d0}.worldGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.worldCard{background:linear-gradient(135deg,#574867,#29233f);color:white;border-radius:21px;border:2px solid #997b9c;padding:12px;min-height:172px;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 5px 0 #181328}.worldCard img{width:100px;height:96px;object-fit:contain}.worldCard strong{font-size:17px}.worldCard small{color:#d5c1d4}.worldCard.locked{opacity:.66}.levelsGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}.levelBtn{background:linear-gradient(#745e83,#4c3d5d);border:2px solid #c5a6ce;color:white;aspect-ratio:1;border-radius:15px;font-weight:900;font-size:16px;position:relative}.levelBtn.unlocked{background:linear-gradient(#fbcf72,#ed893d);border-color:#fff0ad;color:#402a38}.levelBtn.done{background:linear-gradient(#8aeaae,#34bb76);color:#20442f;border-color:#c4ffda}.miniStars{display:block;font-size:10px;white-space:nowrap}.gameHead{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 12px}.gameHead h2{font-size:20px;margin:0}.gameHead small{color:#e9be83}.roundIcon{border:2px solid #ab93b3;background:#46334c;color:white;border-radius:50%;width:45px;height:45px;font-size:23px}.gamePage{padding-bottom:20px}.boardShell{border:8px solid #e5dce8;border-radius:24px;padding:10px;background:#2a1c33;box-shadow:0 7px 0 #89738d,0 13px 30px #0d091c88;margin:auto;width:100%;max-width:520px;touch-action:none;user-select:none;-webkit-user-select:none}.board{display:block;aspect-ratio:1;background:radial-gradient(circle at 50% 35%,#5a4365 0%,#453154 42%,#30203b 100%);border-radius:16px;overflow:hidden;touch-action:none;position:relative;isolation:isolate}.gooCanvas{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}.wallLayer{position:absolute;inset:0;z-index:2;pointer-events:none}.wallSolid{position:absolute;display:flex;align-items:center;justify-content:center}.wallPiece{position:relative;inset:auto;width:88%;height:88%;background:linear-gradient(135deg,#c6bcca,#8d839d 65%,#6c627e);box-shadow:inset 0 3px 4px #fff9,inset 0 -5px 5px #4c435a9c,0 3px 5px #100c204d;border:1px solid #9d94aa;border-radius:12px}.wallPiece:after{content:'';position:absolute;inset:10%;border:1px solid #655b7180;border-radius:7px}.kevinHead{position:absolute;z-index:5;transform:translate(-50%,-50%);object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 4px 3px #340e2588);will-change:transform}
.gameStats{display:flex;align-items:center;justify-content:space-between;margin:17px 0 10px;background:#392b47;padding:12px 16px;border-radius:15px;border:1px solid #705b7b}.statNum{font-size:23px;font-weight:1000}.gameControls{display:flex;justify-content:center;gap:15px;margin:15px 0}.gameControls button{width:65px;height:65px;background:transparent;padding:0;border:0}.gameControls img{height:100%;width:100%;object-fit:contain}.hint{margin-top:9px;text-align:center;color:#f1d68c;font-size:13px}.footer{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-around;background:#201b31ef;backdrop-filter:blur(15px);border-top:2px solid #624c70;padding:8px max(8px,calc((100vw - 605px)/2)) calc(8px + env(safe-area-inset-bottom));min-height:76px}.navItem{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:0;color:#bbacc5;font-size:10px;font-weight:800;min-width:53px}.navItem.active{color:#ffeaa1}.navItem .navSymbol{font-size:23px;line-height:24px}.footer .navItem.active .navSymbol{filter:drop-shadow(0 0 7px #ffd986)}.modalCover{position:fixed;inset:0;background:#090711b9;z-index:40;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:100%;max-width:440px;background:linear-gradient(#6b486d,#30243f);border:3px solid #f7e4e9;border-radius:27px;padding:22px;text-align:center;box-shadow:0 20px 90px #000a}.modal img{width:150px;height:140px;object-fit:contain}.modal h2{font-size:30px;margin:8px 0}.modal p{color:#e9dae9}.buttonRow{display:flex;gap:9px;justify-content:center;margin-top:15px}.buttonRow button{flex:1}.line{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 0;border-bottom:1px solid #80668455}.line:last-child{border-bottom:0}.switch{width:51px;height:29px;border-radius:30px;background:#7b6579;border:2px solid #c1a2bd;position:relative}.switch.on{background:#49c882}.switch:after{content:'';width:20px;height:20px;border-radius:50%;background:white;position:absolute;left:3px;top:2px;transition:.15s}.switch.on:after{left:25px}.tag{border-radius:30px;background:#f5c06a;color:#473346;padding:4px 10px;font-size:11px;font-weight:900}.input{width:100%;background:#241d35;border:2px solid #9d80a4;border-radius:12px;padding:12px;color:white;outline:none}.empty{padding:30px 18px;text-align:center;border:2px dashed #7d688a;border-radius:20px;background:#30273c}.smallBtn{border:1px solid #a98bb2;background:#574365;color:white;border-radius:10px;padding:7px 10px;font-weight:bold}.shopGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.shopItem{text-align:center;border:2px solid #826e8b;border-radius:17px;background:#3e324b;padding:10px}.shopItem img{height:94px;max-width:100%;object-fit:contain}.shopItem b{display:block;font-size:13px}.shopItem button{width:100%;margin-top:9px;padding:8px;font-size:12px}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);max-width:90%;background:#fff0c9;color:#302039;border-radius:15px;box-shadow:0 8px 30px #08051288;padding:11px 18px;font-size:13px;font-weight:bold;z-index:60;text-align:center}.progress{height:9px;background:#1c142c;border-radius:50px;overflow:hidden}.progress div{height:100%;background:linear-gradient(90deg,#ffbd60,#ffef92);border-radius:50px}.pillRow{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.pill{background:#4c3c58;border:1px solid #9c83a6;color:white;padding:9px 14px;border-radius:30px;font-size:13px;font-weight:900}.pill.active{background:#ffd06f;color:#362635}.subnav{display:flex;align-items:center;gap:9px;margin:12px 0}.subnav h2{font-size:21px;margin:0}.center{text-align:center}.legal{font-size:11px;color:#aa99b5;margin-top:22px;line-height:1.5}@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:360px){.shell{padding-left:9px;padding-right:9px}.gameControls button{width:58px;height:58px}.modeCard{min-height:145px}.modeCard img{height:84px}.modeCard strong{font-size:11px}.levelBtn{border-radius:9px}}@media(min-width:700px){.shell{padding-bottom:110px}.boardShell{max-width:450px}.hero{min-height:235px}}

/* V0.3.3: the head floats over a single rounded jelly surface */
.kevinHead{z-index:6;filter:drop-shadow(0 2px 2px #8d1129a8) drop-shadow(0 5px 5px #2a081c55)}
.gooCanvas{z-index:1;overflow:hidden}.board{contain:layout paint;touch-action:none}

/* KEVIN V0.4: daily five-stage progression */
.dailySteps{display:flex;flex-direction:column;gap:10px;margin:16px 0}.dailyStep{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:2px solid #8b7198;border-radius:18px;padding:12px;background:linear-gradient(130deg,#594364,#302740);color:white;min-height:80px}.dailyStep.complete{border-color:#78dc9e;background:linear-gradient(130deg,#3e745c,#293e3c)}.dailyStep.locked{opacity:.55}.dailyNum{width:48px;height:48px;border-radius:16px;background:linear-gradient(#f5be5e,#e6723e);display:flex;align-items:center;justify-content:center;color:#352338;font-size:25px;font-weight:900;flex-shrink:0}.dailyMeta{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.dailyMeta strong{font-size:15px}.dailyMeta small{font-size:12px;color:#dfd1e5}.dailyArrow{font-size:28px;color:#ffdc8b}

/* KEVIN V0.4.1 — colorful background and surface refresh. Core gameplay, navigation and supplied button assets are unchanged. */
:root{background-color:#00b6bd;color:#fffaf1}
html{background-color:#00b6bd}
body{background-color:#00b6bd;background-image:url('/assets/bg-bubblegum.png');background-size:cover;background-position:center center;background-repeat:no-repeat;background-attachment:fixed;color:#fffaf1}
body[data-kevin-page="game"]{background-image:url('/assets/bg-aqua.png')}
body[data-kevin-page="modes"],body[data-kevin-page="worlds"],body[data-kevin-page="levels"],body[data-kevin-page="daily"],body[data-kevin-page="random"]{background-image:url('/assets/bg-acid.png')}
/* Subtle gradient keeps foreground readable without covering the colorful masters. */
.shell{isolation:isolate}
.top .brand{filter:drop-shadow(0 3px 4px #003c4966)}
.currency{background:#004a60d9;border-color:#7cf9ef;box-shadow:0 3px 12px #025c6955}
.avatar,.roundIcon{background:#006577de;border-color:#a4ffff;color:white;box-shadow:0 3px 10px #00536e44}
.banner{background:linear-gradient(140deg,#005b75ec,#057e87dc);border-color:#92fcef;box-shadow:0 11px 28px #00666e66}
.hero{background:radial-gradient(circle at 70% 38%,#ff70696b,transparent 40%),linear-gradient(125deg,#005c72e8,#078b9bdd)}
.hero p{color:#e6fffb}
.muted{color:#e2fff9;text-shadow:0 1px 2px #005b6370}
.sectionTitle{text-shadow:0 2px 6px #005f74a6}
.modeCard{background:linear-gradient(140deg,#006f8cee,#004f70ee);border-color:#98ffed;box-shadow:0 6px 0 #00516e88}
.infoCard{background:linear-gradient(135deg,#005b74f2,#007d82e8);border-color:#89e9e6;box-shadow:0 4px 14px #0050693b}
.infoCard span{color:#dcfffa}
.worldCard{background:linear-gradient(125deg,#007c86eb,#00566de8);border-color:#b3fff2;box-shadow:0 5px 0 #0055658c}
.worldCard small{color:#e3fffb}
.levelBtn{background:linear-gradient(#3db8bf,#086c8e);border-color:#a4fff5;color:white}
.levelBtn.unlocked{background:linear-gradient(#ffe89f,#ff9e42);border-color:#fff4c7;color:#423029}
.levelBtn.done{background:linear-gradient(#86efa8,#28bc79);border-color:#d6ffde;color:#184832}
.gameHead small{color:#fff1a4;text-shadow:0 1px 4px #00596380}
.boardShell{background:#00616e;border-color:#f3ffff;box-shadow:0 7px 0 #57bac5,0 12px 30px #0059696b}
.board{background:radial-gradient(circle at 45% 34%,#146f80 0%,#07586b 55%,#034a5d 100%)}
.gameStats{background:#006b82e8;border:1px solid #9dfff1;box-shadow:0 5px 16px #005e6470}
.hint{color:#fff4a7;text-shadow:0 2px 3px #00646db8}
.footer{background:#00536bea;border-top:2px solid #76f6ea;box-shadow:0 -5px 24px #045c6b57}
.navItem{color:#bffaf5}.navItem.active{color:#fff0a8}
.modalCover{background:#002d40b9}
.modal{background:linear-gradient(155deg,#00818f,#005570);border-color:#e5ffff;box-shadow:0 20px 85px #003a55a3}
.modal p{color:#e9ffff}
.ghostBtn{background:#006480;color:#fff;border-color:#91e5f5}
.line{border-bottom-color:#a4ffed55}
.switch{background:#286c7b;border-color:#b2ffff}.switch.on{background:#38cd85}
.input{background:#004f64;border-color:#91f0e7;color:white}
.empty{background:#00586be8;border-color:#93f4e6}
.smallBtn{background:#00778c;border-color:#a1fff3;color:white}
.shopItem{background:#006679ee;border-color:#9cfff0}
.pill{background:#00687bdc;border-color:#b0fff5;color:white}.pill.active{background:#ffd06f;color:#362635}
.dailyStep{background:linear-gradient(135deg,#006d85,#005267);border-color:#91f5ea}
.dailyStep.complete{background:linear-gradient(135deg,#259c79,#086e68);border-color:#99ffbf}
.dailyMeta small{color:#e2fffa}
.legal{color:#e5fff8;text-shadow:0 1px 4px #00627c}
/* Fixed image sizing: all backgrounds stay uncropped in their content; edge overflow is intentionally cover on narrow/wide screens. */
@media(min-width:800px){body{background-size:cover;background-position:center center}}

/* KEVIN 0.4.2 — modes/flash/dev only */
.flashHud{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:linear-gradient(110deg,#065f7acc,#064855d9);border:2px solid #a7f7f4;border-radius:17px;padding:9px 14px;margin:8px 0 12px;color:#fff;box-shadow:0 3px 12px #063e4d33}.flashHud strong{font-size:19px;font-variant-numeric:tabular-nums}.flashHud small{font-size:12px;color:#fff4b9}.devFloat{position:fixed;right:12px;bottom:calc(93px + env(safe-area-inset-bottom));z-index:100;border:2px solid #fff;background:#ec2e3b;color:white;font-weight:900;padding:12px;border-radius:20px;box-shadow:0 4px 18px #0007}.devCover{z-index:120}.devModal{max-height:88dvh;overflow:auto;text-align:left}.devModal .big{width:100%;margin:8px 0}.devModal label{display:block;margin:9px 0 5px;font-weight:bold}

/* Solo visual stages reuse the three approved master backgrounds. */
body[data-kevin-page="game"][data-kevin-chapter="2"]{background-image:url('/assets/bg-acid.png')!important}
body[data-kevin-page="game"][data-kevin-chapter="3"]{background-image:url('/assets/bg-bubblegum.png')!important}

body[data-kevin-page="solo"],body[data-kevin-page="flash"]{background-image:url('/assets/bg-acid.png')}

/* KEVIN 0.4.3 — header/footer refinements; no changes to the puzzle board or supplied game controls. */
.hintCurrency{display:flex;align-items:center;gap:2px;min-width:46px;height:37px;padding:3px 7px 3px 4px;background:#004a60d9;border:2px solid #7cf9ef;border-radius:23px;box-shadow:0 3px 12px #025c6955;color:white;font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.hintCounterIcon{width:28px;height:28px;object-fit:contain;display:block}
.topInGame .gameExit{font-size:29px;line-height:1;font-weight:400;display:flex;align-items:center;justify-content:center;flex:0 0 43px}
.gameHeadSimple{justify-content:center;margin:12px 0 14px;min-height:35px;text-align:center}
.gameHeadSimple h2{font-size:clamp(19px,4.7vw,25px);line-height:1.2}
body[data-kevin-page="game"] .shell{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
@media(max-width:370px){.topActions{gap:5px}.top .brand{width:113px}.currency{font-size:12px;padding:5px 7px}.currency img{width:21px;height:21px}.avatar{width:38px;height:38px}.hintCurrency{font-size:13px;min-width:41px;padding:2px 5px}.hintCounterIcon{width:25px;height:25px}}

/* Navigation icons V0.4.3 — layout only, preserving all other page styles. */
.footer .navItem{flex:1 1 0;min-width:0;min-height:54px;display:flex;align-items:center;justify-content:center;gap:0;padding:3px 1px;line-height:1;overflow:visible}
.footer .navItem .navIcon{display:block;width:clamp(39px,10vw,51px);height:clamp(39px,10vw,51px);object-fit:contain;object-position:center;filter:drop-shadow(0 2px 2px #00364455);transition:transform .12s ease,filter .12s ease}
.footer .navItem.active .navIcon{transform:translateY(-2px) scale(1.055);filter:drop-shadow(0 3px 5px #ffdb6a88)}
.topActions .avatar{width:43px;height:43px;min-width:43px;min-height:43px;display:flex;align-items:center;justify-content:center;padding:0;overflow:visible;border-radius:12px;background:transparent;border:0;box-shadow:none}
.topActions .avatar .profileIcon{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:370px){.topActions .avatar{width:38px;height:38px;min-width:38px;min-height:38px}}

/* V0.4.3.3: Store artwork loading screen (full device, undistorted square image). */
.kevin-splash{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#00b6bd;background-image:url('/assets/bg-bubblegum.png');background-size:cover;background-position:center center;background-repeat:no-repeat;isolation:isolate;opacity:1;transition:opacity .28s ease;touch-action:none}.kevin-splash.splash-hidden{opacity:0;pointer-events:none}.splash-art{position:relative;z-index:1;display:block;width:min(90vw,650px);height:auto;max-height:72dvh;object-fit:contain;object-position:center;filter:drop-shadow(0 8px 24px #00465344)}
.versionDetails summary{cursor:pointer;font-weight:850;padding:6px 0}.versionDetails p{margin:12px 0 3px;line-height:1.5}.versionDetails .legal{margin:6px 0;color:#d2eeeb}.input#language-select{color:#fff;background:#103c51;border-color:#71dadd;appearance:auto;min-height:48px;cursor:pointer}#language-select option{color:#102932;background:#fff}

/* Currency and hint symbols are rendered with the existing official assets. */
.inlineCoin,.inlineHint{display:inline-block!important;width:21px!important;height:21px!important;vertical-align:-4px!important;object-fit:contain!important;margin:0 2px 0 0;filter:none!important;}
.shopItem .inlineCoin,.shopItem .inlineHint{width:19px!important;height:19px!important;vertical-align:-4px!important;}

/* V0.4.3.8 — resource counter buttons, small informative modals and profile portrait */
.topActions .hintCurrency,.topActions .currency{color:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:900;white-space:nowrap;touch-action:manipulation}
.topActions .hintCurrency{font-size:15px}
.resourceModal{max-width:400px;text-align:center}.resourceModal h2{display:flex;align-items:center;justify-content:center;gap:8px;font-size:23px}
.resourceModal .inlineCoin,.resourceModal .inlineHint{width:32px!important;height:32px!important;vertical-align:middle!important}
.resourceCount{display:block;font-size:30px;margin:14px 0 9px;font-variant-numeric:tabular-nums}
.resourceTrack{width:100%;height:14px;border-radius:40px;overflow:hidden;background:#002e4a;border:1px solid #9ef6e9}
.resourceTrack>div{height:100%;border-radius:40px;background:linear-gradient(90deg,#ffe874,#ffc73c);transition:width .25s ease}
.resourceModal p{text-align:left;font-size:14px;line-height:1.55}
.profilePortrait{width:94px;height:94px;display:flex;align-items:center;justify-content:center;border:2px solid #a7fff1;border-radius:20px;background:#005471;margin:10px auto}
.profilePortrait img{width:84px;height:84px;object-fit:contain}
#hint-shop-section{scroll-margin-top:20px}

/* V0.4.3.9 — Avatar gallery: independent 512px transparent PNGs, no square-sheet crops */
.profilePortraitButton{position:relative;cursor:pointer;color:white;padding:0;overflow:visible;appearance:none}
.profilePortraitButton:focus-visible,.avatarChoice:focus-visible{outline:3px solid #ffda49;outline-offset:3px}
.profilePortraitButton .profileEditBadge{position:absolute;right:-8px;bottom:-7px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#ffd63b;color:#16445a;border:2px solid #fff;font-weight:900;font-size:18px;box-shadow:0 3px 8px #002b4590;z-index:10;pointer-events:none}
.avatarPickerCover{padding:12px;align-items:center;justify-content:center}
.avatarPickerModal{width:min(100%,560px);max-width:560px;max-height:min(92dvh,850px);overflow-y:auto;overflow-x:hidden;display:block;padding:14px;scrollbar-width:thin;scrollbar-color:#68d2dc #0c5165}
.avatarPickerTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;position:sticky;top:-14px;background:linear-gradient(180deg,#146a77 0%,#146a77 82%,#146a7700 100%);padding-top:4px;padding-bottom:6px;z-index:4;margin-bottom:2px}
.avatarPickerModal>.cta{display:block;width:100%;margin-top:6px}
.avatarPickerTop h2{margin:3px 0;font-size:clamp(21px,5vw,26px)}
.avatarPickerTop p{font-size:12px;line-height:1.35;margin:4px 0;color:#e9f9ff}
.avatarClose{flex:none;width:39px;height:39px;min-width:39px}
.avatarPickerGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;min-height:auto;flex:none;padding:5px 4px 10px}
.avatarChoice{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;padding:4px;border:2px solid #69bccf;background:#075268c9;border-radius:14px;color:#fff;min-width:0;box-shadow:0 3px 4px #002d4190}
.avatarChoice img{width:100%;aspect-ratio:1;object-fit:contain;display:block;pointer-events:none}
.avatarChoice span{font-size:11px;font-weight:800;line-height:1.1;padding:2px 1px 4px}
.avatarChoice.selected{background:#137778;border-color:#ffdc4b;box-shadow:0 0 0 2px #ffdc4b80,0 4px 12px #ffde5873}
.avatarChoice.selected:before{content:'✓';position:absolute;top:1px;right:2px;background:#ffdc4b;color:#124759;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;font-size:12px;font-weight:900;z-index:2}
.avatarPickerModal>.cta{flex:none}
@media(max-width:375px){.avatarPickerGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}}
@media(min-width:540px){.avatarPickerGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}

.profileComposite{position:relative;display:block;width:100%;height:100%;overflow:visible}
.profileComposite .profileFrameLayer,.profileComposite .profileAvatarLayer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
.profileComposite .profileAvatarLayer{z-index:2;transform:scale(.84)}
.profileComposite .profileFrameLayer{z-index:1;transform:scale(1.2);transform-origin:center center}
.profileCompositeHeader{width:43px;height:43px}
.profileCompositePortrait{width:94px;height:94px}
.profileCompositePortrait .profileAvatarLayer{transform:scale(.86)}
.profileCompositeLarge{width:112px;height:112px;margin:0 auto}
.profileCompositeChoice{width:100%;aspect-ratio:1}
.profileCompositeChoice .profileAvatarLayer{transform:scale(.82)}
.profilePickerPreviewWrap{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 4px 4px}
.profilePickerPreviewWrap p{margin:0;color:#d9f3f9;font-size:12px;line-height:1.35;text-align:center}
.avatarPickerSectionTitle{font-size:15px;font-weight:1000;color:#ffe27b;margin-top:2px}
.framePickerGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;min-height:auto;flex:none;padding:5px 4px 10px}
.frameChoice{padding:6px}
.frameChoice span{padding-top:3px}
@media(max-width:375px){.framePickerGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}}
@media(min-width:540px){.framePickerGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* V0.4.3.13 — Profile layout only. No gameplay or art asset changes. */
.profilePortrait.profilePortraitButton{width:188px;height:188px;min-width:188px;min-height:188px}
.profilePortrait .profileCompositePortrait{width:100%;height:100%}
.profilePortrait .profileCompositePortrait img{width:100%;height:100%}
.profilePortraitButton .profileEditBadge{z-index:20}
.fixedKevinInput{display:flex;align-items:center;min-height:48px;width:100%;border:2px solid #9d80a4;border-radius:12px;background:#103c51;color:#fff;overflow:hidden}
.fixedKevinInput:focus-within{border-color:#9ff8f2;box-shadow:0 0 0 2px #48d2d344}
.fixedKevinPrefix{font-size:16px;font-weight:800;padding:11px 0 11px 12px;flex:none;user-select:none}
.fixedKevinInput input{border:0;background:transparent;outline:none;color:#fff;flex:1;min-width:0;padding:11px 12px 11px 2px;font:inherit}
.settingsHeading{display:flex;align-items:center;gap:8px}
.settingsHeadingIcon{width:42px;height:42px;object-fit:contain;flex:none}
.avatarPickerModal .avatarPickerGrid,.avatarPickerModal .framePickerGrid{align-items:start}
.avatarPickerModal .avatarChoice{aspect-ratio:1/1;min-height:0;padding:5px;display:flex;align-items:center;justify-content:center;overflow:visible;gap:0}
.avatarPickerModal .avatarChoice>img{width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;display:block}
.avatarPickerModal .avatarChoice .profileCompositeChoice{width:100%;height:100%;aspect-ratio:1/1;padding:0;display:block}
.avatarPickerModal .avatarChoice .profileCompositeChoice img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:1;object-fit:contain}
.avatarPickerModal .avatarPickerTop{justify-content:flex-end}
.avatarPickerModal .profilePickerPreviewWrap{margin:8px auto 12px}
.avatarPickerModal .avatarPickerSectionTitle{margin:14px 0 6px}

/* V0.4.3.15: floating profile portrait; unobtrusive Flash five-second warning. */
.profilePortrait.profilePortraitButton{background:transparent;border:0;box-shadow:none;border-radius:0}
body.flash-alarm-active::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:30;background:radial-gradient(ellipse at 50% 50%,rgba(255,28,40,0.025) 25%,rgba(255,25,36,0.30) 100%);box-shadow:inset 0 0 85px rgba(255,10,25,0.35);animation:kevinFlashDanger 0.85s ease-in-out infinite alternate}
@keyframes kevinFlashDanger{from{opacity:0.18}to{opacity:0.9}}
@media(prefers-reduced-motion:reduce){body.flash-alarm-active::after{animation:none;opacity:0.35}}

/* V0.4.3.16: reliable Flash warning layer, independent of audio autoplay. */
body.flash-alarm-active::after{content:none!important}
#flash-danger-overlay{position:fixed;inset:0;z-index:38;pointer-events:none;user-select:none;background:radial-gradient(ellipse at center,rgba(255,20,30,0.0225) 15%,rgba(244,22,35,0.345) 80%,rgba(228,0,22,0.525) 100%);box-shadow:inset 0 0 80px rgba(255,0,20,0.495);animation:kevinFlashDangerPulse .8s ease-in-out infinite alternate}
#flash-danger-overlay[hidden]{display:none!important}
@keyframes kevinFlashDangerPulse{from{opacity:.25}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#flash-danger-overlay{animation:none;opacity:.55}}

/* V0.4.3.21 — keep Daily and Flash illustrations fully visible with a normal scale. */
.modeBanner{overflow:hidden}
.modeBanner .modePageArt{display:block !important;width:min(42vw,170px) !important;max-width:100% !important;height:min(15svh,118px) !important;max-height:118px !important;object-fit:contain !important;object-position:center center !important;margin:0 auto 8px !important;filter:drop-shadow(0 10px 12px #10193c33)}
@media(max-width:420px){.modeBanner .modePageArt{width:min(40vw,156px)!important;height:min(14svh,112px)!important;max-height:112px!important}}


/* V0.4.4 — economy and fourth game mode. Existing layouts remain unchanged. */
.modeGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.modeGrid .modeCard{min-height:154px}
.modeGrid .modeCard img{height:95px;max-width:100%;object-fit:contain}
.hardcoreTiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.hardcoreTier{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px 9px;min-height:140px;background:linear-gradient(140deg,#80344f,#38294e);border:2px solid #ffc47c;color:#fff;border-radius:18px;box-shadow:0 5px 0 #142035}
.hardcoreTier strong{color:#fff4b7;font-size:18px}
.hardcoreTier span{font-size:14px}
.hardcoreTier b{font-size:13px;display:flex;align-items:center;gap:4px}
.hardcoreTier small{color:#fff4b7;font-weight:900}
.hardcoreBoard{width:min(100%,calc(100dvh - 290px),520px);padding:6px;border-width:6px}
.hardcoreBoard .wallPiece{border-radius:4px}
.hardcoreBoard .wallPiece::after{display:none}
.upgradeList{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.upgradeRow{display:flex;justify-content:space-between;align-items:center;gap:9px;min-height:68px;padding:10px 12px;background:#123f56bf;border:1px solid #76aab0;border-radius:15px}
.upgradeRow.owned{border-color:#b7eb9b;background:#105b5e}
.upgradeRow>div{display:flex;flex-direction:column;gap:5px}
.upgradeRow b{font-size:14px}
.upgradeRow span,.upgradeRow small{font-size:12px;color:#c8e8e8}
.upgradeRow button{padding:7px 10px;font-size:12px;flex-shrink:0}
.shopSymbol{display:flex;justify-content:center;align-items:center;height:45px}
.shopSymbol img{height:35px;max-width:42px}
@media(max-width:390px){.hardcoreBoard{width:min(100%,calc(100dvh - 280px))}.hardcoreTier{min-height:128px}}

/* V0.4.4.1: movement-blocked notice stays inside the stats strip, never over the board. */
.gameStats{position:relative}
.blockedMoveNotice{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:5px 12px;border-radius:inherit;background:rgba(0,67,85,.96);border:1px solid #a7f7f4;color:#fff9e7;text-align:center;font-size:clamp(12px,3.4vw,16px);font-weight:850;line-height:1.3;pointer-events:none;animation:blockedMoveNoticeIn .13s ease-out both}
@keyframes blockedMoveNoticeIn{from{opacity:0}to{opacity:1}}

/* Shop assets integration */
.resourceInfoCard{display:flex;align-items:center;gap:12px}
.resourceInfoArt{flex:0 0 82px;display:flex;align-items:center;justify-content:center}
.resourceInfoText{flex:1;display:flex;flex-direction:column;gap:7px}
.resourceInfoArt .upgradeArt{width:82px;height:82px}
.shopSymbol{height:96px}
.shopVisual{width:100%;height:88px;object-fit:contain;display:block;margin:0 auto}
.shopVisualHintSingle{padding:10px}
.shopItem img.shopVisual{height:88px;max-width:100%}
.upgradeInfo{display:flex;align-items:center;gap:10px;min-width:0}
.upgradeArt{width:62px;height:62px;object-fit:contain;display:block;flex:0 0 62px}
.upgradeInfo>div{min-width:0}
.upgradeRow{min-height:84px}
@media(max-width:370px){.resourceInfoArt{flex-basis:72px}.resourceInfoArt .upgradeArt{width:72px;height:72px}.upgradeArt{width:54px;height:54px;flex-basis:54px}.shopVisual{height:78px}.shopSymbol{height:86px}}


/* V0.4.4.7 — subtle soft-focus treatment on app background only. */
body{background-image:none!important;background-color:#00b6bd}
body::before{content:"";position:fixed;inset:-9px;z-index:0;pointer-events:none;background-image:url('/assets/bg-bubblegum.png');background-position:center;background-size:cover;background-repeat:no-repeat;filter:blur(3px);}
body[data-kevin-page="game"]::before{background-image:url('/assets/bg-aqua.png')}
body[data-kevin-page="modes"]::before,body[data-kevin-page="worlds"]::before,body[data-kevin-page="levels"]::before,body[data-kevin-page="daily"]::before,body[data-kevin-page="random"]::before,body[data-kevin-page="solo"]::before,body[data-kevin-page="flash"]::before{background-image:url('/assets/bg-acid.png')}
body[data-kevin-page="game"][data-kevin-chapter="2"]::before{background-image:url('/assets/bg-acid.png')}
body[data-kevin-page="game"][data-kevin-chapter="3"]::before{background-image:url('/assets/bg-bubblegum.png')}
#app{position:relative;z-index:1}
/* The bottom two shortcuts use the exact game-mode card structure and icon sizing. */
.homeShortcutGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.homeShortcut{aspect-ratio:1;min-height:0;justify-content:center;gap:10px}
.homeShortcut img{display:block;width:92%;height:95px;max-width:100%;object-fit:contain;margin:0 auto}
.homeShortcut strong{font-size:13px;line-height:1.25;font-weight:900}
@media(max-width:360px){.homeShortcut img{height:84px}.homeShortcut strong{font-size:11px}}

/* V0.4.4.8 — ranking layout only */
.rankTabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0}
.rankTabs .pill{min-width:0;padding:10px 4px;font-size:12px}
.rankPanel{background:#00586be8;border:1px solid #93f4e6;border-radius:19px;padding:11px 10px 14px}
.rankPanelHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.rankPanelHeading h2{font-size:20px;margin:0}.rankPanelHeading span{color:#ffe08d;font-size:12px;font-weight:900}
.rankTable{width:100%;overflow-x:auto}.rankRow{display:grid;grid-template-columns:38px minmax(92px,1.3fr) repeat(2,minmax(65px,1fr));align-items:center;gap:4px;padding:12px 5px;border-bottom:1px solid #b8edf145;font-size:12px}
.rankTable:has(.rankRow span:nth-child(5)) .rankRow{grid-template-columns:35px minmax(76px,1.2fr) repeat(3,minmax(56px,1fr))}
.rankRow span{min-width:0;overflow-wrap:anywhere}.rankRow span:nth-child(n+3){text-align:center;font-variant-numeric:tabular-nums}
.rankTableHead{font-size:10px;color:#d7f4f4;font-weight:850}.rankEmpty{min-height:135px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;padding:15px 8px;color:#fff7e7;font-size:13px}
.rankEmpty small{font-size:11px;color:#cce9e8;line-height:1.5}
.rankOwnHeading{font-size:11px;color:#ffda85;font-weight:900;margin-top:8px;padding-left:5px}.rankOwnRow{background:#0c7683;border:1px solid #fbe58c;border-radius:11px;font-weight:850;margin-top:5px}
.rankDisclaimer{font-size:11px;color:#d2eced;line-height:1.5;margin:12px 4px 0}
@media(max-width:370px){.rankRow{font-size:11px;grid-template-columns:32px minmax(73px,1.2fr) repeat(2,minmax(55px,1fr))}.rankTable:has(.rankRow span:nth-child(5)) .rankRow{grid-template-columns:30px minmax(63px,1.2fr) repeat(3,minmax(45px,1fr))}.rankTableHead{font-size:9px}}

/* V0.4.4.9 — resource dialogs: isolated close icon and two equal-width actions. */
.resourceModal{position:relative;padding-top:48px}
.resourceModal .resourceClose{position:absolute;top:9px;left:9px;width:40px;height:40px;padding:0;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;z-index:2}
.resourceModal .resourceClose img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block;filter:drop-shadow(0 2px 3px #17072955)}
.resourceModal .resourceActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;justify-content:center;align-items:stretch;margin-top:15px;width:100%}
.resourceModal .resourceActions button{box-sizing:border-box;width:100%;min-width:0;min-height:54px;white-space:normal;overflow-wrap:break-word;font-size:clamp(11px,3.2vw,13px);line-height:1.2;padding:9px 6px;display:flex;align-items:center;justify-content:center;text-align:center}
.resourceModal .resourceActions button:disabled{opacity:.48}

/* V0.4.4.10 — game exit icon and shop sound previews only. */
.topInGame .gameExit{width:43px;height:43px;min-width:43px;flex:0 0 43px;padding:0;border:0;background:transparent;overflow:visible;display:grid;place-items:center;box-shadow:none}
.topInGame .gameExit .gameExitIcon{width:46px;height:46px;max-width:none;max-height:none;object-fit:contain;display:block;pointer-events:none;filter:drop-shadow(0 2px 3px #17072955)}
.topInGame .gameExit:focus-visible{outline:3px solid #fff;outline-offset:5px;border-radius:50%}
.kevinSoundArt{height:96px;display:flex;align-items:center;justify-content:center}
.kevinSoundArt .kevinSoundIcon{width:82px;height:82px;max-width:100%;object-fit:contain}
@media(max-width:370px){.kevinSoundArt{height:86px}.kevinSoundArt .kevinSoundIcon{width:76px;height:76px}}

/* V0.4.4.13 — private, local microphone studio. Existing shop/cards unchanged. */
.personalShopGrid{margin-top:10px}
.personalShopItem{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:205px}
.personalShopItem b{max-width:100%;overflow-wrap:anywhere}
.personalShopItem .muted{text-align:center}
.personalShopItem .personalDelete{margin-top:0;box-shadow:none;background:#4d3449;border:1px solid #e68b9c;color:#fff}
.studioCover{padding:12px;align-items:center;justify-content:center}
.studioModal{position:relative;width:min(100%,460px);max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;padding:20px 14px 18px;text-align:left;scrollbar-width:thin}
.studioModal>h2{font-size:clamp(20px,5vw,25px);text-align:center;margin:4px 44px 10px}
.studioModal>p{font-size:13px;line-height:1.5;margin:6px 0 12px}
.studioModal>.studioClose,.studioConfirm .resourceClose{position:absolute;top:7px;left:7px;width:40px;height:40px;padding:0;display:grid;place-items:center;background:transparent;border:0;z-index:4}
.studioModal>.studioClose img,.studioConfirm .resourceClose img{width:100%;height:100%;object-fit:contain}
.studioProgress{margin:12px 0 13px;display:grid;gap:7px}
.studioProgress strong{text-align:right;font-variant-numeric:tabular-nums}
.studioModal>label{display:block;font-weight:800;font-size:14px;margin:10px 0 6px}
.studioName{min-height:46px}
.studioClips{display:grid;gap:8px;margin:15px 0}
.studioClip{display:grid;grid-template-columns:minmax(70px,.7fr) minmax(65px,.9fr) auto;align-items:center;gap:6px;padding:10px 8px;border:1px solid #8ce5df;background:#075567aa;border-radius:14px}
.studioClip strong{font-size:13px}
.studioClip>span{font-size:11px;color:#deeff4;line-height:1.2}
.studioClipActions{display:flex;gap:5px}
.studioClipActions button{width:auto!important;margin:0;min-width:64px;font-size:12px;padding:8px 6px;box-shadow:none;border-radius:10px}
.studioClipActions button:disabled{opacity:.45}
.studioFoot{display:grid;gap:9px;margin-top:12px}
.studioFoot p{font-size:12px;line-height:1.5;color:#f3e3eb;margin:0}
.studioFoot button{margin:0!important}
.studioConfirm{position:relative;padding-top:46px}
.studioConfirm h2{font-size:24px}
@media(max-width:380px){.studioClip{grid-template-columns:60px 65px minmax(0,1fr);gap:4px}.studioClipActions button{min-width:0;padding:7px 4px;font-size:11px}}

/* V0.4.4.14 — official sound-pack art; unavailable packs remain visibly disabled. */
.soundPackComingSoon .kevinSoundArt img{filter:grayscale(1);opacity:.55}
.soundPackComingSoon{opacity:.78}

/* V0.4.4.15 — Shop-only category filters and consistent square product cards. */
.kevinShopPage .shopFilters{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:14px 0 18px;}
.kevinShopPage .shopFilters .pill{font-size:clamp(10px,2.8vw,12px);padding:9px 11px;min-height:37px;border:2px solid #a7fff1;background:linear-gradient(180deg,#167b91,#00556e);color:#fff;box-shadow:0 3px 0 #073a50;}
.kevinShopPage .shopFilters .pill.active{background:linear-gradient(180deg,#ffe884,#ffbb44);border-color:#fff3ae;color:#323143;box-shadow:0 3px 0 #9c6027;}
.kevinShopPage .shopFilters .pill:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.kevinShopPage .shopCategoryGroup[hidden]{display:none!important;}
.kevinShopPage .shopCategoryGroup{min-width:0;}
.kevinShopPage .shopGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 16px;}
.kevinShopPage .shopGrid .shopItem{box-sizing:border-box;aspect-ratio:1 / 1;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding:7px 6px 6px;border-radius:17px;overflow:hidden;text-align:center;}
.kevinShopPage .shopGrid .shopItem>b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.1;font-size:clamp(11px,2.9vw,13px);max-width:100%;overflow-wrap:anywhere;}
.kevinShopPage .shopGrid .shopItem>.muted{font-size:clamp(9px,2.4vw,11px);line-height:1.13;max-width:100%;overflow-wrap:anywhere;}
.kevinShopPage .shopGrid .shopItem>button{width:100%;max-width:100%;box-sizing:border-box;margin-top:auto;padding:6px 3px;min-height:29px;font-size:clamp(10px,2.6vw,12px);line-height:1.1;white-space:normal;}
.kevinShopPage .shopGrid .shopItem>img{height:clamp(50px,15vw,76px);max-width:95%;flex-shrink:1;object-fit:contain;}
.kevinShopPage .shopGrid .shopSymbol,.kevinShopPage .shopGrid .kevinSoundArt,.kevinShopPage .shopGrid .shopUpgradeArt{height:clamp(51px,15vw,74px);width:100%;flex:0 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;}
.kevinShopPage .shopGrid .shopSymbol img.shopVisual,.kevinShopPage .shopGrid .kevinSoundArt .kevinSoundIcon,.kevinShopPage .shopGrid .shopUpgradeArt .upgradeArt{width:100%;height:100%;max-width:clamp(50px,16vw,79px);max-height:100%;object-fit:contain;flex:0 1 auto;}
.kevinShopPage .shopGrid .shopUpgradeItem.owned{border-color:#b7eb9b;background:#105b5e;}
.kevinShopPage .shopGrid .shopUpgradeStatus{display:block;margin:auto 0 5px;font-size:11px;font-weight:900;color:#d5f2e9;}
.kevinShopPage .shopGrid .personalShopItem{gap:2px;}
.kevinShopPage .shopGrid .personalShopItem>button.personalDelete{margin-top:1px;min-height:25px;padding:4px 2px;}
@media(max-width:360px){.kevinShopPage .shopGrid{gap:7px}.kevinShopPage .shopGrid .shopItem{padding:5px 4px 4px;gap:2px}.kevinShopPage .shopGrid .shopSymbol,.kevinShopPage .shopGrid .kevinSoundArt,.kevinShopPage .shopGrid .shopUpgradeArt{height:48px}.kevinShopPage .shopGrid .shopItem>img{height:48px}.kevinShopPage .shopGrid .shopItem>.muted{font-size:9px}}

/* V0.4.4.16 — Compact, consistently sized boutique product tiles only. */
.kevinShopPage .shopGrid .shopItem{aspect-ratio:auto;height:190px;min-height:190px;max-height:190px;padding:7px 6px 6px;gap:2px;}
.kevinShopPage .shopGrid .shopItem>img{height:72px;}
.kevinShopPage .shopGrid .shopSymbol,.kevinShopPage .shopGrid .kevinSoundArt,.kevinShopPage .shopGrid .shopUpgradeArt{height:72px;min-height:72px;flex:0 0 72px;}
.kevinShopPage .shopGrid .shopItem>b{font-size:clamp(11px,2.8vw,13px);line-height:1.08;}
.kevinShopPage .shopGrid .shopItem>.muted{line-height:1.06;}
.kevinShopPage .shopGrid .shopItem>button{min-height:28px;padding:5px 3px;}
.kevinShopPage .shopGrid .personalShopItem>button.personalDelete{min-height:24px;padding:3px 2px;}
@media(max-width:360px){.kevinShopPage .shopGrid .shopItem{height:190px;min-height:190px;max-height:190px;padding:5px 4px 4px;}.kevinShopPage .shopGrid .shopSymbol,.kevinShopPage .shopGrid .kevinSoundArt,.kevinShopPage .shopGrid .shopUpgradeArt{height:62px;min-height:62px;flex-basis:62px;}.kevinShopPage .shopGrid .shopItem>img{height:62px;}}

/* V0.4.4.21 — cosmetic trails: same renderer geometry, compact Dressing tiles. */
.kevinShopPage .traceShopIntro{margin-bottom:12px}
.kevinShopPage .trailShopGrid{margin-bottom:17px}
.kevinShopPage .trailShopGrid .trailShopItem{gap:3px}
.kevinShopPage .trailShopPreview{position:relative;width:100%;height:75px;min-height:75px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,#29364e,#21313b);border:1px solid #b0fff050;box-sizing:border-box}
.kevinShopPage .trailShopPreview svg{display:block;width:98%;height:100%;object-fit:contain;overflow:visible}
.kevinShopPage .trailShopItem .trailRarity{font-size:10px;font-weight:900;line-height:1.1;letter-spacing:.02em}
.kevinShopPage .trailShopItem .rarityC{color:#e4ecf2}
.kevinShopPage .trailShopItem .rarityR{color:#9ad5ff}
.kevinShopPage .trailShopItem .rarityE{color:#f1b3ff}
.kevinShopPage .trailShopItem .rarityL{color:#ffe09b}
@media(max-width:360px){.kevinShopPage .trailShopPreview{height:65px;min-height:65px}.kevinShopPage .trailShopItem .trailRarity{font-size:9px}}

/* V0.4.4.25 — five aligned expressions for the original playable Kevin */
.board{overflow:visible;contain:layout;}
.kevinHead{z-index:9;object-position:center;}
.classicSkinShopItem .skinProductPreview{width:100%;height:78px;min-height:78px;margin:0;padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
.classicSkinShopItem .skinProductPreview img{height:74px;width:74px;max-width:100%;object-fit:contain;}
.classicSkinModal{position:relative;max-height:min(92dvh,750px);overflow:auto;padding-top:34px;}
.classicSkinModal h2{font-size:clamp(21px,5vw,27px);margin:4px 0 5px;}
.classicSkinModal p{margin:4px 0 11px;font-size:13px;}
.classicSkinFaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:340px;margin:0 auto 12px;}
.classicSkinFace{min-width:0;display:flex;align-items:center;justify-content:center;aspect-ratio:1.32;background:linear-gradient(140deg,#225e74,#114251);border:2px solid #8feadd;border-radius:15px;overflow:hidden;}
.classicSkinFace:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 4px);justify-self:center;}
.classicSkinFace img{display:block;width:94%;height:94%;object-fit:contain;}
.classicSkinFooter{display:flex;flex-direction:column;align-items:center;gap:8px;}
.classicSkinFooter>span{color:#d8f4f0;font-size:12px;font-weight:800;}
.classicSkinFooter .cta{width:100%;max-width:290px;}
@media(max-width:360px){.classicSkinFaces{gap:6px}.classicSkinFace{aspect-ratio:1.42}}

/* V0.4.4.26 — same isolated close button as the resource dialogs. */
.classicSkinModal > .resourceClose{position:absolute;top:9px;left:9px;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;max-height:40px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;z-index:5;box-shadow:none;overflow:visible;}
.classicSkinModal > .resourceClose img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #17072955);}

/* V0.4.4.29 — previews for sound packs, matching the skin modal. */
.kevinShopPage .shopGrid .classicSkinShopItem[data-skin-preview]{cursor:pointer;}
.kevinShopPage .shopGrid .soundPackPreviewItem{cursor:pointer;}
.soundPackPreviewItem:focus-visible{outline:3px solid #b8fff0;outline-offset:3px;}
.soundPackModal{max-height:min(92dvh,760px);}
.soundPackModal .soundPreviewArt{height:88px;margin:0 auto 5px;display:flex;align-items:center;justify-content:center;}
.soundPackModal .soundPreviewArt img{height:84px;width:84px;max-width:84px;object-fit:contain;}
.soundPreviewGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:340px;margin:10px auto 13px;}
.soundPreviewClip{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:9px 6px;border:2px solid #8feadd;border-radius:13px;background:linear-gradient(140deg,#226b7a,#12445a);color:#fff;font-size:14px;font-weight:800;cursor:pointer;touch-action:manipulation;}
.soundPreviewClip:active{background:#2095a2;transform:scale(.98)}
.soundPreviewClip:focus-visible{outline:3px solid #fff4b5;outline-offset:2px;}
.soundPreviewClip span{color:#9bffe7;font-size:20px;}
.soundPackModal .soundPreviewMuted{font-size:12px;margin:9px 0 0;}


/* Badges secrets — profile entry and mystery collection. */
.secretBadgeAccess{
 width:100%;min-height:76px;display:flex;align-items:center;justify-content:space-between;
 gap:13px;padding:14px 17px;color:#fff;font-size:16px;font-weight:900;text-align:left;
 border:2px solid #94eee8;border-radius:19px;
 background:linear-gradient(130deg,#147b88,#075569 78%);box-shadow:0 5px 0 #073b4f;
 cursor:pointer;
}
.secretBadgeAccess span:nth-child(2){flex:1}
.secretBadgeAccessIcon{
 width:43px;height:43px;border-radius:13px;display:grid;place-items:center;
 color:#fff3b5;background:linear-gradient(145deg,#b98434,#704276);font-size:25px;
 border:2px solid #ffdf83;box-shadow:inset 0 2px 7px #ffffff55;
}
.secretBadgeAccess span:last-child{font-size:25px;color:#bcfff4}
.secretBadgesPage .subnav{gap:12px}
.secretBadgesPage .subnav h2{font-size:clamp(19px,4.4vw,27px);line-height:1.12}
.secretBadgesPage>.muted{margin:12px 0 18px}
.secretBadgeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 22px}
.secretBadgeTile{
 box-sizing:border-box;min-width:0;aspect-ratio:1/1;border-radius:19px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
 overflow:hidden;position:relative;padding:10px;
}
.secretBadgeTile.earned{
 border:2px solid #91ece0;background:linear-gradient(145deg,#196b7b,#0c4558);
 color:white;cursor:pointer;box-shadow:0 4px 0 #062f42;
}
.secretBadgeTile.earned img{width:100%;height:calc(100% - 25px);object-fit:contain;min-height:0}
.secretBadgeTileName{font-size:11px;line-height:1.13;font-weight:900;text-align:center;
 max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.secretBadgeTile.locked{
 border:2px dashed #6fa5ab;background:linear-gradient(145deg,#183e50,#102c3c);
 box-shadow:inset 0 3px 12px #061b2d6b;
}
.secretBadgeUnknown{
 display:grid;place-items:center;width:60px;height:60px;border-radius:18px;
 background:#305462;border:2px solid #517788;color:#a0b6c0;font-size:42px;font-weight:900;
 filter:grayscale(1);
}
.secretBadgeFallback{
 display:grid;place-items:center;width:min(75%,135px);aspect-ratio:1/1;border-radius:20px;
 font-size:76px;color:#ffdb7e;background:linear-gradient(145deg,#cf7f2e,#6a468f);
 border:5px solid #f6c45d;text-shadow:0 4px 0 #773b32;box-shadow:inset 0 2px 6px #ffffff88;
}
.secretBadgeModal{padding-top:53px;max-width:430px}
.secretBadgeModal .secretBadgeDetailArt{height:190px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center}
.secretBadgeDetailArt img{height:100%;width:100%;object-fit:contain}
.secretBadgeModal .secretBadgeFallback{width:150px;height:150px;font-size:90px}
.secretBadgeModal h2{margin:3px 0 12px}
.secretBadgeModal p{margin:9px 0;line-height:1.4}
.secretBadgeModal .secretBadgeDate{font-size:12px;opacity:.73}
.secretBadgeModal>.resourceClose{position:absolute;top:9px;left:9px;width:40px;height:40px;
 min-width:40px;min-height:40px;max-width:40px;max-height:40px;padding:0;margin:0;border:0;
 border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;z-index:5;box-shadow:none;overflow:visible}
.secretBadgeModal>.resourceClose img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:375px){.secretBadgeGrid{gap:9px}.secretBadgeTile{padding:7px;border-radius:15px}.secretBadgeTileName{font-size:10px}}

/* V0.4.4.31 — brief one-shot glossy badge reveal, without affecting any other modals. */
.secretBadgeModal .secretBadgeDetailArt{position:relative;isolation:isolate;perspective:720px;overflow:visible;}
.secretBadgeModal .secretBadgeDetailArt>img{
 transform-origin:center center;backface-visibility:hidden;
 animation:secretBadgeTilt .86s cubic-bezier(.2,.7,.25,1) 1 both;
 filter:drop-shadow(0 6px 10px #03192366);
}
.secretBadgeModal .secretBadgeDetailArt:has(>img)::after{
 content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
 border-radius:22px;background:linear-gradient(112deg, transparent 28%,rgba(255,255,255,0) 39%,rgba(255,255,255,.48) 49%,rgba(255,255,255,0) 57%,transparent 73%);
 background-size:250% 100%;background-position:150% 0;
 mix-blend-mode:screen;opacity:0;animation:secretBadgeGlint .86s ease-out 1 both;
}
@keyframes secretBadgeTilt{
 0%{transform:perspective(720px) rotateY(-12deg) rotateZ(-1.5deg) scale(.975)}
 43%{transform:perspective(720px) rotateY(9deg) rotateZ(1deg) scale(1.012)}
 75%{transform:perspective(720px) rotateY(-3deg) rotateZ(-.4deg) scale(1)}
 100%{transform:perspective(720px) rotateY(0) rotateZ(0) scale(1)}
}
@keyframes secretBadgeGlint{0%{opacity:0;background-position:150% 0}15%{opacity:.65}65%{opacity:.65}90%,100%{opacity:0;background-position:-70% 0}}
@media (prefers-reduced-motion:reduce){
 .secretBadgeModal .secretBadgeDetailArt>img,.secretBadgeModal .secretBadgeDetailArt:has(>img)::after{animation:none!important}
}

/* V0.4.4.35 — comfortable separation between statistics and badges. */
.secretBadgeAccess{margin-top:24px;}
/* Keep the profile avatar fixed at the right edge; let the left logo compress on narrow screens. */
.top{min-width:0;}
.top .topLogo{min-width:0;flex:0 1 auto;overflow:hidden;display:flex;align-items:center;}
.top .brand{width:clamp(76px,27vw,148px);max-width:100%;flex:0 1 auto;}
.topActions{margin-left:auto;flex:0 0 auto;min-width:0;}
.topActions .hintCurrency,.topActions .currency{flex:0 0 auto;}
.topActions .avatar{flex:0 0 43px;margin-left:0;}
@media(max-width:370px){
 .top{gap:4px;}
 .topActions{gap:4px;}
 .top .brand{width:clamp(70px,23vw,98px);}
 .topActions .currency{padding:5px 6px;font-size:12px;}
 .topActions .hintCurrency{padding:3px 4px;font-size:13px;min-width:0;}
 .topActions .avatar{flex-basis:38px;}
}


/* Patch ciblé — icônes des quatre modes, alignées sans modifier les tuiles. */
.modeGrid .modeCard {
  box-sizing: border-box;
  height: 154px;
  min-height: 154px;
  padding: 8px 5px 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 0;
}
.modeGrid .modeCard > img {
  display: block;
  width: 100%;
  height: 112px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  align-self: center;
  justify-self: center;
}
.modeGrid .modeCard > strong {
  align-self: end;
  justify-self: center;
  margin: 0;
  line-height: 1.2;
}

.flashEndModal{position:relative;overflow:hidden}
.flashEndModal img{position:relative;z-index:1}
.flashEndModal h2,.flashEndModal p,.flashEndModal .buttonRow{position:relative;z-index:1}
.flashConfetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.flashConfettiPiece{position:absolute;top:-14%;left:var(--x);width:12px;height:22px;border-radius:10px;background:linear-gradient(180deg,#ff9aa1,#ff4b5f 55%,#c90f29);box-shadow:0 2px 0 #ffffff66 inset,0 0 10px #ff5b6b44;opacity:.96;animation:flashConfettiFall var(--dur) linear infinite;animation-delay:var(--delay);transform:translateX(-50%) rotate(0deg)}
.flashConfettiPiece.piece-1{height:12px;border-radius:999px}
.flashConfettiPiece.piece-2{width:14px;height:14px;border-radius:4px;transform:translateX(-50%) rotate(22deg)}
.flashConfettiPiece.piece-3{width:10px;height:24px;border-radius:5px}
.flashConfettiPiece.piece-4{width:16px;height:10px;border-radius:999px}
.flashConfettiPiece.piece-5{width:12px;height:12px;border-radius:3px;transform:translateX(-50%) rotate(45deg)}
@keyframes flashConfettiFall{0%{transform:translate(-50%,-12%) rotate(0deg)}100%{transform:translate(calc(-50% + 16px),122%) rotate(540deg)}}
