:root { --bg:#1e1b2e; --gray:#c9c6d4; --purple:#4f43ae; --deep:#2a2640; }
body {
  margin:0; color:#e8e5f2; font-family:'Bricolage Grotesque',sans-serif;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(79,67,174,.35), transparent 55%),
    radial-gradient(ellipse at 110% 100%, rgba(228,0,43,.12), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 6px),
    var(--bg);
  min-height:100vh;
}
.pixel { font-family:'Press Start 2P',monospace; }
.dot { width:12px; height:12px; border-radius:50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.tagline { animation: fadein .6s ease; }
@keyframes fadein { from{opacity:0;transform:translateY(4px)} to{opacity:1} }
.rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from{opacity:0;transform:translateY(18px)} }

.tv { background:linear-gradient(160deg,#3a3552,#1a1726); padding:18px; border-radius:28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.08); }
.tv:fullscreen { padding:0; border-radius:0; display:flex; align-items:center; justify-content:center; background:#000; }
.tv:fullscreen .screen { width:min(100vw, 133vh); }
.screen { position:relative; aspect-ratio:4/3; background:#07060c; border-radius:18px; overflow:hidden;
  box-shadow: inset 0 0 60px rgba(79,67,174,.35), 0 0 30px rgba(79,67,174,.25); }
.emu { position:absolute; inset:0; width:100%; height:100%; border:0; }
.scanlines { position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 80px rgba(0,0,0,.6); }
.overlay { position:absolute; inset:0; background:#07060cee; display:flex; flex-direction:column; align-items:center; justify-content:center; }

.insert { position:absolute; inset:12px; border:3px dashed rgba(201,198,212,.25); border-radius:12px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; transition:.2s; text-align:center; }
.insert.drag { border-color:#ffcc00; background:rgba(255,204,0,.06); }
.cart { width:110px; height:78px; background:linear-gradient(#8f8aa3,#6c6782); border-radius:8px 8px 3px 3px;
  position:relative; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 8px 0 #4a4560; }
.cart-label { position:absolute; inset:10px 14px 18px; background:linear-gradient(135deg,#e4002b,#4f43ae); border-radius:3px;
  font-family:'Press Start 2P'; font-size:7px; color:#fff; display:flex; align-items:center; justify-content:center; white-space:pre; text-align:center; line-height:1.6; }
.cart-bounce { animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-12px) rotate(-3deg); } }
.cart.slide { animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0%{transform:translateY(-40px);opacity:0} 50%{opacity:1;transform:translateY(0)} 100%{transform:translateY(20px);opacity:0} }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity:0; } }

.plastic-btn, .sw { background:linear-gradient(#ddd9e8,#b3aec4); color:#2a2640; border-radius:10px; padding:10px 16px;
  box-shadow: 0 3px 0 #77718d, inset 0 1px 0 #fff; font-family:'Press Start 2P'; font-size:9px; transition:transform .05s; display:inline-flex; align-items:center; gap:8px; }
.plastic-btn { background:linear-gradient(#6a5fd0,var(--purple)); color:#fff; box-shadow:0 3px 0 #2e2678, inset 0 1px 0 rgba(255,255,255,.3); }
.plastic-btn:active, .sw:active { transform: translateY(2px); box-shadow:0 1px 0 #77718d; }
.sw.sm { padding:8px 10px; font-size:8px; }
.sw.act { background:linear-gradient(#7d72de,var(--purple)); color:#fff; box-shadow:0 3px 0 #2e2678; }
.led { width:8px; height:8px; border-radius:50%; background:#5a1020; }
.led.on { background:#ff2a4d; box-shadow:0 0 8px #ff2a4d; }

.console { margin-top:14px; background:linear-gradient(#d6d3e0,var(--gray)); border-radius:18px; padding:12px 14px;
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 10px rgba(0,0,0,.12), 0 10px 30px rgba(0,0,0,.4); }
.vol { font-family:'Press Start 2P'; font-size:8px; color:#4f43ae; display:flex; align-items:center; gap:6px; }
.vol input { accent-color:#4f43ae; width:90px; }

.card { background:linear-gradient(170deg,#2c2843,#221f35); border-radius:18px; padding:16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35); }
.ch { font-family:'Press Start 2P'; font-size:9px; color:#b6aef0; margin-bottom:12px; letter-spacing:1px; }
.rec { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; background:#1a1729; border-radius:8px; cursor:pointer; font-size:13px; }
.rec:hover { background:#2f2a4b; }

.pad { position:relative; background:linear-gradient(#d9d6e3,#b9b4c9); border-radius:60px; height:150px; margin-top:14px; color:#2a2640; }
.shoulder { position:absolute; top:-12px; width:80px; height:18px; background:#a29db6; border-radius:10px 10px 0 0; font-size:8px; font-family:'Press Start 2P'; display:flex; align-items:center; justify-content:center; }
.shoulder.l { left:26px; } .shoulder.r { right:26px; }
.dpad { position:absolute; left:22px; top:40px; width:66px; height:66px; }
.d { position:absolute; background:#2f2b3f; width:22px; height:22px; }
.d.up{left:22px;top:0;border-radius:3px 3px 0 0} .d.down{left:22px;bottom:0;border-radius:0 0 3px 3px}
.d.left{top:22px;left:0;border-radius:3px 0 0 3px} .d.right{top:22px;right:0;border-radius:0 3px 3px 0} .d.mid{left:22px;top:22px}
.mids { position:absolute; left:50%; top:62px; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; }
.pill { font-size:7px; font-family:'Press Start 2P'; display:flex; align-items:center; gap:4px; white-space:nowrap; }
.pill i { width:20px; height:8px; border-radius:6px; background:#5d5873; transform:rotate(-25deg); }
.faces { position:absolute; right:18px; top:30px; width:88px; height:88px; }
.face { position:absolute; width:30px; height:30px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:11px; line-height:1; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.face em { font-size:7px; font-style:normal; opacity:.85; }
.fx{left:29px;top:0;background:#0067b9} .fy{left:0;top:29px;background:#00a651}
.fa{right:0;top:29px;background:#e4002b} .fb{left:29px;bottom:0;background:#ffcc00;color:#2a2640}
.lit { filter:brightness(1.6) drop-shadow(0 0 8px #fff); transform:scale(.92); }
.pill.lit i { background:#4f43ae; }

.acc { border-bottom:1px solid rgba(255,255,255,.07); }
.acc-h { width:100%; display:flex; justify-content:space-between; padding:9px 0; font-weight:800; font-size:14px; }
.acc-b { font-size:13px; color:#bdb8d6; padding-bottom:10px; font-weight:300; line-height:1.5; }
.flow { display:flex; align-items:center; gap:6px; margin-top:14px; }
.box { font-family:'Press Start 2P'; font-size:7px; padding:8px 6px; border:2px solid #4f43ae; border-radius:6px; background:#1a1729; }
.pipe { flex:1; height:10px; position:relative; overflow:hidden; background:repeating-linear-gradient(90deg,#2f2a4b 0 4px,transparent 4px 8px); border-radius:4px; }
.pipe b { position:absolute; top:1px; width:8px; height:8px; left:-10px; animation: flow 1.1s linear infinite; }
@keyframes flow { to { left:100%; } }

.toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:#ffcc00; color:#1e1b2e;
  padding:12px 18px; border-radius:12px; font-weight:800; box-shadow:0 6px 0 #a88600, 0 12px 30px rgba(0,0,0,.4);
  animation: fadein .25s ease; z-index:50; max-width:90vw; text-align:center; }