/* io Arcade：一張桌子，左邊卡帶架、右邊一台掌機 io-01。卡帶插進去，真的遊戲就在掌機螢幕上跑。
   設計語彙沿用個人網站（~/Studio/portfolio/site/src/styles/site.css）：亮色貼紙風、墨線、硬陰影。
   圓角規則：chip／切換鈕用藥丸形，按鈕 14px，面板 16px，裝置保留自己的形狀。 */
:root {
  --sky: #dceaff; --dot: #b6cbf0; --ink: #16161d; --paper: #fbfcff; --muted: #4b5170;
  --sun: #ffd23f; --cobalt: #2f6bff; --tangerine: #ff7a2f; --pink: #ff8ac8; --lime: #a6e35a; --note: #fff27a;
  --screen: #111726; --device: #2a2f45;
  --display: "Bricolage Grotesque", "Chiron GoRound TC", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Chiron GoRound TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --pixel: "Silkscreen", "Chiron GoRound TC", ui-monospace, monospace;
  --hand: "LXGW WenKai TC", "Chiron GoRound TC", cursive;
  --line: 2.5px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16.5px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background: radial-gradient(var(--dot) 1.3px, transparent 1.4px) 0 0 / 24px 24px, var(--sky);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.hand { font-family: var(--hand); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgb(220 234 255 / 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { font: 800 20px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo i { width: 14px; height: 14px; border: var(--line); border-radius: 4px; background: var(--sun); transform: rotate(12deg); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 8px 11px; border-radius: 10px; border: 2px solid transparent; }
.nav-links a:hover { border-color: var(--ink); background: var(--paper); }
.switch { display: inline-flex; border: var(--line); border-radius: 999px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); padding: 3px; gap: 2px; }
.switch a { font: 700 12px/1 var(--pixel); padding: 7px 10px 6px; border-radius: 999px; text-decoration: none; }
.switch [aria-current="true"] { background: var(--ink); color: var(--paper); }

/* ---------- 開場：一句話＋便利貼 ---------- */
.hello { position: relative; padding-block: clamp(22px, 3.2vh, 40px) clamp(14px, 2vh, 22px); }
.bubble { position: relative; display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: var(--line); border-radius: 16px; padding: 7px 13px; font-weight: 600; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -10px; width: 14px; height: 14px; background: var(--paper); border-right: var(--line); border-bottom: var(--line); transform: rotate(45deg) skew(8deg, 8deg); }
.blink { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { background: var(--paper); } }
.hello .big { margin-top: 20px; font: 800 clamp(34px, 4.8vw, 68px)/1.04 var(--display); letter-spacing: -0.03em; }
.mk { position: relative; white-space: nowrap; z-index: 0; }
.mk::before { content: ""; position: absolute; left: -0.08em; right: -0.08em; bottom: 0.06em; height: 0.42em; z-index: -1; border-radius: 0.2em; transform: rotate(-1.5deg) scaleX(0); transform-origin: left center; animation: mark 0.7s var(--d, 0.4s) cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
@keyframes mark { to { transform: rotate(-1.5deg) scaleX(1); } }
.mk.blue::before { background: #9cc0ff; }
.mk.orange::before { background: #ffb98f; }
.hello .sub { font-size: clamp(16px, 1.5vw, 19px); color: #2b3048; margin-top: 10px; }
.notes { position: absolute; right: 0; top: 14px; display: flex; gap: 18px; pointer-events: none; }
.note { position: relative; width: 138px; padding: 13px 14px 11px; border: var(--line); box-shadow: var(--pop); background: var(--note); transform: rotate(var(--r, 0deg)); }
.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 54px; height: 18px; margin-left: -27px; background: rgb(255 255 255 / 0.65); border: 1.5px solid rgb(22 22 29 / 0.25); transform: rotate(-3deg); }
.note b { display: block; font: 700 30px/1 var(--hand); }
.note span { display: block; font: 400 15px/1.3 var(--hand); margin-top: 5px; }

/* ---------- 卡帶架＋掌機 ---------- */
.play-grid { display: grid; grid-template-columns: var(--shelf, 168px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.play-grid.many { --shelf: 304px; }
.many .shelf-hint { display: none; }
.many .cart-label img { aspect-ratio: 16 / 9; }
.shelf-col { position: relative; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; padding: 6px 6px 6px 0; }
.shelf-hint { font: 400 17px/1.25 var(--hand); color: #30365a; transform: rotate(-4deg); margin: 0 0 12px 8px; }
.shelf-sec + .shelf-sec { margin-top: 14px; }
.shelf-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px 2px; font: 800 17px/1.2 var(--display); letter-spacing: -0.01em; }
.shelf-title small { font: 700 11px/1 var(--pixel); color: var(--muted); }
.cart {
  position: relative; display: flex; flex-direction: column; text-align: left; text-decoration: none; padding: 22px 10px 12px; min-width: 0;
  border: var(--line); border-radius: 14px 14px 8px 8px; background: var(--c); box-shadow: var(--pop); cursor: pointer;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--r, 0deg));
  transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.15s;
}
.cart::before { content: ""; position: absolute; top: 7px; left: 22%; right: 22%; height: 9px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgb(22 22 29 / 0.55) 0 3px, transparent 3px 7px); }
.cart::after { content: ""; position: absolute; left: -2.5px; right: -2.5px; bottom: -2.5px; height: 10px; border-top: var(--line); border-radius: 0 0 8px 8px; background: rgb(22 22 29 / 0.12); }
.cart:hover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 6px 8px 0 var(--ink); transition: transform 0.08s linear, box-shadow 0.15s; }
.cart.on { outline: 3px dashed var(--ink); outline-offset: 5px; }
.cart.flying { position: fixed; z-index: 80; pointer-events: none; margin: 0; transition: transform 0.38s cubic-bezier(0.5, -0.2, 0.3, 1), opacity 0.38s; }
.cart-label { position: relative; display: block; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.cart-label img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; }
.cart-label::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.7), transparent 42%), linear-gradient(115deg, transparent 30%, rgb(255 138 200 / 0.18) 45%, rgb(166 227 90 / 0.18) 55%, transparent 70%); }
.cart:hover .cart-label::after { opacity: 1; }
.cart-name { display: block; padding: 0 4px 2px; font: 800 15px/1.15 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; color: var(--ink); }
.cart-sub { display: block; padding: 0 4px 6px; font: 700 10.5px/1.35 var(--pixel); color: rgb(22 22 29 / 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp { position: absolute; right: -8px; top: 30px; z-index: 2; font: 700 10px/1 var(--pixel); font-style: normal; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 8px 4px; transform: rotate(12deg); box-shadow: 2px 2px 0 var(--ink); }

/* 掌機 io-01（橫式）：左搖桿、中間螢幕、右 A／B。瀏覽時寬度跟著視窗高度縮，整台不會超出畫面 */
.rig { display: grid; gap: 22px; min-width: 0; }
.console { --top: 345px; position: relative; padding-top: 50px; width: min(100%, calc((100vh - var(--top)) * 2.06)); min-width: min(100%, 560px); margin-inline: auto; scroll-margin-top: 10px; }
.slot { position: absolute; top: 0; left: 50%; width: 30%; height: 62px; margin-left: -15%; border: var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--device); overflow: hidden; }
.slot-cart { position: absolute; left: 8%; right: 8%; top: 6px; height: 70px; border: var(--line); border-radius: 8px 8px 0 0; background: var(--c, #555); transform: translateY(110%); }
.slot-cart span { display: block; margin: 6px 8px 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; font: 700 10px/1 var(--pixel); padding: 4px 5px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-cart.in { transform: none; animation: slotIn 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes slotIn { from { transform: translateY(-90%); } to { transform: none; } }
.console-body { position: relative; z-index: 1; background: var(--sun); border: var(--line); border-radius: 28px 28px 72px 72px; box-shadow: 6px 6px 0 var(--ink); padding: 12px 18px 20px; }
.console-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 6px 10px; min-height: 26px; }
.brandmark { font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.brandmark sup { font: 700 9px/1 var(--pixel); margin-left: 4px; }
.power { display: flex; align-items: center; gap: 6px; font: 700 9px/1 var(--pixel); margin-left: auto; }
.power i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; border: 2px solid var(--ink); box-shadow: 0 0 8px #ff4d4d; }
.playing .power i { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.key { font: 700 10px/1 var(--pixel); border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 6px 10px 5px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.key:active { transform: translate(2px, 2px); box-shadow: none; }
.deck { display: grid; grid-template-columns: clamp(92px, 11%, 132px) minmax(0, 1fr) clamp(92px, 11%, 132px); gap: 14px; align-items: center; }
.grip { display: grid; justify-items: center; gap: 18px; }
.bezel { background: #262b40; border: var(--line); border-radius: 16px; padding: 12px; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--screen); border: 2px solid var(--ink); }
.screen-media { position: absolute; inset: 0; }
.screen-media img { width: 100%; height: 100%; object-fit: cover; }
.screen-media iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.14) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.playing .screen::after { display: none; } /* 遊戲跑起來就不蓋掃描線 */
.screen-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font: 700 11px/1 var(--pixel); color: #eaffd0; background: linear-gradient(rgb(10 14 24 / 0.85), rgb(10 14 24 / 0)); z-index: 2; text-shadow: 1px 1px 0 #000; }
.screen-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playing .screen-bar { display: none; }
.boot { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; color: #eaffd0; font: 700 clamp(26px, 4vw, 44px)/1 var(--pixel); background: var(--screen); z-index: 3; }
.boot small { font: 700 12px/1 var(--pixel); animation: blink-text 1.1s steps(2) infinite; }
@keyframes blink-text { 50% { opacity: 0; } }
.press { position: absolute; inset: 0; z-index: 2; display: grid; place-items: end center; padding-bottom: 7%; text-decoration: none; background: linear-gradient(transparent 55%, rgb(10 14 24 / 0.7)); }
.press span { font: 700 clamp(13px, 1.7vw, 20px)/1 var(--pixel); color: var(--ink); background: var(--sun); border: var(--line); border-radius: 999px; padding: 11px 18px 9px; box-shadow: var(--pop); animation: nudge 1.1s steps(2) infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
.screen.crt .screen-media { animation: crt 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes crt { 0% { transform: scale(0.25, 0.006); filter: brightness(6); } 30% { transform: scale(1, 0.006); filter: brightness(5); } 65% { transform: scale(1, 1); filter: brightness(1.8) saturate(0.3); } 100% { transform: none; filter: none; } }
.screen.crt::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #eaffd0; animation: crtflash 0.6s ease-out forwards; }
@keyframes crtflash { 0% { opacity: 0; } 25% { opacity: 0.85; } 100% { opacity: 0; } }
.screen:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.dpad { position: relative; width: 96px; height: 96px; }
.dpad > * { position: absolute; background: var(--device); border: var(--line); color: #eaffd0; display: grid; place-items: center; font-size: 12px; padding: 0; }
.dp-l, .dp-r { top: 31px; width: 36px; height: 34px; cursor: pointer; }
.dp-l { left: 0; border-radius: 8px 0 0 8px; border-right: 0; }
.dp-r { right: 0; border-radius: 0 8px 8px 0; border-left: 0; }
.dp-u, .dp-d { left: 31px; width: 34px; height: 36px; }
.dp-u { top: 0; border-radius: 8px 8px 0 0; border-bottom: 0; }
.dp-d { bottom: 0; border-radius: 0 0 8px 8px; border-top: 0; }
.dp-c { left: 31px; top: 31px; width: 34px; height: 34px; border: 0 !important; }
.dp-l:active, .dp-r:active { background: #11141f; }
.speaker { width: 62px; height: 40px; background: radial-gradient(circle, var(--ink) 2.2px, transparent 2.6px) 0 0 / 10px 10px; transform: rotate(-20deg); opacity: 0.6; }
.ab { display: flex; gap: 10px; align-items: flex-end; transform: rotate(-14deg); }
.ab > * { width: 54px; height: 54px; border-radius: 50%; border: var(--line); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font: 700 18px/1 var(--pixel); cursor: pointer; text-decoration: none; padding: 0; }
.ab > *:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-a { background: var(--cobalt); color: var(--paper); margin-bottom: 22px; }
.btn-b { background: var(--tangerine); }
.btn-a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.ab-legend { font: 700 9px/1.5 var(--pixel); color: #5a4a00; text-align: center; }

/* 說明書：插了哪個卡帶就翻到哪一頁 */
.manual { background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: var(--pop); padding: 20px 22px 22px; min-width: 0; width: min(100%, 860px); margin-inline: auto; }
.man-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.man-top .live { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 700 11px/1 var(--pixel); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px 5px; background: var(--paper); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #bbb); border: 1.5px solid var(--ink); }
.chip.live i { background: var(--lime); }
.manual h1, .manual h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; }
.manual .kick { font-weight: 700; font-size: 17px; margin-top: 8px; }
.manual .desc { margin-top: 10px; font-size: 15.5px; color: #2b3048; }
.stats { list-style: none; margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 12px; display: grid; gap: 6px; background: #f6f8ff; }
.stats li { display: flex; gap: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.stats li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; background: var(--c, var(--sun)); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.man-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.man-links > * { font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; box-shadow: 2px 2px 0 var(--ink); background: var(--paper); cursor: pointer; }
.man-links .go { background: var(--lime); }
.man-links > *:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

/* 開玩：卡帶架與標題收起來，掌機放到視窗塞得下的最大 */
/* 遊戲 iframe 不吃滾輪，滾輪會往上傳給頁面把掌機捲走：玩的時候鎖住頁面捲動（按 B／Esc 退出就恢復） */
.playing { overflow: hidden; overscroll-behavior: none; }
.playing .hello, .playing .shelf-col { display: none; }
.playing .nav { position: static; }
.playing .play-grid { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
.playing .console { --top: 120px; }

/* ---------- 黃色收尾：START ---------- */
.contact { border-top: var(--line); background: var(--sun); text-align: center; padding-block: clamp(48px, 7vw, 84px); }
.contact h2 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.contact p { margin-top: 12px; font-size: 17px; color: #3a3320; }
.start { display: inline-grid; place-items: center; margin-top: 30px; width: min(300px, 80vw); height: 88px; border: var(--line); border-radius: 999px; background: var(--ink); color: var(--sun); font: 700 32px/1 var(--pixel); letter-spacing: 0.08em; text-decoration: none; box-shadow: 0 8px 0 #34343f; transition: transform 0.1s, box-shadow 0.1s; }
.start:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #34343f; }
.start:active { transform: translateY(6px); box-shadow: 0 2px 0 #34343f; }
.contact .cap { font: 400 18px/1.3 var(--hand); margin-top: 16px; color: var(--ink); }
footer { color: var(--muted); border-top: var(--line); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 700 10.5px/1.6 var(--pixel); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 文字頁（隱私、404） ---------- */
.paper { background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: var(--pop); padding: clamp(22px, 4vw, 40px); max-width: 760px; margin: clamp(32px, 6vw, 72px) auto; }
.paper h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.paper h2 { font-size: 19px; font-weight: 800; margin-top: 26px; }
.paper p, .paper ul { margin-top: 10px; color: #2b3048; }
.paper ul { padding-left: 1.2em; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: var(--line); border-radius: 14px; background: var(--sun); box-shadow: var(--pop); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- 矮視窗（筆電）：開場縮一點，卡帶架與掌機第一眼就整個看得到 ---------- */
@media (max-height: 880px) and (min-width: 901px) {
  .hello { padding-block: 14px 10px; }
  .hello .big { font-size: clamp(30px, 3.4vw, 44px); margin-top: 16px; }
  .hello .sub, .shelf-hint { display: none; }
  .notes { top: 4px; }
  .note { width: 124px; padding: 10px 12px 8px; }
  .note b { font-size: 24px; }
  .note span { font-size: 13.5px; margin-top: 3px; }
  .play-grid { grid-template-columns: var(--shelf, 142px) minmax(0, 1fr); }
  .play-grid.many { --shelf: 274px; }
  .many .cart { padding: 20px 9px 10px; }
  .many .cart-name { font-size: 13px; }
  .shelf-sec + .shelf-sec { margin-top: 10px; }
  .shelf-title { font-size: 15.5px; margin-bottom: 4px; }
  .console { --top: 268px; }
  .playing .console { --top: 120px; }
}

/* ---------- 窄螢幕：掌機轉直式（螢幕在上、按鍵在下），卡帶架排在掌機下面、說明書最後 ---------- */
@media (max-width: 1100px) { .notes { display: none; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .switch { margin-left: auto; }
  .play-grid { grid-template-columns: minmax(0, 1fr); }
  .rig { display: contents; }
  .console { order: 1; width: min(100%, 560px); min-width: 0; }
  .shelf-col { order: 2; }
  .manual { order: 3; }
  .slot { width: 46%; margin-left: -23%; }
  .console-body { border-radius: 26px 26px 26px 62px; padding: 14px 16px 18px; }
  .deck { grid-template-columns: auto 1fr auto; row-gap: 16px; }
  .bezel { grid-column: 1 / -1; grid-row: 1; }
  .grip-l { grid-column: 1; grid-row: 2; }
  .grip-r { grid-column: 3; grid-row: 2; }
  .grip .speaker { display: none; }
  .shelf-hint { display: none; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 6px; }
}
@media (max-width: 420px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .dpad { transform: scale(0.85); } .ab > * { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mk::before { transform: rotate(-1.5deg); }
  .cart, .cart:hover { transform: rotate(var(--r, 0deg)); }
}
