:root {
  --bg: #030307;
  --panel: rgba(8, 10, 22, .92);
  --panel-soft: rgba(12, 14, 29, .78);
  --text: #f7f8ff;
  --muted: #9ba4bf;
  --cyan: #39e7ff;
  --pink: #ff3bd4;
  --violet: #8b5cff;
  --green: #67ff9f;
  --yellow: #ffd45e;
  --line: rgba(110, 227, 255, .2);
  --danger: #ff607f;
  --shadow-cyan: 0 0 28px rgba(57, 231, 255, .24);
  --shadow-pink: 0 0 32px rgba(255, 59, 212, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 181, 255, .14), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(255, 30, 195, .13), transparent 31rem),
    linear-gradient(180deg, #020205 0%, #080814 48%, #030307 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .12;
  z-index: -2;
}
.ambient-a { left: -22rem; top: 10rem; background: var(--cyan); }
.ambient-b { right: -24rem; top: 4rem; background: var(--pink); }

.primary-copy { display: block; }
.secondary-copy {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: none;
}
.primary-description {
  margin: 10px 0 0;
  color: #d7dbec;
  line-height: 1.55;
}
.secondary-description {
  margin: 5px 0 0;
  color: #7e87a4;
  font-size: .68rem;
  line-height: 1.45;
}

.topbar {
  width: min(1480px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 20;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(57,231,255,.58);
  border-radius: 14px;
  background: rgba(57,231,255,.06);
  box-shadow: var(--shadow-cyan), inset 0 0 16px rgba(57,231,255,.08);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topbar-brand strong {
  font: 900 .85rem Consolas, monospace;
  letter-spacing: .18em;
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.primary-nav a {
  min-height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(121,236,255,.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(8,10,22,.68);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.primary-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}
.primary-nav strong {
  font: 800 .55rem Consolas, monospace;
  letter-spacing: .055em;
  white-space: nowrap;
}
.primary-nav small {
  margin-top: 3px;
  color: #77819f;
  font-size: .45rem;
  white-space: nowrap;
}
.coin-status {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(8,10,22,.72);
}
.coin-status strong { font: 800 .67rem Consolas, monospace; letter-spacing: .1em; }
.coin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 13px currentColor;
}
.coin-status.unlocked .coin-dot { background: var(--green); }
.coin-status.unlocked strong { color: var(--green); }
.mini-button {
  min-height: 45px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(8,10,22,.72);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mini-button:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: var(--shadow-cyan); }
.mini-button .primary-copy { font: 800 .65rem Consolas, monospace; letter-spacing: .08em; }

main { padding-bottom: 38px; }
.hero {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 4px 12px 0;
  text-align: center;
}
.eyebrow {
  margin: 12px 0 7px;
  color: var(--cyan);
  font: 700 .74rem Consolas, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow .secondary-copy { color: #7988aa; font-size: .52rem; }
.eyebrow.compact { margin: 0 0 5px; }
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.7vw, 4.2rem);
  line-height: .96;
  letter-spacing: -.045em;
  background: linear-gradient(90deg, #fff, #7cf1ff 42%, #ff79dd 76%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(57,231,255,.17));
}
.hero-copy {
  max-width: 660px;
  margin: 13px auto 0;
  color: var(--muted);
  line-height: 1.55;
}
.hero-copy strong { font-size: .96rem; font-weight: 500; color: #bec5da; }
.hero-copy small { font-size: .63rem; }

.machine-stage {
  position: relative;
  width: min(1180px, 100%);
  aspect-ratio: 2048 / 1351;
  margin: 12px auto 0;
  filter: drop-shadow(0 28px 74px rgba(0,0,0,.78));
  isolation: isolate;
}
.machine-stage::before {
  content: "";
  position: absolute;
  left: 23%; right: 23%; bottom: 1%; height: 11%;
  border-radius: 50%;
  background: rgba(0,0,0,.95);
  filter: blur(30px);
  z-index: -2;
}
.arcade-machine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}
.screen-shell {
  position: absolute;
  left: 31.15%;
  top: 39.52%;
  width: 37.94%;
  height: 32.13%;
  z-index: 2;
  overflow: hidden;
  border-radius: 4.5% / 8%;
  background: #000;
  box-shadow: inset 0 0 40px rgba(57,231,255,.11), inset 0 0 80px rgba(255,59,212,.07), 0 0 30px rgba(0,0,0,.9);
}
.screen-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .25;
  background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 29%), repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.035) 3px 4px);
  mix-blend-mode: screen;
}
.screen-home, .screen-loading, .screen-message, .screen-library, .game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screen-home {
  display: grid;
  place-items: center;
  padding: 5%;
  background: radial-gradient(circle at center, rgba(57,231,255,.09), transparent 58%), #010104;
  font-family: Consolas, monospace;
  text-align: center;
}
.screen-home-inner { width: 100%; }
.screen-system {
  margin-bottom: 2.4%;
  color: var(--pink);
  font-size: clamp(4px, .48vw, 8px);
  letter-spacing: .22em;
}
.screen-title {
  margin: 0;
  font-size: clamp(10px, 1.5vw, 25px);
  letter-spacing: .08em;
  text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--pink);
  animation: pulse 1.6s ease-in-out infinite alternate;
}
.screen-subtitle {
  margin: 2% 0 3%;
  color: #8defff;
  font-size: clamp(4px, .53vw, 9px);
  letter-spacing: .07em;
}
.screen-coin-button, .screen-menu-button {
  width: 74%;
  margin: 0 auto 2.2%;
  padding: 2.2% 3%;
  border: 1px solid rgba(255,59,212,.55);
  border-radius: 8px;
  color: white;
  background: linear-gradient(90deg, rgba(57,231,255,.13), rgba(255,59,212,.16));
  box-shadow: inset 0 0 15px rgba(255,59,212,.06), 0 0 15px rgba(255,59,212,.08);
}
.screen-coin-button .primary-copy, .screen-menu-button .primary-copy {
  font-size: clamp(5px, .58vw, 10px);
  letter-spacing: .09em;
}
.screen-coin-button .secondary-copy, .screen-menu-button .secondary-copy {
  margin-top: 1px;
  font-size: clamp(3px, .34vw, 6px);
}
.screen-menu-button { border-color: rgba(57,231,255,.48); background: rgba(57,231,255,.08); }
.coin-icon { margin-right: 4px; color: var(--yellow); text-shadow: 0 0 8px var(--yellow); }
.screen-selected {
  width: 80%;
  margin: 0 auto;
  padding: 2.2% 3%;
  border-left: 2px solid var(--pink);
  border-right: 2px solid var(--cyan);
  color: #fff;
  background: rgba(255,255,255,.035);
  font-size: clamp(5px, .65vw, 11px);
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-hint {
  margin-top: 2.5%;
  color: #727c99;
  font-size: clamp(3px, .34vw, 6px);
  letter-spacing: .06em;
}
.screen-loading, .screen-message {
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 8%;
  color: #fff;
  background: #010104;
  text-align: center;
  font-family: Consolas, monospace;
}
.screen-loading strong, .screen-message strong { color: var(--pink); font-size: clamp(6px, .78vw, 13px); }
.screen-loading small, .screen-message span { color: var(--muted); font-size: clamp(4px, .48vw, 8px); }
.pixel-loader {
  width: 22px;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--pink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.screen-library {
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 5%;
  color: #fff;
  background: radial-gradient(circle at 50% 15%, rgba(255,59,212,.16), transparent 42%), radial-gradient(circle at 50% 100%, rgba(57,231,255,.13), transparent 48%), #010104;
  text-align: center;
  font-family: Consolas, monospace;
}
.screen-library-inner { width: 100%; }
.screen-library-kicker { display: block; color: var(--cyan); font-size: clamp(4px, .44vw, 8px); letter-spacing: .16em; }
.screen-library-kicker small { display: block; margin-top: 2px; color: #78829e; font-size: clamp(3px, .30vw, 5px); letter-spacing: .08em; }
.screen-library-title {
  display: block;
  width: 86%;
  margin: 3% auto 2%;
  color: #fff;
  font-size: clamp(8px, 1.05vw, 18px);
  line-height: 1.05;
  text-shadow: 0 0 12px rgba(255,59,212,.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-library-note { width: 88%; margin: 0 auto 3%; color: #9aa4c2; font-size: clamp(4px, .40vw, 7px); line-height: 1.35; }
.screen-launch-button, .screen-back-button {
  width: 78%;
  margin: 0 auto 2%;
  padding: 2.2% 3%;
  border: 1px solid rgba(57,231,255,.56);
  border-radius: 8px;
  color: white;
  background: linear-gradient(90deg, rgba(57,231,255,.16), rgba(255,59,212,.18));
  box-shadow: 0 0 18px rgba(57,231,255,.10);
}
.screen-back-button { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.screen-launch-button .primary-copy, .screen-back-button .primary-copy { display: block; font-size: clamp(5px, .56vw, 10px); letter-spacing: .08em; }
.screen-launch-button .secondary-copy, .screen-back-button .secondary-copy { display: block; margin-top: 1px; color: #8d97b4; font-size: clamp(3px, .31vw, 5px); }
.screen-launch-button:hover { border-color: var(--pink); box-shadow: 0 0 20px rgba(255,59,212,.18); }

.game-frame { z-index: 3; display: none; border: 0; background: #000; }

.machine-control {
  position: absolute;
  z-index: 9;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(0,0,0,.54);
  box-shadow: inset 0 0 14px rgba(255,255,255,.03), 0 0 18px rgba(0,0,0,.38);
  color: #fff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.machine-control:hover, .machine-control:focus-visible {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(57,231,255,.72);
  box-shadow: 0 0 18px rgba(57,231,255,.18), inset 0 0 16px rgba(255,59,212,.08);
}
.machine-control-main {
  display: block;
  font: 900 clamp(5px, .56vw, 9px) Consolas, monospace;
  letter-spacing: .16em;
  text-shadow: 0 0 10px currentColor;
}
.machine-control-sub {
  display: block;
  margin-top: 1px;
  font: 700 clamp(3px, .34vw, 6px) Consolas, monospace;
  letter-spacing: .12em;
  opacity: .95;
}
.machine-control-coin {
  left: 25.3%; top: calc(76.78% + 10px); width: 13.9%; height: 4.8%;
  color: #ffd756;
}
.machine-control-menu {
  left: 42.7%; top: calc(76.78% + 10px); width: 14.3%; height: 4.8%;
  color: var(--cyan);
}
.machine-credit-display {
  position: absolute;
  left: calc(58.9% + 20px);
  top: calc(76.72% + 10px);
  width: 10.2%;
  height: 4.95%;
  z-index: 9;
  border-radius: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(10,0,0,.56));
  box-shadow: inset 0 0 18px rgba(255,255,255,.03), 0 0 16px rgba(0,0,0,.32);
}
.machine-control:disabled {
  cursor: not-allowed;
  opacity: .45;
  filter: saturate(.65);
}
.machine-control:disabled:hover, .machine-control:disabled:focus-visible {
  transform: none;
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 0 14px rgba(255,255,255,.03), 0 0 18px rgba(0,0,0,.38);
}
.machine-credit-label {
  font: 700 clamp(3px, .29vw, 5px) Consolas, monospace;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
}
.machine-credit-value {
  font: 900 clamp(8px, 1vw, 17px) Consolas, monospace;
  letter-spacing: .18em;
  color: #ff4a4a;
  text-shadow: 0 0 6px rgba(255,74,74,.85), 0 0 12px rgba(255,74,74,.65);
}

.machine-actions {
  width: min(930px, calc(100% - 24px));
  margin: -2px auto 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 10;
}
.arcade-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(8,10,22,.82);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.arcade-button:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--shadow-cyan); }
.arcade-button.featured { border-color: rgba(255,59,212,.42); background: linear-gradient(135deg, rgba(57,231,255,.12), rgba(255,59,212,.18)); }
.arcade-button:disabled { opacity: .34; cursor: not-allowed; }
.arcade-button .primary-copy { font: 800 .68rem Consolas, monospace; letter-spacing: .07em; }
.arcade-button .secondary-copy { font-size: .5rem; }
.button-icon { color: var(--cyan); font-size: 1.15rem; }

.info-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.info-card {
  min-height: 220px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(57,231,255,.045), transparent 47%), rgba(8,10,22,.7);
  box-shadow: inset 0 0 35px rgba(255,255,255,.012);
}
.info-number { color: var(--pink); font: 900 .7rem Consolas, monospace; }
.info-card h2 { margin: 0; font-size: 1rem; letter-spacing: .04em; }
.info-card .secondary-copy { font-size: .6rem; }

.ad-section {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(5,7,16,.65);
}
.ad-label { margin-bottom: 12px; font: 800 .68rem Consolas, monospace; letter-spacing: .1em; color: var(--muted); }
.ad-placeholder {
  min-height: 110px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px), #050610;
  color: #777f9a;
  text-align: center;
}
.ad-placeholder strong { color: #a7afc6; font: 800 .73rem Consolas, monospace; letter-spacing: .14em; }
.ad-placeholder span { font-size: .74rem; }
.ad-placeholder small { max-width: 580px; font-size: .58rem; }

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #77809c;
  font-size: .72rem;
}
.source-note { max-width: 520px; text-align: right; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 8px 12px;
}
.footer-links a {
  color: #8e98b4;
  font-size: .65rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }

.home-content {
  width: min(1120px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 32px;
  border: 1px solid rgba(121,236,255,.15);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(57,231,255,.05), transparent 42%),
    linear-gradient(315deg, rgba(255,59,212,.045), transparent 42%),
    rgba(7,9,21,.82);
  box-shadow: 0 28px 76px rgba(0,0,0,.28);
  text-align: left;
}
.home-content-intro { max-width: 790px; }
.home-content h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.85rem);
  line-height: 1;
}
.home-content h2 .secondary-copy { margin-top: 7px; }
.home-content-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.home-content-grid a {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  color: white;
  background: rgba(255,255,255,.026);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-content-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 38px rgba(0,0,0,.34), var(--shadow-cyan);
}
.home-content-grid span {
  color: var(--pink);
  font: 900 1.4rem Consolas, monospace;
}
.home-content-grid strong {
  margin-top: 17px;
  font: 900 .72rem Consolas, monospace;
  letter-spacing: .07em;
}
.home-content-grid small {
  margin-top: 8px;
  color: #8e98b4;
  font-size: .68rem;
  line-height: 1.48;
}

.game-menu, .coin-modal, .player-modal, .intro-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}
.game-menu-backdrop, .coin-modal-backdrop, .player-backdrop, .intro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
}
.game-menu-panel, .coin-panel, .player-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(57,231,255,.33);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13,16,34,.98), rgba(4,6,15,.98));
  box-shadow: 0 40px 120px rgba(0,0,0,.68), var(--shadow-cyan), var(--shadow-pink);
}
.game-menu-panel {
  width: min(1220px, 100%);
  max-height: min(900px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-menu-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.game-menu-header h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.5rem); line-height: 1; }
