*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #293040;
  --navy-deep:  #1a1f2c;
  --navy-ink:   #11151e;
  --gold:       #D2AC2D;
  --gold-deep:  #9a7e1f;
  --gold-soft:  #b4911e;
  --bluegray:   #949EB4;
  --bluegray-d: #5b6478;
  --bluegray-l: #b4bccc;
  --paper:      #f4f0e4;
  --paper-dim:  #e8e3d4;
  --paper-ink:  #1e2230;
  --paper-fade: #737886;
  --paper-rule: rgba(30,34,48,0.12);
  --crimson:    #8a2a24;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;

  --card-w: min(380px, 88vw);
  --card-h: min(540px, 72vh);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--navy-ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "kern";
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(41,48,64,0.85) 0%, var(--navy-ink) 75%),
    var(--navy-ink);
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.82  0 0 0 0 0.79  0 0 0 0 0.70  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: overlay;
  opacity: 0.45;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 199;
}

.screen {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* WELCOME — composed cover */
#welcome-screen { text-align: center; padding: 24px; }
.w-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; max-width: 420px; width: 100%;
  position: relative;
}
.w-emblem {
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  position: relative;
}
.w-emblem svg { width: 100%; height: 100%; display: block; }
.w-emblem::after {
  content: '';
  position: absolute; left: 50%; bottom: -14px;
  width: 60px; height: 1px;
  background: var(--gold-deep);
  transform: translateX(-50%);
}
.w-eyebrow {
  font-family: var(--serif); font-size: 13px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  margin-top: 22px; margin-bottom: 14px;
}
.w-title {
  font-family: var(--serif); font-weight: 600; color: var(--paper);
  line-height: 0.95; font-size: clamp(58px, 15vw, 92px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.w-title em { font-style: italic; font-weight: 500; color: var(--gold); }
.w-rule {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold-deep); margin-bottom: 18px;
  width: 100%; max-width: 300px;
}
.w-rule .line { flex: 1; height: 1px; background: var(--gold-deep); opacity: 0.6; }
.w-rule .glyph {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: var(--gold); opacity: 0.9;
}
.w-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 4.4vw, 23px); line-height: 1.35;
  color: var(--bluegray-l); max-width: 360px; font-weight: 400;
  margin-bottom: 12px;
}
.w-hint {
  font-family: var(--serif); font-size: 15px; line-height: 1.5;
  color: var(--bluegray-d); max-width: 320px; font-weight: 400;
  margin-bottom: 28px;
}
.w-imprint {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bluegray-d); margin-top: 32px;
  display: flex; align-items: center; gap: 10px;
}
.w-imprint::before, .w-imprint::after {
  content: ''; width: 20px; height: 1px;
  background: var(--bluegray-d); opacity: 0.5;
}
.w-actions { padding-top: 4px; }

.btn {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: 0.01em; padding: 13px 30px; border: none;
  cursor: pointer; background: transparent; color: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  font-style: italic;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--gold); color: var(--navy-ink);
  font-style: normal; font-weight: 600;
}
.btn-primary:hover { background: #e5bf3e; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary::after {
  content: '→'; font-style: normal; font-weight: 400;
  transition: transform 0.2s ease;
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-ghost {
  color: var(--bluegray); padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.btn-ghost:hover { color: var(--gold); border-bottom-color: var(--gold-deep); }

.btn-outline {
  color: var(--gold); border: 1px solid var(--gold-deep);
  padding: 12px 26px; font-style: normal; font-weight: 500;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(210,172,45,0.08); border-color: var(--gold); }

/* NAME */
#name-screen { gap: 0; }
.name-wrap {
  width: min(360px, 90vw);
  display: flex; flex-direction: column; gap: 22px; text-align: center;
}
.name-label {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 6.5vw, 34px); font-weight: 500;
  color: var(--paper); line-height: 1.2;
}
.name-input {
  width: 100%; font-family: var(--serif); font-size: 22px; font-style: italic;
  padding: 10px 4px; border: none; border-bottom: 1px solid var(--bluegray-d);
  background: transparent; color: var(--paper); text-align: center;
  outline: none; transition: border-color 0.2s;
}
.name-input:focus { border-bottom-color: var(--gold); }
.name-input::placeholder { color: var(--bluegray-d); font-style: italic; }
.name-hint {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--bluegray-d); line-height: 1.5;
}
.name-actions { display: flex; justify-content: center; padding-top: 8px; }

/* GAME */
#game-screen {
  background: transparent;
  justify-content: flex-start;
  padding: 0; gap: 0;
}

