:root {
  --bg: #0d1117;
  --bg-alt: #131a24;
  --surface: #161d29;
  --surface-2: #1c2534;
  --ink: #eef2f7;
  --muted: #92a0b3;
  --brand: #ff7a30;
  --brand-2: #ffb05c;
  --accent: #2dd4bf;
  --line: #26303f;
  --danger: #ff6b6b;
  --ok: #34d399;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(255, 122, 48, 0.14) 0%, transparent 55%),
    radial-gradient(760px 420px at 100% 0%, rgba(45, 212, 191, 0.10) 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-2); }
.container { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.sr-only, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100; background: var(--surface); color: var(--ink);
  padding: .5rem 1rem; border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13, 17, 23, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .93rem; }
.site-nav a:hover { color: var(--brand-2); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #1a1005 !important;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.08); color: #1a1005 !important; }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); margin-inline: auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(80vh, 640px);
  display: grid; align-items: center;
  padding: 4.5rem 0 3.5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(155deg, rgba(13,17,23,.2) 0%, rgba(13,17,23,.55) 55%, var(--bg) 100%),
    repeating-linear-gradient(135deg, rgba(255,122,48,.05) 0 2px, transparent 2px 34px),
    radial-gradient(560px 560px at 88% 18%, rgba(255,122,48,.22) 0%, transparent 60%),
    radial-gradient(480px 480px at 100% 90%, rgba(45,212,191,.16) 0%, transparent 60%);
}
.hero-bg::after {
  content: "3";
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700; font-size: min(48vw, 520px);
  line-height: 1; color: rgba(255,255,255,.03); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; color: var(--ink); max-width: 700px; }
.brand-mark {
  font-family: var(--display); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-2); margin: 0 0 .8rem;
  font-size: .8rem; animation: fadeUp .7s ease both;
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark::before { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1; margin: 0 0 1rem; animation: fadeUp .8s .1s ease both;
}
.hero-lead {
  font-size: 1.08rem; color: var(--muted); max-width: 38rem;
  margin: 0 0 1.75rem; animation: fadeUp .8s .2s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: fadeUp .8s .3s ease both; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border: 0; cursor: pointer; font-weight: 700;
  font-family: inherit; border-radius: 12px; padding: .8rem 1.3rem;
  transition: transform .18s ease, filter .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1005; }
