/* Sinar Studio homepage: neon sign on a brick wall, arcade cabinet UI */
@font-face {
  font-family: 'Press Start 2P';
  src: url('/assets/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #15111d;
  --bg-2: #1d1727;
  --panel: #221b2e;
  --mortar: #0d0a13;
  --ink: #f3ecff;
  --muted: #b3a7cc;
  --pink: #ff5fc8;
  --pink-soft: #ffc4ec;
  --cyan: #62ecff;
  --cyan-soft: #c9f8ff;
  --violet: #b98cff;
  --gold: #ffd46b;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  /* brick wall: one 96x72 tile, two offset rows of bricks */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(185, 140, 255, 0.18), transparent 60%),
    radial-gradient(ellipse at 100% 60%, rgba(255, 95, 200, 0.08), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='72'%3E%3Cpath d='M0 1h96M0 37h96M1 0v36M49 36v36' stroke='%230d0a13' stroke-width='3'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

/* CRT scanlines over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
}

.pixel {
  font-family: var(--pixel);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- neon ---------- */
.neon-pink {
  color: var(--pink-soft);
  text-shadow: 0 0 2px #fff, 0 0 8px var(--pink), 0 0 20px var(--pink), 0 0 40px rgba(255, 95, 200, 0.6);
}
.neon-cyan {
  color: var(--cyan-soft);
  text-shadow: 0 0 2px #fff, 0 0 8px var(--cyan), 0 0 20px var(--cyan), 0 0 40px rgba(98, 236, 255, 0.55);
}
.neon-gold {
  color: #fff3cf;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--gold), 0 0 22px var(--gold);
}

/* ---------- HUD header ---------- */
.hud {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  padding: 12px var(--gutter);
  background: rgba(13, 10, 19, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(185, 140, 255, 0.45);
  box-shadow: 0 0 18px rgba(185, 140, 255, 0.25);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}
.hud-brand img {
  border-radius: 50%;
}

.hud-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.hud-nav a,
.lang a {
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
}
.hud-nav a:hover {
  color: var(--cyan-soft);
  text-shadow: 0 0 10px var(--cyan);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.credit {
  margin: 0;
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
}
.credit output {
  color: #fff;
}

.lang {
  display: flex;
  border: 2px solid rgba(185, 140, 255, 0.5);
  border-radius: 8px;
  padding: 2px;
}
.lang a {
  padding: 6px 8px;
}
.lang a[aria-current] {
  background: var(--violet);
  color: var(--mortar);
}
.lang a:not([aria-current]):hover {
  color: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 14px 20px;
  font-size: 12px;
  text-decoration: none;
  border: 3px solid currentColor;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s;
}
.btn:active {
  transform: translateY(2px);
}
.btn-pink {
  color: #fff;
  border-color: var(--pink);
  background: rgba(255, 95, 200, 0.18);
  box-shadow: 0 0 14px rgba(255, 95, 200, 0.55), inset 0 0 12px rgba(255, 95, 200, 0.35);
}
.btn-pink:hover {
  box-shadow: 0 0 26px rgba(255, 95, 200, 0.85), inset 0 0 16px rgba(255, 95, 200, 0.5);
}
.btn-cyan {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(98, 236, 255, 0.14);
  box-shadow: 0 0 14px rgba(98, 236, 255, 0.5), inset 0 0 12px rgba(98, 236, 255, 0.3);
}
.btn-cyan:hover {
  box-shadow: 0 0 26px rgba(98, 236, 255, 0.85), inset 0 0 16px rgba(98, 236, 255, 0.45);
}
.btn-ghost {
  color: var(--gold);
  border-color: rgba(255, 212, 107, 0.7);
}
.btn-ghost:hover {
  box-shadow: 0 0 18px rgba(255, 212, 107, 0.5);
}
.btn-disabled {
  color: var(--muted);
  border-style: dashed;
  border-color: rgba(179, 167, 204, 0.5);
  cursor: default;
}

.coin-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -3px -3px 0 #c79a2c, 0 0 8px var(--gold);
}
.coin-icon.spin {
  animation: coin-spin 0.5s steps(6);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
}

.kicker {
  margin: 0 0 18px;
  font-size: 11px;
  color: var(--gold);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.35;
  color: var(--pink-soft);
  text-shadow: 0 0 2px #fff, 0 0 10px var(--pink), 0 0 26px var(--pink), 0 0 52px rgba(255, 95, 200, 0.5);
  animation: flicker 6s infinite;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* the logo shown on a CRT "screen" inside a cabinet bezel */
.screen {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.6vw, 18px);
  border-radius: 22px;
  background: linear-gradient(160deg, #2b2239, #120e19);
  border: 2px solid rgba(185, 140, 255, 0.55);
  box-shadow: 0 0 0 6px var(--mortar), 0 0 40px rgba(185, 140, 255, 0.35), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.screen img {
  width: 100%;
  border-radius: 12px;
}
.screen::after {
  content: '';
  position: absolute;
  inset: clamp(10px, 1.6vw, 18px);
  border-radius: 12px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 2px solid rgba(255, 212, 107, 0.55);
  background: rgba(13, 10, 19, 0.8);
  box-shadow: 0 0 18px rgba(255, 212, 107, 0.2);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-size: 12px;
  color: var(--gold);
  animation: marquee 32s linear infinite;
}
.marquee .star {
  color: var(--pink);
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter) 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
}

.section-lead {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
}

.loaded {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.loaded span {
  color: var(--cyan);
}

/* ---------- game cabinets ---------- */
.game-list {
  display: grid;
  gap: 28px;
}

.cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(34, 27, 46, 0.95), rgba(21, 17, 29, 0.95));
  border: 2px solid rgba(98, 236, 255, 0.6);
  box-shadow: 0 0 24px rgba(98, 236, 255, 0.22), inset 0 0 30px rgba(98, 236, 255, 0.06);
}

.cabinet-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--mortar);
}
.cabinet-screen img {
  width: 100%;
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 10px;
  font-size: 10px;
  border-radius: 6px;
  color: var(--mortar);
  box-shadow: 0 0 14px currentColor;
}
.status-released {
  background: #6dff9c;
  color: #062b14;
}
.status-testing {
  background: var(--gold);
}
.status-development {
  background: var(--violet);
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.shot {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(185, 140, 255, 0.35);
  transition: border-color 0.15s, transform 0.15s;
}
.shot:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(185, 140, 255, 0.5);
}
.game-title {
  margin: 0 0 6px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
}
.game-genre {
  margin: 0;
  color: var(--violet);
  font-size: 15px;
}
.game-tagline {
  margin: 0 0 10px;
  color: var(--cyan-soft);
  font-weight: 600;
}
.cabinet-info > p {
  margin-top: 0;
}

.mini-title {
  margin: 20px 0 10px;
  font-size: 10px;
  font-weight: 400;
  color: var(--gold);
}

.features {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
}
.features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.platforms {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}
.chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid rgba(98, 236, 255, 0.5);
  color: var(--cyan-soft);
}

.next-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 32px var(--gutter);
  text-align: center;
  border-radius: var(--radius);
  border: 2px dashed rgba(185, 140, 255, 0.45);
  color: var(--muted);
}
.next-slot h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--violet);
}
.next-slot p {
  margin: 0;
}
.next-q {
  font-size: 28px;
  color: var(--violet);
  text-shadow: 0 0 14px var(--violet);
  animation: blink 1.6s steps(1) infinite;
}