.panel {
  width: 100%;
  padding: 14px clamp(16px, 5vw, 28px) 10px;
  display: flex; flex-direction: column; gap: 14px; flex-shrink: 0;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: 14px;
  color: var(--bluegray); font-style: italic;
}
.panel-head .inbox-count { color: var(--gold); font-style: normal; font-weight: 600; }

.gauges {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 16px);
}
.gauge { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gauge-dial {
  width: clamp(52px, 16vw, 62px); aspect-ratio: 1; position: relative;
}
.gauge-dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gauge-track { fill: none; stroke: var(--navy); stroke-width: 6; }
.gauge-fill {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: butt;
  stroke-dasharray: 0 1000;
  transition: stroke-dasharray 0.55s cubic-bezier(.6,.05,.3,1), stroke 0.35s ease;
}
.gauge-tick { stroke: var(--bluegray-d); stroke-width: 1; }
.gauge-tick.major { stroke: var(--bluegray); }
.gauge-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(14px, 4vw, 17px); font-weight: 600;
  color: var(--paper); transition: color 0.3s ease;
}
.gauge-label {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--bluegray); text-align: center; line-height: 1;
}
.gauge.warn .gauge-fill { stroke: var(--gold); }
.gauge.danger .gauge-fill { stroke: var(--crimson); animation: dangerBlink 1.1s ease-in-out infinite; }
.gauge.danger .gauge-value { color: var(--crimson); }
.gauge.danger .gauge-label { color: var(--crimson); }
@keyframes dangerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.gauge-delta {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif); font-size: 15px; font-weight: 600; font-style: italic;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.gauge-delta.pos { color: var(--gold); }
.gauge-delta.neg { color: var(--crimson); }
.gauge-delta.show { animation: deltaRise 1.4s ease-out forwards; }
@keyframes deltaRise {
  0%   { opacity: 0; transform: translate(-50%, 6px); }
  15%  { opacity: 1; transform: translate(-50%, 0); }
  75%  { opacity: 1; transform: translate(-50%, -4px); }
  100% { opacity: 0; transform: translate(-50%, -12px); }
}

/* Card area */
.card-area {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 100%; overflow: hidden;
  padding: 0 12px clamp(40px, 8vh, 60px);
}
.card-area::before,
.card-area::after {
  content: '';
  position: absolute;
  width: var(--card-w); height: var(--card-h);
  background: var(--paper-dim);
  pointer-events: none;
  margin-bottom: clamp(40px, 8vh, 60px);
  z-index: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.card-area::before { transform: translate(-3px, 6px) rotate(-1.2deg); opacity: 0.18; }
.card-area::after  { transform: translate(4px, 12px) rotate(1.8deg); opacity: 0.08; }

.choice-band {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.18s ease; z-index: 1;
  padding: 0 clamp(14px, 5vw, 32px);
}
.choice-band.left {
  left: 0; right: 55%; justify-content: flex-start;
  background: linear-gradient(to right, rgba(210,172,45,0.22) 0%, transparent 85%);
}
.choice-band.right {
  right: 0; left: 55%; justify-content: flex-end;
  background: linear-gradient(to left, rgba(210,172,45,0.22) 0%, transparent 85%);
}
.choice-band-inner {
  display: flex; flex-direction: column; gap: 4px; max-width: 130px;
}
.choice-band.right .choice-band-inner { align-items: flex-end; text-align: right; }
.choice-band-eyebrow {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--gold);
}
.choice-band-text {
  font-family: var(--serif); font-size: clamp(20px, 5vw, 26px);
  font-weight: 600; color: var(--paper); line-height: 1.15;
}

/* CARD — email client letter */
.card {
  width: var(--card-w); height: var(--card-h);
  background: linear-gradient(180deg, var(--paper) 0%, #ede8d8 100%);
  color: var(--paper-ink);
  position: relative; z-index: 2;
  cursor: grab; touch-action: none;
  display: flex; flex-direction: column; overflow: hidden;
  will-change: transform;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 18px 40px rgba(0,0,0,0.55),
    0 4px 10px rgba(0,0,0,0.35);
  transition: box-shadow 0.2s;
}
.card:active { cursor: grabbing; }
.card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  pointer-events: none; mix-blend-mode: multiply; opacity: 0.55;
}

