body[data-scene=water]{--panel:#112f40ef;--button:#235269;--button-hover:#34748c;--accent:#abefff;--edge:#69b8cb;--mint:#b2e4e8;--cream:#effaff;--muted:#c0dbe5;--shade:#102733}
body[data-scene=ember]{--panel:#38201cef;--button:#63382b;--button-hover:#87523b;--accent:#ffc17c;--edge:#c88854;--mint:#edc18f;--cream:#fff0dc;--muted:#e6c8b1;--shade:#281b1a}
.game-head{gap:8px}.game-head>div{min-width:0}.game-head .eyebrow{display:none}
#arcade-title{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;line-height:1}
#arcade-title .pac-wordmark{font:900 italic 23px/1 'Arial Black',Impact,sans-serif;letter-spacing:-1px;color:#ffdc34;-webkit-text-stroke:1px #ffdf39;text-shadow:2px 2px #ad6518,3px 3px #15152e}
#arcade-title .mini-wordmark{font:bold 8px/1 monospace;letter-spacing:5px;color:#ffe96b}
#rankings{font-size:9px;padding:8px 6px;white-space:nowrap;margin-left:auto}
#sound{position:relative;width:44px;min-width:44px;height:24px;border-radius:15px;padding:0 19px 0 3px;box-shadow:none;font-size:12px;background:var(--shade)}
#sound:after{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff2c2;transition:transform .2s}#sound[aria-pressed=true]{background:#307f61}#sound[aria-pressed=true]:after{transform:translateX(19px)}
.controls{min-height:112px;justify-content:center;gap:18px}#joystick{width:112px;height:112px}#joystick span{width:44px;height:44px}#joystick i{font-size:96px}.hint{flex:0 1 auto}.controls #pause{margin-left:auto}
.button-visitor{position:absolute;left:0;top:0;width:80px;height:80px;pointer-events:none;image-rendering:pixelated;z-index:3;will-change:transform}.links a{transform:none!important}
#toon-invite{position:fixed;z-index:20;left:50%;bottom:35px;transform:translateX(-50%);width:min(440px,calc(100vw - 28px));display:flex;align-items:center;gap:12px;padding:12px 32px 12px 12px;background:var(--panel);border:2px solid var(--edge);box-shadow:5px 5px #10171dbb;animation:invite-in .4s ease-out}
#toon-invite[hidden]{display:none}#toon-invite img{width:86px;height:129px;object-fit:contain;image-rendering:pixelated}#toon-invite strong{font-size:15px;color:var(--accent)}#toon-invite p{font:13px/1.4 system-ui;margin:8px 0 12px}#toon-invite a{font:bold 11px monospace;color:var(--accent)}#invite-close{position:absolute;top:4px;right:4px;padding:5px;box-shadow:none}
@keyframes invite-in{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}
@media(max-width:650px) and (orientation:portrait){.controls{min-height:94px;gap:14px}#joystick{width:94px;height:94px}#joystick span{width:38px;height:38px}#joystick i{font-size:80px}#arcade-title .pac-wordmark{font-size:20px}#rankings{font-size:8px;padding:7px 5px}.game-head{gap:5px}.links{margin-top:14px}.button-visitor{width:64px;height:64px}}
@media(max-height:620px){.controls{min-height:78px}#joystick{width:78px;height:78px}#joystick span{width:32px;height:32px}#joystick i{font-size:66px}#arcade-title .pac-wordmark{font-size:17px}.arcade{gap:4px}.screen #overlay p,.screen .pac-symbol{display:none}#scene-window{height:40px}.scene-bar{margin-bottom:4px}.links{margin-top:10px}#rankings{font-size:7px;padding:6px 3px}}
@media(max-height:450px) and (orientation:landscape){.controls{min-height:60px}#joystick{width:60px;height:60px}#joystick span{width:26px;height:26px}#joystick i{font-size:50px}}
@media(prefers-reduced-motion:reduce){.button-visitor{display:none}#toon-invite{animation:none}}

@media(max-width:650px) and (orientation:portrait){.links{margin-top:25px}}


.links{gap:48px;margin-top:50px}.button-visitor{width:128px;height:128px}.profile .label{margin-bottom:0}
@media(max-width:650px) and (orientation:portrait){.links{gap:7px;margin-top:44px}.button-visitor{width:128px;height:128px}}
@media(min-width:651px) and (max-height:650px){.links{gap:34px;margin-top:36px}.profile .identity .eyebrow{display:none}.profile #scene-window{height:48px}.profile .label{display:none}}
@media(max-height:450px) and (orientation:landscape){.links{gap:6px;margin-top:25px}.button-visitor{opacity:.9}}


@media(max-width:650px) and (orientation:portrait){
 .shell{padding:5px 8px max(4px,env(safe-area-inset-bottom));gap:4px;grid-template-rows:18px minmax(0,1fr) 12px}
 .content{gap:7px}.profile{display:grid;grid-template-columns:1fr 110px;gap:3px 8px;padding:6px 8px}
 .profile .identity{grid-column:1;grid-row:1;gap:7px}.profile .portrait{width:28px;height:28px}.profile .identity h1{font-size:20px}.profile .identity h1 span{font-size:6px;margin-top:3px}
 .profile #scene-window{grid-column:2;grid-row:1;width:110px;height:30px;margin:0;background-position:center 40%}.profile #scene-window span{font-size:5px;padding:2px;left:2px;bottom:2px}
 .profile .scene-bar{grid-column:1/-1;grid-row:2;margin:0;gap:4px}.profile .scene-bar strong{font-size:8px}.profile .scene-bar small{display:none}.profile .scene-bar button{height:22px;min-width:25px;font-size:13px}
 .profile .links{grid-column:1/-1;grid-row:3;margin-top:39px;gap:5px}.profile .links a{padding:5px;gap:5px;min-height:32px}.profile .links strong{font-size:9px}.profile .links small{display:none}.profile .links svg{width:19px;height:19px}
 .arcade{padding:6px;gap:4px}.game-head{min-height:27px}.scorebar{font-size:8px}.controls{min-height:88px;gap:10px}#joystick{width:88px;height:88px}#joystick span{width:36px;height:36px}#joystick i{font-size:74px}.hint{font-size:7px}.controls #pause{padding:9px}
 .arcade-playing .profile #scene-window,.arcade-playing .profile .scene-bar{display:none}.arcade-playing .profile .identity{grid-column:1/-1}.arcade-playing .profile .links{margin-top:2px;grid-row:2}
}


.eyebrow,.label,.signature{font-size:11px}.scene-bar strong{font-size:12px}.scene-bar small{font-size:11px}.hint,.hint span{font-size:10px}footer,footer span:first-child{font-size:10px;letter-spacing:0}.scorebar{font-size:12px}#rankings{font-size:11px}.links small{font-size:12px}
@media(max-width:650px) and (orientation:portrait){
 .profile .scene-bar strong{font-size:11px}.profile .links strong{font-size:12px}.profile .identity h1 span{font-size:9px;letter-spacing:2px}.profile #scene-window span{font-size:9px;letter-spacing:0}.scorebar{font-size:11px}.hint,.hint span{font-size:10px;line-height:1.4}#rankings{font-size:10px}.topline{font-size:10px}footer,footer span:first-child{font-size:9px}#arcade-title .mini-wordmark{font-size:10px;letter-spacing:3px}
}
#end-save{background:#ffe17e;color:#18252a;border:2px solid #fff2ba;padding:11px 14px;margin:8px 0;font-size:14px}#end-save[hidden],#save-note[hidden]{display:none}#overlay #save-note{display:block;font:12px/1.3 system-ui;margin:4px 0 10px;max-width:270px}#overlay #save-note[hidden]{display:none}#end-save:disabled{opacity:.65}#overlay #end-save:not([hidden])~#play{font-size:11px;padding:8px 12px}#overlay:has(#end-save:not([hidden])) .pac-symbol{display:none}
