/* ExpansionTales v5 — midnight graphic novel panels */
:root {
  color-scheme: dark;
  --paper: #0a0910;
  --paper-light: #14121b;
  --ink: #f4f0e8;
  --blue: #7857f6;
  --orange: #ff5d75;
  --acid: #ffd252;
  --pink: #ff6795;
  --line: #3b3448;
  --text: #f4f0e8;
  --muted: #aaa2b5;
  --panel: #14121b;
  --panel-strong: #1d1927;
  --coral: #ff5d75;
  --mint: #a994ff;
  --gold: #ffd252;
  --teal: #7857f6;
  --shadow: 14px 14px 0 #050407;
}

html { background: #07060a; }

body,
body.missexpansion-inner-page,
body.missexpansion-reader-page {
  background: #0a0910 !important;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  z-index: -1;
  opacity: .34;
  background-image: radial-gradient(rgba(255,255,255,.17) 1px, transparent 1.2px);
  background-size: 11px 11px;
}

h1,
h2,
h3,
.inner-hero h1,
.reader-title h1,
.et2-story-copy strong,
.archive-copy h2,
.et2-lead-caption strong {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.eyebrow,
.et2-kicker {
  color: var(--pink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: .14em;
}

.button,
.button-primary,
.button-soft,
.button-outline,
.game-float,
.patreon-float {
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0 20px;
  background: #15121c;
  color: var(--ink);
  box-shadow: 5px 5px 0 #050407;
  font-size: .7rem;
  letter-spacing: .07em;
  clip-path: none;
}

.button-primary,
.game-float {
  border-color: var(--ink);
  background: var(--pink);
  color: #150812;
}

.patreon-float {
  border-color: var(--gold);
  background: #15121c;
  color: var(--gold);
}

.button:hover,
.button-primary:hover,
.button-soft:hover,
.game-float:hover,
.patreon-float:hover {
  box-shadow: 2px 2px 0 #050407;
  transform: translate(3px, 3px);
}

.top-action {
  width: min(1360px, calc(100% - 44px));
  margin-top: 14px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}

.top-logo img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.top-logo::after {
  content: "EXPANSIONTALES";
  font-family: "Arial Black", Arial, sans-serif;
  font-size: .92rem;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.patreon-status,
.patreon-notice {
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: #211823;
  box-shadow: 5px 5px 0 #050407;
}

.et2-cover {
  width: min(1360px, calc(100% - 44px));
  padding: 28px 0 76px;
}

.et2-masthead > p {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 11px;
  color: var(--muted);
}

.et2-masthead > p span:nth-child(2) { color: var(--gold); }

.et2-masthead h1 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin: 14px 0 50px;
  padding: 0;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(4.2rem, 10vw, 9.8rem);
  line-height: .76;
  letter-spacing: -.08em;
}

.et2-masthead h1 span:first-child {
  color: var(--ink);
  text-shadow: 8px 8px 0 #2c214e;
}

.et2-masthead h1 span:last-child {
  align-self: auto;
  color: var(--pink);
  -webkit-text-stroke: 0;
  text-shadow: 7px 7px 0 #4a1530;
}

.et2-cover-grid {
  grid-template-columns: minmax(560px, 1.2fr) minmax(360px, .8fr);
  gap: 32px;
  align-items: stretch;
  border: 0;
  padding: 0;
  background: transparent;
}

.et2-intro {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: clamp(36px, 5vw, 68px);
  background:
    linear-gradient(135deg, transparent 0 74%, rgba(120,87,246,.18) 74% 100%),
    #18141f;
  box-shadow: 11px 11px 0 #30204a;
}

.et2-intro h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(2.8rem, 4.6vw, 5.4rem);
  font-style: normal;
  line-height: .83;
  text-transform: uppercase;
}

.et2-intro > p:not(.et2-kicker) {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.et2-actions { gap: 17px; margin-top: 28px; }
.et2-text-link { border-bottom: 2px solid var(--pink); color: var(--pink); }

.et2-data {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 38px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: #100e15;
  box-shadow: none;
}

.et2-data div {
  display: grid;
  grid-template-columns: 96px 1fr;
  border: 0;
  border-radius: 0;
  padding: 11px 14px;
  background: transparent;
}

.et2-data div + div {
  border: 0;
  border-top: 1px solid var(--line);
}

.et2-data dt {
  color: var(--gold);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: .78rem;
  font-style: normal;
  text-transform: uppercase;
}

.et2-data dd { color: var(--muted); }

.et2-lead {
  order: 1;
  grid-template-columns: minmax(300px, 1fr) minmax(240px, .72fr);
  min-height: 650px;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #18131d;
  box-shadow: 12px 12px 0 #4d1936;
  transform: rotate(-1deg);
}

.et2-lead:hover {
  box-shadow: 6px 6px 0 #4d1936;
  transform: rotate(-1deg) translate(6px, 6px);
}

.et2-lead-label {
  top: -24px;
  left: -12px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 10px 14px;
  background: var(--pink);
  color: #170911;
  transform: rotate(-2deg);
  white-space: normal;
}

.et2-lead-art {
  border: 0;
  border-right: 2px solid var(--ink);
  background: #24192f;
}

.et2-burst {
  top: 24px;
  right: 24px;
  width: 94px;
  height: 94px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--gold);
  color: #17100b;
  clip-path: polygon(50% 0,61% 24%,85% 8%,80% 34%,100% 50%,76% 61%,92% 86%,66% 80%,50% 100%,39% 76%,15% 92%,20% 66%,0 50%,24% 39%,8% 14%,34% 20%);
  font-family: "Arial Black", Arial, sans-serif;
  transform: rotate(8deg);
}

.et2-lead-caption { padding: 36px 26px; }
.et2-lead-caption small { color: var(--gold); }

.et2-lead-caption strong {
  font-size: clamp(2.7rem, 4.1vw, 4.8rem);
  line-height: .82;
}

.et2-lead-caption em { color: var(--muted); }

.et2-lead-caption b {
  border-top: 2px solid var(--line);
  color: var(--pink);
}

.et2-newswire {
  min-width: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--pink);
  color: #1a0912;
}

.et2-newswire strong { color: #1a0912; }
.et2-newswire i { color: #fff1ba; }

.section.et2-library,
.section.et2-game,
.section.et2-membership {
  width: min(1360px, calc(100% - 44px));
}

.et2-library { padding: 112px 0 130px; }

.et2-section-head {
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}

.et2-section-head span { color: var(--gold); }

.et2-section-head h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-style: normal;
  line-height: .8;
  text-transform: uppercase;
}

.et2-section-head p { color: var(--muted); }

.et2-section-head > a {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--gold);
  color: #170f08;
  box-shadow: 4px 4px 0 #050407;
}

.et2-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: repeat(2, minmax(330px, auto));
  gap: 24px;
}

