/* Azzari Arcade: retro arcade look (neon marquee, CRT scanlines, pixel type, synthwave floor) */
:root {
  --bg: #07051a;
  --bg-2: #120a33;
  --panel: rgba(20, 12, 52, 0.82);
  --ink: #e9e6ff;
  --muted: #9c95c9;
  --pink: #ff3ea5;
  --cyan: #33f0ff;
  --yellow: #ffe066;
  --green: #5dff8f;
  --line: rgba(51, 240, 255, 0.35);
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);   /* (no background here: the sky and grid behind it must show) */
  font: 400 22px/1.35 var(--term); letter-spacing: 0.02em; overflow-x: hidden;
}
/* Synthwave sky and receding grid floor, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(255, 62, 165, 0.35), transparent 70%),
    linear-gradient(180deg, #07051a 0%, #120a33 55%, #2a0b3d 100%);
}
body::after {
  content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 42vh; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(51, 240, 255, 0.28) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(51, 240, 255, 0.28) 0 2px, transparent 2px 60px);
  transform: perspective(360px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(0deg, #000 10%, transparent 95%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 0, 0 60px; } }
/* CRT scanlines over the whole page */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) { body::after, .blink, .marquee h1 { animation: none !important; } }

a { color: var(--cyan); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header / marquee ---------- */
.site-header { padding: 18px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; image-rendering: pixelated; }
.logo span { font: 14px/1.2 var(--pixel); color: var(--yellow); text-shadow: 0 0 8px rgba(255, 224, 102, 0.6); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { font: 11px/1 var(--pixel); color: var(--ink); text-decoration: none; padding: 10px 4px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); border-color: var(--pink); }

.marquee { text-align: center; padding: clamp(28px, 7vw, 70px) 0 16px; }
.marquee h1 {
  margin: 0; font: clamp(26px, 6.2vw, 64px)/1.15 var(--pixel); letter-spacing: 0.04em; color: #fff;
  text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 42px rgba(255, 62, 165, 0.8), 4px 4px 0 #5a0f63;
  animation: flicker 6s infinite;
}
.marquee h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 6px var(--cyan), 0 0 18px var(--cyan), 0 0 42px rgba(51, 240, 255, 0.8), 4px 4px 0 #0b3b66; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.55; } 94% { opacity: 1; } 96% { opacity: 0.7; } }
.marquee p { margin: 18px auto 0; max-width: 40ch; color: var(--muted); font-size: 26px; }
.blink { font: 14px/1 var(--pixel); color: var(--yellow); margin-top: 26px; display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 13px/1 var(--pixel); text-decoration: none; color: #1a0620; background: var(--yellow);
  padding: 16px 22px; border: 0; box-shadow: 0 4px 0 #a8801b, 0 0 20px rgba(255, 224, 102, 0.45); cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { color: #1a0620; transform: translateY(-2px); box-shadow: 0 6px 0 #a8801b, 0 0 28px rgba(255, 224, 102, 0.6); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a8801b; }
.btn.pink { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #8a1257, 0 0 20px rgba(255, 62, 165, 0.5); }
.btn.big { font-size: 18px; padding: 20px 30px; }

/* ---------- sections ---------- */
.section { padding: 30px 0; }
.section h2 { font: 16px/1.3 var(--pixel); color: var(--cyan); margin: 0 0 18px; text-shadow: 0 0 10px rgba(51, 240, 255, 0.5); }
.section h2::before { content: "▶ "; color: var(--pink); }
.panel { background: var(--panel); border: 2px solid var(--line); box-shadow: 0 0 0 4px #0b0822, 0 0 30px rgba(51, 240, 255, 0.12); padding: 20px; }

/* ---------- game cabinets ---------- */
.cabinets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cabinet {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #2a1360, #150a36); border: 3px solid #3d1f86; border-radius: 14px 14px 6px 6px;
  box-shadow: 0 0 0 3px #0b0822, 0 10px 0 #0b0822, 0 0 26px rgba(255, 62, 165, 0.18); padding: 12px 12px 16px;
  transition: transform 0.12s, box-shadow 0.12s;
}
a.cabinet:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 0 0 3px #0b0822, 0 14px 0 #0b0822, 0 0 34px rgba(255, 62, 165, 0.4); }
.cabinet .marq { font: 11px/1 var(--pixel); color: var(--yellow); text-align: center; padding: 8px 6px 12px; text-shadow: 0 0 8px rgba(255, 224, 102, 0.7); }
.screen { position: relative; aspect-ratio: 40 / 21; border-radius: 10px; overflow: hidden; background: #000; border: 4px solid #07051a; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9); }
.screen img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.15) contrast(1.05); }
.screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.cabinet .info { padding: 12px 4px 0; display: grid; gap: 6px; }
.cabinet h3 { margin: 0; font: 12px/1.3 var(--pixel); color: #fff; }
.cabinet .tags { color: var(--muted); font-size: 20px; }
.cabinet .play { font: 10px/1 var(--pixel); color: var(--green); margin-top: 4px; }
.cabinet.soon .screen { display: grid; place-items: center; }
.cabinet.soon .screen span { font: 12px/1.6 var(--pixel); color: var(--muted); text-align: center; animation: blink 1.6s steps(1) infinite; }

/* ---------- hi-score table ---------- */
.scores { width: 100%; border-collapse: collapse; font-size: 24px; }
.scores th { font: 10px/1 var(--pixel); color: var(--pink); text-align: left; padding: 8px 6px; border-bottom: 2px dashed var(--line); }
.scores td { padding: 6px; border-bottom: 1px solid rgba(51, 240, 255, 0.12); }
.scores td.rank { color: var(--yellow); width: 3.2em; }
.scores td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scores tr:first-child td { color: var(--yellow); }
.scores .empty { color: var(--muted); text-align: center; padding: 16px; }

/* ---------- game page ---------- */
.game-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .game-hero { grid-template-columns: 1fr; } }
.game-hero .screen { aspect-ratio: 40 / 21; border-width: 6px; }
.game-hero h1 { font: clamp(20px, 4vw, 34px)/1.25 var(--pixel); margin: 0 0 14px; color: #fff; text-shadow: 0 0 10px var(--pink), 3px 3px 0 #5a0f63; }
.game-hero p { margin: 0 0 14px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 22px; }
.keys dt { color: var(--yellow); }
.keys dd { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
kbd { font: 12px/1 var(--pixel); color: #fff; background: #2a1360; border: 2px solid var(--line); padding: 4px 6px; }

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; }
.prose h1 { font: clamp(18px, 3.4vw, 28px)/1.3 var(--pixel); color: #fff; text-shadow: 0 0 10px var(--pink); }
.prose h2 { font: 13px/1.4 var(--pixel); color: var(--cyan); margin-top: 30px; }
.prose p, .prose li { color: var(--ink); }

/* ---------- ad slots (reserved for later; hidden until ads are switched on) ---------- */
.ad-slot { display: none; margin: 26px auto; text-align: center; }
.ads-on .ad-slot { display: block; }
.ad-slot::before { content: "ADVERTISEMENT"; display: block; font: 8px/1 var(--pixel); color: var(--muted); margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 50px; padding: 26px 0 40px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 20px; }
.site-footer .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
