/* ============================================================
   Ship-or-Kill — Cluster Cleanup Initiative
   © 2026 TIMxAI LLC
   ============================================================ */

:root {
  --bg-0: #07091a;
  --bg-1: #0b1024;
  --bg-2: #121838;
  --ink-0: #f4f6ff;
  --ink-1: #cfd4ee;
  --ink-2: #8a91b8;
  --ink-3: #5b6390;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #f3c969;
  --gold-soft: rgba(243, 201, 105, 0.18);
  --ship: #4be3a3;
  --ship-deep: #1f9c69;
  --ship-soft: rgba(75, 227, 163, 0.16);
  --kill: #ff7a7a;
  --kill-deep: #c2434a;
  --kill-soft: rgba(255, 122, 122, 0.16);
  --focus: #f3c969;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -18px rgba(0,0,0,0.6);
  --shadow-2: 0 24px 60px -30px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.04) inset;

  --maxw: 1080px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-0: #f4f3ee;
    --bg-1: #ecead9;
    --bg-2: #ffffff;
    --ink-0: #0b0f1f;
    --ink-1: #232744;
    --ink-2: #545a7d;
    --ink-3: #8a8fa8;
    --line: rgba(11,15,31,0.10);
    --line-strong: rgba(11,15,31,0.22);
    --gold: #b78618;
    --gold-soft: rgba(183, 134, 24, 0.12);
    --ship-deep: #0e7a4f;
    --ship-soft: rgba(31, 156, 105, 0.14);
    --kill-deep: #a4262e;
    --kill-soft: rgba(194, 67, 74, 0.12);
    --shadow-1: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -16px rgba(11,15,31,0.16);
    --shadow-2: 0 28px 80px -36px rgba(11,15,31,0.28), 0 1px 0 rgba(255,255,255,0.6) inset;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: ui-serif, "Iowan Old Style", "Source Serif Pro", "Charter", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

input, select, textarea, button { font: inherit; }

::selection { background: var(--gold-soft); color: var(--ink-0); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden, .sr-live {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -40px;
  background: var(--bg-2); color: var(--ink-0);
  padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* ---------- Decision Field (canvas) ---------- */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  #field { opacity: 0.4; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0));
  backdrop-filter: blur(8px);
}

@media (prefers-color-scheme: light) {
  .topbar { background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0)); }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 12px var(--gold-soft));
}

.brand-name {
  font-size: 13px;
}

.brand-sep {
  color: var(--ink-3);
  margin: 0 4px;
}

/* Steps */
.steps ol {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.steps li.is-current {
  color: var(--ink-0);
  border-color: var(--line-strong);
  background: var(--gold-soft);
}

.steps li.is-done {
  color: var(--ink-1);
  border-color: var(--line-strong);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
}

.steps li.is-done .step-num { background: var(--gold); color: var(--bg-1); }

/* Topbar buttons */
.topbar-actions { display: flex; justify-content: flex-end; }

/* ---------- Buttons ---------- */
.primary-btn,
.ghost-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink-0);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
  text-decoration: none;
}

.primary-btn {
  background: var(--gold);
  color: #1c1404;
  border-color: var(--gold);
  box-shadow: 0 10px 30px -14px rgba(243, 201, 105, 0.6);
}

.primary-btn:hover:not(:disabled) { transform: translateY(-1px); }
.primary-btn:active:not(:disabled) { transform: translateY(0); }
.primary-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.primary-btn.ship { background: var(--ship); color: #052016; border-color: var(--ship); box-shadow: 0 10px 30px -14px rgba(75, 227, 163, 0.6); }
.primary-btn.kill { background: var(--kill); color: #2a0606; border-color: var(--kill); box-shadow: 0 10px 30px -14px rgba(255, 122, 122, 0.6); }

.ghost-btn:hover { border-color: var(--ink-2); }
.ghost-btn:active { transform: translateY(1px); }

/* ---------- Main / Phase shell ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 6vh, 80px) clamp(16px, 4vw, 36px) 64px;
}

.phase { width: 100%; display: none; }
.phase.is-active { display: block; animation: phase-in 600ms var(--ease); }

@keyframes phase-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.phase-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

.phase-head h1,
.triage-head h1,
.board-head h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-1);
  font-size: clamp(16px, 1.6vw, 19px);
}

/* ---------- Phase 1: Inbox ---------- */
.add-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-1);
}

