@font-face {
  font-family: 'Calistoga';
  src: url('/fonts/calistoga.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --pine: #14241c;
  --pine-2: #1b3026;
  --moss: #2f4d3c;
  --cream: #efe3c4;
  --cream-2: #f6edd6;
  --tan: #d9c79a;
  --ink: #1c1710;
  --ink-soft: #4a4033;
  --muted: #6b5d49;
  --oxblood: #9d3324;
  --mustard: #d4a63a;
  --mustard-deep: #9a7420;
  --pond: #2f5856;
  --good: #2f6a45;
  --bad: #9d3324;
  --wood: #5a3a24;
  --wood-light: #7a5338;
  --frame: #efe3c4;
  --rule: #d3c19a;
  --paper: var(--cream);
  --paper-2: var(--cream-2);
  --text: var(--ink);
  --accent: var(--oxblood);
  --accent-2: var(--mustard);
  --pink: var(--oxblood);
  --gold: var(--mustard);
  --gold-soft: #e8c56a;
  --gold-deep: var(--mustard-deep);
  --radius: 0;
  --display: 'Calistoga', 'Palatino Linotype', Palatino, Georgia, serif;
  --font: 'Newsreader', 'Iowan Old Style', Palatino, Georgia, serif;
  --mono: 'IBM Plex Mono', 'Source Code Pro', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background-color: var(--pine);
  background-image:
    radial-gradient(rgba(239, 227, 196, 0.035) 0.6px, transparent 0.7px),
    linear-gradient(180deg, rgba(8, 16, 12, 0.35), transparent 28%);
  background-size: 3px 3px, 100% 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sky, .blot { display: none; }

.masthead {
  padding: 10px 22px 0;
  color: var(--cream);
}
.mast-rule {
  height: 1px;
  background: var(--mustard);
  opacity: 0.85;
}
.mast-rule.thick {
  height: 4px;
  margin-top: 2px;
  background:
    linear-gradient(var(--cream), var(--cream)) 0 0 / 100% 1px no-repeat,
    var(--mustard);
  opacity: 0.9;
}
.mast-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 0 7px;
}
.topbar-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-side.right { justify-content: flex-end; }

.issue {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--mustard);
}
.about-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--tan);
  font: 700 11px var(--font);
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-link:hover { color: var(--cream); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mascot { width: 52px; height: 52px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.wordmark-wrap { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 3px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -0.5px;
  color: var(--cream);
  line-height: 0.9;
}
.tagline {
  margin-top: 5px;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--tan);
}

.pill {
  background: transparent;
  border: 1px solid rgba(239, 227, 196, 0.28);
  border-radius: 0;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--cream);
}
.pill.clock { font-family: var(--display); font-weight: 400; font-size: 14px; }
.conn[data-state="open"] { color: #b7d7b0; }
.conn[data-state="open"]::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #7dba72; margin-right: 7px; }
.conn[data-state="closed"] { color: #e08a7a; }

.x-handle {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 2px;
}
.x-handle:hover { color: var(--mustard); text-decoration: underline; text-underline-offset: 3px; }

.x-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--oxblood);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  padding: 7px 14px 8px;
  border-radius: 0;
  border: 1px solid #6e1f16;
  box-shadow: 2px 2px 0 #6e1f16;
}
.x-cta:hover { background: #b8402e; }
.x-cta-block { width: 100%; margin: 4px 0 12px; padding: 10px 14px; box-shadow: 3px 3px 0 #6e1f16; }
.x-logo { font-weight: 900; font-size: 15px; font-family: var(--font); }

.token-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 4px; border-radius: 0; cursor: pointer;
  font: 700 12px var(--font); letter-spacing: 0.6px; color: var(--pine);
  background: var(--mustard);
  border: 1px solid #8a6418;
}
.token-pill:hover { filter: brightness(1.06); }
.token-pill-coin { width: 22px; height: 22px; }

.layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  padding: 14px 22px 18px;
}
.stage-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }

