/* Bheeli Games hub (games.bheeli.com root pages): a light, clean studio look.
   Each game folder has its own stylesheet (Zombie Road Rumble: zombieroadrumble/style.css). */

@font-face {
  font-family: "Russo One";
  src: url("fonts/RussoOne.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Black Ops One";
  src: url("fonts/BlackOpsOne.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #1B1530;
  --ink-soft: #4F4866;
  --ink-faint: #7A7490;
  --line: #E7E3F0;
  --pink: #FF5FA2;
  --violet: #7C5CFF;
  --cyan: #22C7E0;
  --lime: #9BD62E;
  --accent: linear-gradient(90deg, #FF5FA2, #7C5CFF 50%, #22C7E0);
  --shadow: 0 1px 2px rgba(27, 21, 48, 0.06), 0 8px 24px rgba(27, 21, 48, 0.08);
  --shadow-lift: 0 2px 4px rgba(27, 21, 48, 0.06), 0 22px 48px rgba(27, 21, 48, 0.16);
  --radius: 24px;
  --head: "Russo One", "Segoe UI", Roboto, Arial, sans-serif;
  --body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
h1, h2, h3 { font-family: var(--head); font-weight: normal; line-height: 1.15; margin: 0; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); opacity: 0.7; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 6px; font-family: var(--head); font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: #EFEBFA; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- intro ---------- */

.intro { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 64px; text-align: center; }
.intro::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  background:
    radial-gradient(32% 42% at 18% 30%, rgba(255, 95, 162, 0.20), transparent 70%),
    radial-gradient(30% 40% at 82% 24%, rgba(34, 199, 224, 0.20), transparent 70%),
    radial-gradient(34% 40% at 55% 90%, rgba(124, 92, 255, 0.16), transparent 70%);
}
.kicker { display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-family: var(--head); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.intro h1 { font-size: clamp(46px, 9vw, 96px); letter-spacing: -0.5px; }
.intro h1 span { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { max-width: 640px; margin: 20px auto 0; font-size: 19px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--head); font-size: 14px; color: var(--ink); }
.chips li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--pink); vertical-align: 1px; }
.chips li:nth-child(2)::before { background: var(--violet); }
.chips li:nth-child(3)::before { background: var(--cyan); }

/* ---------- Zombie Road Rumble's name: the same title lockup as its own pages ----------
   Black Ops One, ZOMBIE in white, ROAD RUMBLE in pink #F56CAA at 0.74 of its size (Karan, 22 October 2026).
   On this light hub it always sits on dark: the key art on the game card, a small dark plate (.zrr-plate) elsewhere.
   .stack puts ROAD and RUMBLE on their own lines; without it ROAD RUMBLE shares one line. */

.zrr {
  display: inline-block;
  font-family: "Black Ops One", "Russo One", Impact, sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  text-shadow: 0 0.045em 0 #000, 0 0 0.27em rgba(99, 233, 237, 0.55);
}
.zrr .zrr-z, .zrr .zrr-r { display: block; }
.zrr .zrr-r {
  font-size: 0.74em;
  color: #F56CAA;
  text-shadow: 0 0.06em 0 #3A0F2A, 0 0 0.31em rgba(245, 108, 170, 0.5), 0 0 0.72em rgba(245, 108, 170, 0.35);
}
.zrr.stack .zrr-r span { display: block; }
.zrr-plate {
  display: inline-block;
  padding: 0.42em 0.62em 0.5em;
  border-radius: 0.42em;
  background: radial-gradient(90% 120% at 15% 0%, rgba(245, 108, 170, 0.22), transparent 60%), linear-gradient(160deg, #281B3B, #120D22);
  box-shadow: 0 0 0 1px rgba(99, 233, 237, 0.25), var(--shadow);
  text-decoration: none;
  line-height: 0;
}
.zrr-plate .zrr { vertical-align: top; }
.btns .zrr-plate { align-self: center; font-size: 19px; }
a.zrr-plate { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
a.zrr-plate:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(245, 108, 170, 0.6), var(--shadow-lift); }

/* ---------- game cards ---------- */

.games-sec { padding: 8px 0 88px; }
.games-sec h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 22px; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
a.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); color: var(--ink); }
.card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ECE8F6; }
.card .media .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.7s var(--ease); }
.card .media .face { position: absolute; right: 4%; bottom: -2%; height: 104%; width: auto; max-width: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); transition: transform 0.6s var(--ease); }
a.card:hover .art { transform: scale(1.05); }
a.card:hover .face { transform: translateY(-6px) scale(1.03); }
.card .media .card-logo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 64px 72px 18px 22px;
  font-size: clamp(32px, 3.7vw, 42px);
  background: radial-gradient(130% 120% at 0% 100%, rgba(12, 8, 24, 0.88), rgba(12, 8, 24, 0.6) 42%, transparent 72%);
  transition: transform 0.45s var(--ease);
}
a.card:hover .card-logo { transform: translateY(-3px); }
.card .body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.card h3 { font-size: clamp(24px, 3vw, 30px); }
.card p { margin: 0; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 3px 12px; border-radius: 999px; background: #F1EEF8; font-family: var(--head); font-size: 13px; color: var(--ink-soft); }
.tags li.soon { background: #FFE3EF; color: #C2185B; }
.go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--head); font-size: 16px; transition: background 0.25s, transform 0.25s var(--ease); }
.go::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
a.card:hover .go { background: var(--violet); transform: translateX(4px); }

.card.later .media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(124, 92, 255, 0.18) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, #F4F1FC, #EAF8FB);
}
.pill { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-family: var(--head); font-size: 15px; color: var(--ink); }
.pill::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--pink); vertical-align: 1px; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- simple pages ---------- */

.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(36px, 6vw, 52px); }
.meta { margin: 8px 0 0; color: var(--ink-faint); }
.doc { padding: 20px 0 72px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.box { margin: 20px 0; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box h2 { margin-top: 0; }
.mail { font-family: var(--head); font-size: 22px; color: var(--ink); word-break: break-all; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--head); font-size: 16px; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), background 0.2s; }
.btn:hover { color: #fff; background: var(--violet); transform: translateY(-2px); }
.btn.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.alt:hover { color: var(--ink); background: #F1EEF8; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* pages read from the database (site.js): loading and unavailable */
[hidden] { display: none !important; }
.doc [id] { scroll-margin-top: 84px; }
.loading { display: none; color: var(--ink-faint); font-family: var(--head); }
.js .loading { display: flex; align-items: center; gap: 12px; }
.loading::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); animation: hubpulse 1.2s ease-in-out infinite; }
@keyframes hubpulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.unavailable { padding: 18px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--pink); box-shadow: var(--shadow); }
.big404 { margin: 0; font-family: var(--head); font-size: clamp(90px, 22vw, 160px); line-height: 1; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; color: var(--ink-faint); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot b { display: block; font-family: var(--head); font-weight: normal; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.foot p { margin: 2px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; font-family: var(--head); }
.foot nav a { color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--violet); }

/* ---------- scroll reveal (only when site.js runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > :nth-child(2) { transition-delay: 0.12s; }

/* ---------- phones ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { justify-content: space-between; }
  .brand { font-size: 18px; }
  .nav a { padding: 6px 11px; font-size: 14px; }
  .intro { padding: 56px 0 44px; }
  .intro p { font-size: 17px; }
  .games { grid-template-columns: 1fr; gap: 22px; }
  .card .body { padding: 20px; }
  .games-sec { padding-bottom: 64px; }
  .box { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}
