@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg: #0A1A17;
  --surface: #1D352A;
  --surface-deep: #112219;
  --parchment: #E6DCC5;
  --parchment-dim: rgba(230, 220, 197, 0.62);
  --parchment-faint: rgba(230, 220, 197, 0.28);
  --moss: #8DA66D;
  --moss-dim: rgba(141, 166, 109, 0.18);
  --gold: #C29A5C;
  --gold-dim: rgba(194, 154, 92, 0.18);
  --mist: #6FA8A5;
  --mist-dim: rgba(111, 168, 165, 0.16);
  --ember: #D86F4B;
  --ember-deep: #a8502e;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}
body.fixed { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
html.hide #preloader { display: none; }

/* ─── Preloader ─── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#preloader img { width: 56px; }

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(10, 26, 23, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(141, 166, 109, 0.14);
}
header .container { height: 100%; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo img { height: 49px; width: auto; }
nav.desktop-nav ul {
  display: flex;
  gap: 34px;
  align-items: center;
}
nav.desktop-nav .nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--parchment-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
nav.desktop-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.32s ease;
}
nav.desktop-nav .nav-link:hover { color: var(--parchment); }
nav.desktop-nav .nav-link:hover::after { width: 100%; }

/* ─── Burger ─── */
.burger-btn {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu ─── */
#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(6, 16, 13, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.28s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: all; }
#mobile-menu .nav-link {
  font-family: var(--font-head);
  font-size: 1.85rem;
  color: var(--parchment);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
#mobile-menu .nav-link:hover { color: var(--gold); }

/* ─── Sections ─── */
section { padding: 104px 0; position: relative; }

/* ─── Shared text blocks ─── */
.section-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  font-weight: 700;
  color: var(--parchment);
  line-height: 1.22;
  margin-bottom: 22px;
}
.section-text {
  color: var(--parchment-dim);
  line-height: 1.82;
  font-size: 0.9625rem;
}
.section-text p + p { margin-top: 13px; }

/* ─── CTA Button ─── */
@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 38px;
  border-radius: 4px;
  border: none;
  transition: opacity var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 28px rgba(216, 111, 75, 0.28);
  animation: btn-pulse 2s ease-in-out infinite;
}
.btn-primary:hover {
  opacity: 0.88;
  animation-play-state: paused;
  box-shadow: 0 12px 36px rgba(216, 111, 75, 0.38);
}

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
}
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 44%, rgba(141, 166, 109, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 12% 82%, rgba(194, 154, 92, 0.055) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--moss-dim);
  border: 1px solid rgba(141, 166, 109, 0.28);
  border-radius: 30px;
  padding: 6px 17px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--moss);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--parchment);
  margin-bottom: 28px;
}
.hero-text {
  color: var(--parchment-dim);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 44px;
}
.hero-text p + p { margin-top: 15px; }
.hero-image { position: relative; }
.hero-image::before {
  content: '';
  position: absolute;
  inset: -28px;
  background: radial-gradient(ellipse, rgba(194, 154, 92, 0.09) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(141,166,109,0.1);
  margin-left: auto;
}

/* ─── ABOUT ─── */
#about { background: var(--surface); }
#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,166,109,0.32), transparent);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(194, 154, 92, 0.22);
  border-radius: calc(var(--radius-lg) + 2px);
  pointer-events: none;
}
.about-notes {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.about-note {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.875rem;
  color: var(--parchment);
  font-weight: 500;
}
.about-note::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(141,166,109,0.45);
}

/* ─── GAMEPLAY ─── */
#gameplay { background: var(--bg); }
#gameplay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(111, 168, 165, 0.055) 0%, transparent 55%);
  pointer-events: none;
}
.gameplay-header {
  text-align: center;
  margin-bottom: 58px;
}
.gameplay-header .section-text {
  max-width: 660px;
  margin: 0 auto;
}
.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.gameplay-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(141,166,109,0.1);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.gameplay-card:hover {
  transform: translateY(-7px);
  border-color: rgba(141,166,109,0.32);
  box-shadow: 0 16px 48px rgba(0,0,0,0.36);
}
.gameplay-card-img {
  width: 100%;
  padding: 10px 10px 0;
}
.gameplay-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.42s ease;
}
.gameplay-card:hover .gameplay-card-img img { transform: scale(1.06); }
.gameplay-card-body { padding: 14px 16px 16px; }
.gameplay-card-name {
  font-size: 0.7875rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.4;
}

