/* Lumio Games — site styles
   Each game page sets its own accent colours via the --accent / --accent-2 / --display variables. */

:root {
  --bg: #0b0b10;
  --bg-2: #13131b;
  --card: #181822;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f0f5;
  --muted: #a3a2b3;
  --accent: #ffb547;
  --accent-2: #ff5e8a;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--display); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 200deg, #ffb547, #ff5e8a, #7b6cff, #33e1ff, #ffb547);
  box-shadow: 0 0 18px rgba(255, 140, 120, 0.45);
  position: relative;
}
.logo-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---------- Home hero ---------- */
.hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(255, 94, 138, 0.18), transparent 70%),
    radial-gradient(40% 50% at 75% 30%, rgba(51, 225, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 19px; max-width: 54ch; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Game cards (home) ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 28px; }
.game-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 24px 60px -24px var(--glow, rgba(255, 94, 138, 0.5)); }
.game-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #000; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .thumb img { transform: scale(1.04); }
.game-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.game-card .body { padding: 22px 24px 26px; }
.game-card h3 { font-size: 26px; margin-bottom: 6px; }
.game-card p { color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 13px; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 4px 10px; border-radius: 99px; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--card-accent, var(--accent)); }
.game-card:hover .card-cta span { transform: translateX(4px); }
.card-cta span { transition: transform 0.2s; }
.game-card.coming { border-style: dashed; display: grid; place-items: center; min-height: 260px; text-align: center; color: var(--muted); }
.game-card.coming:hover { transform: none; box-shadow: none; }

/* ---------- About / contact ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 17px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 22px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact-card dt { color: var(--muted); font-size: 14px; }
.contact-card dd { margin: 0; font-weight: 500; }
.contact-card address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* =========================================================
   Game detail pages
   ========================================================= */
.game-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: end; overflow: hidden; padding: 0; }
.game-hero .bg { position: absolute; inset: 0; }
.game-hero .bg img, .game-hero .bg video { width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 45%, var(--bg) 100%); }
.game-hero .eyebrow, .game-hero .back-link { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.game-hero .back-link { color: #d8d6e4; }
.game-hero .wrap { position: relative; z-index: 1; padding: 0 0 56px; }
.game-hero h1 { font-family: var(--display); font-size: clamp(44px, 8vw, 96px); margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.game-hero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 52ch; color: #e8e6f0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.back-link { display: inline-flex; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.back-link:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 15px; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b0b10; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--text); background: rgba(0, 0, 0, 0.3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -8px; }
.facts div { background: var(--bg-2); padding: 18px 20px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); font-size: 17px; }
.split .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature .icon { font-size: 26px; margin-bottom: 10px; color: var(--accent); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; background: #000; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s; }
.gallery button:hover img { transform: scale(1.05); }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.world img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.world .label { padding: 12px 14px 14px; }
.world h3 { font-size: 16px; margin: 0 0 2px; }
.world p { font-size: 13px; color: var(--muted); margin: 0; }
.world.text-only { padding: 16px; display: flex; flex-direction: column; justify-content: end; min-height: 110px; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 0; }
.world.text-only p { color: rgba(255, 255, 255, 0.85); }

.garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.car { background: #050508; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.car img { width: 100%; aspect-ratio: 646 / 300; object-fit: cover; }
.car .label { padding: 10px 14px 14px; }
.car h3 { font-size: 15px; margin: 0; }
.car p { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

.note { border-left: 3px solid var(--accent); background: var(--bg-2); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 64px 0 40px; }
  section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
