:root {
  color-scheme: dark;
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --muted: #a8a8a8;
  --yellow: #ffe600;
  --line: #2b2b2b;
}

@font-face {
  font-family: "ComicPlon";
  src: url("assets/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "ComicPlon", Impact, sans-serif;
  opacity: 1;
  transition: opacity 160ms ease;
}
body.is-loading, body.is-leaving { opacity: 0; }
a { color: inherit; }
.site-header, footer, main { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 1000; font-size: 28px; letter-spacing: 2px; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; text-transform: uppercase; }
nav a:hover, nav a:focus { color: var(--yellow); }
.hero { min-height: calc(100svh - 78px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--yellow); font-size: 12px; letter-spacing: 2.5px; font-weight: 800; }
h1, h2, h3 { margin: 0; font-weight: 1000; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(88px, 17vw, 190px); line-height: .82; -webkit-text-stroke: 3px #000; text-shadow: 8px 8px 0 var(--yellow), 11px 11px 0 #000; transform: rotate(-2deg); }
.hero h1 span { color: var(--yellow); text-shadow: none; }
.lead { max-width: 600px; margin: 42px 0 34px; color: #d7d7d7; font-size: clamp(18px, 2.3vw, 27px); line-height: 1.45; }
.button { display: inline-block; padding: 15px 22px; background: var(--yellow); color: #000; border: 2px solid #fff; text-decoration: none; font-weight: 1000; letter-spacing: 1px; }
.playfield { position: relative; aspect-ratio: 9 / 15; max-height: 68svh; border: 1px solid var(--line); background: radial-gradient(circle at 50% 70%, #101010, #000 60%); overflow: hidden; }
.paddle { position: absolute; width: 38%; height: 12px; bottom: 8%; left: 31%; background: #fff; border-radius: 6px; box-shadow: 0 0 20px #ffffff55; }
.ball { position: absolute; width: 17px; aspect-ratio: 1; border-radius: 50%; background: #fff; left: 60%; top: 51%; box-shadow: 0 0 12px #ffffff88; animation: ballPulse 1s ease-in-out infinite alternate; }
.dot { position: absolute; width: 5px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.d1 { left: 28%; top: 25%; }.d2 { left: 34%; top: 29%; }.d3 { left: 40%; top: 33%; }.d4 { left: 46%; top: 38%; }.d5 { left: 52%; top: 43%; }.d6 { left: 57%; top: 48%; }
@keyframes ballPulse { to { transform: scale(1.18); } }
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(38px, 7vw, 76px); line-height: .95; max-width: 850px; }
.card-grid, .mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.card, .mode-grid article { border: 1px solid var(--line); background: var(--ink); padding: 30px; min-height: 260px; }
.card b { color: var(--yellow); }.card h3 { font-size: 30px; margin: 48px 0 16px; }.card p, .mode-grid p, .section > p, .legal p, li { color: #c5c5c5; line-height: 1.7; }
.card.accent { background: var(--yellow); color: #000; transform: rotate(1deg); }.card.accent b, .card.accent p { color: #000; }
.split { display: grid; grid-template-columns: 1fr .75fr; gap: 70px; align-items: center; }
.score-table { border: 1px solid var(--line); }.score-table div { display: flex; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }.score-table div:last-child { border: 0; }.score-table strong { color: var(--yellow); font-size: 20px; }
.mode-grid { grid-template-columns: repeat(2, 1fr); }.mode-grid article h2 { color: var(--yellow); font-size: 50px; }
.rules ul { margin-top: 40px; padding-left: 22px; max-width: 780px; }.rules li::marker { color: var(--yellow); }
footer { min-height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
footer span { margin-right: auto; } footer a:hover { color: var(--yellow); }
.legal { max-width: 820px; padding-block: 100px; }.legal h1 { font-size: clamp(48px, 8vw, 88px); line-height: .9; margin: 20px 0 70px; }.legal section { padding: 35px 0; border-top: 1px solid var(--line); }.legal h2 { font-size: 24px; letter-spacing: 0; }.legal a { color: var(--yellow); }
@media (max-width: 760px) {
  .site-header, footer, main { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; padding: 20px 0; }
  nav { gap: 10px; flex-direction: column; text-align: right; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding: 80px 0; }
  .playfield { width: 75%; max-height: none; margin-inline: auto; }
  .card-grid, .mode-grid, .split { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }.card { min-height: 220px; }
  footer { flex-wrap: wrap; padding: 25px 0; } footer span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
