:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b111c;
  color: #f4f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #a6b0bf;
  --line: #263449;
  --panel: #121d2c;
  --accent: #a5ee5a;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 20% 0%, #1a2c3a 0, #0b111c 42rem); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #c2ff82; outline-offset: 4px; }

.site-header, main, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid #263449aa; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 780; letter-spacing: -.04em; }
.wordmark-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: var(--accent); color: #142112; font-size: 17px; font-style: italic; }
.site-header nav a { padding: 10px 0; color: #d3dae3; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-header nav a:hover, footer a:hover { color: var(--accent); }

.intro { max-width: 720px; padding: 82px 0 62px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 82px); line-height: .98; letter-spacing: -.075em; }
h1 span { color: #aab8c9; }
.intro-copy { max-width: 480px; margin: 22px 0 0; color: #b7c1ce; font-size: 17px; line-height: 1.6; }

.games-section { padding-bottom: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 8px; }
h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.refresh-button { border: 1px solid #3a4a60; border-radius: 999px; padding: 9px 14px; background: transparent; color: #d9e0e8; cursor: pointer; font-size: 13px; font-weight: 640; }
.refresh-button:hover { border-color: #91c75d; color: white; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); min-height: 235px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(140deg, #162335, #111a27 76%); box-shadow: 0 16px 40px #0002; }
.game-art { position: relative; min-height: 235px; overflow: hidden; background: linear-gradient(145deg, #344859, #141f2c); }
.game-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.game-card[data-game-id="startup"] .game-art { background: linear-gradient(140deg, #1c6058, #b5c37d); }
.game-card[data-game-id="founder"] .game-art { background: linear-gradient(140deg, #7a3d2e, #f1b06a); }
.game-card[data-game-id="fight"] .game-art { background: linear-gradient(140deg, #232e62, #9d3d61); }
.game-card[data-game-id="work"] .game-art { background: linear-gradient(140deg, #246965, #75b79d); }
.game-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 21px 20px 18px; }
.game-copy h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.game-copy p { margin: 9px 0 15px; color: #b2bdca; font-size: 13px; line-height: 1.5; }
.game-meta { display: flex; align-items: center; gap: 7px; margin: auto 0 14px; color: #a5b2c1; font-size: 11px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #738093; }
.status-online .status-dot { background: #a5ee5a; box-shadow: 0 0 10px #a5ee5a88; }
.status-starting .status-dot { background: #f2c266; }
.game-action { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 0 16px; background: var(--accent); color: #142112; text-decoration: none; font-size: 13px; font-weight: 780; cursor: pointer; }
.game-action:hover { background: #c2ff82; }
.game-action:disabled { cursor: wait; opacity: .65; }
.game-retry { margin-top: 9px; color: #aeb9c7; font-size: 11px; text-underline-offset: 3px; }
.game-error { margin: 10px 0 0 !important; color: #ffb6a7 !important; font-size: 12px !important; }
.site-status { min-height: 22px; margin: 17px 0 0; color: #8f9aaa; font-size: 12px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 35px; border-top: 1px solid #263449aa; color: #8490a0; font-size: 12px; }
.footer-wordmark { font-size: 14px; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 32px, 560px); }
  .intro { padding-top: 64px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 210px; }
  .game-art { min-height: 210px; }
}

@media (max-width: 420px) {
  .section-heading { align-items: start; flex-direction: column; }
  .game-card { grid-template-columns: 110px minmax(0, 1fr); }
  .game-art { min-height: 225px; }
  .game-copy { padding: 16px 14px; }
  .game-copy h3 { font-size: 20px; }
  .game-copy p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