@media (max-width: 640px) {
  .add-form { grid-template-columns: 1fr; }
  .add-form .primary-btn { justify-content: center; }
}

.add-form input[type="text"],
.add-form select {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  min-width: 0;
}

.add-form input[type="text"]::placeholder { color: var(--ink-3); }

.add-form input[type="text"]:focus,
.add-form select:focus {
  border-color: var(--gold-soft);
  background: rgba(255,255,255,0.02);
}

.add-form select { color: var(--ink-1); padding-right: 30px; }

.form-hint {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 13px;
  color: var(--kill);
}

.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.count { color: var(--ink-2); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

.inbox-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.inbox-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.inbox-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  animation: drift 7s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .inbox-card { animation: none; }
}

.inbox-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% -20%, var(--gold-soft), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.inbox-card:nth-child(2n) { animation-duration: 9s; }
.inbox-card:nth-child(3n) { animation-duration: 11s; }

@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

.inbox-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.inbox-card-name {
  font-weight: 600;
  color: var(--ink-0);
  font-size: 15px;
  word-break: break-word;
}

.inbox-card-stalled {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.inbox-card-remove {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-3);
  border-radius: 999px;
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}

.inbox-card-remove:hover { color: var(--kill); border-color: var(--kill); }

.empty-state {
  margin-top: 36px;
  text-align: center;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.empty-state.is-hidden { display: none; }

.empty-mark {
  width: 64px; height: 64px;
  color: var(--ink-3);
  animation: spin 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) { .empty-mark { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.howto {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--ink-1);
}

.howto summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.howto summary::-webkit-details-marker { display: none; }
.howto summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}

.howto[open] summary::before { content: "−"; transform: rotate(180deg); }

.howto ol {
  margin-top: 12px;
  padding-left: 22px;
  list-style: decimal;
}

.howto ol li { margin: 6px 0; color: var(--ink-1); }
.howto-foot { margin-top: 12px; color: var(--ink-2); font-size: 13px; }

/* ---------- Phase 2: Triage ---------- */
.phase-triage .phase-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.triage-head { max-width: 800px; }

.triage-item-name {
  margin-top: 18px;
  text-wrap: balance;
}

.triage-meta {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.triage-meta-pill {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}

.triage-meta-sep { color: var(--ink-3); }

.triage-countdown {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink-1);
}

.triage-countdown.is-late { color: var(--kill); }

.triage-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 760px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .triage-choices { grid-template-columns: 1fr; }
}

.choice {
  appearance: none;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow: var(--shadow-1);
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at -10% -50%, transparent, transparent);
  transition: background 0.4s var(--ease);
  pointer-events: none;
}

.choice-ship:hover,
.choice-ship:focus-visible {
  border-color: var(--ship);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -30px rgba(75, 227, 163, 0.45), var(--shadow-1);
}
.choice-ship:hover::before,
.choice-ship:focus-visible::before {
  background: radial-gradient(circle at 0% 0%, var(--ship-soft), transparent 60%);
}

.choice-kill:hover,
.choice-kill:focus-visible {
  border-color: var(--kill);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -30px rgba(255, 122, 122, 0.45), var(--shadow-1);
}
.choice-kill:hover::before,
.choice-kill:focus-visible::before {
  background: radial-gradient(circle at 100% 0%, var(--kill-soft), transparent 60%);
}

.choice-key {
  grid-row: 1 / 3;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
}

.choice-ship .choice-key { color: var(--ship); border-color: var(--ship); }
.choice-kill .choice-key { color: var(--kill); border-color: var(--kill); }

