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

:root {
  --bg-rgb: 31, 22, 17;
  --bg: #1f1611;
  --bg-raised: #2a1f18;
  --bg-soft: #17100c;
  --text: #f3e7d8;
  --text-soft: #e0d0bd;
  --text-muted: #bfa78f;
  --text-faint: #8f7a66;
  --accent: #e0a46a;
  --accent-deep: #c9884d;
  --accent-tint: rgba(224, 164, 106, 0.12);
  --border: rgba(224, 164, 106, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --btn: #e6c9a3;
  --btn-hover: #f0d9bb;
  --btn-text: #2a1d14;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-pixel: "Pixelify Sans", "Outfit", monospace;
  --header-h: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-family: var(--font-head);
}

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

/* Visible to screen readers and search engines only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(var(--bg-rgb), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(var(--bg-rgb), 0.95);
  box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-name {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand-name:hover {
  color: var(--accent);
}

/* Round, clickable logo that bursts into confetti */
.logo-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.25s ease;
}

.logo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  /* The PNG has wide transparent margins around the cat */
  transform: scale(1.6);
}

.logo-btn:hover {
  transform: scale(1.08) rotate(-6deg);
}

.logo-btn:active {
  transform: scale(0.92);
}

.logo-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.confetti {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  will-change: transform, opacity;
}

.header-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link:hover {
  background: var(--accent-tint);
}

.nav-dropdown {
  position: relative;
}

.nav-caret {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  padding: 0.5rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
  }
}

/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--accent-tint);
  color: var(--accent);
}

.dropdown-menu img {
  width: 4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.header-socials {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: 0.3rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.socials a svg {
  width: 1.2rem;
  height: 1.2rem;
}

.socials a:hover {
  color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-2px);
}

/* ---------- Buttons ---------- */

.wishlist-wrap {
  position: relative;
  display: inline-block;
}

.spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px 1px rgba(255, 190, 110, 0.6);
  z-index: 5;
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.steam-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid rgba(243, 231, 216, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ghost-btn svg {
  width: 1rem;
  height: 1rem;
}

.ghost-btn:hover {
  border-color: rgba(243, 231, 216, 0.55);
  background: rgba(243, 231, 216, 0.06);
}

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tags li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  scroll-margin-top: var(--header-h);
}

.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.4rem;
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-tagline {
  margin-top: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.footer-heading {
  margin-bottom: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-email {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-email:hover {
  color: var(--accent);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  word-break: break-all;
}

.footer-email svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.footer-socials {
  margin-top: 1rem;
  margin-left: -0.6rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-menu {
    display: none;
  }

  .site-header.is-open .header-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .header-socials {
    margin-left: 0;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 0.6rem;
    border-radius: 10px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    margin-top: 0.25rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .wishlist-btn {
    padding: 0.8rem 1.7rem;
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Hero slideshow ---------- */

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

/* Each slide fades in and slowly drifts in, Ken Burns style */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease, transform 7s ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