.btn-primary:hover { filter: brightness(1.06); color: #1a1005; }
.btn-secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid rgba(255,255,255,.16); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #2a0505; }

.page-hero {
  padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(255,122,48,.08), transparent);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .5rem;
}
.page-hero p { color: var(--muted); margin: 0; max-width: 40rem; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .35rem;
}
.section-head p { margin: 0; color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.mb { margin-bottom: 1.25rem; }
.narrow { max-width: 760px; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.75rem; animation: fadeUp .8s .4s ease both; }
.trust-strip span {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: .45rem;
}
.trust-strip span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,122,48,.18), rgba(45,212,191,.14));
  font-size: 1.15rem; margin-bottom: .8rem;
}
.feature-card h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.game-card {
  position: relative;
  display: flex; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1rem 1rem 1.15rem;
  color: inherit; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.game-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.game-card:hover { transform: translateY(-3px); border-color: #3a4658; color: inherit; }
.game-card img {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover;
  background: var(--surface-2); flex-shrink: 0;
}
.game-card h3 { margin: 0 0 .2rem; font-size: 1.02rem; font-family: var(--display); }
.meta, .muted { color: var(--muted); font-size: .87rem; margin: 0; }
.rating { color: var(--brand-2); font-size: .88rem; margin: .25rem 0 0; }

.cat-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.cat-chip {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); padding: .48rem .95rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.cat-chip:hover, .cat-chip.active { background: var(--brand); color: #1a1005; border-color: var(--brand); }

.prose h2, .prose h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; }
.prose p, .prose li { color: #cbd5e1; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.seo-block { padding-bottom: 3.5rem; }
.note {
  background: rgba(255,122,48,.1); border-left: 4px solid var(--brand);
  padding: .85rem 1rem; border-radius: 8px; color: #e9dfd6;
}

.game-top {
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(255,122,48,.28), transparent 60%),
    linear-gradient(135deg, #11151d, #0d1117);
  border-bottom: 1px solid var(--line);
  color: var(--ink); padding: 2.4rem 0;
}
.game-top-inner { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.game-icon-lg {
  width: 92px; height: 92px; border-radius: 20px; object-fit: cover;
  box-shadow: var(--shadow); background: var(--surface);
}
.game-top .eyebrow { margin: 0 0 .35rem; }
.game-top .eyebrow a { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.game-top h1 { font-family: var(--display); font-weight: 700; margin: 0 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.game-top .lead { margin: 0 0 1.1rem; color: var(--muted); max-width: 40rem; }
.game-stats-row { display: flex; flex-wrap: wrap; gap: .6rem .95rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--muted); }
.game-stats-row strong { color: var(--ink); }
.game-layout {
  display: grid; grid-template-columns: 1.6fr .9fr; gap: 2rem; align-items: start;
}
.aside-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.aside-box h3 { margin-top: 0; font-family: var(--display); }
.info-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.info-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.info-list span { color: var(--muted); }

.review-form, .contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .85rem; font-size: .9rem; color: var(--ink); }
input, select, textarea {
  width: 100%; margin-top: .4rem; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background: var(--surface-2); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #64748b; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.reviews-list { display: grid; gap: .9rem; }
.review-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem;
}
.review-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.review-item time { color: var(--muted); font-size: .8rem; }

.search-bar { display: flex; gap: .6rem; margin-top: 1.2rem; max-width: 520px; }
.search-bar input { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.link-list { padding-left: 1.1rem; }
.link-list li { margin: .35rem 0; }

.alert { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: rgba(52,211,153,.14); color: var(--ok); }
.alert-error { background: rgba(255,107,107,.14); color: var(--danger); }
.empty { color: var(--muted); padding: 2rem 0; }

.site-footer {
  background: #090c11; color: rgba(238,242,247,.78); padding: 3rem 0 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { margin-top: .8rem; max-width: 28rem; }
.site-footer h3 { color: var(--ink); font-family: var(--display); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: rgba(238,242,247,.78); }
.site-footer a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .88rem; }

/* Admin — kept light/neutral for daily usability, independent of the public dark theme */
.admin-body {
  --bg: #f4f6f9; --bg-alt: #eef1f5; --surface: #ffffff; --surface-2: #ffffff;
  --ink: #1a2130; --muted: #5b6577; --line: #dfe4ec; --shadow: 0 10px 28px rgba(20,25,40,.06);
  background: var(--bg);
}
.admin-body input, .admin-body select, .admin-body textarea { background: #fff; color: var(--ink); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #11151d; color: #fff; padding: 1.25rem; }
.admin-side a { color: rgba(255,255,255,.85); display: block; padding: .55rem .7rem; border-radius: 10px; font-weight: 600; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,122,48,.18); color: #fff; }
.admin-main { padding: 1.25rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 14px; padding: 1rem; border: 1px solid var(--line); }
.stat-card span { display: block; color: var(--muted); font-size: .85rem; }
.stat-card strong { font-size: 1.5rem; font-family: var(--display); color: var(--brand); }
.table-wrap { overflow: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
th { background: #f7f9fc; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card {
  width: min(100%, 400px); background: #fff; padding: 1.5rem; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.admin-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem;
  display: grid; gap: .2rem; max-width: 860px;
}
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; background: var(--bg-alt); font-size: .75rem; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .game-layout, .contact-grid, .sitemap-cols, .footer-grid, .admin-shell {
    grid-template-columns: 1fr;
  }
  .aside-box { position: static; }
  .admin-side { display: flex; flex-wrap: wrap; gap: .35rem; }
  .admin-side a { padding: .4rem .65rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 1rem; border-bottom: 1px solid var(--line); gap: .4rem;
  }
  .site-nav.open { display: flex; }
  .form-row, .search-bar { grid-template-columns: 1fr; flex-direction: column; }
  .hero { min-height: auto; padding-top: 3rem; }
  .brand-logo { height: 34px; }
}
