/* ============================================================================
 * CQ DEPTH — COMPONENT VOCABULARY
 * ----------------------------------------------------------------------------
 * The depth class vocabulary, ported from the games.cqnexus.com design system
 * (theme/base.css). Every value flows from a token in tokens.css, so the whole
 * sheet re-themes on [data-theme] with zero per-class overrides. No legacy alias
 * tokens (the source's alias bridge is intentionally NOT carried here); the one
 * `.tabs` straggler that read --line now reads --bevel-lo directly.
 *
 * Use these classes inside `wp:html` blocks, `className` on core blocks, or the
 * registered block-style variations (see functions.php). Reference: README.md.
 * ========================================================================== */

/* --- WP layout helpers (the only additions to the source vocabulary) ------- */
.cq-container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 40px); }
.cq-section   { padding-block: clamp(40px, 8vw, 96px); }
.cq-stack     { display: flex; flex-direction: column; gap: 20px; }
.cq-center    { text-align: center; align-items: center; }
.cq-measure   { max-width: 62ch; }
.cq-center .cq-measure { margin-inline: auto; }

/* ============================================================================
 * TYPOGRAPHY ATOMS — eyebrow / title / label / group label / bullets
 * ========================================================================== */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3);
}
.title {
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-xl);
  letter-spacing: 0.02em; color: var(--t1); margin: 2px 0 0;
}
.display {
  font-family: var(--f-display); font-weight: 600; letter-spacing: 0.01em;
  color: var(--t1); line-height: 1.08; margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
}
.lead { font-family: var(--f-ui); font-size: var(--fs-md); line-height: 1.6; color: var(--t2); margin: 0; }
.lab { display: block; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px; }
.lab .req { color: var(--gold); }
.grouplab { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 16px 0 6px; }
.grouplab:first-child { margin-top: 0; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bullets > li { position: relative; padding-left: 16px; font-size: var(--fs-sm); color: var(--t2); line-height: 1.5; }
.bullets > li::before { content: '\2022'; position: absolute; left: 0; top: 0; color: var(--gold); font-family: var(--f-mono); }
.bullets strong { color: var(--t1); font-weight: 700; }

/* MONEY — gold sign, cream amount. */
.money { white-space: nowrap; color: var(--t1); font-family: var(--f-mono); }
.money .cur { color: var(--gold); margin-right: 1px; }

/* ============================================================================
 * BUTTONS — depth chips
 * ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: var(--btn-pad); border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; font-family: var(--f-mono); font-size: var(--btn-fs);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t1);
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, filter 120ms ease, transform 80ms ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }
.btn-primary {
  color: var(--ink); border: none;
  background: radial-gradient(120% 200% at 50% -40%, var(--gold-2) 0%, var(--gold-deep) 130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover:not(:disabled)  { filter: brightness(1.06); }
.btn-primary:active:not(:disabled) { filter: brightness(0.98); }
.btn-hero {
  font-family: var(--f-ui); font-size: var(--fs-md); letter-spacing: 0.02em; text-transform: none;
  padding: 14px 24px; border-radius: var(--r-sm); color: var(--ink); border: none;
  background: radial-gradient(120% 200% at 50% -40%, var(--gold-2) 0%, var(--gold-deep) 130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.btn-hero:hover:not(:disabled)  { filter: brightness(1.06); }
.btn-hero:active:not(:disabled) { transform: translateY(1px); }
.btn-ghost {
  color: var(--t1); background: var(--surface-raised);
  border: 1px solid transparent; border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo);
  box-shadow: var(--shadow-raised);
}
.btn-ghost:hover:not(:disabled) { filter: brightness(1.05); border-top-color: var(--gold); }
.btn-dashed { border: 1px dashed var(--gold-deep); color: var(--gold); background: transparent; font-weight: 700; }
.btn-dashed:hover:not(:disabled) { background: color-mix(in srgb, var(--gold) 8%, transparent); border-color: var(--gold); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: transparent; box-shadow: none; }
.btn-danger:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn-icon {
  width: 34px; height: 34px; padding: 0; color: var(--t2); background: var(--surface-raised);
  border: 1px solid transparent; border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo);
  border-radius: var(--r-sm); box-shadow: var(--shadow-raised); font-size: var(--fs-md);
}
.btn-icon svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-icon:hover:not(:disabled) { color: var(--gold); border-top-color: var(--gold); }
.btn-mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.btn-sm { padding: var(--btn-pad-sm); font-size: var(--btn-fs-sm); }
.btn-lg { padding: 12px 22px; font-size: var(--fs-md); }
.btn-full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cq-center .btn-row { justify-content: center; }

/* ============================================================================
 * INPUTS — recessed wells
 * ========================================================================== */
.inp {
  width: 100%; font-family: var(--f-ui); font-size: var(--ctl-fs); color: var(--t1);
  background: var(--surface-recessed); border: 1px solid var(--bevel-lo); border-radius: var(--r-sm);
  padding: var(--ctl-pad); box-shadow: var(--shadow-inset); outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}
.inp::placeholder { color: var(--t4); }
.inp:focus { border-color: var(--select); box-shadow: var(--shadow-inset), 0 0 0 3px var(--focus-ring); }
textarea.inp { resize: vertical; min-height: 72px; line-height: 1.5; }

/* ============================================================================
 * CARDS & DECKS
 * ========================================================================== */
.card {
  background: var(--surface-raised); border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-raised); border: 1px solid transparent;
  border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms;
}
.card--recessed { background: var(--surface-recessed); box-shadow: var(--shadow-inset); border: 1px solid var(--bevel-lo); border-radius: var(--r-md); }
.card--float { background: var(--surface-float); box-shadow: var(--shadow-float); border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo); }
.card--flat { background: transparent; box-shadow: none; border: none; padding: 0; }
.card--dashed { background: transparent; box-shadow: none; border: 1px dashed var(--bevel-lo); }
.card--ink { background: var(--surface-ink); box-shadow: var(--shadow-float); border: 1px solid rgba(255, 255, 255, 0.07); }
.card--hi { background: var(--surface-hi); box-shadow: var(--shadow-raised); border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo); }
.card.is-flat { box-shadow: none; }
.card.is-selected { position: relative; background: var(--surface-float); box-shadow: var(--shadow-float), 0 0 0 1px var(--select); }
.card.is-selected::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--select); }
.card--ink.is-selected { background: var(--surface-ink); }
a.card, button.card { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; cursor: pointer; }
button.card:hover:not(:disabled), a.card:hover { transform: translateY(-1px); filter: brightness(1.03); }
button.card:active:not(:disabled), a.card:active { transform: translateY(0); }
.card--info { background: linear-gradient(180deg, color-mix(in srgb, var(--info) 15%, var(--surface-raised)), color-mix(in srgb, var(--info) 5%, var(--surface-raised))); border: 1px solid color-mix(in srgb, var(--info) 32%, var(--bevel-lo)); border-top-color: color-mix(in srgb, var(--info) 55%, var(--bevel-hi)); }
.card--success { background: linear-gradient(180deg, color-mix(in srgb, var(--good) 15%, var(--surface-raised)), color-mix(in srgb, var(--good) 5%, var(--surface-raised))); border: 1px solid color-mix(in srgb, var(--good) 32%, var(--bevel-lo)); border-top-color: color-mix(in srgb, var(--good) 55%, var(--bevel-hi)); }
.card--warning { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 15%, var(--surface-raised)), color-mix(in srgb, var(--gold) 5%, var(--surface-raised))); border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--bevel-lo)); border-top-color: color-mix(in srgb, var(--gold) 60%, var(--bevel-hi)); }
.card--danger { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 18%, var(--surface-raised)), color-mix(in srgb, var(--danger) 6%, var(--surface-raised))); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.card--highlight { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 18%, var(--surface-raised)), color-mix(in srgb, var(--gold) 7%, var(--surface-raised))); border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--bevel-lo)); border-top-color: var(--gold); box-shadow: var(--shadow-raised), 0 0 18px color-mix(in srgb, var(--gold) 22%, transparent); }
.card--hero {
  position: relative; border: 2px solid transparent; border-radius: var(--r-lg); background-clip: padding-box;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--card-accent, var(--gold)) 22%, var(--felt-edge)) 0%, var(--felt-edge) 72%);
  box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 60px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.card--hero::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold-2) 40%, transparent); background: radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%); }
