/* ExpansionTales v5.6 — graphic-novel layout in the Dark Forest palette */
:root {
  --paper: #08110e;
  --paper-light: #14211b;
  --ink: #eee8da;
  --blue: #305d4d;
  --orange: #b994d6;
  --acid: #d7b85b;
  --pink: #b994d6;
  --line: #496256;
  --text: #eee8da;
  --muted: #aab8ad;
  --panel: #14211b;
  --panel-strong: #1c2c25;
  --coral: #b994d6;
  --mint: #6e9985;
  --gold: #d7b85b;
  --teal: #305d4d;
  --shadow: 14px 14px 0 #030806;
  --teaser-ratio: 3 / 4;
  --teaser-width: 1200;
  --teaser-height: 1600;
}

html { background: #040907; }

body,
body.missexpansion-inner-page,
body.missexpansion-reader-page {
  background: #08110e !important;
  color: var(--ink);
}

body::before {
  opacity: .19;
  background-image: radial-gradient(rgba(238,232,218,.15) .8px, transparent 1px);
}

.button,
.button-soft,
.button-outline { background: #14211b; }

.button-primary,
.game-float {
  background: #b994d6;
  color: #0b120e;
}

.patreon-float {
  border-color: #d7b85b;
  background: #10170f;
  color: #d7b85b;
}

.button:hover,
.button-primary:hover,
.button-soft:hover,
.game-float:hover,
.patreon-float:hover { box-shadow: 2px 2px 0 #030806; }

.top-action { border-color: #eee8da; }
.top-logo img { filter: sepia(.15) saturate(.78) brightness(.94); }

.et2-masthead h1 span:first-child { text-shadow: 7px 7px 0 #283c33; }
.et2-masthead h1 span:last-child {
  color: #b994d6;
  text-shadow: 6px 6px 0 #4a3552;
}

.et2-intro {
  background:
    linear-gradient(135deg, transparent 0 74%, rgba(48,93,77,.35) 74% 100%),
    #14211b;
  box-shadow: 10px 10px 0 #274c41;
}

.et2-data { background: #0d1712; }

.et2-reader-desk {
  justify-content: flex-start;
  gap: 0;
  padding: clamp(30px, 4vw, 52px);
}

.et2-desk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

.et2-desk-top p { margin: 0; }

.et2-desk-top > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.et2-desk-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7b85b;
  box-shadow: 0 0 0 4px rgba(215,184,91,.14);
}

.et2-desk-latest {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3.2vw, 38px) 0 30px;
}

.et2-desk-label,
.et2-desk-meta {
  margin: 0;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.et2-desk-label { color: #b994d6; }
.et2-desk-meta { margin-top: 8px; color: #d7b85b; }

.et2-reader-desk .et2-desk-latest h2 {
  max-width: 100%;
  margin: 14px 0 16px;
  font-size: clamp(2.55rem, 3.7vw, 4.6rem);
  line-height: .84;
  overflow-wrap: anywhere;
}

.et2-desk-summary {
  display: -webkit-box;
  max-width: 38rem;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.et2-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.et2-desk-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.et2-desk-links a {
  display: flex;
  min-width: 0;
  min-height: 120px;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(8,17,14,.76);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.et2-desk-links a:hover {
  border-color: #d7b85b;
  background: #1c2c25;
  transform: translateY(-3px);
}

.et2-desk-links small {
  color: #d7b85b;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.et2-desk-links strong {
  margin-top: 8px;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.65rem);
  line-height: .92;
  text-transform: uppercase;
}

.et2-desk-links span {
  margin-top: auto;
  padding-top: 14px;
  color: #b994d6;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.et2-desk-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  margin-top: 10px;
  border: 1px solid #7e713c;
  padding: 14px 16px;
  background: rgba(215,184,91,.1);
  color: var(--ink);
}

.et2-desk-member span {
  color: #d7b85b;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.et2-desk-member strong { font-size: .88rem; }

.et2-desk-member b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #b994d6;
  font-size: .66rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.et2-desk-member.is-unlocked {
  border-color: #6e9985;
  background: rgba(48,93,77,.3);
}

.et2-lead {
  background: #14211b;
  box-shadow: 11px 11px 0 #4a3552;
}

.et2-lead:hover { box-shadow: 6px 6px 0 #4a3552; }
.et2-lead-label { background: #b994d6; }
.et2-lead-art {
  min-height: 0;
  aspect-ratio: var(--teaser-ratio);
  background: #203c33;
}
.et2-burst { background: #d7b85b; }

.et2-teaser-carousel {
  position: relative;
  order: 1;
  min-width: 0;
  transform: rotate(-1deg);
}

@media (min-width: 1061px) {
  .et2-teaser-slide.et2-lead {
    grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr);
  }

  .et2-teaser-slide .et2-lead-art {
    height: 100%;
    align-self: stretch;
    aspect-ratio: auto;
  }

  .et2-teaser-slide .et2-lead-art img,
  .et2-teaser-slide .et2-lead-art video {
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
  }

  .et2-teaser-slide .et2-lead-caption {
    padding-inline: 22px;
  }

  .et2-teaser-slide .et2-lead-caption strong {
    font-size: clamp(2rem, 14cqi, 4.4rem);
  }
}

.et2-teaser-track {
  display: grid;
  min-height: 100%;
}

.et2-teaser-slide.et2-lead {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(22px);
  transition: opacity .34s ease, visibility .34s ease, transform .34s ease;
}

.et2-teaser-slide.et2-lead.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.et2-teaser-slide.et2-lead:hover,
.et2-teaser-slide.et2-lead.is-active:hover {
  box-shadow: 6px 6px 0 #4a3552;
  transform: translate(5px, 5px);
}

.et2-teaser-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: #b994d6;
  color: #0b120e;
  box-shadow: 4px 4px 0 #030806;
  font: 900 1.25rem/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
}

.et2-teaser-control:hover,
.et2-teaser-control:focus-visible {
  background: #d7b85b;
  box-shadow: 2px 2px 0 #030806;
}

.et2-teaser-control.carousel-prev { left: -18px; }
.et2-teaser-control.carousel-next { right: -18px; }

.et2-teaser-dots {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 17px;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(238,232,218,.35);
  padding: 8px 10px;
  background: rgba(8,17,14,.88);
}

.et2-teaser-dots button {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.et2-teaser-dots button.is-active {
  width: 28px;
  border-radius: 8px;
  background: #d7b85b;
}

.et2-teaser-count {
  display: inline-flex;
  min-width: 45px;
  align-items: center;
  gap: 4px;
  margin-right: 3px;
  color: #eee8da;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
}

.et2-teaser-count-current { color: #d7b85b; }
.et2-teaser-count i { color: #aab8ad; font-style: normal; }

.et2-lead-art img,
.et2-lead-art video,
.et2-story-cover img,
.et2-story-cover video,
.archive-cover img,
.archive-cover video {
  filter: saturate(.88) contrast(1.03) brightness(.94) sepia(.04);
}

.et2-newswire {
  background: #d7b85b;
  color: #0b120e;
}

.et2-newswire strong { color: #0b120e; }
.et2-newswire i { color: #4f3760; }

.et2-section-head > a,
.et2-story-index,
.archive-cover-badge,
.release-label,
.tag,
.status-pill {
  background: #d7b85b;
  color: #0b120e;
}

.et2-story-card,
.et2-story-1,
.et2-story-2,
.et2-story-3,
.et2-story-4,
.et2-story-copy,
.et2-story-1 .et2-story-copy,
.et2-story-2 .et2-story-copy,
.et2-story-3 .et2-story-copy,
.et2-story-4 .et2-story-copy { background: #14211b; }

.et2-story-card {
  --story-accent: #b994d6;
  position: relative;
  border-color: #cdd8cf;
  background: #0b1612;
  box-shadow: 9px 9px 0 #030806;
}

.et2-story-2 { --story-accent: #b994d6; }
.et2-story-3 { --story-accent: #6e9985; }
.et2-story-4 { --story-accent: #d7b85b; }

.et2-story-card::after {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 58px;
  height: 5px;
  background: var(--story-accent);
  content: "";
  pointer-events: none;
}

.et2-story-cover {
  min-height: 0 !important;
  aspect-ratio: var(--teaser-ratio);
  background: #203c33;
}

.et2-lead-art img,
.et2-lead-art video,
.et2-story-cover img,
.et2-story-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.et2-story-card:hover {
  border-color: #eee8da;
  box-shadow: 4px 4px 0 #030806;
  transform: translate(5px, 5px);
}

.et2-story-copy small {
  width: fit-content;
  border-bottom: 1px solid var(--story-accent);
  padding-bottom: 7px;
  color: #d7b85b;
}

.et2-story-copy b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #496256;
  color: #c7a8dc;
}

.et2-story-copy b span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--story-accent);
  color: #0b1612;
}

@media (min-width: 1061px) {
  .et2-story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
  }

  .et2-story-1 { grid-row: 1 / span 3; }

  .et2-story-1 {
    align-self: start;
    grid-template-rows: auto auto;
  }

  .et2-story-1 .et2-story-copy {
    min-height: 190px;
    padding: 24px 26px 22px;
  }

  .et2-story-1 .et2-story-copy strong {
    margin-top: 12px;
    font-size: clamp(2.7rem, 3.3vw, 4rem);
  }

  .et2-story-1 .et2-story-copy em { margin-top: 10px; }

  .et2-story-1 .et2-story-copy b {
    margin-top: 20px;
    padding-top: 12px;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) {
    display: grid;
    grid-template-columns: clamp(180px, 14.5vw, 210px) minmax(0, 1fr);
    min-height: 0;
    padding: 10px 0 10px 10px;
    box-shadow: 7px 7px 0 #030806;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-cover {
    min-height: 0;
    align-self: center;
    border: 1px solid #496256;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 10px;
    border-left: 1px solid #496256;
    padding: 16px 18px 10px;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-copy strong {
    margin-top: 12px;
    color: #eee8da;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
    line-height: .86;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-copy em {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    color: #aab8ad;
    font-size: .8rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-copy b {
    margin-top: auto;
    padding-top: 10px;
  }
}

.et2-game {
  background: #14211b;
  box-shadow: 12px 12px 0 #305d4d;
}

.et2-game-screen { background: #1b2a24; }
.et2-screen-bar { background: #d7b85b; color: #0b120e; }

.et2-screen-body {
  background:
    radial-gradient(circle at 52% 24%, rgba(185,148,214,.34), transparent 24%),
    linear-gradient(150deg, #14231d, #4f3b58 58%, #26493f);
}

.et2-pixel-moon { background: #d7b85b; }

.et2-pixel-figure {
  background:
    radial-gradient(circle at 50% 13%, #c7987c 0 11%, #17251f 11.5% 16%, transparent 16.5%),
    radial-gradient(circle at 34% 48%, #8d6bae 0 20%, transparent 20.5%),
    radial-gradient(circle at 66% 48%, #8d6bae 0 20%, transparent 20.5%),
    linear-gradient(165deg, transparent 0 24%, #17251f 25% 100%);
}

.et2-choice-box { background: rgba(8,17,14,.96); }

.et2-game-copy {
  background:
    linear-gradient(145deg, transparent 0 76%, rgba(48,93,77,.25) 76%),
    #14211b;
}

.et2-vertical-word { color: rgba(110,153,133,.16); }

.et2-membership {
  background:
    linear-gradient(135deg, rgba(215,184,91,.1), transparent 36%),
    #60476d;
  box-shadow: 11px 11px 0 #2a1c30;
}

.et2-membership h2 {
  max-width: 100%;
  font-size: clamp(2.45rem, 4.3vw, 4.75rem);
  letter-spacing: -.075em;
}

.et2-membership-stamp { background: #d7b85b; color: #0b120e; }
.et2-membership .button-primary { background: #eee8da; color: #15231d; }
.et2-membership .et2-text-link { border-color: #eee8da; color: #eee8da; }

.archive-button,
.release-button,
.reader-locked-page a,
.comment-locked a { background: #b994d6; }

.archive-card,
.legal-panel,
.faq-item,
.comments-panel,
.reader-finish-panel,
.member-status-list span,
.comment-locked,
.comment-list li,
.reader-stat,
.reader-bottom-nav a,
.disabled-link { background: #14211b; }

.reader-locked-page { background: #1c2c25; }

.et-build-placeholder {
  background:
    linear-gradient(145deg, transparent 0 68%, rgba(48,93,77,.28) 68%),
    #14211b;
  box-shadow: 11px 11px 0 #305d4d;
}

.et-build-status,
.footer-social { color: #d7b85b; border-color: #8f7939; }
.age-gate { background: rgba(4,9,7,.97); }
.age-panel { background: #14211b; box-shadow: 11px 11px 0 #305d4d; }
.site-footer { background: #07100c; }

@media (max-width: 700px) {
  .et2-intro { box-shadow: 6px 6px 0 #274c41; }
  .et2-reader-desk { padding: 26px 20px; }
  .et2-reader-desk .et2-desk-latest h2 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .et2-desk-links { grid-template-columns: 1fr; }
  .et2-desk-links a { min-height: 104px; }
  .et2-desk-member { grid-template-columns: 1fr; }
  .et2-desk-member b { grid-column: 1; grid-row: auto; margin-top: 8px; white-space: normal; }
  .et2-lead { box-shadow: 7px 7px 0 #4a3552; }
  .et2-teaser-carousel { transform: none; }
  .et2-teaser-control { top: 41%; width: 42px; height: 42px; }
  .et2-teaser-control.carousel-prev { left: 8px; }
  .et2-teaser-control.carousel-next { right: 8px; }
  .et2-teaser-dots { right: 12px; bottom: 12px; }
  .et2-teaser-slide.et2-lead:hover,
  .et2-teaser-slide.et2-lead.is-active:hover { transform: none; }
  .et2-game { box-shadow: 7px 7px 0 #305d4d; }
  .et2-membership { box-shadow: 7px 7px 0 #2a1c30; }
}

@media (max-width: 1060px) {
  .et2-teaser-carousel { order: 2; }

  .et2-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 20px;
  }

  .et2-story-grid > .et2-story-card,
  .et2-story-grid > .et2-story-card:last-child {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) {
    display: grid;
    grid-template-columns: 1fr;
  }

  .et2-story-grid > .et2-story-card:not(.et2-story-1) .et2-story-cover {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .et2-story-grid .et2-story-copy {
    min-height: 205px;
    padding: 22px;
  }

  .et2-story-grid .et2-story-copy b {
    margin-top: auto;
    padding-top: 12px;
  }
}

@media (max-width: 700px) {
  .et2-story-grid { grid-template-columns: 1fr; }
  .et2-story-grid .et2-story-copy { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .et2-teaser-slide.et2-lead,
  .et2-teaser-dots button { transition: none; }
}