.game-menu-header h2 .secondary-copy { font-size: .62rem; }
.close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.045);
}
.close-button:hover { border-color: var(--pink); box-shadow: var(--shadow-pink); }
.menu-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 280px) auto;
  gap: 10px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.search-field { position: relative; }
.search-field span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 1.2rem; }
.search-field input, .category-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(121,236,255,.18);
  border-radius: 13px;
  color: white;
  background: rgba(2,4,12,.76);
}
.search-field input { padding: 0 14px 0 44px; }
.category-select { padding: 0 12px; }
.category-select option { background: #080a17; }
.catalog-count {
  min-width: 110px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,59,212,.2);
  border-radius: 13px;
  color: var(--pink);
  background: rgba(255,59,212,.04);
  font: 800 .66rem Consolas, monospace;
  letter-spacing: .07em;
}
.game-logo-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding: 18px 22px;
  scrollbar-color: var(--cyan) rgba(255,255,255,.04);
}
.game-catalog-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.game-catalog-item .game-logo-card {
  width: 100%;
  flex: 1;
}
.game-profile-link {
  position: relative;
  z-index: 3;
  margin-top: 7px;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(255,59,212,.2);
  border-radius: 10px;
  color: #e8b7de;
  background: rgba(255,59,212,.045);
  text-decoration: none;
  text-align: center;
  font: 800 .49rem Consolas, monospace;
  letter-spacing: .055em;
}
.game-profile-link:hover {
  border-color: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.game-logo-card {
  position: relative;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(121,236,255,.13);
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 50%), rgba(3,5,14,.86);
  text-align: left;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.game-logo-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(34px);
  opacity: .18;
}
.game-logo-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 38px rgba(0,0,0,.42), 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent); }
.game-logo-card.locked .game-logo-badge::after { content: "LOCK"; position: absolute; right: 7px; top: 7px; color: #fff; font: 800 .45rem Consolas, monospace; letter-spacing: .08em; }
.game-logo-badge {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 13px;
  color: #fff;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 66%), rgba(0,0,0,.48);
  text-align: center;
  font: 900 clamp(1rem, 1.8vw, 1.55rem) Consolas, monospace;
  letter-spacing: .08em;
  text-shadow: 0 0 10px var(--accent), 0 0 22px var(--accent);
}
.game-logo-name {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}
.game-logo-meta {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font: 700 .52rem Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.game-logo-desc {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 5px;
  color: #737d9b;
  font-size: .5rem;
  line-height: 1.35;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.menu-pagination {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 800 .68rem Consolas, monospace;
}
.page-button {
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: white;
  background: rgba(255,255,255,.04);
}
.page-button:disabled { opacity: .3; cursor: not-allowed; }

.coin-panel {
  width: min(500px, 100%);
  padding: 34px;
  text-align: center;
}
.coin-close { position: absolute; right: 14px; top: 14px; }
.giant-coin {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 5px double #fff0a3;
  border-radius: 50%;
  color: #533100;
  background: radial-gradient(circle at 35% 30%, #fff6aa, #ffc42c 55%, #be6800);
  box-shadow: 0 0 28px rgba(255,209,68,.37), inset 0 0 20px rgba(255,255,255,.5);
  font: 1000 1.45rem Consolas, monospace;
  letter-spacing: .08em;
}
.coin-panel h2 { margin: 0; font-size: 1.8rem; }
.coin-panel h2 .secondary-copy { font-size: .62rem; }
.coin-copy { max-width: 390px; margin-inline: auto; }
.claim-button {
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255,213,94,.7);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,213,94,.18), rgba(255,59,212,.17));
  box-shadow: 0 0 24px rgba(255,213,94,.13);
}
.claim-button .primary-copy { font: 900 .76rem Consolas, monospace; letter-spacing: .06em; }
.claim-button .secondary-copy { font-size: .54rem; }
.policy-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #7a839e;
  font-size: .68rem;
}

