:root {
  --bg: #07090f;
  --panel: rgba(14, 16, 28, 0.80);
  --panel-solid: #11131f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --dim: #9aa0b4;
  --faint: #636a80;
  --amber: #ffcf6b;
  --amber-d: #c98f2a;
  --red: #ff6b6b;
  --green: #7ee08a;
  --blue: #7cc4ff;
  --violet: #c59bff;
  --mu: "Silkscreen", ui-monospace, monospace;
  --ui: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 13px/1.4 var(--ui); }
canvas#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: crosshair; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.fine { color: var(--dim); font-size: 12px; }

.logo { font-family: var(--mu); font-size: 22px; letter-spacing: 0.08em; color: var(--amber); text-shadow: 0 0 18px rgba(255, 207, 107, 0.35); }
.logo.big { font-size: 56px; letter-spacing: 0.1em; }
.btn { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; transition: background 0.15s, transform 0.08s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--amber); color: #1b1305; border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: #ffd987; }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn.wide { width: 100%; margin-top: 8px; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
a.icon-btn { display: grid; place-items: center; color: var(--text); text-decoration: none; font-weight: 600; }
.docs-link { margin-top: 18px; }
.docs-link a { color: var(--amber); text-decoration: none; }
.docs-link a:hover { text-decoration: underline; }

/* splash */
.splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(40, 32, 70, 0.55), rgba(5, 6, 12, 0.92)); backdrop-filter: blur(3px); }
.splash-card { text-align: center; max-width: 520px; padding: 32px 22px; }
.lede { font-size: 19px; margin: 18px 0 8px; }
.splash .btn { margin: 18px 6px 0; font-size: 15px; padding: 11px 20px; }

/* top */
#top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: flex-start; gap: 14px; padding: 10px 14px; pointer-events: none; }
#top > * { pointer-events: auto; }
.brand { padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px); }
.brand .sub { color: var(--dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: -2px; }
.stats { display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; backdrop-filter: blur(8px); }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 0 6px; }
.stat .k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.stat .v { font-family: var(--mu); font-size: 17px; }
.plan { flex: 1; max-width: 430px; margin: 0 auto; background: var(--panel); border: 1px solid rgba(255, 207, 107, 0.25); border-radius: 12px; padding: 7px 12px 8px; backdrop-filter: blur(8px); }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; }
.plan-label { font-family: var(--mu); color: var(--amber); font-size: 12px; letter-spacing: 0.12em; }
.plan-pct { font-family: var(--mu); color: var(--amber); font-size: 18px; }
.plan-bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; margin: 3px 0 4px; }
.plan-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-d), var(--amber), #fff3cf); transition: width 0.8s; }
.plan-goal { font-weight: 600; font-size: 13px; }
.plan-step { color: var(--dim); font-size: 12px; font-style: italic; }
.me { display: flex; gap: 8px; align-items: flex-start; }
.me-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; min-width: 170px; backdrop-filter: blur(8px); }
.me-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-family: ui-monospace, monospace; font-size: 12px; }
.me-row.small { color: var(--dim); }
.tier { font-family: var(--mu); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 207, 107, 0.15); color: var(--amber); text-transform: uppercase; }
.ap { position: relative; height: 14px; background: rgba(255, 255, 255, 0.07); border-radius: 7px; overflow: hidden; margin-top: 5px; }
.ap-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #4c7cff, var(--blue)); transition: width 0.3s; }
#ap-txt { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 14px; color: #fff; }

