:root {
  --sky: #7ec8ea;
  --sand: #f6ead2;
  --paper: #fff8ec;
  --wood: #8b5a2b;
  --ink: #2c1a0e;
  --muted: #6d4e38;
  --gold: #e2b039;
  --gold-deep: #c48a12;
  --express: #d62828;
  --green: #2f9e4f;
  --line: rgba(139, 90, 43, 0.28);
  --shadow: 0 16px 36px rgba(80, 40, 10, 0.16);
  --radius: 18px;
  --header: 78px;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Rye", "Alfa Slab One", serif;
  --max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 120px;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: #9a3b12; text-decoration: none; }
a:hover { color: var(--express); }

h1, h2, h3, .h1, .h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1, .h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h2, .h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: #8a3d12; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 80;
  background: var(--gold); color: var(--ink); padding: 8px 12px;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #8fd0ef 0%, #cdeef8 18%, #f6ead2 42%, #e8c992 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 6px solid #c48a12;
  box-shadow: 0 8px 0 #8b5a2b;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.logo:hover { color: inherit; }
.logo img,
.logo__mark {
  height: 64px;
  width: 56px;
  object-fit: cover;
  object-position: center 48%;
  clip-path: inset(12% 18%);
  border-radius: 0;
  border: 0;
  background: #2ea4e0;
}
.logo__word {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.logo__word b {
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: normal;
  color: #c48a12;
  letter-spacing: 0.04em;
}
.logo__word i {
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: normal;
  color: var(--express);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
}
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover,
.nav a.is-active { color: var(--express); }

.nav-play { display: none !important; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 8px;
}
.lang a { color: var(--muted); padding: 4px 0; }
.lang a.is-active { color: var(--express); font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 22px;
  transition: transform 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(180deg, #4cc56c, var(--green));
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 158, 79, 0.35);
}
.btn--primary:hover { filter: brightness(1.06); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
}
.btn--ghost:hover { background: #fff4dc; color: var(--ink); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn--line:hover { color: var(--express); }

.btn--lg { min-width: 220px; padding: 14px 28px; }
.header-cta { margin-left: 10px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.hero-intro { padding: 28px 0 6px; }
.kicker {
  color: #1f7aaa;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-intro .lead { max-width: 740px; font-size: 1.06rem; }

.hero { padding: 8px 0 10px; }
.hero__grid { display: grid; gap: 18px; }

.stage {
  position: relative;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid #8b5a2b;
  box-shadow: var(--shadow);
  background: #7ec8ea;
}
.stage__art {
  position: absolute;
  inset: 0;
  background: url("../images/gme-hero.png") center / contain no-repeat #7e4a2a;
}
.stage__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(44, 26, 14, 0.78));
}
.age-note {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.demo-frame {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #1a1008;
}
.demo-frame.is-open { display: flex; flex-direction: column; }
.demo-frame iframe { flex: 1; width: 100%; border: 0; }
.demo-frame__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #3a2414;
}

.train {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.car {
  background: var(--paper);
  border: 3px solid #8b5a2b;
  border-radius: 10px 10px 6px 6px;
  padding: 12px 10px;
  position: relative;
  box-shadow: 0 6px 0 #c48a12;
}
.car::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -11px;
  height: 8px;
  border-radius: 8px;
  background: #4a4a4a;
}
.car span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.car b {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 4px;
}
.toc a {
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 0.86rem;
  font-weight: 800;
  background: var(--paper);
}
.toc a:hover { border-color: var(--express); color: var(--express); }

.section { padding: 40px 0; }
.section--narrow {
  width: min(820px, calc(100% - 32px));
  margin-inline: auto;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 160px;
  gap: 12px;
}
.gallery a {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid #8b5a2b;
  background: #3a2414;
  box-shadow: var(--shadow);
}
.gallery a:nth-child(1),
.gallery a:nth-child(3) { grid-row: span 2; }
.gallery a:nth-child(5) { grid-column: span 2; }
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(44, 26, 14, 0.9);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 3px solid #8b5a2b;
  box-shadow: var(--shadow);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 2px solid var(--line);
  background: rgba(255, 248, 236, 0.92);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
}
.lightbox__nav[data-lb-prev] { left: 16px; }
.lightbox__nav[data-lb-next] { right: 16px; }

.review .score {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 8px;
  letter-spacing: 0;
}

.prose ol,
.prose ul {
  color: var(--muted);
  padding-left: 1.2em;
}
.prose li { margin: 0 0 0.45em; }

.cta-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--paper);
  border: 3px solid #8b5a2b;
  box-shadow: 0 6px 0 #c48a12;
}
.cta-rail h2 { margin: 0 0 6px; }
.cta-rail p { margin: 0; }

.cta-center { display: flex; justify-content: center; padding: 28px 0 36px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card {
  background: var(--paper);
  border: 3px solid #8b5a2b;
  border-radius: var(--radius);
  padding: 22px;
}
.card--pro h3 { color: var(--green); }
.card--con h3 { color: var(--express); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }

.bonus-list { display: grid; gap: 12px; }
.bonus {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper);
  border: 3px solid #c48a12;
}
.bonus__logo {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  background: #efe0c0;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: #8a3d12;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: center;
}
.bonus__name { font-weight: 800; }
.bonus__offer { color: #9a3b12; }

.stars { color: var(--gold-deep); letter-spacing: 2px; }

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.review {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.review header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.faq details { border-bottom: 2px dashed var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; }

.legal { padding: 40px 0 80px; }
.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.contact-form, .review-form { display: grid; gap: 12px; }

input, textarea, select {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-family: inherit;
}
textarea { min-height: 120px; resize: vertical; }

.site-footer {
  margin-top: 40px;
  padding: 36px 0 20px;
  border-top: 6px solid #c48a12;
  background: rgba(255, 248, 236, 0.85);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 18px; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.copy { color: var(--muted); font-size: 0.82rem; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 3px solid #c48a12;
  box-shadow: var(--shadow);
}
.cookie[hidden] { display: none !important; }
.cookie p { margin: 0; font-size: 0.88rem; }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }

dialog {
  border: 4px solid #8b5a2b;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 22px;
  width: min(460px, 92vw);
}
dialog::backdrop { background: rgba(44, 26, 14, 0.5); }

.reels-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.reel {
  background: var(--paper);
  border: 4px solid #8b5a2b;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.reel img {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.reel h3 { margin: 0 0 6px; color: #8a3d12; }
.reel p { margin: 0; font-size: 0.88rem; }

.wheel-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  border: 3px solid #8b5a2b;
}
.wheel-block img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
}

.symbols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
  text-align: center;
}
.symbols img {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  object-fit: contain;
}
.symbols span {
  color: #8a3d12;
  font-family: var(--display);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .train { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .split, .review-grid, .bonus, .reels-3, .wheel-block, .symbols {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }
  .gallery a:nth-child(1),
  .gallery a:nth-child(3),
  .gallery a:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
  .burger {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 12px auto;
    background: var(--paper);
    border: 3px solid #8b5a2b;
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .header-cta { display: none; }
  .nav-play { display: flex !important; margin-top: 8px; }
  .cookie { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .gallery, .train { grid-template-columns: 1fr; }
  .btn--lg { min-width: 0; width: 100%; }
}