/* ---------- about ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(34, 27, 46, 0.9);
  border: 2px solid rgba(255, 95, 200, 0.35);
}
.pillar svg {
  width: 40px;
  height: 40px;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}
.pillar h3 {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 400;
}
.pillar p {
  margin: 0;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: clamp(56px, 9vw, 112px);
}
.countdown {
  margin: 4px 0 18px;
  font-size: clamp(48px, 8vw, 80px);
  color: var(--pink-soft);
  text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink);
}
.contact .section-lead {
  margin-bottom: 28px;
}
.email {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px var(--gutter);
  border-top: 2px solid rgba(185, 140, 255, 0.35);
  background: rgba(13, 10, 19, 0.85);
  color: var(--muted);
  font-size: 14px;
}
.footer p {
  margin: 0;
}
.footer a {
  font-size: 10px;
  text-decoration: none;
}

/* ---------- lightbox + toast ---------- */
.lightbox {
  width: min(1100px, calc(100vw - 32px));
  padding: 0;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  background: var(--mortar);
  box-shadow: 0 0 40px rgba(98, 236, 255, 0.45);
}
.lightbox::backdrop {
  background: rgba(8, 6, 12, 0.85);
}
.lightbox img {
  width: 100%;
}
.lightbox form {
  position: absolute;
  top: 8px;
  right: 8px;
}
.lightbox-close {
  width: 40px;
  height: 40px;
  font-size: 18px;
  border: 2px solid var(--pink);
  border-radius: 8px;
  color: #fff;
  background: rgba(13, 10, 19, 0.8);
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  margin: 0;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--mortar);
  background: var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(255, 212, 107, 0.7);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.game-links {
  margin: 16px 0 0;
  font-size: 14px;
}
.game-links a {
  color: var(--muted);
}
.game-links a:hover {
  color: var(--cyan);
}

