.site-header,
body > footer,
.skip-link {
  display: none !important;
}

.desk-layer,
.compose-room,
.claim-builder,
.claim-builder fieldset,
.claim-builder label {
  min-width: 0;
}

/* Native select popovers can close immediately inside transformed/perspective
   ancestors. Keep the newsroom depth in its painted background, not its form. */
.newsroom {
  perspective: none;
}

.desk-layer {
  transform: none;
}

.briefing-note {
  max-width: 52rem;
  margin: 1.5rem 0 2.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--red);
  background: #fff8e8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.briefing-note b,
.claim-builder label > span,
.compose-room > label > span {
  font: 700 0.58rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-question {
  margin: 2rem 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.lead-grid > button {
  grid-template-rows: 1fr auto;
}

.lead-grid > button.requested {
  border-left: 6px solid var(--red);
  background: #d4c7ad;
  opacity: 1;
  cursor: default;
}

.lead-results {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #17171055;
}

.lead-results > .evidence-object {
  width: min(100%, 46rem);
}

.compose-help {
  max-width: 52rem;
  padding: 1rem 1.25rem;
  background: #d5c8ad;
  line-height: 1.55;
}

.claim-builder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claim-builder label {
  display: grid;
  gap: 0.35rem;
}

.compose-room input,
.compose-room select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.compose-gate {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 4px solid var(--ink);
}

@media (max-width: 1050px) {
  .claim-builder {
    grid-template-columns: 1fr;
  }
}

.story-bar {
  min-height: 68px;
  padding: 0 3vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #10100d;
  color: #f0e7d5;
  font: 700 0.62rem "DM Mono", monospace;
  letter-spacing: 0.1em;
}

.story-bar a { color: inherit; text-decoration: none; font-size: 1.1rem; }
.story-bar span { margin-left: auto; }
.story-bar button { min-height: 38px; padding: 0.5rem 0.75rem; border: 1px solid #ffffff55; background: transparent; color: inherit; }
.story-bar [data-direct] { display: none; }
.story-scene { min-height: calc(100vh - 68px); position: relative; display: grid; grid-template-columns: minmax(0, 820px) 270px; gap: 3rem; justify-content: center; align-items: center; padding: clamp(2rem, 6vw, 6rem); overflow: hidden; background: #25221a; color: #eee4d1; }
.story-atmosphere { position: absolute; inset: 0; opacity: 0.42; background: radial-gradient(circle at 80% 25%, #d1a05b88, transparent 22%), linear-gradient(145deg, transparent 45%, #000 46% 48%, transparent 49%), url('/assets/cardiff-giant.jpg') center/cover; filter: sepia(0.8) grayscale(0.45); }
.episode-2 .story-atmosphere { background: radial-gradient(circle at 20% 20%, #dfb66b77, transparent 18%), linear-gradient(115deg, #28261f 0 40%, #665841 41% 60%, #171713 61%); }
.episode-3 .story-atmosphere { background: linear-gradient(25deg, transparent 47%, #9d332b 48% 49%, transparent 50%), linear-gradient(145deg, #b9a987, #403a2e); }
.story-scene > article { position: relative; z-index: 1; padding: clamp(1.5rem, 4vw, 4rem); background: #171711ee; box-shadow: 0 25px 80px #0008; }
.story-speaker { margin: 1.5rem 0 0; color: #c49b5e; font: 700 0.65rem "DM Mono", monospace; letter-spacing: 0.12em; }
.story-scene h1 { margin: 1rem 0; max-width: 13ch; font-size: clamp(3rem, 6vw, 6.4rem); line-height: 0.9; letter-spacing: -0.055em; }
.story-body { max-width: 46rem; color: #d3c9b7; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.75; }
.story-scene h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.story-choices { display: grid; gap: 0.7rem; }
.story-choices button { width: 100%; min-height: 74px; display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border: 1px solid #ffffff33; background: #eee4d1; color: #171711; text-align: left; }
.story-choices button:hover { border-color: #c33d32; transform: translateX(4px); }
.story-choices .publish-choice { margin-top: 0.7rem; border-color: #c49b5e; background: #b13229; color: #fff8e8; }
.story-choices .publish-choice > b,.story-choices .publish-choice small { color: #f0d5a6; }
.story-choices button > b { color: #a83229; font: 700 0.65rem "DM Mono", monospace; }
.story-choices button strong,.story-choices button small { display: block; }
.story-choices button small { margin-top: 0.25rem; color: #665d50; }
.story-notebook { position: relative; z-index: 1; align-self: end; padding: 1.4rem; background: #e9dfc9; color: #171711; transform: rotate(1deg); box-shadow: 5px 12px 30px #0006; }
.story-notebook > b,.story-notebook > span { display: block; font: 700 0.58rem "DM Mono", monospace; letter-spacing: 0.08em; }
.story-notebook > span { margin: 0.4rem 0 1rem; color: #9f2d24; }
.story-notebook p { padding-top: 0.7rem; border-top: 1px solid #0003; }
.story-ending { min-height: 100vh; padding: 7vw; background: #171711; color: #eee4d1; }
.story-ending h1 { max-width: 12ch; margin: 1rem 0; font-size: clamp(3.5rem, 8vw, 8rem); line-height: 0.85; }
.story-ending > strong { color: #c49b5e; font-size: 4rem; }
.ending-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 950px; margin: 3rem 0; }
.ending-record section { padding: 1.5rem; background: #eee4d1; color: #171711; }
.story-ending button { min-height: 48px; padding: 1rem 1.4rem; border: 0; background: #a83229; color: white; }
.ending-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ending-actions a { display: inline-flex; min-height: 48px; padding: 1rem 1.4rem; align-items: center; background: #c49b5e; color: #171711; font: 700 .8rem/1.2 "DM Mono", monospace; letter-spacing: .06em; text-decoration: none; }
.ending-actions a:hover { background: #e1bf89; }
.ending-actions a:focus-visible { outline: 3px solid #eee4d1; outline-offset: 3px; }

@media (max-width: 850px) {
  .story-bar { padding: 0 0.8rem; }
  .story-bar span { display: none; }
  .story-bar a { margin-right: auto; }
  .story-scene { grid-template-columns: 1fr; align-items: start; padding: 1rem; }
  .story-scene > article { padding: 1.4rem; }
  .story-notebook { transform: none; align-self: auto; }
  .ending-record { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .story-choices button:hover { transform: none; }
}
