@font-face {
  font-family: "Dotted Songti";
  src: url("/fonts/dotted-songti-headings.otf") format("opentype");
  font-display: swap;
}
:root {
  --ink: #161428;
  --paper: #f4efdf;
  --hot: #ff5c5c;
  --mint: #43d9ad;
  --sun: #ffd166;
  --blue: #4f7cff;
  --muted: #716d80;
  --line: rgba(22, 20, 40, .16);
  --shadow: 8px 8px 0 #161428;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25;
  background-image: linear-gradient(rgba(22,20,40,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(22,20,40,.035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { height: 84px; padding: 0 clamp(24px,5vw,76px); border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--hot); color: var(--paper); font: 900 23px/1 system-ui; transform: rotate(-3deg); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(67,217,173,.34)); }
.brand strong { display: block; letter-spacing: .18em; font: 900 16px/1 system-ui; }
.brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .2em; color: var(--muted); }
nav { display: flex; align-items: center; gap: 28px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
nav a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-button { border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; text-decoration: underline 2px; text-underline-offset: 5px; cursor: pointer; }
main { position: relative; z-index: 1; }
.hero { min-height: 570px; padding: 78px clamp(24px,8vw,120px) 72px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); align-items: center; border-bottom: 2px solid var(--ink); overflow: hidden; }
.eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 6px; background: var(--mint); border: 1px solid var(--ink); }
h1 { margin: 22px 0; font: 400 clamp(52px,7vw,96px)/.9 "Dotted Songti", system-ui, sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
h1 em, h2 em { color: var(--hot); font-style: normal; }
.lede { max-width: 560px; margin: 0 0 34px; color: var(--muted); font: 600 15px/1.75 system-ui; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px; border: 2px solid var(--ink); text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .1em; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--sun); }
.hero-visual { width: min(430px,100%); aspect-ratio: 1; position: relative; justify-self: center; }
.orbit { position: absolute; inset: 9%; border: 2px solid var(--ink); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 30px; height: 30px; background: var(--mint); border: 2px solid var(--ink); top: 6%; left: 14%; box-shadow: 4px 4px 0 var(--ink); }
.orbit-two { inset: 24%; border-style: dashed; animation-duration: 11s; animation-direction: reverse; }
.orbit-two::after { width: 19px; height: 19px; background: var(--blue); top: auto; bottom: 3%; left: auto; right: 20%; }
.hero-core { position: absolute; inset: 38%; background: var(--hot); border: 3px solid var(--ink); transform: rotate(45deg); box-shadow: 9px 9px 0 var(--ink); display: grid; place-items: center; }
.hero-core span { width: 32%; height: 32%; background: var(--sun); border: 2px solid var(--ink); }
.pixel-star { position: absolute; font: 900 30px/1 system-ui; }
.s1 { top: 5%; right: 8%; color: var(--hot); }.s2 { bottom: 7%; left: 8%; color: var(--blue); }.s3 { top: 20%; left: 0; font-size: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
.library { padding: 70px clamp(24px,5vw,76px) 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 4px 0 0; font: 400 clamp(34px,5vw,58px)/1 "Dotted Songti", system-ui; letter-spacing: -.025em; text-transform: uppercase; }
.counter { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.game-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.game-card { grid-column: span 4; position: relative; border: 2px solid var(--ink); background: #fffaf0; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.game-card:nth-child(5n+2), .game-card:nth-child(5n+4) { transform: translateY(18px); }
.game-card:hover { transform: translate(4px,4px); box-shadow: 4px 4px 0 var(--ink); }
.game-card:nth-child(5n+2):hover, .game-card:nth-child(5n+4):hover { transform: translate(4px,22px); }
.cover-wrap { aspect-ratio: 16/10; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--ink); }
.cover-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s; }
.game-card:hover img { transform: scale(1.035); }
.card-copy { padding: 19px 20px 21px; }
.card-topline { display: flex; justify-content: space-between; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.game-card h3 { margin: 16px 0 8px; font: 950 25px/1 system-ui; letter-spacing: -.04em; text-transform: uppercase; }
.game-card p { min-height: 40px; margin: 0 0 18px; font: 550 12px/1.55 system-ui; color: var(--muted); }
.play-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.play-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--paper); background: var(--ink); }
.empty-card { grid-column: 1/-1; border: 2px dashed var(--ink); padding: 60px; text-align: center; color: var(--muted); }
footer { min-height: 72px; border-top: 2px solid var(--ink); padding: 0 clamp(24px,5vw,76px); display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.player-dialog { width: min(1120px,96vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.player-dialog::backdrop { background: rgba(22,20,40,.88); backdrop-filter: blur(5px); }
.player-shell { border: 3px solid var(--ink); background: #0f0e1d; box-shadow: 12px 12px 0 var(--hot); }
.player-bar { min-height: 52px; color: var(--paper); display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 18px; font-size: 11px; letter-spacing: .12em; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.player-actions { display: flex; gap: 8px; }
.icon-button { min-width: 42px; height: 34px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.07); color: white; font: 800 9px/1 inherit; cursor: pointer; }
.icon-button.close { font-size: 24px; }
.screen-wrap { aspect-ratio: 16/9; background: #080711; }
.screen-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.control-strip { min-height: 52px; padding: 10px 18px; display: flex; gap: 28px; align-items: center; color: #aaa6ba; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
kbd { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-right: 3px; padding: 0 5px; border: 1px solid #59566a; background: #252337; color: #fff; font: 800 10px/1 inherit; box-shadow: 0 2px 0 #05040c; }

/* Review desk */
.admin-main { padding: 60px clamp(24px,5vw,76px) 90px; }
.admin-intro { max-width: 900px; margin-bottom: 55px; }
.admin-intro h1 { font-size: clamp(48px,6vw,78px); }
.admin-intro > p:last-child { max-width: 650px; color: var(--muted); font: 600 14px/1.7 system-ui; }
.admin-tabs { display:flex; gap:10px; margin:0 0 22px; }
.admin-tab { min-height:42px; padding:0 18px; border:2px solid var(--ink); color:var(--ink); background:#fffaf0; box-shadow:3px 3px 0 var(--ink); cursor:pointer; font:900 10px/1 system-ui; letter-spacing:.06em; }
.admin-tab:hover,.admin-tab.active { background:var(--sun); transform:translate(1px,1px); box-shadow:2px 2px 0 var(--ink); }
.review-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 30px; align-items: start; }
.review-layout aside, .review-panel { border: 2px solid var(--ink); background: #fffaf0; box-shadow: var(--shadow); }
.queue-heading { padding: 18px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; }
.queue-heading h2 { margin: 0; font: 900 17px/1 system-ui; text-transform: uppercase; }
.queue-heading span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--paper); background: var(--hot); border: 1px solid var(--ink); font-size: 10px; font-weight: 900; }
.queue { min-height: 260px; }
.queue-item { width: 100%; padding: 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; display: grid; grid-template-columns: 66px 1fr; gap: 13px; }
.queue-item:hover, .queue-item.active { background: #fff2c7; }
.queue-item.active { box-shadow: inset 5px 0 0 var(--hot); }
.queue-item img { width: 66px; height: 50px; border: 1px solid var(--ink); object-fit: cover; background: var(--ink); }
.queue-item strong { display: block; margin: 4px 0 7px; font: 900 13px/1 system-ui; text-transform: uppercase; }
.queue-item small { color: var(--muted); font-size: 8px; }
.queue-empty { padding: 45px 20px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.6; }
.review-panel { min-height: 520px; }
.review-panel.empty-state { display: grid; place-content: center; text-align: center; color: var(--muted); padding: 50px; }
.empty-icon { font-size: 52px; color: var(--hot); }
.review-panel h2 { font: 900 22px/1 system-ui; text-transform: uppercase; }
.review-toolbar { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); gap: 20px; }
.review-meta h2 { margin: 0 0 7px; }.review-meta p { margin: 0; color: var(--muted); font-size: 9px; }
.review-buttons { display: flex; gap: 9px; }
.review-button { border: 2px solid var(--ink); padding: 10px 14px; font: 900 9px/1 inherit; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.review-button.publish { background: var(--mint); }.review-button.reject { background: #fff; }
.review-button.delete { color:#761c1c; background:#ffb3ad; }
.review-button:disabled { opacity:.45; cursor:wait; transform:none; box-shadow:3px 3px 0 var(--ink); }
.review-button:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.review-game { aspect-ratio: 16/9; background: #0a0912; }
.review-game iframe { width: 100%; height: 100%; border: 0; display: block; }
.published-note { padding:14px 20px; color:#7b2222; background:#fff0e8; border-top:2px solid var(--ink); font:800 9px/1.5 system-ui; }
.checklist { display: flex; flex-wrap: wrap; gap: 16px 25px; padding: 15px 20px; border-top: 2px solid var(--ink); color: var(--muted); font-size: 9px; }
.checklist label { display: flex; align-items: center; gap: 6px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 14px 18px; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); box-shadow: 5px 5px 0 var(--hot); font-size: 10px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: none; }
.admin-page [hidden] { display: none !important; }
.admin-login { min-height: 100vh; padding: 28px; display: grid; place-items: center; }
.admin-login-card { width: min(460px,100%); padding: clamp(28px,5vw,52px); border: 2px solid var(--ink); background: #fffaf0; box-shadow: 9px 9px 0 var(--ink); }
.admin-login-card > img { display: block; margin-bottom: 24px; }
.admin-login-card h1 { margin: 12px 0 14px; font: 900 clamp(32px,6vw,52px)/1.05 system-ui; }
.admin-login-card > p:not(.eyebrow,.login-error) { color: var(--muted); font: 600 13px/1.65 system-ui; }
.admin-login-card label { display: block; margin: 26px 0 8px; font: 900 10px/1 system-ui; letter-spacing: .1em; }
.admin-login-card input { width: 100%; height: 54px; padding: 0 15px; border: 2px solid var(--ink); background: white; font: 800 22px/1 system-ui; letter-spacing: .22em; }
.admin-login-card button { width: 100%; min-height: 48px; margin-top: 12px; border: 2px solid var(--ink); color: var(--ink); background: var(--mint); box-shadow: 4px 4px 0 var(--ink); font: 900 11px/1 system-ui; cursor: pointer; }
.admin-login-card a { color: var(--ink); font: 800 10px/1 system-ui; }
.login-error { min-height: 19px; margin: 12px 0; color: #c12626; font: 800 11px/1.5 system-ui; }
.review-meta h2 small { color: var(--hot); font-size: 10px; text-transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }.hero-visual { width: 340px; margin-top: 45px; }
  .game-card { grid-column: span 6; }.review-layout { grid-template-columns: 1fr; }.queue { min-height: 0; }.control-strip { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .site-header { height: 72px; }.site-header nav { gap: 14px; }.site-header nav a:first-child { display: none; }
  .hero { padding-top: 55px; }.hero-visual { width: 270px; }.game-card { grid-column: 1/-1; }.game-card:nth-child(n) { transform: none; }
  .section-heading { align-items: start; }.counter { margin-top: 10px; }.player-dialog { width: 100vw; }.player-shell { box-shadow: none; border-width: 0; }
  .control-strip span:last-child { display: none; } footer { flex-direction: column; justify-content: center; gap: 8px; }
  .review-toolbar { align-items: flex-start; flex-direction: column; }.review-buttons { width: 100%; }.review-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* CRT arcade selector */
.arcade-page {
  --cabinet: #171522;
  --cabinet-edge: #2d2939;
  --screen: #070814;
  --phosphor: #dffcf2;
  margin: 0;
  color: var(--paper);
  background-color: #05050d;
  background-image:
    linear-gradient(rgba(4,4,14,.18),rgba(4,4,14,.34)),
    url("/assets/dream-arcade-page-background.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}
.arcade-page::before {
  z-index: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.arcade-room { position: relative; z-index: 1; min-height: 100vh; padding: clamp(18px,3vw,42px); display: grid; place-items: center; }
.arcade-cabinet {
  width: min(1320px, 96vw);
  padding: clamp(14px,2vw,26px);
  border: 1px solid #4a4559;
  border-radius: 28px 28px 42px 42px;
  background: linear-gradient(145deg,#292633 0%,var(--cabinet) 38%,#0d0c13 100%);
  box-shadow: 0 36px 90px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.11), inset 0 -7px 0 #09080d;
}
.cabinet-header { min-height: 68px; padding: 0 8px 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.cabinet-brand { color: var(--paper); display: inline-flex; gap: 12px; align-items: center; text-decoration: none; justify-self: start; }
.cabinet-brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: var(--ink); background: var(--hot); box-shadow: 0 0 24px rgba(255,92,92,.28); font: 950 20px/1 system-ui; }
.cabinet-brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(67,217,173,.32)); }
.cabinet-brand strong { display: block; font: 900 15px/1 system-ui; letter-spacing: .18em; }
.cabinet-brand-copy { min-width: 0; }
.cabinet-brand-line { display: flex; align-items: baseline; gap: 11px; white-space: nowrap; }
.cabinet-brand-line em { color: #716d80; font: 650 12px/1 system-ui; letter-spacing: .035em; opacity: .82; }
.cabinet-brand small { display: block; margin-top: 6px; color: #777386; font-size: 7px; letter-spacing: .18em; }
.cabinet-status { display: flex; gap: 9px; align-items: center; color: #8d8999; font-size: 8px; letter-spacing: .18em; }
.cabinet-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px var(--mint); }
.cabinet-admin { justify-self: end; color: #a8a4b4; font-size: 9px; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid #4e4a5b; padding-bottom: 4px; }
.cabinet-admin:hover { color: var(--paper); border-color: var(--mint); }
.monitor-frame {
  padding: clamp(12px,1.7vw,22px);
  border-radius: 40px / 32px;
  background: linear-gradient(145deg,#050509,#2c2934 45%,#08070c 100%);
  box-shadow: inset 0 0 0 2px #07070b, inset 0 0 0 4px #383440, 0 8px 20px rgba(0,0,0,.5);
}
.monitor-glass {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 7% / 9%;
  background: #03040b;
  box-shadow: inset 0 0 60px #000, 0 0 0 3px #05050a, 0 0 0 5px #3b3743, 0 0 34px rgba(67,217,173,.09);
}
.arcade-cabinet:has(.monitor-glass.player-mode) { width: min(1320px,96vw,max(680px,calc((100vh - 330px)*16/9))); }
.monitor-glass.player-mode { aspect-ratio: auto; }
.signal-ripple { position:absolute; z-index:24; left:var(--ripple-x,50%); top:var(--ripple-y,50%); width:16px; height:16px; border:2px solid rgba(67,217,173,.82); border-radius:50%; opacity:0; pointer-events:none; transform:translate(-50%,-50%); box-shadow:0 0 12px rgba(67,217,173,.72),inset 0 0 8px rgba(67,217,173,.38); }
.signal-ripple.active { animation:signal-ripple .72s cubic-bezier(.12,.64,.23,1) both; }
@keyframes signal-ripple { 0%{width:16px;height:16px;opacity:.92} 58%{opacity:.58} 100%{width:var(--ripple-size,1200px);height:var(--ripple-size,1200px);opacity:0} }
.selector-view { position: absolute; inset: 0; overflow: hidden; color: var(--phosphor); background: linear-gradient(160deg,rgba(79,124,255,.08),transparent 36%), var(--screen); text-shadow: 0 0 8px currentColor; }
.selector-view::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .32; background-image: linear-gradient(rgba(67,217,173,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(79,124,255,.08) 1px,transparent 1px); background-size: 48px 48px; transform: perspective(550px) rotateX(58deg) scale(1.35); transform-origin: center 80%; }
.selector-view > *:not(.crt-noise,.crt-scanlines,.crt-vignette,.ambient-sweep) { position: relative; z-index: 2; }
.crt-noise,.crt-scanlines,.crt-vignette,.ambient-sweep { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.crt-noise { opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.crt-scanlines { opacity: .42; background: repeating-linear-gradient(to bottom,transparent 0,transparent 4px,rgba(0,0,0,.18) 5px,transparent 6px); }
.crt-vignette { box-shadow: inset 0 0 38px rgba(0,0,0,.45), inset 0 0 110px rgba(0,0,0,.18); border-radius: inherit; }
.selector-view::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: linear-gradient(118deg,rgba(255,255,255,.075),transparent 17%,transparent 78%,rgba(157,123,255,.035)); mix-blend-mode: screen; }
.ambient-sweep { inset: auto 4% 0; height: 16px; opacity: 0; background: linear-gradient(to bottom,transparent,rgba(225,236,255,.025),rgba(235,242,255,.055),transparent); box-shadow: 0 0 4px rgba(220,230,255,.08); }
.ambient-sweep.scanning { animation: selector-sweep 2.1s linear 1; }
@keyframes selector-sweep { 0% { opacity: 0; transform: translateY(-66vh); } 12%,88% { opacity: 1; } 100% { opacity: 0; transform: translateY(66vh); } }
.screen-header { height: 11%; min-height: 52px; padding: 0 6.5%; border-bottom: 1px solid rgba(223,252,242,.14); display: flex; align-items: center; justify-content: space-between; color: #aaa7bc; font-size: clamp(8px,1vw,11px); letter-spacing: .18em; }
.status-pip { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.arcade-page .counter { margin: 0; color: var(--mint); font-size: inherit; }
.selector-layout { height: 78%; padding: 4.2% 6.5% 3.2%; display: grid; grid-template-columns: minmax(260px,.86fr) minmax(340px,1.25fr); gap: clamp(28px,5vw,74px); }
.channel-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.screen-kicker { margin: 0 0 8px; color: var(--hot); font-size: clamp(8px,.8vw,10px); letter-spacing: .2em; }
.arcade-page h1 { margin: 0; color: var(--paper); font: 400 clamp(32px,4.2vw,64px)/1 "Dotted Songti",system-ui,sans-serif; letter-spacing: -.025em; text-shadow: 0 0 20px rgba(244,239,223,.2); }
.selector-help { margin: 13px 0 22px; color: #817d90; font: 500 clamp(9px,1vw,12px)/1.6 system-ui; }
.arcade-page .game-grid { flex: 1 1 auto; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 1px 12px 8px 1px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: auto; scrollbar-color: var(--selected-accent,var(--mint)) rgba(38,34,54,.65); }
.arcade-page .game-grid::-webkit-scrollbar { width: 9px; }
.arcade-page .game-grid::-webkit-scrollbar-track { background: rgba(38,34,54,.65); border-radius: 8px; }
.arcade-page .game-grid::-webkit-scrollbar-thumb { background: var(--selected-accent,var(--mint)); border: 2px solid rgba(38,34,54,.65); border-radius: 8px; box-shadow: 0 0 8px color-mix(in srgb,var(--selected-accent,var(--mint)) 35%,transparent); }
.arcade-page .game-card { flex: none; display: grid; grid-template-columns: clamp(74px,8vw,112px) 1fr; min-height: 92px; color: #b3afbf; border: 1px solid rgba(157,123,255,.22); border-radius: 3px; background: rgba(17,15,32,.8); box-shadow: none; transform: none; overflow: hidden; text-shadow: none; }
.arcade-page .game-card:nth-child(n),.arcade-page .game-card:nth-child(n):hover { transform: none; }
.arcade-page .game-card:hover { border-color: rgba(67,217,173,.62); background: rgba(25,23,43,.94); box-shadow: 0 0 18px rgba(67,217,173,.08), inset 3px 0 0 var(--mint); }
.arcade-page .cover-wrap { aspect-ratio: auto; height: 100%; border: 0; border-right: 1px solid rgba(255,255,255,.1); }
.arcade-page .cover-wrap img { filter: saturate(.78) contrast(1.05) brightness(.75); }
.arcade-page .card-copy { min-width: 0; padding: 12px 13px; }
.arcade-page .card-topline { color: #676378; font-size: 7px; }
.arcade-page .game-card h3 { margin: 9px 0 4px; color: var(--paper); font-size: clamp(15px,1.6vw,22px); text-shadow: 0 0 12px rgba(244,239,223,.18); }
.arcade-page .game-card p { min-height: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #777386; font-size: 9px; }
.arcade-page .play-row { margin-top: 9px; padding-top: 8px; border-color: rgba(255,255,255,.08); color: #8f8b9e; font-size: 7px; }
.arcade-page .play-icon { width: 21px; height: 18px; color: var(--mint); background: transparent; }
.preview-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; border-left: 1px solid rgba(255,255,255,.08); padding-left: clamp(24px,4vw,58px); }
.preview-placeholder { position: relative; display: grid; place-content: center; gap: 12px; text-align: center; min-height: 0; color: #5e5a70; }
.preview-placeholder strong { color: #8f8a9f; font: 900 clamp(16px,2vw,26px)/1 system-ui; letter-spacing: .12em; }
.preview-placeholder small { font-size: 8px; letter-spacing: .1em; }
.preview-orbit { width: clamp(100px,15vw,210px); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(79,124,255,.35); border-radius: 50%; box-shadow: 0 0 25px rgba(79,124,255,.08), inset 0 0 25px rgba(79,124,255,.06); }
.preview-orbit::before,.preview-orbit::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; }
.preview-orbit::before { width: 58%; height: 58%; border: 1px dashed rgba(67,217,173,.28); }
.preview-orbit::after { width: 9px; height: 9px; background: var(--hot); box-shadow: 0 0 13px var(--hot); }
.preview-readout { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; padding: 15px 0 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 8px; }
.preview-readout span { color: #5f5b70; }.preview-readout strong { color: #aaa6b7; font-weight: 700; }
.screen-footer { height: 11%; min-height: 44px; padding: 0 6.5%; border-top: 1px solid rgba(223,252,242,.12); display: flex; gap: 7%; align-items: center; color: #656176; font-size: clamp(7px,.72vw,9px); letter-spacing: .06em; }
.cabinet-controls { min-height: 74px; padding: 18px 16px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #5f5b69; font-size: 8px; letter-spacing: .14em; }
.speaker { display: flex; gap: 7px; }.speaker span { width: 5px; height: 30px; border-radius: 5px; background: #09080d; box-shadow: inset 1px 0 rgba(255,255,255,.08); }
.cabinet-label { text-align: center; }
.cabinet-buttons { justify-self: end; display: flex; gap: 17px; align-items: center; }
.cabinet-buttons span { display: block; border-radius: 50%; background: #09080d; box-shadow: inset 0 2px 2px rgba(255,255,255,.12),0 3px 0 #060509; }
.button-small { width: 18px; height: 18px; }.button-large { width: 34px; height: 34px; border: 5px solid #25212d; }
.arcade-page .empty-card { border-color: rgba(255,255,255,.14); color: #777386; padding: 30px 18px; }
.arcade-page [hidden] { display: none !important; }
.channel-button {
  --channel-accent: var(--selected-accent,var(--mint));
  width: 100%; min-height: 66px; padding: 9px 12px; border: 1px solid rgba(157,123,255,.19); border-radius: 3px;
  color: #817d91; background: rgba(16,14,29,.74); cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 48px 31px 1fr 16px; gap: 10px; align-items: center;
  font-family: inherit; transition: border-color .15s,background .15s,box-shadow .15s,color .15s;
}
.channel-button:hover,.channel-button:focus-visible { outline: none; color: #beb9ca; border-color: rgba(67,217,173,.52); background: rgba(24,22,40,.92); }
.channel-button.selected { color: var(--paper); border-color: var(--channel-accent); background: rgba(29,26,48,.96); box-shadow: 0 0 18px color-mix(in srgb,var(--channel-accent) 18%,transparent),inset 3px 0 0 var(--channel-accent); }
.channel-number { color: #615d70; font-size: 8px; letter-spacing: .12em; }.channel-button.selected .channel-number { color: var(--channel-accent); }
.channel-signal { display: flex; align-items: end; justify-content: center; gap: 2px; height: 18px; }
.channel-signal i { display: block; width: 2px; background: #403c50; }.channel-signal i:nth-child(1){height:5px}.channel-signal i:nth-child(2){height:11px}.channel-signal i:nth-child(3){height:17px}.channel-signal i:nth-child(4){height:8px}
.channel-button.selected .channel-signal i { background: var(--channel-accent); box-shadow: 0 0 6px var(--channel-accent); }
.channel-name { min-width: 0; }
.channel-title-line { min-width: 0; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; overflow: hidden; }
.channel-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 clamp(13px,1.35vw,18px)/1.1 system-ui; letter-spacing: .02em; }
.channel-name small { flex: none; color: #5f5b6d; font-size: 7px; letter-spacing: .08em; }
.channel-arrow { justify-self: end; color: #514d60; font-size: 22px; }.channel-button.selected .channel-arrow { color: var(--channel-accent); text-shadow: 0 0 8px var(--channel-accent); }
.selected-cover-frame { position: relative; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #05050d; box-shadow: inset 0 0 38px #000; }
.selected-cover-frame::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(105deg,rgba(255,255,255,.055),transparent 25%,transparent 76%,rgba(79,124,255,.045)); }
.selected-cover-frame img { width:100%; height:100%; display:block; object-fit:contain; object-position:center; filter:saturate(.84) contrast(1.06) brightness(.78); animation:tune-in .28s ease-out; }
@keyframes tune-in { from { opacity:.1; filter:saturate(.2) contrast(1.8) brightness(.35); } }
.cover-corners { position:absolute; inset:10px; pointer-events:none; }
.cover-corners i { position:absolute; width:18px; height:18px; border-color:rgba(223,252,242,.5); }
.cover-corners i:nth-child(1){left:0;top:0;border-left:1px solid;border-top:1px solid}.cover-corners i:nth-child(2){right:0;top:0;border-right:1px solid;border-top:1px solid}.cover-corners i:nth-child(3){left:0;bottom:0;border-left:1px solid;border-bottom:1px solid}.cover-corners i:nth-child(4){right:0;bottom:0;border-right:1px solid;border-bottom:1px solid}
.preview-copy { padding-top: 15px; text-shadow:none; }
.preview-topline { display:flex; justify-content:space-between; color:#656174; font-size:7px; letter-spacing:.14em; }
.preview-topline span:first-child { color:var(--selected-accent,var(--mint)); }
.preview-copy h2 { margin:10px 0 6px; color:var(--paper); font:400 clamp(20px,2.5vw,34px)/1 "Dotted Songti",system-ui; letter-spacing:-.015em; text-shadow:0 0 18px rgba(244,239,223,.18); }
.preview-copy > p { min-height:32px; margin:0 0 10px; color:#7c788b; font:500 clamp(8px,.82vw,10px)/1.55 system-ui; }
.preview-copy .preview-readout { margin-bottom:12px; padding-top:10px; }
.launch-button { width:100%; min-height:42px; padding:0 10px 0 15px; border:1px solid var(--selected-accent,var(--mint)); color:var(--paper); background:color-mix(in srgb,var(--selected-accent,var(--mint)) 12%,#11101d); cursor:pointer; display:flex; justify-content:space-between; align-items:center; font:800 9px/1 inherit; letter-spacing:.14em; box-shadow:0 0 16px color-mix(in srgb,var(--selected-accent,var(--mint)) 12%,transparent); }
.launch-button b { width:27px; height:27px; display:grid; place-items:center; color:#080811; background:var(--selected-accent,var(--mint)); font-size:10px; }
.launch-button:hover { background:color-mix(in srgb,var(--selected-accent,var(--mint)) 22%,#11101d); }.launch-button:disabled { opacity:.35; cursor:not-allowed; }
.embedded-player { position:absolute; inset:0; display:grid; grid-template-rows:46px minmax(0,1fr) 42px; background:#05060d; }
.monitor-glass.player-mode .embedded-player { position:relative; inset:auto; }
.embedded-player-bar,.embedded-control-strip { position:relative; z-index:3; min-height:44px; display:flex; align-items:center; color:#8f8b9d; background:#0b0a15; font-size:8px; letter-spacing:.1em; }
.embedded-player-bar { padding:0 4%; justify-content:space-between; border-bottom:1px solid #252233; }.embedded-player-bar > div { color:var(--paper); }
.screen-button { min-height:28px; padding:0 12px; border:1px solid #3b3748; color:#aaa6b7; background:#151321; cursor:pointer; font:800 8px/1 inherit; letter-spacing:.08em; }.screen-button:hover { color:var(--paper); border-color:var(--mint); }
.embedded-game-stage { position:relative; min-height:0; aspect-ratio:16/9; background:#020309; }.embedded-game-stage iframe { position:absolute; inset:0; width:100%; height:100%; display:block; border:0; }
.game-loading { position:absolute; inset:0; z-index:5; display:grid; place-content:center; justify-items:center; gap:10px; color:var(--mint); background:radial-gradient(circle at center,rgba(18,37,39,.94),rgba(3,4,11,.985) 48%,#020309 76%); text-align:center; text-shadow:0 0 12px currentColor; }
.game-loading[hidden] { display:none !important; }
.game-loading strong { margin-top:5px; color:var(--paper); font:800 clamp(12px,1.35vw,17px)/1 system-ui; letter-spacing:.15em; }
.game-loading small { color:#777e87; font:700 8px/1 system-ui; letter-spacing:.18em; }
.loading-orbit { position:relative; width:64px; height:64px; border:1px solid rgba(67,217,173,.2); border-radius:50%; box-shadow:0 0 24px rgba(67,217,173,.12),inset 0 0 16px rgba(67,217,173,.08); animation:loading-orbit 1.2s linear infinite; }
.loading-orbit::before,.loading-orbit::after { content:""; position:absolute; inset:9px; border:1px dashed rgba(67,217,173,.42); border-radius:50%; }.loading-orbit::after { inset:22px; border-style:solid; background:rgba(67,217,173,.08); box-shadow:0 0 15px rgba(67,217,173,.25); }
.loading-orbit i { position:absolute; left:50%; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--mint); box-shadow:0 0 12px var(--mint); transform:translateX(-50%); }
.loading-orbit i:nth-child(2) { left:auto; right:3px; top:45px; width:4px; height:4px; opacity:.6; }
.loading-orbit i:nth-child(3) { left:4px; top:45px; width:3px; height:3px; opacity:.4; }
@keyframes loading-orbit { to { transform:rotate(360deg); } }
.embedded-control-strip { padding:0 4%; gap:4%; border-top:1px solid #252233; }.embedded-control-strip span:last-child { margin-left:auto; }
.embedded-control-strip kbd { min-width:20px; height:20px; margin-right:2px; border-color:#373346; background:#171522; font-size:8px; }

@media (max-width: 820px) {
  .arcade-room { padding: 0; align-items: stretch; }
  .arcade-cabinet { width: 100vw; min-height: 100vh; padding: 12px; border: 0; border-radius: 0; }
  .cabinet-header { grid-template-columns: 1fr auto; }.cabinet-status { display: none; }
  .monitor-frame { padding: 10px; border-radius: 22px; }
  .monitor-glass { aspect-ratio: auto; min-height: calc(100vh - 165px); border-radius: 28px / 34px; }
  .monitor-glass.player-mode { min-height: 0; }
  .selector-layout { height: calc(100% - 100px); grid-template-columns: 1fr; padding: 28px 30px 18px; }
  .preview-panel { display: none; }
  .screen-header { height: 50px; padding: 0 30px; }
  .screen-footer { height: 50px; padding: 0 30px; justify-content: space-between; }.screen-footer span:last-child { display: none; }
  .arcade-page .game-grid { max-height: none; }
  .cabinet-controls { min-height: 58px; padding-top: 12px; }.cabinet-label { display: none; }
  .embedded-player { grid-template-rows:46px minmax(0,1fr) 42px; }.embedded-control-strip span:last-child { display:none; }
}
@media (max-width: 520px) {
  .cabinet-brand small,.cabinet-admin { font-size: 7px; }
  .cabinet-brand strong { font-size: 12px; }
  .cabinet-brand-mark,.cabinet-brand-logo { width: 36px; height: 36px; }
  .cabinet-brand-line { gap: 7px; }.cabinet-brand-line em { max-width: 185px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .selector-layout { padding-inline: 22px; }
  .arcade-page .game-card { grid-template-columns: 76px 1fr; min-height: 84px; }
  .arcade-page .play-row { display: none; }
  .screen-footer { padding-inline: 22px; }.screen-footer span:nth-child(2) { display: none; }
}
