:root{--shell-crimson: #9e1722;--shell-crimson-hi: #c42330;--shell-crimson-dk: #5e0b12;--shell-bezel: #111318;--shell-deck: #7c111a;--btn-face: #232730;--btn-hi: #3a404e;--btn-dk: #12141a;--accent-gold: #f6c453;--led-green: #38e54d;--led-amber: #ffb020}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}html,body,#root{margin:0;padding:0;width:100%;height:100dvh;overflow:hidden;background:radial-gradient(circle at 50% 15%,#261419,#0b0c10 80%);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#f3f4f6;touch-action:none}.gba-shell-root{width:100%;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:space-between;max-width:480px;margin:0 auto;padding:env(safe-area-inset-top,6px) 10px env(safe-area-inset-bottom,10px);background:linear-gradient(165deg,var(--shell-crimson-hi) 0%,var(--shell-crimson) 48%,var(--shell-crimson-dk) 100%);box-shadow:inset 0 2px 3px #ffffff47,inset 0 -4px 10px #0000008c,0 20px 60px #000000d9;position:relative}@media(min-width:500px)and (min-height:700px){#root{display:flex;align-items:center;justify-content:center;padding:12px}.gba-shell-root{height:min(96dvh,880px);border-radius:28px;border:2px solid rgba(255,255,255,.14)}}.lcd-housing{width:100%;background:var(--shell-bezel);border-radius:16px 16px 22px 22px;padding:8px 8px 10px;box-shadow:inset 0 2px 6px #000000e6,0 4px 10px #00000073;border:2px solid #262a34;display:flex;flex-direction:column;gap:6px}.lcd-top-status{display:flex;align-items:center;justify-content:space-between;padding:0 4px;font-size:11px;letter-spacing:.06em;color:#9ca3af;font-weight:600}.led-cluster{display:flex;align-items:center;gap:6px}.led-dot{width:8px;height:8px;border-radius:50%;background:var(--led-green);box-shadow:0 0 8px var(--led-green);transition:all .2s ease}.led-dot.saving{background:var(--led-amber);box-shadow:0 0 10px var(--led-amber)}.lcd-viewport{position:relative;width:100%;aspect-ratio:3 / 2;background:#000;border-radius:6px;overflow:hidden;border:2px solid #050608}.gba-canvas{width:100%;height:100%;display:block;image-rendering:pixelated;image-rendering:crisp-edges}.lcd-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#080a0fe0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;text-align:center}.lcd-badge-bar{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 0}.brand-engraving{font-size:12px;font-weight:800;letter-spacing:.16em;color:#d1d5db;text-transform:uppercase;font-style:italic}.brand-engraving span{color:var(--accent-gold)}.motto-tag{font-size:10px;color:#6b7280;font-weight:600}.hinge-bar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 0}.shoulder-btn{min-width:62px;height:36px;border-radius:10px 10px 16px 16px;border:1px solid #444b5a;background:linear-gradient(180deg,var(--btn-hi) 0%,var(--btn-face) 70%,var(--btn-dk) 100%);color:#f9fafb;font-weight:800;font-size:14px;letter-spacing:.08em;box-shadow:0 3px #0f1117,0 5px 10px #0006;cursor:pointer}.shoulder-btn.pressed{transform:translateY(2px);box-shadow:0 1px #0f1117;background:#4b5563}.utility-pills{display:flex;align-items:center;gap:5px}.util-pill{height:32px;padding:0 9px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:#111318b8;color:#f3f4f6;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px;cursor:pointer}.util-pill.active{background:var(--accent-gold);color:#111318;border-color:#fde68a;box-shadow:0 0 12px #f6c45373}.controls-deck{width:100%;flex:1;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;min-height:175px}.dpad-zone{width:146px;height:146px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.26) 58%,transparent 70%);touch-action:none}.dpad-cross{width:132px;height:132px;position:relative}.dpad-arm{position:absolute;background:var(--btn-face);border:1px solid #3c4252;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:13px;font-weight:900;box-shadow:0 4px 8px #00000080;transition:background .06s ease}.dpad-arm.pressed{background:#4b5563;color:var(--accent-gold)}.dpad-up{top:0;left:44px;width:44px;height:48px;border-radius:8px 8px 0 0}.dpad-down{bottom:0;left:44px;width:44px;height:48px;border-radius:0 0 8px 8px}.dpad-left{left:0;top:44px;width:48px;height:44px;border-radius:8px 0 0 8px}.dpad-right{right:0;top:44px;width:48px;height:44px;border-radius:0 8px 8px 0}.dpad-center{position:absolute;top:44px;left:44px;width:44px;height:44px;background:var(--btn-face);display:flex;align-items:center;justify-content:center;pointer-events:none}.dpad-center:after{content:"";width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#16181f,#2c313d)}.ab-zone{width:152px;height:136px;position:relative}.face-btn{position:absolute;width:66px;height:66px;border-radius:50%;border:2px solid #485063;background:radial-gradient(circle at 32% 28%,var(--btn-hi),var(--btn-face) 68%,var(--btn-dk));color:#f9fafb;font-size:22px;font-weight:900;box-shadow:0 5px #101218,0 8px 16px #0000008c;display:flex;align-items:center;justify-content:center;cursor:pointer}.face-btn.pressed{transform:translateY(4px);box-shadow:0 1px #101218,0 3px 6px #00000073;background:#4b5563;color:var(--accent-gold)}.btn-a{right:4px;top:10px}.btn-b{left:6px;bottom:8px}.bottom-bar{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:4px}.meta-btns{display:flex;align-items:center;gap:22px}.pill-btn-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}.pill-btn{width:64px;height:22px;border-radius:999px;border:1px solid #454d5e;background:linear-gradient(180deg,var(--btn-hi),var(--btn-face));box-shadow:0 3px #101218;cursor:pointer}.pill-btn.pressed{transform:translateY(2px);box-shadow:0 1px #101218;background:#4b5563}.pill-label{font-size:10px;font-weight:800;letter-spacing:.14em;color:#ffffffc7}.speaker-dots{display:grid;grid-template-columns:repeat(6,5px);gap:5px;opacity:.45}.speaker-dots span{width:4px;height:4px;border-radius:50%;background:#1a0407;box-shadow:inset 0 1px 1px #000000e6}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000b8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-end;z-index:40}.drawer-sheet{width:100%;max-height:86%;overflow-y:auto;background:#16181f;border-top:2px solid var(--accent-gold);border-radius:20px 20px 0 0;padding:16px;display:flex;flex-direction:column;gap:14px}.drawer-header{display:flex;align-items:center;justify-content:space-between}.drawer-title{font-size:15px;font-weight:800;color:#f9fafb;display:flex;align-items:center;gap:8px}.slot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.slot-card{background:#20242e;border:1px solid #323846;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px;text-align:center}.slot-card-title{font-size:11px;font-weight:700;color:#d1d5db}.slot-actions{display:flex;gap:4px}.drawer-btn{flex:1;padding:7px 8px;border-radius:8px;border:1px solid #3c4456;background:#2b303d;color:#f9fafb;font-size:11px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.drawer-btn.primary{background:var(--shell-crimson);border-color:var(--shell-crimson-hi)}.backup-row{display:flex;gap:8px}.toast-banner{position:absolute;top:44px;left:50%;transform:translate(-50%);background:#111318f0;border:1px solid var(--accent-gold);color:#fef3c7;font-size:11px;font-weight:700;padding:5px 12px;border-radius:999px;z-index:50;pointer-events:none;white-space:nowrap}@media(orientation:landscape)and (max-height:520px){.gba-shell-root{max-width:100%;flex-direction:row;padding:6px 14px;gap:10px}.lcd-housing{order:2;width:auto;height:94dvh;aspect-ratio:3 / 2;padding:6px}.lcd-top-status,.lcd-badge-bar,.speaker-dots{display:none}.lcd-viewport{height:100%}.hinge-bar{order:1;width:auto;flex-direction:column}.controls-deck{order:3;width:auto;flex-direction:column;gap:8px}.bottom-bar{order:4;width:auto}.meta-btns{flex-direction:column;gap:10px}}
