/* RST Games – one stylesheet for all pages. No external fonts or scripts (privacy, speed). */
:root {
  --bg: #0b1026;
  --bg-2: #121a3d;
  --card: #18224d;
  --line: #263266;
  --text: #e8ecff;
  --muted: #a3acd6;
  --gold: #f2c14e;
  --blue: #4a7bd0;
  --pink: #e0569b;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(74, 123, 208, 0.25), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(224, 86, 155, 0.16), transparent 60%),
              var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; color: var(--text); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; filter: brightness(1.35); }
.brand img { margin-bottom: -5px; } /* logo PNG has transparent space below */
.wordmark { display: flex; justify-content: space-between; width: 100%; font-weight: 700; color: #c9cde0; }
.wordmark b { font-weight: inherit; }
.brand .wordmark { font-size: 10px; }
nav.main { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
nav.main a { color: var(--muted); }
nav.main a:hover, nav.main a.on { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero .logo-big { justify-self: center; width: min(420px, 90%); display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; }
.hero .logo-big img { width: 100%; filter: brightness(1.35) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)); }
.hero .logo-big img { margin-bottom: -11%; }
.hero .logo-big .wordmark { font-size: clamp(22px, 3.4vw, 38px); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  background: var(--gold); color: #1a1405;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); margin-left: 8px; }

/* Sections */
section { padding: 36px 0 56px; }
h2 { font-size: 30px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--text); display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--blue); text-decoration: none; }
.game-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.game-card .body { padding: 18px 20px 22px; }
.game-card h3 { margin: 0 0 6px; font-size: 22px; }
.game-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #1a1405; background: var(--gold); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.tag.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.game-card.placeholder { justify-content: center; align-items: center; min-height: 260px; border-style: dashed; color: var(--muted); text-align: center; padding: 24px; }

/* Game page */
.game-hero { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; margin-top: 32px; border: 1px solid var(--line); }
.game-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-hero .overlay {
  position: absolute; inset: auto 0 0 0; padding: 28px 30px;
  background: linear-gradient(transparent, rgba(6, 9, 24, 0.92));
  display: flex; align-items: flex-end; gap: 22px;
}
.game-hero .overlay img { width: 110px; aspect-ratio: 1; }
.game-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.game-hero p { margin: 4px 0 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 8px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.feature b { display: block; font-size: 17px; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gallery a { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery figure { margin: 0; }
.sub.wide { max-width: 50em; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 8px 12px 10px; background: var(--card); }

/* Lightbox (CSS only, via :target) */
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 16, 0.94); padding: 4vh 4vw; }
.lightbox:target { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox .close { color: var(--muted); font-size: 15px; }

/* Text pages */
.text { max-width: 820px; padding-top: 40px; }
.text h1 { font-size: 38px; margin: 0 0 18px; }
.text h2 { font-size: 22px; margin: 34px 0 8px; }
.text h3 { font-size: 18px; margin: 22px 0 6px; }
.text p, .text li { color: #d3d8f5; }
.placeholder-note { background: rgba(242, 193, 78, 0.12); border: 1px solid rgba(242, 193, 78, 0.45); color: var(--gold); border-radius: 12px; padding: 12px 16px; }
mark { background: rgba(242, 193, 78, 0.22); color: var(--gold); padding: 0 4px; border-radius: 4px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer.site nav { display: flex; gap: 20px; margin-left: auto; }
footer.site a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero .logo-big { width: 60%; order: -1; }
  nav.main { gap: 14px; }
  .game-hero .overlay { flex-direction: column; align-items: flex-start; }
  .game-hero .overlay img { width: 72px; }
}