/* ─── MODES ─── */
#modes { background: var(--surface); }
#modes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,154,92,0.28), transparent);
}
.modes-header { margin-bottom: 52px; }
.modes-header .section-text { max-width: 580px; }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mode-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(141,166,109,0.1);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.mode-card:hover {
  transform: translateY(-9px);
  border-color: rgba(194,154,92,0.38);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mode-card-img {
  width: 100%;
}
.mode-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.42s ease;
}
.mode-card:hover .mode-card-img img { transform: scale(1.05); }
.mode-card-body { padding: 26px 24px 28px; }
.mode-card-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 16px;
}
.mode-card-features { display: flex; flex-direction: column; gap: 9px; }
.mode-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.8375rem;
  color: var(--parchment-dim);
  line-height: 1.45;
}
.mode-feature::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ─── DAILY ─── */
#daily { background: var(--bg); }
#daily::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111,168,165,0.25), transparent);
}
.daily-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.daily-image { position: relative; }
.daily-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}
.daily-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(111, 168, 165, 0.2);
  border-radius: calc(var(--radius-lg) + 2px);
  pointer-events: none;
}
.daily-chips {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.daily-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--mist-dim);
  border: 1px solid rgba(111, 168, 165, 0.28);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.825rem;
  color: var(--mist);
  font-weight: 500;
}

/* ─── CONTACT ─── */
#contact { background: var(--surface); }
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,111,75,0.22), transparent);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.contact-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}
.contact-email-link {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  border-bottom: 1px solid rgba(194,154,92,0.3);
  padding-bottom: 3px;
  transition: border-color var(--transition), color var(--transition);
}
.contact-email-link:hover {
  border-color: var(--gold);
  color: var(--parchment);
}

/* ─── FOOTER ─── */
footer {
  background: #050e0c;
  padding: 28px 0;
  border-top: 1px solid rgba(141,166,109,0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-logo img { height: 30px; width: auto; }
.footer-copy {
  font-size: 0.775rem;
  color: var(--parchment-faint);
  text-align: center;
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
}
.footer-links a {
  font-size: 0.775rem;
  color: var(--parchment-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ─── LEGAL PAGES ─── */
.legal-page {
  padding: calc(var(--header-h) + 60px) 0 90px;
  min-height: 100vh;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--parchment);
  font-weight: 700;
  margin-bottom: 36px;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--parchment);
  font-weight: 600;
  margin: 30px 0 10px;
}
.legal-content p {
  color: var(--parchment-dim);
  font-size: 0.9rem;
  line-height: 1.84;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 16px 22px;
}
.legal-content li {
  color: var(--parchment-dim);
  font-size: 0.9rem;
  line-height: 1.78;
  margin-bottom: 7px;
  list-style: disc;
}
.legal-content a { color: var(--gold); transition: color var(--transition); }
.legal-content a:hover { color: var(--parchment); }
.legal-content strong { color: var(--parchment); font-weight: 600; }
.legal-content em { color: var(--parchment-dim); }
.legal-content b { color: var(--parchment); font-weight: 600; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-inner { gap: 44px; }
  .about-inner { gap: 52px; }
  .daily-inner { gap: 52px; }
  .contact-inner { gap: 52px; }
  .gameplay-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav.desktop-nav { display: none; }
  .burger-btn { display: flex; }
  section { padding: 72px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .gameplay-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .daily-inner { grid-template-columns: 1fr; }
  .daily-image { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-image { order: 2; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { order: 2; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .gameplay-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .container { padding: 0 18px; }
}
