:root {
  --night: #0F1428;
  --night-2: #1B2340;
  --night-3: #252F52;
  --cream: #FFF6E5;
  --sand: #F6C567;
  --dune: #E07A3F;
  --sun: #FFD27A;
  --text: #FFF6E5;
  --muted: #C9C3D6;
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 40, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 246, 229, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 60%, #3A2E4A 100%);
  padding: 96px 0 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 auto 18px; max-width: 14ch; font-weight: 800;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 46ch; margin: 0 auto 32px; }
.hero .sun { width: 120px; margin: 0 auto 28px; }
.dunes { display: block; width: 100%; height: auto; margin-top: 64px; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--sand); color: var(--night); font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--sun); color: var(--night); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(255,246,229,.3); margin-left: 8px; }
.btn.ghost:hover { border-color: var(--sand); color: var(--sand); }

/* Sections */
section { padding: 80px 0; }
.sand-bg { background: var(--sand); color: var(--night); }
.sand-bg a { color: var(--night); }
.cream-bg { background: var(--cream); color: var(--night); }
.cream-bg a { color: #B85A24; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 700; color: var(--dune); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 21px; margin: 0 0 8px; font-weight: 700; }
.section-intro { max-width: 60ch; margin: 0 0 40px; }
.cream-bg .section-intro, .sand-bg .section-intro { color: #3A3550; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--night-2); border: 1px solid rgba(255,246,229,.08);
  border-radius: var(--radius); padding: 28px;
}
.sand-bg .card { color: var(--cream); }
.sand-bg .card .tag { background: rgba(246,197,103,.16); color: var(--sand); }
.cream-bg .card { background: #fff; border-color: rgba(27,35,64,.08); box-shadow: 0 1px 2px rgba(27,35,64,.06); }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(224,122,63,.14); color: var(--dune); margin-bottom: 14px;
}
.card p { margin: 0; color: inherit; opacity: .86; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--night-2); color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,246,229,.1);
}
.socials a:hover { border-color: var(--sand); color: var(--sand); }

/* Prose pages */
.page-head { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding: 72px 0 48px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 800; }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(27,35,64,.12); vertical-align: top; }
.prose th { font-weight: 700; }
.note { background: rgba(224,122,63,.1); border-left: 3px solid var(--dune); padding: 12px 16px; border-radius: 6px; }

details { background: #fff; border-radius: 12px; padding: 16px 20px; margin: 10px 0; border: 1px solid rgba(27,35,64,.08); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; }

/* Games */
.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.game { position: relative; background: var(--night-2); border: 1px solid rgba(255,246,229,.08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-art { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.game-art.tile { display: flex; align-items: center; justify-content: center; font-size: 88px; }
.game-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-body h3 { margin: 0; }
.game-body p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.plat { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--sand); color: var(--night); }
a.plat:hover { background: var(--sun); color: var(--night); }
.plat.soon { background: transparent; color: var(--muted); border: 1px solid rgba(255,246,229,.22); }

.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--dune); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* Newsletter */
.signup { display: flex; flex-direction: column; gap: 8px; }
.signup label { font-size: 14px; font-weight: 600; }
.signup input[type=text], .signup input[type=email] { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,246,229,.18); background: var(--night); color: var(--cream); margin-bottom: 8px; }
.signup input:focus { outline: 2px solid var(--sand); outline-offset: 1px; }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; opacity: .9; margin: 4px 0 10px; }
.signup .check input { margin-top: 4px; accent-color: var(--sand); }
.signup button { border: 0; cursor: pointer; font: inherit; font-weight: 700; align-self: flex-start; }
.signup .fine { font-size: 13px; margin-top: 6px; }
.sand-bg .signup .fine a { color: var(--sand); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #0A0E1E; color: var(--muted); padding: 48px 0 36px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer img { height: 34px; width: auto; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.legal { width: 100%; border-top: 1px solid rgba(255,246,229,.08); padding-top: 20px; font-size: 13px; }

@media (max-width: 760px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .brand img { height: 32px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
  .hero { padding-top: 64px; }
  .btn.ghost { margin: 10px 0 0; }
}
