:root {
  --bg: #f2f1ec;
  --bg-soft: #e8e7e1;
  --ink: #1f2125;
  --ink-soft: #444952;
  --line: #d1d3d8;
  --panel: #26292f;
  --panel-2: #1e2025;
  --panel-ink: #f7f7f2;
  --accent: #ffd400;
  --accent-2: #ffe55e;
  --accent-soft: rgba(255, 212, 0, 0.2);
  --radius: 18px;
  --shadow-card: 0 22px 42px rgba(23, 24, 29, 0.12);
  --shadow-glow: 0 0 0 1px rgba(255, 212, 0, 0.34), 0 0 24px rgba(255, 212, 0, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at -6% -10%, rgba(255, 212, 0, 0.15), transparent 60%),
    radial-gradient(700px 360px at 106% 8%, rgba(39, 42, 48, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent 48%, rgba(255, 212, 0, 0.06) 50%, transparent 52%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(34, 36, 42, 0.04) 0, rgba(34, 36, 42, 0.04) 1px, transparent 1px, transparent 42px);
  animation: gridDrift 22s linear infinite;
  z-index: -1;
}

@keyframes gridDrift {
  from { transform: translateX(0); }
  to { transform: translateX(42px); }
}

html {
  scrollbar-width: thin;
  scrollbar-color: #777d86 #ecebe6;
}

html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: #ecebe6; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f96a3, #656b76);
  border: 2px solid #ecebe6;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a2a9b6, #707786);
}

a { color: inherit; text-decoration: none; }
.shell { width: min(1220px, 92vw); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #d8dadd;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #b6bac3;
  object-fit: cover;
  background: #1f2125;
}
.brand span { display: grid; line-height: 1.02; }
.brand strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand small { font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; color: #606672; }

.site-nav {
  justify-self: end;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #333741;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #2b2e35;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: #c5c8cf;
  background: #fffef8;
  transform: translateY(-1px);
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid #c2c5cc;
  background: #fbfaf4;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2d3138;
  margin: 4px auto;
}

.section { padding: 42px 0; }
.hero-home { padding: 34px 0 10px; }
.hero-cinematic {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  margin-bottom: 14px;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.66), rgba(14, 16, 20, 0.78)),
    url("../img/background.jpg") center center / cover no-repeat;
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 212, 0, 0.18), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(255, 212, 0, 0.1), transparent 42%);
}

.hero-cinematic-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(20, 22, 28, 0.58);
  backdrop-filter: blur(6px);
  padding: clamp(18px, 4vw, 34px);
  box-shadow: 0 32px 60px rgba(4, 5, 8, 0.44), 0 0 0 1px rgba(255, 212, 0, 0.2);
}

.hero-cinematic-inner h1 {
  color: #f7f8f3;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.hero-cinematic-inner .kicker {
  color: #ffe675;
}

.hero-cinematic-inner .kicker::before {
  background: #ffe675;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 10px;
  color: #d7dbe4;
}

.hero-icon-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hero-icon-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 18, 23, 0.62);
  color: #f5f6f0;
  padding: 11px;
}

.hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 212, 0, 0.4);
  color: #ffe675;
  background: rgba(18, 20, 26, 0.72);
}

.hero-icon svg {
  width: 20px;
  height: 20px;
}

.hero-icon-card b {
  display: block;
  color: #ffe675;
  font-size: 0.86rem;
}

.hero-icon-card small {
  display: block;
  margin-top: 2px;
  color: #b8bec9;
  font-size: 0.73rem;
}

.hero-icon-card small + small {
  margin-top: 0;
  color: #a3abb8;
}

.page-cinematic {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: center;
  margin-bottom: 10px;
  background:
    linear-gradient(180deg, rgba(13, 15, 19, 0.64), rgba(13, 15, 19, 0.78)),
    url("../img/background.jpg") center center / cover no-repeat;
}

.page-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 0, 0.16), transparent 42%),
    radial-gradient(circle at 86% 80%, rgba(255, 212, 0, 0.1), transparent 44%);
  pointer-events: none;
}

.page-cinematic-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(19, 22, 28, 0.56);
  backdrop-filter: blur(5px);
  box-shadow: 0 24px 46px rgba(3, 4, 8, 0.48), 0 0 0 1px rgba(255, 212, 0, 0.16);
  padding: clamp(16px, 3vw, 28px);
}

