/* Distinct Coder hub: dark arena tones and Fight Night's typefaces, so the site and the games feel like one place. */
:root {
  --bg: #0d1016; --surface: #151a22; --line: #262d39; --ink: #eef1f6; --muted: #9aa3b2;
  --red: #e5484f; --blue: #5b93ea; --gold: #e0b341;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f2f4f7; --surface: #ffffff; --line: #d9dee6; --ink: #12151b; --muted: #5b6170; --red: #c8232c; --blue: #1f5fbf; color-scheme: light; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.top, main, .foot { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.brand b { color: var(--red); }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--red); color: #fff; font: 500 15px/1 var(--mono); }
.top nav { display: flex; gap: 18px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.hero { padding: 56px 0 40px; max-width: 760px; }
.eyebrow { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.hero h1 { margin: 0; font: 800 clamp(48px, 9vw, 96px)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.hero h1 span { color: var(--red); }
.lede { margin: 18px 0 0; font-size: 19px; color: var(--muted); max-width: 600px; }

.games { display: grid; gap: 20px; padding-bottom: 40px; }
.game { display: grid; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.game.featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.shot { position: relative; display: block; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.03); }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 9px; border-radius: 4px; background: var(--gold); color: #12151b; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.info { display: grid; gap: 12px; align-content: start; padding: 26px 26px 28px; }
.info h2 { margin: 0; font: 800 44px/0.95 var(--display); text-transform: uppercase; }
.info p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.modes { margin: 0; padding-left: 18px; color: var(--muted); }
.play { justify-self: start; margin-top: 6px; padding: 13px 22px; border-radius: 6px; background: var(--red); color: #fff; text-decoration: none; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.play:hover { filter: brightness(1.08); }
.play:focus-visible, .shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.game.soon { grid-template-columns: 160px 1fr; opacity: 0.75; }
.placeholder { display: grid; place-items: center; min-height: 140px; font: 800 64px/1 var(--display); color: var(--line); background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 40%, transparent) 10px 20px); }

.about { padding: 24px 0 48px; max-width: 680px; }
.about h2 { margin: 0 0 8px; font: 800 32px/1 var(--display); text-transform: uppercase; }
.about p { margin: 0; color: var(--muted); }
.foot { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font: 400 13px/1 var(--mono); }

@media (max-width: 820px) {
  .game.featured { grid-template-columns: 1fr; }
  .info { padding: 20px; }
  .info h2 { font-size: 38px; }
  .hero { padding: 32px 0 28px; }
}
@media (max-width: 480px) {
  .top nav { display: none; }
  .game.soon { grid-template-columns: 1fr; }
}
