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

:root {
  --bg-1: #0d0a1f;
  --bg-2: #1a1240;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.07);
  --border: rgba(212,175,55,0.18);
  --text: #ece8d8;
  --text-soft: #b9b3a3;
  --muted: #8a8576;
  --gold: #d4af37;
  --gold-soft: #f0d57a;
  --danger: #e0584d;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(125,90,255,0.18), transparent 60%),
    linear-gradient(170deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, .site-logo {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-weight: 700;
}

h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 1.85rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 14px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
ul, ol { padding-left: 22px; margin-bottom: 14px; color: var(--text-soft); }
li { margin-bottom: 8px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); text-decoration: underline; }

.muted { color: var(--muted); font-size: 14px; }

/* Age bar */
.age-bar {
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.age-pill {
  display: inline-block;
  background: var(--gold);
  color: #1a1240;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.age-pill-lg {
  font-size: 14px;
  padding: 4px 14px;
}

/* Cookie banner */
.cookie-banner {
  background: rgba(0,0,0,0.55);
  color: var(--text-soft);
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.cookie-banner a { color: var(--gold); }
.cookie-banner button {
  margin-left: 12px;
  background: var(--gold);
  color: #1a1240;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.cookie-banner button:hover { background: var(--gold-soft); }

/* Navbar */
.navbar {
  background: transparent;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-logo {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
}
.site-logo a { color: inherit; }
.site-logo a:hover { text-decoration: none; color: var(--gold-soft); }
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 1px;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* Sections */
section { padding: 72px 0; }

/* Hero */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 0 0 60%; }
.hero-text h1 {
  background: linear-gradient(120deg, #fff, var(--gold-soft) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-image { flex: 0 0 40%; text-align: center; }
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* About */
.about-block { max-width: 820px; }

/* Card */
.card {
  background: var(--surface);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* Catalog grid */
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
}
.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
}
.game-title-block { flex: 1; min-width: 0; }
.game-title-block h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  word-wrap: break-word;
  color: #fff;
}
.dev { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.game-desc { font-size: 15px; margin-bottom: 14px; }
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.shots img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1240;
  border-radius: 999px;
  padding: 11px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  transition: filter 0.2s, transform 0.05s;
  letter-spacing: 0.3px;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: #1a1240; }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(212,175,55,0.1); color: var(--gold-soft); }

/* Disclaimer */
.disclaimer-card {
  max-width: 880px;
  margin: 0 auto;
  border-color: rgba(212,175,55,0.4);
}
.disclaimer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.disclaimer-head h2 { margin: 0; }
.disclaimer-list { padding-left: 20px; }
.disclaimer-list li { margin-bottom: 8px; }
.responsible-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 0;
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.responsible-logos img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: filter 0.2s, opacity 0.2s;
}
.responsible-logos a:hover img {
  filter: brightness(0) invert(1) opacity(1);
}

/* Form */
.form-wrap { max-width: 580px; margin: 0 auto; }
.form-card { padding: 32px; }
.form-card h2 { margin-bottom: 6px; }
.form-card .subtitle { color: var(--muted); margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 500;
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  background: rgba(0,0,0,0.25);
  color: var(--text);
}
input::placeholder { color: rgba(255,255,255,0.35); }
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
}
.form-check label a { color: var(--gold); }
.success-msg {
  margin-top: 16px;
  padding: 12px;
  background: rgba(212,175,55,0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.error-msg {
  margin-top: 16px;
  padding: 12px;
  background: rgba(224,88,77,0.12);
  color: #ff8b82;
  border: 1px solid rgba(224,88,77,0.4);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.hidden { display: none; }

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  padding: 36px 0;
  font-size: 14px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
footer a { color: var(--text-soft); }
footer a:hover { color: var(--gold); }
.footer-disclaimer {
  max-width: 820px;
  margin: 0 auto 14px;
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links { margin-bottom: 8px; }
.footer-links a { margin: 0 8px; }

/* Catalog: single-card layout */
.catalog-single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

/* Play page */
.play-section { padding-top: 36px; }
.play-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.play-header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}
.play-header .muted { margin-bottom: 0; }
.play-header .game-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
.play-header .age-pill-lg { margin-left: auto; }

.game-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.play-footer-note {
  max-width: 880px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.play-footer-note p { font-size: 14px; margin-bottom: 0; }

@media (max-width: 768px) {
  .game-frame-wrap { aspect-ratio: 9 / 14; }
  .play-header h1 { font-size: 1.5rem; }
  .play-header .game-icon { width: 56px; height: 56px; }
}

/* Legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: 2.25rem; }
.legal h2 { margin-top: 28px; color: var(--gold); }
.legal h3 { margin-top: 18px; color: #fff; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  section { padding: 48px 0; }
  .hero-inner { flex-direction: column; }
  .hero-text, .hero-image { flex: 1 1 100%; width: 100%; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 11px; }
  .form-card { padding: 24px; }
  .shots img { height: 110px; }
  .responsible-logos img { height: 44px; }
  .age-bar { font-size: 12px; }
}