.game-title a {
  color: inherit;
  text-decoration: none;
}
.game-title a:hover {
  color: var(--cyan-soft);
  text-shadow: 0 0 10px var(--cyan);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- game page ---------- */
.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  font-size: 14px;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: '\203A';
  margin-right: 6px;
  color: var(--violet);
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--cyan);
}
.crumbs [aria-current] {
  color: var(--ink);
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) 0;
}
.game-hero-screen {
  border: 2px solid rgba(98, 236, 255, 0.6);
  box-shadow: 0 0 0 6px var(--mortar), 0 0 40px rgba(98, 236, 255, 0.3);
}
.game-hero .game-title {
  font-size: clamp(20px, 3vw, 30px);
}
.game-hero .game-icon {
  width: 80px;
  height: 80px;
}

.game-about {
  max-width: 46em;
}
.game-about p {
  margin: 0 0 16px;
  font-size: clamp(17px, 1.5vw, 19px);
}
.game-about p:last-child {
  color: var(--gold);
  font-weight: 600;
}

.shots-large {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.highlight {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(34, 27, 46, 0.9);
  border: 2px solid rgba(255, 212, 107, 0.35);
}
.highlight h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
}
.highlight .features {
  margin: 0;
}

.back-link {
  padding-bottom: clamp(40px, 7vw, 80px);
}

/* ---------- document pages (privacy policy) ---------- */
.doc-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter) 64px;
}
.doc-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.doc-title img {
  border-radius: 16px;
  border: 2px solid rgba(185, 140, 255, 0.5);
}
.doc-game {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--pink-soft);
}
.doc-title h1 {
  margin: 0;
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 400;
}
.doc-body {
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: rgba(34, 27, 46, 0.95);
  border: 2px solid rgba(98, 236, 255, 0.4);
  box-shadow: 0 0 24px rgba(98, 236, 255, 0.15);
}
.doc-updated {
  font-family: var(--pixel);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
}
.doc-body h2 {
  margin: 28px 0 6px;
  font-size: 18px;
  color: var(--cyan-soft);
}
.doc-body p {
  margin: 0 0 12px;
}
.doc-body code {
  font-size: 0.9em;
  color: var(--pink-soft);
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */
.not-found main {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100vh;
  padding: var(--gutter);
  text-align: center;
}
.not-found main > p {
  margin: 0 0 6px;
  color: var(--muted);
}
.not-found .not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- BGM toggle ---------- */
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 2px solid rgba(98, 236, 255, 0.45);
  border-radius: 8px;
  cursor: pointer;
}
.sound:hover {
  color: #fff;
  border-color: var(--cyan);
}
.sound[aria-pressed='true'] {
  color: var(--cyan-soft);
}
.sound[aria-pressed='false'] {
  border-color: rgba(179, 167, 204, 0.35);
  border-style: dashed;
}
.sound[aria-pressed='false'] .sound-text {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.sound[aria-pressed='false'] .eq {
  opacity: 0.35;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.eq i {
  width: 3px;
  height: 3px;
  background: currentColor;
  transform-origin: bottom;
}
.sound.playing .eq i {
  animation: eq 0.9s steps(4) infinite;
}
.sound.playing .eq i:nth-child(2) {
  animation-delay: -0.3s;
  animation-duration: 0.7s;
}
.sound.playing .eq i:nth-child(3) {
  animation-delay: -0.5s;
}
.sound.playing .eq i:nth-child(4) {
  animation-delay: -0.15s;
  animation-duration: 1.1s;
}

/* ---------- arcade transitions ---------- */
/* CRT power-on: a white line flashes across, opens up, and the page fades in */
.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  pointer-events: none;
  animation: boot-fade 0.95s ease-in forwards;
}
.boot span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: #fff;
  box-shadow: 0 0 18px #fff, 0 0 40px var(--cyan);
  transform: scaleX(0);
  animation: crt-on 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

/* leaving for another page: chunky pixel wipe with a LOADING tag */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, #2a1340, var(--bg) 55%, #0f2a33);
  clip-path: inset(0 100% 0 0);
}
.wipe span {
  font-size: clamp(14px, 3vw, 22px);
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold);
}
.wipe span::after {
  content: '...';
  animation: blink 0.4s steps(1) infinite;
}
.leaving .wipe {
  visibility: visible;
  pointer-events: auto;
  animation: wipe-in 0.4s steps(8) forwards;
}