.player-panel { width: min(1240px, 100%); overflow: hidden; }
.player-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px 9px 17px;
  border-bottom: 1px solid var(--line);
}
.player-game-title { font: 800 .78rem Consolas, monospace; letter-spacing: .08em; }
.player-panel iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; background: #000; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  transform: translate(-50%, 20px);
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(57,231,255,.35);
  border-radius: 12px;
  color: #fff;
  background: rgba(7,9,20,.96);
  box-shadow: var(--shadow-cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: .78rem;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { from { opacity: .75; transform: scale(.995); } to { opacity: 1; transform: scale(1.01); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .game-logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .topbar { flex-wrap: wrap; padding: 12px 0; }
  .primary-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .primary-nav a { flex: 1 0 auto; }
}
@media (max-width: 900px) {
  .game-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
}
@media (max-width: 720px) {
  .topbar { min-height: 66px; }
  .coin-status { display: none; }
  .mini-button { padding: 7px 10px; }
  .machine-stage { width: 126%; margin-left: -13%; }
  .machine-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .menu-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-count { grid-column: 1 / -1; min-height: 38px; }
  .game-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer { flex-direction: column; text-align: center; }
  .source-note { max-width: none; text-align: center; }
  .footer-links { justify-content: center; }
  .home-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { width: calc(100% - 20px); }
  .topbar-brand .dual-copy { display: none; }
  .mini-button .secondary-copy { display: none; }
  .hero { padding-inline: 0; }
  .hero-copy { padding-inline: 18px; }
  .machine-stage { width: 150%; margin-left: -25%; }
  .machine-actions { width: calc(100% - 20px); }
  .arcade-button { min-height: 54px; }
  .info-grid, .ad-section, .footer { width: calc(100% - 20px); }
  .game-menu, .coin-modal, .player-modal, .intro-modal { padding: 8px; }
  .game-menu-panel { max-height: calc(100vh - 16px); border-radius: 16px; }
  .game-menu-header { min-height: 75px; padding: 14px; }
  .menu-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .catalog-count { grid-column: auto; }
  .game-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
  .game-logo-card { min-height: 158px; }
  .home-content { width: calc(100% - 20px); padding: 22px; }
  .coin-panel { padding: 28px 20px; }
  .screen-hint, .screen-system { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}


/* V5 automatic server ROM archive */
.game-logo-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #8790aa;
  background: rgba(255,255,255,.035);
  font: 800 .43rem Consolas, monospace;
  letter-spacing: .08em;
}
.game-logo-card.ready .game-logo-status {
  color: var(--green);
  border-color: rgba(103,255,159,.32);
  background: rgba(103,255,159,.06);
}
.game-logo-card.missing .game-logo-status {
  color: var(--yellow);
  border-color: rgba(255,212,94,.28);
  background: rgba(255,212,94,.055);
}
.game-logo-card.checking .game-logo-status,
.game-logo-card.unknown .game-logo-status {
  color: var(--cyan);
  border-color: rgba(57,231,255,.28);
  background: rgba(57,231,255,.055);
}
.game-logo-card.checking .game-logo-status::before,
.game-logo-card.unknown .game-logo-status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 1px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.game-logo-card.error .game-logo-status {
  color: var(--danger);
  border-color: rgba(255,96,127,.30);
  background: rgba(255,96,127,.055);
}
.game-logo-card.incompatible .game-logo-status {
  color: #ffbf5e;
  border-color: rgba(255,191,94,.34);
  background: rgba(255,145,52,.10);
}
.game-logo-card.incompatible {
  filter: saturate(.72);
}


/* ───────────────────────── Cinarverse Arcade V8 ───────────────────────── */
.game-menu-panel { isolation: isolate; }
.menu-toolbar {
  position: relative;
  z-index: 30;
  overflow: visible;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 310px) auto;
}
.category-control {
  position: relative;
  min-width: 0;
}
.category-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(121,236,255,.22);
  border-radius: 13px;
  color: #fff;
  background: rgba(2,4,12,.92);
  text-align: left;
  font-weight: 750;
}
.category-toggle:hover,
.category-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(57,231,255,.08), var(--shadow-cyan);
}
.category-toggle-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-toggle-icon {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 1.15rem;
  transition: transform .18s ease;
}
.category-toggle[aria-expanded="true"] .category-toggle-icon { transform: rotate(180deg); }
.category-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 90;
  width: min(410px, calc(100vw - 44px));
  padding: 13px;
  border: 1px solid rgba(57,231,255,.38);
  border-radius: 16px;
  background: rgba(4,6,17,.985);
  box-shadow: 0 22px 70px rgba(0,0,0,.72), var(--shadow-cyan), var(--shadow-pink);
}
.category-popover-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px 11px;
  color: var(--cyan);
  font: 800 .72rem Consolas, monospace;
  letter-spacing: .08em;
}
.category-popover-head small { color: var(--muted); font-size: .56rem; }
.category-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(390px, 54vh);
  overflow-y: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--cyan) rgba(255,255,255,.04);
}
.category-option {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  color: #dce6ff;
  background: rgba(255,255,255,.035);
  text-align: left;
  font-size: .69rem;
  font-weight: 750;
}
.category-option small {
  min-width: 27px;
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(57,231,255,.09);
  text-align: center;
  font: 800 .55rem Consolas, monospace;
}
.category-option:hover,
.category-option.active {
  border-color: rgba(255,59,212,.62);
  color: #fff;
  background: linear-gradient(135deg, rgba(57,231,255,.09), rgba(255,59,212,.11));
  box-shadow: 0 0 18px rgba(255,59,212,.12);
}
.category-option.active small { color: #fff; background: rgba(255,59,212,.24); }
.game-logo-grid { position: relative; z-index: 1; }
.menu-pagination {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  pointer-events: auto;
  background: rgba(4,6,15,.99);
}
.page-indicator {
  min-width: 76px;
  text-align: center;
  color: #dce6ff;
}
.page-button-wide {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 6px 13px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-button-copy { display: grid; line-height: 1.05; text-align: left; }
.page-button-copy strong { color: #fff; font-size: .63rem; letter-spacing: .08em; }
.page-button-copy small { margin-top: 3px; color: var(--muted); font-size: .5rem; }
.page-button-wide:hover:not(:disabled) {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}
.page-button-wide:active:not(:disabled) { transform: translateY(1px); }
.catalog-count { padding: 0 10px; white-space: nowrap; }

@media (max-width: 760px) {
  .menu-toolbar { grid-template-columns: 1fr; }
  .category-popover { left: 0; right: auto; width: 100%; }
  .catalog-count { min-height: 42px; }
  .page-button-wide { min-width: 105px; }
}

@media (max-width: 470px) {
  .category-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .category-option { min-height: 42px; padding: 7px 8px; font-size: .58rem; }
  .category-option small { min-width: 23px; padding: 3px 5px; font-size: .49rem; }
  .page-button-copy { display: none; }
  .page-button-wide { min-width: 58px; }
  .menu-pagination { gap: 10px; }
}


/* ───────────────── Cinarverse Arcade Machine V8: fullscreen cabinet ───────────────── */
main {
  padding-bottom: 28px;
}
.hero {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: visible;
}
.hero .eyebrow {
  margin-top: 5px;
}
.hero h1 {
  padding: 0 16px;
  font-size: clamp(1.55rem, 4.2vw, 4rem);
}
.machine-stage {
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 2px 0 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 34px 92px rgba(0,0,0,.84));
}
.screen-shell {
  left: 30.65%;
  top: 39.05%;
  width: 38.70%;
  height: 32.35%;
}
.machine-actions {
  width: min(1240px, calc(100% - 24px));
  margin-top: -4px;
}
.ad-section,
.footer {
  width: min(1240px, calc(100% - 32px));
}

@media (max-width: 720px) {
  .machine-stage {
    left: 50%;
    width: 126vw;
    margin-left: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(1.35rem, 8vw, 2.15rem);
  }
  .machine-stage {
    left: 50%;
    width: 150vw;
    margin-left: 0;
    transform: translateX(-50%);
  }
  .ad-section,
  .footer {
    width: calc(100% - 20px);
  }
}

/* ───────────────────── Cinarverse Arcade Machine V11 ───────────────────── */
.game-logo-card {
  min-height: 224px;
}
.game-logo-badge {
  min-height: 102px;
  overflow: hidden;
  isolation: isolate;
}
.game-logo-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.72));
  pointer-events: none;
}
.game-logo-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .22s ease, transform .25s ease;
}
.game-logo-card.thumb-loaded .game-logo-thumb {
  opacity: .92;
  transform: scale(1);
}
.game-logo-initials {
  position: relative;
  z-index: 2;
  transition: opacity .18s ease;
}
.game-logo-card.thumb-loaded .game-logo-initials {
  opacity: 0;
}
.game-logo-name {
  min-height: 2.8em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: .69rem;
  line-height: 1.3;
}
.game-logo-info {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #a9b4d0;
  font-size: .48rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-logo-desc {
  min-height: 1.35em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
@media (max-width: 720px) {
  .game-logo-card { min-height: 205px; }
  .game-logo-badge { min-height: 88px; }
}
@media (max-width: 520px) {
  .game-logo-card { min-height: 198px; }
  .game-logo-name { font-size: .64rem; }
}


.intro-panel {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 28px 26px 22px;
  border: 1px solid rgba(57,231,255,.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,59,212,.16), transparent 34%),
    radial-gradient(circle at top left, rgba(57,231,255,.12), transparent 34%),
    rgba(7,9,18,.97);
  box-shadow: 0 24px 60px rgba(0,0,0,.62), inset 0 0 30px rgba(255,255,255,.025);
}
.intro-close { position: absolute; right: 14px; top: 14px; }
.intro-panel h2 { margin: 8px 0 12px; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.intro-copy {
  margin: 0 0 10px;
  color: #d8dded;
  line-height: 1.65;
  font-size: .97rem;
}
.intro-list {
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.intro-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(57,231,255,.045), rgba(255,59,212,.04));
}
.intro-list strong {
  display: block;
  margin-bottom: 5px;
  font: 900 .82rem Consolas, monospace;
  letter-spacing: .12em;
  color: var(--cyan);
}
.intro-list small {
  display: block;
  color: #aeb7d1;
  line-height: 1.55;
  font-size: .8rem;
}
.intro-support {
  margin: 12px 0 0;
  color: #d0d6e9;
  line-height: 1.6;
  font-size: .88rem;
}
.intro-start-button {
  width: min(360px, 100%);
  margin: 20px auto 0;
  display: block;
}

@media (max-width: 720px) {
  .machine-control { border-radius: 9px; }
  .machine-control-main { letter-spacing: .08em; }
  .machine-control-sub { letter-spacing: .05em; }
  .machine-control-coin { left: 24.8%; width: 14.7%; top: calc(76.78% + 6px); }
  .machine-control-menu { left: 42.1%; width: 15.1%; top: calc(76.78% + 6px); }
  .machine-credit-display { left: calc(58.8% + 10px); width: 10.7%; top: calc(76.72% + 6px); }
  .intro-panel { padding: 22px 18px 18px; }
  .intro-copy { font-size: .9rem; }
  .intro-list li { padding: 12px 13px; }
}

.intro-guide {
  margin: 18px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(57,231,255,.045), rgba(255,59,212,.04));
}
.intro-guide h3 {
  margin: 0 0 8px;
  font: 900 .84rem Consolas, monospace;
  letter-spacing: .12em;
  color: var(--yellow);
}
.intro-guide h3 small {
  display: block;
  margin-top: 4px;
  color: #b8c0d8;
  font: 600 .68rem system-ui, sans-serif;
  letter-spacing: .03em;
}
.intro-guide-copy {
  margin: 0;
  color: #d8dded;
  line-height: 1.6;
  font-size: .87rem;
}
.intro-feature-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.intro-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(57,231,255,.24);
  background: radial-gradient(circle, rgba(57,231,255,.16), rgba(255,59,212,.08));
  color: var(--cyan);
  font: 900 1.4rem Consolas, monospace;
  box-shadow: inset 0 0 18px rgba(255,255,255,.03), 0 0 14px rgba(57,231,255,.08);
}
.intro-feature-copy strong {
  display: block;
  margin-bottom: 6px;
  font: 900 .8rem Consolas, monospace;
  letter-spacing: .1em;
  color: #fff;
}
.intro-feature-copy small {
  display: block;
  color: #b2bad1;
  line-height: 1.55;
  font-size: .8rem;
}

