:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; --shell: #1760e8; --ink: #f5faff; --screen-w: 320px; --screen-h: 288px; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { display: grid; place-items: center; min-height: 100svh; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #090d26; background-image: radial-gradient(ellipse at 50% 45%, #20234e 0, #090d26 65%); }
.console { width: calc(var(--screen-w) + 64px); padding: 18px 16px 0; color: var(--ink); background: linear-gradient(112deg, #459aff 0%, #1760e8 42%, #1740bf 100%); border: 1px solid #8ed4ff; border-radius: 20px 20px 49px 20px; box-shadow: inset 2px 3px 3px #c0eaffb3, inset -2px -3px 4px #08216b99, inset -5px -7px 0 #123ca3, 0 8px 1px #0b277d, 2px 14px 3px #040b2980, 10px 22px 30px #03071d99; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.topline, .bezel-heading, .bezel-bottom { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.topline { margin: 0 6px 11px; font-size: 10px; letter-spacing: 1.8px; }
.power { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1px; }
.power i { width: 6px; height: 6px; border-radius: 50%; background: #00ffe1; box-shadow: inset 1px 1px 1px #e2ffff, 0 0 0 1px #08778f, 0 0 7px #00ffe170; }
.bezel { padding: 13px 15px 12px; border-radius: 10px 10px 28px 10px; background: linear-gradient(125deg, #202b64, #101638 80%); box-shadow: inset 1px 1px 1px #6478b5, inset -1px -2px 2px #050925, 0 -1px 1px #092672, 0 2px 1px #61aaff; }
.bezel-heading { margin-bottom: 11px; color: #b4ceff; font-size: 8px; letter-spacing: 1.1px; }
.lcd { width: var(--screen-w); height: var(--screen-h); background: #09164e; box-shadow: 0 0 0 3px #080c29, 0 0 0 4px #5d88cf; position: relative; }
canvas { display: block; width: var(--screen-w); height: var(--screen-h); image-rendering: pixelated; image-rendering: crisp-edges; }
.bezel-bottom { margin-top: 13px; color: #a5c6ff; font-size: 7px; letter-spacing: .8px; gap: 8px; }
.mini-mark { font-size: 15px; font-style: italic; letter-spacing: -2px; padding-right: 4px; }
.controls { margin: 24px 3px 0; height: 138px; display: flex; align-items: center; justify-content: space-between; }
button { border: 0; cursor: pointer; color: #f4faff; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
button:focus-visible { outline: 3px solid #fff000; outline-offset: 5px; }
.dpad { width: 138px; height: 138px; position: relative; touch-action: none; }
.dpad-base { position: absolute; inset: 0; background: #1245b8; border-radius: 50%; box-shadow: inset 0 2px 3px #07175080, 0 1px 1px #579dff; }
.direction, .dpad-center { position: absolute; width: 46px; height: 46px; background: #1e3072; }
.direction { display: grid; place-items: center; font-size: 13px; color: #91dcff; padding: 0; box-shadow: inset 1px 2px 1px #617acf, inset -1px 0 1px #132158, 0 4px 0 #070f37, 0 6px 3px #061f8480; }
.direction span { pointer-events: none; filter: drop-shadow(0 -1px #060f3e); }
.up { left: 46px; top: 0; border-radius: 5px 5px 0 0; }
.left { left: 0; top: 46px; border-radius: 5px 0 0 5px; }
.right { right: 0; top: 46px; border-radius: 0 5px 5px 0; }
.down { left: 46px; bottom: 0; border-radius: 0 0 5px 5px; }
.dpad-center { left: 46px; top: 46px; z-index: 1; }
.dpad-center::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; box-shadow: inset 0 2px 3px #0e1849, 0 1px 1px #587dd7; }
.direction.pressed { background: #101b48; box-shadow: inset 0 3px 5px #050b27; color: #fff400; transform: translateY(2px); }
.action-buttons { width: 144px; height: 120px; position: relative; }
.action { position: absolute; display: grid; gap: 9px; justify-items: center; }
.action button { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(ellipse at 30% 18%, #ff9dde 0%, #ff2999 32%, #d90870 76%, #a60758 100%); box-shadow: inset 1px 2px 2px #ffd9f6d0, inset -1px -2px 2px #80054699, 0 5px 0 #870851, 0 7px 3px 1px #09236680, 0 6px 0 5px #123db4; color: #ffffff; text-shadow: 0 1px 1px #9b005b; font-size: 24px; font-weight: 700; }
.action.b { left: 1px; bottom: 0; }.action.a { right: 0; top: 0; }
.action span { font-size: 9px; color: #c2e3ff; font-weight: 700; }
.action button.pressed { transform: translateY(4px); background: #b20863; box-shadow: inset 0 2px 4px #650934, 0 1px 0 #820b4d, 0 2px 0 5px #103da9; }
.lower-controls { height: 64px; display: flex; align-items: center; justify-content: center; position: relative; }
.system-buttons { display: flex; gap: 6px; align-items: center; }
.system-wrap { width: 66px; display: grid; justify-items: center; }
.system-wrap button { width: 66px; height: 44px; position: relative; background: transparent; }
.system-wrap button::after { content: ''; position: absolute; inset: 15px 8px; border-radius: 10px; transform: rotate(-18deg); background: linear-gradient(#829bf6, #4259b5); box-shadow: inset 0 1px 1px #c5d9ff, inset 0 -1px 1px #243977, 0 3px 0 #192c71, 0 4px 1px 2px #123db4; }
.system-wrap button.pressed::after { transform: rotate(-18deg) translateY(2px); background: #3c51a5; box-shadow: inset 0 1px 2px #1e2e70, 0 1px 0 #192c71; }
.system-wrap span { font-size: 9px; letter-spacing: 1.4px; font-weight: bold; color: #cae5ff; }
/* Closed, non-interactive cover. Future expansion mechanism belongs behind it. */
.expansion-cover { position: absolute; right: 0; top: 7px; width: 50px; height: 49px; border-radius: 7px 7px 15px 7px; border: 1px solid #103499; border-top-color: #0a2d84; box-shadow: inset 0 1px 1px #529aff, 0 1px 1px #529aff; background: #2974eb40; pointer-events: none; }
.cover-notch { position: absolute; bottom: -1px; left: 18px; width: 13px; height: 3px; border-radius: 2px; background: #082876; box-shadow: 0 1px 0 #6abbff; }
.branding { display: flex; align-items: flex-end; justify-content: space-between; margin: 14px 9px 20px; }
.branding strong { display: block; font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -1.5px; line-height: 1.1; }.branding strong span { color: #fff227; margin-left: 5px; font-size: 21px; }
.branding small { display: block; font-size: 7px; letter-spacing: 1.25px; margin-top: 6px; }
.seam { height: 10px; border-top: 1px solid #347bf0; margin: 0 -10px; border-radius: 0 0 40px 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.console.small-screen { width: min(304px, calc(100vw - 16px)); }.small-screen .lcd { margin-inline: auto; }
@media (max-width: 400px) { .console { width: calc(var(--screen-w) + 32px); padding: 12px 8px 0; border-radius: 16px 16px 35px 16px; }.bezel { padding: 12px 7px 10px; }.controls { margin: 20px 1px 0; }.branding { margin-top: 8px; margin-bottom: 16px; }.topline { margin-bottom: 8px; } }
@media (max-height: 740px) and (orientation: portrait) { .console { padding-top: 8px; }.controls { margin-top: 8px; }.lower-controls { height: 54px; }.branding { margin-top: 3px; margin-bottom: 8px; }.bezel-heading { margin-bottom: 7px; }.bezel-bottom { margin-top: 8px; } }
@media (orientation: landscape) and (max-height: 540px) { .console { display: flex; align-items: center; gap: 20px; width: auto; padding: 14px 18px; border-radius: 20px 20px 40px 20px; }.display-unit { flex: 0 0 auto; }.control-unit { width: 282px; }.controls { margin: 0; gap: 8px; }.lower-controls { margin-top: 10px; }.branding { margin: 15px 0 0; }.branding strong { font-size: 20px; }.branding strong span { font-size: 17px; }.branding small { font-size: 6px; }.seam { display: none; }.topline { margin-bottom: 8px; } }
@media (max-width: 340px) { .controls { gap: 0; }.dpad { flex-shrink: 0; }.action-buttons { flex-shrink: 0; width: 118px; }.action button { width: 50px; height: 50px; }.branding strong { font-size: 20px; }.branding strong span { font-size: 18px; }.branding small { font-size: 6px; }.serial { font-size: 20px; } }
@media (orientation: landscape) and (max-height: 540px) { .console.small-screen { width: auto; } }

/* Saturated moulded-plastic B cap. Layout and hit areas are unchanged. */
.action.b button { background: radial-gradient(ellipse at 30% 18%, #ffffc3, #ffe91a 32%, #e6b700 76%, #b58d00); color: #3e3180; text-shadow: 0 1px 1px #fff8a2; box-shadow: inset 1px 2px 2px #ffffd9, inset -1px -2px 2px #9e710080, 0 5px 0 #9a7100, 0 7px 3px 1px #09236680, 0 6px 0 5px #123db4; }
.action.b button.pressed { transform: translateY(4px); background: #cba400; box-shadow: inset 0 2px 4px #886400, 0 1px 0 #9a7100, 0 2px 0 5px #103da9; }

/* The reserved physical hatch opens only while a missile charge is held. */
.expansion-bay {position:absolute;right:0;top:7px;width:50px;height:49px;perspective:180px;background:#0b215c;border-radius:7px 7px 15px 7px;}
.expansion-bay .expansion-cover {inset:0;background:#2974eb;transform-origin:top;transition:transform .24s,opacity .24s;z-index:2;}
.expansion-bay.open .expansion-cover {transform:rotateX(110deg);opacity:0;}
.expansion-bay button {width:50px;height:49px;border:3px solid #172966;border-radius:8px;background:linear-gradient(#ffe961,#e5a017);color:#331800;font-size:12px;font-weight:900;box-shadow:inset 0 2px 1px #fff9c4,0 2px 0 #775000;visibility:hidden;touch-action:none;}
.expansion-bay button small {display:block;font-size:6px;margin-top:3px;}
.expansion-bay.open button {visibility:visible;}
.expansion-bay button.pressed {transform:translateY(2px);background:#ff9e12;}
@media(prefers-reduced-motion:reduce){.expansion-bay .expansion-cover{transition:none;}}

/* Ice-white moulded shell; original dimensions and controls are retained. */
:root { --shell:#ecf6fa; --ink:#233953; }
.console {background:linear-gradient(112deg,#ffffff 0%,#edf6fa 42%,#cbdde8 100%);border-color:#ffffff;box-shadow:inset 2px 3px 3px #ffffff,inset -2px -3px 4px #7795a199,inset -5px -7px 0 #b6cbd8,0 8px 1px #8ea7b9,2px 14px 3px #040b2980,10px 22px 30px #03071d99;}
.shell-logo {display:block;width:92px;height:26px;object-fit:contain;}
.topline {min-height:26px;margin-bottom:8px;}
.bezel {box-shadow:inset 1px 1px 1px #6478b5,inset -1px -2px 2px #050925,0 -1px 1px #718c9c,0 2px 1px #ffffff;}
.dpad-base {background:#c7dbe5;box-shadow:inset 0 2px 3px #839eae80,0 1px 1px #fff;}
.action span,.system-wrap span {color:#334c68;}
.action button,.action.b button {outline:4px solid #c4d6e2;outline-offset:2px;}
.system-wrap button::after {background:linear-gradient(#aebfcf,#6f879c);box-shadow:inset 0 1px 1px #edfaff,inset 0 -1px 1px #4b6477,0 3px 0 #50697e,0 4px 1px 2px #c4d6e2;}
.expansion-bay {background:#9db4c5;}
.expansion-bay .expansion-cover {background:#e2eef5;border-color:#a1b7c6;box-shadow:inset 0 1px 1px #fff,0 1px 1px #fff;}
.cover-notch {background:#688295;box-shadow:0 1px 0 #fff;}
.branding strong {font-size:23px;letter-spacing:-.9px;line-height:.98;color:#203958;}
.branding {margin-top:12px;margin-bottom:18px;}
.seam {border-color:#b5ccd9;}
@media(max-height:740px) and (orientation:portrait){.branding{margin-top:3px;margin-bottom:8px}.branding strong{font-size:20px}.shell-logo{height:20px;width:70px}.topline{min-height:20px}}
