/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 251, 244, 0.9), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(232, 214, 190, 0.6), transparent 60%),
    var(--bg);
}
.num, .tabular, td, th, .stat-value { font-variant-numeric: tabular-nums; }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); line-height: 1.1; }
h2 { font-size: var(--fs-2xl); line-height: 1.15; }
h3 { font-size: var(--fs-xl); line-height: 1.2; }
h4 { font-size: var(--fs-md); font-weight: 650; letter-spacing: 0.01em; margin: 0; }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.warn-text { color: var(--warn); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.grow { flex: 1 1 auto; min-width: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-md); line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms var(--ease), box-shadow var(--dur);
  white-space: nowrap;
  user-select: none;
}
.btn:hover:not(:disabled) { --btn-bg: var(--paper-3); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: 0.5; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: var(--accent-press); }
.btn-primary:hover:not(:disabled) { --btn-bg: var(--accent-hover); }
.btn-primary:active:not(:disabled) { --btn-bg: var(--accent-press); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { --btn-bg: rgba(58, 38, 24, 0.07); }
.btn-danger { --btn-fg: var(--neg); }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn-sm { min-height: 32px; padding: 0 var(--s-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn .kbd { font-size: 11px; font-weight: 600; opacity: 0.75; border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--s-5); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5) 0; }
.card-head h3 { font-size: var(--fs-lg); }
.card-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.card-sub { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-4) 0; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stat-label { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; }
.stat-note { font-size: var(--fs-sm); color: var(--ink-3); }
.stat-hero .stat-value { font-size: var(--fs-3xl); }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #bcd8d4; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #ecd49b; }
.badge-neg { background: var(--neg-soft); color: var(--neg); border-color: #ebc3b0; }
.badge-gold { background: var(--gold-soft); color: #7c560b; border-color: #ebd5a0; }

/* ---------- Tables (the "well-designed spreadsheet") ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: var(--fs-md); }
.table th {
  text-align: left; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
  vertical-align: bottom;
}
.table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .table th.num { text-align: right; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.55); }
.table tr.row-muted td { color: var(--ink-3); }
.table tr.row-total td { font-weight: 700; border-top: 2px solid var(--ink-2); border-bottom: 0; }
.table tr.row-sub td { font-weight: 650; background: var(--paper-2); }
.table tr.row-indent td:first-child { padding-left: var(--s-6); }
.table-compact td, .table-compact th { padding: 6px var(--s-2); }
.cell-name { font-weight: 600; }
.cell-sub { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }

/* ---------- Inputs ---------- */
.input, .select {
  height: 38px; padding: 0 var(--s-3); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-variant-numeric: tabular-nums; min-width: 0;
}
.input:focus-visible, .select:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--accent); }
.input-sm, .select-sm { height: 32px; font-size: var(--fs-sm); }
.select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.stepper button { width: 30px; display: grid; place-items: center; color: var(--ink-2); font-weight: 700; }
.stepper button:hover { background: var(--paper-3); }
.stepper button svg { width: 14px; height: 14px; }
.stepper input { width: 70px; border: 0; text-align: center; font-weight: 650; height: 34px; background: transparent; }
.stepper input:focus-visible { outline: none; background: var(--accent-softer); }
.stepper .prefix { display: grid; place-items: center; padding-left: 6px; color: var(--ink-3); font-weight: 600; }
.stepper-wide input { width: 64px; }

/* Toggle switch (a real checkbox underneath) */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch .track {
  width: 44px; height: 26px; border-radius: var(--r-pill); background: #d9ccb8; position: relative;
  transition: background var(--dur) var(--ease); flex: none;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform var(--dur) var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.switch input:disabled + .track { opacity: 0.45; }
.switch .switch-label { font-size: var(--fs-sm); font-weight: 600; }

/* Segmented control */
.seg { display: inline-flex; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg button { min-height: 32px; padding: 0 var(--s-3); border-radius: 7px; font-weight: 650; font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button svg { width: 15px; height: 15px; }

/* Shift chips (schedule grid) */
.shift-chip {
  width: 100%; min-width: 34px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 700;
  border: 1px dashed var(--line-strong); color: var(--ink-3); background: transparent;
}
.shift-chip[aria-pressed='true'] { background: var(--accent); color: #fff; border: 1px solid var(--accent-press); }
.shift-chip:hover { border-style: solid; }

/* ---------- Meters ---------- */
.meter { height: 8px; border-radius: var(--r-pill); background: #eadfcf; overflow: hidden; position: relative; }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
.meter.meter-gold > span { background: var(--gold); }
.meter.meter-neg > span { background: var(--neg); }
.meter.meter-ink > span { background: var(--ink-2); }
.meter-thin { height: 5px; }
.skillbar { display: grid; grid-template-columns: 74px 1fr 26px; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--ink-2); }

/* ---------- Glossary terms ---------- */
.term {
  display: inline; font: inherit; color: inherit; text-decoration: underline dotted rgba(42, 28, 18, 0.55);
  text-underline-offset: 3px; cursor: help; padding: 0;
}
.term:hover { text-decoration-color: var(--accent); color: var(--accent-ink); }
.popover {
  position: fixed; z-index: 90; max-width: 300px; padding: var(--s-3) var(--s-4);
  background: var(--walnut-800); color: var(--cream); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); line-height: 1.45; pointer-events: none;
}
.popover strong { display: block; color: #fff; margin-bottom: 2px; }
/* Terms not read yet: a small dot, and a soft tint that fades once read */
.term-new { background: linear-gradient(transparent 62%, rgba(242, 180, 65, 0.28) 62%); border-radius: 2px; }
.term-new::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 3px; vertical-align: 0.45em;
  border-radius: 50%; background: #d8962a; box-shadow: 0 0 0 2px rgba(216, 150, 42, 0.2);
}
/* The term popup can be hovered into and clicked, unlike a plain tooltip */
.term-pop { pointer-events: auto; max-width: 320px; }
.term-pop-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: 2px; }
.term-pop-head strong { margin: 0; }
.term-pop-new { flex: none; font-size: var(--fs-xs); font-weight: 700; color: #f2b441; letter-spacing: 0.02em; }
.term-pop-links { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid rgba(255, 244, 228, 0.14); font-size: var(--fs-xs); }
.term-pop .link-btn { color: #8fe3e8; }
.term-pop .link-btn:hover { color: #fff; }
.term-pop .muted { color: rgba(247, 238, 223, 0.6); }

/* ---------- First-day tips ---------- */
.tip {
  position: fixed; z-index: 75; width: min(320px, calc(100vw - 16px)); padding: var(--s-3) var(--s-4) var(--s-3);
  background: var(--paper); color: var(--ink); border: 2px solid var(--accent); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); line-height: 1.5;
}
.tip::before {
  content: ''; position: absolute; left: var(--arrow-x, 24px); width: 12px; height: 12px; background: var(--paper);
  border: 2px solid var(--accent); transform: rotate(45deg);
}
.tip[data-side='below']::before { top: -8px; border-right: 0; border-bottom: 0; }
.tip[data-side='above']::before { bottom: -8px; border-left: 0; border-top: 0; }
.tip-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.tip p { margin: 4px 0 var(--s-3); }
.tip-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.tip-actions .link-btn { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.tip-target { outline: 3px solid rgba(21, 100, 110, 0.55); outline-offset: 3px; border-radius: var(--r-md); }
@media (prefers-reduced-motion: no-preference) {
  :root:not(.reduce-motion) .tip { animation: tip-in 220ms var(--ease) both; }
}
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } }
/* Guide: like a tip, but it points at the control with a pulsing ring */
.tip.guide { border-color: #d8962a; width: min(340px, calc(100vw - 16px)); }
.tip.guide::before { border-color: #d8962a; }
.tip.guide .tip-eyebrow { color: #8a5a08; }
.guide-title { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; margin-top: 2px; }
.guide-target { outline: 3px solid #f2b441; outline-offset: 3px; border-radius: var(--r-md); }
@media (prefers-reduced-motion: no-preference) {
  :root:not(.reduce-motion) .guide-target { animation: guide-pulse 1.6s ease-in-out infinite; }
}
@keyframes guide-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 180, 65, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(242, 180, 65, 0); } }

/* ---------- Tooltips on charts ---------- */
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--walnut-800); color: var(--cream);
  border-radius: var(--r-sm); padding: 6px 10px; font-size: var(--fs-xs); white-space: nowrap; box-shadow: var(--shadow-md);
  transform: translate(-50%, calc(-100% - 10px)); font-variant-numeric: tabular-nums;
}
.chart-tip b { color: #fff; }

/* ---------- Notes / callouts ---------- */
.note {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); font-size: var(--fs-md);
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note-warn { background: var(--warn-soft); border-color: #ecd49b; }
.note-warn svg { color: var(--warn); }
.note-tip { background: var(--accent-softer); border-color: #cfe3df; }
.note-tip svg { color: var(--accent); }
.note-neg { background: var(--neg-soft); border-color: #ebc3b0; }
.note-neg svg { color: var(--neg); }
.note .note-action { margin-left: auto; flex: none; }

/* ---------- Concept cards ---------- */
.concept {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + 6px); box-shadow: var(--shadow-md); overflow: hidden;
}
.concept::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--gold), var(--terracotta)); }
.concept .concept-term { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #7c560b; }
.concept .concept-term svg { width: 14px; height: 14px; }
.concept h4 { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; margin: 4px 0 8px; }
.concept p { font-size: var(--fs-md); color: var(--ink-2); }
.concept p + p { margin-top: 6px; }
.concept .concept-principle { color: var(--ink); }
.concept .concept-try { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-weight: 600; color: var(--accent-ink); }
.concept .concept-try svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.concept .concept-close { position: absolute; top: 8px; right: 8px; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 70; left: var(--s-4); bottom: var(--s-4); display: flex; flex-direction: column-reverse; gap: var(--s-3);
  width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.toasts > * { pointer-events: auto; animation: toast-in 320ms var(--ease) both; }
.toast { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--walnut-800); color: var(--cream); box-shadow: var(--shadow-lg); font-size: var(--fs-md); }
.toast svg { width: 20px; height: 20px; flex: none; color: #f0c46a; }
.toast.toast-leaving, .toasts > .toast-leaving { animation: toast-out 220ms var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(31, 20, 12, 0.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: var(--s-4); animation: fade-in var(--dur) var(--ease);
}
.modal {
  width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: pop-in 260ms var(--ease);
}
.modal-wide { width: min(1040px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6) var(--s-3); position: sticky; top: 0; background: var(--paper); z-index: 2; border-bottom: 1px solid var(--line); }
.modal-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); background: var(--paper-2); position: sticky; bottom: 0; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: var(--s-3) var(--s-4); font-weight: 650; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Archetype glyph ---------- */
.glyph { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; }

/* ---------- Legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend-line { width: 16px; height: 3px; border-radius: 2px; flex: none; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--ink-3); }

/* Keep money on one line; glossary buttons read like text */
.table td.num, .table th.num, .stat-value, .hbar-value { white-space: nowrap; }
.term { text-align: inherit; }
.icon { display: inline-block; vertical-align: -0.2em; }
.chart svg, .open-sign, .mini-sign { display: block; }
.link-btn { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent-hover); }

/* Analytics consent banner: a small card at the bottom, never blocking play */
.consent {
  position: fixed; z-index: 85; left: 50%; bottom: var(--s-4); transform: translateX(-50%);
  width: min(620px, calc(100vw - 24px)); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); font-size: var(--fs-sm); line-height: 1.5;
  /* Quiet, in the start screen's own colors: dark walnut glass and soft cream text */
  background: rgba(36, 24, 16, 0.9); color: var(--cream-dim);
  border: 1px solid rgba(255, 244, 228, 0.14); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.consent p { flex: 1 1 280px; margin: 0; }
.consent a { color: #e8c27a; text-underline-offset: 3px; }
.consent a:hover { color: #f2d49a; }
.consent-actions { display: flex; gap: var(--s-2); margin-left: auto; }
.consent .btn { --btn-bg: transparent; --btn-fg: var(--cream); --btn-border: rgba(255, 244, 228, 0.24); box-shadow: none; }
.consent .btn:hover:not(:disabled) { --btn-bg: rgba(255, 244, 228, 0.08); }
.consent .btn-primary { --btn-bg: #d9a441; --btn-fg: #2a1a0c; --btn-border: #c08a2c; }
.consent .btn-primary:hover:not(:disabled) { --btn-bg: #e6b456; }
.footer-link { font: inherit; color: inherit; text-decoration: none; }
.footer-link:hover, .footer-link:focus-visible { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* New release available */
.update-notice {
  position: fixed; z-index: 86; top: calc(var(--hud-h) + var(--s-3)); left: 50%; transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-3) var(--s-4); background: var(--paper); color: var(--ink); border: 2px solid var(--accent);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); line-height: 1.45;
}
.update-notice p { flex: 1 1 260px; margin: 0; }
.update-actions { display: flex; gap: var(--s-2); margin-left: auto; }
