:root {
  --bg-start: #0f0f0f;
  --bg-end: #1a0a00;
  --card-bg: #1a0f00;
  --fire-orange: #ea580c;
  --ember-red: #dc2626;
  --bright-amber: #fbbf24;
  --warm-cream: #fffbf0;
  --muted-text: #f3d9c7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--warm-cream);
  background: linear-gradient(140deg, var(--bg-start), #160800 45%, var(--bg-end));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(234, 88, 12, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(220, 38, 38, 0.2), transparent 30%),
    radial-gradient(circle at 65% 80%, rgba(251, 191, 36, 0.12), transparent 35%);
  z-index: -1;
}

a {
  color: var(--warm-cream);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 9, 0.95);
  border-bottom: 1px solid rgba(234, 88, 12, 0.35);
  backdrop-filter: blur(6px);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.header-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  text-transform: uppercase;
}

.logo img {
  width: 42px;
  height: 42px;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.2rem;
  position: relative;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--fire-orange);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.auth-slot {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-fire {
  color: #180600;
  background: linear-gradient(90deg, var(--ember-red), var(--fire-orange));
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35);
}

.btn-fire:hover {
  animation: flicker 0.55s linear infinite;
}

.btn-dark {
  background: transparent;
  color: var(--warm-cream);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@keyframes flicker {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.14); }
  55% { filter: brightness(0.97); }
  70% { filter: brightness(1.18); }
  100% { filter: brightness(1.06); }
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-inner {
  width: min(880px, 95%);
  margin: 0 auto;
  position: relative;
}

.hero-inner::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(220, 38, 38, 0.35), rgba(234, 88, 12, 0.15) 42%, transparent 72%);
  animation: flamePulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes flamePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero p {
  max-width: 760px;
  margin: 18px auto 30px;
  color: var(--muted-text);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

section {
  padding: 66px 0;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 20px;
}

.cards-grid,
.feature-grid,
.review-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ember-red), var(--fire-orange)) 1;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.gallery-item {
  grid-column: span 3;
  padding: 12px;
}

.gallery-item img {
  width: 100%;
  height: 230px;
}

.feature-card {
  grid-column: span 4;
}

.review-card {
  grid-column: span 4;
}

.game-card {
  grid-column: span 6;
}

.game-card img {
  width: 100%;
  height: 210px;
  margin-bottom: 14px;
}

.moon-highlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: center;
}

.moon-highlight img {
  width: 100%;
  height: 290px;
}

.store-block {
  text-align: center;
  padding: 30px;
}

.store-block img {
  height: 56px;
  margin: 14px auto 0;
}

.page-hero {
  padding: 70px 0 34px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.page-hero p {
  color: var(--muted-text);
  max-width: 820px;
}

.text-card p,
.text-card li {
  color: var(--muted-text);
  line-height: 1.65;
}

.text-card ul {
  margin: 0;
  padding-left: 20px;
}

.iframe-wrap iframe {
  width: 100%;
  height: 620px;
  border: none;
  display: block;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #150d08;
  color: var(--warm-cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  margin-top: 44px;
  background: #090909;
  border-top: 1px solid rgba(234, 88, 12, 0.3);
  padding: 36px 0 72px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  margin-top: 18px;
  color: #ffd5b5;
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9997;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.auth-modal {
  width: min(420px, 100%);
  background: #1b0e06;
  border: 1px solid rgba(234, 88, 12, 0.45);
  border-top: 3px solid var(--fire-orange);
  border-radius: 10px;
  padding: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--ember-red), var(--fire-orange));
  color: #180600;
}

.auth-modal h3 {
  margin: 8px 0 12px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.1px;
  font-size: 1.8rem;
}

.auth-modal input {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #140b07;
  color: #fff;
}

.auth-error {
  min-height: 20px;
  color: #ffd4b2;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.coins-pill {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .gallery-item,
  .feature-card,
  .review-card,
  .game-card {
    grid-column: span 6;
  }

  .moon-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-wrap {
    flex-direction: column;
    padding: 10px 0 14px;
  }

  .gallery-item,
  .feature-card,
  .review-card,
  .game-card {
    grid-column: span 12;
  }

  .hero {
    min-height: auto;
    padding: 78px 0 54px;
  }

  .iframe-wrap iframe {
    height: 470px;
  }
}