.et2-story-card,
.et2-story-1,
.et2-story-2,
.et2-story-3 {
  grid-column: auto;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #15121c;
  box-shadow: 9px 9px 0 #050407;
}

.et2-story-1 {
  grid-row: 1 / span 2;
  grid-template-rows: minmax(0, 1fr) auto;
}

.et2-story-2,
.et2-story-3 {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(270px, 1.22fr);
}

.et2-story-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 #050407;
  transform: translate(5px, 5px);
}

.et2-story-index {
  top: 12px;
  left: 12px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--gold);
  color: #170f08;
  transform: rotate(-3deg);
}

.et2-story-cover {
  aspect-ratio: auto;
  min-height: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: #2a2139;
}

.et2-story-2 .et2-story-cover,
.et2-story-3 .et2-story-cover {
  border-right: 2px solid var(--ink);
  border-bottom: 0;
}

.et2-story-copy,
.et2-story-1 .et2-story-copy,
.et2-story-2 .et2-story-copy,
.et2-story-3 .et2-story-copy {
  min-height: 0;
  padding: 25px;
  background: #17131d;
}

.et2-story-copy small { color: var(--gold); }

.et2-story-copy strong {
  font-size: clamp(2.2rem, 3.6vw, 4.2rem);
  line-height: .82;
}

