:root {
  --cream: #F5EFE4;
  --cream-dark: #EDE3D2;
  --sand: #D4BC96;
  --bark: #8B6845;
  --wood: #6B4F34;
  --deep: #3E2F1E;
  --moss: #5C7A4E;
  --moss-light: #7A9E6A;
  --warm-white: #FDFAF5;
  --text-main: #3E2F1E;
  --text-muted: #8B7355;
  --card-bg: #FDFAF5;
  --grain-opacity: 0.035;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 104, 69, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--deep);
}

.nav-logo-text {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--wood);
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 14vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

/* Decorative wood rings */
.hero-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--sand);
  opacity: 0;
  animation: ringFade 1s forwards;
}

.ring:nth-child(1) {
  width: 320px;
  height: 320px;
  opacity: 0.18;
  animation-delay: 0.1s;
}

.ring:nth-child(2) {
  width: 520px;
  height: 520px;
  opacity: 0.12;
  animation-delay: 0.2s;
}

.ring:nth-child(3) {
  width: 720px;
  height: 720px;
  opacity: 0.08;
  animation-delay: 0.3s;
}

.ring:nth-child(4) {
  width: 960px;
  height: 960px;
  opacity: 0.05;
  animation-delay: 0.4s;
}

@keyframes ringFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: inherit;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s forwards;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--deep);
  letter-spacing: -0.025em;
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 0.7s 0.45s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--wood);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wood);
  color: var(--cream);
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s 0.75s forwards;
}

.hero-cta:hover {
  background: var(--deep);
  transform: translateY(-2px);
}

.about-strip .hero-cta:hover,
.policy-content .hero-cta:hover {
  background: var(--bark);
  border-color: var(--sand);
  color: var(--warm-white);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--sand);
  opacity: 0.5;
}

.divider-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bark);
}

/* ── GAMES GRID ── */
.games-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 8rem);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

/* ── GAME CARD ── */
.game-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(139, 104, 69, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(62, 47, 30, 0.06);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(62, 47, 30, 0.14);
}

.game-card-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Placeholder art pattern */
.game-card-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-placeholder-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  opacity: 0.45;
  z-index: 2;
}

/* Subtle woodgrain lines on placeholder */
.art-lines {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(175deg,
      var(--bark) 0px,
      var(--bark) 1px,
      transparent 1px,
      transparent 22px);
}

.game-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(245, 239, 228, 0.9);
  border: 1px solid rgba(139, 104, 69, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
  backdrop-filter: blur(6px);
}

.game-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.game-card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.game-card-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wood);
  transition: gap 0.2s;
}

.game-card:hover .game-card-play {
  gap: 0.75rem;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--sand);
}

/* ── COMING SOON CARD ── */
.game-card.coming-soon {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.game-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(62, 47, 30, 0.06);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--deep);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.about-strip-icon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.about-strip h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.about-strip p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--sand);
  max-width: 48ch;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--deep);
  border-top: 1px solid rgba(212, 188, 150, 0.1);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--bark);
}

/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav {
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .ring:nth-child(3),
  .ring:nth-child(4) {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ── PAGE HEADER (Privacy) ── */
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--wood);
}

.page-header {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 4rem) 0;
  max-width: 760px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.9rem;
}

.page-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-divider {
  max-width: 760px;
  margin: 2rem auto 0;
  height: 1px;
  background: var(--sand);
  opacity: 0.4;
}

/* ── POLICY CONTENT ── */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 7rem);
}

.policy-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.section-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bark);
  background: var(--cream-dark);
  border: 1px solid rgba(139, 104, 69, 0.2);
  border-radius: 100px;
  padding: 0.15rem 0.55rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.policy-section p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  list-style: none;
  margin: 0.5rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-section ul li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
}

.policy-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bark);
  opacity: 0.5;
}

.policy-section ul li strong {
  font-weight: 500;
  color: var(--deep);
}

.policy-content a {
  color: var(--wood);
  text-decoration: underline;
  text-decoration-color: rgba(107, 79, 52, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.policy-content a:hover {
  color: var(--deep);
  text-decoration-color: var(--deep);
}

/* ── CONTACT BLOCK ── */
.contact-block {
  margin-top: 2rem;
  background: var(--warm-white);
  border: 1px solid rgba(139, 104, 69, 0.12);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-block-icon {
  width: 36px;
  height: 36px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-block-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-block-text a {
  font-weight: 500;
  text-decoration: none;
}

/* ── FOOTER LINKS ── */
.footer-links {
  display: flex;
  gap: 1.5rem;
  /* Reset the inherited 'nav' styles */
  background: transparent;
  height: auto;
  position: static;
  padding: 0;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--bark);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--sand);
}

body::before {
  pointer-events: none;
}

.policy-content .hero-cta {
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
}

.game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* ── SPOTTED ISLAND STRIP ── */
.spotted-strip {
  background: var(--warm-white);
  border-top: 1px solid rgba(139, 104, 69, 0.1);
  border-bottom: 1px solid rgba(139, 104, 69, 0.1);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.spotted-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.spotted-strip-logo {
  flex-shrink: 0;
  width: 140px;
}

.spotted-strip-logo img {
  width: 100%;
  height: auto;
}

.spotted-strip-content {
  flex: 1;
}

.spotted-strip-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.spotted-strip-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.spotted-strip-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.spotted-strip-tools {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.spotted-tool {
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 1px solid rgba(139, 104, 69, 0.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.spotted-tool:hover {
  border-color: var(--bark);
  box-shadow: 0 4px 16px rgba(62, 47, 30, 0.08);
}

.spotted-tool strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep);
}

.spotted-tool span {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.spotted-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--wood);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.spotted-cta:hover {
  gap: 0.75rem;
  color: var(--deep);
}

@media (max-width: 640px) {
  .spotted-strip-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .spotted-strip-logo {
    width: 100px;
  }
}