.choice-label {
  font-family: ui-serif, "Iowan Old Style", "Source Serif Pro", "Charter", Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.choice-ship .choice-label { color: var(--ship); }
.choice-kill .choice-label { color: var(--kill); }

.choice-sub { color: var(--ink-2); font-size: 14px; grid-column: 2 / 3; }

.kbd-hint {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.04em;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  color: var(--ink-1);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

/* ---------- Dialog ---------- */
.decision-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  color: var(--ink-0);
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-2);
}

.decision-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  text-align: left;
}

.dialog-head { display: flex; flex-direction: column; gap: 6px; }

.dialog-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
}
.dialog-eyebrow.ship { color: var(--ship); }
.dialog-eyebrow.kill { color: var(--kill); }

.dialog-title { font-size: 26px; }
.dialog-sub { color: var(--ink-2); }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-1);
  font-weight: 600;
}

.field-hint { font-size: 12px; color: var(--ink-3); min-height: 1.4em; }
.field-hint.is-error { color: var(--kill); }

.field input[type="text"],
.field input[type="datetime-local"],
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--ink-0);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 64px; font-family: inherit; }

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.radio-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-grid label:hover { border-color: var(--ink-2); }
.radio-grid input[type="radio"] { accent-color: var(--kill); }
.radio-grid input[type="radio"]:checked + span { color: var(--ink-0); font-weight: 600; }

.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Phase 3: Board Room ---------- */
.board-head { max-width: 800px; }
.board-summary { color: var(--ink-1); }

.board-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
}

.stat {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.stat-num {
  font-family: ui-serif, "Iowan Old Style", "Source Serif Pro", "Charter", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}
.stat-ship .stat-num { color: var(--ship); }
.stat-kill .stat-num { color: var(--kill); }
.stat-total .stat-num { color: var(--gold); }

.stat-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.board-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.speak-icon { width: 18px; height: 18px; }
.speak-icon svg { width: 100%; height: 100%; }

.board-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: outcome;
}

.outcome {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 22px;
  align-items: start;
  position: relative;
  counter-increment: outcome;
  box-shadow: var(--shadow-1);
}

.outcome::before {
  content: counter(outcome, decimal-leading-zero);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.outcome-tag {
  grid-column: 2 / 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.outcome.ship .outcome-tag { color: var(--ship); }
.outcome.kill .outcome-tag { color: var(--kill); }

.outcome-tag::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.outcome-name {
  grid-column: 2 / 3;
  font-family: ui-serif, "Iowan Old Style", "Source Serif Pro", "Charter", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 4px;
  color: var(--ink-0);
}

.outcome-body {
  grid-column: 2 / 3;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.outcome-field {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

@media (prefers-color-scheme: light) {
  .outcome-field { background: rgba(11,15,31,0.03); }
}

.outcome-field dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.outcome-field dd {
  margin: 4px 0 0;
  color: var(--ink-0);
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- Footer ---------- */
.sitefoot {
  position: relative;
  z-index: 1;
  padding: 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}

/* ---------- Speaking state ---------- */
body.is-speaking .stat-num { animation: pulse-glow 1.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 24px currentColor; }
}

.speak-btn-now { color: var(--ship); }

/* ---------- Killed card animation (used in inbox when removing) ---------- */
.inbox-card.is-shipping { animation: ship-out 600ms var(--ease) forwards; }
.inbox-card.is-killing  { animation: kill-out 500ms var(--ease) forwards; }

@keyframes ship-out {
  to { transform: translateY(-30px) scale(1.02); opacity: 0; box-shadow: 0 30px 80px -30px var(--ship); }
}
@keyframes kill-out {
  to { transform: scale(0.9) rotate(-2deg); opacity: 0; filter: blur(6px); }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; }
  #field, .topbar, .board-actions, .sitefoot, .howto, .skip-link { display: none !important; }
  .phase-board { display: block !important; }
  .outcome { break-inside: avoid; border-color: #ccc; box-shadow: none; background: #fafafa; }
  .outcome-tag { color: #444 !important; }
  .stat { background: #fff; border-color: #ccc; }
  .stat-num { color: #111 !important; }
  main { padding: 0; }
}

/* ---------- Selection helpers (high-contrast) ---------- */
@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,0.3); --line-strong: rgba(255,255,255,0.5); }
}