.et2-story-2 .et2-story-copy strong,
.et2-story-3 .et2-story-copy strong { font-size: clamp(1.9rem, 2.6vw, 3rem); }

.et2-story-copy em { color: var(--muted); }
.et2-story-copy b { color: var(--pink); }

.et2-game {
  grid-template-columns: minmax(520px, 1.05fr) minmax(390px, .95fr);
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #15121c;
  box-shadow: 13px 13px 0 #3b265f;
  transform: rotate(.35deg);
}

.et2-game-screen {
  border-right: 2px solid var(--ink);
  background: #291936;
}

.et2-screen-bar {
  border-bottom: 2px solid var(--ink);
  background: var(--gold);
  color: #160f08;
}

.et2-screen-body {
  min-height: 560px;
  background:
    radial-gradient(circle at 52% 24%, rgba(255,103,149,.36), transparent 24%),
    linear-gradient(150deg, #23162e, #4b2047 58%, #1a111f);
}

.et2-screen-body::before,
.et2-screen-body::after {
  border: 2px solid rgba(244,240,232,.15);
  border-radius: 0;
  transform: rotate(8deg);
}

.et2-pixel-moon {
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 7px 7px 0 #050407;
}

.et2-pixel-figure {
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 13%, #e7b19f 0 11%, #221324 11.5% 16%, transparent 16.5%),
    radial-gradient(circle at 34% 48%, #b23363 0 20%, transparent 20.5%),
    radial-gradient(circle at 66% 48%, #b23363 0 20%, transparent 20.5%),
    linear-gradient(165deg, transparent 0 24%, #211322 25% 100%);
}

.et2-choice-box {
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 2px;
  background: rgba(14,10,17,.95);
  box-shadow: 7px 7px 0 #050407;
}

.et2-choice-box small { color: var(--gold); }

.et2-choice-box p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 900;
}

.et2-choice-box span { color: var(--pink); }

.et2-game-copy {
  background:
    linear-gradient(145deg, transparent 0 76%, rgba(255,93,117,.13) 76%),
    #17131d;
}

.et2-game-copy h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(4.6rem, 7vw, 8rem);
  font-style: normal;
  line-height: .73;
  text-transform: uppercase;
}

.et2-game-copy li {
  border-top: 1px solid var(--line);
  color: var(--gold);
}

.et2-vertical-word {
  color: rgba(120,87,246,.1);
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
}

.et2-membership {
  margin-top: 125px;
  margin-bottom: 125px;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: clamp(50px, 7vw, 90px);
  background:
    linear-gradient(135deg, rgba(255,93,117,.12), transparent 36%),
    #18131a;
  box-shadow: 12px 12px 0 #4b1834;
  transform: rotate(-.35deg);
}

.et2-membership h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
  line-height: .8;
  text-transform: uppercase;
}

.et2-membership-stamp {
  top: -18px;
  right: 28px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--gold);
  color: #170f08;
  transform: rotate(3deg);
}

/* Catalog and reader use straight comic panels */
.inner-hero {
  width: min(1280px, calc(100% - 44px));
  border-bottom: 2px solid var(--ink);
}

.inner-hero h1,
.reader-title h1 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.back-link,
.back-link::before { color: var(--pink); }

.archive-filters a {
  border: 2px solid var(--line);
  border-radius: 3px;
  background: #15121c;
}

.archive-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #15121c;
  box-shadow: 8px 8px 0 #050407;
}

.archive-card:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 #050407;
  transform: translate(5px, 5px);
}

.archive-cover { border-bottom: 2px solid var(--ink); }