.card--hero > * { position: relative; }

.deck { display: flex; flex-direction: column; gap: 10px; }
.deck--tight { gap: 6px; }
.deck--row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.deck--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* Card slots — the eyebrow/title/text rhythm inside a card. */
.card .card-title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); color: var(--t1); margin: 6px 0 0; letter-spacing: 0.01em; }
.card .card-text { font-size: var(--fs-sm); line-height: 1.55; color: var(--t2); margin: 8px 0 0; }
.card .card-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-size: 20px; }

/* ============================================================================
 * LIST / NAV ROW
 * ========================================================================== */
.list-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--surface-raised); box-shadow: var(--shadow-raised); border: 1px solid transparent;
  border-top-color: var(--bevel-hi); border-bottom-color: var(--bevel-lo); color: var(--t2);
  cursor: pointer; text-decoration: none;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), filter 160ms, box-shadow 160ms;
}
.list-row:hover:not(.is-selected) { transform: translateY(-1px); filter: brightness(1.04); }
.list-row .lr-glyph { width: 18px; height: 18px; color: var(--t3); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.list-row .lr-body { display: flex; flex-direction: column; min-width: 0; }
.list-row .lr-title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-md); color: var(--t1); }
.list-row .lr-meta { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--t3); margin-top: 3px; }
.list-row .lr-trailing { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.list-row.is-marked { background: color-mix(in srgb, var(--gold) 7%, var(--surface-raised)); border-top-color: color-mix(in srgb, var(--gold) 32%, var(--bevel-hi)); }
.list-row.is-flat { background: transparent; box-shadow: none; border: 1px solid var(--bevel-lo); }
.list-row.is-selected { color: var(--t1); background: var(--surface-float); box-shadow: var(--shadow-float), 0 0 0 1px var(--select); }
.list-row.is-selected .lr-glyph { color: var(--select); }
.list-row.is-selected::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--select); }

