@font-face {
  font-family: "PinballXSystem";
  src: local("Segoe UI"), local("Arial");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0a102b;
  --bg-card: rgba(12, 20, 58, 0.78);
  --bg-card-solid: #0d163c;
  --text: #f4f7ff;
  --muted: #b5c1e6;
  --muted-strong: #d8def5;
  --line: rgba(141, 162, 255, 0.22);
  --blue: #071d8c;
  --blue-strong: #132ee8;
  --cyan: #3adcf5;
  --orange: #ff9800;
  --orange-strong: #ffb02e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: PinballXSystem, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(19, 46, 232, 0.36), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(255, 152, 0, 0.18), transparent 26rem),
    linear-gradient(180deg, #050816 0%, #070b1f 50%, #050816 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 74%);
  z-index: -1;
}

a { color: inherit; }

img, iframe { max-width: 100%; }

iframe { border: 0; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.container.narrow { width: min(850px, calc(100% - 32px)); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--orange);
  color: #160900;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(190px, 25vw, 280px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.36));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted-strong);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(58, 220, 245, 0.12);
  color: #fff;
  outline: 0;
}

.site-nav .nav-download {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  color: #170b00;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.24);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0.75rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.section { padding: clamp(64px, 7vw, 108px) 0; }
.section-muted { background: rgba(255, 255, 255, 0.03); border-block: 1px solid var(--line); }
.section-deep { background: linear-gradient(135deg, rgba(7, 29, 140, 0.72), rgba(5, 8, 22, 0.92)); }
.compact-section { padding-top: 32px; }
.section-glow { position: relative; overflow: hidden; }
.section-glow::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 42%;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.22), transparent 60%);
  pointer-events: none;
}

.hero {
  padding: clamp(72px, 9vw, 138px) 0 clamp(56px, 7vw, 104px);
}

.hero-grid,
.requirements-grid,
.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy,
.hero-panel,
.section-heading,
.split-intro,
.feature-grid,
.news-list,
.video-grid,
.requirements-grid,
.notice-card,
.content-card,
.support-grid,
.breadcrumbs {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.05; margin: 0; }

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  max-width: 12ch;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
}

h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.hero-lede {
  max-width: 64ch;
  color: var(--muted-strong);
  font-size: clamp(1.08rem, 2vw, 1.33rem);
  margin: 1.35rem 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); outline: 0; }

.button-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  color: #1a0c00;
  box-shadow: 0 18px 42px rgba(255, 152, 0, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.hero-stats div {
  padding: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-stats dt { font-size: 1.25rem; font-weight: 950; color: #fff; }
.hero-stats dd { margin: 0.1rem 0 0; color: var(--muted); }

.hero-panel {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(100%, 600px);
  height: auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.cabinet-card {
  position: absolute;
  right: 4%;
  bottom: 1%;
  width: min(310px, 65%);
  aspect-ratio: 0.65;
  background: linear-gradient(160deg, rgba(7,29,140,0.9), rgba(5,8,22,0.96));
  border: 1px solid rgba(58, 220, 245, 0.35);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.42), inset 0 0 42px rgba(58,220,245,0.08);
  transform: rotate(8deg);
  opacity: 0.9;
}

.cabinet-screen,
.cabinet-dmd,
.cabinet-playfield {
  position: absolute;
  left: 10%;
  right: 10%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, rgba(58,220,245,0.18), rgba(255,152,0,0.15));
}
.cabinet-screen { top: 7%; height: 22%; }
.cabinet-dmd { top: 34%; height: 10%; background: rgba(255,152,0,0.22); }
.cabinet-playfield { bottom: 8%; height: 44%; }

.split-intro { align-items: start; }
.split-intro > p { color: var(--muted-strong); font-size: 1.14rem; margin: 0; }

.feature-grid,
.video-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card,
.news-card,
.video-card,
.support-card,
.content-card,
.notice-card,
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 45px rgba(0,0,0,0.16);
}

.feature-card,
.support-card {
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(255, 152, 0, 0.13);
  color: var(--orange-strong);
  font-weight: 950;
}

.feature-card p,
.support-card p,
.video-card p,
.news-card p { color: var(--muted); margin-bottom: 0; }

.section-heading {
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted-strong);
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.news-list.compact { grid-template-columns: 1fr; }

.news-card {
  padding: 1.25rem;
}

.news-card time,
.article-meta {
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

.news-card h3 { margin-top: 0.65rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--orange-strong); }

.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { overflow: hidden; }
.video-content { padding: 1.2rem; }
.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #02030b;
  overflow: hidden;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: transform .3s ease, opacity .3s ease;
}
.video-placeholder:hover img { transform: scale(1.04); opacity: 0.88; }
.video-placeholder button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  box-shadow: 0 18px 42px rgba(0,0,0,0.36);
}
.video-placeholder button span {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #160900;
  transform: translateX(3px);
}
.video-placeholder iframe { width: 100%; height: 100%; }

.requirements-grid { grid-template-columns: 1fr 1fr; }
.requirements-grid p { color: var(--muted-strong); font-size: 1.12rem; }
.resource-list {
  display: grid;
  gap: 0.8rem;
}
.resource-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  font-weight: 850;
}
.resource-list a::after { content: "→"; color: var(--orange); }

.notice-card,
.content-card { padding: clamp(1.4rem, 3vw, 2rem); }
.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.notice-card p { max-width: 680px; color: var(--muted-strong); }

.page-hero { padding: clamp(68px, 8vw, 116px) 0; }
.page-hero h1 { max-width: 14ch; }
.rich-text { color: var(--muted-strong); font-size: 1.08rem; }
.rich-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2rem; color: #fff; }
.rich-text h2:first-child { margin-top: 0; }
.rich-text a { color: #fff; font-weight: 800; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.article-page h1 { max-width: 900px; font-size: clamp(2.2rem, 5vw, 4.2rem); }

.support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-card.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(7, 29, 140, 0.88), rgba(255, 152, 0, 0.18));
}

.breadcrumbs {
  padding-top: 1.1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: min(var(--max), calc(100% - 32px));
  color: var(--muted);
  font-size: 0.93rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: rgba(255,255,255,0.36);
}
.breadcrumbs a { text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 14, 0.92);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}
.site-footer h2 { font-size: 1rem; letter-spacing: 0; }
.site-footer p,
.site-footer a,
.site-footer li { color: var(--muted); }
.site-footer a { text-decoration-color: rgba(255, 152, 0, 0.7); }
.site-footer ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.partner-logo { display: inline-flex; margin-top: 1rem; }
.partner-logo img { height: auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.3rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(5, 8, 22, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
  .hero-grid,
  .requirements-grid,
  .split-intro { grid-template-columns: 1fr; }
  .hero-panel { min-height: 360px; }
  .feature-grid,
  .feature-grid.three,
  .news-list,
  .video-grid,
  .support-grid,
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-card.highlight { grid-column: span 1; }
  .section-heading.with-link,
  .notice-card,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .nav-shell { min-height: 76px; }
  h1 { font-size: clamp(2.35rem, 14vw, 3.9rem); }
  .hero { padding-top: 52px; }
  .hero-stats,
  .feature-grid,
  .feature-grid.three,
  .news-list,
  .video-grid,
  .support-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .hero-panel { min-height: 290px; }
  .cabinet-card { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
