/* =============================================
   SHADOWLORE — Dark Fantasy Anthology
   Mobile-First Stylesheet (Upgraded)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Cinzel+Decorative:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ---- Variables ---- */
:root {
  --bg:           #05050a;
  --surface:      #0c0c14;
  --surface2:     #111120;
  --border:       #1c1c2e;
  --border2:      #2a2a40;
  --accent:       #c9a84c;
  --accent-dim:   #7a6228;
  --accent-glow:  rgba(201,168,76,0.18);
  --purple:       #7b4fa0;
  --purple-dim:   #3d2252;
  --purple-glow:  rgba(123,79,160,0.2);
  --text:         #bfb8a8;
  --text-dim:     #6a6460;
  --text-bright:  #e8e0d0;
  --red:          #9b3030;
  --font-heading: 'Cinzel', serif;
  --font-deco:    'Cinzel Decorative', serif;
  --font-body:    'Crimson Text', serif;
  --nav-h:        60px;
  --max-w:        1100px;
  --radius:       4px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --touch-min:    44px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--text-bright); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: linear-gradient(to bottom, rgba(5,5,10,0.95) 0%, rgba(5,5,10,0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: background 0.4s;
}
.nav.scrolled {
  background: rgba(5,5,10,0.98);
  border-bottom-color: rgba(201,168,76,0.15);
}
.nav-logo {
  font-family: var(--font-deco);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo span {
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  font-family: var(--font-heading);
  display: block;
}
.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
  padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-shadow: 0 0 12px rgba(201,168,76,0.4); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Touch-friendly audio & hamburger buttons — min 44×44px */
.btn-audio {
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 50%;
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.btn-audio:hover, .btn-audio.playing {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.btn-play-nav {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0 0.9rem;
  height: var(--touch-min);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-play-nav:hover { opacity: 0.85; box-shadow: 0 0 16px var(--accent-glow); color: var(--bg); }

/* Hamburger — 44×44 touch target */
.btn-hamburger {
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.btn-hamburger span {
  width: 22px; height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
  display: block;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(5,5,10,0.99);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-drawer a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.25s;
  padding: 0.5rem 1rem;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--accent); }
.nav-drawer .btn-play-nav {
  font-size: 0.78rem;
  padding: 0 2rem;
  height: 52px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: clip;
  overflow-y: visible;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?w=1600&q=80') center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,10,0.25) 0%,
    rgba(5,5,10,0.5) 40%,
    rgba(5,5,10,0.88) 80%,
    var(--bg) 100%
  );
}
#particles-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3rem;
  max-width: 700px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-deco);
  font-size: clamp(2.6rem, 13vw, 6.5rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-shadow: 0 0 60px rgba(201,168,76,0.25), 0 4px 30px rgba(0,0,0,0.8);
  margin-bottom: 0.875rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s var(--ease) forwards;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 3.5vw, 1.3rem);
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  min-height: 2em;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s var(--ease) forwards;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* CTA buttons — full-width on mobile, touch-friendly */
.btn-primary {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #e8c060, var(--accent));
  background-size: 200% 200%;
  padding: 0 1.5rem;
  height: 54px;
  border-radius: var(--radius);
  border: none;
  transition: background-position 0.4s, box-shadow 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
  cursor: pointer;
}
.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 6px 32px rgba(201,168,76,0.5);
  transform: translateY(-2px);
  color: var(--bg);
}
.btn-secondary {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0 1.5rem;
  height: 52px;
  border-radius: var(--radius);
  transition: border-color 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: pulse 2.5s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  animation: scrollLine 2.5s infinite;
}

/* =============================================
   SECTIONS / LAYOUT
   ============================================= */
.section { padding: 4rem 1.125rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent-dim);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.08);
}
.card-img {
  width: 100%; height: 190px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
  transition: filter 0.4s;
}
.card:hover .card-img { filter: brightness(0.9) saturate(0.85); }
.card-body { padding: 1.25rem; }
.card-tag {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.card-text { font-size: 1rem; color: var(--text-dim); line-height: 1.7; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.875rem;
  transition: gap 0.25s;
  min-height: var(--touch-min);
}
.card-link::after { content: '→'; }
.card:hover .card-link { gap: 0.7rem; }

/* =============================================
   FEATURES
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-left-color 0.25s, box-shadow 0.25s;
}
.feature-item:hover {
  border-left-color: var(--accent);
  box-shadow: -4px 0 20px rgba(201,168,76,0.1);
}
.feature-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.feature-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}
.feature-text { font-size: 1rem; color: var(--text-dim); line-height: 1.7; }

/* =============================================
   LORE QUOTE
   ============================================= */
.lore-quote {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-dim);
  padding: 3rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lore-quote::before {
  content: '"';
  position: absolute;
  top: -1rem; left: 1rem;
  font-family: var(--font-deco);
  font-size: 10rem;
  color: rgba(201,168,76,0.04);
  line-height: 1;
  pointer-events: none;
}
.lore-quote blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--text-bright);
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.8;
}
.lore-quote cite {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  min-height: 42vh;
  display: flex; align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2.5rem) 1.125rem 3rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(0.6);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,10,0.4), var(--bg));
}
.page-hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.page-hero-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-hero-title {
  font-family: var(--font-deco);
  font-size: clamp(1.9rem, 8vw, 4rem);
  color: var(--text-bright);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.page-hero-sub {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* =============================================
   LORE TEXT BLOCKS (About page)
   ============================================= */
.lore-block { max-width: 720px; margin: 0 auto; }
.lore-block h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin: 2.5rem 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.lore-block h2:first-child { margin-top: 0; }
.lore-block p { color: var(--text); line-height: 1.85; margin-bottom: 1.25rem; }
.lore-block .highlight { color: var(--text-bright); font-style: italic; }
.lore-block ul { margin: 0 0 1.25rem 1.25rem; list-style: disc; }
.lore-block ul li { color: var(--text); margin-bottom: 0.5rem; }

/* =============================================
   HOW TO PLAY — Steps
   ============================================= */
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; }
.step-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: var(--touch-min); height: var(--touch-min);
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--surface);
}
.step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.step-text { color: var(--text-dim); font-size: 1rem; line-height: 1.75; }

