:root {
  --bg: #0e0f1a;
  --surface: #151729;
  --line: #2a2d45;
  --text: #e9e7f2;
  --text-soft: #c3c4da;
  --muted: #a9abc6;
  --accent: #ff6b70;
  --button: #c62a30;
  --button-hover: #a8222a;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: #ff9a9d; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-nav a { color: #c9cae0; text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -84px;
  padding: 164px 0 96px;
  background: var(--bg) url("images/palace.jpg") center 30% / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,26,0) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,15,26,0.88) 0%, rgba(14,15,26,0.6) 50%, rgba(14,15,26,0.25) 100%);
}
@media (max-width: 900px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(14,15,26,0) 55%, var(--bg) 100%),
      rgba(14,15,26,0.62);
  }
}
.hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.eyebrow {
  margin: 0 0 12px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 700; max-width: 920px;
  font-size: clamp(34px, 4.9vw, 60px); line-height: 1.12; letter-spacing: 0.01em;
}
.lede { margin: 24px 0 0; font-size: 20px; max-width: 640px; color: #d8d8ea; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 6px;
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn-primary { background: var(--button); color: #fff; }
.btn-primary:hover { background: var(--button-hover); color: #fff; }
.btn-ghost { border: 1px solid #6b6f93; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }

/* Stats */
.stats {
  display: flex; flex-wrap: wrap;
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin: 0; padding: 0; list-style: none;
}
.stats li { flex: 1 1 200px; background: var(--surface); padding: 24px; }
.stat-value { display: block; font-family: var(--display); font-size: 40px; font-weight: 700; color: #fff; line-height: 1.3; }
.stat-value.accent { color: var(--accent); }
.stat-label { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding-top: 112px; }
.section h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.section-intro { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: #fff; }
.card p { margin: 0; color: var(--text-soft); }

.pull {
  margin: 0; padding: 56px 0; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pull blockquote {
  margin: 0 auto; max-width: 920px; font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px); line-height: 1.4; color: #fff;
}

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--accent); }
.review blockquote { margin: 0; color: #dcdcec; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: 14px; }
.review figcaption strong { color: #fff; }
.review-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 28px; }

/* Games */
.game-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.game-lists h3 {
  margin: 0 0 12px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.game-lists ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: #dcdcec; }



@media (max-width: 600px) {
  .hero { padding-top: 140px; padding-bottom: 64px; }
  .section { padding-top: 80px; }
  .lede { font-size: 18px; }
}

/* Icons */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
.btn { gap: 10px; }
.btn .icon { width: 18px; height: 18px; }
.stat-value { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.stat-value .icon { width: 30px; height: 30px; color: var(--accent); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 10px;
  background: rgba(255,107,112,0.12); color: var(--accent);
}
.card-icon .icon { width: 22px; height: 22px; }
.stars { display: flex; gap: 4px; }
.stars .icon { width: 18px; height: 18px; }
.game-lists h3 { display: flex; align-items: center; gap: 8px; }
.game-lists h3 .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; }
.text-link .icon { width: 16px; height: 16px; }

/* Foundry module */
.module { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.module-text { flex: 1 1 420px; min-width: 0; }
.module-text h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); color: var(--accent); line-height: 1.25; }
.module-text > p { margin: 0; color: var(--text-soft); font-size: 18px; max-width: 600px; }
.module-facts { margin: 20px 0 0; padding-left: 20px; color: var(--text-soft); display: flex; flex-direction: column; gap: 6px; }
.module-facts strong { color: #fff; }
.playlist {
  flex: 1 1 380px; max-width: 520px; margin: 0 auto;
  background: #1b1d33; border: 1px solid #3a3e5e; border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,112,0.08);
}
.playlist-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; background: #24274a; font-weight: 600; font-size: 18px; color: #fff; }
.playlist-head .icon { color: var(--accent); width: 22px; height: 22px; }
.playlist ul { list-style: none; margin: 0; padding: 6px 0; }
.playlist li { display: flex; align-items: center; gap: 16px; padding: 14px 24px; font-size: 17px; color: var(--text-soft); }
.playlist li + li { border-top: 1px solid #2a2d45; }
.pl-dice { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px; color: #6b6f93; }
.pl-dice.on { color: var(--accent); background: rgba(255,107,112,0.14); }
.pl-dice .icon { width: 22px; height: 22px; }
.pl-name { flex: 1; min-width: 0; }
.pl-freq { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pl-freq.off { color: #6b6f93; }
@media (prefers-reduced-motion: no-preference) {
  .pl-dice.on { animation: pl-pulse 3.2s ease-in-out infinite; }
  .playlist li:nth-child(2) .pl-dice.on { animation-delay: 1.1s; }
  .playlist li:nth-child(3) .pl-dice.on { animation-delay: 2.1s; }
}
@keyframes pl-pulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255,107,112,0); } 80% { box-shadow: 0 0 0 6px rgba(255,107,112,0.25); } }
.module-visual { flex: 1 1 380px; max-width: 520px; margin: 0 auto; }
.module-visual .playlist { width: 100%; max-width: none; margin: 0; }
.playlist-head { justify-content: space-between; }
.pl-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-vtt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pl-vtt img { width: 20px; height: 20px; }
.btn-logo { width: 20px; height: 20px; }
.section-title { display: flex; align-items: center; gap: 16px; }
.title-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,107,112,0.12); border: 1px solid rgba(255,107,112,0.25); color: var(--accent);
}
.title-icon .icon { width: 26px; height: 26px; }
@media (max-width: 600px) { .title-icon { width: 42px; height: 42px; } .title-icon .icon { width: 22px; height: 22px; } }
.section-title::after {
  content: ""; flex: 1; min-width: 40px; height: 1px; margin-left: 8px;
  background: linear-gradient(90deg, rgba(255,107,112,0.55), rgba(255,107,112,0) 85%);
}
.section-title { margin-bottom: 14px; }
.site-nav { align-items: center; gap: 8px 0; }
.site-nav a { display: inline-flex; align-items: center; }
.site-nav a + a::before {
  content: ""; width: 5px; height: 5px; margin: 0 16px; transform: rotate(45deg);
  background: var(--accent); opacity: 0.7;
}

/* NPC cast */
.cast { position: relative; }
.cast-row {
  --h: min(420px, calc((100vw - 48px) * 0.36));
  position: relative; height: calc(var(--h) * 1.1 + 24px);
}
.cast-row::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -10px; height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(198,42,48,0.32), rgba(198,42,48,0) 70%);
  pointer-events: none;
}
.cast-row::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: -6px; height: 18px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.65), rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.npc {
  position: absolute; bottom: 0; left: var(--x); margin: 0;
  height: calc(var(--h) * var(--s));
  margin-left: calc(var(--h) * var(--s) * var(--a) * var(--c) * -1);
  transition: transform 0.25s ease; transform-origin: 50% 100%;
}
.npc img { display: block; height: 100%; width: auto; pointer-events: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6)); }
.npc { pointer-events: none; }
.npc::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--c) * 100% - var(--h) * var(--s) * 0.19); width: calc(var(--h) * var(--s) * 0.38); pointer-events: auto; }
.npc figcaption {
  position: absolute; left: calc(var(--c) * 100%); bottom: 8px; transform: translateX(-50%);
  white-space: nowrap; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: rgba(14,15,26,0.85); border: 1px solid var(--line); color: #fff;
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.npc:hover { z-index: 10 !important; transform: translateY(-6px); }
.npc:hover figcaption { opacity: 1; }
.cast-names { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
@media (max-width: 700px) {
  .cast { overflow-x: auto; margin: 0 -24px; padding: 0 24px; scrollbar-width: none; }
  .cast-row { --h: 260px; min-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { .npc { transition: none; } .npc:hover { transform: none; } }
@media (max-width: 600px) { .section-title::after { display: none; } }

/* Foundry stage */
.stage { margin: 0; }
.stage-frame {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid #3a3e5e;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 6px rgba(255,107,112,0.06), 0 0 60px rgba(198,42,48,0.18);
}
.stage-frame img { display: block; width: 100%; height: auto; }
.stage-notes { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; color: var(--text-soft); font-size: 15px; }
.stage-notes li { display: flex; align-items: center; gap: 8px; }
.stage-notes .icon { width: 18px; height: 18px; color: var(--accent); }

/* Music player */
.music {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(21,23,41,0.92); border: 1px solid #3a3e5e; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.music-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--button); color: #fff;
}
.music-btn:hover { background: var(--button-hover); }
.music-btn:focus-visible, .music-vol:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.music-btn .icon { width: 20px; height: 20px; }
.music-pause { display: none; }
.music-btn.is-playing .music-play { display: none; }
.music-btn.is-playing .music-pause { display: block; }
.music-vol-icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.music-vol { width: 96px; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 600px) {
  .music { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .music-vol { flex: 1; width: auto; min-width: 60px; }
}
.reviews-gap { height: 26px; }

/* Social links */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; }
.socials-label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 4px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(21,23,41,0.7); border: 1px solid #3a3e5e; backdrop-filter: blur(4px);
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
}
.social:hover { border-color: var(--accent); color: #fff; }
.social .icon { width: 18px; height: 18px; color: var(--accent); }
.social .social-arrow { width: 14px; height: 14px; color: var(--muted); }

/* Header social icons */
.site-header .site-nav { margin-left: auto; }
.header-socials { display: flex; align-items: center; gap: 8px; padding-left: 20px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,0.18); }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #3a3e5e; background: rgba(21,23,41,0.6); color: var(--text); text-decoration: none;
}
.icon-link:hover { border-color: var(--accent); color: #fff; background: rgba(198,42,48,0.25); }
.icon-link .icon { width: 19px; height: 19px; color: var(--accent); }
@media (max-width: 760px) { .site-header .site-nav { margin-left: 0; order: 3; width: 100%; } .header-socials { border-left: 0; padding-left: 0; margin-left: auto; } }

/* Footer */
.site-footer {
  position: relative; margin-top: 24px; padding: 72px 0 96px;
  background: linear-gradient(180deg, rgba(21,23,41,0) 0%, #0a0b14 40%);
  border-top: 1px solid var(--line); color: var(--text-soft);
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: min(520px, 60%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,107,112,0), var(--accent), rgba(255,107,112,0));
}
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand p { margin: 16px 0 24px; max-width: 360px; color: var(--muted); }
.footer-brand .brand img { width: 48px; height: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin: 0 0 6px; font-family: var(--body); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-link .icon { width: 18px; height: 18px; color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: #8f92b3;
}
.footer-base p { margin: 0; }
.footer-base a { color: #b8bad3; }
@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }

/* Combat */
.combat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.combat .section-intro { margin-bottom: 24px; }
.combat-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.combat-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-soft); }
.combat-points strong { color: #fff; }
.combat-points .icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,107,112,0.12); color: var(--accent); }
.combat-shot { margin: 0; }
@media (max-width: 900px) { .combat { grid-template-columns: 1fr; gap: 28px; } }
#games { padding-bottom: 96px; }

/* Logo strip */
.logo-strip-section { padding-top: 56px; text-align: center; }
.strip-label { margin: 0 0 24px; display: inline-flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.strip-label::before, .strip-label::after { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,0.18); }
.logo-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.logo-note { margin: 24px auto 0; font-size: 12px; color: #6f7293; max-width: 560px; }
.logo-tile { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; transition: transform 0.25s ease; }
.logo-tile:hover { transform: translateY(-3px); }
.logo-tile img { display: block; width: auto; max-width: none; height: 34px; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity 0.25s ease, filter 0.25s ease; }
.logo-tile:hover img { opacity: 1; filter: none; }
.logo-tile img[data-logo="dnd"] { height: 26px; }
.logo-tile img[data-logo="daggerheart"] { height: 34px; }
.logo-tile img[data-logo="alchemy"] { height: 30px; }
.logo-tile img[data-logo="beyond"] { height: 50px; }
.logo-tile img[data-logo="freeleague"] { height: 34px; filter: none; opacity: 0.75; }
.logo-tile img[data-logo="freeleague"]:hover, .logo-tile:hover img[data-logo="freeleague"] { opacity: 1; }
.logo-tile img[data-logo="paizo"] { height: 54px; filter: grayscale(1) brightness(1.15); opacity: 0.8; }
.logo-tile:hover img[data-logo="paizo"] { filter: none; }
.logo-tile img.mark, .logo-tile img.mark-light { width: 32px; height: 32px; flex: none; }
.logo-tile img.mark { filter: invert(1); }
.logo-tile img.mark-light { filter: none; }
.logo-tile:hover img.mark { filter: invert(1); }
.logo-tile:hover img.mark-light { filter: none; }
.logo-tile.captioned { flex-direction: column; gap: 6px; }
.logo-cap { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.05em; color: #fff; white-space: nowrap; opacity: 0.85; }
.logo-tile:hover .logo-word { opacity: 1; }
.logo-note { margin: 36px auto 0; text-align: center; font-size: 12px; color: #8f92b3; max-width: 560px; }
@media (max-width: 700px) {
  .logo-band { padding: 36px 16px 32px; }
  .logo-grid { gap: 24px 32px; }
  .logo-tile img { height: 26px; }
  .logo-tile img[data-logo="dnd"] { height: 22px; } .logo-tile img[data-logo="alchemy"] { height: 22px; }
  .logo-tile img[data-logo="daggerheart"] { height: 28px; } .logo-tile img[data-logo="beyond"] { height: 38px; }
  .logo-tile img[data-logo="freeleague"] { height: 26px; } .logo-tile img[data-logo="paizo"] { height: 42px; }
  .logo-word { font-size: 18px; }
}
.logo-strip .logo-tile img { height: 26px; }
.logo-strip .logo-tile img[data-logo="dnd"] { height: 22px; }
.logo-strip .logo-tile img[data-logo="alchemy"] { height: 22px; }
.logo-strip .logo-tile img[data-logo="daggerheart"] { height: 28px; }
.logo-strip .logo-tile img[data-logo="beyond"] { height: 38px; }
.logo-strip .logo-tile img[data-logo="freeleague"] { height: 26px; }
.logo-strip .logo-tile img[data-logo="paizo"] { height: 38px; }
.logo-strip .logo-tile img.mark, .logo-strip .logo-tile img.mark-light { width: 26px; height: 26px; }
.logo-strip .logo-word { font-size: 17px; }
.logo-strip .logo-tile.captioned { flex-direction: row; gap: 10px; }
.logo-strip .logo-cap { font-size: 11px; }

/* Feature split */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
.feature-intro { position: sticky; top: 32px; }
.feature-intro .section-title { flex-wrap: wrap; }
.feature-intro .section-title::after { display: none; }
.feature-intro .section-intro { margin: 8px 0 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.feature-list li { display: flex; gap: 22px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-list .card-icon { flex: none; width: 52px; height: 52px; margin: 0; border-radius: 50%; background: transparent; border: 1px solid rgba(255,107,112,0.45); }
.feature-list .card-icon .icon { width: 24px; height: 24px; }
.feature-list h3 { margin: 2px 0 6px; font-family: var(--display); font-size: 22px; letter-spacing: 0.02em; color: #fff; }
.feature-list p { margin: 0; color: var(--text-soft); font-size: 17px; max-width: 560px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature-intro { position: static; } }
.combat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.combat-shot .stage-frame img { aspect-ratio: 8 / 5; object-fit: cover; object-position: 100% 50%; }
@media (max-width: 900px) { .combat { grid-template-columns: 1fr; } }
#systems.logo-strip-section { padding-bottom: 96px; }

/* ---------- Mobile polish ---------- */
@media (max-width: 760px) {
  /* Header: brand and icons on one row, links in a single swipeable row */
  .site-header { padding-top: 14px; padding-bottom: 10px; gap: 10px 12px; flex-wrap: wrap; }
  .brand { gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 16px; }
  .header-socials { gap: 6px; margin-left: auto; padding-left: 0; border-left: 0; }
  .icon-link { width: 32px; height: 32px; }
  .icon-link .icon { width: 16px; height: 16px; }
  .site-header .site-nav {
    order: 3; width: calc(100% + 48px); margin: 0 -24px; padding: 4px 24px 2px;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 14px; white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .site-header .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a + a::before { margin: 0 10px; }
  .hero { margin-top: -96px; padding-top: 150px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-header .site-nav { width: calc(100% + 36px); margin: 0 -18px; padding: 4px 18px 2px; }

  /* Hero */
  .hero h1 { font-size: 32px; line-height: 1.15; }
  .lede { font-size: 17px; margin-top: 18px; }
  .actions { margin-top: 26px; }
  .actions .btn { flex: 1 1 auto; }

  /* Stats */
  .stats li { flex: 1 1 45%; padding: 18px; }
  .stat-value { font-size: 30px; gap: 10px; }
  .stat-value .icon { width: 22px; height: 22px; }
  .stat-label { font-size: 14px; }

  /* Section headings */
  .section { padding-top: 72px; }
  .section h2 { font-size: 26px; }
  .section-title { gap: 12px; align-items: center; }
  .title-icon { width: 40px; height: 40px; border-radius: 10px; }
  .title-icon .icon { width: 20px; height: 20px; }
  .feature-intro .section-title { flex-wrap: nowrap; }
  .section-intro { font-size: 16px; margin-bottom: 28px; }

  /* Cards and lists */
  .card { padding: 22px; }
  .pull { padding: 40px 0; }
  .feature-list li { gap: 16px; padding: 22px 0; }
  .feature-list .card-icon { width: 44px; height: 44px; }
  .feature-list h3 { font-size: 19px; }
  .feature-list p { font-size: 16px; }
  .combat-points .icon { width: 32px; height: 32px; padding: 7px; }

  /* Screenshots run edge to edge for more detail */
  .stage, .combat-shot { margin: 0 -18px; }
  .stage-frame { border-radius: 0; border-left: 0; border-right: 0; }
  .stage-notes { flex-direction: column; align-items: center; gap: 10px; }

  /* Cast lineup: swipeable, starts centred on the villains */
  .cast { margin: 0 -18px; padding: 0 18px; }
  .cast-row { --h: 230px; min-width: 660px; }

  /* Playlist mock */
  .pl-vtt span, .pl-vtt { font-size: 0; gap: 0; }
  .pl-vtt img { width: 18px; height: 18px; }
  .playlist-head { padding: 14px 18px; font-size: 16px; }
  .playlist li { padding: 12px 18px; font-size: 15px; gap: 12px; }
  .module-actions, .module .actions { width: 100%; }
  .module .actions .btn { flex: 1 1 auto; }

  /* Logo strip: tidy two-column grid */
  .logo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; justify-items: center; }
  .logo-strip .logo-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Footer */
  .site-footer { padding-top: 56px; }
  .footer-base { flex-direction: column; margin-top: 40px; }

  /* Music: a small floating button; phones set volume with their own buttons */
  .music { left: auto; right: 14px; bottom: 14px; padding: 6px; gap: 0; }
  .music-vol, .music-vol-icon { display: none; }
  .music-btn { width: 48px; height: 48px; }
  .site-footer { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .site-header { display: grid; grid-template-columns: auto 1fr; align-items: center; }
  .site-header .site-nav { grid-column: 1 / -1; }
  .brand { gap: 8px; }
  .brand span { font-size: 15px; letter-spacing: 0.06em; }
  .header-socials { justify-self: end; gap: 5px; }
  .icon-link { width: 30px; height: 30px; }
}
@media (max-width: 600px) {
  .logo-strip .logo-tile.captioned { flex-direction: column; gap: 4px; }
  .logo-strip .logo-tile { max-width: 100%; }
  .logo-strip .logo-tile img { max-width: 100%; }
  .site-header { padding-top: 16px; }
}
@media (max-width: 600px) {
  .strip-label::before, .strip-label::after { display: none; }
  .strip-label { letter-spacing: 0.16em; }
  .logo-strip .logo-word { font-size: 14px; }
  .logo-strip .logo-tile img.mark, .logo-strip .logo-tile img.mark-light { width: 22px; height: 22px; }
  .logo-strip .logo-tile { gap: 8px; }
  .logo-strip .logo-tile img[data-logo="dnd"], .logo-strip .logo-tile img[data-logo="alchemy"] { height: 18px; }
  .logo-strip .logo-tile img[data-logo="daggerheart"] { height: 24px; }
}
/* Touch devices (phones and tablets) control volume with hardware buttons */
@media (hover: none) and (pointer: coarse) {
  .music { left: auto; right: 14px; bottom: 14px; padding: 6px; gap: 0; }
  .music-vol, .music-vol-icon { display: none; }
  .music-btn { width: 48px; height: 48px; }
}
/* Logo strip spacing matches the other sections */
.logo-strip-section { padding-top: 112px; }
@media (max-width: 600px) {
  .logo-strip-section { padding-top: 72px; }
  #systems.logo-strip-section { padding-bottom: 48px; }
}

/* Header menu: inline on desktop, a dropdown on tablets and phones */
.site-menu { display: contents; }
.nav-toggle { display: none; }
@media (max-width: 1120px) {
  .site-header { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px;
    background: transparent; border: 1px solid #3a3e5e; border-radius: 10px; cursor: pointer; color: var(--text);
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .menu-open .nav-toggle-bars { background: transparent; }
  .menu-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-menu {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); z-index: 30;
    padding: 8px 18px 18px; border-radius: 14px; border: 1px solid #3a3e5e;
    background: rgba(14,15,26,0.97); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  }
  .menu-open .site-menu { display: block; }
  .site-header .site-nav {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    width: auto; margin: 0; padding: 0; overflow: visible; white-space: normal; font-size: 17px;
    -webkit-mask-image: none; mask-image: none; order: 0;
  }
  .site-header .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
  .site-nav a + a::before { display: none; }
  .site-header .header-socials { display: flex; justify-content: flex-start; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
  .site-header .icon-link { width: 42px; height: 42px; }
  .site-header .icon-link .icon { width: 19px; height: 19px; }
  .hero { margin-top: -76px; padding-top: 130px; }
}
@media (max-width: 600px) {
  .review-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .review-actions .btn { width: 100%; }
  .review-actions .text-link { justify-content: center; }
}
@media (min-width: 601px) and (max-width: 1120px) {
  .site-menu { left: auto; right: 24px; width: 340px; }
}

/* Privacy page */
.privacy { max-width: 720px; padding-top: 24px; padding-bottom: 96px; }
.privacy h1 { font-family: var(--display); font-size: 40px; margin: 0 0 16px; }
.privacy h2 { font-family: var(--display); font-size: 22px; margin: 36px 0 8px; }
.privacy p { color: var(--text-soft); margin: 0 0 12px; }
