/* Oblivara.games — studio promo shell */
:root {
  --void: #050a0f;
  --deep: #0b1620;
  --panel: #112230;
  --panel-2: #162a3d;
  --ink: #eef4f8;
  --muted: #8fa4b8;
  --line: rgba(143, 164, 184, 0.16);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.12);
  --ruby: #e11d48;
  --ruby-dim: rgba(225, 29, 72, 0.18);
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ui: "Outfit", system-ui, sans-serif;
  --display: "Bodoni Moda", Georgia, serif;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
figure { margin: 0; }

body {
  font-family: var(--ui);
  background: var(--void);
  color: var(--ink);
  line-height: 1.68;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 10%, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(180deg, var(--void), var(--deep));
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1180px, 93vw); margin-inline: auto; }

.contain-img,
img.contain { object-fit: contain; display: block; }

/* Age gate */
.age-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 10, 15, 0.94);
  backdrop-filter: blur(14px);
}
.age-overlay[hidden] { display: none !important; }

.age-card {
  width: min(460px, 100%);
  background: var(--panel);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid var(--teal-dim);
  box-shadow: var(--shadow);
}
.age-card h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.age-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.slider-row label { font-size: 0.78rem; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.slider-track {
  position: relative; height: 44px;
  background: var(--deep);
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
  pointer-events: none;
}
.slider-thumb {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  left: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
  display: grid; place-items: center;
  font-size: 0.85rem;
  cursor: grab;
  z-index: 2;
}
.slider-hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }

.age-actions { margin-top: 1.25rem; }
.age-check {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.86rem; margin-bottom: 1rem; cursor: pointer;
}
.age-check input { accent-color: var(--teal); margin-top: 0.2rem; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r);
  font-weight: 700; font-family: var(--ui);
  border: none; cursor: pointer;
  font-size: 0.9rem;
}
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), #0d9488);
  color: var(--void);
}
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; }

/* Announcement strip */
.announce {
  background: linear-gradient(90deg, var(--ruby-dim), var(--gold-dim), var(--teal-dim));
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
  color: var(--muted);
}
.announce strong { color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(11, 22, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--panel);
  border: 2px solid var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--ink); background: var(--teal-dim); text-decoration: none; }
.nav a.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: rgba(45, 212, 191, 0.25);
}

.header-store { flex-shrink: 0; }
.store-link { display: inline-block; transition: transform 0.2s; }
.store-link:hover { transform: scale(1.04); text-decoration: none; }
.store-link img { height: 42px; width: auto; object-fit: contain; display: block; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.65rem; }

.hero-lead { color: var(--muted); max-width: 58ch; font-size: 0.95rem; }

/* Hero bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 860px) { .hero-bento { grid-template-columns: 1fr; } }

.hero-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.hero-side {
  display: grid; gap: 1rem;
  grid-template-rows: auto 1fr;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 520px) { .stat-strip { grid-template-columns: 1fr; } }

.stat-pill {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.85rem 0.75rem;
  text-align: center;
}
.stat-pill strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold);
}
.stat-pill span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.icon-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 140px;
}
.icon-card .icon-wrap {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--deep);
  border: 1px solid var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  padding: 10px;
}
.icon-card .icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.icon-card p { font-size: 0.82rem; color: var(--muted); }

/* Description blocks */
.desc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.desc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.25rem;
}
.desc-card:nth-child(2) { border-left-color: var(--gold); }
.desc-card:nth-child(3) { border-left-color: var(--ruby); }
.desc-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.desc-card p { font-size: 0.88rem; color: var(--muted); }

/* Screenshot masonry */
.shot-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) { .shot-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shot-masonry { grid-template-columns: 1fr; } }

.shot-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 9 / 16;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.shot-frame:hover { border-color: var(--teal); transform: translateY(-3px); }
.shot-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Review tabs */
.reviews-section { margin-top: 1rem; }
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--teal-dim);
  border-color: rgba(45, 212, 191, 0.35);
  color: var(--teal);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.review-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--deep);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: contain; }
.review-meta strong { display: block; font-size: 0.9rem; }
.review-meta span { font-size: 0.72rem; color: var(--gold); }
.review-card p { font-size: 0.86rem; color: var(--muted); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
  margin-top: 1.5rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-dim);
}
.timeline-item h4 { font-family: var(--display); font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-item time { font-size: 0.72rem; color: var(--gold); font-weight: 600; }
.timeline-item p { font-size: 0.86rem; color: var(--muted); margin-top: 0.35rem; }

/* CTA bar */
.cta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.cta-note { font-size: 0.82rem; color: var(--muted); flex: 1; min-width: 200px; margin: 0; }

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.game-card:hover { border-color: var(--teal); transform: translateY(-4px); text-decoration: none; }
.game-card.flag { border-top: 3px solid var(--gold); }
.game-card.demo { border-top: 3px solid var(--teal); }

.game-art {
  height: 200px;
  background: var(--deep);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.game-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.game-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.game-tag {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.5rem;
}
.game-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.game-body p { font-size: 0.86rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.game-cta {
  font-weight: 700; font-size: 0.86rem; color: var(--gold);
}

/* Page hero (inner pages) */
.page-hero { margin-bottom: 2rem; max-width: 680px; }

.prose h2 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p, .prose li { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.25rem; }

.flex-media-card {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.blob {
  width: 80px; height: 80px;
  border-radius: var(--r);
  background: var(--deep);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.blob img { width: 100%; height: 100%; object-fit: contain; }

/* Demo page */
.demo-layout { min-height: 100vh; display: flex; flex-direction: column; }
.demo-main { flex: 1; padding: 1.5rem 0 2rem; display: flex; flex-direction: column; min-height: 0; }
.demo-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.demo-art {
  width: 76px; height: 76px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.demo-art img { max-width: 92%; max-height: 92%; object-fit: contain; }
.iframe-wrap {
  flex: 1; min-height: 520px;
  background: var(--panel);
  border: 2px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.iframe-wrap iframe {
  flex: 1; width: 100%; min-height: 560px;
  border: none; display: block; background: #030608;
}
.iframe-note {
  padding: 0.65rem 1rem;
  font-size: 0.74rem; color: var(--muted);
  background: var(--deep);
  border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--deep);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.footer-copy {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.84rem; color: var(--muted);
  max-width: 520px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-nav a { font-weight: 600; font-size: 0.84rem; text-decoration: none; }
.footer-legal-note { font-size: 0.72rem; color: var(--muted); opacity: 0.85; }

.icon-row {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-top: 1.5rem;
}
.icon-chip {
  width: 52px; height: 52px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.icon-chip img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 720px) {
  .header-store .store-link img { height: 36px; }
  .nav { width: 100%; justify-content: center; }
}