/* Email toolbar strip — client chrome */
.mail-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: #1e2230;
  color: var(--bluegray-l);
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.mail-toolbar-left {
  display: flex; align-items: center; gap: 8px;
}
.mail-toolbar .unread-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px rgba(210,172,45,0.6);
  flex-shrink: 0;
}
.mail-toolbar .folder { color: var(--bluegray); font-style: italic; text-transform: lowercase; letter-spacing: 0.04em; font-size: 12px; }
.mail-toolbar-right {
  display: flex; align-items: center; gap: 6px;
  color: var(--bluegray-d); font-size: 10px;
}
.mail-toolbar .msg-id { font-family: ui-monospace, 'SFMono-Regular', monospace; letter-spacing: 0.05em; }

.mail-head {
  padding: 14px 20px 14px;
  border-bottom: 1px solid var(--paper-rule);
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 7px;
  background:
    linear-gradient(180deg, rgba(210,172,45,0.04), transparent 60%);
}

.mail-sender-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 4px;
}
.mail-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px;
  letter-spacing: 0.02em;
  position: relative;
  border: 1px solid var(--gold-deep);
}
.mail-avatar::after {
  content: '';
  position: absolute; inset: 2px;
  border: 1px solid rgba(210,172,45,0.22);
  pointer-events: none;
}
.mail-sender-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.mail-sender-name {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--paper-ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-sender-role {
  font-family: var(--serif); font-size: 12px; font-style: italic;
  color: var(--paper-fade); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-date {
  font-family: var(--serif); font-size: 11px; font-style: italic;
  color: var(--paper-fade);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}

.mail-to-row {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-size: 12px;
  color: var(--paper-fade); font-style: italic;
  white-space: nowrap; overflow: hidden;
}
.mail-to-row .to-label { letter-spacing: 0.04em; flex-shrink: 0; }
.mail-to-row .to-value {
  color: var(--paper-ink); font-style: normal; font-weight: 500; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

.mail-subject {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--paper-ink); letter-spacing: -0.01em;
  line-height: 1.22; margin-top: 6px;
}
.mail-tag-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 2px;
}
.mail-tag {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  padding: 2px 8px;
  border: 1px solid rgba(154,126,31,0.5);
  background: rgba(210,172,45,0.06);
}
.mail-priority {
  font-family: var(--serif); font-size: 11px;
  font-style: italic; color: var(--paper-fade);
  letter-spacing: 0.04em;
}

.mail-consequence {
  display: none;
  align-self: flex-start;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  padding: 2px 8px;
  border: 1px solid rgba(138,42,36,0.6);
  background: rgba(138,42,36,0.05);
}
.card.consequence .mail-consequence { display: block; }
.card.consequence .mail-tag { display: none; }

.mail-body {
  flex: 1; padding: 18px 22px 14px;
  font-family: var(--serif); font-size: clamp(17px, 4.2vw, 19px);
  font-weight: 400; line-height: 1.5; color: var(--paper-ink);
  position: relative; z-index: 1; letter-spacing: -0.003em;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.mail-body-text { text-wrap: pretty; }
.mail-signature {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--paper-fade);
  margin-top: 12px;
  line-height: 1.35;
  display: flex; align-items: center; gap: 8px;
}
.mail-signature::before {
  content: '——'; font-style: normal; color: var(--paper-fade); opacity: 0.6;
  letter-spacing: -0.1em;
}

.mail-foot {
  padding: 12px 18px 14px;
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 10px;
  border-top: 1px solid var(--paper-rule);
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(30,34,48,0.02), rgba(30,34,48,0.06));
}
.mail-choice {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px 2px;
  position: relative;
}
.mail-choice.left { align-items: flex-start; text-align: left; padding-right: 8px; }
.mail-choice.right { align-items: flex-end; text-align: right; padding-left: 8px; }
.mail-choice-hint {
  font-family: var(--serif); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-fade);
  display: flex; align-items: center; gap: 6px;
  opacity: 0.75;
}
.mail-choice.right .mail-choice-hint { flex-direction: row-reverse; }
.mail-choice-hint .arr {
  font-family: var(--serif); font-size: 12px; letter-spacing: 0;
  color: var(--gold-deep); font-weight: 600;
}
.mail-choice-text {
  font-family: var(--serif); font-size: 15px; line-height: 1.2;
  font-weight: 600; color: var(--paper-ink);
  text-wrap: balance;
}
.mail-choice-divider {
  width: 1px; background: var(--paper-rule);
  flex-shrink: 0; align-self: stretch;
  position: relative;
}
.mail-choice-divider::before {
  content: '§';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--gold-deep);
  background: #ebe5d4;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

