/* Kudosphere Games — one stylesheet for the whole site.
   Colours come from the studio emblem: near-black purple, gold, orange, bone white, cyan eyes. */

:root {
  --bg: #0d0712;
  --bg-2: #160c1e;
  --surface: #1d1128;
  --line: #2e1d3d;
  --text: #f3ece4;
  --muted: #b8a8c6;
  --gold: #f5b82e;
  --orange: #f07a1a;
  --cyan: #3fe0e8;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd36b; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: #000; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 7, 18, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 1.05rem; text-transform: uppercase; }
.brand span b { color: var(--gold); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 520px) {
  .brand span { display: none; }
  .nav a { padding: 8px 8px; font-size: .9rem; }
}

/* ---------- Headings ---------- */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.display {
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em;
}
.eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 .5em; }
.lead { font-size: 1.15rem; color: var(--muted); }

section { padding: 56px 0; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 12px;
  background: linear-gradient(90deg, var(--gold), var(--orange)); border-radius: 2px;
}

/* ---------- Home hero ---------- */
.hero { padding: 0; background: #03010c; border-bottom: 1px solid var(--line); }
.hero picture img { width: 100%; max-height: 78vh; object-fit: cover; object-position: center 35%; }
.hero-text { text-align: center; padding: 28px 16px 40px; }
.hero-text p { margin: 0 auto; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  background: linear-gradient(180deg, var(--gold), var(--orange)); color: #1a0d05;
  border: 0;
}
.btn:hover { color: #1a0d05; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); filter: none; }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border: 2px dashed var(--line); cursor: default; filter: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { color: var(--text); border-color: var(--gold); transform: translateY(-3px); }
.game-card .cover { aspect-ratio: 1024 / 500; object-fit: cover; width: 100%; }
.game-card .body { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.game-card .icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.game-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.game-card.placeholder { border-style: dashed; align-items: center; justify-content: center; min-height: 220px; color: var(--muted); text-align: center; padding: 24px; }
.game-card.placeholder:hover { transform: none; border-color: var(--line); }

/* ---------- About / contact ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 760px) { .split { grid-template-columns: 220px 1fr; } }
.split .emblem { width: 200px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(240,122,26,.25)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-mail { font-size: 1.2rem; font-weight: 700; word-break: break-all; }

/* ---------- Game page ---------- */
.game-hero { position: relative; padding: 0; border-bottom: 1px solid var(--line); }
.game-hero .feature { width: 100%; max-height: 520px; object-fit: cover; }
.game-hero .info { padding: 28px 0 8px; }
.game-title { display: flex; align-items: center; gap: 18px; }
.game-title img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.game-title h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }
.game-title p { margin: 4px 0 0; color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.shots img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; color: var(--gold); }
.legal p, .legal li { color: #e4dbe9; }
.legal .meta { color: var(--muted); border-left: 3px solid var(--orange); padding-left: 14px; }
.legal .meta p { margin: .2em 0; }
.table-scroll { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface); }
.legal tr:last-child td { border-bottom: 0; }
.legal a { word-break: break-word; }

.policy-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.policy-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.policy-list a:hover { border-color: var(--gold); color: var(--text); }
.policy-list img { width: 48px; height: 48px; border-radius: 12px; }
.policy-list span { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0; }
.notfound img { width: 160px; margin: 0 auto 20px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
