
#desktop-guests{display:none}
@media(min-width:1000px) and (min-height:680px){
 .shell{padding-bottom:100px;grid-template-rows:38px minmax(0,1fr) 24px}
 .content{grid-template-columns:minmax(300px,370px) minmax(330px,440px);gap:210px}
 .profile .tagline,.profile .divider,.profile .signature{display:none}
 .profile{padding:12px}.profile #scene-window{height:55px}.profile .scene-bar{margin-bottom:10px}
 .profile .portrait{width:48px;height:48px}.profile h1{font-size:34px}.profile .identity .eyebrow{display:none}
 .profile .label{margin:12px 0 0}.profile .links{gap:27px;margin-top:34px}.profile .links a{padding:6px 12px}
 #desktop-guests{display:block;position:fixed;inset:0;pointer-events:none;z-index:5}
 .guest-intro{position:absolute;left:50%;top:26%;transform:translateX(-50%);width:195px;text-align:center;text-shadow:0 2px 5px #000}
 .guest-intro>span{font:bold 10px monospace;letter-spacing:1px;color:var(--accent)}
 .guest-intro p{font:14px/1.7 monospace;color:#fff2d2}
 #miku-guest{position:absolute;left:50%;top:calc(100% - 164px);width:140px;height:156px;transform:none;background:none;border:0;box-shadow:none;padding:0;pointer-events:auto;touch-action:none;cursor:grab}
 #miku-guest:active{cursor:grabbing;transform:none}
 #miku-guest img{width:100%;height:100%;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 5px 3px #0005);pointer-events:none}
 #miku-message{position:fixed;bottom:auto;transform:none;width:210px;padding:10px;background:var(--panel);border:1px solid var(--edge);font:12px/1.5 monospace;box-shadow:3px 3px #0004;border-radius:8px;color:var(--cream);pointer-events:none}
 #roaming-pokemon{position:absolute;bottom:0;left:0;width:150px;height:150px;background:none;border:0;box-shadow:none;padding:0;pointer-events:auto;touch-action:manipulation;will-change:transform}
 #roaming-pokemon canvas{position:absolute;left:0;bottom:0;width:150px;height:300px;image-rendering:pixelated;pointer-events:none}
 .arcade-playing .guest-intro{opacity:.5}.arcade-playing #miku-guest img{animation-play-state:paused}
}
@keyframes miku-sway{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-5px)}}
@keyframes miku-hop{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-18px) rotate(5deg)}}
@media(max-width:650px) and (orientation:portrait){.profile .links{grid-template-columns:repeat(4,minmax(0,1fr))}.profile .links strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){#miku-guest img{animation:none!important}}
.miku-mobile-dock{display:none}
#miku-guest.spectating{pointer-events:none;cursor:default}
@media(max-width:999px),(max-height:679px){
 .miku-mobile-dock{display:block;flex:none;height:60px;min-height:60px;border-top:1px solid var(--edge)}
 .miku-mobile-dock[hidden]{display:none}
 .miku-mobile-dock #miku-guest{position:relative;display:flex;align-items:center;gap:8px;left:auto;top:auto;bottom:auto;transform:none;width:100%;height:60px;padding:0 4px;border:0;background:none;box-shadow:none;touch-action:manipulation;text-align:left}
 .miku-mobile-dock #miku-guest img{width:48px;height:54px;object-fit:contain;flex:none;pointer-events:none;order:2}
 .miku-mobile-dock #miku-message{position:static;transform:none;flex:1;min-width:0;width:auto;padding:0;border:0;background:none;box-shadow:none;font:11px/1.3 system-ui;color:var(--cream);pointer-events:none}
}
#joystick i{position:absolute;inset:0;font-size:13px;line-height:1}
#joystick [data-stick-arrow]{position:absolute;color:var(--mint);font:13px/1 monospace;pointer-events:none}
#joystick [data-stick-arrow=up]{top:7px;left:50%;transform:translateX(-50%)}
#joystick [data-stick-arrow=down]{bottom:7px;left:50%;transform:translateX(-50%)}
#joystick [data-stick-arrow=left]{left:7px;top:50%;transform:translateY(-50%)}
#joystick [data-stick-arrow=right]{right:7px;top:50%;transform:translateY(-50%)}
#level{font:inherit;color:var(--accent)}
.screen{padding-left:42px}
#loot-shelf{position:absolute;left:3px;top:8px;bottom:8px;width:35px;border-right:1px solid var(--edge);color:var(--accent);text-align:center;pointer-events:none}
#loot-shelf strong{font:6px monospace;letter-spacing:0}
#loot-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:12px}
#loot-list li{display:flex;flex-direction:column;align-items:center;font:9px monospace}
#loot-list img{width:28px;height:28px;object-fit:contain;image-rendering:auto}
@media(max-width:650px){.scorebar{font-size:10px}}
@media(max-height:620px){.miku-mobile-dock,.miku-mobile-dock #miku-guest{height:46px;min-height:46px}.miku-mobile-dock #miku-guest img{width:34px;height:40px}.miku-mobile-dock #miku-message{font-size:10px}}

@media(max-width:650px) and (orientation:portrait){.controls{min-height:112px}#joystick{width:112px;height:112px;flex-shrink:0}#joystick span{width:44px;height:44px}}

#joystick[hidden],#direction-pad[hidden]{display:none}#direction-pad{display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,48px);gap:3px;touch-action:none;user-select:none;-webkit-user-select:none}#direction-pad button{padding:0;min-width:52px;min-height:48px;font-size:22px;touch-action:none;border-radius:8px;background:var(--button);color:var(--cream)}#direction-pad button.pressed{background:var(--accent);color:var(--shade)}#direction-pad [data-dir=up]{grid-area:1/2}#direction-pad [data-dir=left]{grid-area:2/1}#direction-pad [data-dir=right]{grid-area:2/3}#direction-pad [data-dir=down]{grid-area:3/2}.control-options{display:flex;flex-direction:column;gap:8px;align-items:center}#control-mode{font:9px monospace;padding:10px 7px;min-height:42px}.controls .hint{font-size:8px;text-align:center;margin:0}@media(max-width:650px) and (orientation:portrait){.controls{min-height:150px;gap:10px;justify-content:space-between}#joystick{width:148px;height:148px;flex-shrink:0}#joystick span{width:58px;height:58px}.control-options{flex:1;min-width:0}.controls #pause{margin-left:0;min-width:42px;min-height:44px}}
