:root {
  --ink: #f1e8d8;
  --paper: #0c0a09;
  --paper-2: #18120f;
  --gold: #d4a24c;
  --red: #b8202b;
  --terracotta: #c1552e;
  --jungle: #3f6b4f;
  --sky: #4f8fa6;
  --grey: #9a8f7d;
  --serif: 'Atkinson Hyperlegible', Georgia, serif;
  --sans: 'Manrope', Helvetica, Arial, sans-serif;
  --title: 'Anton', 'Oswald', Impact, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

.series-strip {
  display: block;
  width: 100%;
  background: #000;
  line-height: 0;
}
.strip-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--red);
}
.series-strip img {
  display: block;
  width: 100%;
  height: auto;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
}

a { color: inherit; }

body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.2) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow .star { color: var(--red); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--gold);
  color: var(--paper);
}

/* ===== CYOA reader ===== */
#app {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
}

.cyoa-start {
  max-width: 720px;
  text-align: center;
  padding-top: 3rem;
}
.cyoa-start .eyebrow { margin-bottom: 1.2rem; font-size: 1.1rem; }
.cyoa-title {
  font-family: var(--title);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.cyoa-sub {
  color: var(--grey);
  margin-bottom: 2.5rem;
  font-size: 1.3rem;
  line-height: 1.5;
}
.cyoa-back {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--grey);
  text-decoration: none;
}
.cyoa-back:hover { color: var(--gold); }

.cyoa-node {
  max-width: 760px;
  padding-top: 2rem;
}
.cyoa-node .eyebrow { margin-bottom: 1rem; font-size: 1.1rem; }
.cyoa-artifact {
  margin: 0 0 1.6rem;
  max-width: 260px;
  transform: rotate(-1.5deg);
}
.cyoa-artifact img {
  display: block;
  width: 100%;
  border: 6px solid #ece6d8;
  border-bottom-width: 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
.cyoa-artifact figcaption {
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-align: center;
  margin-top: -20px;
  font-style: italic;
}
.cyoa-text {
  font-size: 1.4rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.cyoa-ending {
  font-family: var(--sans);
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 2rem 0 1.5rem;
}
.cyoa-ending--win { color: var(--jungle); }
.cyoa-ending--lose { color: var(--terracotta); }
.cyoa-ending--neutral { color: var(--sky); }

.cyoa-choices {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
}
.cyoa-choice { text-align: left; }

.cyoa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: #000;
}
.cyoa-nav-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cyoa-nav-btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.cyoa-nav-btn:hover { background: rgba(0, 0, 0, 0.75); }

.cyoa-translate,
.gtranslate-wrap {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin-left: auto;
}
.cyoa-translate .goog-te-gadget,
.gtranslate-wrap .goog-te-gadget {
  font-family: var(--sans) !important;
  font-size: 0 !important;
  color: transparent !important;
}
.cyoa-translate select,
.gtranslate-wrap select {
  font-family: var(--sans);
  font-size: 1.1rem;
  background: transparent;
  color: var(--gold);
  border: none;
  outline: none;
}
body > .skiptranslate.goog-te-gadget-icon,
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

.cyoa-music-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.cyoa-music-toggle:hover { background: rgba(0, 0, 0, 0.55); }
.cyoa-music-toggle.is-muted { opacity: 0.4; }
@media (max-width: 640px) {
  .cyoa-translate, .gtranslate-wrap { margin-left: 0; }
}
