:root {
  --bg: #1a1b1d;
  --surface: #1b1311;
  --surface-2: #150f0e;
  --text: #f8eee8;
  --muted: #c4a69a;
  --accent: #dd4f95;
  --accent-2: #ff7dbd;
  --line: #65475a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    linear-gradient(180deg, #26282c 0%, #1f2125 45%, #191b1f 100%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(210, 160, 120, 0.08) 0,
      rgba(210, 160, 120, 0.08) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(150, 95, 70, 0.06) 0,
      rgba(150, 95, 70, 0.06) 1px,
      transparent 1px,
      transparent 10px
    );
}

.topbar,
main {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(28, 18, 14, 0.78);
  backdrop-filter: blur(4px);
}

.section-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-links a {
  color: #f0c8dd;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.section-links a:hover {
  border-color: #9a6482;
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  box-shadow: 0 8px 18px rgba(221, 79, 149, 0.26);
}

.lang-btn.active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  margin-top: 1.5rem;
}

.hero-bg {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0.5rem 0 0;
  min-height: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0.8rem 0 0.65rem;
}

.hero-text {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent-2);
  color: #321326;
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: #2a1f27;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(221, 79, 149, 0.2);
}

.hero-actions .btn.primary:hover {
  filter: brightness(1.06);
}

.hero-actions .btn.ghost:hover {
  border-color: var(--accent-2);
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.steam-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.hero-logo {
  object-fit: contain;
  background: transparent;
  padding: 0;
  max-height: 280px;
  max-width: min(560px, 100%);
}

.features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card,
.manual-item,
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card p,
.manual-item p,
.cta p,
.manual-intro {
  color: var(--muted);
}

.gallery,
.manual,
.cta {
  margin-top: 2.25rem;
}

.carousel {
  margin-top: 1rem;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #17100e;
  box-shadow: var(--shadow);
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  cursor: zoom-in;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid #9a6482;
  color: #fff;
  background: rgba(44, 30, 40, 0.78);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: #5d3b2f;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent-2);
}

.manual-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.socials a:not(.btn) {
  color: var(--accent);
  font-weight: 700;
}

.cta-galician {
  display: block;
  width: min(520px, 100%);
  margin: 0 auto 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.copyright-line {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 8, 7, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: min(1100px, 95vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #9a6482;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: 1px solid #9a6482;
  background: #2b1d29;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal:nth-child(3) {
  animation-delay: 0.2s;
}

.reveal:nth-child(4) {
  animation-delay: 0.3s;
}

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

@media (max-width: 900px) {
  .features,
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-links {
    width: 100%;
    justify-content: center;
    order: 2;
  }

  .hero {
    margin-top: 1.25rem;
  }

  .hero-copy {
    padding: 0.25rem 0 0;
    min-height: 0;
  }

  .hero-logo {
    max-height: 190px;
  }
}
