:root {
  --bg: #17110a;
  --bg-2: #211810;
  --card: #2a1f14;
  --line: #3d2e1e;
  --text: #fdf4e3;
  --muted: #c9b79c;
  --amber: #ffb300;
  --amber-2: #ff8f00;
  --radius: 18px;
  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--amber); }
a:hover { color: #ffd54f; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: #000; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(23 17 10 / .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--amber); }
.nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(255 179 0 / .22), transparent 60%),
    radial-gradient(40rem 25rem at 0% 110%, rgb(255 111 0 / .15), transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: rgb(255 179 0 / .1); border: 1px solid rgb(255 179 0 / .3);
  padding: .3rem .8rem; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; margin: 1rem 0; font-weight: 900; letter-spacing: -.02em;
}
.hero h1 .glow {
  background: linear-gradient(90deg, #ffd54f, var(--amber), var(--amber-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-art { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 30px 60px rgb(255 143 0 / .35)); animation: float 6s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #2b1700; }
.btn-primary:hover { background: #ffc107; color: #2b1700; }
.btn-ghost { border: 2px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--text); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0; line-height: 1.15; }
.section-head p { color: var(--muted); margin: 0; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.game {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game:hover { transform: translateY(-4px); border-color: rgb(255 179 0 / .5); box-shadow: 0 20px 40px rgb(0 0 0 / .35); }
.game img { aspect-ratio: 8 / 5; width: 100%; object-fit: cover; }
.game-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.game h3 { margin: 0; font-size: 1.35rem; }
.game p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 700; color: var(--text); background: rgb(255 255 255 / .06); padding: .2rem .6rem; border-radius: 999px; }
.status {
  align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 999px;
}
.status-live { background: rgb(102 187 106 / .15); color: #81c784; }
.status-soon { background: rgb(255 179 0 / .15); color: var(--amber); }
.status-dev { background: rgb(79 195 247 / .15); color: #4fc3f7; }
.game-links { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.game-links .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-disabled { border: 2px dashed var(--line); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: .5rem 0 1rem; }
.about p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; gap: 1rem; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.value h3 { margin: 0 0 .3rem; font-size: 1.1rem; color: var(--amber); }
.value p { margin: 0; font-size: .98rem; }

/* Contact */
.contact-card {
  text-align: center; padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgb(255 179 0 / .18), rgb(255 111 0 / .08));
  border: 1px solid rgb(255 179 0 / .3);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
.contact-card p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 34rem; }
.contact-card .actions { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* Legal page */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .25rem; line-height: 1.1; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; color: var(--amber); }
.legal h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.legal p, .legal li { color: #e8dcc6; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--card); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 2rem 0; }
.toc ol { margin: .5rem 0 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.table-wrap { overflow-x: auto; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(3rem, 12vw, 7rem); margin: 0; color: var(--amber); }
.notfound .actions { justify-content: center; }

@media (max-width: 800px) {
  .hero .container, .about { grid-template-columns: 1fr; }
  .hero-art { grid-row: 1; width: 160px; }
  .toc ol { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