.page-cinematic-inner h1 {
  color: #f5f6f1;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.page-cinematic-inner p {
  color: #d2d6df;
  max-width: 760px;
  margin: 0 auto 12px;
}

.page-cinematic-inner .kicker {
  color: #ffe56d;
}

.page-cinematic-inner .kicker::before {
  background: #ffe56d;
}

.page-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-stack {
  display: grid;
  gap: 12px;
}

.section-shell {
  border: 1px solid #d2d6dd;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 212, 0, 0.16), transparent 42%),
    #fffef8;
  box-shadow: var(--shadow-card);
  padding: clamp(14px, 2.6vw, 22px);
}

.kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  color: #59606c;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #26292f;
}

h1, h2, h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.34rem); }
p { margin: 0 0 12px; color: var(--ink-soft); }
.muted { color: #6a717d; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
  align-items: stretch;
}

.glass-card {
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -76% -40%;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 212, 0, 0.24), transparent 70%);
  animation: glowSweep 11s ease-in-out infinite;
}

@keyframes glowSweep {
  0%, 100% { transform: translateX(-9%); }
  50% { transform: translateX(8%); }
}

.hero-main-card {
  background:
    radial-gradient(circle at 11% 17%, rgba(255, 212, 0, 0.28), transparent 44%),
    linear-gradient(155deg, #2a2d33, #1f2127);
  border-color: #31353f;
  color: var(--panel-ink);
}
.hero-main-card p { color: #d4d7df; }
.hero-main-card .kicker { color: #f2d75f; }
.hero-main-card .kicker::before { background: #f2d75f; }

.hero-side-stack { display: grid; gap: 12px; }
.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.live-grid article {
  border-radius: 12px;
  border: 1px solid #3c4048;
  background: #23262d;
  color: #f4f5f0;
  padding: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.08);
}
.live-grid span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8adb9;
}
.live-grid strong { font-size: 1.08rem; color: #ffe76e; }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.hero-actions.center { justify-content: center; }

.btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.17s ease, box-shadow 0.17s ease, border-color 0.17s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  color: #23262d;
  border-color: #e2be00;
  background: linear-gradient(145deg, #ffe55f, #ffd400);
  box-shadow: 0 10px 18px rgba(255, 212, 0, 0.32);
}

.btn-soft {
  color: #f5f6f2;
  border-color: #3a3e47;
  background: linear-gradient(180deg, #2b2e34, #22252b);
}

.balance-badge {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #2f333a;
  background: #24272d;
  color: #ffe76b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-glow);
  animation: pulseBadge 3.3s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.32), 0 0 0 rgba(255, 212, 0, 0); }
  50% { box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.42), 0 0 22px rgba(255, 212, 0, 0.24); }
}

.kpi-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.kpi-row div {
  border-radius: 12px;
  border: 1px solid #3b3f49;
  background: #25282f;
  padding: 10px;
}
.kpi-row strong { display: block; font-size: 1.12rem; color: #ffe977; }
.kpi-row span { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #aab0bb; }

.split-cards, .game-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card,
.game-card,
.feature-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffef8;
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.feature-card img, .game-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d6d9df;
  margin-bottom: 10px;
}

.lift { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 46px rgba(24, 25, 29, 0.18);
}

.dot-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 18px; color: #525866; }
.dot-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c3037;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.26);
  position: absolute;
  left: 0;
  top: 0.56em;
}

.link-chip {
  margin-top: 8px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #31343c;
  background: #272a30;
  color: #ffe86f;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-weight: 800;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.games-layout-alt {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.game-spotlight {
  border: 1px solid #d0d3d9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fffef8;
}
.game-spotlight img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.game-spotlight-body { padding: 16px; }
.game-side-stack { display: grid; gap: 14px; }
.game-side-stack .game-card img { height: 200px; }

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scope-lab {
  border: 1px solid #d2d6dd;
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% -24%, rgba(255, 212, 0, 0.16), transparent 44%),
    #fcfbf6;
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 26px);
}

.scope-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.scope-points {
  display: grid;
  gap: 9px;
}

.scope-point {
  border: 1px solid #d1d5dc;
  border-radius: 14px;
  background: #fffef8;
  padding: 10px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.scope-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d6d9df;
  background: #f8f7f1;
  color: #2d3138;
}

