/*
  game-page.css — shared styles for all ONRI Studio game pages
  Used by: fruit-playground.html, kselebox.html
*/

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg: #1a1a1a;
  --bg2: #222222;
  --text: #ffffff;
  --dim: #c8c8c8;
  --accent: #f39c12;
  --accent2: #d35400;
  --card: #252525;
  --card2: #202020;
  --brd: rgba(255,255,255,.09);
  --brd2: rgba(255,255,255,.06);
  --radius: 16px;
  --max: 980px;
  --pad: 24px;
  --h1: clamp(28px, 4.2vw, 48px);
  --h2: clamp(17px, 2.2vw, 22px);
  --lh: 1.65;
}

body.gp-page {
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh);
}

/* ── Topbar ───────────────────────────────────────────── */
.gp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #161616;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gp-topbar a { text-decoration: none; }

.gp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
}
.gp-brand img { height: 28px; width: auto; }
.gp-brand span { font-size: 1rem; }

.gp-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.gp-nav a {
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  opacity: .9;
  transition: color .15s, opacity .15s;
}
.gp-nav a:hover { color: var(--accent2); opacity: 1; }

/* ── Layout ───────────────────────────────────────────── */
.gp-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

/* ── Hero ─────────────────────────────────────────────── */
.gp-hero {
  text-align: center;
  padding-top: 36px;
  padding-bottom: 12px;
}

.gp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--brd2);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: var(--dim);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.gp-kdot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243,156,18,.15);
  flex-shrink: 0;
}

.gp-h1 {
  margin: 14px 0 10px;
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1.1;
}

.gp-sub {
  margin: 0 auto 4px;
  max-width: 720px;
  color: var(--dim);
  font-size: clamp(15px, 1.75vw, 18px);
}

.gp-divider {
  width: 56px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--accent);
  border-radius: 999px;
}

/* ── Store pills ──────────────────────────────────────── */
.gp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.gp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--brd2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 8px 24px rgba(0,0,0,.3);
  transition: transform .1s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 600;
}
.gp-pill:hover {
  border-color: rgba(243,156,18,.5);
  background: linear-gradient(180deg, rgba(243,156,18,.1), rgba(255,255,255,.02));
  transform: translateY(-1px);
}
.gp-pill:active { transform: translateY(1px); }
.gp-pill img {
  height: 20px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
}
.gp-pill svg {
  width: 20px; height: 20px;
  fill: currentColor;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────── */
.gp-card {
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 20px 24px;
  background:
    radial-gradient(900px 250px at 50% 0%, rgba(255,255,255,.055), transparent 55%),
    linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--brd);
  box-shadow:
    0 20px 50px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.gp-card h2 {
  margin: 0 0 12px;
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: .15px;
}
.gp-dim { color: var(--dim); }

/* feature list */
.gp-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.gp-list li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--dim);
  font-size: .97rem;
}
.gp-list li strong { color: #fff; }
.gp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243,156,18,.12);
}

/* ── Screenshot gallery ───────────────────────────────── */
.gp-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.gp-gallery a {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background: #111;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: border-color .15s, transform .15s;
}
.gp-gallery a:hover {
  border-color: rgba(243,156,18,.6);
  transform: translateY(-2px);
}
.gp-gallery a::after {
  content: "View";
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .15s ease;
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .1em;
}
.gp-gallery a:hover::after { opacity: 1; }

.gp-span-3 { grid-column: span 3; }
.gp-span-4 { grid-column: span 4; }
.gp-span-6 { grid-column: span 6; }

@media (max-width: 900px) {
  .gp-span-3, .gp-span-4 { grid-column: span 6; }
  .gp-span-6 { grid-column: span 6; }
}
@media (max-width: 560px) {
  .gp-span-3, .gp-span-4, .gp-span-6 { grid-column: span 12; }
}

.gp-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ── Lightbox ─────────────────────────────────────────── */
.gp-overlay {
  position: fixed; inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.8);
  z-index: 60;
  padding: 20px;
}
.gp-overlay.open { display: grid; }

.gp-modal { width: min(1100px, 92vw); position: relative; }

.gp-close {
  position: absolute;
  right: 10px; top: 10px;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  z-index: 2;
  transition: border-color .15s;
}
.gp-close:hover { border-color: rgba(243,156,18,.6); }

/* ── Footer ───────────────────────────────────────────── */
.gp-footer {
  background: linear-gradient(180deg, #222, #1a1a1a);
  border-top: 2px solid var(--accent);
  margin-top: 40px;
  padding: 20px 24px;
}
.gp-footer-in {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #bbb;
}
.gp-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.gp-footer a:hover { color: var(--accent2); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 520px) {
  .gp-topbar { padding: 10px 14px; }
  .gp-nav { gap: 16px; }
  .gp-wrap { padding: 16px; }
  .gp-card { padding: 16px 18px; }
}
