/* ExpansionTales v3 — midnight transmission archive */
:root {
  color-scheme: dark;
  --paper: #05090b;
  --paper-light: #091116;
  --ink: #d9f4ee;
  --blue: #16bda5;
  --orange: #ff7448;
  --acid: #c7ff5b;
  --pink: #ff4f75;
  --line: #284b4c;
  --text: #d9f4ee;
  --muted: #789a99;
  --panel: #091116;
  --panel-strong: #0d1b20;
  --coral: #ff7448;
  --mint: #16bda5;
  --gold: #eab65d;
  --teal: #16bda5;
  --shadow: none;
}

html { background: #030607; }

body,
body.missexpansion-inner-page,
body.missexpansion-reader-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(22,189,165,.09), transparent 27%),
    #05090b !important;
  color: var(--text);
  font-family: "Courier New", Consolas, monospace;
}

body::before {
  z-index: 1000;
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.22) 3px 4px);
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
.et2-story-copy strong,
.archive-copy h2,
.reader-title h1 {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.055em;
}

.eyebrow,
.et2-kicker {
  color: var(--blue);
  font-family: "Courier New", monospace;
  letter-spacing: .2em;
}

.button,
.button-primary,
.button-soft,
.button-outline,
.game-float,
.patreon-float {
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-family: "Courier New", monospace;
  letter-spacing: .1em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.button-primary,
.game-float {
  background: var(--blue);
  color: #03100f;
}

.patreon-float {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange);
}

.button:hover,
.button-primary:hover,
.button-soft:hover,
.game-float:hover,
.patreon-float:hover {
  box-shadow: inset 0 0 0 1px currentColor;
  transform: none;
}

.top-action {
  width: min(1360px, calc(100% - 56px));
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}

.top-action::after {
  content: "CHANNEL 01 // LIVE";
  position: absolute;
  right: 0;
  bottom: -22px;
  color: var(--muted);
  font-size: .56rem;
  letter-spacing: .14em;
}

.top-logo img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--blue);
  background: #071014;
}

.top-logo::after {
  font-family: "Courier New", monospace;
  font-size: .8rem;
  letter-spacing: .17em;
}

.et2-cover {
  width: min(1360px, calc(100% - 56px));
  padding: 86px 0 72px;
}

.et2-masthead > p {
  border: 0;
  border-left: 4px solid var(--orange);
  padding: 0 0 0 13px;
  color: var(--muted);
}

.et2-masthead h1 {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 3vw;
  margin: 22px 0 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 35px;
  font-size: clamp(4rem, 9.6vw, 9rem);
  line-height: .82;
  letter-spacing: -.075em;
}

.et2-masthead h1 span:first-child { color: var(--ink); }

.et2-masthead h1 span:last-child {
  align-self: auto;
  color: transparent;
  -webkit-text-stroke: 1px var(--orange);
  text-shadow: none;
}

.et2-cover-grid {
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  padding: 0;
  background: rgba(9,17,22,.74);
}

.et2-intro {
  position: relative;
  padding: clamp(34px, 5vw, 72px);
}

.et2-intro::after {
  content: "ET/ARCHIVE_001";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .15em;
}

.et2-intro h2 {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
}

.et2-intro > p:not(.et2-kicker) {
  max-width: 510px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
}

.et2-text-link {
  border-bottom: 1px solid var(--orange);
  color: var(--orange);
}