/* Sub-panel + control line (config groups). */
.sub { background: var(--surface-recessed); border-radius: var(--r-md); padding: 6px 16px; margin-bottom: 12px; box-shadow: var(--shadow-inset); border: 1px solid var(--bevel-lo); }
.line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.line:last-child { border-bottom: none; }
.line .nm { font-size: 13px; color: var(--t2); font-weight: 600; min-width: 130px; }
.line .val { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--gold); min-width: 48px; text-align: right; }

/* ============================================================================
 * CONTROLS — segmented · yes/no · slider · meter · stepper
 * ========================================================================== */
.seg { display: inline-grid; grid-auto-flow: column; gap: 6px; background: var(--surface-recessed); border-radius: 9px; padding: 4px; box-shadow: var(--shadow-inset); }
.seg button { border: none; border-radius: 7px; padding: 10px 18px; cursor: pointer; background: transparent; color: var(--t2); font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.seg button.on { color: var(--ink); background: radial-gradient(120% 200% at 50% -40%, var(--gold-2), var(--gold-deep) 130%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35); }
.seg--full { display: flex; width: 100%; }
.seg--full button { flex: 1; }
.seg--sm button { padding: 6px 12px; font-size: 12px; }
.yn { display: inline-flex; gap: 4px; background: var(--surface-recessed); border-radius: 8px; padding: 3px; box-shadow: var(--shadow-inset); }
.yn button { border: none; border-radius: 6px; padding: 6px 15px; cursor: pointer; background: transparent; color: var(--t3); font-family: var(--f-ui); font-weight: 700; font-size: 12px; }
.yn button.on { background: var(--good); color: #0b1f10; }
.yn button.on.no { background: var(--danger); color: #fff; }
.track { position: relative; height: 6px; border-radius: var(--r-pill); background: var(--surface-recessed); box-shadow: var(--shadow-inset); }
.track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
.track > b { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 35%, var(--gold-2), var(--gold-deep)); border: 1px solid rgba(0, 0, 0, 0.5); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
.meter { display: block; height: 6px; border-radius: var(--r-pill); background: var(--surface-recessed); box-shadow: var(--shadow-inset); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
.stepper { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 2px; background: var(--surface-recessed); border: 1px solid var(--bevel-lo); border-radius: var(--r-sm); box-shadow: var(--shadow-inset); padding: 2px; }
.stepper button { border: none; background: transparent; color: var(--t2); font-size: var(--fs-md); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; }
.stepper button:hover:not(:disabled) { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.stepper .stepper-val { font-family: var(--f-mono); font-weight: 700; color: var(--t1); min-width: 44px; text-align: center; }

/* ============================================================================
 * TABS — underline nav (default) + segment variant
 * ========================================================================== */
.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--bevel-lo); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs--center { justify-content: center; }
.tab { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; padding: 11px 16px; color: var(--t3); white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; transition: color 140ms, border-color 140ms; }
.tabs--stretch .tab { flex: 1; }
.tab:hover:not(.is-active) { color: var(--t1); }
.tab.is-active { color: var(--t1); border-bottom-color: var(--gold); }
.tabs--segment { display: inline-flex; gap: 4px; overflow: visible; background: var(--surface-recessed); border-radius: var(--r-md); padding: 4px; box-shadow: var(--shadow-inset); }
.tabs--segment .tab { border-bottom: none; border-radius: var(--r-sm); padding: 9px 18px; font-size: 14px; color: var(--t2); }
.tabs--segment .tab.is-active { color: var(--ink); background: radial-gradient(120% 200% at 50% -40%, var(--gold-2), var(--gold-deep) 130%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35); }
.tab-badge { font-family: var(--f-mono); font-size: 11px; font-weight: 700; line-height: 1; padding: 2px 7px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--t1) 12%, transparent); color: inherit; }
.tab.is-active .tab-badge { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--t1); }
.tabpanel { margin-top: 16px; }
.tabpanel[hidden] { display: none; }

/* ============================================================================
 * PILLS · BADGES · TAGS
 * ========================================================================== */
.pill { display: inline-block; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: var(--r-pill); padding: 6px 13px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
button.pill { cursor: pointer; transition: background 130ms, border-color 130ms, color 130ms, filter 130ms; }
button.pill:hover:not(.is-selected) { background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: var(--gold); }
.pill.is-selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pill.is-marked:not(.is-selected) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.pill.is-locked { opacity: 0.5; }
.pill--block { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; font-size: 13px; text-align: left; }
.pill--block .pill-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-meta { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--t3); white-space: nowrap; flex-shrink: 0; }
.pill.is-selected .pill-meta { color: color-mix(in srgb, var(--ink) 65%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-block; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: var(--r-pill); }
.badge--info { background: var(--info); color: #fff; }
.badge--success { background: var(--good); color: #fff; }
.badge--danger { background: var(--danger); color: #fff; }
.tag-gold { display: inline-flex; align-items: center; padding: 2px 8px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 1px solid color-mix(in srgb, var(--gold-2) 50%, #000); border-radius: var(--r-pill); white-space: nowrap; }

/* ============================================================================
 * CALLOUTS
 * ========================================================================== */
.tip { display: flex; gap: 11px; align-items: flex-start; border-radius: var(--r-md); padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--info) 40%, transparent); border-left: 3px solid var(--info); background: linear-gradient(180deg, color-mix(in srgb, var(--info) 16%, transparent), color-mix(in srgb, var(--info) 6%, transparent)); }
.tip > svg { flex: none; color: var(--info); margin-top: 1px; }
.tip > p { margin: 0; font-size: 13px; color: var(--t1); line-height: 1.5; }
.tip--warning { border-color: color-mix(in srgb, var(--gold) 40%, transparent); border-left-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, transparent), color-mix(in srgb, var(--gold) 6%, transparent)); }
.tip--warning > svg { color: var(--gold); }
.tip--danger { border-color: color-mix(in srgb, var(--danger) 40%, transparent); border-left-color: var(--danger); background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 16%, transparent), color-mix(in srgb, var(--danger) 6%, transparent)); }
.tip--danger > svg { color: var(--danger); }
.tip--plain { border-color: var(--bevel-lo); border-left-color: var(--t3); background: var(--surface-recessed); box-shadow: var(--shadow-inset); }
.tip--plain > svg { color: var(--t3); }

/* ============================================================================
 * STAT
 * ========================================================================== */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .stat-val { font-family: var(--f-mono); font-size: var(--fs-xl); font-weight: 700; color: var(--t1); line-height: 1; }
.stat .stat-lbl { font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); }
.stat .stat-val.pos { color: var(--good); }
.stat .stat-val.neg { color: var(--danger); }