.scope-icon svg {
  width: 22px;
  height: 22px;
}

.scope-point b {
  display: block;
  color: #242831;
}

.scope-point small {
  display: block;
  margin-top: 3px;
  color: #5d6471;
}

.scope-point.active {
  border-color: #2f343c;
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, #fffef7, #f8f7f1);
}

.scope-point.active .scope-icon {
  border-color: #2f333b;
  background: #262a31;
  color: #ffe56a;
}

.scope-display {
  border: 1px solid #d1d5dc;
  border-radius: 16px;
  background: #fffef8;
  padding: 14px;
}

.scope-panel {
  display: none;
}

.scope-panel.active {
  display: block;
  animation: panelIn 0.28s ease;
}

.scope-bullets {
  margin-top: 10px;
}

.scope-meter {
  margin-top: 12px;
}

.scope-meter span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #656c77;
  margin-bottom: 5px;
}

.scope-meter i {
  display: block;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #2f333b;
  background: #23262d;
  overflow: hidden;
}

.scope-meter b {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffe55f, #ffd100);
  transition: width 0.3s ease;
}

.responsible-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.responsible-card {
  border: 1px solid #d2d6dd;
  border-radius: 14px;
  background: #fffef8;
  padding: 12px;
}

.responsible-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.responsible-note {
  margin-top: 12px;
  border: 1px solid #2f333b;
  border-radius: 12px;
  background: #25282f;
  color: #f0f2ec;
  padding: 10px 12px;
}

.responsible-note strong {
  color: #ffe56a;
}

.feature-tile {
  border-color: #d2d5db;
  background:
    radial-gradient(circle at 90% -10%, rgba(255, 212, 0, 0.17), transparent 40%),
    #fffef9;
}

.planner-shell { display: grid; gap: 14px; }
.planner-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.planner-head p { margin: 0; max-width: 720px; }

.mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-row .btn.active {
  color: #24272e;
  border-color: #dfbc00;
  background: linear-gradient(145deg, #ffe65e, #ffd300);
}

.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 12px;
}