/* banners */
#banners { position: fixed; top: 112px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; gap: 8px; width: min(430px, 92vw); pointer-events: none; }
.banner { pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(8px); animation: drop 0.4s ease; }
.banner.demand { border-color: rgba(255, 107, 107, 0.45); box-shadow: 0 0 24px rgba(255, 80, 80, 0.15); }
.banner.question { border-color: rgba(124, 196, 255, 0.4); }
.b-title { font-family: var(--mu); font-size: 11px; letter-spacing: 0.14em; color: var(--red); }
.question .b-title { color: var(--blue); }
.b-text { font-size: 15px; font-weight: 600; margin: 2px 0 4px; }
.b-bar { height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.b-fill { height: 100%; width: 0; background: var(--red); transition: width 0.5s; }
.b-meta { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 11px; margin-top: 4px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* chorus */
/* big captions (the colony sings, the hive answers): lower middle, on their own panel, above every banner */
.chorus { position: fixed; top: auto; bottom: 150px; left: 50%; transform: translateX(-50%); z-index: 14; text-align: center; pointer-events: none; width: min(820px, 92vw);
  background: rgba(10, 8, 20, 0.62); border: 1px solid rgba(255, 207, 107, 0.3); border-radius: 16px; padding: 10px 16px 12px; backdrop-filter: blur(6px); }
.chorus-mu { font-family: var(--mu); font-size: clamp(18px, 3vw, 34px); color: #fff; text-shadow: 0 0 30px rgba(255, 220, 150, 0.8), 0 0 4px #000; letter-spacing: 0.06em; }
.chorus-en { margin-top: 6px; font-size: clamp(14px, 1.8vw, 20px); color: var(--amber); text-shadow: 0 0 8px #000, 0 0 2px #000; font-style: italic; }
.chorus.show { animation: chorusIn 0.6s ease; }
@keyframes chorusIn { from { opacity: 0; transform: translate(-50%, 14px) scale(0.97); } to { opacity: 1; transform: translateX(-50%); } }

/* tools */
#tools { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 7px; backdrop-filter: blur(8px); }
.tool { position: relative; width: 46px; height: 46px; border-radius: 11px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.tool:hover { background: rgba(255, 255, 255, 0.1); }
.tool.on { border-color: var(--amber); background: rgba(255, 207, 107, 0.14); box-shadow: 0 0 14px rgba(255, 207, 107, 0.25); }
.tool.locked { opacity: 0.35; filter: grayscale(0.8); }
.tool .key { position: absolute; right: 3px; bottom: 1px; font-family: var(--mu); font-size: 9px; color: var(--dim); }
.tool .cost { position: absolute; left: 3px; top: 1px; font-size: 9px; color: var(--blue); font-family: var(--mu); }
.tool-hint { position: fixed; left: 76px; top: 50%; z-index: 10; transform: translateY(-50%); max-width: 240px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.tool-hint.show { opacity: 1; }
.tool-hint b { color: var(--amber); }

/* talk */
.talkbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 12; width: min(640px, 94vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; backdrop-filter: blur(10px); }
.modes { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.modes button { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 12px; cursor: pointer; color: var(--dim); }
.modes button.on { background: rgba(255, 207, 107, 0.15); border-color: var(--amber); color: var(--text); }
#talk-form { display: flex; gap: 6px; }
#talk-input { flex: 1; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: 14px var(--ui); outline: none; }
#talk-input:focus { border-color: var(--amber); }
.talk-help { color: var(--faint); font-size: 11px; margin-top: 5px; min-height: 14px; }
.gift-sugg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.gift-sugg button { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; cursor: pointer; font-size: 12px; }

/* inspector */
.inspector { position: fixed; left: 76px; bottom: 16px; z-index: 11; width: 300px; max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; backdrop-filter: blur(10px); }
.insp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.insp-name { font-family: var(--mu); font-size: 18px; }
.insp-sub { color: var(--dim); font-size: 12px; }
.insp-mad { color: var(--red); font-family: var(--mu); font-size: 11px; letter-spacing: 0.08em; }
.needs { display: grid; grid-template-columns: 56px 1fr 30px; gap: 3px 6px; align-items: center; margin: 8px 0; font-size: 11px; color: var(--dim); }
.need-bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.need-bar > div { height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 8px; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.chip.mu { font-family: var(--mu); font-size: 10px; color: var(--violet); }
.insp-sec { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.insp-actions { display: flex; gap: 6px; margin-top: 8px; }
.insp-line { font-style: italic; color: var(--dim); font-size: 12px; margin: 4px 0; }

/* side */
#side { position: fixed; right: 12px; top: 112px; bottom: 16px; z-index: 10; width: 330px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); overflow: hidden; transition: transform 0.25s; }
#side.collapsed { transform: translateX(calc(100% - 44px)); }
.tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); align-items: center; }
.tabs button[data-tab] { flex: 1; background: transparent; border: 0; border-radius: 8px; padding: 6px 4px; font-size: 12px; color: var(--dim); cursor: pointer; }
.tabs button[data-tab].on { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.tab-body { flex: 1; overflow: auto; padding: 8px 10px 12px; }
.entry { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.entry .t { color: var(--faint); font-size: 10px; font-family: var(--mu); margin-right: 4px; }
.entry.death { color: #ffb3b3; } .entry.madness { color: #ffc2f0; } .entry.gift { color: #d9f6c8; } .entry.tech { color: var(--amber); }
.entry.demand { color: #ffd0a8; } .entry.cult { color: var(--violet); } .entry.murder, .entry.accident { color: #ff9a9a; } .entry.era, .entry.plan { color: var(--amber); font-weight: 600; }
.thought { padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: #f3e6ff; font-style: italic; }
.thought .t { display: block; font-style: normal; color: var(--faint); font-size: 10px; font-family: var(--mu); margin-bottom: 2px; }
.reply { padding: 8px 10px; margin: 8px 0; border-radius: 10px; background: rgba(197, 155, 255, 0.08); border: 1px solid rgba(197, 155, 255, 0.25); font-size: 12.5px; }
.tweet { padding: 10px; margin: 8px 0; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.tweet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tweet-av { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffe3b0, #e8a24a); display: grid; place-items: center; font-size: 13px; }
.tweet-name { font-weight: 700; font-size: 13px; } .tweet-handle { color: var(--faint); font-size: 12px; }
.tweet-body { font-size: 13.5px; white-space: pre-wrap; }
.tweet-st { font-size: 10px; color: var(--faint); margin-top: 4px; font-family: var(--mu); }
.sec { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 12px 0 4px; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.row .n { color: var(--dim); }

/* toasts */
#toasts { position: fixed; left: 76px; top: 120px; z-index: 13; display: flex; flex-direction: column; gap: 6px; width: min(330px, 70vw); pointer-events: none; }
.toast { background: var(--panel-solid); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; animation: toastIn 0.3s ease; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.toast.bad { border-left-color: var(--red); } .toast.good { border-left-color: var(--green); } .toast.x { border-left-color: var(--blue); } .toast.hive { border-left-color: var(--violet); }
.toast.out { opacity: 0; transition: opacity 0.5s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.extinct { position: fixed; inset: 0; z-index: 7; display: grid; place-content: center; text-align: center; font-family: var(--mu); font-size: 30px; color: #ddd; background: rgba(0, 0, 0, 0.45); pointer-events: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(3, 4, 9, 0.7); backdrop-filter: blur(4px); }
.modal-card { width: min(430px, 94vw); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.modal-title { font-family: var(--mu); font-size: 20px; color: var(--amber); margin-bottom: 4px; }
.tier-table { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12px; margin: 10px 0 12px; }
.tier-table .tn { font-family: var(--mu); color: var(--amber); font-size: 11px; text-transform: uppercase; }
.test-box { border: 1px dashed rgba(124, 196, 255, 0.4); border-radius: 12px; padding: 10px; margin-top: 10px; }
.test-title { font-family: var(--mu); color: var(--blue); font-size: 12px; }
.test-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.test-tiers button { text-align: left; }
.test-tiers small { display: block; color: var(--dim); font-size: 10.5px; }

@media (max-width: 900px) {
  .stats .stat:nth-child(n+5) { display: none; }
  #side { width: 290px; top: auto; height: 42vh; }
  .plan { max-width: none; }
  .brand .sub { display: none; }
}
@media (max-width: 640px) {
  #top { flex-wrap: wrap; gap: 6px; padding: 6px; }
  .brand { display: none; }
  .stats { order: 2; padding: 4px 4px; }
  .stat { min-width: 44px; padding: 0 3px; }
  .stat .v { font-size: 14px; }
  .stats .stat:nth-child(2) { display: none; }
  .plan { order: 3; flex-basis: 100%; padding: 5px 10px 6px; }
  .plan-step { display: none; }
  #banners { top: 168px; gap: 5px; }
  .banner { padding: 6px 10px; }
  .b-text { font-size: 13px; }
  #tools { top: auto; bottom: 52px; transform: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; left: 6px; right: 6px; justify-content: flex-start; padding: 5px; }
  .tool { flex: 0 0 auto; width: 40px; height: 40px; font-size: 19px; }
  .talkbar { bottom: 112px; }
  .inspector { left: 6px; right: 6px; width: auto; bottom: 112px; max-height: 42vh; }
  #side { left: 6px; right: 6px; width: auto; top: auto; bottom: 6px; height: 50vh; }
  #side.collapsed { transform: translateY(calc(100% - 42px)); }
  #toasts { left: 6px; top: 168px; width: calc(100vw - 12px); }
  .toast { font-size: 12px; }
  .tool-hint { display: none; }
  .chorus { bottom: 170px; padding: 8px 10px 10px; }
}

/* token tab */
.tk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.tk-pill { font-family: var(--mu); font-size: 10px; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 6px; background: rgba(126, 224, 138, 0.14); color: var(--green); border: 1px solid rgba(126, 224, 138, 0.35); }
.tk-pill.devnet, .tk-pill.test { background: rgba(124, 196, 255, 0.12); color: var(--blue); border-color: rgba(124, 196, 255, 0.35); }
.tk-sym { font-family: var(--mu); font-size: 18px; color: var(--amber); }
.tk-ca { display: flex; gap: 6px; align-items: center; margin: 4px 0 8px; }
.tk-ca code { flex: 1; font-size: 12px; color: var(--dim); }
.tk-ca a { text-decoration: none; }
.tk-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.tk-market > div { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 9px; padding: 5px 7px; display: flex; flex-direction: column; }
.tk-market .k { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.tk-market .v { font-family: var(--mu); font-size: 13px; } .tk-market small { font-family: var(--ui); color: var(--dim); font-size: 10px; }
.tk-curve, .tk-next { position: relative; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin: 6px 0; }
.tk-curve-fill { height: 100%; background: linear-gradient(90deg, #3ea35a, var(--green)); }
.tk-next-fill { height: 100%; background: linear-gradient(90deg, var(--amber-d), var(--amber)); }
.tk-curve span, .tk-next span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--text); text-shadow: 0 1px 2px #000; }
.tk-buy { display: block; text-align: center; text-decoration: none; }
.tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 6px 0; }
.tk-offer { display: flex; gap: 6px; margin: 4px 0 6px; }
.tk-offer input { flex: 1; min-width: 0; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 7px 9px; font: inherit; }
.tk-tier { font-family: var(--mu); color: var(--amber); text-transform: uppercase; }
.row.tk-here { color: var(--amber); }
.row a { color: var(--blue); }
.entry.offering { color: #ffcf9a; } .entry.fees { color: #c8f0a8; }

/* inside an X post */
.embed-play { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)); cursor: pointer; font-family: var(--mu); color: #fff; text-shadow: 0 2px 6px #000; }
.embed-play button { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--amber); color: #1b1305; font-size: 34px; cursor: pointer; box-shadow: 0 6px 30px rgba(255, 207, 107, 0.45); }
.embed-bar { position: fixed; right: 8px; bottom: 8px; z-index: 30; display: flex; gap: 6px; }
.embed-bar .btn { background: var(--panel-solid); text-decoration: none; }
.embed-pair { position: fixed; left: 8px; right: 8px; bottom: 46px; z-index: 31; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
body.embed #side, body.embed #share-btn, body.embed #docs-btn, body.embed .brand .sub, body.embed #inspector, body.embed .plan-step { display: none !important; }
body.embed #top { flex-wrap: wrap; gap: 6px; padding: 6px; }
body.embed .brand { padding: 3px 8px; }
body.embed .brand .logo { font-size: 15px; }
body.embed .stats { padding: 3px 4px; }
body.embed .stat { min-width: 40px; padding: 0 3px; }
body.embed .stat .v { font-size: 13px; }
body.embed .stats .stat:nth-child(n+4) { display: none; }
body.embed .plan { order: 3; flex-basis: 100%; padding: 4px 9px 5px; }
body.embed .me { margin-left: auto; }
body.embed #wallet-btn { display: none; }
body.embed #banners { top: 126px; }
body.embed .banner { padding: 5px 9px; }
body.embed #tools { top: auto; bottom: 46px; transform: none; flex-direction: row; overflow-x: auto; left: 6px; right: 6px; padding: 4px; }
body.embed #tools .tool { flex: 0 0 auto; width: 36px; height: 36px; font-size: 17px; }
body.embed .talkbar { bottom: 92px; }
body.embed #toasts { left: 6px; top: 104px; width: calc(100vw - 12px); }
body.embed .tool-hint { display: none; }
a.btn { color: inherit; text-decoration: none; display: inline-block; }
.tk-ca a.btn { color: var(--text); }
body.embed:not(.signed) #tools { display: none; }
body.embed #toasts { top: auto; bottom: 46px; }
body.embed #toasts .toast:nth-child(n+3) { display: none; }
body.embed.signed #toasts { bottom: 92px; }
.pair-code { font-family: var(--mu); font-size: 26px; letter-spacing: 0.12em; color: var(--amber); text-align: center; }
.pair-input { width: 100%; margin: 6px 0; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 10px; color: var(--amber); padding: 10px; font: 22px var(--mu); letter-spacing: 0.14em; text-align: center; text-transform: uppercase; }
a.toast.link { display: block; color: var(--text); text-decoration: underline; pointer-events: auto; }
#tk-offer-go.armed { background: var(--red); color: #fff; }
.chorus-head { font-family: var(--mu); font-size: 12px; letter-spacing: 0.16em; color: var(--violet); text-shadow: 0 0 8px #000; margin-bottom: 4px; }
.chorus.answer .chorus-mu { font-size: clamp(16px, 2.4vw, 26px); opacity: 0.85; }
.chorus.answer .chorus-en { font-size: clamp(16px, 2.2vw, 24px); color: #f3e6ff; font-style: normal; font-weight: 600; max-width: 760px; margin: 8px auto 0; line-height: 1.35; }
.talk-fields { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#talk-input { width: 100%; }
#gift-does { width: 100%; background: rgba(0, 0, 0, 0.25); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); font: 13px var(--ui); outline: none; }
#gift-does:focus { border-color: var(--amber); }
#talk-send { align-self: flex-start; }
.chorus.answer { border-color: rgba(197, 155, 255, 0.4); }

body.embed .chorus { bottom: 50px; padding: 6px 10px 8px; }
body.embed.signed .chorus { bottom: 94px; }
@media (min-width: 901px) { body:not(.embed) .chorus { left: calc((100vw - 350px) / 2); width: min(720px, calc(100vw - 460px)); } }
.chorus.answer .chorus-en { font-size: clamp(15px, 1.7vw, 20px); }
.chorus.answer .chorus-mu { font-size: clamp(15px, 2vw, 22px); }
.b-clock { float: right; font-family: var(--mu); letter-spacing: 0.04em; color: var(--text); }
.b-fill.q { background: var(--blue); transition: width 0.3s linear; }
.b-fill.a { background: var(--violet); transition: width 0.3s linear; }
.banner.question .b-bar, .banner.askwait .b-bar { margin: 4px 0 3px; }
.banner.question.urgent { border-color: var(--red); animation: urgent 0.9s ease-in-out infinite alternate; }
.banner.question.urgent .b-fill.q { background: var(--red); }
@keyframes urgent { from { box-shadow: 0 0 0 rgba(255, 90, 90, 0); } to { box-shadow: 0 0 22px rgba(255, 90, 90, 0.35); } }
.banner.askwait { border-color: rgba(197, 155, 255, 0.45); }
.banner.askwait .b-title { color: var(--violet); }
/* phones and the X post: little pop-ups drop in at the very top, over everything, two at a time */
@media (max-width: 640px) {
  #toasts { top: 6px; left: 6px; right: 6px; width: auto; z-index: 15; }
  #toasts .toast:nth-child(n+3) { display: none; }
}
body.embed #toasts, body.embed.signed #toasts { top: 6px; bottom: auto; z-index: 15; }

.grow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); padding: 3px 0; }
.grow > span:first-child { min-width: 108px; }
.grow.or { color: var(--blue); }
.grow-bar { flex: 1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.grow-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #3ea35a, var(--green)); }
.grow.or .grow-bar > span { background: var(--blue); }

.wallet-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--amber); }
.wallet-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 207, 107, 0.25); border-top-color: var(--amber); animation: wspin 0.8s linear infinite; flex: none; }
@keyframes wspin { to { transform: rotate(360deg); } }
.wallet-err { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffc2c2; font-size: 12.5px; }
.wallet-err a { color: var(--amber); }
.wallet-apps { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.wallet-apps a.btn { display: block; text-align: center; text-decoration: none; color: inherit; box-sizing: border-box; }
.wallet-apps a.btn.primary { color: #1b1305; }
.btn:disabled { opacity: 0.75; cursor: progress; }
#wallet-modal.busy #phantom-btn { background: rgba(255, 207, 107, 0.18); color: var(--amber); }