.archive-cover-badge,
.release-label,
.tag,
.status-pill {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--gold);
  color: #170f08;
}

.archive-button,
.release-button {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--pink);
  color: #160811;
  box-shadow: 4px 4px 0 #050407;
}

.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 {
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 7px 7px 0 #050407;
}

.faq-question { background: #24172c; }
.reader-title { border-bottom: 2px solid var(--ink); }

.reader-locked-page {
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: #211722;
  box-shadow: 9px 9px 0 #050407;
}

.reader-locked-page a,
.comment-locked a {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--pink);
  color: #160811;
  box-shadow: 4px 4px 0 #050407;
}

.reader-page-image,
.reader-placeholder-page {
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 10px 10px 0 #050407;
}

.et-build-placeholder {
  border: 2px solid var(--ink);
  border-radius: 0;
  background:
    linear-gradient(145deg, transparent 0 68%, rgba(120,87,246,.22) 68%),
    #18131f;
  box-shadow: 12px 12px 0 #3b265f;
}

.et-build-placeholder h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.et-build-orbit,
.et-build-orbit::before,
.et-build-orbit::after { border-radius: 0; }

.et-build-status {
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: #19131a;
  color: var(--gold);
}

.age-gate { background: rgba(7,6,10,.97); backdrop-filter: blur(7px); }

.age-panel {
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #17131d;
  box-shadow: 12px 12px 0 #3b265f;
}

.age-panel h2 {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: #100d14;
}

.footer-social {
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: #17131d;
  color: var(--gold);
}

@media (max-width: 1060px) {
  .et2-cover-grid { grid-template-columns: 1fr; }
  .et2-intro { order: 1; }
  .et2-lead { order: 2; min-height: 650px; }
  .et2-story-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .et2-story-1 { grid-row: auto; }
  .et2-story-2,
  .et2-story-3 { display: grid; grid-template-columns: 1fr; }
  .et2-story-2 .et2-story-cover,
  .et2-story-3 .et2-story-cover { min-height: 390px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .et2-story-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
  .et2-game { grid-template-columns: 1fr; }
  .et2-game-screen { border-right: 0; border-bottom: 2px solid var(--ink); }
}

@media (max-width: 700px) {
  .top-action,
  .et2-cover,
  .section.et2-library,
  .section.et2-game,
  .section.et2-membership,
  .inner-hero { width: calc(100% - 20px); }

  .et2-cover { padding-top: 22px; }
  .et2-masthead h1 { grid-template-columns: 1fr; margin: 14px 0 52px; font-size: clamp(3.8rem, 20vw, 6.2rem); }
  .et2-masthead h1 span:last-child { justify-self: end; }
  .et2-intro { padding: 30px 20px; box-shadow: 7px 7px 0 #30204a; }
  .et2-intro h2 { font-size: 3rem; }
  .et2-lead { grid-template-columns: 1fr; min-height: 0; transform: none; box-shadow: 7px 7px 0 #4d1936; }
  .et2-lead:hover { transform: translate(4px, 4px); }
  .et2-lead-art { min-height: 520px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .et2-lead-label { left: 8px; max-width: calc(100% - 80px); }
  .et2-newswire { justify-content: flex-start; overflow: hidden; }
  .et2-section-head h2 { font-size: 3.5rem; }
  .et2-story-grid { grid-template-columns: 1fr; }
  .et2-story-card,
  .et2-story-card:last-child { grid-column: auto; width: auto; }
  .et2-story-2,
  .et2-story-3 { grid-template-columns: 1fr; }
  .et2-story-cover,
  .et2-story-2 .et2-story-cover,
  .et2-story-3 .et2-story-cover { min-height: 470px; }
  .et2-game { transform: none; box-shadow: 7px 7px 0 #3b265f; }
  .et2-membership { padding: 64px 22px 38px; transform: none; box-shadow: 7px 7px 0 #4b1834; }
}
