/* ==========================================================================
   Verdict / consequence / ending · Art direction v2
   “冷库夜班事故档案”：暖纸裁决书、暗桌账簿、纸质回执、深色运行存档。
   Loaded after style.css + art-v2.css. Visual overrides only; no logic.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Shared paper surfaces
   -------------------------------------------------------------------------- */
.verdict-hero,
.consequence-review,
.ending-main {
  color: var(--ink);
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(255, 255, 255, 0.36), transparent 54%),
    repeating-linear-gradient(0deg, rgba(70, 60, 40, 0.020) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, var(--paper), var(--paper-2));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.50),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -34px 70px rgba(96, 78, 48, 0.09);
}

.verdict-hero::after,
.ending-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.verdict-hero > *,
.ending-main > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   1. Verdict — the ruling sheet
   -------------------------------------------------------------------------- */
.verdict {
  width: min(1320px, 100%);
  padding: 2px 0 42px;
}

.verdict-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 40px;
  align-items: end;
  padding: 34px 40px 30px;
  border: 0;
  overflow: hidden;
  animation: riseIn 0.45s var(--ease-out) both;
}

.verdict-hero[data-outcome="wrong"],
.verdict-hero[data-outcome="unknown"] {
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(255, 255, 255, 0.34), transparent 54%),
    repeating-linear-gradient(0deg, rgba(70, 60, 40, 0.020) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, var(--bg-subtle), var(--line));
}

.verdict-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verdict-hero__eyebrow span:nth-child(2) {
  color: var(--ink-3);
  opacity: 0.62;
}