/* Tips box */
.tips-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.tips-box h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}
.tips-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tips-box ul li {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}
.tips-box ul li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--purple-dim);
}

/* =============================================
   LEGAL / COOKIES PAGE
   ============================================= */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.125rem;
}
.legal-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p { color: var(--text-dim); line-height: 1.85; margin-bottom: 1rem; font-size: 1rem; }
.legal-wrap ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.legal-wrap ul li { color: var(--text-dim); margin-bottom: 0.4rem; font-size: 1rem; }
.legal-wrap a { color: var(--accent); }

/* Cookie table */
.cookie-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cookie-table thead { display: none; }
.cookie-table tr { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; padding: 0.75rem 1rem; }
.cookie-table td { display: block; padding: 0.25rem 0; color: var(--text-dim); border-bottom: none; }
.cookie-table td:first-child { color: var(--accent); font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.1em; }

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--surface2);
  border-top: 1px solid var(--border2);
  padding: 1rem 1.125rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.cookie-text strong { color: var(--text); }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cookie-accept {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0 1.25rem;
  height: var(--touch-min);
  border-radius: var(--radius);
  transition: opacity 0.2s;
  display: inline-flex; align-items: center;
}
.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-decline {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  padding: 0 1.125rem;
  height: var(--touch-min);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center;
}
.btn-cookie-decline:hover { border-color: var(--text-dim); color: var(--text); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.125rem 2rem;
  background: var(--surface);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-deco);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.footer-tagline { font-size: 0.95rem; font-style: italic; color: var(--text-dim); max-width: 260px; }
.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links ul li a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 36px;
  line-height: 2;
}
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.footer-legal a:hover { color: var(--accent); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — Small tablets (560px+)
   ============================================= */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { max-width: 400px; }
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-top { flex-direction: row; flex-wrap: wrap; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .cookie-table { display: table; }
  .cookie-table thead { display: table-header-group; }
  .cookie-table tr { display: table-row; background: none; border: none; border-radius: 0; margin-bottom: 0; padding: 0; }
  .cookie-table td { display: table-cell; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
  .cookie-table td:first-child { color: var(--text-dim); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; }
  .cookie-table th { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border2); font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
}

/* =============================================
   RESPONSIVE — Desktop (900px+)
   ============================================= */
@media (min-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 2.5rem; }
  .nav-links { display: flex; }
  .btn-hamburger { display: none; }
  .nav-drawer { display: none; }
  .section { padding: 6.5rem 2.5rem; }
  /* Restore hero centering on desktop */
  .hero { align-items: center; justify-content: center; }
  .hero-content { padding: 0 2rem; }
  .hero-cta { flex-direction: row; align-items: center; max-width: none; width: auto; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { width: auto; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding: calc(var(--nav-h) + 4.5rem) 2.5rem 5rem; }
  .lore-block { padding: 0 1rem; }
  .steps-list { gap: 2.5rem; }
  .tips-box { margin-top: 3.5rem; }
  .footer { padding: 5rem 2.5rem 3rem; }
  .legal-wrap { padding-left: 0; padding-right: 0; }
}