/* ============================================================================
 * CONFIRM DIALOG — scrim + centered floating card (driven by depth.js)
 * ========================================================================== */
.cq-modal-scrim { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: var(--scrim); }
.cq-modal-scrim.is-open { display: flex; }
.cq-modal { width: 100%; max-width: 380px; }
.cq-modal .cq-modal-msg { margin: 0 0 16px; color: var(--t1); font-size: var(--fs-md); line-height: 1.5; }
.cq-modal .cq-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================================
 * ENTRY ANIMATIONS (opt-in via [data-stagger] on a deck wrapper)
 * ========================================================================== */
[data-stagger] > * { animation: var(--anim-card-in); }
[data-stagger] > *:nth-child(2) { animation-delay: 60ms; }
[data-stagger] > *:nth-child(3) { animation-delay: 120ms; }
[data-stagger] > *:nth-child(4) { animation-delay: 180ms; }
[data-stagger] > *:nth-child(5) { animation-delay: 240ms; }
[data-stagger] > *:nth-child(6) { animation-delay: 300ms; }

/* ============================================================================
 * DIVI DROP-IN NOTE
 * ----------------------------------------------------------------------------
 * This is the Divi build. On purpose it does NOT restyle bare elements (a, h1-h4,
 * body, p) or Gutenberg blocks — Divi owns those, and hijacking them would fight
 * the rest of the site. Every rule above is an OPT-IN class you add to a Divi
 * module (Advanced → CSS Class) or drop into a Code module. To make headings /
 * links / money read in the depth voice, use the .display / .title / .money /
 * .btn classes rather than expecting bare tags to change.
 *
 * The felt canvas is likewise opt-in — add the `.cq-felt` class (defined in
 * tokens.css) to a Divi Section, or apply it to <body> via Divi → Theme Options
 * → Custom CSS if you want the whole site on felt. See README.md.
 * ========================================================================== */