.planner-control {
  display: grid;
  gap: 9px;
  border: 1px solid #d2d5dc;
  border-radius: 14px;
  background: #f8f7f1;
  padding: 12px;
}
.planner-control span { font-size: 0.85rem; color: #4b505b; }

.planner-result {
  border: 1px solid #2e3239;
  border-radius: 14px;
  padding: 12px;
  background: #25282e;
}
.planner-result span { display: block; font-size: 0.68rem; color: #a8aeb8; text-transform: uppercase; letter-spacing: 0.08em; }
.planner-result strong { display: block; font-size: 2rem; line-height: 1.1; color: #ffe76d; }
.planner-result small { display: block; margin-top: 6px; color: #d6d9e1; }

.compare-shell { display: grid; gap: 12px; }
.compare-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.compare-tab {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #2e3139;
  background: #272a30;
  color: #f4f5f1;
  padding: 9px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.compare-tab.active {
  color: #21242b;
  border-color: #dfbb00;
  background: linear-gradient(145deg, #ffe45c, #ffd200);
}

.compare-panel {
  display: none;
  border: 1px solid #d2d5db;
  border-radius: 16px;
  padding: 16px;
  background: #fffef9;
  box-shadow: var(--shadow-card);
}
.compare-panel.active { display: block; animation: panelIn 0.32s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.roadmap-shell { display: grid; gap: 12px; }
.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.road-step {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #2f323a;
  background: #272a30;
  color: #f4f5f1;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}
.road-step.active {
  color: #22252c;
  border-color: #dfbc00;
  background: linear-gradient(145deg, #ffe75f, #ffd300);
}

.road-detail {
  border: 1px solid #d2d5dc;
  border-radius: 14px;
  background: #faf9f3;
  padding: 15px;
}

.policy-strip {
  border: 1px solid #2e3239;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 212, 0, 0.2), transparent 40%),
    #25282f;
  color: #f5f6f2;
  text-align: center;
}
.policy-strip p { color: #dde0e7; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card-grid .glass-card,
.card-grid article {
  border-radius: 14px;
  border: 1px solid #d2d5dc;
  background: #fffef8;
  padding: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat-grid article {
  border-radius: 14px;
  border: 1px solid #2f333a;
  background: #25282e;
  color: #f4f5f0;
  padding: 12px;
}
.stat-grid span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8adb9;
}
.stat-grid strong { font-size: 1.34rem; color: #ffe86d; }

.progress-bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid #2f333a;
  overflow: hidden;
  background: #23262d;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffe55e, #ffd100);
  transition: width 0.3s ease;
}

.route-line { color: #59606b; margin-top: 10px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .btn.active { box-shadow: var(--shadow-glow); }

.form-grid { display: grid; gap: 8px; }
input, textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #cdd0d7;
  background: #ffffff;
  color: #252930;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
#contactStatus {
  border-radius: 10px;
  border: 1px solid #d0d3da;
  background: #fcfbf5;
  padding: 10px;
}

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid #d1d4db;
  border-radius: 14px;
  background: #fffef8;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  border: 0;
  padding: 13px 15px;
  text-align: left;
  background: #fffef8;
  color: #2b2f37;
  font-weight: 800;
  cursor: pointer;
}
.faq-item .answer {
  display: none;
  padding: 0 15px 14px;
  color: #5b616d;
}
.faq-item.open {
  border-color: #2f323a;
  box-shadow: var(--shadow-glow);
}
.faq-item.open .answer { display: block; animation: answerIn 0.2s ease; }
@keyframes answerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  margin-top: 30px;
  padding: 26px 0 22px;
  border-top: 1px solid #d4d7dd;
  background: #efeee8;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.footer-grid > * {
  border-radius: 14px;
  border: 1px solid #d1d4db;
  background: #fffef8;
  padding: 12px 14px;
}
.footer-grid p { margin: 0; color: #57606d; }
.footer-grid strong { letter-spacing: 0.08em; }

.footer-links { display: flex; gap: 8px; flex-wrap: wrap; align-content: flex-start; }
.footer-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #2f323a;
  background: #272a31;
  color: #ffe76a;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 24, 30, 0.72);
}
.overlay.show { display: flex; animation: fadeIn 0.22s ease; }

.overlay-card {
  width: min(520px, 90vw);
  border-radius: 18px;
  border: 1px solid #3a3e47;
  background: #25282f;
  color: #f6f7f2;
  box-shadow: 0 34px 60px rgba(10, 10, 13, 0.48), var(--shadow-glow);
  padding: 22px;
  text-align: center;
}
.overlay-card p { color: #d2d6df; }

.cookie-box {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(350px, 92vw);
  z-index: 66;
  display: none;
  border-radius: 16px;
  border: 1px solid #3a3e47;
  background: #25282f;
  color: #f6f7f2;
  box-shadow: 0 24px 44px rgba(10, 10, 14, 0.46), var(--shadow-glow);
  padding: 14px;
}
.cookie-box p { color: #d2d6df; }
.cookie-box.show { display: block; animation: rise 0.24s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; justify-self: end; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    left: 4vw;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #cfd2d8;
    background: #fdfcf7;
  }
  .site-nav.show { display: grid; }
  .hero-grid,
  .split-cards,
  .split-cards-3,
  .game-grid-2,
  .games-layout-alt,
  .planner-grid,
  .card-grid,
  .stat-grid,
  .footer-grid,
  .home-feature-grid,
  .roadmap-steps,
  .live-grid { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .compare-tab,
  .road-step { width: 100%; }

  .catalog-grid,
  .home-games-grid { grid-template-columns: 1fr; }

  .catalog-modal {
    padding: 10px;
  }

  .catalog-modal-card {
    width: 100%;
    height: 92vh;
  }

  .hero-cinematic {
    min-height: 74vh;
    background-attachment: scroll;
  }

  .page-cinematic {
    min-height: 46vh;
    background-attachment: scroll;
  }

  .hero-icon-row,
  .scope-grid,
  .responsible-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Games catalog redesign */
.games-hero {
  border: 1px solid #d4d7de;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% -30%, rgba(255, 212, 0, 0.2), transparent 46%),
    linear-gradient(180deg, #fdfcf7, #f4f3ee);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 16px;
}

.games-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-filter {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #333740;
  background: #292d34;
  color: #f4f5ef;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
}

.catalog-filter.active {
  color: #23262d;
  border-color: #dfbe00;
  background: linear-gradient(145deg, #ffe55f, #ffd200);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-card {
  border: 1px solid #d1d4db;
  border-radius: 18px;
  background: #fffef8;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 14px;
  display: grid;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 48px rgba(20, 21, 25, 0.2);
}

.catalog-visual {
  position: relative;
  border-radius: 13px;
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 212, 0, 0.35), transparent 44%),
    radial-gradient(circle at 80% 84%, rgba(47, 51, 59, 0.32), transparent 55%),
    linear-gradient(155deg, #292d34, #1e2127);
  color: #fff5bf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}

.catalog-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.catalog-card:hover .catalog-visual img {
  transform: scale(1.08);
}

.catalog-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 19, 24, 0.1), rgba(18, 19, 24, 0.72)),
    radial-gradient(circle at 16% 20%, rgba(255, 212, 0, 0.22), transparent 42%);
}

.catalog-visual span {
  position: relative;
  z-index: 1;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.catalog-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #2d3139;
  background: #25292f;
  color: #f5f6f1;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.catalog-card p {
  margin: 0;
  color: #4f5663;
  min-height: 72px;
}

.catalog-play {
  width: 100%;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  background: rgba(14, 15, 18, 0.78);
  padding: 20px;
}

.catalog-modal.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.catalog-modal-card {
  width: min(1300px, 96vw);
  height: min(92vh, 920px);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #3a3e47;
  background: #21242b;
  box-shadow: 0 28px 60px rgba(8, 9, 12, 0.6), var(--shadow-glow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.catalog-modal-head {
  padding: 12px;
  border-bottom: 1px solid #3b4049;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: #f5f6ef;
}

.catalog-modal-head h2 {
  margin: 0;
  color: #ffe775;
}

.catalog-frame-wrap {
  position: relative;
  background: #101218;
}

#catalogFrame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.catalog-frame-status {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(24, 26, 32, 0.88), rgba(16, 18, 22, 0.92));
  color: #f5f6ef;
  font-weight: 700;
}

.catalog-frame-status.visible {
  display: flex;
}

.home-games-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.home-game-tile {
  border-radius: 14px;
  border: 1px solid #d2d5db;
  background: #fffef8;
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.home-game-media {
  width: 100%;
  height: 182px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8dbe2;
  transition: transform 0.3s ease;
}

.home-game-tile:hover .home-game-media {
  transform: scale(1.04);
}

.home-game-tile b {
  color: #22252d;
}

.home-game-tile small {
  color: #616874;
}

.home-game-cta {
  margin-top: 6px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid #2f333b;
  background:
    linear-gradient(120deg, rgba(255, 212, 0, 0.28), rgba(255, 212, 0, 0.08) 50%, rgba(255, 212, 0, 0.22)),
    #252930;
  color: #f8f8f2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(18, 20, 24, 0.34), 0 0 0 1px rgba(255, 212, 0, 0.2) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-game-cta:hover {
  transform: translateY(-2px);
  border-color: #e2be00;
  box-shadow: 0 14px 24px rgba(18, 20, 24, 0.42), 0 0 0 1px rgba(255, 212, 0, 0.34) inset;
}

.home-game-cta svg {
  width: 16px;
  height: 16px;
  color: #ffe56b;
}

/* Achievements redesign */
.achv-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 212, 0, 0.12), transparent 38%),
    radial-gradient(circle at 90% 82%, rgba(41, 44, 52, 0.08), transparent 44%);
}

.achv-hero-wrap {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 14px;
}

.achv-hero-left {
  border: 1px solid #d1d5dc;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 92% -28%, rgba(255, 212, 0, 0.16), transparent 48%),
    #fffef8;
  box-shadow: var(--shadow-card);
}

.achv-hero-left h1 {
  max-width: 620px;
}

.achv-tag-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.achv-tag-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #2f333b;
  background: #272a31;
  color: #ffe76a;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
}

.achv-hero-right {
  border: 1px solid #32363f;
  border-radius: 20px;
  padding: clamp(16px, 2.6vw, 22px);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 212, 0, 0.22), transparent 40%),
    linear-gradient(165deg, #2a2d34, #1f2228);
  color: #f5f6f2;
  box-shadow: var(--shadow-card);
}

.achv-hero-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.achv-hero-top span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b2b8c3;
}

.achv-hero-top strong {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #ffe76a;
  line-height: 1;
}

.achv-track {
  margin-top: 10px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid #3d424c;
  background: #1a1c22;
  overflow: hidden;
}

.achv-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffe55e, #ffd100);
  transition: width 0.3s ease;
}

.achv-hero-right p {
  margin: 10px 0 0;
  color: #d4d8e0;
}

.achv-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}

.achv-rail {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
}

.achv-counter-grid {
  border: 1px solid #32363f;
  border-radius: 18px;
  background: #25282f;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.achv-counter-grid div {
  border: 1px solid #3b4048;
  border-radius: 12px;
  background: #202329;
  padding: 10px 11px;
}

.achv-counter-grid span {
  display: block;
  color: #aab1bc;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.achv-counter-grid strong {
  display: block;
  margin-top: 2px;
  color: #ffe66d;
  font-size: 1.45rem;
}

.achv-filter-card,
.achv-note-card,
.achv-panel {
  border: 1px solid #d1d5dc;
  border-radius: 18px;
  background: #fffef8;
  box-shadow: var(--shadow-card);
}

.achv-filter-card,
.achv-note-card {
  padding: 14px;
}

.achv-filter-card h2,
.achv-note-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.achv-filter-stack {
  display: grid;
  gap: 8px;
}

.achv-filter-stack .btn {
  width: 100%;
}

.achv-main-col {
  display: grid;
  gap: 12px;
}

.achv-panel {
  padding: 16px;
}

.achv-panel-head {
  margin-bottom: 10px;
}

.achv-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.achv-cards-grid .glass-card {
  border: 1px solid #d2d6dd;
  border-radius: 14px;
  box-shadow: none;
  background: #fffef8;
  padding: 13px;
}

.achv-cards-grid .glass-card::after {
  display: none;
}

.achv-recent-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5d9df;
  background: #f8f7f1;
}

.achv-recent-list {
  display: grid;
  gap: 8px;
}

/* About reviews section */
.review-lab {
  border: 1px solid #cfd4dc;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% -20%, rgba(255, 212, 0, 0.18), transparent 48%),
    radial-gradient(circle at 92% 86%, rgba(36, 39, 46, 0.1), transparent 52%),
    #fffef8;
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 28px);
}

.review-lab-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.review-lab-head p {
  max-width: 560px;
}

.review-lab-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
}

.review-quote-feature {
  position: relative;
  border: 1px solid #31353e;
  border-radius: 20px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 212, 0, 0.18), transparent 34%),
    linear-gradient(160deg, #2b2e35, #1f2229);
  color: #f5f6f2;
  overflow: hidden;
}