.verdict-hero__title {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(60px, 5.6vw, 80px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.verdict-hero[data-outcome="wrong"] .verdict-hero__title,
.verdict-hero[data-outcome="unknown"] .verdict-hero__title {
  color: var(--ink);
}

.verdict-hero__chain {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  max-width: 60ch;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(28, 32, 36, 0.22);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-hero__chain b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.verdict-hero[data-outcome="wrong"] .verdict-hero__chain b {
  color: #8a5418;
}

.verdict-hero__sub {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.62;
}

.verdict-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
}

.verdict-breakdown__term {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid rgba(28, 32, 36, 0.20);
  background: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-breakdown__term:first-child {
  padding-left: 0;
}

.verdict-breakdown__term:last-child {
  padding-right: 0;
  border-right: 0;
}

.verdict-breakdown__term b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.verdict-hero__score {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 34px;
  border-left: 1px solid rgba(28, 32, 36, 0.24);
}

.verdict-hero__score-label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verdict-hero__score-value {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(72px, 6.6vw, 92px);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.verdict-hero__score-value.is-plus {
  color: var(--primary-text);
}

.verdict-hero__score-note {
  max-width: 24ch;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.55;
}

/* Filing stamp, part of the ruling sheet */
.verdict-hero__score::after {
  content: "已裁决 · 成立";
  align-self: flex-start;
  display: inline-block;
  margin-top: 16px;
  padding: 6px 11px 5px;
  border: 2px solid rgba(156, 55, 42, 0.68);
  color: rgba(156, 55, 42, 0.86);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  line-height: 1;
  transform: rotate(-3.2deg);
  transform-origin: left center;
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.verdict-hero[data-outcome="wrong"] .verdict-hero__score::after {
  content: "已裁决 · 偏差";
  border-color: rgba(138, 84, 24, 0.66);
  color: rgba(115, 68, 18, 0.88);
}

.verdict-hero[data-outcome="unknown"] .verdict-hero__score::after {
  content: "待复核 / PENDING";
  border-color: rgba(60, 74, 74, 0.52);
  color: rgba(60, 74, 74, 0.82);
}

/* --- Ledger + margin notes --- */
.verdict-body {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
  margin-top: 38px;
}

.judge-panel,
.review-panel {
  min-width: 0;
  border: 0;
  background: transparent;
}

.judge-panel__head,
.review-panel__head {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
}

.judge-panel__head .panel-label,
.review-panel__head .panel-label {
  color: var(--fg-2);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.judge-panel__head .panel__meta,
.review-panel__head .panel__meta {
  color: var(--fg-3);
  font-size: 8.5px;
  letter-spacing: 0.10em;
}

.judge-list {
  display: flex;
  flex-direction: column;
}

.judge-line {
  grid-template-columns: 76px minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: start;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--line-soft);
}

.judge-line:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.judge-line__code {
  padding-top: 2px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  line-height: 1.6;
}

.judge-line__title {
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.judge-line__slot {
  margin-top: 7px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.judge-line__slot b {
  font-weight: 600;
}

.judge-line__slot b.is-support {
  color: var(--cold);
}

.judge-line__slot b.is-contradict {
  color: var(--danger);
}

.judge-line__slot b.is-noise {
  color: var(--warn);
}

.judge-line__slot b.is-neutral {
  color: var(--fg-2);
}

.judge-line__slot-points {
  margin-left: 5px;
  color: var(--fg-3);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.judge-line__slot-points.is-plus {
  color: var(--supply);
}

.judge-line__slot-points.is-minus {
  color: var(--danger);
}

.judge-line__why {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.judge-line__side {
  align-items: flex-end;
  padding-top: 3px;
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  line-height: 1.4;
  white-space: nowrap;
}

.role::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  flex: 0 0 auto;
}

.role--support {
  color: var(--cold);
  border: 0;
  background: none;
}

.role--contradict {
  color: var(--danger);
  border: 0;
  background: none;
}

.role--noise {
  color: var(--warn);
  border: 0;
  background: none;
}

.role--neutral {
  color: var(--fg-3);
  border: 0;
}

.judge-line__points {
  color: var(--fg-3);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.judge-line__points.is-plus {
  color: var(--supply);
}

.judge-line__points.is-minus {
  color: var(--danger);
}

.judge-line--skipped {
  grid-template-columns: minmax(0, 1fr);
  padding: 11px 0 11px 94px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  opacity: 0.46;
}

.judge-line--skipped .judge-line__title {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* --- Hypothesis margin column --- */
.review-panel {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.review-panel__head {
  border-bottom-color: var(--line-strong);
}

.review-list {
  display: flex;
  flex-direction: column;
}

.review-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row__mark {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-color: var(--ghost);
  border-radius: 50%;
  color: transparent;
}

.review-row__mark .icon {
  width: 9px;
  height: 9px;
}

.review-row__label {
  color: var(--fg-3);
  font-size: 12px;
  line-height: 1.52;
}

.review-row.is-correct {
  background: linear-gradient(90deg, rgba(62, 99, 221, 0.075), transparent 82%);
}

.review-row.is-correct .review-row__mark {
  border-color: var(--cold);
  background: var(--cold);
  color: #041210;
}

.review-row.is-correct .review-row__label {
  color: var(--cold-bright);
  font-weight: 600;
}

.review-row.is-picked-wrong .review-row__mark {
  border-color: rgba(255, 107, 94, 0.55);
  color: var(--danger);
}

.review-row.is-picked-wrong .review-row__label {
  color: #dba6a1;
}

.review-row__tag {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.review-row.is-correct .review-row__tag {
  color: var(--cold);
}

.review-row.is-picked-wrong .review-row__tag {
  color: var(--danger-dim);
}

.explain {
  margin: 22px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: none;
}

.explain__label {
  color: var(--cold-dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.explain p {
  margin-top: 8px;
  color: var(--fg-3);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --- Decision cards --- */
.actions-block {
  margin-top: 50px;
}

.actions-head {
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.actions-head .eyebrow {
  color: var(--cold);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.actions-head__title {
  margin-top: 8px;
  color: var(--fg);
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.actions-head__note {
  max-width: 38ch;
  color: var(--fg-3);
  font-size: 10.5px;
  line-height: 1.55;
}

.action-grid {
  gap: 16px;
  margin-top: 0;
  counter-reset: actioncard;
}

.action-card {
  counter-increment: actioncard;
  min-height: 252px;
  padding: 22px 22px 20px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 58%);
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.action-card::before {
  content: "0" counter(actioncard);
  position: absolute;
  top: 40px;
  right: 16px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 98px;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0.035;
  pointer-events: none;
}

.action-card:hover {
  border-top-color: var(--line-bright);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 62%);
}

.action-card.is-selected {
  border-color: rgba(62, 99, 221, 0.50);
  background: linear-gradient(180deg, rgba(62, 99, 221, 0.075), rgba(62, 99, 221, 0.012) 68%);
  box-shadow: inset 0 0 0 1px rgba(62, 99, 221, 0.20);
}

.action-card__top {
  position: relative;
  z-index: 1;
  align-items: baseline;
}

.action-card__index {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.risk {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.risk::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: currentColor;
}

.risk--low {
  color: var(--supply);
  border: 0;
}

.risk--medium {
  color: var(--warn);
  border: 0;
}

.risk--high {
  color: var(--danger);
  border: 0;
}

.action-card__label {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  margin-top: 20px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.015em;
}

.action-card__detail {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin-top: 10px;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.65;
}

.action-card__foot {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.action-card__minutes {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: normal;
}

.action-card__pick {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    color 0.18s var(--ease-out),
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.action-card__pick:hover {
  border-color: var(--cold);
  color: var(--cold-bright);
  background: rgba(62, 99, 221, 0.05);
}

.action-card.is-selected .action-card__pick {
  border-color: var(--cold);
  background: var(--cold);
  color: #041210;
}

/* Confirmation slip (paper CTA bar) */
.action-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 18px 24px;
  border: 0;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.34), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.action-confirm[hidden] {
  display: none !important;
}

.action-confirm__text {
  max-width: 72ch;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.action-confirm__text b {
  color: var(--ink);
  font-weight: 600;
}

.action-confirm__actions {
  gap: 10px;
}

.action-confirm .btn {
  min-height: 44px;
  font-size: 11px;
}

.action-confirm .btn--primary {
  min-height: 52px;
  padding: 0 30px;
  font-size: 12px;
}

.action-confirm .btn--quiet {
  border-color: rgba(28, 32, 36, 0.28);
  background: transparent;
  color: var(--ink-2);
}

.action-confirm .btn--quiet:hover {
  border-color: var(--ink-2);
  background: rgba(28, 32, 36, 0.05);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. Consequence — field log + receipt + vertical state delta
   -------------------------------------------------------------------------- */
.consequence {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(48px, 5vw, 84px);
  align-items: stretch;
  width: min(1240px, 100%);
  min-height: 100%;
  padding: clamp(20px, 3vh, 34px) 0 40px;
}

.consequence-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  animation: riseIn 0.5s var(--ease-out) both;
}

.consequence .eyebrow {
  color: var(--cold);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.consequence-title {
  max-width: 16ch;
  margin-top: 14px;
  color: var(--fg);
  font-size: clamp(46px, 4.5vw, 62px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.consequence-action {
  position: relative;
  margin-top: 30px;
  padding: 22px 0 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-soft);
}

.consequence-action::before {
  content: "ACTION RECEIPT";
  position: absolute;
  top: 24px;
  right: 0;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.consequence-action__label {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consequence-action__title {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.consequence-action__meta {
  gap: 10px 18px;
  margin-top: 13px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.consequence-action__meta .icon {
  width: 11px;
  height: 11px;
  color: var(--cold-dim);
}

.type-lines {
  max-width: 62ch;
  min-height: 0;
  margin-top: 30px;
  outline: none;
}

.type-line {
  min-height: 0;
  margin-bottom: 16px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.005em;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.type-line:first-child {
  color: var(--fg);
}

.type-line:last-child {
  margin-bottom: 0;
}

.type-caret {
  width: 5px;
  height: 17px;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--cold);
}

.type-lines:focus-visible {
  outline: 2px solid var(--cold);
  outline-offset: 4px;
}

.type-lines__skip {
  margin-top: 16px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.consequence-cta {
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 44px;
}

.consequence-cta .btn--primary {
  min-width: 222px;
  min-height: 52px;
  padding: 0 30px;
  font-size: 12px;
}

.consequence-cta__hint {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.consequence-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: riseIn 0.5s 0.1s var(--ease-out) both;
}

/* The review panel becomes a warm paper receipt */
.consequence-review {
  order: 2;
  margin-top: 34px;
  margin-bottom: 0;
  padding: 22px 22px 20px;
  border: 0;
  transform: rotate(-0.35deg);
}

.consequence-review__head {
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(28, 32, 36, 0.20);
}

.consequence-review .panel-label {
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.consequence-review__aligned {
  color: var(--primary-text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: normal;
  text-align: right;
}

.consequence-review__aligned.is-ok {
  color: var(--primary-text);
}

.consequence-review__aligned.is-miss {
  color: #91601d;
}

.consequence-review__aligned-note {
  display: block;
  margin-top: 3px;
  margin-left: 0;
  color: var(--ink-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.consequence-review__reason {
  padding: 12px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.62;
}

.consequence-review__score {
  gap: 6px 14px;
  margin-top: 13px;
  padding: 11px 0 0;
  border-top: 1px solid rgba(28, 32, 36, 0.16);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.consequence-review__score b {
  color: var(--ink);
  font-weight: 600;
}

/* Vertical state delta under the receipt */
.delta-panel {
  order: 1;
  border: 0;
  background: transparent;
}

.delta-panel__head {
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line-strong);
}

.delta-panel .panel-label {
  color: var(--fg-2);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.delta-panel .panel__meta {
  color: var(--fg-3);
  font-size: 8.5px;
}

.delta-list {
  padding: 0;
}

.delta-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.delta-row:last-child {
  border-bottom: 0;
}

.delta-row__label {
  align-items: baseline;
  gap: 8px;
}

.delta-row__name {
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.delta-row__code {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.delta-row__values {
  gap: 8px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.delta-row__before {
  color: var(--fg-3);
  font-size: 16px;
}

.delta-row__arrow {
  color: var(--ghost);
  font-size: 10px;
}

.delta-row__after {
  color: var(--fg);
  font-size: 26px;
}

.delta-row__delta {
  grid-column: 2;
  justify-self: end;
  margin-top: -1px;
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.delta-row__delta.is-up {
  color: var(--supply);
}

.delta-row__delta.is-down {
  color: var(--danger);
}

.delta-row__track {
  height: 2px;
  margin-top: 7px;
  background: rgba(255, 255, 255, 0.065);
}

.delta-row__fill {
  background: var(--stat-color, var(--cold));
  opacity: 0.66;
}

.consequence-note {
  order: 3;
  margin-top: 22px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--fg-3);
  font-size: 10.5px;
  line-height: 1.7;
}

.consequence-note b {
  color: var(--fg-2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Ending — warm paper incident report + dark run file
   -------------------------------------------------------------------------- */
.ending {
  width: min(1340px, 100%);
  padding: 2px 0 40px;
}

.ending-grid {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: start;
  padding-top: 8px;
}

.ending-main {
  position: relative;
  min-width: 0;
  padding: 46px 52px 42px;
  animation: endingIn 1.1s var(--ease-out) both;
}

.ending-main > * {
  position: relative;
  z-index: 1;
}

.ending-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-right: 168px;
}

.ending-code {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

/* The tier chip becomes the oversized rating stamp */
.ending-main .tier {
  position: absolute;
  top: 34px;
  right: 40px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  height: auto;
  padding: 10px 18px 12px;
  border: 2px solid rgba(156, 55, 42, 0.66);
  background: transparent;
  color: rgba(156, 55, 42, 0.84);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  line-height: 1;
  transform: rotate(-3.4deg);
  mix-blend-mode: multiply;
}

.ending-main .tier b {
  color: inherit;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.ending-main .tier--muted {
  border-color: rgba(28, 32, 36, 0.34);
  color: rgba(60, 74, 74, 0.82);
}

.ending-main .tag {
  height: auto;
  padding: 3px 7px;
  border: 1px solid rgba(28, 32, 36, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: 0.10em;
}

.ending-main .tag--cold {
  border-color: rgba(58, 91, 199, 0.42);
  color: var(--primary-text);
  background: transparent;
}

.ending-main .tag--warn {
  border-color: rgba(145, 96, 29, 0.42);
  color: #91601d;
  background: transparent;
}

.ending-main .tag--danger {
  border-color: rgba(156, 55, 42, 0.42);
  color: #9c372a;
  background: transparent;
}

.ending-main .tag--supply {
  border-color: rgba(62, 99, 221, 0.42);
  color: var(--primary-text);
  background: transparent;
}

.ending-main .tag--neutral {
  color: var(--ink-3);
}

.ending-title {
  max-width: 12ch;
  margin-top: 18px;
  padding-right: 120px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(62px, 5.7vw, 80px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

.ending-title::after {
  width: 62px;
  height: 3px;
  margin-top: 20px;
  background: var(--ink);
  opacity: 0.82;
}

.ending-reason {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.68;
}

.ending-text {
  display: grid;
  gap: 14px;
  max-width: 62ch;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.ending-text p {
  margin: 0;
}

.ending-text p:first-child {
  color: var(--ink);
}

.ending-epilogue {
  max-width: 62ch;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 32, 36, 0.22);
  color: #7a3b2d;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.01em;
}

.ending-epilogue::before,
.ending-epilogue::after {
  color: var(--ink-3);
}

.ending-ai {
  max-width: 62ch;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed rgba(28, 32, 36, 0.34);
  background: rgba(231, 168, 92, 0.10);
}

.ending-ai__head {
  color: #91601d;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.10em;
}

.ending-ai p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.ending-main .tag--gen {
  border-color: rgba(145, 96, 29, 0.42);
  color: #91601d;
  background: transparent;
}

.ending-main .gen-model {
  color: var(--ink-3);
}

/* Three-act index */
.acts-block {
  margin-top: 38px;
  border: 0;
  border-top: 1px solid rgba(28, 32, 36, 0.24);
  background: transparent;
}

.acts-head {
  padding: 13px 0 12px;
  border-bottom: 1px solid rgba(28, 32, 36, 0.16);
}

.acts-head .panel-label,
.acts-head .panel__meta {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.acts-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.act-row {
  min-width: 0;
  padding: 18px 20px 16px 0;
}

.act-row + .act-row {
  border-left: 1px solid rgba(28, 32, 36, 0.16);
  padding-left: 20px;
}

.act-row:last-child {
  padding-right: 0;
}

.act-row__top {
  align-items: baseline;
}

.act-row__code {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.act-row__scene {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.act-row__hypo {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.act-row__foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(28, 32, 36, 0.16);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.act-row__foot b {
  color: var(--ink-2);
  font-weight: 500;
}

/* Share + disclaimer, on paper */
.ending-share {
  margin-top: 30px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(28, 32, 36, 0.22);
  background: none;
}

.ending-share__line {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.ending-share__next {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: normal;
}

.ending-share .btn--quiet {
  min-height: 44px;
  padding: 0 18px;
  border-color: rgba(28, 32, 36, 0.30);
  background: transparent;
  color: var(--ink-2);
  font-size: 10.5px;
}

.ending-share .btn--quiet:hover {
  border-color: var(--ink-2);
  background: rgba(28, 32, 36, 0.05);
  color: var(--ink);
}

.ending-disclaimer {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.6;
}

/* --- Dark run file --- */
.ending-aside {
  min-width: 0;
  animation: riseIn 0.6s 0.18s var(--ease-out) both;
}

.run-file {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(62, 99, 221, 0.035), transparent 32%),
    linear-gradient(180deg, var(--surface), #ffffff);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38);
}

.run-file__head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-strong);
}

.run-file__head .panel-label {
  color: var(--fg-2);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.run-file__head .tag {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.run-file__score {
  align-items: flex-end;
  padding: 24px 20px 20px;
}

.score-total {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.score-total small {
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.score-total__label {
  margin-top: 10px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.rank {
  width: 78px;
  height: 92px;
  border: 1px solid rgba(231, 168, 92, 0.55);
  background: transparent;
}

.rank span {
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.rank b {
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.score-breakdown {
  padding: 0 20px 14px;
}

.score-row {
  padding: 10px 0 11px;
  border-top: 1px solid var(--line-soft);
}

.score-row__label {
  color: var(--fg-3);
  font-size: 11px;
}

.score-row__value {
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.score-row__track {
  height: 1px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.score-row__fill {
  background: var(--cold);
  opacity: 0.55;
}

.run-meta {
  padding: 2px 20px 16px;
}

.run-meta__row {
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

.run-meta__row span {
  color: var(--fg-3);
  font-size: 9.5px;
  white-space: nowrap;
}

.run-meta__row b {
  min-width: 0;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: right;
  overflow-wrap: anywhere;
}

.run-meta__row b.is-accent {
  color: var(--cold);
}

.run-actions {
  gap: 9px;
  padding: 0 20px 20px;
}

.run-actions .btn {
  height: 46px;
  font-size: 11.5px;
}

.run-actions .btn--primary {
  height: 54px;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */

/* Desktop consequence: the review slip spans the full width and fills the
   lower band, so the left column never ends in a dead corner. */
@media (min-width: 1001px) {
  .consequence {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "eyebrow delta"
      "title delta"
      "action delta"
      "body delta"
      "skip delta"
      "review review"
      "cta note";
    align-items: start;
    row-gap: 0;
    animation: riseIn 0.5s var(--ease-out) both;
  }

  .consequence-main,
  .consequence-side {
    display: contents;
  }

  .consequence .eyebrow { grid-area: eyebrow; }
  .consequence-title { grid-area: title; }
  .consequence-action { grid-area: action; }
  .type-lines { grid-area: body; }
  .type-lines__skip { grid-area: skip; }

  .consequence-cta {
    grid-area: cta;
    margin-top: 24px;
    padding-top: 0;
  }

  .consequence-note {
    grid-area: note;
    order: 0;
    align-self: start;
    margin-top: 24px;
  }

  .delta-panel {
    grid-area: delta;
    order: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .delta-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .consequence-review {
    grid-area: review;
    order: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    column-gap: 30px;
    align-items: start;
    margin-top: 30px;
    padding: 20px 24px 21px;
    transform: none;
  }

  .consequence-review__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 0;
    border-bottom: 0;
  }

  .consequence-review__aligned {
    text-align: left;
  }

  .consequence-review__reason {
    margin: 0;
    padding: 0 0 0 24px;
    border-left: 1px solid rgba(28, 32, 36, 0.16);
  }

  .consequence-review__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0 0 0 24px;
    border-top: 0;
    border-left: 1px solid rgba(28, 32, 36, 0.16);
  }
}

@media (max-width: 1180px) {
  .verdict-hero {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 26px;
    padding: 30px 32px 28px;
  }

  .verdict-hero__title {
    font-size: clamp(50px, 5.2vw, 66px);
  }

  .verdict-hero__score {
    padding-left: 24px;
  }

  .verdict-hero__score-value {
    font-size: clamp(64px, 6.6vw, 78px);
  }

  .verdict-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .judge-line {
    grid-template-columns: 62px minmax(0, 1fr) 78px;
    gap: 14px;
    padding: 16px 0 15px;
  }

  .judge-line--skipped {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 76px;
  }

  .judge-line__why {
    font-size: 12.5px;
  }

  .review-panel {
    padding-left: 24px;
  }

  .action-card {
    min-height: 236px;
    padding: 20px 18px 18px;
  }

  .action-card__label {
    font-size: 17px;
  }

  .consequence {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    row-gap: 0;
  }

  .consequence-title {
    font-size: clamp(44px, 4.6vw, 54px);
  }

  .ending-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
  }

  .ending-main {
    padding: 36px 34px 34px;
  }

  .ending-kicker {
    padding-right: 140px;
  }

  .ending-main .tier {
    top: 28px;
    right: 32px;
    padding: 8px 14px 10px;
  }

  .ending-main .tier b {
    font-size: 36px;
  }

  .ending-title {
    padding-right: 96px;
    font-size: clamp(52px, 5.6vw, 68px);
  }

  .acts-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .act-row {
    padding: 14px 0;
  }

  .act-row + .act-row {
    border-left: 0;
    border-top: 1px solid rgba(28, 32, 36, 0.16);
    padding-left: 0;
  }

  .act-row:last-child {
    padding-bottom: 0;
  }

  .act-row__hypo {
    -webkit-line-clamp: 2;
  }

  .ending-aside {
    position: static;
  }
}

@media (max-width: 1000px) {
  .verdict-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .review-panel {
    display: block;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .review-panel__head {
    border-bottom: 1px solid var(--line-strong);
  }

  .review-list {
    border-right: 0;
  }

  .explain {
    margin: 20px 0 0;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-card {
    min-height: 232px;
  }

  .consequence {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    min-height: 0;
  }

  .consequence-main,
  .consequence-side {
    display: contents;
  }

  .consequence .eyebrow { order: 1; }
  .consequence-title { order: 2; }
  .consequence-action { order: 3; }
  .type-lines { order: 4; }
  .type-lines__skip { order: 5; }
  .consequence-review { order: 6; margin-top: 30px; }
  .delta-panel { order: 7; margin-top: 30px; }
  .consequence-note { order: 8; margin-top: 20px; }
  .consequence-cta { order: 9; margin-top: 30px; padding-top: 0; }

  .ending-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .ending-aside {
    max-width: none;
  }

  .ending-main {
    padding: 32px;
  }
}

@media (max-width: 760px) {
  .action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .actions-head__note {
    max-width: none;
    text-align: left;
  }

  .action-card {
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .action-card__label {
    max-width: none;
  }

  .action-card__detail {
    max-width: none;
  }

  .action-confirm {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .action-confirm__actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .action-confirm .btn {
    width: 100%;
    min-height: 48px;
  }

  .action-confirm .btn--primary {
    min-height: 52px;
  }

  .ending-main .tier {
    position: static;
    align-self: flex-start;
    margin-top: 4px;
    transform: rotate(-2.4deg);
  }

  .ending-kicker {
    padding-right: 0;
  }

  .ending-title {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .verdict {
    padding-bottom: 30px;
  }

  .verdict-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
  }

  .verdict-hero__title {
    margin-top: 12px;
    font-size: clamp(44px, 11.5vw, 52px);
    line-height: 0.98;
  }

  .verdict-hero__chain {
    margin-top: 16px;
    font-size: 10px;
  }

  .verdict-hero__chain b {
    font-size: 11px;
  }

  .verdict-hero__sub {
    font-size: 14px;
    line-height: 1.62;
  }

  .verdict-breakdown {
    margin-top: 16px;
  }

  .verdict-breakdown__term {
    padding: 0 9px;
    font-size: 9px;
  }

  .verdict-breakdown__term:first-child {
    padding-left: 0;
  }

  .verdict-hero__score {
    width: 100%;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(28, 32, 36, 0.22);
    text-align: left;
  }

  .verdict-hero__score-value {
    font-size: 72px;
  }

  .verdict-hero__score-note {
    max-width: none;
    margin-top: 10px;
    font-size: 10px;
  }

  .verdict-hero__score::after {
    margin-top: 12px;
  }

  .verdict-body {
    margin-top: 28px;
  }

  .judge-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 16px 0 15px;
  }

  .judge-line__code {
    grid-column: 1 / -1;
    padding-top: 0;
    font-size: 9.5px;
  }

  .judge-line__title {
    font-size: 15px;
  }

  .judge-line__slot {
    font-size: 11px;
  }

  .judge-line__why {
    font-size: 14px;
    line-height: 1.55;
  }

  .judge-line__side {
    padding-top: 0;
  }

  .judge-line--skipped {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 0;
  }

  .judge-line--skipped .judge-line__title {
    font-size: 11px;
  }

  .review-panel {
    padding-top: 20px;
  }

  .review-row {
    padding: 10px 0;
  }

  .review-row__label {
    font-size: 14px;
    line-height: 1.5;
  }

  .review-row__tag {
    font-size: 8.5px;
  }

  .explain p {
    font-size: 14px;
    line-height: 1.65;
  }

  .actions-block {
    margin-top: 36px;
  }

  .actions-head__title {
    font-size: 26px;
  }

  .action-card__label {
    font-size: 18px;
  }

  .action-card__detail {
    font-size: 14px;
    line-height: 1.6;
  }

  .action-card__pick {
    height: 48px;
    font-size: 11px;
  }

  .action-confirm__text {
    font-size: 13.5px;
  }

  .consequence {
    padding-top: 16px;
    padding-bottom: 28px;
    gap: 0;
  }

  .consequence-title {
    margin-top: 10px;
    font-size: clamp(44px, 11.5vw, 52px);
    line-height: 1.02;
  }

  .consequence-action {
    margin-top: 24px;
    padding: 18px 0 16px;
  }

  .consequence-action::before {
    position: static;
    display: block;
    margin-bottom: 8px;
    font-size: 8.5px;
  }

  .consequence-action__title {
    font-size: 18px;
  }

  .consequence-action__meta {
    font-size: 9.5px;
  }

  .type-lines {
    margin-top: 24px;
  }

  .type-line {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .consequence-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    padding-top: 30px;
  }

  .consequence-cta .btn--primary {
    width: 100%;
    min-height: 52px;
  }

  .consequence-cta__hint {
    text-align: center;
  }

  .consequence-review {
    padding: 18px;
    transform: none;
  }

  .consequence-review__reason {
    font-size: 14px;
    line-height: 1.6;
  }

  .consequence-review__head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .consequence-review__aligned {
    text-align: left;
  }

  .delta-row {
    padding: 16px 0 14px;
  }

  .delta-row__values,
  .delta-row__after {
    font-size: 24px;
  }

  .delta-row__before {
    font-size: 15px;
  }

  .ending {
    padding-bottom: 28px;
  }

  .ending-grid {
    gap: 24px;
    padding-top: 2px;
  }

  .ending-main {
    padding: 22px;
  }

  .ending-main .tier {
    padding: 7px 12px 9px;
    font-size: 8px;
  }

  .ending-main .tier b {
    font-size: 34px;
  }

  .ending-title {
    margin-top: 14px;
    font-size: clamp(44px, 12vw, 52px);
    line-height: 0.98;
  }

  .ending-title::after {
    margin-top: 16px;
  }

  .ending-reason {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .ending-text {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.68;
  }

  .ending-epilogue {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 16px;
  }

  .ending-ai p {
    font-size: 14px;
    line-height: 1.62;
  }

  .acts-block {
    margin-top: 30px;
  }

  .act-row {
    padding: 14px 0;
  }

  .act-row__scene {
    font-size: 14.5px;
  }

  .act-row__hypo {
    font-size: 14px;
    line-height: 1.55;
  }

  .ending-share {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ending-share__next {
    text-align: left;
  }

  .ending-share .btn--quiet {
    width: 100%;
    min-height: 48px;
  }

  .ending-disclaimer {
    font-size: 10px;
  }

  .run-file__score {
    padding: 20px 18px 18px;
  }

  .score-total {
    font-size: 84px;
  }

  .run-file__head,
  .score-breakdown,
  .run-meta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .run-actions {
    padding: 0 18px 18px;
  }

  .run-actions .btn {
    height: 48px;
  }

  .run-actions .btn--primary {
    height: 52px;
  }

  .run-meta__row {
    gap: 12px;
  }

  .run-meta__row span {
    white-space: normal;
  }
}