.stage-frame {
  flex: 1;
  min-height: 260px;
  padding: 11px;
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, #4a2e1c 0 2px, #6a4228 2px 7px, #3e2616 7px 9px);
  box-shadow:
    inset 0 1px 0 rgba(239, 227, 196, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
}
.stage {
  position: relative;
  flex: 1;
  border-radius: 0;
  overflow: hidden;
  background: #1f4a2a;
  border: 3px solid var(--cream);
  box-shadow: inset 0 0 0 1px rgba(80, 50, 20, 0.45);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(8, 12, 8, 0.45); }

.live-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 7px;
  background: var(--oxblood);
  border: 1px dashed var(--cream);
  padding: 4px 10px; border-radius: 0;
  font-family: var(--display);
  font-size: 11px; font-weight: 400; letter-spacing: 1.6px; color: var(--cream);
  pointer-events: none;
  transform: rotate(-2deg);
}
.live-badge .rec { width: 8px; height: 8px; background: var(--cream); }

.tooltip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--cream);
  padding: 5px 10px; border-radius: 0;
  font-size: 13px; font-weight: 600;
  transform: translate(-50%, -135%);
  white-space: nowrap;
}
.stage-hint, .ff-badge {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: rgba(20, 36, 28, 0.88); color: var(--cream);
  border: 1px solid rgba(239, 227, 196, 0.25);
  border-radius: 0; padding: 6px 12px;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}
.ff-badge { bottom: auto; top: 12px; left: 50%; transform: translateX(-50%); color: var(--mustard); }

