/* Cabinet artwork, scoped to the shared six-game player. */
.arcade-player{--accent:#f4a54d;--accent-soft:#f4a54d28;--paper:#e9dfbf;--panel:#252b2a;background:radial-gradient(ellipse at 50% 0,#333a32,transparent 70%),#121816;color:#e9e2ce}
.arcade-player[data-game=bublbobl],.arcade-player[data-game=cupsoc]{--accent:#9bdc8c;--accent-soft:#9bdc8c28}
.arcade-player[data-game=pbobble]{--accent:#79d1d5;--accent-soft:#79d1d528}
.arcade-player[data-game=raiden2]{--accent:#f07866;--accent-soft:#f0786628}
.arcade-player #player{max-width:1100px;padding:14px 24px 30px}
.arcade-player .cabinet{border:1px solid #797764;border-radius:16px 16px 9px 9px;padding:0 18px;background:linear-gradient(95deg,#353b35,#1d2523 8%,#161d1b 92%,#343c35);box-shadow:0 24px 70px #0007,inset 0 1px #e5e2c43d,0 0 0 5px #080d0bb3}
.marquee{display:flex;align-items:center;gap:24px;padding:18px 24px;margin:0 -18px;background:repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 3px),linear-gradient(110deg,#e9e0bd,#bbb99d);color:#252f2a;border-bottom:6px solid #080e0c;box-shadow:inset 0 2px 4px #fff9,inset 0 -3px #837b61;position:relative;min-height:100px}
.marquee::after{content:'';position:absolute;bottom:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#cb6146 0 30%,#dd9f46 30% 60%,#50817b 60% 100%)}
.marquee-brand{font:900 italic 32px/1 monospace;letter-spacing:-3px;transform:rotate(-5deg);border:2px solid currentColor;border-radius:50%;padding:15px 12px 16px;white-space:nowrap}.marquee-brand span{font-size:14px;letter-spacing:-1px}
.marquee-title{flex:1;min-width:0}.marquee-title strong{display:block;font:900 italic clamp(17px,2.7vw,30px)/1.1 'Arial Black',Impact,sans-serif;letter-spacing:-.04em}.marquee-title>span{display:block;margin-top:7px;font:10px/1.4 monospace;letter-spacing:.12em}.marquee-title b{font-weight:400}
.power-lamp{display:flex;align-items:center;gap:8px;font:8px monospace;letter-spacing:1px}.power-lamp i{width:8px;height:8px;border-radius:50%;background:#9bef80;box-shadow:0 0 0 3px #384f3f,0 0 12px #69b854}
.arcade-player .bar{padding:0 8px;min-height:46px;background:none;color:#b5bba8;font:10px/1.4 monospace;letter-spacing:.04em}.arcade-player #status::before{content:'';display:inline-block;width:5px;height:5px;background:var(--accent);border-radius:50%;margin:0 9px 1px 0;box-shadow:0 0 8px var(--accent-soft)}
.arcade-player #fullscreen{border:1px solid #5c6654;border-radius:5px;background:#30392f;color:#d4dcc4;padding:7px 10px;min-height:34px}.arcade-player #fullscreen::before{content:'⤢';font-size:17px;margin-right:7px}
.arcade-player .screen{border:9px solid #070d0b;border-radius:22px;box-shadow:0 0 0 1px #4e5747,inset 0 0 30px #000,0 4px 4px #0008;overflow:hidden;max-height:clamp(320px,calc(100svh - 360px),650px);isolation:isolate}
.arcade-player .screen::after{content:'';position:absolute;inset:0;border-radius:12px;box-shadow:inset 0 0 18px #0009,inset 0 2px 2px #f2fff62b;pointer-events:none;z-index:2}
.arcade-player #cover{background:radial-gradient(ellipse at 50% 35%,var(--accent-soft),transparent 65%),repeating-linear-gradient(0deg,#0002 0 1px,transparent 1px 4px),#0c1714;gap:12px;padding:22px;overflow:auto}
.boot-emblem{position:relative;display:grid;place-items:center;width:104px;height:104px;flex-shrink:0;color:var(--accent)}
.boot-emblem>.ph{font-size:46px;filter:drop-shadow(0 0 14px var(--accent-soft))}.boot-emblem small{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:#12201b;padding:1px 8px;font:700 9px monospace;letter-spacing:3px}
.orbit{position:absolute;border:1px solid var(--accent);inset:8px;border-radius:26px;transform:rotate(45deg);opacity:.5}.orbit-two{inset:0;border-style:dashed;opacity:.25}
.arcade-player .boot-edition{margin:4px 0 0;color:var(--accent);font:10px/1.4 monospace;letter-spacing:.22em;text-transform:uppercase}
.arcade-player h1{max-width:600px;font:900 italic clamp(22px,3.5vw,40px)/1.05 'Arial Black',Impact,sans-serif;letter-spacing:-.03em;color:#f4ebcf;text-shadow:2px 3px #364a3b;margin:0 0 8px;text-wrap:balance}
.arcade-player #start{position:relative;border:1px solid #ffedb977;border-bottom:4px solid #533f23;border-radius:7px;padding:12px 35px;background:linear-gradient(#ffe1a4,#e0a956);color:#292c21;box-shadow:0 0 0 4px #0004,0 5px 16px #0006,inset 0 1px #fff8;font-weight:800;letter-spacing:.03em;min-height:48px}
.arcade-player #start::before{content:'▶';margin-right:12px;font-size:10px}.arcade-player #start:hover{background:linear-gradient(#fff0c6,#efbc6a)}.arcade-player #start:active{transform:translateY(2px)}
.arcade-player #cover .boot{color:#a0b0a3;max-width:360px;line-height:1.7;font-size:11px}
.arcade-player .rom-picker{display:block;margin:0;font-size:10px;color:#99ab9c}.arcade-player .rom-picker summary{min-height:25px;padding:4px;text-align:center}.arcade-player .rom-picker label{display:block}.arcade-player .rom-picker input{margin:4px auto}
.arcade-player .cabinet[data-state=loading] .orbit{animation:boot-orbit 4s linear infinite}.arcade-player .cabinet[data-state=loading] .orbit-two{animation-direction:reverse}.arcade-player .cabinet[data-state=loading] #start{opacity:.7}
@keyframes boot-orbit{to{transform:rotate(405deg)}}
/* Painted steel control deck, with four recessed fixing screws. */
.arcade-player .touch{min-height:156px;margin:20px -18px 0;padding:20px 45px 28px;border-top:4px solid #080d0b;background:radial-gradient(circle at 15px 15px,#191f1c 0 2px,#9c9e87 2px 4px,#242e25 4px 6px,transparent 7px),radial-gradient(circle at calc(100% - 15px) 15px,#191f1c 0 2px,#9c9e87 2px 4px,#242e25 4px 6px,transparent 7px),repeating-linear-gradient(100deg,#fff1 0 1px,transparent 1px 4px),linear-gradient(#8d9781,#616f60);box-shadow:inset 0 1px #eff7d888,inset 0 -10px #29382e;gap:25px;flex-wrap:nowrap}
.arcade-player .touch::after{content:'';position:absolute;bottom:13px;left:0;right:0;height:3px;background:linear-gradient(90deg,#da8a54 0 25%,#e5b875 25% 50%,#84aaa0 50% 75%,#d8d6b4 75%);pointer-events:none}
.arcade-player .system-buttons{flex-direction:row;gap:8px;width:auto;order:0}
.arcade-player .system-buttons button{display:flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(#e3dabe,#c1b895);border:1px solid #f5eacd;border-bottom:4px solid #615e4d;border-radius:6px;box-shadow:0 3px 0 #1a251db3,0 5px 9px #18261d55,inset 0 1px #fffa;color:#354137;text-shadow:none;font-size:11px;font-weight:750;min-height:44px;padding:9px 12px;flex:none}
.arcade-player .system-buttons button i{font-size:18px}.arcade-player .system-buttons button:first-child{background:linear-gradient(#ffe7ac,#e4bd65);border-color:#ffdc91;color:#624b22}.arcade-player .system-buttons button:nth-child(2){background:linear-gradient(#dce6ba,#9eb17e);border-color:#cbd9a9;color:#354b2f}.arcade-player .system-buttons button.pressed{transform:translateY(3px);filter:brightness(1.12);box-shadow:0 1px #142017}
.arcade-player .actions{gap:14px;position:relative;flex-shrink:0}
.arcade-player .actions button{--face:#e8543b;--shine:#ffc19c;--shade:#7e1d19;position:relative;width:59px;height:59px;min-height:44px;padding:0;border:5px solid #25342e;border-radius:50%;background:radial-gradient(ellipse at 35% 20%,var(--shine),var(--face) 44%,var(--shade) 100%);box-shadow:0 0 0 1px #b7bda0,inset 0 2px 2px #fff8,inset 0 -5px 1px #0005,0 5px 0 #14201c,0 9px 10px #14251c88;color:#fff7db;text-shadow:0 2px #0005;font:800 17px monospace;filter:none;transition:transform .07s,box-shadow .07s}
.arcade-player .actions button::after{content:'';position:absolute;top:5px;left:10px;right:10px;height:10px;background:linear-gradient(#fff5,transparent);border-radius:50%;pointer-events:none}
.arcade-player .actions button[data-color=blue]{--face:#4b9cab;--shine:#bbf0ee;--shade:#215967}.arcade-player .actions button[data-color=yellow]{--face:#edbd46;--shine:#fff3b3;--shade:#9d691f}.arcade-player .actions button[data-color=green]{--face:#77b969;--shine:#d4f3af;--shade:#346342}
.arcade-player .actions button.pressed{transform:translateY(4px);box-shadow:0 0 0 1px #ddd9ae,inset 0 4px 9px #0005,0 1px 0 #14201c;filter:brightness(1.15)}
.arcade-player .arcade-controller .actions[data-count="6"]{grid-template-columns:repeat(3,49px);gap:10px}.arcade-player .actions[data-count="6"] button{width:49px;height:49px}
.arcade-player .dpad{width:116px;height:116px;margin:0;transform:none;border:2px solid #24352b;border-radius:50%;background:repeating-conic-gradient(#c6d0ac 0deg 2deg,transparent 2deg 45deg),radial-gradient(circle,#1d2c25 0 30%,#4e6152 31% 48%,#2a3d32 49% 65%,#8f9d80 66% 68%,#374d3e 69%);box-shadow:inset 0 3px 7px #0009,0 1px #e6e9c9;flex-shrink:0}
.arcade-player .dpad button{opacity:0;pointer-events:none}.arcade-player .dpad:focus-within{outline:2px solid var(--accent);outline-offset:5px}
.arcade-player .stick-shaft{display:block;position:absolute;left:calc(50% - 7px);top:calc(50% - 3px);width:14px;height:33px;border-radius:5px;background:linear-gradient(90deg,#343b35,#e8e9d3 45%,#737e6e 65%,#222);transform:translate(var(--stick-x,0px),var(--stick-y,0px));box-shadow:2px 4px 4px #0008;pointer-events:none}
.arcade-player .stick-ball{display:block;position:absolute;left:calc(50% - 27px);top:calc(50% - 34px);width:54px;height:54px;border-radius:50%;background:radial-gradient(circle at 31% 22%,#ffcf9e,#e95e42 18%,#b52c21 60%,#571716 94%);border:1px solid #f39165;box-shadow:inset -4px -6px 7px #6e1e2799,inset 2px 2px 4px #fff5,5px 9px 10px #0009;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
.arcade-player .guide{margin:26px 8px 0;padding:18px 4px;border-top:1px solid #71816a50;gap:30px;color:#a3af9e;line-height:1.85}.arcade-player .guide h2{font-size:12px;color:#dddcc1}.arcade-player kbd{background:#26352d;border-color:#53664e;box-shadow:0 2px #0d1812;border-radius:3px;color:#d6dfc5}.arcade-player .reset-note,.arcade-player #player>details{margin-left:12px;color:#8f9e8d}
.arcade-player .expanded .marquee{display:none}.arcade-player.expanded .marquee{display:none}.arcade-player.expanded .cabinet{border-radius:0;padding:0 18px}.arcade-player.expanded .screen{max-height:none}.arcade-player.expanded .touch{margin-top:12px}
@media(max-width:750px){.arcade-player #player{padding:12px}.marquee{gap:14px;padding:14px 18px;min-height:85px}.marquee-brand{font-size:24px;padding:12px 10px}.power-lamp{display:none}.marquee-title>span{font-size:8px}.arcade-player .touch{padding:18px 24px 28px;gap:14px;flex-wrap:wrap}.arcade-player .system-buttons{order:-1;width:100%;justify-content:center}.arcade-player .guide{grid-template-columns:1fr;gap:8px}.arcade-player .screen{max-height:none}.arcade-player .boot-emblem{width:75px;height:75px}.boot-emblem>.ph{font-size:32px}.arcade-player #cover{gap:10px;padding:20px}.arcade-player .marquee-title b{display:none}}
/* Mobile keeps the existing full-viewport game canvas and floating controls. */
html[data-controls=touch] .arcade-player .cabinet{padding:0;border:0;border-radius:0;box-shadow:none;background:#000}
html[data-controls=touch] .arcade-player .marquee{display:none}
html[data-controls=touch] .arcade-player .screen{border:0;border-radius:0;box-shadow:none;max-height:none;overflow:hidden}
html[data-controls=touch] .arcade-player .screen::after{display:none}
html[data-controls=touch] .arcade-player .touch{margin:0;padding:0;min-height:0;border:0;background:none;box-shadow:none;display:block}
html[data-controls=touch] .arcade-player .touch::after{display:none}
html[data-controls=touch] .arcade-player .system-buttons{width:auto;gap:7px;left:max(10px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top));order:0}
html[data-controls=touch] .arcade-player .system-buttons button{min-height:44px;padding:8px 10px;font-size:10px;gap:5px;border-bottom-width:3px}
html[data-controls=touch] .arcade-player .system-buttons button[data-code=KeyP] span{display:none}
html[data-controls=touch] .arcade-player .system-buttons button[data-code=KeyP]{width:44px;padding:6px}
html[data-controls=touch] .arcade-player .bar{right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));min-height:0;padding:0}
html[data-controls=touch] .arcade-player #fullscreen{min-height:44px;padding:7px 10px;font-size:10px;background:#29392de8;box-shadow:0 3px 0 #070d0b}
html[data-controls=touch] .arcade-player #fullscreen::before{display:none}
html[data-controls=touch] .arcade-player .dpad{position:absolute;left:max(20px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:122px;height:122px;background:radial-gradient(circle,#1b2923cc 0 30%,#5d735da8 31% 48%,#243b2bb3 49% 65%,#9da988b3 66% 68%,#283e2bb3 69%)}
html[data-controls=touch] .arcade-player .actions{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));gap:13px;grid-template-columns:repeat(2,59px)}
html[data-controls=touch] .arcade-player .actions[data-count="1"]{grid-template-columns:59px}
html[data-controls=touch] .arcade-player .arcade-controller .actions[data-count="6"]{grid-template-columns:repeat(3,49px);gap:10px}
html[data-controls=touch] .arcade-player .actions[data-count="6"] button{width:49px;height:49px}
html[data-controls=touch] .arcade-player #cover{padding:70px 22px 170px;gap:14px}
html[data-controls=touch] .arcade-player #cover h1{font-size:clamp(26px,5vw,44px)}
html[data-controls=touch] .arcade-player .boot-emblem{width:110px;height:110px}
html[data-controls=touch] .arcade-player .boot-emblem>.ph{font-size:48px}
html[data-controls=touch] .arcade-player .rotate-tip{bottom:max(158px,calc(env(safe-area-inset-bottom) + 140px));color:#bacbb6;font:10px/1.5 sans-serif;text-shadow:0 1px 4px #000}
html[data-controls=touch] .arcade-player .rom-picker{display:block}
@media(max-width:360px){html[data-controls=touch] .arcade-player .system-buttons{gap:5px;left:7px}html[data-controls=touch] .arcade-player .system-buttons button{padding:7px;font-size:9px}html[data-controls=touch] .arcade-player .dpad{left:12px;width:108px;height:108px}html[data-controls=touch] .arcade-player .actions{right:12px}html[data-controls=touch] .arcade-player #fullscreen{font-size:9px;padding:7px}html[data-controls=touch] .arcade-player .arcade-controller .actions[data-count="6"]{grid-template-columns:repeat(3,46px);gap:8px}html[data-controls=touch] .arcade-player .actions[data-count="6"] button{width:46px;height:46px}}
@media(orientation:landscape) and (max-height:600px){.arcade-player .marquee{display:none}.arcade-player .cabinet{border-radius:0}.arcade-player .screen{border-width:4px}.arcade-player .touch{border:0;box-shadow:none;background:none;margin:0;min-height:0;padding:0}.arcade-player .touch::after{display:none}.arcade-player .system-buttons{width:auto}.arcade-player .boot-emblem{display:none}.arcade-player #cover{gap:8px;padding:12px}.arcade-player h1{font-size:24px}.arcade-player .rom-picker{display:none}html[data-controls=touch] .arcade-player #cover{padding:60px 175px 20px;gap:8px}html[data-controls=touch] .arcade-player #cover h1{font-size:26px}html[data-controls=touch] .arcade-player .boot-emblem{display:none}html[data-controls=touch] .arcade-player .boot-edition{margin:0}html[data-controls=touch] .arcade-player .rom-picker summary{font-size:9px}html[data-controls=touch] .arcade-player .dpad{bottom:max(18px,env(safe-area-inset-bottom))}html[data-controls=touch] .arcade-player .actions{bottom:max(22px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.arcade-player *,.arcade-player *::before,.arcade-player *::after{animation:none!important;transition:none!important}}
html[data-controls=touch] .arcade-player .system-buttons button{text-shadow:none;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
@media(min-width:950px) and (min-height:600px){.arcade-player:not(.expanded) .cabinet::before,.arcade-player:not(.expanded) .cabinet::after{content:'';position:absolute;top:220px;width:34px;height:106px;border-radius:4px;background:repeating-linear-gradient(0deg,#080e0c 0 3px,#ffffff0b 3px 4px,transparent 4px 9px);opacity:.8;pointer-events:none}.arcade-player:not(.expanded) .cabinet::before{left:54px}.arcade-player:not(.expanded) .cabinet::after{right:54px}}
html[data-controls=touch] .arcade-player .system-buttons button:first-child{color:#624b22}
html[data-controls=touch] .arcade-player .system-buttons button:nth-child(2){color:#354b2f}
@media(max-width:360px){html[data-controls=touch] .arcade-player .system-buttons button:first-child{width:44px;padding:7px}html[data-controls=touch] .arcade-player .system-buttons button:first-child span{display:none}}
@media(orientation:portrait) and (max-height:650px){html[data-controls=touch] .arcade-player #cover{padding:68px 18px 175px;gap:8px}html[data-controls=touch] .arcade-player .boot-emblem{width:56px;height:56px}html[data-controls=touch] .arcade-player .boot-emblem>.ph{font-size:28px}html[data-controls=touch] .arcade-player .boot-emblem small{font-size:7px;bottom:-5px}}
@media(max-width:750px){html[data-controls=desktop] .arcade-player .screen{max-height:clamp(240px,calc(100svh - 410px),500px)}}
@media(max-width:750px) and (max-height:800px){html[data-controls=desktop] .arcade-player #cover{gap:8px;padding:14px}html[data-controls=desktop] .arcade-player .boot-emblem{display:none}html[data-controls=desktop] .arcade-player #cover h1{font-size:24px}}