@media (max-width: 640px) {
  .intro-feature-card { grid-template-columns: 46px 1fr; gap: 12px; }
  .intro-icon { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
}

/* V14 mobile polish and cabinet control refinements */
html, body { overflow-x: hidden; }
.machine-control-coin,
.machine-control-menu,
.machine-credit-display {
  background: #000 !important;
}
.machine-credit-display {
  left: calc(58.9% + 32px);
}

/* V16 uses the existing cabinet iframe in a fixed landscape player.
   No second iframe and no CSS rotation fallback. */

@media (max-width: 720px) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .hero h1 {
    padding-inline: 12px;
    font-size: clamp(1.42rem, 8vw, 2.95rem);
    line-height: .96;
  }
  .hero .eyebrow {
    padding-inline: 12px;
  }
  .machine-credit-display {
    left: calc(58.8% + 22px);
  }
  .machine-actions {
    gap: 9px;
  }
  .arcade-button {
    padding: 9px 8px;
  }
  .arcade-button .primary-copy {
    font-size: .62rem;
  }
  .arcade-button .secondary-copy {
    font-size: .46rem;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    min-height: 68px;
  }
  .brand-mark {
    width: 48px;
    height: 48px;
  }
  .topbar-actions { gap: 7px; }
  .mini-button {
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 15px;
  }
  .machine-stage {
    width: 144%;
    margin-left: -22%;
  }
  .machine-actions {
    margin-top: 4px;
  }
  .arcade-button {
    min-height: 68px;
    border-radius: 18px;
  }
  .ad-section {
    margin-top: 28px;
  }
  .game-menu-panel {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .game-menu-header {
    min-height: 68px;
  }
  .game-menu-header h2 {
    font-size: 1.55rem;
  }
  .menu-pagination {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .intro-panel {
    max-height: calc(100dvh - 16px);
  }
}

@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .player-modal.mobile-landscape .close-button {
    width: 34px;
    height: 34px;
    font-size: .82rem;
  }
}

/* Shared cabinet and expanded-player controls */
.player-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
 .player-coin-button {
  min-width: 46px;
  min-height: 40px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255,215,86,.5);
  border-radius: 12px;
  color: #ffd756;
  background: rgba(0,0,0,.82);
  box-shadow: inset 0 0 12px rgba(255,215,86,.05), 0 0 14px rgba(255,215,86,.08);
  font-family: Consolas, monospace;
}
.player-coin-button span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.player-coin-button small {
  display: none;
}

html.site-pseudo-fullscreen,
body.site-pseudo-fullscreen {
  width: 100%;
  min-height: 100dvh;
  overscroll-behavior: none;
}
body.site-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: #05050a;
  z-index: 2147483000;
}
body.site-pseudo-fullscreen .topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5,5,10,.98), rgba(5,5,10,.88));
  backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
  .machine-stage {
    left: 50% !important;
    width: 126vw !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 520px) {
  .machine-stage {
    left: 50% !important;
    width: 138vw !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
  }
  .machine-control-coin {
    left: 25.3%;
  }
  .machine-control-menu {
    left: 42.7%;
  }
  .machine-credit-display {
    left: calc(58.9% + 18px);
  }
}

.player-modal.mobile-landscape .player-header-actions {
  gap: 6px;
}
.player-modal.mobile-landscape .player-coin-button {
  min-height: 36px;
  padding: 4px 9px;
  border-radius: 10px;
}

@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .player-modal.mobile-landscape .player-header {
    top: max(5px, env(safe-area-inset-top));
    right: max(5px, env(safe-area-inset-right));
  }
  .player-modal.mobile-landscape .player-coin-button {
    min-height: 32px;
    padding: 3px 8px;
  }
  .player-modal.mobile-landscape .player-coin-button span { font-size: .54rem; }
  .player-modal.mobile-landscape .player-coin-button small { display: none; }
}

/* ───────────────── Cinarverse V16 mobile performance architecture ─────────────────
   One emulator iframe only: the cabinet screen itself becomes the expanded player.
*/
html.player-expanded,
body.player-expanded {
  width: 100%;
  height: var(--cv-viewport-height, 100dvh);
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  background: #000;
}
body.player-body-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
}

.machine-stage.player-expanded-stage {
  position: static !important;
  filter: none !important;
  transform: none !important;
  isolation: auto !important;
  z-index: auto !important;
}
.machine-stage.player-expanded-stage::before { display: none !important; }
.screen-shell.expanded-player-screen {
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: var(--cv-viewport-width, 100vw) !important;
  height: var(--cv-viewport-height, 100dvh) !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 2147482000 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  transform: none !important;
  contain: strict;
}
.screen-shell.expanded-player-screen::after {
  opacity: .08;
}
.screen-shell.expanded-player-screen .game-frame,
.screen-shell.expanded-player-screen .screen-home,
.screen-shell.expanded-player-screen .screen-loading,
.screen-shell.expanded-player-screen .screen-message,
.screen-shell.expanded-player-screen .screen-library {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}
.screen-shell.expanded-player-screen .game-frame {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3;
  background: #000;
  touch-action: none;
}
.screen-shell.expanded-player-screen .screen-loading,
.screen-shell.expanded-player-screen .screen-message,
.screen-shell.expanded-player-screen .screen-library {
  z-index: 8;
}

.player-modal {
  z-index: 2147483000 !important;
  padding: 0 !important;
  pointer-events: none;
  background: transparent !important;
}
.player-modal .player-panel {
  position: fixed !important;
  inset: 0 !important;
  width: var(--cv-viewport-width, 100vw) !important;
  height: var(--cv-viewport-height, 100dvh) !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}
.player-modal .player-header {
  position: fixed !important;
  z-index: 40;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}
.player-modal .player-game-title { display: none; }
.player-modal .player-header-actions { gap: 8px; }
.player-modal .close-button,
.player-modal .player-coin-button {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
}
.player-modal .close-button {
  width: 42px;
  height: 42px;
  border-color: rgba(255,255,255,.38);
  background: rgba(0,0,0,.68);
  box-shadow: 0 5px 18px rgba(0,0,0,.45);
}
.player-modal .player-coin-button {
  min-height: 42px;
  padding: 5px 12px;
  background: rgba(0,0,0,.68);
}