.welcome {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: rgba(12, 20, 16, 0.52);
}
.welcome.leaving { animation: fade-out 0.35s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
.welcome-card {
  position: relative;
  width: min(460px, 90%);
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: 16px 26px 18px;
  border-radius: 0;
  text-align: left;
  background: var(--cream-2);
  border: 1px solid var(--tan);
  box-shadow: 6px 6px 0 rgba(20, 36, 28, 0.55);
  color: var(--ink);
}
.welcome-mascot {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 4px;
  flex: none;
}
.welcome-kicker { display: none; }
.welcome-card h2 { font-family: var(--display); font-size: 30px; margin: 0 0 6px; font-weight: 400; text-align: center; }
.welcome-lede { color: var(--ink-soft); margin: 0 0 10px; font-size: 15px; line-height: 1.4; text-align: center; font-style: italic; }
.welcome-points { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.welcome-points li { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--rule); padding: 7px 0 2px; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
.welcome-points li > span {
  flex: none; width: 22px; font-family: var(--display); font-weight: 400; color: var(--oxblood); font-size: 18px;
}
.welcome-points b { color: var(--ink); }
.welcome-coin {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 12px 8px;
  border: 1px solid #c9a24a;
  background: rgba(212, 166, 58, 0.12);
}
.welcome-coin-icon { width: 36px; height: 36px; flex: none; }
.welcome-coin b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.welcome-coin p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.welcome-coin i { font-style: normal; font-weight: 700; color: var(--ink); }

.roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.card {
  --c: #999;
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 12px;
  border-radius: 0;
  background: var(--cream);
  border: 1px solid rgba(239, 227, 196, 0.18);
  cursor: pointer; text-align: left; color: var(--ink); min-width: 0;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.card:hover { outline: 1px solid var(--c); outline-offset: -1px; }
.card.selected { outline: 1px solid var(--c); outline-offset: -1px; background: var(--cream-2); }
.card canvas { width: 40px; height: 40px; flex: none; }
.card-body { min-width: 0; flex: 1; }
.card-name { font-family: var(--display); font-weight: 400; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.card-activity { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .x-flag { font-size: 10px; background: var(--ink); color: var(--cream); border-radius: 0; padding: 0 4px; font-weight: 700; }
.card-meter { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; background: var(--rule); overflow: hidden; }
.card-meter span { display: block; height: 100%; background: var(--c); }

.sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid var(--tan);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.28);
}
.tabs { display: flex; gap: 0; padding: 0; margin: 0; border-bottom: 2px solid var(--ink); }
.tab {
  flex: 1; background: none; border: 0; color: var(--muted);
  padding: 11px 4px 8px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border-radius: 0; border-bottom: 3px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--oxblood); background: transparent; box-shadow: none; }
.tab-gold.active { border-bottom-color: var(--mustard-deep); }
.badge { background: var(--oxblood); color: var(--cream); border-radius: 0; font-size: 10px; padding: 1px 5px; margin-left: 4px; }
.panel { display: none; flex: 1; min-height: 0; overflow-y: auto; flex-direction: column; }
.panel.active { display: flex; }
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: var(--tan); }

.filters {
  flex: none; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 10px 12px 6px; position: sticky; top: 0; z-index: 1;
  background: var(--cream-2); border-bottom: 1px solid var(--rule);
}
.chip {
  background: transparent; border: 1px solid var(--rule); color: var(--muted);
  padding: 3px 8px; border-radius: 0; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip.active { color: var(--cream); background: var(--pine); border-color: var(--pine); }

.feed, .comments { list-style: none; margin: 0; padding: 8px 14px 18px; display: flex; flex-direction: column; gap: 0; }
.comments:empty::after {
  content: "Nothing yet. Post on 𝕏 — they only hear you there.";
  display: block;
  padding: 28px 8px 16px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}
.feed-item {
  --tc: var(--moss);
  position: relative;
  display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  padding: 10px 4px 10px 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  animation: none;
}
.feed-item::before { content: none; }
.feed-item.social { --tc: var(--oxblood); }
.feed-item.action { --tc: var(--moss); }
.feed-item.thought { --tc: var(--pond); font-style: italic; }
.feed-item.world { --tc: var(--mustard-deep); }
.feed-item.influence { --tc: var(--ink); }
.feed-item.treasury { --tc: var(--mustard-deep); }
.feed-item.minor { opacity: 0.72; }
.feed-emoji { font-size: 16px; width: 28px; height: 28px; display: grid; place-items: center; }
.feed-text { font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.feed-item.thought .feed-text { color: var(--ink-soft); }
.feed-time { color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines { margin: 7px 0 0; padding: 8px 0 0; list-style: none; display: flex; flex-direction: column; gap: 3px; border-top: 1px dashed var(--rule); }
.lines li { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.lines b { font-weight: 700; color: var(--ink); }
.name { font-weight: 700; cursor: pointer; }
.name:hover { text-decoration: underline; }

.howto { padding: 16px; border-bottom: 1px solid var(--rule); }
.howto h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.howto p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.howto strong, .howto a { color: var(--ink); font-weight: 700; }
.howto a { text-decoration: underline; text-underline-offset: 2px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.example {
  font-size: 12.5px; font-weight: 600;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink); border-radius: 0; padding: 5px 9px;
  cursor: pointer; text-decoration: none;
}
.example:hover { border-color: var(--oxblood); color: var(--oxblood); }
.source-note { font-size: 12.5px !important; font-style: italic; }

.composer { display: none !important; }
.btn {
  background: var(--pine);
  color: var(--cream); border: 0; border-radius: 0;
  padding: 8px 16px; font-family: var(--display); font-weight: 400; font-size: 15px; cursor: pointer;
}
.btn:hover { background: var(--oxblood); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-big { font-size: 18px; padding: 10px 28px; width: 100%; }

.comment { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.comment-head a { color: var(--ink); font-weight: 700; text-decoration: none; }
.comment-head a:hover { text-decoration: underline; }
.src { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; padding: 2px 6px; border-radius: 0; background: var(--rule); color: var(--ink-soft); font-weight: 700; }
.src.x { background: var(--ink); color: var(--cream); }
.comment-text { margin: 7px 0 9px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.reactions { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 0; border-top: 1px dashed var(--rule); }
.reaction { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.reaction .dot { width: 8px; height: 8px; border-radius: 0; margin-top: 5px; flex: none; }
.reaction .verdict { margin-left: auto; white-space: nowrap; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.reaction .verdict.yes { color: var(--good); }
.reaction .verdict.no { color: var(--bad); }

.profile { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.profile .empty { color: var(--muted); text-align: center; margin-top: 50px; font-weight: 600; }
.empty-mascot { width: 80px; height: 80px; }
.profile-head { display: flex; gap: 12px; align-items: center; padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.profile-head canvas { width: 72px; height: 72px; flex: none; }
.profile-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; }
.profile-activity { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; font-weight: 600; }
.profile-mood { font-size: 13.5px; margin-top: 3px; font-weight: 600; }
.bio { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.catch { font-family: var(--display); color: var(--oxblood); font-size: 16px; }
.section { padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.section h4 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); font-weight: 700; }
.bars { display: grid; grid-template-columns: 74px 1fr 30px; gap: 7px 10px; align-items: center; font-size: 13px; font-weight: 600; }
.bars.rels { grid-template-columns: 74px 1fr 92px; }
.bar { height: 7px; border-radius: 0; background: var(--rule); overflow: hidden; position: relative; }
.bar > span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 0; transition: width 0.6s ease, background 0.6s ease; box-shadow: none; }
.bar.center > span { left: 50%; }
.bar.center::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-soft); }
.num { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 11.5px; }
.rel-label { color: var(--muted); font-size: 11.5px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.list li { background: transparent; padding: 6px 0; border-bottom: 1px dashed var(--rule); line-height: 1.45; font-weight: 600; }
.list li.pos { border-left: 0; }
.list li.neg { color: var(--bad); }
.profile-bubble { font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: transparent; border: 1px solid var(--rule); padding: 3px 8px; border-radius: 0; font-size: 12.5px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: transparent; border: 1px solid var(--rule); border-radius: 0; padding: 8px 4px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; }
.stat span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }

.sim-tag { display: none; }
.vault {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 0; cursor: pointer;
  color: var(--cream); text-align: left; font: inherit;
  background: rgba(20, 36, 28, 0.9);
  border: 1px solid var(--mustard);
}
.vault:hover { background: #1b3026; }
.vault-coin { width: 34px; height: 34px; flex: none; }
.vault-coin svg { width: 100%; height: 100%; }
.vault-body { display: flex; flex-direction: column; gap: 1px; min-width: 188px; }
.vault-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vault-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mustard); }
.vault-balance { display: flex; align-items: baseline; gap: 6px; }
.vault-num {
  font: 400 24px/1.05 var(--display); font-variant-numeric: tabular-nums; color: var(--cream);
}
.vault-tk { font-size: 11px; font-weight: 700; color: var(--mustard); letter-spacing: 0.4px; }
.vault-eta {
  margin-top: 3px;
  font: 700 11.5px/1.3 var(--mono);
  color: var(--mustard);
  letter-spacing: 0;
}

.event-banner {
  position: absolute; z-index: 3; top: 64px; left: 50%;
  display: flex; align-items: center; gap: 12px;
  max-width: min(540px, calc(100% - 40px));
  padding: 9px 14px; border-radius: 0;
  background: rgba(20, 36, 28, 0.94); color: var(--cream);
  border: 1px solid var(--mustard);
  pointer-events: none; transform: translateX(-50%);
}
.event-banner.show { animation: banner 6s ease forwards; }
@keyframes banner {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  8%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
.eb-emoji { font-size: 22px; }
.eb-body { display: flex; flex-direction: column; min-width: 0; }
.eb-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mustard); }
.eb-text { font-size: 14px; font-weight: 600; line-height: 1.35; }
.eb-amount { font: 700 12px var(--mono); white-space: nowrap; margin-left: 4px; color: var(--mustard); }

.coin-flag { font-size: 11px; margin-left: 3px; }
.treasurer-badge {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 0; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: inherit; color: var(--ink); background: transparent;
}
.treasurer-badge b { display: block; color: var(--mustard-deep); font-size: 13.5px; }
.treasurer-badge span span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tb-coin { font-size: 20px; }
.tb-go { margin-left: auto; color: var(--oxblood); font-weight: 700; }

.treasury { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tr-hero { padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.tr-hero-top { display: flex; align-items: center; gap: 12px; }
.tr-coin-wrap { width: 52px; height: 52px; flex: none; }
.tr-coin { width: 100%; height: 100%; }
.tr-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.tr-balance-row { display: flex; align-items: baseline; gap: 7px; }
#tr-balance { font: 400 40px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.tr-tk { font-weight: 700; color: var(--mustard-deep); font-size: 13px; }
.tr-eta { margin: 8px 0 0; font: 700 13.5px/1.4 var(--mono); color: var(--oxblood); }
.tr-keeper {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 10px; cursor: pointer;
  padding: 8px 0 0; border: 0; border-top: 1px dashed var(--rule); font: inherit; color: var(--ink); text-align: left; background: none;
}
.tr-keeper canvas { width: 36px; height: 36px; }
.tr-keeper span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tr-keeper .tr-keeper-cta { margin-left: auto; color: var(--oxblood); font-weight: 700; }

.tr-token { padding: 0 0 12px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 9px; }
.tr-token-head { display: flex; align-items: center; gap: 10px; }
.tr-token-head b { display: block; font: 400 18px var(--display); color: var(--ink); }
.tr-token-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tr-token-coin { width: 28px; height: 28px; }
.tr-ca { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.tr-ca-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.tr-ca code { font-size: 13px; color: var(--ink); flex: 1; font-family: var(--mono); }
.tr-ca-link { color: inherit; text-decoration: none; min-width: 0; flex: 1; }
.tr-ca-link:hover code { text-decoration: underline; }
.tr-copy { border: 1px solid var(--rule); border-radius: 0; padding: 4px 9px; font: 700 12px var(--font); cursor: pointer; background: transparent; color: var(--ink); }
.tr-copy:hover { border-color: var(--ink); }
.tr-chain { display: flex; align-items: center; gap: 10px; }
.tr-chain b { display: block; font: 400 16px var(--display); }
.tr-chain span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tr-chain a { margin-left: auto; color: var(--moss); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.live-dot { width: 8px; height: 8px; border-radius: 0; background: var(--good); flex: none; }
.tr-buttons { display: flex; gap: 8px; }
.btn-gold, .btn-ghost {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 0; text-decoration: none; font: 400 15px var(--display);
}
.btn-gold { color: var(--ink); background: var(--mustard); border: 1px solid #8a6418; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-coin { width: 18px; height: 18px; }
.btn-ghost { flex: 0 0 auto; color: var(--ink); background: transparent; border: 1px solid var(--rule); }

.tr-section { padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.tr-section h4 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); font-weight: 700; }
.tr-wish { display: flex; flex-direction: column; gap: 8px; }
.wish { display: flex; align-items: center; gap: 10px; }
.wish-emoji { font-size: 18px; width: 28px; text-align: center; flex: none; }
.wish-body { flex: 1; }
.wish-row { display: flex; justify-content: space-between; font-size: 14px; }
.wish-row span { color: var(--muted); font-weight: 600; font-size: 12px; }
.wish.done .wish-row span { color: var(--good); }
.tr-how p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.tr-how i { color: var(--oxblood); }
.tr-ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tr-ledger li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.lg-emoji { font-size: 16px; }
.lg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-body b { font-size: 13.5px; }
.lg-body span { font-size: 11px; color: var(--muted); font-weight: 600; }
.lg-amt { font: 700 13px var(--mono); font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  body { overflow: auto; display: block; }
  .layout { grid-template-columns: 1fr; min-height: auto; }
  .stage-frame { flex: none; aspect-ratio: 44 / 28; min-height: 0; }
  .sidebar { height: 72vh; }
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .masthead { padding: 10px 12px 0; }
  .mast-row { grid-template-columns: 1fr; justify-items: center; }
  .mast-row .logo { order: -1; }
  .topbar-side, .topbar-side.right { justify-content: center; }
  .wordmark { font-size: 36px; }
  .logo-mascot { width: 44px; height: 44px; }
  .live-badge { top: 8px; left: 8px; }
  .stage-hint { display: none; }
  .vault { top: 8px; right: 8px; padding: 5px 8px 5px 5px; gap: 7px; }
  .vault-coin { width: 24px; height: 24px; }
  .vault-body { min-width: 0; }
  .vault-num { font-size: 16px; }
  .vault-label { display: none; }
  .event-banner { top: 52px; }
  .ff-badge { display: none; }
  .welcome-card { padding: 48px 16px 16px; }
  .layout { padding: 12px 10px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
