:root {
  --bg: #0b0b12;
  --bg-2: #12121c;
  --card: #171724;
  --card-hover: #1d1d2d;
  --border: #2a2a3d;
  --text: #ecebf5;
  --muted: #9b99b3;
  --accent: #ff4d5e;
  --accent-2: #ffb347;
  --radius: 14px;
  --max: 1160px;
  --font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .5px; }
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff7a45); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(255, 77, 94, .18), transparent 60%),
    radial-gradient(700px 400px at 85% 20%, rgba(255, 179, 71, .12), transparent 60%);
}
.hero h1 { font-family: var(--font-head); font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.05; letter-spacing: 1px; }
.hero h1 .grad { 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: 1.15rem; max-width: 560px; margin: 18px auto 34px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { margin-bottom: 36px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, background .2s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--card-hover); }
.game-card .cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .cover img { transform: scale(1.05); }
.game-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { font-family: var(--font-head); font-size: 1.5rem; }
.game-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); }
.more-soon {
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 40px; min-height: 280px;
}
.more-soon strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--text); }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); margin-bottom: 14px; }
.contact-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-box h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 8px; }
.contact-box p { margin-bottom: 18px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Game detail ---------- */
.game-hero { position: relative; padding: 0; }
.game-banner { aspect-ratio: 21 / 8; max-height: 460px; width: 100%; object-fit: cover; mask-image: linear-gradient(to bottom, #000 55%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.game-hero .container { margin-top: -90px; position: relative; }
.game-hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.game-hero .tagline { color: var(--muted); font-size: 1.15rem; margin: 8px 0 20px; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.game-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.game-layout h2 { font-family: var(--font-head); font-size: 1.7rem; margin: 0 0 14px; }
.game-layout p { color: var(--muted); margin-bottom: 14px; }
.features { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.features li { padding-left: 28px; position: relative; color: var(--text); }
.features li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.info-card dl { display: grid; gap: 14px; }
.info-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.info-card dd { font-weight: 600; }
.info-card .legal-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: .9rem; }
.info-card .legal-links a { color: var(--muted); }
.info-card .legal-links a:hover { color: var(--accent); }
@media (max-width: 820px) { .game-layout { grid-template-columns: 1fr; } .info-card { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery button { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); padding: 0; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.trailer { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); margin-bottom: 30px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); }
.legal .updated { color: var(--muted); margin: 6px 0 30px; }
.legal .toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; }
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc ol { padding-left: 20px; columns: 2; column-gap: 30px; }
.legal .toc a { color: var(--muted); font-size: .92rem; }
.legal .toc a:hover { color: var(--accent); }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }
.legal h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal p, .legal li { color: #c9c7db; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a.inline, .legal [data-email] { color: var(--accent); }
.legal .note { background: rgba(255, 179, 71, .08); border: 1px solid rgba(255, 179, 71, .3); border-radius: 10px; padding: 14px 18px; color: var(--text); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
.socials { display: flex; gap: 14px; }
.socials a:hover { color: var(--accent); }

.not-found { text-align: center; padding: 140px 20px; }
.not-found h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 26px; }

/* ---------- About Me page ---------- */
.about-hero { padding: 90px 0 70px; text-align: left; }
.profile { display: flex; align-items: center; gap: 48px; }
.avatar {
  flex: 0 0 auto; width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: #0b0b12;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--border), 0 20px 60px rgba(255, 77, 94, .25);
}
.profile-text p { margin: 0 0 14px; max-width: 560px; }
.profile-text .role { color: var(--accent-2); font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.profile-text .actions { justify-content: flex-start; margin-top: 26px; }
.h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.about-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-story p { color: var(--muted); margin-bottom: 14px; }
.about-story p strong { color: var(--text); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .9rem; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.skill { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.skill:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-icon { font-size: 2rem; margin-bottom: 10px; }
.skill h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 6px; }
.skill p { color: var(--muted); font-size: .95rem; }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.values li { background: var(--card); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; color: var(--muted); }
.values li strong { color: var(--text); display: block; margin-bottom: 4px; }
.values a.inline { color: var(--accent); }
.about-socials { justify-content: center; margin-top: 20px; }
@media (max-width: 820px) {
  .profile { flex-direction: column; text-align: center; gap: 28px; }
  .profile-text .actions { justify-content: center; }
  .profile-text p { margin-left: auto; margin-right: auto; }
  .avatar { width: 160px; height: 160px; font-size: 4.5rem; }
  .about-story { grid-template-columns: 1fr; }
}
.legal h3 { scroll-margin-top: 90px; }

/* 3-strike penalty cards (Terms) */
.penalties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 18px; }
.penalty { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent-2); border-radius: 10px; padding: 14px 16px; }
.penalty.ban { border-top-color: var(--accent); }
.penalty .strike { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.penalty strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin: 2px 0 4px; }
.legal .penalty p { font-size: .88rem; margin: 0; color: var(--muted); }
@media (max-width: 600px) { .penalties { grid-template-columns: 1fr; } }

/* Utility classes (replace inline styles so the CSP can block inline styles) */
.center { text-align: center; }
.lead-muted { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.mt-8 { margin-top: 8px; }
.btn.static { cursor: default; }
.btn.static:hover { transform: none; }