.rotate-device-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(57,231,255,.15), transparent 43%),
              radial-gradient(circle at 50% 55%, rgba(255,59,212,.11), transparent 50%), #000;
  text-align: center;
  pointer-events: auto;
}
.rotate-device-overlay[hidden] { display: none !important; }
.rotate-device-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57,231,255,.42);
  border-radius: 22px;
  color: var(--cyan);
  background: rgba(6,8,22,.9);
  box-shadow: var(--shadow-cyan), var(--shadow-pink);
  font-size: 2.7rem;
  animation: cvRotateHint 1.3s ease-in-out infinite alternate;
}
.rotate-device-overlay strong {
  color: #fff;
  font: 900 1rem Consolas, monospace;
  letter-spacing: .12em;
}
.rotate-device-overlay small {
  max-width: 340px;
  color: #aab3cc;
  font-size: .74rem;
  line-height: 1.42;
}
@keyframes cvRotateHint { to { transform: rotate(90deg); color: var(--pink); } }

.mobile-gamepad {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.mobile-gamepad[hidden] { display: none !important; }
.mobile-dpad {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: clamp(112px, 22vh, 142px);
  height: clamp(112px, 22vh, 142px);
  opacity: .58;
  transition: opacity .12s ease;
  pointer-events: none;
}
.mobile-action-pad {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: clamp(136px, 27vh, 178px);
  height: clamp(108px, 22vh, 146px);
  opacity: .58;
  pointer-events: none;
}
.mobile-system-keys {
  position: absolute;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  opacity: .52;
  pointer-events: none;
}
.gamepad-key {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  color: #fff;
  background: rgba(8,10,20,.60);
  box-shadow: inset 0 0 15px rgba(255,255,255,.04), 0 4px 16px rgba(0,0,0,.30);
  font: 900 clamp(.7rem, 2.4vh, 1rem) Consolas, monospace;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .045s linear, opacity .045s linear, background .045s linear;
}
.gamepad-key.pressed {
  transform: scale(.90);
  opacity: 1;
  background: rgba(57,231,255,.42);
  box-shadow: inset 0 0 18px rgba(57,231,255,.30), 0 0 20px rgba(57,231,255,.30);
}
.mobile-dpad .gamepad-key {
  width: 40%;
  height: 40%;
  border-radius: 12px;
}
.dpad-up { left: 30%; top: 0; }
.dpad-left { left: 0; top: 30%; }
.dpad-right { right: 0; top: 30%; }
.dpad-down { left: 30%; bottom: 0; }
.dpad-center {
  position: absolute;
  left: 30%; top: 30%; width: 40%; height: 40%;
  border-radius: 9px;
  background: rgba(8,10,20,.52);
  box-shadow: inset 0 0 14px rgba(255,255,255,.025);
}
.mobile-action-pad .action-key {
  width: clamp(43px, 8.2vh, 58px);
  height: clamp(43px, 8.2vh, 58px);
  border-radius: 50%;
}
.action-y { left: 2%; top: 3%; border-color: rgba(255,215,86,.72); }
.action-x { right: 18%; top: 0; border-color: rgba(57,231,255,.72); }
.action-b { left: 14%; bottom: 0; border-color: rgba(255,85,104,.75); }
.action-a { right: 2%; bottom: 7%; border-color: rgba(90,255,139,.72); }
.shoulder-key {
  top: -5px;
  width: clamp(34px, 6vh, 46px);
  height: clamp(28px, 5vh, 36px);
  border-radius: 10px;
  font-size: .7rem;
}
.shoulder-l { left: 38%; }
.shoulder-r { right: 1%; }
.mobile-system-keys .system-key {
  position: relative;
  min-width: 58px;
  height: 30px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: .55rem;
  letter-spacing: .05em;
}
.mobile-gamepad.profile-two-button .extended-control,
.mobile-gamepad.profile-two-button .fighting-control,
.mobile-gamepad.profile-four-button .fighting-control {
  display: none;
}
.mobile-gamepad.profile-two-button .mobile-action-pad {
  width: clamp(116px, 22vh, 145px);
  height: clamp(92px, 18vh, 116px);
}
.mobile-gamepad.profile-two-button .action-b { left: 4%; bottom: 4%; }
.mobile-gamepad.profile-two-button .action-a { right: 3%; bottom: 28%; }
.mobile-gamepad.profile-fighting .mobile-action-pad {
  opacity: .55;
}
.mobile-gamepad:has(.gamepad-key.pressed) .mobile-dpad,
.mobile-gamepad:has(.gamepad-key.pressed) .mobile-action-pad,
.mobile-gamepad:has(.gamepad-key.pressed) .mobile-system-keys {
  opacity: .90;
}

.player-expanded .toast { z-index: 2147483640; }

@media (orientation: portrait) and (pointer: coarse) {
  .player-modal.portrait-prompt .player-header,
  .player-modal.portrait-prompt .mobile-gamepad { display: none !important; }
  .screen-shell.expanded-player-screen { visibility: hidden; }
}

@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .player-modal .player-header {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
  }
  .player-modal .close-button { width: 36px; height: 36px; font-size: .82rem; }
  .player-modal .player-coin-button { min-height: 36px; padding: 3px 9px; }
  .player-modal .player-coin-button span { font-size: .54rem; }
  .player-modal .player-coin-button small { display: none; }
  .mobile-dpad { width: clamp(100px, 31vh, 128px); height: clamp(100px, 31vh, 128px); }
  .mobile-action-pad { width: clamp(126px, 38vh, 168px); height: clamp(96px, 29vh, 132px); }
  .mobile-system-keys { bottom: max(5px, env(safe-area-inset-bottom)); }
}

/* ───────────────── Cinarverse V16.10 Mobile Coin & Start Controls ───────────────
   EmulatorJS renders only the game. This transparent Cinarverse layer contains
   the sole touch controls: red D-pad, green A, and red B. There is no full-screen
   touch zone, contextual menu, or second controller beneath it.
*/
html.player-expanded,
body.player-expanded,
body.player-body-locked {
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
  touch-action: none !important;
}

.player-modal,
.player-modal .player-panel,
.screen-shell.expanded-player-screen,
.screen-shell.expanded-player-screen .game-frame {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.mobile-gamepad.cv-mobile-controller {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: block;
  visibility: visible;
  pointer-events: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  contain: layout style;
}
.mobile-gamepad.cv-mobile-controller[hidden] { display: none !important; }

.cv-mobile-controller .mobile-dpad {
  left: max(16px, calc(env(safe-area-inset-left) + 8px));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px));
  width: clamp(112px, 29vh, 148px);
  height: clamp(112px, 29vh, 148px);
  opacity: .78;
  pointer-events: none;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.55));
}
.cv-mobile-controller .mobile-dpad::before {
  content: "";
  position: absolute;
  left: 30%; top: 0;
  width: 40%; height: 100%;
  border: 2px solid rgba(255,178,178,.68);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(207,28,41,.92), rgba(113,4,18,.94));
  box-shadow: inset 0 0 18px rgba(255,255,255,.10), 0 0 16px rgba(255,31,75,.20);
}
.cv-mobile-controller .mobile-dpad::after {
  content: "";
  position: absolute;
  left: 0; top: 30%;
  width: 100%; height: 40%;
  border: 2px solid rgba(255,178,178,.68);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(207,28,41,.92), rgba(113,4,18,.94));
  box-shadow: inset 0 0 18px rgba(255,255,255,.10), 0 0 16px rgba(255,31,75,.20);
}
.cv-mobile-controller .mobile-dpad .gamepad-key {
  z-index: 3;
  width: 40%;
  height: 40%;
  border: 0;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  background: transparent;
  box-shadow: none;
  font-size: clamp(.72rem, 3vh, 1.05rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.75);
}
.cv-mobile-controller .mobile-dpad .gamepad-key span { pointer-events: none; }
.cv-mobile-controller .mobile-dpad .gamepad-key.pressed {
  transform: scale(.91);
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 15px rgba(255,255,255,.17);
}
.cv-mobile-controller .dpad-center {
  z-index: 4;
  left: 30%; top: 30%; width: 40%; height: 40%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ff6678, #a20920 55%, #4e000d 100%);
  box-shadow: inset 0 0 12px rgba(255,255,255,.16), 0 3px 8px rgba(0,0,0,.48);
  pointer-events: none;
}
.cv-mobile-controller .dpad-center span {
  width: 34%; height: 34%; border-radius: 50%;
  background: rgba(20,0,5,.42);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.45);
}