.response-toast {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(340px, 84vw);
  padding: 24px 28px;
  font-family: var(--serif);
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 400; font-style: italic;
  color: var(--paper); line-height: 1.45;
  text-align: center; opacity: 0; pointer-events: none; z-index: 5;
}
.response-toast::before, .response-toast::after {
  content: ''; position: absolute; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--gold-deep); opacity: 0.7;
}
.response-toast::before { top: 0; }
.response-toast::after  { bottom: 0; }
.response-toast.show { animation: responseIn 5s ease both; }
@keyframes responseIn {
  0%   { opacity: 0; transform: translate(-50%, -44%); }
  10%  { opacity: 1; transform: translate(-50%, -50%); }
  98%  { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -54%); }
}

.card.swiping { transition: none !important; }
.card.swipe-left {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.7, 0), opacity 0.45s ease;
  transform: translateX(-180%) translateY(-60px) rotate(-22deg) !important;
  opacity: 0;
}
.card.swipe-right {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.7, 0), opacity 0.45s ease;
  transform: translateX(180%) translateY(-60px) rotate(22deg) !important;
  opacity: 0;
}
.card.snap-back {
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) !important;
  transform: translateX(0) rotate(0deg) !important;
}
.card.entering { animation: cardDeal 0.52s cubic-bezier(0.2, 0.75, 0.3, 1) forwards; }
@keyframes cardDeal {
  0%   { opacity: 0; transform: translateY(40px) scale(0.94) rotate(1.5deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
.card.threshold-crossed {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 0 0 2px var(--gold),
    0 18px 40px rgba(0,0,0,0.55),
    0 4px 10px rgba(0,0,0,0.35);
}

/* DEFEAT */
#defeat-screen {
  justify-content: flex-start; overflow-y: auto;
  padding: clamp(40px, 8vh, 64px) 24px clamp(32px, 6vh, 48px);
  gap: 0; align-items: stretch;
}
.verdict {
  width: min(420px, 92vw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.verdict-eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--crimson);
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
}
.verdict-eyebrow::before, .verdict-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: var(--crimson); opacity: 0.5;
}
.verdict-title {
  font-family: var(--serif); font-size: clamp(42px, 10vw, 58px);
  font-weight: 700; line-height: 0.95;
  color: var(--paper); letter-spacing: -0.02em;
}
.verdict-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.verdict-text {
  font-family: var(--serif); font-size: clamp(17px, 4vw, 19px);
  line-height: 1.5; color: var(--bluegray-l); font-weight: 400;
}
.verdict-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--navy);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  margin: 8px 0;
}
.verdict-stat {
  background: var(--navy-ink); padding: 14px 8px;
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.verdict-stat-value {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.verdict-stat-label {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--bluegray);
}
.verdict-cta {
  padding: 20px 22px; border-left: 2px solid var(--gold);
  background: rgba(210,172,45,0.05);
  display: flex; flex-direction: column; gap: 16px;
}
.verdict-cta-eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--gold);
}
.verdict-cta-text {
  font-family: var(--serif); font-size: 17px;
  color: var(--paper); line-height: 1.5;
}
.verdict-cta-text em { color: var(--gold); font-style: italic; font-weight: 600; }
.verdict-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 12px; align-items: flex-start;
}

.defeat-flash {
  position: fixed; inset: 0; background: var(--crimson);
  opacity: 0; pointer-events: none; z-index: 100;
}
.defeat-flash.fire { animation: defeatFlash 0.7s ease-out forwards; }
@keyframes defeatFlash {
  0%  { opacity: 0; }
  10% { opacity: 0.35; }
  30% { opacity: 0; }
  40% { opacity: 0.15; }
  100% { opacity: 0; }
}
.screen-shake { animation: screenShake 0.45s ease; }
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-2px, 3px); }
  80% { transform: translate(3px, -1px); }
}

.stagger > * { opacity: 0; }
.screen.active .stagger > * { animation: staggerIn 0.6s cubic-bezier(0.2, 0.75, 0.3, 1) both; }
.screen.active .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.screen.active .stagger > *:nth-child(2) { animation-delay: 0.18s; }
.screen.active .stagger > *:nth-child(3) { animation-delay: 0.32s; }
.screen.active .stagger > *:nth-child(4) { animation-delay: 0.46s; }
.screen.active .stagger > *:nth-child(5) { animation-delay: 0.60s; }
.screen.active .stagger > *:nth-child(6) { animation-delay: 0.74s; }
.screen.active .stagger > *:nth-child(7) { animation-delay: 0.88s; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-height: 700px) {
  .panel { padding: 10px 14px 8px; gap: 10px; }
  .mail-head { padding: 12px 16px 10px; }
  .mail-body { padding: 12px 16px; font-size: 18px; }
  .mail-foot { padding: 10px 16px 12px; }
  .mail-subject { font-size: 17px; }
}
