:root {
  --sand: #f2d39a;
  --foam: #7ec8ff;
  --court: #2a8f5a;
  --spike: #ff3d9a;
  --sun: #ffe14a;
  --lime: #a8e000;
  --ink: #12151c;
  --paper: #fff8ee;
  --muted: #5c6570;
  --crt-bg: #05070c;
  --font-display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  /* Greenscreen CRT frame asset (yeni_arka.jpg) */
  --hero-w: 2906;
  --hero-h: 1440;
  --hero-ratio: 2906 / 1440;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.45;
  background: var(--crt-bg);
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--spike);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* --- Arcade CRT home --- */
.arcade-page {
  background: var(--crt-bg);
  color: var(--paper);
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

.arcade-page main {
  height: 100%;
}

.arcade-page a:hover {
  color: var(--sun);
}

.arcade-page > .site-header {
  display: none;
}

.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--crt-bg);
}

.arcade-stage {
  position: relative;
  width: min(100vw, calc(100vh * (2906 / 1440)));
  max-width: 100%;
  aspect-ratio: var(--hero-ratio);
  margin: 0 auto;
  overflow: hidden;
  background: #0a1620;
}

.splash-art,
.splash-demo,
.splash-chrome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-art {
  z-index: 1;
  pointer-events: none;
}

.splash-art img {
  width: 100%;
  height: 100%;
  max-width: none !important;
  /* Fill the greenscreen hole with court art until the video paints */
  object-fit: cover;
  object-position: center 42%;
}

.splash-demo {
  z-index: 2;
  border: 0;
  /* Stay invisible while poster shows; fade in when video has frames */
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.25s ease;
  object-fit: cover;
  object-position: center 42%;
}

.splash.is-demo-ready .splash-demo {
  opacity: 1;
}

.splash.is-demo-ready .splash-art {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.splash-chrome {
  z-index: 3;
  display: block;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill;
  pointer-events: none;
}

/* Hit targets — % of 2906×1440 greenscreen frame */
.hit-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hit {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.hit:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  color: transparent;
}

.hit-logo {
  left: 26%;
  top: 2%;
  width: 17%;
  height: 12%;
}

.hit-how {
  left: 43.2%;
  top: 3%;
  width: 11.2%;
  height: 10%;
}

.hit-faq {
  left: 54.6%;
  top: 3%;
  width: 7.8%;
  height: 10%;
}

.hit-about {
  left: 62.6%;
  top: 3%;
  width: 10.2%;
  height: 10%;
}

.hit-nav-play {
  left: 72%;
  top: 1.8%;
  width: 16.9%;
  height: 11.7%;
}

.hit-play {
  left: 30.1%;
  top: 83.7%;
  width: 19.4%;
  height: 11.4%;
}

.hit-howto {
  left: 52.5%;
  top: 82.3%;
  width: 20.8%;
  height: 13%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.45rem;
  border-radius: 0.85rem;
  border: 3px solid #0a0e14;
  background: linear-gradient(180deg, #7dff9f 0%, #3ecf7a 100%);
  color: #071018;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #0a0e14;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: #071018;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #0a0e14;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0a0e14;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  color: var(--sun);
  border-color: var(--sun);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Inner pages */
.inner-page {
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(95, 224, 138, 0.16), transparent 55%),
    linear-gradient(180deg, #0a1420, #071018 55%);
  color: var(--paper);
}

/* Arcade tropical shell owns atmosphere; keep marketing defaults for plain inner pages */
.inner-page.arcade-inner {
  color: #fff8ee;
}

.inner-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 16, 24, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.inner-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inner-page .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}

.inner-page .brand img {
  width: min(176px, 44vw);
  height: auto;
}

.inner-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.inner-page .nav-links a {
  color: var(--paper);
  text-decoration: none;
}

.inner-page .nav-links a:hover,
.inner-page .nav-links a[aria-current="page"] {
  color: var(--sun);
}

.page-hero {
  padding: 2.25rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 248, 238, 0.72);
  max-width: 40rem;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.prose p,
.prose li {
  color: rgba(255, 248, 238, 0.72);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.prose th {
  color: var(--sand);
  background: rgba(255, 255, 255, 0.05);
}

.prose td {
  color: rgba(255, 248, 238, 0.78);
}

.prose a {
  color: var(--foam);
}

.faq details {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.faq summary {
  cursor: pointer;
  color: var(--sand);
  font-weight: 800;
}

.faq details p {
  margin: 0.75rem 0 0.15rem;
  color: rgba(255, 248, 238, 0.72);
}

.mode-strip {
  padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, #0a1420, #071018);
}

.mode-strip h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.mode-strip .sub {
  margin: 0 0 1.35rem;
  max-width: 38rem;
  color: rgba(255, 248, 238, 0.7);
}

.mode-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode-list li {
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 4px solid var(--spike);
  color: rgba(255, 248, 238, 0.86);
}

.mode-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0 2.5rem;
  color: rgba(255, 248, 238, 0.55);
  font-size: 0.92rem;
  background: #071018;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--foam);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sun);
}

@media (max-width: 720px) {
  .arcade-stage {
    width: 100vw;
  }
}