.et2-data {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.et2-data div + div { border-left: 1px solid var(--line); }
.et2-data dt { color: var(--acid); font-family: "Courier New", monospace; font-size: 1.5rem; }
.et2-data dd { color: var(--muted); }

.et2-lead {
  min-height: 560px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #081014;
  box-shadow: none;
}

.et2-lead:hover { box-shadow: none; transform: none; }

.et2-lead-label {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #071012;
  color: var(--blue);
}

.et2-lead-art { border-right: 1px solid var(--line); background: #0b171a; }

.et2-lead-art img,
.et2-story-cover img,
.archive-cover img {
  filter: saturate(.72) contrast(1.07);
}

.et2-burst {
  top: 18px;
  right: 18px;
  width: 84px;
  height: 84px;
  border: 1px solid var(--orange);
  background: #071012;
  color: var(--orange);
  clip-path: none;
  font-family: "Courier New", monospace;
  font-size: .7rem;
}

.et2-lead-caption { padding: 34px; }
.et2-lead-caption small { color: var(--blue); }
.et2-lead-caption strong { font-family: "Arial Narrow", Arial, sans-serif; letter-spacing: -.06em; }
.et2-lead-caption em { color: var(--muted); font-family: "Courier New", monospace; }
.et2-lead-caption b { border-top: 1px solid var(--line); color: var(--orange); }

.et2-newswire {
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #071012;
  color: var(--muted);
}

.et2-newswire strong { background: transparent; color: var(--acid); }
.et2-newswire i { color: var(--orange); }

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

.et2-library { padding: 120px 0; }

.et2-section-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.et2-section-head span { color: var(--blue); }
.et2-section-head h2 { font-size: clamp(3.4rem, 6vw, 6.5rem); }
.et2-section-head p { color: var(--muted); font-family: "Courier New", monospace; font-weight: 400; }
.et2-section-head > a { border: 1px solid var(--orange); background: transparent; color: var(--orange); box-shadow: none; }

.et2-story-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

.et2-story-card,
.et2-story-1,
.et2-story-2,
.et2-story-3 {
  grid-column: auto;
  margin-top: 0;
  border: 1px solid var(--line);
  background: rgba(9,17,22,.82);
  box-shadow: none;
}

.et2-story-card:hover { border-color: var(--blue); box-shadow: 0 0 28px rgba(22,189,165,.1); transform: translateY(-4px); }

.et2-story-index {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #071012;
  color: var(--acid);
}

.et2-story-cover { aspect-ratio: 16 / 13; border-bottom: 1px solid var(--line); background: #0b171a; }

.et2-story-copy,
.et2-story-1 .et2-story-copy,
.et2-story-2 .et2-story-copy,
.et2-story-3 .et2-story-copy {
  min-height: 280px;
  padding: 26px;
  background: transparent;
}

.et2-story-copy small { color: var(--blue); }
.et2-story-copy strong { font-size: clamp(2rem, 3.2vw, 3.8rem); }
.et2-story-copy em { color: var(--muted); font-family: "Courier New", monospace; font-weight: 400; }
.et2-story-copy b { color: var(--orange); }

.et2-game {
  grid-template-columns: minmax(500px, 1.1fr) minmax(360px, .9fr);
  border: 1px solid var(--blue);
  background: #061012;
  box-shadow: 0 0 50px rgba(22,189,165,.08);
}

.et2-game-screen { border-right: 1px solid var(--blue); background: #061417; }
.et2-screen-bar { border-bottom: 1px solid var(--blue); background: #0b201f; color: var(--acid); }

.et2-screen-body {
  background: #071417;
  background-image:
    linear-gradient(rgba(22,189,165,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,189,165,.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.et2-pixel-moon { border: 1px solid var(--acid); background: rgba(199,255,91,.12); box-shadow: 0 0 38px rgba(199,255,91,.25); }
.et2-pixel-figure { border: 1px solid var(--blue); filter: hue-rotate(110deg) saturate(.55); }

.et2-choice-box { border: 1px solid var(--blue); background: rgba(3,9,11,.94); box-shadow: none; }
.et2-choice-box small { color: var(--blue); }
.et2-choice-box span { color: var(--acid); }

.et2-game-copy { padding: clamp(42px, 6vw, 82px); background: #0a1115; }
.et2-game-copy h2 { color: var(--ink); font-size: clamp(4rem, 7vw, 7.6rem); letter-spacing: -.07em; }
.et2-game-copy > p:not(.et2-kicker) { color: var(--muted); font-family: "Courier New", monospace; font-weight: 400; }
.et2-game-copy li { border-top: 1px solid var(--line); color: var(--blue); }
.et2-vertical-word { color: rgba(22,189,165,.07); }

.et2-membership {
  margin-top: 120px;
  margin-bottom: 120px;
  border: 1px solid var(--orange);
  padding: clamp(42px, 6vw, 80px);
  background: rgba(24,12,12,.5);
  box-shadow: none;
}

.et2-membership::before {
  content: "SECURE MEMBER CHANNEL";
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--orange);
  font-size: .55rem;
  letter-spacing: .17em;
}

.et2-membership p { color: var(--muted); font-family: "Courier New", monospace; font-weight: 400; }
.et2-membership-stamp { top: -16px; border: 1px solid var(--orange); background: #100a0b; color: var(--orange); box-shadow: none; font-family: "Courier New", monospace; font-size: .72rem; }

.inner-hero { width: min(1280px, calc(100% - 56px)); border-bottom: 1px solid var(--line); }
.inner-hero h1 { font-size: clamp(4rem, 8vw, 8.4rem); }
.back-link, .back-link::before { color: var(--blue); }

.archive-filters a,
.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 {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.archive-card:hover { border-color: var(--blue); box-shadow: 0 0 24px rgba(22,189,165,.08); transform: translateY(-3px); }
.archive-cover { border-bottom: 1px solid var(--line); }
.archive-cover-badge, .release-label, .tag, .status-pill { border: 1px solid var(--blue); background: #071312; color: var(--acid); }
.archive-button, .release-button { border: 1px solid var(--blue); background: var(--blue); color: #03100f; box-shadow: none; }
.faq-question { background: #0b191b; color: var(--ink); }

.reader-title { border-bottom: 1px solid var(--line); }
.reader-locked-page { border: 1px solid var(--orange); background: #160d0f; box-shadow: none; }
.reader-locked-page a, .comment-locked a { border: 1px solid var(--orange); background: var(--orange); color: #130504; box-shadow: none; }
.reader-page-image, .reader-placeholder-page { border: 1px solid var(--line); box-shadow: none; }

.et-build-placeholder { border: 1px solid var(--blue); background: #071417; box-shadow: 0 0 42px rgba(22,189,165,.08); }
.et-build-orbit { border: 1px solid var(--blue); }
.et-build-orbit::before, .et-build-orbit::after { border: 1px solid var(--orange); }
.et-build-status { border: 1px solid var(--acid); background: #0d170e; color: var(--acid); }

.age-gate { background: rgba(2,6,7,.97); backdrop-filter: blur(8px); }
.age-panel { border: 1px solid var(--blue); background: #071014; box-shadow: 0 0 60px rgba(22,189,165,.12); }
.age-panel h2 { font-family: "Arial Narrow", Arial, sans-serif; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #04090b;
  color: var(--muted);
}

.site-footer p,
.site-footer .footer-disclaimer { color: var(--muted); }
.footer-social { border: 1px solid var(--blue); background: transparent; color: var(--acid); }

@media (max-width: 1020px) {
  .et2-cover-grid { grid-template-columns: 1fr; }
  .et2-lead { border-top: 1px solid var(--line); border-left: 0; }
  .et2-story-grid { grid-template-columns: repeat(2, 1fr); }
  .et2-story-card:last-child { grid-column: 1 / -1; }
  .et2-game { grid-template-columns: 1fr; }
  .et2-game-screen { border-right: 0; border-bottom: 1px solid var(--blue); }
}

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

  .top-action::after { display: none; }
  .et2-cover { padding-top: 50px; }
  .et2-masthead h1 { flex-direction: column; align-items: flex-start; margin-bottom: 26px; padding-bottom: 24px; font-size: clamp(3.6rem, 20vw, 6.2rem); }
  .et2-masthead h1 span:last-child { align-self: flex-end; }
  .et2-intro { padding: 30px 22px 58px; }
  .et2-intro h2 { font-size: 2.6rem; }
  .et2-data { grid-template-columns: 1fr; }
  .et2-data div + div { border-top: 1px solid var(--line); border-left: 0; }
  .et2-lead { grid-template-columns: 1fr; min-height: 0; }
  .et2-lead-art { min-height: 470px; border-right: 0; border-bottom: 1px solid var(--line); }
  .et2-newswire { justify-content: flex-start; overflow-x: hidden; }
  .et2-story-grid { grid-template-columns: 1fr; }
  .et2-story-card:last-child { grid-column: auto; }
  .et2-story-cover { aspect-ratio: 4 / 3; }
  .et2-story-copy { min-height: 230px; }
  .et2-membership { padding: 64px 22px 34px; }
}