.review-mark {
  position: absolute;
  right: 14px;
  top: -14px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 212, 0, 0.22);
  font-family: "Playfair Display", Georgia, serif;
}

.review-quote-feature p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.36rem);
  line-height: 1.42;
  color: #eef0f6;
  max-width: 96%;
}

.review-author {
  margin-top: 16px;
  display: inline-grid;
  gap: 2px;
  border-radius: 11px;
  border: 1px solid #3f444e;
  background: rgba(18, 21, 27, 0.72);
  padding: 8px 11px;
}

.review-author strong {
  color: #ffe66d;
  font-size: 0.86rem;
}

.review-author small {
  color: #b7beca;
  font-size: 0.72rem;
}

.review-stack {
  display: grid;
  gap: 10px;
}

.review-chip {
  border: 1px solid #d2d6dd;
  border-radius: 14px;
  background: #fffef8;
  padding: 12px;
}

.review-chip h3 {
  margin-bottom: 6px;
  font-size: 1.03rem;
}

.review-chip p {
  margin: 0;
}

.review-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-metrics article {
  border: 1px solid #2f333b;
  border-radius: 13px;
  background: #25282f;
  padding: 10px 12px;
}

.review-metrics span {
  display: block;
  color: #adb3be;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
}

.review-metrics strong {
  display: block;
  margin-top: 2px;
  color: #ffe56b;
  font-size: 1.18rem;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .achv-hero-wrap {
    grid-template-columns: 1fr;
  }

  .achv-layout {
    grid-template-columns: 1fr;
  }

  .achv-rail {
    position: static;
  }

  .achv-cards-grid {
    grid-template-columns: 1fr;
  }

  .review-lab-grid,
  .review-metrics {
    grid-template-columns: 1fr;
  }
}
