/* Home page styles (legal pages use legal.css) */
:root {
  --bg:#f3fcfa; --fg:#17353b; --muted:#4d6a70; --line:#cfe6e6;
  --accent:#1b8aa8; --accent-fg:#fff; --card:#fff;
  --hero-a:#8ff0f2; --hero-b:#e9fff6; --band:#dff4b8; --foot:#1d3a40; --foot-fg:#eaf6f6;
  --shadow:0 8px 24px rgba(23,53,59,.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#12191c; --fg:#e6f2f2; --muted:#9bb5b8; --line:#26373b;
    --accent:#5cc8e6; --accent-fg:#0d2429; --card:#1a252a;
    --hero-a:#14505c; --hero-b:#12191c; --band:#1f2f1d; --foot:#0c1315; --foot-fg:#d6e6e6;
    --shadow:0 8px 24px rgba(0,0,0,.4);
  }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.6 system-ui, sans-serif; }
a { color:var(--accent); }
h1, h2, h3 { line-height:1.15; margin:0; font-weight:800; letter-spacing:-.01em; }
section { scroll-margin-top:72px; }
.wrap { max-width:960px; margin:0 auto; padding:0 20px; overflow-wrap:anywhere; }

/* floating pill nav */
.top-nav { position:sticky; top:12px; z-index:10; display:flex; justify-content:center; padding:0 12px; }
.top-nav ul { display:flex; gap:4px; margin:0; padding:6px; list-style:none; background:var(--card); border-radius:999px; box-shadow:var(--shadow); }
.top-nav a { display:block; padding:8px 18px; border-radius:999px; color:var(--fg); text-decoration:none; font-weight:600; }
.top-nav a:hover, .top-nav a:focus-visible { background:var(--accent); color:var(--accent-fg); }

/* hero */
.hero { margin-top:-56px; padding:110px 0 40px; background:linear-gradient(180deg, var(--hero-a), var(--hero-b)); text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.hero-art { display:block; width:min(300px, 80%); height:auto; margin:0 auto 8px; }
.hero h1 { font-size:clamp(2.6rem, 9vw, 4.2rem); }
.hero .tagline { margin:12px auto 0; max-width:30ch; font-size:clamp(1.1rem, 3.5vw, 1.4rem); font-weight:600; }
.btn { display:inline-block; margin-top:24px; padding:12px 28px; border-radius:999px; background:var(--accent); color:var(--accent-fg); font-weight:700; text-decoration:none; box-shadow:var(--shadow); }
.btn:hover, .btn:focus-visible { filter:brightness(1.08); }

/* wave dividers */
.wave { display:block; width:100%; height:48px; }
.wave path { fill:currentColor; }
.hero-wave { color:var(--hero-b); background:var(--bg); }

/* sections */
.block { padding:56px 0; }
.block h2 { font-size:clamp(1.8rem, 6vw, 2.4rem); text-align:center; margin-bottom:28px; text-transform:uppercase; }
.games { background:var(--bg); }
.about { background:var(--band); }
.about p { max-width:60ch; margin:0 auto 1em; text-align:center; font-size:1.1rem; }

.game-card { display:grid; grid-template-columns:auto 1fr; gap:16px 20px; align-items:center; max-width:560px; margin:0 auto; padding:20px; background:var(--card); border-radius:24px; box-shadow:var(--shadow); overflow:hidden; }
.game-feature { grid-column:1 / -1; display:block; width:calc(100% + 40px); max-width:none; height:auto; margin:-20px -20px 0; }
.game-feature + .game-icon { margin-top:-56px; position:relative; border:4px solid var(--card); }
.game-icon { display:block; width:112px; height:auto; border-radius:24px; box-shadow:var(--shadow); }

.game-body h3 { font-size:1.4rem; margin-bottom:14px; }
.play-badge { display:block; width:max-content; }
.play-badge img { display:block; height:46px; width:auto; }
.game-links { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; padding-top:14px; border-top:1px solid var(--line); font-size:.95rem; }

.contact { background:var(--bg); text-align:center; }
.contact p { margin:0 auto; max-width:46ch; }

/* footer */
.foot-wave { color:var(--foot); margin-bottom:-1px; background:var(--bg); }
footer { background:var(--foot); color:var(--foot-fg); padding:8px 0 40px; }
footer .wrap { display:flex; flex-wrap:wrap; gap:20px 32px; align-items:center; justify-content:space-between; }
footer .brand { display:flex; align-items:center; gap:12px; font-weight:800; font-size:1.3rem; }
footer .brand img { width:96px; height:auto; }
footer nav { display:flex; flex-wrap:wrap; gap:8px 20px; }
footer a { color:var(--foot-fg); }
footer .copy { flex-basis:100%; margin:0; font-size:.9rem; opacity:.75; }

@media (max-width:480px) {
  .game-card { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .game-body { display:flex; flex-direction:column; align-items:center; }
  .game-links { justify-content:center; }
  .top-nav a { padding:8px 12px; font-size:.95rem; }
  .hero { padding-top:96px; }
  .block { padding:40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
}