/* scroll reveal: stepped slide-up like old sprite movement */
.reveal {
  opacity: 0;
}
.reveal.in {
  animation: rise 0.55s steps(6) var(--d, 0s) both;
}
.section-head.in .section-title {
  animation: glitch 0.7s steps(1) calc(var(--d, 0s) + 0.25s) both;
}

/* READY? / GO! banner */
.banner {
  position: fixed;
  left: 50%;
  top: 45%;
  z-index: 95;
  margin: 0;
  font-size: clamp(28px, 7vw, 64px);
  color: #fff3cf;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--gold), 0 0 40px var(--pink);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  white-space: nowrap;
}
.banner.show {
  animation: banner-pop 0.65s steps(5) forwards;
}
.banner.go {
  color: var(--cyan-soft);
  text-shadow: 0 0 6px #fff, 0 0 18px var(--cyan), 0 0 40px var(--cyan);
}

.bump {
  animation: bump 0.3s steps(3);
}
.credit output {
  display: inline-block;
}

/* attract-mode scanline sweeping over a game cabinet on hover */
.cabinet {
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cabinet::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(98, 236, 255, 0.1), transparent);
}
.cabinet:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(98, 236, 255, 0.4), inset 0 0 30px rgba(98, 236, 255, 0.08);
}
.cabinet:hover::after {
  opacity: 1;
  animation: sweep 1.4s linear infinite;
}
.pillar {
  transition: transform 0.15s steps(2), border-color 0.15s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

/* ---------- animation ---------- */
.blink {
  animation: blink 1s steps(1) infinite;
}
.blink-slow {
  animation: blink 2s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes flicker {
  0%, 19%, 21%, 62%, 64%, 100% {
    opacity: 1;
  }
  20%, 63% {
    opacity: 0.55;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes coin-spin {
  50% {
    transform: scaleX(0.15);
  }
}

@keyframes eq {
  0% {
    transform: scaleY(1);
  }
  25% {
    transform: scaleY(4.5);
  }
  50% {
    transform: scaleY(2);
  }
  75% {
    transform: scaleY(3.5);
  }
}
@keyframes boot-fade {
  0%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes crt-on {
  0% {
    transform: scaleX(0);
  }
  45% {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1) scaleY(260);
    opacity: 0;
  }
}
@keyframes wipe-in {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes glitch {
  0% {
    transform: translate(-4px, 1px);
    text-shadow: -3px 0 var(--pink), 3px 0 var(--cyan);
    clip-path: inset(10% 0 55% 0);
  }
  20% {
    transform: translate(4px, -1px);
    text-shadow: 3px 0 var(--pink), -3px 0 var(--cyan);
    clip-path: inset(55% 0 5% 0);
  }
  40% {
    transform: translate(-2px, 0);
    clip-path: inset(30% 0 30% 0);
  }
  60% {
    transform: translate(2px, 1px);
    clip-path: none;
    opacity: 0.6;
  }
  80% {
    transform: none;
    opacity: 1;
  }
}
@keyframes banner-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
@keyframes bump {
  50% {
    transform: scale(1.35);
  }
}
@keyframes sweep {
  to {
    top: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .boot,
  .wipe,
  .banner {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .screen {
    order: -1;
  }
  .cabinet,
  .game-hero,
  .highlights {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hud {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .hud-brand span {
    display: none;
  }
  .hud-nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }
  .hud-nav a {
    padding: 6px 4px;
  }
  .hud-right {
    margin-left: auto;
    gap: 10px;
  }
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .credit span,
  .sound-text {
    display: none;
  }
}