.cv-mobile-controller .mobile-action-pad {
  right: max(18px, calc(env(safe-area-inset-right) + 10px));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
  width: clamp(132px, 31vh, 174px);
  height: clamp(100px, 24vh, 134px);
  opacity: .86;
  pointer-events: none;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.55));
}
.cv-mobile-controller .mobile-action-pad .action-key {
  width: clamp(50px, 10.5vh, 66px);
  height: clamp(50px, 10.5vh, 66px);
  border: 2px solid rgba(255,255,255,.78);
  color: #fff;
  font-size: clamp(1rem, 4.2vh, 1.45rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.72);
  box-shadow: inset 0 0 14px rgba(255,255,255,.16), 0 5px 16px rgba(0,0,0,.48);
}
.cv-mobile-controller .action-b {
  left: 2%; bottom: 0;
  background: radial-gradient(circle at 38% 30%, #ff6574, #d41b35 55%, #790012 100%);
}
.cv-mobile-controller .action-a {
  right: 0; top: 0;
  background: radial-gradient(circle at 38% 30%, #7cff9d, #19ae52 55%, #046c2b 100%);
}
.cv-mobile-controller .mobile-action-pad .action-key.pressed {
  transform: scale(.88);
  opacity: 1;
  filter: brightness(1.18);
  box-shadow: inset 0 0 19px rgba(255,255,255,.28), 0 0 18px rgba(57,231,255,.20);
}

.cv-mobile-controller .mobile-start-key {
  position: absolute;
  z-index: 5;
  left: auto;
  right: calc(100% + 10px);
  top: 58%;
  width: clamp(64px, 13vh, 82px);
  height: clamp(30px, 6.2vh, 38px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  padding: 2px 8px;
  transform: translateY(-50%);
  border: 2px solid rgba(255,225,112,.85);
  border-radius: 999px;
  color: #fff3a1;
  background: linear-gradient(180deg, rgba(77,65,8,.95), rgba(24,18,0,.96));
  box-shadow: inset 0 0 12px rgba(255,235,122,.17), 0 5px 14px rgba(0,0,0,.48), 0 0 10px rgba(255,211,55,.16);
  font: 900 clamp(.58rem, 2.1vh, .78rem) Consolas, monospace;
  letter-spacing: .09em;
  line-height: 1;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .045s linear, filter .045s linear, box-shadow .045s linear;
}
.cv-mobile-controller .mobile-start-key small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.67);
  font-size: .42rem;
  letter-spacing: .05em;
}
.cv-mobile-controller .mobile-start-key.pressed {
  transform: translateY(-50%) scale(.90);
  filter: brightness(1.25);
  box-shadow: inset 0 0 18px rgba(255,245,170,.30), 0 0 18px rgba(255,211,55,.28);
}

.player-modal.mobile-landscape .player-header {
  top: max(8px, calc(env(safe-area-inset-top) + 3px));
  right: max(9px, calc(env(safe-area-inset-right) + 5px));
  z-index: 45;
}
.player-modal.mobile-landscape .close-button {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,104,121,.75);
  color: #fff;
  background: rgba(108,0,18,.82);
  opacity: .92;
}
.player-modal.mobile-landscape .player-coin-button {
  min-height: 38px;
  padding: 4px 10px;
  opacity: .90;
}
.player-modal.mobile-landscape .player-coin-button small { display: none; }

@media (orientation: portrait) and (pointer: coarse) {
  .player-modal.portrait-prompt .player-header,
  .player-modal.portrait-prompt .mobile-gamepad { display: none !important; }
  .screen-shell.expanded-player-screen { visibility: hidden; }
}

@media (orientation: landscape) and (pointer: coarse) {
  .screen-shell.expanded-player-screen {
    width: var(--cv-viewport-width, 100dvw) !important;
    height: var(--cv-viewport-height, 100dvh) !important;
  }
  .screen-shell.expanded-player-screen .game-frame {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (orientation: landscape) and (max-height: 430px) and (pointer: coarse) {
  .cv-mobile-controller .mobile-dpad {
    width: clamp(96px, 29vh, 124px);
    height: clamp(96px, 29vh, 124px);
  }
  .cv-mobile-controller .mobile-action-pad {
    width: clamp(116px, 33vh, 150px);
    height: clamp(88px, 25vh, 116px);
  }
  .cv-mobile-controller .mobile-action-pad .action-key {
    width: clamp(44px, 11vh, 58px);
    height: clamp(44px, 11vh, 58px);
  }
  .cv-mobile-controller .mobile-start-key {
    width: clamp(58px, 14vh, 74px);
    height: clamp(27px, 6.5vh, 34px);
  }
  .player-modal.mobile-landscape .close-button { width: 34px; height: 34px; }
  .player-modal.mobile-landscape .player-coin-button { min-height: 34px; }
}


/* ───────────── V16.10 Mobile Safe Zone & Instant Input Edition ───────────── */
:root {
  --cv-edge-guard: 30px;
  --cv-bottom-guard: 36px;
  --cv-control-safe-bottom: max(58px, calc(env(safe-area-inset-bottom) + 48px));
  --cv-control-safe-left: max(34px, calc(env(safe-area-inset-left) + 24px));
  --cv-control-safe-right: max(34px, calc(env(safe-area-inset-right) + 24px));
}

.player-modal.mobile-landscape,
.player-modal.mobile-landscape .player-panel,
.player-modal.mobile-landscape .mobile-gamepad {
  overscroll-behavior: none !important;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent;
}

.mobile-edge-guard { display: none; }
.player-modal.mobile-landscape .mobile-edge-guard {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 20;
  display: block;
  width: var(--cv-edge-guard);
  pointer-events: auto;
  touch-action: none;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.player-modal.mobile-landscape .mobile-edge-guard-left { left: 0; }
.player-modal.mobile-landscape .mobile-edge-guard-right { right: 0; }
.player-modal.mobile-landscape .mobile-edge-guard-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  height: var(--cv-bottom-guard);
}

.cv-mobile-controller .mobile-dpad {
  left: var(--cv-control-safe-left);
  bottom: var(--cv-control-safe-bottom);
}
.cv-mobile-controller .mobile-action-pad {
  right: var(--cv-control-safe-right);
  bottom: var(--cv-control-safe-bottom);
}

.cv-mobile-controller .mobile-dpad .gamepad-key,
.cv-mobile-controller .mobile-action-pad .action-key,
.cv-mobile-controller .mobile-start-key,
.player-modal.mobile-landscape .player-coin-button,
.player-modal.mobile-landscape .close-button {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: none !important;
}

.cv-mobile-controller .mobile-dpad .gamepad-key::before,
.cv-mobile-controller .mobile-action-pad .action-key::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: transparent;
}

.player-modal.mobile-landscape .player-header {
  top: max(16px, calc(env(safe-area-inset-top) + 10px));
  right: max(20px, calc(env(safe-area-inset-right) + 16px));
}
.player-modal.mobile-landscape .player-header-actions { gap: 14px; }
.player-modal.mobile-landscape .player-coin-button {
  min-width: 52px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 15px;
  border-width: 2px;
  opacity: 1;
  pointer-events: auto;
  font-size: .68rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.52), 0 0 16px rgba(255,211,55,.18);
}
.player-modal.mobile-landscape .player-coin-button span {
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1;
}
.player-modal.mobile-landscape .player-coin-button small {
  display: none;
}
.player-modal.mobile-landscape .player-coin-button.pressed {
  transform: scale(.93);
  filter: brightness(1.22);
}
.player-modal.mobile-landscape .close-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.50);
}
.player-modal.mobile-landscape .close-button.pressed {
  transform: scale(.90);
  filter: brightness(1.2);
}

