/* Quiet night palette: keep readable foregrounds separate from scenery. */
#menu,#stageSelect{background-image:linear-gradient(#10162b88,#10162b99),url('Asset/world/arcade-neon.jpg');background-blend-mode:normal;}
.world-scenery-frame{filter:saturate(.64) brightness(.66);}
.opening-image{filter:saturate(.72) brightness(.8);}
.home-menu-icon,.home-extra-icon{filter:saturate(.72) brightness(.9);}
#menu #charimg{filter:saturate(.9) drop-shadow(0 4px 3px #0006);}
#menu .home-title-art{filter:saturate(.86) brightness(.93) drop-shadow(0 3px 4px #080b32);}
.art-panel-ready #menu #stagecol,.art-panel-ready #menu #charcol,
.art-panel-ready .panel-shell,.art-panel-ready .world-paper,
.art-panel-ready #result-details .result-sheet{border-image:none!important;border:1px solid #5b6987!important;background:#141a30f5!important;box-shadow:0 5px 16px #05091466;}
.art-panel-ready #menu #continue-btn,.art-panel-ready #menu .home-nav button,
.art-panel-ready #menu #home-footer button,.art-panel-ready #coinsdisp,
.art-panel-ready #avatar-btn>span,.art-panel-ready #pause-panel button,
.art-panel-ready #clearov button,.art-panel-ready #panel-close,
.art-panel-ready #effects-setting,.art-panel-ready #loginclaim,
.art-panel-ready #world-dialog:not(.opening-mode) button,
.art-panel-ready #world-dialog:not(.opening-mode) a,
.art-panel-ready #result-details button,.art-panel-ready #backbtn,.art-panel-ready #stageback{
  border-image:none!important;border:1px solid #61708e!important;background:#1c263e!important;box-shadow:none!important;
}
#menu #continue-btn{border-color:#78a7b9!important;}
#menu .world-plaque,#menu #charname,#stageSelect h2,.panel-shell h2,.world-paper h2,
#menu .home-nav button,#menu #home-footer button,#menu #avatar-btn>span{text-shadow:none;}
#stageSelect .tile,#skins .skinbtn,.world-paper{box-shadow:none;}
.home-link-list a{border-color:#61708e;background:#1c263e;}
#ui-panel.social-panel .panel-shell{width:min(920px,96%);padding:18px 22px;}
.social-panel .panel-shell header{margin-bottom:10px;}
.social-intro{color:#f5d4e7;text-align:center;font-size:15px;line-height:1.6;margin:0 0 14px;}.social-intro>span{display:block;font-size:11px;color:#b9cce0;}
.social-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.social-layout section{min-width:0;border:1px solid #61708e;border-radius:18px;padding:13px;background:#1b253d;}
.social-layout h3{font-size:16px;text-align:center;margin:0 0 12px;padding:7px;border-radius:20px;color:#d4edf1;background:#2b4053;}
.social-cards{display:grid;gap:10px;}
.social-card{display:flex;align-items:center;gap:12px;padding:13px 12px;min-height:76px;border:1px solid #6f96a4;border-radius:15px;background:#23354a;color:#fff;text-decoration:none;text-align:left;}
.social-card img{width:44px;height:44px;object-fit:contain;border-radius:12px;flex-shrink:0;}
.social-card>span:not(.social-arrow){flex:1;min-width:0;}.social-card strong{display:block;font-size:14px;}.social-card small{display:block;font-size:10px;color:#c8d6e6;margin-top:6px;line-height:1.5;}.social-arrow{color:#e6c1e0;font-size:20px;}
.social-instagram{border-color:#ac7f9f;background:#342d47;}.social-x{border-color:#7789a3;background:#252e41;}
.social-card:hover,.social-card:focus-visible{outline:2px solid #c0e5e5;outline-offset:2px;}
.social-stamps{display:flex;flex-direction:column;align-items:stretch;text-align:center;}.social-stamps h3{color:#f0d4ec;background:#43334e;}.social-stamps p{font-size:12px;color:#dbcee6;margin:0 0 12px;}
.social-stamp-art{flex:1;display:flex;align-items:center;min-height:120px;background:linear-gradient(135deg,#f0eaf7,#e1edf1);border-radius:16px;padding:12px 8px;}.social-stamp-art img{display:block;width:100%;height:auto;}
.social-stamps>small{font-size:10px;color:#b8c9dc;margin-top:8px;}.social-line-pending{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#274b46;border:1px solid #73aa94;border-radius:24px;padding:12px 14px;color:#daeee5;font-size:13px;margin-top:10px;}.social-line-pending b{font-size:11px;border-radius:12px;background:#dbe9da;color:#344c43;padding:4px 10px;}
.social-note{font-size:10px;text-align:center;color:#afbed3;margin:12px 0 0;}
@media(max-height:450px){#ui-panel.social-panel .panel-shell{padding:12px 18px;}.social-layout{gap:12px;}.social-layout section{padding:9px;}.social-layout h3{font-size:13px;margin-bottom:8px;padding:5px;}.social-card{min-height:60px;padding:8px;gap:9px;}.social-card img{width:34px;height:34px;}.social-card strong{font-size:12px;}.social-card small{margin-top:3px;font-size:9px;}.social-cards{gap:7px;}.social-intro{margin-bottom:8px;font-size:13px;}.social-stamp-art{min-height:85px;}.social-line-pending{padding:7px 12px;}.social-note{margin-top:8px;}}
@media(max-width:540px){.social-layout{grid-template-columns:1fr;}}
@media(max-height:450px){.social-panel .panel-shell header{margin-bottom:6px;}.social-panel .panel-shell h2{font-size:18px;margin:0;}.social-panel #panel-close{padding:8px 14px;}.social-intro{line-height:1.4;margin:0 0 8px;}.social-intro>span{display:none;}.social-card{min-height:48px;padding:6px 8px;}.social-card img{width:30px;height:30px;}.social-stamps p{margin-bottom:6px;font-size:11px;}.social-stamp-art{min-height:60px;padding:8px;}.social-stamps>small{margin-top:5px;font-size:9px;}.social-line-pending{margin-top:6px;padding:5px 10px;font-size:11px;}}
#skins{display:grid;grid-template-columns:1fr;gap:10px;}
#skins .skinbtn{width:100%;min-width:0;min-height:104px;height:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 14px;gap:16px;background:#1c263e;color:#f2f5ff;border:2px solid #61708e;border-radius:12px;box-shadow:none;text-align:left;}
#skins .skinbtn.sel{background:#213d43;color:#fff;border-color:#a8daca;box-shadow:none;}
#skins .skinbtn.lock{background:#1b2337;color:#dbe5f4;opacity:1;}
#skins .skinbtn.lock::after{display:none;}
#skins .skinbtn img{width:64px;height:64px;flex-shrink:0;}
#skins .skinbtn.lock img{filter:brightness(.6) saturate(.4);}
#skins .skin-copy{min-width:0;display:grid;gap:5px;}
#skins .skin-copy strong{font-size:15px;color:#fff;}
#skins .skin-ability{font-size:13px;color:#bce4ec;}
#skins .skin-hint{font-size:11px;line-height:1.6;color:#c4d1e1;}
#skins .skin-status{font-size:11px;color:#e9d59b;}
#skins .skinbtn.sel .skin-status{color:#c3f1d7;}
#skins .skinbtn:focus-visible{outline:2px solid #fff;outline-offset:3px;}
.world-profiles .profile-silhouette{filter:brightness(0) opacity(.45);}
.profile-locked{font-size:13px;line-height:1.7;}.profile-locked strong{color:#d4e2f2;}.profile-locked small{display:block;color:#b6c8db;font-size:11px;}.profile-locked progress{width:100%;height:9px;accent-color:#8fc6b3;}
#profile-unlock,#profile-select{padding:10px 16px;margin:12px 0;border-radius:9px;background:#25445d;color:#fff;border:1px solid #9cb8c9;font-size:12px;}
.audio-settings{margin:18px 0;}.volume-setting{display:grid;grid-template-columns:1fr auto;gap:10px;margin:16px 0;color:#eef3ff;}.volume-setting label{font-size:14px;}.volume-setting output{font-size:13px;color:#bddce5;}.volume-setting input{grid-column:1/-1;width:100%;height:28px;accent-color:#8fc6b3;cursor:pointer;}.settings-note{font-size:11px;line-height:1.7;color:#bbcadd;}.settings-link{display:block;padding:14px;border:1px solid #61708e;border-radius:10px;background:#1c263e;color:#eef3ff;text-decoration:none;font-size:14px;}.settings-link:focus-visible{outline:2px solid #b9e4ed;outline-offset:3px;}
#mission-popup{position:absolute;z-index:45;top:76px;left:16px;width:min(300px,45%);box-sizing:border-box;padding:10px 14px;border:1px solid #8ab9a7;border-radius:12px;background:#162b30f5;box-shadow:0 3px 12px #0004;pointer-events:none;text-align:left;}
#mission-popup strong{display:block;color:#bce6ce;font-size:13px;margin-bottom:5px;}
#mission-popup span{display:block;color:#f5f7fb;font-size:12px;line-height:1.5;}
#mission-popup small{display:block;color:#f4d898;font-size:11px;margin-top:5px;}
@media(max-height:380px){#mission-popup{top:64px;padding:7px 10px;width:260px;max-width:43%;}#mission-popup strong{font-size:11px;margin-bottom:3px;}#mission-popup span{font-size:11px;}}
.game-bar-list{display:grid;gap:10px;}
.game-bar{display:flex;align-items:center;gap:14px;min-height:76px;padding:10px 14px;background:#1c263e;border:1px solid #61708e;border-radius:12px;color:#f2f5ff;text-decoration:none;text-align:left;}
.game-bar:hover,.game-bar:focus-visible{background:#293953;border-color:#a4d7e5;outline:2px solid #a4d7e5;outline-offset:2px;}
.game-bar img{width:56px;height:56px;flex-shrink:0;border-radius:12px;object-fit:cover;}
.game-bar-copy{flex:1;min-width:0;display:grid;gap:5px;}
.game-bar-copy strong{font-size:16px;overflow-wrap:anywhere;}.game-bar-copy small{font-size:11px;color:#bbcadd;}
.game-bar-cta{font-size:11px;color:#b9e4ed;white-space:nowrap;}
@media(max-width:600px){.game-bar{gap:10px;padding:9px;}.game-bar-copy strong{font-size:13px;}.game-bar-cta{font-size:10px;}}
button:focus-visible,a:focus-visible{outline:2px solid #b9e4ed!important;outline-offset:3px;}
@media(hover:hover){#menu #home-footer button:hover,#menu .home-nav button:hover{border-color:#a3dae5!important;background:#263750!important;}}

/* Home: soft pools of shade, one primary action and a shared icon dock. */
#app.art-panel-ready #menu #charcol,#app.art-panel-ready #menu #stagecol,
.art-panel-ready #menu #charcol,.art-panel-ready #menu #stagecol{
  border-image:none!important;border:0!important;box-shadow:none!important;border-radius:0;
}
.art-panel-ready #menu #charcol{background:radial-gradient(ellipse at 50% 52%,#10172ef5 0%,#10172ed9 42%,#10172e66 64%,transparent 74%)!important;padding:12px 16px;}
.art-panel-ready #menu #stagecol{background:transparent!important;padding:10px 0;}
.art-panel-ready #menu #continue-btn{border-image:none!important;border:0!important;border-radius:40px!important;background:linear-gradient(115deg,#244759f5,#283450f5)!important;box-shadow:0 6px 18px #03081866,inset 0 1px 0 #b6e8eb55!important;padding-left:24px;}
.art-panel-ready #menu .home-nav button{border-image:none!important;border:0!important;border-radius:25px!important;background:#152239c9!important;box-shadow:none!important;}
.art-panel-ready #menu #home-footer{background:linear-gradient(180deg,#121d32d9,#0d1528ef);border:0;border-radius:30px;padding:5px 8px;box-shadow:0 5px 18px #02061555;}
.art-panel-ready #menu #home-footer button{border-image:none!important;border:0!important;border-radius:20px!important;background:transparent!important;box-shadow:none!important;color:#edf5ff!important;text-shadow:0 2px 3px #050a17;}
.art-panel-ready #menu #home-footer button:hover,.art-panel-ready #menu .home-nav button:hover{background:#32455b99!important;}
.art-panel-ready #menu #avatar-btn>span{border-image:none!important;border:0!important;border-radius:20px!important;background:#14243bc9!important;box-shadow:none!important;}
.art-panel-ready #menu #coinsdisp{border-image:none!important;border:0!important;border-radius:24px!important;background:#142139df!important;box-shadow:none!important;}
#menu #charname,#menu #skineffect,#menu #cleared,#menu .world-plaque{color:#e6eff9;text-shadow:0 2px 4px #020815,0 0 10px #020815;}
/* Landscape menu layouts use the actual playfield size, including rotated phones. */
#app{container-type:size;}
@container (max-height:500px) and (min-width:550px){
 #ui-panel,#world-dialog{padding:10px;}
 #ui-panel .panel-shell,#ui-panel.social-panel .panel-shell{width:min(940px,98%);padding:12px 16px;}
 #ui-panel .panel-shell header{margin-bottom:8px;}
 #ui-panel .panel-shell h2{font-size:18px;margin:0;}
 #panel-close{padding:8px 16px;min-height:36px;}
 #skins{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
 #skins .skinbtn{flex-direction:column;padding:10px 7px;gap:6px;text-align:center;min-height:0;align-items:center;}
 #skins .skinbtn img{width:52px;height:52px;}
 #skins .skin-copy{gap:7px;}
 #skins .skin-copy strong{font-size:13px;}
 #skins .skin-ability{font-size:12px;line-height:1.5;}
 #skins .skin-hint{font-size:11px;line-height:1.5;}
 #skins .skin-status{font-size:10px;line-height:1.5;}
 .game-bar-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 .game-bar{min-height:52px;padding:7px 10px;gap:10px;}
 .game-bar img{width:38px;height:38px;border-radius:9px;}
 .game-bar-copy strong{font-size:12px;}.game-bar-copy small{font-size:10px;}.game-bar-cta{font-size:10px;}


 .world-profiles,.world-album{padding:12px 16px;}
 .world-paper header{margin-bottom:8px;}.world-paper h2{font-size:19px;margin:3px 0;}
 .world-profile-tabs{margin:6px 0;gap:7px;}.world-profile-tabs img{width:32px;height:32px;}
 .world-profile-body{grid-template-columns:20% 80%;}.world-profile-body>img{max-height:125px;}
 .world-profile-body p{font-size:12px;line-height:1.55;margin:6px 0;}
 .profile-locked{font-size:12px;line-height:1.5;}.profile-locked p br:first-child{display:none;}
 .profile-locked small{font-size:10px;}
 #profile-unlock,#profile-select{margin:6px 0;padding:8px 12px;}
 #world-dialog .world-profile-body nav a{font-size:10px;padding:7px 10px;}
 .memory-tabs{margin:6px 0 8px;}.memory-tabs button{padding:7px 10px;font-size:11px;}
 .world-album-body{grid-template-columns:48% 52%;margin-top:6px;}
 .world-album-body>img,.world-album-body>.memory-photo{max-height:190px;object-fit:contain;}
 .world-album-body p{font-size:12px;line-height:1.6;margin:6px 0;}.world-actions{margin-top:8px;}
 .social-layout{grid-template-columns:1fr 1fr;}
 .social-intro{margin:0 0 7px;font-size:12px;}.social-intro>span{display:none;}
 .social-layout section{padding:8px;}.social-layout h3{padding:5px;margin-bottom:7px;font-size:13px;}
 .social-card{min-height:48px;padding:6px 8px;}.social-card img{width:30px;height:30px;}.social-card strong{font-size:12px;}
 .social-stamp-art{min-height:60px;padding:8px;}.social-stamp-art img{max-height:100px;object-fit:contain;}
 .social-stamps p{font-size:11px;margin:0 0 5px;}.social-stamps>small{font-size:9px;margin-top:4px;}
 .social-line-pending{margin-top:5px;padding:5px 10px;}.social-note{margin:5px 0 0;}
}
@container (max-height:500px) and (min-width:550px){
 #world-dialog .world-profile-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;}
 .world-profile-tabs img{width:26px;height:26px;margin:0;}
 .world-profile-body nav{gap:5px;}
 #world-dialog .world-profile-body nav a{padding:5px 9px;}
 .social-panel .social-stamps p{margin-bottom:4px;}
 .social-panel .social-stamp-art img{max-height:78px;}
 .social-panel .social-card{min-height:44px;padding:5px 8px;}
 .social-panel .social-cards{gap:6px;}
 .social-panel .social-intro{line-height:1.3;}
 .social-panel .social-layout{gap:12px;}
 .social-panel .social-layout h3{margin-bottom:5px;}
 .social-panel .social-note{line-height:1.3;}
}
@container (max-height:500px) and (min-width:550px){
 #ui-panel.social-panel .panel-shell,.world-profiles{padding-top:8px;padding-bottom:8px;}
}
