/* The Druid Circle — Modals, Short-Omen Board, Docs, Emblems, Hall of Stones, Runestone, Charts & TP/SL */
/* Modal — translucent grove backdrop so the living fire stays visible behind Stone Cards */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 7, 5, 0.46);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal); display: none; align-items: center; justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.read-box {
  background: #09110d; border: 1px solid var(--border-gold); border-radius: 4px;
  padding: 11px 13px; margin-bottom: 13px;
}
.read-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.read-verdict {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; background: #263628; color: var(--gold);
  border: 1px solid var(--border-gold);
}
.read-catalyst {
  background: rgba(212, 168, 92, 0.09); border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 8px 10px; margin-bottom: 9px;
  font-size: 13.5px; line-height: 1.48; color: var(--ink);
}
.read-catalyst-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--gold); text-transform: uppercase;
}
.read-swarm-pill {
  padding: 1px 6px; border-radius: 3px; background: #1e2820; border: 1px solid #4d644f;
  color: #b7d9b8; font-size: 10px; text-transform: none; letter-spacing: 0;
}
.read-hl { font-family: var(--font-pixel); font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.read-bullets { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.read-bullets li { margin-bottom: 4px; }
.term-cursor {
  display: inline-block; width: 7px; height: 12px; margin-left: 3px;
  background: var(--gold); vertical-align: -1px;
  animation: termBlink 0.72s steps(2, start) infinite;
}
@keyframes termBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.read-term-status {
  font-family: var(--font-mono); font-size: 12px; color: #9fc79f;
  letter-spacing: 0.02em; padding: 4px 0;
}
.ovate-row {
  display: flex; align-items: center; gap: 10px;
}
.ovate-portrait {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 5px;
  border: 2px solid var(--border-gold); background: #070d0a;
  image-rendering: pixelated; object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}
.ovate-portrait.speaking {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(234, 177, 84, 0.45), 0 3px 12px rgba(0, 0, 0, 0.6);
  animation: pulseGlow 1.1s infinite ease-in-out;
}
/* Live Short-Omen Board (The Ovate's Fireside Dock) */
.sb-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 7px;
}
.sb-filters {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.sb-sep {
  width: 1px; height: 14px; background: #2d4033; margin: 0 2px;
}
.sb-pill {
  background: #101a14; border: 1px solid #2c3f32; color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 3px;
  cursor: pointer; transition: all 120ms ease; white-space: nowrap;
}
.sb-pill:hover { border-color: var(--gold); color: var(--gold); }
.sb-pill.active {
  background: #233326; border-color: var(--gold); color: var(--gold); font-weight: 700;
}
.sb-status-chip {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 3px;
  border: 1px solid #2e5940; background: #0d1f15; color: #8cf0b2; white-space: nowrap;
}
.sb-status-chip.warn { border-color: #6b5428; background: #1f190d; color: #f0cb7a; }
.sb-list {
  background: rgba(6, 11, 8, 0.92); border: 1px solid #354c3b; border-radius: 4px;
  max-height: 212px; overflow-y: auto; margin-bottom: 8px;
  font-family: var(--font-mono);
}
.sb-head {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(220px, 1.55fr) minmax(130px, 0.9fr) minmax(175px, 1.15fr) 152px;
  gap: 8px; padding: 5px 10px;
  background: #0a120d; border-bottom: 1px solid #26382c;
  font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #7e9685;
}
.sb-row {
  padding: 6px 10px; border-bottom: 1px solid #16221a;
  transition: background 110ms ease;
}
.sb-row:last-child { border-bottom: none; }
.sb-row:hover { background: rgba(29, 46, 35, 0.72); }
@keyframes sbRowTick {
  0% { background: rgba(154, 230, 154, 0.20); }
  100% { background: transparent; }
}
.sb-row-tick { animation: sbRowTick 0.95s ease-out; }
.sb-top {
  display: grid; grid-template-columns: minmax(220px, 1.55fr) minmax(130px, 0.9fr) minmax(175px, 1.15fr) 152px;
  gap: 8px; align-items: center;
}
.sb-coin-col { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.sb-sym { font-weight: 700; font-size: 12.5px; color: var(--gold); letter-spacing: 0.02em; }
.sb-chain {
  font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid #31463a; background: #121d17; color: #a7c0b0;
}
.sb-chain.ch-solana { border-color: #365947; background: #0f2119; color: #8be6b4; }
.sb-chain.ch-base { border-color: #2f4d78; background: #101c2e; color: #8bc0ff; }
.sb-chain.ch-ethereum { border-color: #4f4b78; background: #18172b; color: #c4beff; }
.sb-tag {
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 2px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid #3d5444; background: #152119; color: #b7d9be;
}
.sb-tag.tag-parabolic, .sb-tag.tag-pumping {
  border-color: #8c5d20; background: #291c0b; color: #ffc66d;
}
.sb-tag.tag-pays {
  border-color: #2f7d4e; background: #0e2919; color: #7cf5a4;
}
.sb-tag.tag-swarm {
  border-color: #6b4887; background: #21152b; color: #deb8ff;
}
.sb-tag.tag-churn {
  border-color: #7d3e30; background: #2a1612; color: #ffa082;
}
.sb-stat-col { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; }
.sb-mcap { color: var(--ink); font-weight: 600; }
.sb-mom-hot { color: #ffc66d; font-weight: 700; font-size: 11px; }
.sb-mom-up { color: #8cf0b2; font-size: 11px; }
.sb-mom-dn { color: #e28282; font-size: 11px; }
.sb-mom-flat { color: var(--ink-dim); font-size: 11px; }
.sb-carry-pays { color: #7cf5a4; font-weight: 700; font-size: 11.5px; }
.sb-carry-cost { color: #c8d2c8; font-size: 11.5px; }
.sb-room { color: var(--ink-dim); font-size: 10.5px; }
.sb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.sb-btn {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  padding: 4px 7px; border-radius: 3px; cursor: pointer; white-space: nowrap;
  transition: all 110ms ease;
}
.sb-btn-ask {
  background: #14211a; border: 1px solid #3c5746; color: #cde2d2;
}
.sb-btn-ask:hover { border-color: var(--gold); color: var(--gold); }
.sb-btn-price {
  background: var(--gold); border: 1px solid #f7d083; color: #120d06;
}
.sb-btn-price:hover { background: #f2be64; }
.sb-sub {
  font-size: 10.5px; color: #8ea595; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-x-pip {
  display: inline-block; font-size: 9px; padding: 0 4px; border-radius: 2px;
  margin-right: 4px; background: #0f2619; border: 1px solid #2e6645; color: #8cf0b2;
  vertical-align: 1px;
}
.sb-shortcut-pill {
  border-color: rgba(219, 179, 98, 0.65) !important;
  color: var(--gold) !important;
  background: rgba(34, 29, 16, 0.85) !important;
}
.sb-shortcut-pill:hover {
  background: rgba(54, 44, 21, 0.95) !important;
}
@media (max-width: 780px) {
  .sb-head { display: none; }
  .sb-top { grid-template-columns: 1fr auto; row-gap: 4px; }
  .sb-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .sb-list { max-height: 240px; }
}
.keeper-term {
  background: rgba(6, 11, 8, 0.92); border: 1px solid #3c5441; border-radius: 4px;
  padding: 9px 11px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 12.2px; line-height: 1.52;
}
.keeper-log {
  max-height: 156px; overflow-y: auto; padding-right: 4px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 7px;
}
.keeper-msg-user { color: var(--gold); }
.keeper-msg-ai { color: #d6e6d3; white-space: pre-wrap; }
.keeper-cites { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.keeper-cite-btn {
  font-family: var(--font-mono); font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: #17231a; border: 1px solid #48634d; color: #b7dbb8; cursor: pointer;
}
.keeper-cite-btn:hover { border-color: var(--gold); color: var(--gold); }
.keeper-input-row {
  display: flex; align-items: center; gap: 7px;
  border-top: 1px solid #233328; padding-top: 7px;
}
.keeper-input-row .k-prompt { color: var(--gold); font-weight: 700; }
.keeper-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--font-mono); font-size: 12.5px;
}
.keeper-input::placeholder { color: #677d6b; }
.docs-layout { display: grid; grid-template-columns: 205px 1fr; gap: 12px; min-height: 330px; max-height: 62vh; }
.docs-nav {
  display: flex; flex-direction: column; gap: 5px; overflow-y: auto;
  border-right: 1px solid #26362b; padding-right: 10px;
}
.docs-nav-btn {
  text-align: left; padding: 7px 8px; border-radius: 4px; background: #0c1410;
  border: 1px solid #243429; color: var(--ink-dim); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.35;
}
.docs-nav-btn:hover, .docs-nav-btn.active { border-color: var(--border-gold); color: var(--gold); background: #142018; }
.docs-body {
  overflow-y: auto; padding: 4px 6px 4px 2px; font-size: 13.5px; line-height: 1.56; color: var(--ink);
}
.docs-body h1 { font-family: var(--font-pixel); font-size: 18px; color: var(--gold); margin: 0 0 8px; }
.docs-body h2 { font-family: var(--font-pixel); font-size: 14px; color: #b7dbb8; margin: 13px 0 5px; }
.docs-body ul, .docs-body ol { margin: 4px 0 8px; padding-left: 18px; color: var(--ink-dim); }
.docs-body li { margin-bottom: 4px; }
.docs-body code { font-family: var(--font-mono); font-size: 11.5px; background: #122018; padding: 1px 4px; border-radius: 3px; color: var(--gold); }
@media (max-width: 680px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { border-right: none; border-bottom: 1px solid #26362b; padding-right: 0; padding-bottom: 8px; max-height: 120px; } }

/* Druid Prestige Emblems & Live Portfolio Modal */
.hud-clickable {
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.hud-clickable:hover { border-color: var(--border-gold); background: rgba(24, 36, 26, 0.94); }
.hud-emblem { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; image-rendering: pixelated; }
.hud-rank-tag {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 5px; border-radius: 3px; background: #1c2920; border: 1px solid #48614c; color: #b7dbb8;
  text-transform: uppercase;
}
.port-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(180deg, #0f1a13, #0a120d); border: 1px solid #354b3a; border-radius: 5px;
  padding: 10px 13px; margin-bottom: 9px; flex-shrink: 0;
}
.port-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.port-crest {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(212,168,92,0.18), rgba(8,14,10,0.95));
  border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(212,168,92,0.16);
}
.port-name { font-family: var(--font-pixel); font-size: 16px; color: var(--gold); line-height: 1.25; }
.port-rank-line { font-family: var(--font-mono); font-size: 11px; color: #b7dbb8; margin-top: 2px; }
.port-equity-box { text-align: right; }
.port-eq-val { font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.port-pnl-pill {
  display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
}
.port-pnl-pill.pos { background: rgba(94, 206, 114, 0.14); color: var(--moss); border: 1px solid rgba(94, 206, 114, 0.4); }
.port-pnl-pill.neg { background: rgba(227, 97, 97, 0.14); color: var(--crimson); border: 1px solid rgba(227, 97, 97, 0.4); }
.port-chart-wrap {
  background: #080f0b; border: 1px solid #26362b; border-radius: 4px;
  padding: 7px 10px 5px; margin-bottom: 9px; flex-shrink: 0;
}
.port-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-dim); margin-bottom: 4px;
}
.port-xp-bar { height: 6px; background: #142018; border-radius: 3px; overflow: hidden; margin-top: 4px; border: 1px solid #2a3e30; }
.port-xp-fill { height: 100%; background: linear-gradient(90deg, #62b676, var(--gold)); transition: width 0.35s ease; }
.port-kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px;
  margin-bottom: 9px; flex-shrink: 0;
}
.port-kpi-grid .detail-cell { padding: 7px 9px; }
.port-kpi-grid .detail-cell .dc-k { font-size: 9.5px; }
.port-kpi-grid .detail-cell .dc-v { font-size: 13px; margin-top: 2px; }
.detail-cell .dc-v.gold { color: var(--gold); }
.detail-cell .dc-v.moss { color: var(--moss); }
.detail-cell .dc-v.crimson { color: var(--crimson); }
.port-tabs { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; border-bottom: 1px solid #243429; padding-bottom: 7px; flex-shrink: 0; }
.port-tabs .pill { padding: 4px 8px; font-size: 11px; }
.port-tab-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 3px; }
.port-footer-row { flex-shrink: 0; padding-top: 8px; margin-top: 8px; border-top: 1px solid #223228; }
.modal-box.modal-portfolio {
  width: min(710px, 100%); max-height: 90dvh;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 15px 18px;
}
.port-sheet-body { display: contents; }
.modal-box.modal-portfolio .modal-head { flex-shrink: 0; margin-bottom: 10px; padding-bottom: 8px; }
.modal-box.modal-portfolio .btn-secondary { padding: 6px 10px; font-size: 12.5px; }
/* Hall of Stones (Live Circle Leaderboard) */
.hall-head-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-dim);
  margin-bottom: 7px; padding: 0 2px;
}
.hall-row {
  display: grid; grid-template-columns: 32px 26px minmax(0, 1.4fr) auto auto;
  align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px; border-radius: 5px;
  background: #0a120d; border: 1px solid #24362a;
  font-family: var(--font-mono); font-size: 11.5px;
}
.hall-row.is-self { border-color: var(--border-gold); background: rgba(34, 29, 16, 0.72); box-shadow: 0 0 12px rgba(212,168,92,0.14); }
.hall-rank { font-family: var(--font-pixel); font-size: 14px; color: var(--ink-dim); text-align: center; }
.hall-rank.r1 { color: #ffd466; }
.hall-rank.r2 { color: #d0dfe4; }
.hall-rank.r3 { color: #d59660; }
.hall-who { min-width: 0; }
.hall-name {
  font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.hall-you-tag {
  font-size: 9px; padding: 1px 4px; border-radius: 2px;
  background: rgba(212,168,92,0.2); border: 1px solid var(--border-gold); color: var(--gold); flex-shrink: 0;
}
.hall-sub { font-size: 10px; color: var(--ink-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-metrics { text-align: right; font-size: 10px; color: var(--ink-dim); line-height: 1.35; }
.hall-pnl { text-align: right; font-weight: 700; font-size: 12.5px; min-width: 68px; }
@media (max-width: 520px) {
  .hall-row { grid-template-columns: 26px 24px minmax(0, 1fr) auto; gap: 6px; padding: 7px 8px; }
  .hall-metrics { display: none; }
  .hall-pnl { min-width: 56px; font-size: 11.5px; }
}
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 640px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
.rank-card {
  background: #0b130e; border: 1px solid #26362b; border-radius: 5px; padding: 9px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.rank-card.unlocked { border-color: #4d6b52; background: #0f1b13; }
.rank-card.current { border-color: var(--border-gold); box-shadow: 0 0 14px rgba(212,168,92,0.18); }
.rank-card.locked { opacity: 0.48; filter: grayscale(0.55); }
.rank-card-title { font-family: var(--font-pixel); font-size: 12px; color: var(--gold); }
.rank-card-art { font-family: var(--font-mono); font-size: 10px; color: #b7dbb8; }
.rank-card-req { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim); line-height: 1.3; }

/* Campfire hotspot in outer Circle (click fire to walk up to the Fireside Council!) */
.campfire-hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 118px; height: 118px; border-radius: 50%;
  background: transparent; border: none; cursor: pointer; pointer-events: auto;
}
.campfire-hotspot:hover::after {
  content: "Walk to Fire";
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 11px; color: var(--gold);
  background: rgba(10, 16, 13, 0.92); border: 1px solid var(--border-gold);
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
}

/* Runestone Close-Up Split Scene (Ledger Left · Towering Monolith Center · Inspector Right) */
.runestone-ui {
  position: absolute; inset: 0; z-index: var(--z-dock);
  display: none; pointer-events: none;
  padding: 64px 20px 22px;
  grid-template-columns: minmax(270px, 320px) 1fr minmax(330px, 410px);
  gap: 18px; align-items: stretch;
}
.runestone-ui.visible { display: grid; }
.rs-panel {
  pointer-events: auto;
  background: rgba(9, 15, 11, 0.88); backdrop-filter: blur(5px);
  border: 1.5px solid var(--border-gold); border-radius: 6px;
  padding: 11px 13px; display: flex; flex-direction: column;
  max-height: calc(100vh - 82px); overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72);
}
.rs-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #26362b;
}
.rs-panel-head h3 {
  margin: 0; font-family: var(--font-pixel); font-size: 13.5px; color: var(--gold); letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#rsInspectorPanel .detail-grid { gap: 6px; margin-bottom: 8px !important; }
#rsInspectorPanel .detail-cell { padding: 6px 9px; }
#rsInspectorPanel .detail-cell .dc-k { font-size: 9.5px; }
#rsInspectorPanel .detail-cell .dc-v { font-size: 13px; margin-top: 2px; }
.rs-actions-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
.rs-actions-primary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#rsInspectorPanel .rs-actions-row .btn-primary { padding: 8px 13px; font-size: 14px; }
#rsInspectorPanel .rs-actions-row .btn-secondary,
#rsInspectorPanel .rs-actions-row .btn-danger { padding: 7px 11px; font-size: 13px; }
.rs-search-wrap {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: #08110b; border: 1.5px solid #35523d; border-radius: 4px;
  padding: 6px 9px; margin-bottom: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.rs-search-wrap:focus-within {
  border-color: var(--gold); background: #0b1710;
  box-shadow: 0 0 0 1px rgba(234, 177, 84, 0.35), 0 0 16px rgba(234, 177, 84, 0.22);
}
.rs-search-prompt {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.rs-search-inp {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
}
.rs-search-inp::placeholder { color: #6e8774; }
.rs-kbd {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim);
  border: 1px solid #314738; background: #0e1a12; border-radius: 3px;
  padding: 1px 5px; flex-shrink: 0; letter-spacing: 0.02em;
}
.rs-search-wrap:focus-within .rs-kbd { border-color: var(--border-gold); color: var(--gold); }
.rs-search-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 40;
  background: #0a140e; border: 1.5px solid var(--border-gold); border-radius: 5px;
  max-height: 260px; overflow-y: auto;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
}
.rs-search-menu.open { display: block; }
.rs-search-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 7px 10px; background: transparent;
  border: none; border-bottom: 1px solid #1b2a20; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink);
}
.rs-search-item:last-child { border-bottom: none; }
.rs-search-item:hover, .rs-search-item.active { background: #16281c; color: var(--gold); }
.rs-scroll { flex: 1; overflow-y: auto; padding-right: 3px; }
.rs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 5px; border-radius: 4px; cursor: pointer;
  background: rgba(15, 24, 18, 0.76); border: 1px solid #25362a;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease;
}
.rs-row:hover { border-color: #5b7860; background: rgba(24, 37, 28, 0.88); }
.rs-row.active { border-color: var(--gold); background: rgba(42, 34, 18, 0.78); box-shadow: 0 0 12px rgba(212,168,92,0.18); }
.rs-section-lbl {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 10px 0 6px;
}
.rs-center-col {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding-bottom: 4px; pointer-events: none;
}
.rs-back-pill {
  pointer-events: auto;
  background: rgba(10, 17, 13, 0.90); border: 1.5px solid var(--border-gold);
  color: var(--gold); font-family: var(--font-pixel); font-size: 13px;
  padding: 7px 14px; border-radius: 4px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}
.rs-back-pill:hover { background: rgba(26, 36, 26, 0.96); }

/* 16-Bit Phosphor Price Chart Canvas */
.phosphor-box {
  background: #050c08; border: 1px solid #2a4231; border-radius: 5px;
  padding: 6px 8px 5px; margin-bottom: 8px;
  box-shadow: inset 0 0 22px rgba(24, 62, 36, 0.28);
}
.phosphor-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  margin-bottom: 5px; font-family: var(--font-mono); font-size: 10.5px;
}
.phosphor-title { color: #b7dbb8; font-weight: 700; letter-spacing: 0.03em; display: flex; align-items: center; gap: 6px; }
.phosphor-tf-group { display: inline-flex; gap: 3px; }
.tf-pill {
  background: #0c1710; border: 1px solid #273c2d; color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; cursor: pointer; letter-spacing: 0.04em;
}
.tf-pill:hover { border-color: #5b7c63; color: var(--ink); }
.tf-pill.active { background: #173021; border-color: var(--moss); color: #9cf0be; box-shadow: 0 0 8px rgba(94,206,114,0.22); }
.phosphor-canvas-wrap {
  position: relative; width: 100%; height: 135px;
  border: 1px solid #16291d; border-radius: 3px; overflow: hidden; background: #040a07;
}
.phosphor-canvas-wrap.compact { height: 118px; }
.phosphor-canvas { width: 100%; height: 100%; display: block; }
.phosphor-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px;
  margin-top: 5px; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim);
}
.ph-leg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ph-dot { width: 7px; height: 2px; display: inline-block; border-radius: 1px; }

/* Carved TP / SL Auto-Close Seals */
.tpsl-box {
  background: #08120c; border: 1px solid #2c4333; border-radius: 5px;
  padding: 7px 9px; margin-bottom: 8px; font-family: var(--font-mono);
}
.tpsl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  margin-bottom: 5px;
}
.tpsl-title { font-size: 10.5px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.tpsl-note { font-size: 9px; color: #7db88b; background: #0f2016; border: 1px solid #274431; padding: 1px 5px; border-radius: 3px; }
.tpsl-status {
  display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; margin-bottom: 5px;
}
.tpsl-badge {
  flex: 1 1 115px; background: #0c1710; border: 1px solid #223528; border-radius: 3px;
  padding: 4px 7px; display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.tpsl-badge.tp-on { border-color: rgba(125,245,149,0.45); color: #9cf0be; }
.tpsl-badge.sl-on { border-color: rgba(255,140,66,0.48); color: #ffb784; }
.tpsl-row {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px;
}
.tpsl-lbl { font-size: 10px; color: var(--ink-dim); width: 20px; font-weight: 700; }
.tpsl-btn {
  background: #0f1c14; border: 1px solid #2c4234; color: var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 3px; cursor: pointer;
}
.tpsl-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.tpsl-btn.tp:hover:not(:disabled) { border-color: var(--moss); color: #9cf0be; }
.tpsl-btn.sl:hover:not(:disabled) { border-color: #ff8c42; color: #ffb784; }
.tpsl-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tpsl-custom {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; margin-top: 7px; padding-top: 7px;
  border-top: 1px solid #1e3124; align-items: center;
}
.tpsl-inp {
  min-width: 0; width: 100%; background: #050c08; border: 1px solid #304938; border-radius: 3px;
  color: var(--ink); font-family: var(--font-mono); font-size: 11px; padding: 4px 6px; outline: none;
}
.tpsl-inp:focus { border-color: var(--gold); }

/* Interactive Phosphor Crosshair + Click-to-Carve TP/SL Mode */
.phosphor-canvas-wrap.interactive { height: 132px; cursor: crosshair; touch-action: none; }
.phosphor-canvas-wrap.seal-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(234, 177, 84, 0.35), inset 0 0 18px rgba(234, 177, 84, 0.14);
}
.ph-head-controls { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ph-seal-toggle {
  background: #142219; border: 1px solid #3c5d46; color: #b7e6c4;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; cursor: pointer; letter-spacing: 0.03em;
  transition: all 120ms ease;
}
.ph-seal-toggle:hover { border-color: var(--gold); color: var(--gold); }
.ph-seal-toggle.active {
  background: rgba(212, 168, 92, 0.22); border-color: var(--gold); color: #ffe094;
  box-shadow: 0 0 8px rgba(234, 177, 84, 0.28);
}
.ph-readout-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-top: 4px; padding: 3px 6px; border-radius: 3px;
  background: #08120c; border: 1px solid #1b3123;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim);
  min-height: 20px;
}
.ph-readout-bar.hovering { border-color: #3a5c45; color: var(--ink); }
.ph-readout-bar.seal-hint { border-color: rgba(212, 168, 92, 0.45); background: #14170d; color: #f0d79a; }
.ph-seal-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  margin-top: 5px; padding: 5px 8px; border-radius: 4px;
  background: #0c1a12; border: 1px solid rgba(125, 245, 149, 0.52);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink);
}
.ph-seal-preview.is-sl {
  background: #1c120b; border-color: rgba(255, 140, 66, 0.58);
}
.ph-seal-preview-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ph-seal-preview-title { font-weight: 700; font-size: 10.5px; }
.ph-seal-preview-sub { font-size: 9.5px; color: var(--ink-dim); }
.ph-seal-preview-btns { display: flex; align-items: center; gap: 5px; }
.ph-lock-btn {
  background: var(--moss); border: 1px solid #a2f8b8; color: #06140b;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.ph-lock-btn.is-sl { background: #ff8c42; border-color: #ffbe91; color: #190a02; }
.ph-lock-btn:hover { filter: brightness(1.08); }
.ph-cancel-btn {
  background: transparent; border: 1px solid #3c5042; color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 10px; padding: 4px 7px; border-radius: 3px; cursor: pointer;
}
.ph-cancel-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Daily Council Quests / Bounties & Unlockable Rare Ogham Banners */
.quests-head-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-dim);
  margin-bottom: 6px; padding: 0 2px;
}
.quests-xp-strip {
  background: #0a140e; border: 1px solid #2b4232; border-radius: 5px;
  padding: 7px 10px; margin-bottom: 8px;
}
.quests-xp-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-dim); margin-bottom: 5px;
}
.quest-card {
  background: #0a120d; border: 1px solid #25382c; border-radius: 5px;
  padding: 9px 11px; margin-bottom: 7px; transition: border-color 140ms ease;
}
.quest-card.done {
  border-color: rgba(94, 206, 114, 0.55); background: #0c1911;
  box-shadow: 0 0 12px rgba(94, 206, 114, 0.1);
}
.quest-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.quest-card-title {
  font-family: var(--font-pixel); font-size: 14px; color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.quest-card.done .quest-card-title { color: #9cf0be; }
.quest-glyph { font-family: var(--font-mono); color: var(--moss); font-size: 13px; }
.quest-card-pills { display: inline-flex; align-items: center; gap: 5px; }
.quest-xp-pill {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  background: rgba(212, 168, 92, 0.14); border: 1px solid rgba(212, 168, 92, 0.45); color: var(--gold);
}
.quest-state-pill {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  background: #14221a; border: 1px solid #2d4335; color: var(--ink-dim);
}
.quest-state-pill.done { background: #143622; border-color: #48a669; color: #9cf0be; }
.quest-card-desc {
  font-size: 12px; color: var(--ink-dim); line-height: 1.4; margin-bottom: 6px;
}
.quest-bar-track {
  height: 6px; background: #111d16; border: 1px solid #23372a; border-radius: 3px; overflow: hidden;
}
.quest-bar-fill {
  height: 100%; background: linear-gradient(90deg, #b88b3d, #f0c975); transition: width 0.3s ease;
}
.quest-bar-fill.done { background: linear-gradient(90deg, #3da861, #7df595); }
.quest-bar-fill.xp { background: linear-gradient(90deg, #52b86d, var(--gold)); }
.quest-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; font-family: var(--font-mono); font-size: 10px;
}
.quest-evidence { color: #a7bda9; }
.quest-act-btn {
  background: #14231a; border: 1px solid #3c5b46; color: var(--gold);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px; cursor: pointer;
}
.quest-act-btn:hover { border-color: var(--gold); background: #1d2e22; }
.quest-banner-unlock, .equipped-banner-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; border: 1px solid #486b52;
  background: #122419; color: #a8f0bc; margin-top: 3px;
}
.rarity-epic { border-color: rgba(212, 168, 92, 0.6) !important; background: rgba(45, 34, 14, 0.72) !important; color: #ffd982 !important; }
.rarity-mythic { border-color: rgba(182, 134, 240, 0.65) !important; background: rgba(34, 20, 48, 0.75) !important; color: #e2c2ff !important; }
.banners-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
@media (max-width: 520px) { .banners-grid { grid-template-columns: 1fr; } }
.banner-tile {
  text-align: left; padding: 7px 9px; border-radius: 4px;
  background: #09110c; border: 1px solid #24362a; cursor: pointer;
  font-family: var(--font-mono); transition: all 120ms ease;
}
.banner-tile.locked { opacity: 0.45; cursor: default; filter: grayscale(0.5); }
.banner-tile.unlocked:hover { border-color: var(--gold); }
.banner-tile.equipped { box-shadow: 0 0 12px rgba(212, 168, 92, 0.28); border-width: 1.5px; }
.bt-ogham { font-size: 11px; color: var(--moss); margin-bottom: 2px; }
.bt-title { font-family: var(--font-pixel); font-size: 12.5px; color: var(--ink); }
.bt-meta { font-size: 9px; color: var(--ink-dim); margin-top: 2px; }

/* Wave 10 — Rune Cast Visual Payoff Ladder & Unified Desktop/Mobile Execution Deck */
.rc-back-mob { display: none; }
.wb-mobile-txt { display: none; }
.rc-head-left { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.rc-head-links { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rc-size-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-size-rail, .rc-lev-rail { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rc-back-desk { padding: 7px 10px; font-size: 13px; }
.rc-exec-row { justify-content: space-between; }

/* Desktop: keep natural order (Header -> Direction -> Summary -> Payoff Ladder -> Controls) */
.stage[data-scene-mode="runecast"].rc-has-thumb .dock {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 11px;
}
.stage[data-scene-mode="runecast"].rc-has-thumb .rc-context-zone,
.stage[data-scene-mode="runecast"].rc-has-thumb .rc-thumb-deck {
  display: contents;
}
.rc-dock-header { order: 1; margin-bottom: 4px; }
.rc-spoken-line { order: 2; font-size: 14px; margin-bottom: 5px; line-height: 1.42; }
#castPhosphorChartSlot, .stage[data-scene-mode="runecast"] .math-drawer { order: 3; }
.rc-direction-grid { order: 4; margin: 4px 0 6px; }
.rc-offer-summary { order: 5; margin-bottom: 6px; padding: 6px 12px; }
.payoff-ladder { order: 6; }
.rc-exec-row { order: 7; }

.payoff-ladder {
  background: #07100b;
  border: 1px solid #2b4132;
  border-radius: 5px;
  padding: 6px 9px 7px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.payoff-ladder-pending { opacity: 0.78; }
.pl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.25;
}
.pl-title {
  color: #b7d6c0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pl-bounds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  font-size: 10px;
  white-space: nowrap;
}
.pl-bound strong { font-weight: 700; }
.pl-sep { color: #3d5646; }
.pl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.pl-cell {
  appearance: none;
  -webkit-appearance: none;
  background: #0c1711;
  border: 1px solid #23372a;
  border-radius: 4px;
  padding: 5px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  min-width: 0;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.pl-cell.pos {
  border-color: rgba(93, 211, 142, 0.34);
  background: rgba(14, 34, 22, 0.74);
}
.pl-cell.neg {
  border-color: rgba(227, 97, 97, 0.30);
  background: rgba(36, 16, 16, 0.62);
}
.pl-cell.liq {
  border-color: rgba(227, 97, 97, 0.62);
  background: rgba(52, 16, 16, 0.78);
}
.pl-cell:hover,
.pl-cell.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(234, 177, 84, 0.36);
}
.pl-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
.pl-move {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.pl-tag-liq,
.pl-focus-liq {
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 2px;
  background: rgba(227, 97, 97, 0.24);
  border: 1px solid rgba(227, 97, 97, 0.72);
  color: #ffb4b4;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.pl-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-cell.pos .pl-val { color: var(--moss); }
.pl-cell.neg .pl-val { color: #f79b9b; }
.pl-cell.liq .pl-val { color: var(--crimson); }
.pl-bar-track {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 2px;
}
.pl-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #5c7565;
  transition: width 160ms ease;
}
.pl-cell.pos .pl-bar-fill { background: linear-gradient(90deg, #32a860, #7df5a5); }
.pl-cell.neg .pl-bar-fill { background: linear-gradient(90deg, #b54545, #ea7676); }
.pl-cell.liq .pl-bar-fill { background: linear-gradient(90deg, #d63c3c, #ff8f8f); }

/* Wave 11 — Crisp 16-Bit Loading Skeletons, Error Recovery & Actionable Empty States */
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-bar {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #101c14 25%, #1c3123 50%, #101c14 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.35s ease-in-out infinite;
}
.skel-bar.gold {
  background: linear-gradient(90deg, #1b1810 25%, #2f2816 50%, #1b1810 75%);
  background-size: 200% 100%;
}
.skel-stack { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px; }
.skel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 4px;
  background: #0a120d; border: 1px solid #1d2d23;
}
.skel-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 10px 11px; margin-bottom: 7px; border-radius: 5px;
  background: #0a120d; border: 1px solid #1e3024;
}
.ph-loading-veil {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: rgba(4, 10, 7, 0.86);
  font-family: var(--font-mono); font-size: 10px; color: #8fb899; letter-spacing: 0.05em;
  pointer-events: none;
}
.ph-loading-veil .skel-bar { width: 58%; height: 6px; }
.err-recovery-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 5px;
  background: rgba(44, 18, 18, 0.72); border: 1px solid rgba(227, 97, 97, 0.48);
  font-family: var(--font-mono); font-size: 11.5px; color: #f6c4c4;
}
.err-recovery-box.subtle {
  background: rgba(31, 25, 13, 0.72); border-color: rgba(234, 177, 84, 0.42); color: #ebd7a7;
}
.rs-empty-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 10px; border-radius: 5px;
  background: #09110c; border: 1px dashed #2b4032;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim);
}
.rs-empty-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .skel-bar { animation: none; background: #142319; }
}

/* =====================================================================
   SHORT BOARD INLINE 16-BIT PHOSPHOR PRICE PREVIEW DRAWER
   ===================================================================== */
.sb-list.has-preview { max-height: 316px; }
.sb-row { cursor: pointer; }
.sb-row.expanded {
  background: rgba(16, 30, 21, 0.94);
  border-left: 2px solid var(--gold);
  padding-left: 8px;
}
.sb-chev {
  display: inline-block;
  width: 10px;
  font-size: 10px;
  color: #7ea388;
  transition: color 120ms ease;
  flex-shrink: 0;
}
.sb-row:hover .sb-chev,
.sb-row.expanded .sb-chev { color: var(--gold); }

.sb-preview-drawer {
  margin-top: 7px;
  padding: 8px 9px;
  background: linear-gradient(180deg, rgba(4, 11, 8, 0.97) 0%, rgba(7, 16, 11, 0.96) 100%);
  border: 1px solid rgba(219, 179, 98, 0.34);
  border-radius: 5px;
  box-shadow: inset 0 0 18px rgba(94, 206, 114, 0.06);
  cursor: default;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.sb-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sb-preview-wins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sb-win-btn {
  background: #0d1812;
  border: 1px solid #2c4334;
  color: #93b09c;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 110ms ease;
}
.sb-win-btn:hover { border-color: var(--gold); color: var(--gold); }
.sb-win-btn.active {
  background: #233326;
  border-color: var(--gold);
  color: var(--gold);
}
.sb-preview-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.sb-pstat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.sb-pstat .k {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #708d79;
}
.sb-pstat strong { color: #e4efe6; font-weight: 700; }
.sb-pstat strong.pos { color: #7cf5a4; }
.sb-pstat strong.neg { color: #ee827a; }
.sb-preview-canvas-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid #1d3525;
  border-radius: 4px;
  overflow: hidden;
  background: #040a07;
}
.sb-preview-canvas {
  display: block;
  width: 100%;
  height: 112px;
  cursor: crosshair;
}
.sb-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.sb-preview-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #84a08d;
  min-width: 0;
}
.sb-preview-cast {
  padding: 5px 10px;
  font-size: 11px;
}

/* =====================================================================
   OATH-STONE RENEWAL CUT-SCREEN OVERLAY (LIVE MODE)
   ===================================================================== */
.oath-renew-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 32%, rgba(44, 96, 63, 0.24) 0%, rgba(4, 10, 7, 0.90) 58%, rgba(2, 5, 4, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.oath-renew-card {
  width: 100%;
  max-width: 452px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0b1610 0%, #070e0a 100%);
  border: 1.5px solid rgba(219, 179, 98, 0.72);
  border-radius: 12px;
  padding: 26px 24px 20px;
  text-align: center;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(94, 206, 114, 0.16) inset,
    0 0 42px rgba(219, 179, 98, 0.12);
}
.oath-renew-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.oath-renew-ogham {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(234, 177, 84, 0.45);
  padding: 6px 14px;
  border: 1px solid rgba(219, 179, 98, 0.35);
  border-radius: 999px;
  background: rgba(24, 20, 11, 0.7);
}
.oath-renew-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ee09b;
}
.oath-renew-heading {
  margin: 0 0 10px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 24px;
  line-height: 1.2;
  color: #f4e6c4;
  letter-spacing: 0.01em;
}
.oath-renew-copy {
  margin: 0 auto 14px;
  max-width: 370px;
  font-size: 14px;
  line-height: 1.55;
  color: #b7cbbd;
}
.oath-renew-pending-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 177, 84, 0.52);
  background: rgba(45, 34, 13, 0.72);
  color: #f6cf7f;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}
.oath-renew-status {
  min-height: 16px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e9a374;
}
.oath-renew-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.oath-renew-cta {
  width: 100%;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.oath-renew-secondary {
  width: 100%;
  min-height: 38px;
  font-size: 12.5px;
  color: #9ab3a2;
  border-color: rgba(126, 174, 141, 0.28);
  background: rgba(14, 24, 18, 0.65);
}
.oath-renew-secondary:hover {
  border-color: rgba(219, 179, 98, 0.55);
  color: #e4efe6;
}
.oath-renew-foot {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(114, 166, 130, 0.16);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #6d8976;
}