@media (orientation: landscape) and (max-height: 430px) and (pointer: coarse) {
  :root {
    --cv-control-safe-bottom: max(48px, calc(env(safe-area-inset-bottom) + 40px));
    --cv-control-safe-left: max(30px, calc(env(safe-area-inset-left) + 20px));
    --cv-control-safe-right: max(30px, calc(env(safe-area-inset-right) + 20px));
  }
  .player-modal.mobile-landscape .player-header {
    top: max(10px, calc(env(safe-area-inset-top) + 7px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
  }
  .player-modal.mobile-landscape .player-coin-button {
    min-width: 104px;
    min-height: 46px;
    padding: 6px 13px;
  }
  .player-modal.mobile-landscape .close-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

@media (orientation: landscape) and (max-height: 350px) and (pointer: coarse) {
  :root { --cv-control-safe-bottom: max(40px, calc(env(safe-area-inset-bottom) + 34px)); }
  .cv-mobile-controller .mobile-dpad {
    width: clamp(88px, 28vh, 108px);
    height: clamp(88px, 28vh, 108px);
  }
  .cv-mobile-controller .mobile-action-pad {
    width: clamp(108px, 32vh, 136px);
    height: clamp(80px, 24vh, 104px);
  }
}

/* ───── V16.10 Mobile Gesture Lock & Adaptive Controls Edition ───── */
html.mobile-gesture-locked,
body.mobile-gesture-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html.mobile-gesture-locked *,
body.mobile-gesture-locked * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
}

.player-modal.mobile-landscape .mobile-gamepad,
.player-modal.mobile-landscape .mobile-gamepad *,
.player-modal.mobile-landscape .player-header-actions,
.player-modal.mobile-landscape .player-header-actions * {
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.screen-loading .status-secondary,
.screen-message .status-secondary {
  display: block;
  color: rgba(226,232,255,.70);
  font-size: clamp(4px, .44vw, 7px);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.screen-loading .status-detail {
  display: block;
  max-width: 90%;
  color: rgba(151,162,193,.78);
  font: 600 clamp(3px, .37vw, 6px) Consolas, monospace;
  line-height: 1.45;
  letter-spacing: .035em;
  font-style: normal;
}
.screen-message .message-secondary {
  display: block;
  max-width: 92%;
  color: rgba(132,143,174,.82);
  font-size: clamp(3px, .39vw, 6px);
  line-height: 1.45;
}
.toast {
  display: grid;
  gap: 3px;
}
.toast-primary { display: block; font-size: .78rem; }
.toast-secondary {
  display: block;
  color: #8e98b7;
  font-size: .61rem;
  line-height: 1.35;
}
.toast-secondary[hidden] { display: none !important; }

.cv-mobile-controller .mobile-action-pad .action-key[hidden] {
  display: none !important;
}

/* Two-button default: diagonal arcade layout. */
.cv-mobile-controller.profile-two-button .mobile-action-pad {
  width: clamp(132px, 31vh, 174px);
  height: clamp(100px, 24vh, 134px);
}
.cv-mobile-controller.profile-two-button .action-b { left: 2%; bottom: 0; top: auto; right: auto; }
.cv-mobile-controller.profile-two-button .action-a { right: 0; top: 0; left: auto; bottom: auto; }

/* Three-button triangle. */
.cv-mobile-controller.profile-three-button .mobile-action-pad {
  width: clamp(150px, 35vh, 192px);
  height: clamp(112px, 27vh, 146px);
}
.cv-mobile-controller.profile-three-button .action-b { left: 0; bottom: 0; top: auto; right: auto; }
.cv-mobile-controller.profile-three-button .action-a { right: 0; bottom: 0; top: auto; left: auto; }
.cv-mobile-controller.profile-three-button .action-c { left: 50%; top: 0; bottom: auto; right: auto; transform: translateX(-50%); }
.cv-mobile-controller.profile-three-button .action-c.pressed { transform: translateX(-50%) scale(.88); }

/* Four-button and Mortal Kombat profiles. */
.cv-mobile-controller.profile-four-button .mobile-action-pad,
.cv-mobile-controller.profile-mk-layout .mobile-action-pad {
  width: clamp(148px, 35vh, 194px);
  height: clamp(126px, 30vh, 164px);
}
.cv-mobile-controller.profile-four-button .mobile-action-pad .action-key,
.cv-mobile-controller.profile-mk-layout .mobile-action-pad .action-key {
  width: clamp(46px, 9.3vh, 60px);
  height: clamp(46px, 9.3vh, 60px);
  font-size: clamp(.88rem, 3.5vh, 1.18rem);
}
.cv-mobile-controller.profile-four-button .action-c,
.cv-mobile-controller.profile-mk-layout .action-c { left: 0; top: 0; right: auto; bottom: auto; }
.cv-mobile-controller.profile-four-button .action-d,
.cv-mobile-controller.profile-mk-layout .action-d { right: 0; top: 0; left: auto; bottom: auto; }
.cv-mobile-controller.profile-four-button .action-b,
.cv-mobile-controller.profile-mk-layout .action-b { left: 0; bottom: 0; right: auto; top: auto; }
.cv-mobile-controller.profile-four-button .action-a,
.cv-mobile-controller.profile-mk-layout .action-a { right: 0; bottom: 0; left: auto; top: auto; }

/* Six-button two-row fighting layout. */
.cv-mobile-controller.profile-six-button .mobile-action-pad {
  width: clamp(204px, 48vh, 272px);
  height: clamp(116px, 28vh, 154px);
}
.cv-mobile-controller.profile-six-button .mobile-action-pad .action-key {
  width: clamp(43px, 8.8vh, 56px);
  height: clamp(43px, 8.8vh, 56px);
  font-size: clamp(.76rem, 3.2vh, 1rem);
}
.cv-mobile-controller.profile-six-button .action-d { left: 0; top: 0; right: auto; bottom: auto; }
.cv-mobile-controller.profile-six-button .action-e { left: 50%; top: 0; right: auto; bottom: auto; transform: translateX(-50%); }
.cv-mobile-controller.profile-six-button .action-f { right: 0; top: 0; left: auto; bottom: auto; }
.cv-mobile-controller.profile-six-button .action-a { left: 0; bottom: 0; right: auto; top: auto; }
.cv-mobile-controller.profile-six-button .action-b { left: 50%; bottom: 0; right: auto; top: auto; transform: translateX(-50%); }
.cv-mobile-controller.profile-six-button .action-c { right: 0; bottom: 0; left: auto; top: auto; }
.cv-mobile-controller.profile-six-button .action-e.pressed,
.cv-mobile-controller.profile-six-button .action-b.pressed { transform: translateX(-50%) scale(.88); }

.cv-mobile-controller.profile-six-button .mobile-start-key {
  right: calc(100% + 7px);
  top: 50%;
}
.cv-mobile-controller.profile-four-button .mobile-start-key,
.cv-mobile-controller.profile-mk-layout .mobile-start-key,
.cv-mobile-controller.profile-three-button .mobile-start-key {
  right: calc(100% + 8px);
  top: 54%;
}

@media (orientation: landscape) and (max-height: 430px) and (pointer: coarse) {
  .cv-mobile-controller.profile-six-button .mobile-action-pad {
    width: clamp(188px, 52vh, 238px);
    height: clamp(100px, 29vh, 132px);
  }
  .cv-mobile-controller.profile-six-button .mobile-action-pad .action-key,
  .cv-mobile-controller.profile-four-button .mobile-action-pad .action-key,
  .cv-mobile-controller.profile-mk-layout .mobile-action-pad .action-key {
    width: clamp(40px, 10vh, 52px);
    height: clamp(40px, 10vh, 52px);
  }
}
.cv-mobile-controller .action-c {
  background: radial-gradient(circle at 38% 30%, #79c8ff, #177bd8 55%, #063d82 100%);
}
.cv-mobile-controller .action-d {
  background: radial-gradient(circle at 38% 30%, #ffe77a, #d8a817 55%, #765300 100%);
}
.cv-mobile-controller .action-e {
  background: radial-gradient(circle at 38% 30%, #d794ff, #8739d0 55%, #451078 100%);
}
.cv-mobile-controller .action-f {
  background: radial-gradient(circle at 38% 30%, #ffad6d, #dd5a1b 55%, #7d2804 100%);
}


/* ───── V16.10 Loading State Machine & Arcade Stick Edition ───── */
.screen-recovery {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 7%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 38%, rgba(57,231,255,.12), transparent 38%),
    radial-gradient(circle at 50% 64%, rgba(255,59,212,.10), transparent 45%),
    rgba(0,0,0,.96);
  text-align: center;
}
.screen-recovery[hidden] { display: none !important; }
.screen-recovery-inner { width: min(92%, 520px); display: grid; justify-items: center; gap: clamp(5px,.65vw,11px); }
.screen-recovery strong { color: var(--pink); font-size: clamp(7px,.82vw,14px); line-height: 1.2; }
.screen-recovery > .screen-recovery-inner > span { max-width: 92%; color: #dfe6ff; font-size: clamp(4px,.5vw,8px); line-height: 1.45; }
.screen-recovery .status-secondary,.screen-recovery .message-secondary { display:block;color:rgba(179,190,221,.78);font-size:clamp(3px,.4vw,7px);line-height:1.4; }
.screen-recovery-actions { display:flex;justify-content:center;flex-wrap:wrap;gap:clamp(6px,.7vw,12px);margin-top:clamp(3px,.55vw,9px); }
.screen-recovery-button { min-width:clamp(92px,13vw,150px);min-height:clamp(28px,3.6vw,46px);display:grid;place-items:center;gap:1px;padding:6px 11px;border:1px solid rgba(57,231,255,.46);border-radius:10px;color:#fff;background:rgba(6,8,22,.92);box-shadow:0 0 14px rgba(57,231,255,.10);font:800 clamp(4px,.48vw,8px) Consolas,monospace;letter-spacing:.06em;pointer-events:auto;touch-action:manipulation; }
.screen-recovery-button.primary { border-color:rgba(255,59,212,.62);box-shadow:0 0 16px rgba(255,59,212,.16); }
.screen-recovery-button small { color:rgba(166,177,208,.78);font-size:.72em; }
.screen-recovery-button:active { transform:scale(.95); }
.screen-shell.expanded-player-screen .screen-recovery { width:100%!important;height:100%!important;border-radius:0!important;z-index:52; }

/* The parent layer must accept the pointer. Earlier mobile CSS intentionally
   disabled pointer events on .mobile-dpad; V16.10 explicitly overrides it. */
.cv-mobile-controller .mobile-dpad.cv-arcade-stick {
  width: clamp(146px, 37vh, 184px);
  height: clamp(146px, 37vh, 184px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  pointer-events: auto !important;
  touch-action: none !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cv-mobile-controller .mobile-dpad.cv-arcade-stick::before,
.cv-mobile-controller .mobile-dpad.cv-arcade-stick::after { content:none!important;display:none!important; }
.arcade-stick-base {
  position:absolute;
  inset:9%;
  border:3px solid rgba(255,73,79,.72);
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,82,88,.18) 0 24%, transparent 25%),
    radial-gradient(circle at 50% 52%, #4d080d 0 48%, #180307 50% 68%, #050205 70% 100%);
  box-shadow:inset 0 0 0 8px rgba(255,255,255,.035),inset 0 -13px 28px rgba(0,0,0,.82),0 10px 24px rgba(0,0,0,.72),0 0 20px rgba(255,45,62,.28);
  pointer-events:none;
}
.arcade-stick-gate {
  position:absolute;
  left:50%;top:50%;
  width:57%;height:57%;
  border:2px solid rgba(255,255,255,.09);
  border-radius:24%;
  transform:translate(-50%,-50%) rotate(45deg);
  box-shadow:inset 0 0 13px rgba(0,0,0,.75);
}
.arcade-stick-shaft {
  --stick-x:0px;
  --stick-y:0px;
  position:absolute;
  left:50%;top:50%;
  width:17px;
  height:72%;
  border-radius:999px;
  background:linear-gradient(90deg,#4a4a51 0%,#e8edf5 28%,#777985 52%,#f7f8fb 75%,#33343b 100%);
  box-shadow:0 8px 9px rgba(0,0,0,.68),inset -2px 0 3px rgba(0,0,0,.45);
  transform-origin:50% 82%;
  transform:translate(calc(-50% + var(--stick-x)),calc(-66% + var(--stick-y))) rotateX(7deg);
  transition:transform 72ms cubic-bezier(.2,.8,.2,1),filter 80ms ease;
  will-change:transform;
  pointer-events:none;
}
.arcade-stick-shaft.active { transition-duration:12ms;filter:brightness(1.08); }
.arcade-stick-ball {
  position:absolute;
  left:50%;top:-29px;
  width:58px;height:58px;
  border:2px solid rgba(255,166,166,.72);
  border-radius:50%;
  background:radial-gradient(circle at 34% 25%,#ffc2bd 0 6%,#f24a4d 21%,#a8141b 57%,#390307 100%);
  box-shadow:inset -9px -12px 18px rgba(0,0,0,.43),inset 7px 7px 12px rgba(255,255,255,.13),0 10px 15px rgba(0,0,0,.62),0 0 15px rgba(255,45,62,.32);
  transform:translateX(-50%);
}
.cv-mobile-controller .mobile-dpad.cv-arcade-stick.active .arcade-stick-base { filter:brightness(1.06); }

/* Controls occupy symmetric black corridors. The game canvas remains centred
   regardless of whether the selected title uses 2, 4 or 6 action buttons. */
@media (orientation: landscape) and (pointer: coarse) {
  .screen-shell.expanded-player-screen .game-frame {
    inset:0 var(--cv-game-safe-right,0px) 0 var(--cv-game-safe-left,0px)!important;
    width:auto!important;
    height:var(--cv-viewport-height,100dvh)!important;
    max-width:none!important;
    background:#000!important;
  }
  .cv-mobile-controller .mobile-dpad.cv-arcade-stick {
    left:max(28px,calc(env(safe-area-inset-left) + 20px));
    bottom:max(44px,calc(env(safe-area-inset-bottom) + 36px));
  }
  .cv-mobile-controller .mobile-action-pad {
    right:max(28px,calc(env(safe-area-inset-right) + 20px));
    bottom:max(44px,calc(env(safe-area-inset-bottom) + 36px));
  }
  .player-modal.mobile-landscape .player-header { right:max(20px,calc(env(safe-area-inset-right) + 16px)); }
}
@media (orientation: landscape) and (max-height:430px) and (pointer:coarse) {
  .cv-mobile-controller .mobile-dpad.cv-arcade-stick { width:clamp(126px,34vh,158px);height:clamp(126px,34vh,158px);bottom:max(36px,calc(env(safe-area-inset-bottom) + 30px)); }
  .arcade-stick-ball { width:50px;height:50px;top:-25px; }
  .cv-mobile-controller .mobile-action-pad { bottom:max(36px,calc(env(safe-area-inset-bottom) + 30px)); }
}
@media (orientation: landscape) and (max-height:350px) and (pointer:coarse) {
  .cv-mobile-controller .mobile-dpad.cv-arcade-stick { width:clamp(108px,32vh,132px);height:clamp(108px,32vh,132px);bottom:max(30px,calc(env(safe-area-inset-bottom) + 26px)); }
  .arcade-stick-shaft { width:14px; }
  .arcade-stick-ball { width:44px;height:44px;top:-22px; }
  .cv-mobile-controller .mobile-action-pad { bottom:max(30px,calc(env(safe-area-inset-bottom) + 26px)); }
}


/* Cinarverse V16.11.5: branded coin and optical mobile centring */
.giant-coin {
  overflow: hidden;
  isolation: isolate;
}
.giant-coin img {
  display: block;
  width: 59%;
  height: 59%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(25,12,70,.28)) drop-shadow(0 0 8px rgba(255,255,255,.22));
  transform: translateY(-1%);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.game-menu-panel,
.game-logo-grid,
.game-menu-toolbar,
.game-menu-body {
  -webkit-overflow-scrolling: touch;
}
@media (orientation: landscape) and (pointer: coarse) {
  .screen-shell.expanded-player-screen .game-frame {
    /* left/right safe corridors are supplied independently by app.js */
    transform: translateZ(0);
  }
}


/* Cinarverse V16.11.5 – category access and native orientation guard */
@media (max-width: 470px) {
  .category-popover { padding: 10px; }
  .category-popover-head { padding-bottom: 8px; }
  .category-button-grid { max-height: min(360px, 48dvh); }
  .rotate-device-overlay { padding: 22px 16px; }
  .rotate-device-overlay small { max-width: 360px; }
}



/* Cinarverse V16.11.5 – final mobile stability, user-gesture boot and safer play session */
.mobile-runtime-start {
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  min-width: min(290px, 78%);
  min-height: 48px;
  margin-top: 15px;
  padding: 10px 16px;
  border: 1px solid rgba(57,231,255,.62);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(57,231,255,.13), rgba(255,59,212,.16)), rgba(4,7,18,.96);
  box-shadow: 0 0 20px rgba(57,231,255,.11), inset 0 0 18px rgba(255,59,212,.06);
  font: 900 .69rem Consolas, monospace;
  letter-spacing: .075em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-runtime-start small { color: rgba(255,255,255,.62); font-size: .52rem; letter-spacing: .035em; }
.mobile-runtime-start[hidden] { display: none !important; }
@media (min-width: 769px), (pointer: fine) { .mobile-runtime-start { display: none !important; } }

/* Portrait mode is informational only. The OS rotation lock must be disabled. */
.rotate-fallback-actions,
.rotate-fallback-button,
.player-orientation-button { display: none !important; }

/* Give the game a little more visual weight and breathing room below the top edge. */
@media (orientation: landscape) and (pointer: coarse) {
  .screen-shell.expanded-player-screen .game-frame {
    transform: translate3d(var(--cv-game-shift-x, 0px), var(--cv-game-shift-y, 18px), 0) scale(var(--cv-game-scale, 1.13)) !important;
    transform-origin: 50% 50% !important;
  }
}

/* Mobile exit is a deliberate hold action, preventing fighting-game taps from closing play. */
.player-modal.mobile-landscape .close-button.cv-hold-to-exit {
  position: relative;
  overflow: hidden;
}
.player-modal.mobile-landscape .close-button.cv-hold-to-exit::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: #fff;
  transform: scaleX(var(--cv-exit-hold, 0));
  transform-origin: left center;
  transition: transform .9s linear;
}


/* Cinarverse V16.11.5: clean daily coin redirect flow */
.daily-coin-button[aria-busy="true"] { opacity:.68; cursor:wait; pointer-events:none; }
.daily-coin-button[aria-busy="true"]::after { content:""; width:16px; height:16px; margin-left:10px; border:2px solid transparent; border-top-color:#39e7ff; border-right-color:#ff3bd4; border-radius:50%; display:inline-block; animation:cv-daily-coin-spin .8s linear infinite; vertical-align:middle; }
.daily-coin-status { display:grid; justify-items:center; gap:3px; min-height:40px; margin-top:12px; color:#fff; text-align:center; }
.daily-coin-status[hidden] { display:none!important; }
.daily-coin-status strong { color:#39e7ff; font:900 .72rem Consolas,monospace; letter-spacing:.09em; }
.daily-coin-status small { color:rgba(255,255,255,.56); font:700 .58rem Consolas,monospace; letter-spacing:.07em; }
@keyframes cv-daily-coin-spin { to { transform:rotate(360deg); } }



/* Cinarverse V16.11.5: desktop-only native loading advertisement */
.cv-desktop-loading-ad{width:min(520px,92%);max-height:160px;margin:12px auto 2px;display:grid;justify-items:center;gap:5px;overflow:auto;position:relative;z-index:4}
.cv-desktop-loading-ad[hidden]{display:none!important}
.cv-desktop-loading-ad .cv-player-loading-ad-label{font:700 .46rem/1 Consolas,monospace;letter-spacing:.18em;color:rgba(255,255,255,.38)}
.cv-desktop-loading-ad.ad-load-failed{display:none!important}
@media (pointer:coarse), (max-width:760px){.cv-desktop-loading-ad{display:none!important}}


/* CINARVERSE V17.23 — static arcade narrative accessibility/layout only.
   Do not modify .machine-stage, .screen-shell, emulator iframe or hotspots. */
@media screen {
  body[data-page="/arcade.html"] .home-content,
  body[data-page="/arcade.html"] .home-content-intro,
  body[data-page="/arcade.html"] .home-content-grid {
    min-inline-size:0;
    box-sizing:border-box;
  }
  body[data-page="/arcade.html"] .home-content-intro {
    width:100%;
    max-width:none;
  }
  body[data-page="/arcade.html"] .home-content-intro .primary-description,
  body[data-page="/arcade.html"] .home-content-intro p {
    width:auto;
    max-width:none;
    max-inline-size:none;
    min-inline-size:0;
    overflow-wrap:break-word;
    white-space:normal;
  }
  body[data-page="/arcade.html"] .home-content-grid > a {
    min-inline-size:0;
  }
  body[data-page="/arcade.html"] .home-content-grid :is(strong,small) {
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:break-word;
    overflow-wrap:anywhere;
  }
}
@media screen and (max-width:680px) {
  body[data-page="/arcade.html"] .home-content {
    padding:clamp(16px,5vw,22px);
  }
}
