:root{--scene-image:url('assets/scenes/hyrule-sunset.png');--panel:#30261eef;--button:#58442c;--button-hover:#755c33;--accent:#ffe295;--edge:#c5a263;--mint:#e7cc9c;--cream:#fff2d2;--muted:#e4d5ba;--shade:#251c17}
body[data-scene=forest]{--panel:#102e23ed;--button:#244d35;--button-hover:#3b6d47;--accent:#d5ef95;--edge:#88b385;--mint:#bce2b1;--cream:#f0f9da;--muted:#d1dfc5;--shade:#0b251e}
body[data-scene=moon]{--panel:#24213eeb;--button:#40395f;--button-hover:#5b507d;--accent:#d9ccff;--edge:#a897ca;--mint:#cfbdeb;--cream:#f5edff;--muted:#d6cfe7;--shade:#18182c}
body{background:#17252a;isolation:isolate}body:before{display:none}.world{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.world-layer{position:absolute;inset:0;background-image:var(--scene-image);background-size:cover;background-position:center;opacity:0;transition:opacity 1.8s ease}.world-layer.shown{opacity:1}.world:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0002,transparent 40%,#0001)}
.panel{background:var(--panel);border-color:var(--edge);box-shadow:0 0 0 4px #10191c66,6px 6px 0 #061a2250;transition:background-color 1.6s,border-color 1.6s}.profile{position:relative;padding:20px;overflow:visible}.links a,button,#nickname{background:var(--button);border-color:var(--edge);color:var(--cream);transition:background-color .25s,transform .18s,border-color 1.5s}.links a:hover,button:hover{background:var(--button-hover)}.links small,.tagline em,.signature,.hint,.hint span,footer,#audio-state,.scorebar{color:var(--muted)}h1 span,h2 span,.eyebrow,.label{color:var(--mint)}h2,.scorebar b,.divider,.links b{color:var(--accent)}#play{background:var(--accent);color:var(--shade)}.screen,dialog{border-color:var(--edge)}dialog{background:var(--panel)}#sound[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.topline,footer{text-shadow:0 1px 3px #000,0 0 8px #000}.topline>span:not(.hearts){color:#fff3d6}
#scene-window{display:block;position:relative;width:100%;height:110px;margin:0 0 9px;padding:0;overflow:hidden;background-image:var(--scene-image);background-size:cover;background-position:center 38%;border:1px solid var(--edge);box-shadow:inset 0 -28px 24px -15px #000c;cursor:zoom-in}#scene-window:hover{background-image:var(--scene-image);transform:none}#scene-window span{position:absolute;left:9px;bottom:7px;font-size:8px;letter-spacing:1px;color:#fff;text-shadow:0 1px 3px #000;background:#102025aa;padding:4px 6px}.scene-bar{display:flex;align-items:center;gap:5px;margin-bottom:18px;position:relative;z-index:2}.scene-bar>div{flex:1;min-width:0}.scene-bar strong{font-size:11px;color:var(--cream)}.scene-bar small{display:block;font-size:8px;margin-top:3px;color:var(--mint)}.scene-bar button{padding:3px 7px;font-size:16px;min-width:29px;height:29px;box-shadow:none}.identity{position:relative;z-index:2}.profile .tagline{margin:18px 0 12px}.profile .divider{margin:12px 0}.signature{margin-top:16px}.links a{position:relative;z-index:2}.links a:focus-visible{outline-color:var(--accent)}.links a:after{content:'✦';position:absolute;right:12px;top:4px;color:var(--accent);opacity:0;transform:scale(.2);transition:opacity .2s,transform .3s}.links a:hover:after,.links a:focus-visible:after{opacity:1;transform:scale(1)}
#navi{position:absolute;left:0;top:0;width:36px;height:36px;z-index:4;pointer-events:none;opacity:0;will-change:transform;filter:drop-shadow(0 0 2px #8aefff)}.navi-art{position:absolute;left:-6px;top:-6px;width:48px;height:48px;overflow:visible}.navi-wings{transform-origin:24px 24px;animation:navi-flap .24s ease-in-out infinite alternate}.navi-halo{filter:blur(2px)}#navi i{position:absolute;width:3px;height:3px;background:#d3fbff;left:5px;top:28px;animation:spark .9s infinite}#navi i:nth-last-child(2){left:20px;top:33px;animation-delay:.3s}#navi i:last-child{left:0;top:17px;animation-delay:.6s}@keyframes navi-flap{from{transform:scaleX(.72) scaleY(.96)}to{transform:scaleX(1) scaleY(1)}}@keyframes spark{0%,100%{opacity:0;transform:translateY(5px)}45%{opacity:.8;transform:translateY(0)}}
.motes i{position:absolute;width:3px;height:3px;background:#fff4bb;box-shadow:0 0 6px #fff4bb;left:48%;top:73%;animation:drift 9s ease-in-out infinite}.motes i:nth-child(2){left:56%;top:42%;animation-delay:-3s}.motes i:nth-child(3){left:35%;top:25%;animation-delay:-5s}.motes i:nth-child(4){left:72%;top:83%;animation-delay:-7s}@keyframes drift{0%,100%{opacity:0;transform:translate(0,0)}45%{opacity:.8;transform:translate(20px,-40px)}}.arcade-playing .motes i{animation-play-state:paused}
#landscape{padding:0;width:min(95vw,1500px);max-width:none;height:min(88dvh,900px);overflow:hidden;background:var(--shade)}.landscape-picture{position:absolute;inset:0;background-image:var(--scene-image);background-size:contain;background-repeat:no-repeat;background-position:center}.landscape-toolbar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:10px;padding:14px;background:#101720dd}.landscape-toolbar strong{flex:1;font-size:12px}.landscape-toolbar button{font-size:10px}
@media(min-width:651px){.content{grid-template-columns:minmax(260px,350px) minmax(280px,410px)}.shell{max-width:1320px}}
@media(max-width:650px) and (orientation:portrait){.profile{padding:9px 11px}#scene-window{height:clamp(58px,10dvh,90px);margin-bottom:5px;background-position:center 36%}.scene-bar{margin-bottom:8px}.scene-bar strong{font-size:10px}.scene-bar small{font-size:7px}.scene-bar button{height:25px;min-width:26px;padding:1px 6px}.identity{justify-content:flex-start}.portrait{width:38px;height:38px}h1{font-size:25px}h1 span{font-size:8px;margin-top:4px}.identity .eyebrow{display:none}.links{margin-top:8px}.links a{flex-direction:row;padding:7px 5px;gap:5px}.links svg{width:20px;height:20px}.links strong{font-size:10px}.links small{font-size:7px}.signature{display:none}.landscape-toolbar{gap:5px;padding:9px}.landscape-toolbar strong{font-size:10px}.landscape-toolbar button{padding:8px 6px;font-size:9px}.content{gap:10px}.world-layer{background-position:center}}
@media(max-height:650px){#scene-window{height:65px}.scene-bar{margin-bottom:10px}.profile .tagline{display:none}.profile .label{margin:8px 0}.profile .signature{display:none}.profile .divider{display:none}.links a{padding:8px}}
@media(max-height:620px) and (orientation:portrait){#scene-window{height:52px}.scene-bar{margin-bottom:6px}.scene-bar small{display:none}.identity{display:flex}.identity .portrait{width:28px;height:28px}.identity h1{font-size:20px}.identity h1 span{font-size:7px}.links{margin-top:4px}.links a{padding:6px 3px}.profile{padding:7px 10px}}
@media(max-height:500px) and (orientation:landscape){#scene-window{height:55px}.scene-bar{margin-bottom:8px}.scene-bar small,.profile .identity .eyebrow{display:none}.profile{padding:9px}.links{margin-top:8px}.links a{padding:5px 8px}.portrait{width:35px;height:35px}h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.world-layer{transition:none}#navi,.motes{display:none}.navi-wings,#navi i{animation:none}}

@media(min-width:651px){.content{grid-template-rows:minmax(0,1fr)}.arcade{height:100%;max-height:660px}}
@media(min-width:651px) and (max-height:800px){.profile{padding:16px}.profile .tagline,.profile .divider,.profile .signature{display:none}#scene-window{height:85px}.profile .label{margin:14px 0 10px}.links{gap:10px}.links a{padding:11px}.scene-bar{margin-bottom:14px}}

#joystick{background:radial-gradient(circle,var(--button-hover),var(--shade));border-color:var(--edge);box-shadow:inset 0 0 0 5px var(--shade),3px 3px #051c21}#joystick span{background:var(--accent);border-color:var(--cream)}#joystick i{color:var(--mint)}
