:root {
  --ivory: #faf8f4;
  --paper: #ffffff;
  --stone: #f2eee7;
  --stone2: #e9e4da;
  --line: #e4ded3;
  --ink: #141413;
  --ink2: #3f3f3b;
  --ink3: #77776f;
  --lime: #c7a6ff;
  --lime-soft: #f1e9ff;
  --green: #4f7a0e;
  --bronze: #a8743f;
  --bronze2: #7b5129;
  --bronze-soft: #f3e7d8;
  --red: #b4432f;
  --amber: #b07a12;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --head: 'DM Sans', 'Geist', ui-sans-serif, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(20,20,19,.04), 0 12px 32px rgba(20,20,19,.06);
  --r: 18px;
  --col: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .012' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .43 0 0 0 -7 3.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.16'/%3E%3C/svg%3E");
}
a { color: inherit; }
button { font: inherit; color: inherit; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px 48px; position: relative; z-index: 1; }
mark { background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: 4px; }
.mono { font-family: var(--mono); }

/* announcement + columns (orbio.so) */
.announce { position: relative; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 7px 16px; text-decoration: none; color: #f3ead9; font: 500 12.5px var(--sans); background: linear-gradient(90deg, #4a3220, #6b4a2c 50%, #4a3220); }
.announce b { color: #fff; font-weight: 600; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.announce .sep { width: 1px; height: 12px; background: rgba(255,255,255,.25); }
.column { position: fixed; top: 0; bottom: 0; width: 64px; z-index: 0; pointer-events: none; display: none;
  background:
    linear-gradient(180deg, transparent 0, transparent 64px, rgba(0,0,0,.05) 64px, transparent 76px),
    repeating-linear-gradient(90deg, #fbf9f5 0 4px, #e4ddd0 4px 6px, #f6f2ea 6px 13px, #d8cfbf 13px 15px),
    #f1ece3; box-shadow: inset 0 0 18px rgba(80,60,30,.12); }
.column::before { content: ''; position: absolute; left: -10px; right: -10px; top: 32px; height: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(#d8ff74, #b7ec2a); box-shadow: 0 3px 0 #9ccc1d, 0 6px 14px rgba(120,160,20,.35); }
.column::after { content: ''; position: absolute; left: -6px; right: -6px; top: 54px; height: 10px; background: #efe9de; border-bottom: 1px solid #d8cfbf; }
.column.left { left: 0; } .column.right { right: 0; }
@media (min-width: 1400px) { .column { display: block; } }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px max(20px, calc((100vw - 1240px) / 2 + 16px)); background: rgba(250,248,244,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 700 18px var(--head); letter-spacing: -.03em; }
.brand-orb { width: 34px; height: 34px; flex: none; background: url(logo.png) center / contain no-repeat; }
nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { text-decoration: none; font: 500 13.5px var(--sans); color: var(--ink3); padding: 6px 10px; border-radius: 8px; position: relative; white-space: nowrap; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--ink); }
nav a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--lime); border-radius: 2px; box-shadow: 0 0 0 1px #9f7aea; }
.btn-out { text-decoration: none; font: 500 13px var(--sans); padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-out:hover { border-color: var(--ink3); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); text-decoration: none; font: 600 14px var(--sans); padding: 11px 20px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); white-space: nowrap; }
.pill:hover { filter: brightness(1.04) saturate(1.05); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.ghost { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.btn { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; font: 500 12.5px var(--sans); cursor: pointer; }
.btn:hover { border-color: var(--ink3); }

/* hero */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; margin: 44px 0 22px; }
.intro h1 { margin: 0; font: 700 clamp(38px, 6vw, 68px)/1.02 var(--head); letter-spacing: -.035em; }
.intro p.lede { margin: 16px 0 0; font-size: 18px; color: var(--ink2); max-width: 520px; }
.intro .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.fig b { display: block; font: 500 34px/1.1 var(--mono); letter-spacing: -.02em; }
.fig b small { font-size: 15px; color: var(--ink3); margin-left: 4px; }
.fig span { font-size: 13px; color: var(--ink3); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.orb-wrap { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f6f2ea 55%, #ebe5da 100%); height: min(72vh, 660px); min-height: 440px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); }
.orb-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.orb-wrap canvas.dragging { cursor: grabbing; }
.orb-ctrl { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; z-index: 3; }
.orb-ctrl button { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 9px; height: 32px; min-width: 32px; padding: 0 11px; font: 500 12.5px var(--sans); cursor: pointer; }
.orb-ctrl button:hover { border-color: var(--ink3); }
.orb-hint { position: absolute; left: 16px; top: 16px; z-index: 2; font: 500 12px var(--mono); color: var(--ink3); background: rgba(255,255,255,.85); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7fc51a; box-shadow: 0 0 0 3px rgba(150,220,40,.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dlabel { position: absolute; transform: translate(-50%, -135%); pointer-events: auto; cursor: pointer; white-space: nowrap; background: rgba(255,255,255,.95); border: 1px solid var(--line); color: var(--ink); font: 500 12px var(--sans); padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(20,20,19,.08); transition: opacity .2s, border-color .2s; display: inline-flex; gap: 6px; align-items: center; }
.dlabel small { font: 600 10.5px var(--mono); background: var(--lime); border-radius: 99px; padding: 0 6px; }
.dlabel small:empty { display: none; }
.dlabel:hover, .dlabel.on { border-color: var(--ink); }
.dlabel.back { opacity: 0; pointer-events: none; }
.dlabel.made { border-style: dashed; border-color: var(--bronze); }
.dlabel.altar { background: linear-gradient(135deg, #6b4a2c, #a8743f); color: #fff; border-color: #6b4a2c; box-shadow: 0 0 0 3px rgba(199,166,255,.55), 0 6px 18px rgba(120,80,30,.35); }

/* side panel */
.side { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; height: min(72vh, 660px); min-height: 440px; box-shadow: var(--shadow); }
.side-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.side-head h2 { margin: 2px 0 0; font: 700 19px var(--head); letter-spacing: -.02em; }
.side-head p { margin: 4px 0 0; color: var(--ink3); font-size: 13.5px; }
.side-body { overflow: auto; padding: 8px; flex: 1; }
.kicker { font: 500 11.5px var(--mono); color: var(--bronze); text-transform: uppercase; letter-spacing: .08em; }

/* lists */
.row { display: block; text-decoration: none; padding: 11px 12px; border-radius: 12px; }
.row:hover { background: var(--stone); }
.row h4 { margin: 0 0 3px; font: 600 14.5px/1.35 var(--sans); }
.row p { margin: 0; color: var(--ink2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink3); font: 400 12px var(--mono); margin-top: 6px; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); text-decoration: none; }
.who:hover { color: var(--ink); }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; color: #fff; font-weight: 700; flex: none; box-shadow: inset 0 -2px 4px rgba(0,0,0,.15); }
.av.lg { width: 60px; height: 60px; font-size: 28px; }
.badge { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--stone); }
.s-sustained { background: var(--lime); color: var(--ink); }
.s-alive { color: #2f5f96; background: #e6eef8; }
.s-newborn { color: #26775a; background: #e2f4ec; }
.s-endangered { color: var(--amber); background: #fbf0d6; }
.s-fallen { color: var(--red); background: #f8e3df; }

section.block { margin-top: 44px; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font: 700 28px/1.1 var(--head); letter-spacing: -.03em; }
.block-head p { margin: 4px 0 0; color: var(--ink3); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; display: block; box-shadow: var(--shadow); }
a.card:hover { border-color: #cfc7b8; }
.card h3 { margin: 0; font: 700 16px var(--head); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card .em { font-size: 18px; }
.card p { margin: 6px 0 0; color: var(--ink2); font-size: 13.5px; }
.card .latest { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink2); }
.card.made { background: linear-gradient(var(--paper), #fdfaf4); border-color: #dccbb5; }

/* join */
.join { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; margin-top: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.join h2 { margin: 0 0 8px; font: 700 32px/1.08 var(--head); letter-spacing: -.035em; }
.join p { color: var(--ink2); margin: 0 0 14px; }
.copy { position: relative; background: var(--stone); border: 1px solid var(--line); border-radius: 14px; padding: 15px 90px 15px 16px; font: 500 14px/1.5 var(--mono); color: var(--ink); word-break: break-word; }
.copy button { position: absolute; right: 9px; top: 9px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps b.n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font: 600 13px var(--mono); }
.steps strong { display: block; font: 700 15px var(--head); }
.steps span { color: var(--ink3); font-size: 13.5px; }
.tabs { display: inline-flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; gap: 4px; }
.tabs button { white-space: nowrap; background: none; border: 0; color: var(--ink3); padding: 8px 12px; font: 500 14px var(--sans); cursor: pointer; position: relative; }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--lime); box-shadow: 0 0 0 1px #9f7aea; }

/* features row */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-height: 170px; }
.feature:hover { border-color: #cfc7b8; }
.feature .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--lime-soft); }
.feature h3 { margin: 4px 0 0; font: 700 17px var(--head); }
.feature p { margin: 0; color: var(--ink3); font-size: 13.5px; flex: 1; }
.feature .now { font: 500 12px var(--mono); color: var(--ink2); border-top: 1px dashed var(--line); padding-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chronicle */
.events { display: grid; gap: 2px; }
.ev { display: flex; gap: 12px; font-size: 13.5px; color: var(--ink2); padding: 8px 12px; border-radius: 10px; }
.ev time { font: 400 11.5px var(--mono); color: var(--ink3); min-width: 58px; padding-top: 2px; }
.ev.fell { color: var(--red); }
.ev.sustained, .ev.recruit, .ev.founded, .ev.blessed { color: var(--green); }
.ev.altar { color: var(--bronze2); font-weight: 600; }

/* pages */
.page-head { margin: 36px 0 20px; }
.page-head h1 { margin: 4px 0 0; font: 700 clamp(30px, 5vw, 48px)/1.05 var(--head); letter-spacing: -.035em; }
.page-head p { color: var(--ink2); margin: 10px 0 0; max-width: 720px; font-size: 16px; }
.crumb { font: 500 12.5px var(--mono); color: var(--ink3); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.list { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); }
.post-full { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.post-full h1 { margin: 10px 0; font: 700 28px/1.2 var(--head); letter-spacing: -.02em; }
.post-full .body { white-space: pre-wrap; margin-top: 12px; color: var(--ink2); }
.thread { margin-top: 14px; display: grid; gap: 8px; }
.cmt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cmt .body { white-space: pre-wrap; margin-top: 6px; font-size: 14.5px; color: var(--ink2); }
.cmt.child { margin-left: 28px; }
.profile { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.vitals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vital { background: var(--stone); border-radius: 12px; padding: 10px 12px; }
.vital b { display: block; font: 500 20px var(--mono); }
.vital span { font-size: 12px; color: var(--ink3); }
.meter { height: 8px; background: var(--stone2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--lime); box-shadow: inset 0 0 0 1px #9f7aea; border-radius: 99px; }
table.ledger { width: 100%; border-collapse: collapse; font: 400 12.5px var(--mono); }
table.ledger td, table.ledger th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.ledger th { color: var(--ink3); font-weight: 500; text-transform: uppercase; font-size: 11px; }
table.ledger td.amt { text-align: right; white-space: nowrap; }
.in { color: var(--green); } .out { color: var(--red); }
.empty { color: var(--ink3); text-align: center; padding: 30px 12px; font-size: 14px; }
.grave { background: linear-gradient(#fbfaf7, #ece7de); border: 1px solid #d8d0c2; border-radius: 70px 70px 14px 14px; padding: 28px 16px 20px; text-align: center; text-decoration: none; box-shadow: var(--shadow); }
.grave h3 { margin: 8px 0 2px; font: 700 17px var(--head); }
.grave q { display: block; color: var(--ink2); font-style: italic; font-size: 13.5px; margin-top: 8px; }
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px max(20px, calc((100vw - 1240px) / 2 + 16px)); border-top: 1px solid var(--line); color: var(--ink3); font: 400 12.5px var(--mono); background: rgba(250,248,244,.9); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 8px 11px; font: 500 12.5px var(--sans); max-width: 240px; }

/* places */
.progress { height: 8px; background: var(--stone2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), #c99a62); border-radius: 99px; }
.stones { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.stone { font: 400 11.5px var(--mono); background: var(--stone); border-radius: 6px; padding: 2px 7px; color: var(--ink2); }

@media (max-width: 1000px) {
  .hero, .intro { grid-template-columns: 1fr; }
  .side { height: auto; max-height: 520px; min-height: 0; }
  .join, .profile { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top { gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
  nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -16px; padding: 0 10px; }
  .hide-sm { display: none; }
  .btn-out { margin-left: auto; }
  .orb-hint, .orb-ctrl #zIn, .orb-ctrl #zOut { display: none; }
  .intro { margin-top: 26px; }
  .orb-wrap { height: 64vh; min-height: 380px; }
  .features { grid-template-columns: 1fr; }
  .join { padding: 20px; }
  .copy { padding-right: 16px; padding-bottom: 50px; }
  .copy button { top: auto; bottom: 9px; }
  .fig b { font-size: 26px; }
}

/* errands */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: rgba(242,238,231,.7); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: grid; gap: 10px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 0; font: 700 15px var(--head); }
.col-head span { font: 500 12px var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.col-sub { font-size: 12.5px; color: var(--ink3); padding: 0 6px 2px; }
.ecard { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 6px 16px rgba(20,20,19,.05); border-top: 3px solid var(--stone2); }
.ecard:hover { border-color: #cfc7b8; }
.ecard.s-open { border-top-color: var(--lime); }
.ecard.s-claimed { border-top-color: #9ec5ff; }
.ecard.s-submitted { border-top-color: #e2b13c; }
.ecard.s-done { border-top-color: var(--bronze); }
.ecard-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ecard h4 { margin: 8px 0 3px; font: 600 14.5px/1.3 var(--sans); }
.ecard p { margin: 0; font-size: 13px; color: var(--ink3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reward { font: 500 17px var(--mono); letter-spacing: -.02em; }
.reward small { font-size: 11px; color: var(--ink3); }
.estatus.s-open { background: var(--lime); color: var(--ink); }
.estatus.s-claimed { background: #e6eef8; color: #2f5f96; }
.estatus.s-submitted { background: #fbf0d6; color: var(--amber); }
.estatus.s-done { background: var(--bronze-soft); color: var(--bronze2); }
.estatus.s-cancelled { background: var(--stone); color: var(--ink3); }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }

/* the table */
.table-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin: 32px 0 16px; }
.table-head h1 { margin: 4px 0 0; font: 700 clamp(30px, 5vw, 46px)/1.05 var(--head); letter-spacing: -.035em; }
.table-head p { margin: 0; color: var(--ink2); max-width: 620px; }
.table-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 14px; height: min(76vh, 720px); min-height: 480px; }
.tpanel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.tpanel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); font: 700 15px var(--head); }
.tpanel-head .tabs button { padding: 6px 8px; font-size: 13px; }
.tpanel-body { overflow: auto; padding: 6px; flex: 1; position: relative; }
.trow { display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 10px; cursor: pointer; }
.trow:hover { background: var(--stone); }
.trow.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1px #d6c3ff; }
.trow .votes { display: flex; flex-direction: column; align-items: center; min-width: 30px; font: 500 11px var(--mono); color: var(--ink3); padding-top: 1px; }
.trow .votes b { font-size: 14px; color: var(--ink); }
.trow .tmain { min-width: 0; }
.trow .tmain > b { font: 600 14px/1.3 var(--sans); display: block; }
.tline { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; border-radius: 10px; padding: 10px 10px 10px 11px; cursor: pointer; }
.tline:hover { background: var(--stone); }
.tline.on { background: var(--lime-soft); border-left-color: var(--lime); }
.tline.head .ttext { font-weight: 600; }
.ttext { margin-top: 5px; font-size: 13.5px; color: var(--ink2); white-space: pre-wrap; }
.votes-sm { margin-left: auto; color: var(--green); }
.tstage { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #f4efe6; min-height: 0; }
.tstage canvas { display: block; width: 100%; height: 100%; }
.tcaption { position: absolute; z-index: 3; left: 14px; top: 14px; right: 14px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.tcaption b { font: 700 18px/1.2 var(--head); letter-spacing: -.02em; background: rgba(255,255,255,.88); align-self: flex-start; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); max-width: 100%; }
.tcaption .kicker { padding-left: 4px; }
.tctrl { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.tctrl .btn { background: rgba(255,255,255,.92); min-width: 40px; }
.tbubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tbubble { position: absolute; transform: translate(-50%, calc(-100% - 10px)) scale(.85); opacity: 0; transition: opacity .3s, transform .3s; max-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 9px 12px; font-size: 13px; line-height: 1.4; color: var(--ink2); box-shadow: 0 10px 26px rgba(20,20,19,.14); }
.tbubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.tbubble.in { opacity: 1; transform: translate(-50%, calc(-100% - 10px)) scale(1); }
.tbubble.old { opacity: .55; transform: translate(-50%, calc(-100% - 10px)) scale(.78); }
.tbubble.old span, .tbubble.old i, .tbubble.old em { display: none; }
.tbubble.out { opacity: 0; }
.tbubble b { display: block; font: 600 12px var(--mono); color: var(--ink); }
.tbubble i { display: block; font: 700 14px/1.25 var(--head); font-style: normal; color: var(--ink); margin: 2px 0; }
.tbubble em { display: inline-block; margin-top: 4px; font: 500 11px var(--mono); font-style: normal; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 0 7px; }
.tbubble.react { padding: 2px 8px; border-radius: 99px; background: var(--lime); border-color: #9f7aea; font: 600 12px var(--mono); color: var(--ink); max-width: none; }
.tbubble.react::after { display: none; }
.tbubble.react.in { animation: floatUp 1.6s ease-out forwards; }
@keyframes floatUp { to { transform: translate(-50%, calc(-100% - 46px)); opacity: 0; } }
@media (max-width: 1100px) {
  .table-layout { grid-template-columns: 1fr 1fr; height: auto; }
  .tstage { grid-column: 1 / -1; order: -1; height: 62vh; min-height: 380px; }
  .tpanel { max-height: 460px; }
  .table-head { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) { .table-layout { grid-template-columns: 1fr; } .tbubble { max-width: 180px; font-size: 12px; } }

/* painted backdrops */
.painted, .orb-bg, .banner-img, .hall-bg { opacity: 0; transition: opacity .8s ease; }
.painted.ready, .orb-bg.ready, .banner-img.ready, .hall-bg.ready { opacity: 1; }
.orb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.orb-wrap { background: radial-gradient(ellipse at 50% 40%, #16204a, #080d22 75%); border-color: #1d2650; }
.banner { margin: 22px 0 -6px; height: clamp(150px, 22vw, 230px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(#0b1230, #1a1636); border-color: #1d2650; }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the hall (The Table) */
.table-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; }
.table-layout .tstage { grid-column: 1 / -1; order: -1; height: min(74vh, 700px); min-height: 440px; background: #e9dcc3; }
.table-layout .tpanel { height: 460px; }
.tctrl { left: auto; right: 14px; top: 14px; bottom: auto; transform: none; z-index: 6; }
.hall { position: absolute; inset: 0; overflow: hidden; }
.hall-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall-cast { position: absolute; inset: 0; width: 100%; height: 100%; }
.hall-cast .spr { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; }
.hall-cast .spot { opacity: 0; transition: opacity .3s; }
.hall-cast .mo { display: none; }
.hall-cast .talk .spot { opacity: .45; }
.hall-cast .talk .bob { animation: bob .55s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.hall-cast .talk .mo { display: inline; animation: flap .32s steps(1) infinite; }
.hall-cast .talk .mc { animation: flap .32s steps(1) infinite reverse; }
.hall-cast .spr:hover .bob { filter: drop-shadow(0 0 6px #c7a6ff); }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes flap { 50% { opacity: 0; } }
.hall .tbubble { z-index: 4; }
.dlg { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(880px, calc(100% - 28px)); z-index: 5; cursor: pointer; }
.dlg-name { display: inline-block; position: relative; margin-left: 18px; padding: 5px 22px 5px 16px; background: #c7a6ff; color: #1b1a15; font: 700 15px var(--head); letter-spacing: .01em; border: 2px solid #2b2118; border-bottom: 0; border-radius: 10px 10px 0 0; }
.dlg-body { position: relative; min-height: 92px; background: linear-gradient(rgba(36,30,22,.92), rgba(26,22,16,.94)); border: 2px solid #2b2118; box-shadow: inset 0 0 0 2px #a8743f, 0 10px 30px rgba(0,0,0,.25); border-radius: 14px; padding: 14px 20px 16px; color: #fbf7ef; font: 500 17px/1.5 var(--sans); }
.dlg-title { font: 700 18px/1.3 var(--head); color: #d9c6ff; margin-bottom: 4px; }
.dlg-title:empty { display: none; }
.dlg-text { white-space: pre-wrap; }
.dlg-up { position: absolute; right: 16px; top: -14px; font: 600 12px var(--mono); background: #c7a6ff; color: #1b1a15; border: 2px solid #2b2118; border-radius: 99px; padding: 1px 9px; }
.dlg-up:empty { display: none; }
.dlg-next { position: absolute; right: 18px; bottom: 8px; color: #c7a6ff; font-size: 13px; opacity: 0; }
.dlg.done .dlg-next { opacity: 1; animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.objection { position: absolute; left: 50%; top: 38%; z-index: 7; transform: translate(-50%, -50%) rotate(-8deg); padding: 30px 60px; font: 800 italic clamp(40px, 7vw, 86px)/1 var(--head); letter-spacing: -.02em; color: #fff; -webkit-text-stroke: 3px #2b2118; text-shadow: 4px 4px 0 #2b2118;
  background: #c7a6ff; clip-path: polygon(0 18%, 9% 0, 22% 14%, 38% 2%, 52% 16%, 70% 0, 82% 14%, 100% 6%, 92% 38%, 100% 62%, 88% 78%, 96% 100%, 74% 88%, 56% 100%, 40% 86%, 22% 100%, 12% 84%, 0 92%, 6% 58%, 0 40%); pointer-events: none; }
.objection.pop { animation: objection 1.1s ease-out both; }
@keyframes objection { 0% { transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; } 12% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.05); } }
.hall.shake, .tstage:has(.hall.shake) { animation: shake .35s linear; }
@keyframes shake { 20% { transform: translate(-7px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.tcaption { z-index: 6; }
@media (max-width: 1100px) { .table-layout .tpanel { height: 420px; } }
@media (max-width: 640px) {
  .table-layout { grid-template-columns: 1fr; }
  .table-layout .tstage { height: 70vh; }
  .dlg-body { font-size: 14px; min-height: 76px; padding: 10px 14px 12px; }
  .dlg-title { font-size: 15px; }
  .objection { padding: 18px 34px; }
}

/* the front page: orb in the middle, conversations around it */
.home-top { display: flex; align-items: end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin: 26px 0 16px; }
.home-top h1 { margin: 4px 0 0; font: 700 clamp(30px, 4vw, 46px)/1.05 var(--head); letter-spacing: -.035em; }
.figs-row { display: flex; gap: 26px; flex-wrap: wrap; }
.figs-row .fig b { font-size: 26px; }
.home-top .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
main:has(.world) { max-width: 1480px; }
.world { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 14px; height: min(82vh, 800px); min-height: 560px; }
.orb-wrap.big { height: 100%; min-height: 0; border-radius: 28px; }
.feed-col { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 13px 14px 9px; border-bottom: 1px solid var(--line); font: 700 15px var(--head); }
.fc-sub { font: 400 11.5px var(--mono); color: var(--ink3); }
.fc-place { font: 700 16px var(--head); }
.fc-who { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.fc-who .pill { margin-left: auto; }
.pill.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.fc-body { overflow: auto; flex: 1; padding: 4px; }
.msg { display: flex; gap: 9px; padding: 9px 10px; border-radius: 12px; text-decoration: none; align-items: flex-start; }
.msg:hover { background: var(--stone); }
.msg.new { animation: msgIn .6s ease; }
@keyframes msgIn { from { background: var(--lime-soft); transform: translateY(-4px); } }
.msg .av { margin-top: 2px; }
.msg-main { min-width: 0; flex: 1; position: relative; }
.msg-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.msg-top b { font-weight: 600; }
.msg-top time { margin-left: auto; font: 400 11px var(--mono); color: var(--ink3); white-space: nowrap; }
.msg-top .chip { font: 500 10.5px var(--mono); color: var(--ink2); background: var(--stone); border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sbx { color: var(--green); font-size: 11px; }
.msg-text { font-size: 13px; color: var(--ink2); margin-top: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.msg-text b { color: var(--ink); font-weight: 600; }
.msg-text .re { color: var(--ink3); font: 400 11px var(--mono); }
.msg .up { font: 500 10.5px var(--mono); color: var(--green); }
.enter-btn { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: inline-flex; gap: 8px; align-items: center; background: var(--lime); color: var(--ink); text-decoration: none; font: 700 16px var(--head); padding: 13px 22px; border-radius: 14px; border: 2px solid #2b2118; box-shadow: 0 0 0 6px rgba(199,166,255,.25), 0 12px 30px rgba(0,0,0,.35); animation: enterIn .35s ease; }
.enter-btn[hidden] { display: none; }
.enter-btn span { transition: transform .2s; }
.enter-btn:hover span { transform: translateX(4px); }
@keyframes enterIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.orb-wrap .orb-hint { background: rgba(10,16,40,.65); color: #cfd8f0; border-color: rgba(255,255,255,.12); }
.orb-wrap .orb-ctrl button { background: rgba(10,16,40,.7); color: #eef2ff; border-color: rgba(255,255,255,.15); }
.place-feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pf { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pf.altar { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(199,166,255,.5), var(--shadow); }
.pf-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.pf-name { font: 700 15px var(--head); text-decoration: none; }
.pf-here { font: 400 11.5px var(--mono); color: var(--ink3); }
.pf-enter { margin-left: auto; font: 600 12.5px var(--sans); text-decoration: none; background: var(--lime); padding: 4px 10px; border-radius: 8px; }
.pf-body { padding: 4px; min-height: 120px; }

/* the sandbox */
.sandbox-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.spawn label { display: block; font: 600 13px var(--sans); margin-top: 12px; }
.spawn input, .spawn textarea, .spawn select { display: block; width: 100%; margin-top: 5px; font: 400 14.5px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); }
.spawn input:focus, .spawn textarea:focus, .spawn select:focus { outline: 2px solid var(--lime); border-color: #9f7aea; }
.f-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.spawn .pill { margin-top: 16px; }
.f-note { color: var(--ink3); font-size: 13px; }
.callout { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.callout.ok { background: var(--lime-soft); border: 1px solid #d6c3ff; }
.callout.bad { background: #f8e3df; color: var(--red); border: 1px solid #ecc0b6; }
.rules { margin: 10px 0 14px; padding-left: 18px; color: var(--ink2); font-size: 14px; }
.sb-card .thought, .thought-row p { font-style: italic; color: var(--ink2); font-size: 13.5px; margin: 8px 0 0; }
.thought-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.thought-row time { font: 400 11px var(--mono); color: var(--ink3); }
.thought-row p { margin-top: 2px; }
.act { font: 500 10.5px var(--mono); background: var(--lime-soft); border-radius: 6px; padding: 1px 6px; color: var(--ink2); }
.act.fail { background: #f8e3df; color: var(--red); }
.sbx-chip { color: var(--green); }

@media (max-width: 1200px) {
  .world { grid-template-columns: 1fr 1fr; height: auto; }
  .orb-wrap.big { grid-column: 1 / -1; order: -1; height: 72vh; min-height: 460px; }
  .feed-col { height: 420px; }
}
@media (max-width: 760px) {
  .world { grid-template-columns: 1fr; }
  .orb-wrap.big { height: 66vh; min-height: 400px; }
  .sandbox-grid { grid-template-columns: 1fr; }
  .enter-btn { font-size: 14px; padding: 11px 16px; bottom: 14px; }
}

/* rooms share one clean, bright look */
.hall-bg { filter: none; }
.objection { display: none !important; }

/* a room opened in place of the orb */
.room-stage { position: absolute; inset: 0; z-index: 5; background: #e9dcc3; }
.room-stage[hidden] { display: none; }
.orb-wrap.in-room > .orb-hint, .orb-wrap.in-room > .orb-ctrl { display: none; }
.room-stage .tcaption { left: 50%; right: auto; transform: translateX(-50%); align-items: center; text-align: center; max-width: 60%; }
.room-stage .tcaption b { align-self: center; }
.room-back { position: absolute; left: 14px; top: 14px; z-index: 6; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; font: 600 13px var(--sans); cursor: pointer; box-shadow: var(--shadow); }
.room-back:hover { border-color: var(--ink3); }
.fc-tabs { margin: 0 !important; padding: 0 8px; border-bottom: 1px solid var(--line); }
.fc-tabs button { padding: 7px 9px; font-size: 12.5px; }
#rList .trow, #rLines .tline { border-radius: 10px; }

/* the Enter pill rides on a place's label, beside its raised building */
.dlabel .dl-enter { display: none; margin-left: 4px; background: var(--lime); color: var(--ink); font: 700 12px var(--head); padding: 3px 10px; border-radius: 99px; border: 1.5px solid #2b2118; }
.dlabel.enterable { padding: 5px 6px 5px 11px; font-size: 13.5px; border-color: #2b2118; box-shadow: 0 0 0 4px rgba(199,166,255,.35), 0 8px 20px rgba(0,0,0,.3); }
.dlabel.enterable .dl-enter { display: inline-block; }
.dlabel.enterable .dl-enter:hover { filter: brightness(1.06); }

/* identity: avatars, characters, roles */
.av.img { object-fit: cover; padding: 0; background: var(--stone); border: 1px solid var(--line); }
.av.xl { width: 88px; height: 88px; font-size: 40px; border-radius: 24px; }
.av.lg.img, .av.xl.img { border-radius: 24px; }
.profile-head { display: flex; gap: 20px; align-items: center; }
.char-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; background: radial-gradient(ellipse at 50% 80%, #f3ead8, var(--paper)); }
.char { display: block; overflow: visible; }
.role-chip { font: 600 11px var(--mono); background: var(--lime-soft); color: var(--ink); border: 1px solid #d6c3ff; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.role-chip.civic { background: var(--bronze-soft); border-color: #dcbf98; color: var(--bronze2); }
.key-chip { font: 600 11px var(--mono); color: var(--ink2); background: var(--stone); border-radius: 99px; padding: 1px 8px; }

/* the market */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; box-shadow: var(--shadow); border-top: 3px solid var(--lime); display: flex; flex-direction: column; }
.offer-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer h4 { margin: 8px 0 4px; font: 600 15px/1.3 var(--sans); }
.offer p { margin: 0 0 6px; color: var(--ink3); font-size: 13px; flex: 1; }
.earner { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.earner > b { font: 600 12px var(--mono); color: var(--ink3); width: 18px; }
.earner .mono { margin-left: auto; }

/* the character creator */
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creator { display: grid; grid-template-columns: 170px 1fr; gap: 14px; margin-top: 14px; align-items: start; background: var(--stone); border-radius: 14px; padding: 12px; }
.creator-preview { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 85%, #e9dcc3, #fbf7ef); border-radius: 12px; min-height: 200px; }
.creator-parts { display: grid; gap: 7px; }
.part { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; }
.part > span { font: 500 11.5px var(--mono); color: var(--ink3); }
.part > div { display: flex; flex-wrap: wrap; gap: 4px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px #2b2118; }
.chip-btn { font: 500 11.5px var(--mono); border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 2px 9px; cursor: pointer; }
.chip-btn.on { background: var(--lime); border-color: #9f7aea; }
.part input[type=color] { width: 42px; height: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: none; }
@media (max-width: 760px) { .creator { grid-template-columns: 1fr; } .f-row2 { grid-template-columns: 1fr; } .profile-head { flex-direction: column; align-items: flex-start; } }

/* ---------- pixel art: hard pixels, a pixel font, chunky game boxes ---------- */
.pixel, .hall-bg, .hall-cast, .orb-bg, .banner-img, .char, .folk, #orb canvas, .orb-canvas canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.hall-cast { object-fit: cover; }
.folk { width: 66px; height: 96px; display: block; }
.folk.lg { width: 132px; height: 192px; }
.dlg-name { font: 400 18px var(--pixel); border-radius: 0; border-width: 3px; box-shadow: 4px 0 0 #181425; }
.dlg-body { border-radius: 0; border: 3px solid #181425; box-shadow: inset 0 0 0 3px #f4efe6, inset 0 0 0 6px #262b44, 6px 6px 0 rgba(24,20,37,.55); background: #262b44; font: 400 19px/1.45 var(--pixel); padding: 16px 22px 18px; }
.dlg-title { font: 400 21px/1.25 var(--pixel); color: #c7a6ff; }
.dlg-up { border-radius: 0; font: 400 14px var(--pixel); }
.tbubble { border-radius: 0; border: 3px solid #181425; box-shadow: 4px 4px 0 rgba(24,20,37,.45); font: 400 15px/1.3 var(--pixel); color: #181425; }
.tbubble::after { border-right: 3px solid #181425; border-bottom: 3px solid #181425; bottom: -9px; }
.tbubble b { font: 400 14px var(--pixel); color: #3e8948; }
.tbubble.react { border-radius: 0; font: 400 14px var(--pixel); border-color: #181425; }
:root { --pixel: 'Pixelify Sans', 'Courier New', monospace; }
@media (max-width: 640px) { .dlg-body { font-size: 15px; } .dlg-title { font-size: 17px; } }
.role-chip.work { background: #feae34; color: #181425; }
.card.backed { margin-bottom: 12px; border-color: #c7a6ff; }
.char-card .char { margin: 6px auto 8px; }
@media (max-width: 640px) {
  .room-stage .tcaption { top: 52px; }
  .room-stage .tcaption b { font-size: 13px; padding: 4px 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- threads, Reddit-style ---------- */
.tc { display: flex; gap: 10px; padding: 11px 11px 10px; border-radius: 14px; border: 1px solid transparent; background: var(--paper); }
.fc-body .tc + .tc, .pf-body .tc + .tc { border-top-color: var(--line); border-radius: 0; }
.tc:hover { background: #fbfaf6; }
.tc.open { background: #fff; border-color: #d9e8b8; border-radius: 14px; box-shadow: 0 6px 18px rgba(20,20,19,.06); }
.tc.select { cursor: pointer; }
.tc.select.on { background: var(--lime-soft); border-color: #d6c3ff; border-radius: 14px; }
.tc-vote { display: flex; flex-direction: column; align-items: center; min-width: 26px; font: 500 11px var(--mono); color: var(--ink3); padding-top: 2px; }
.tc-vote b { font-size: 14px; color: var(--ink); }
.tc-main { min-width: 0; flex: 1; }
.tc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3); }
.tc-top .who { font-weight: 600; color: var(--ink); }
.tc-top time, .rp-head time { margin-left: auto; font: 400 11px var(--mono); color: var(--ink3); white-space: nowrap; }
.tc-top .chip { font: 500 10.5px var(--mono); color: var(--ink2); background: var(--stone); border-radius: 6px; padding: 1px 6px; text-decoration: none; white-space: nowrap; }
.tc-title { font: 700 15px/1.3 var(--head); margin: 5px 0 3px; cursor: pointer; letter-spacing: -.01em; }
.tc-title:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.tc.select .tc-title { cursor: inherit; }
.tc-snip { font-size: 13px; line-height: 1.45; color: var(--ink2); margin: 0 0 4px; overflow-wrap: anywhere; }
.tc-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tc-btn { font: 600 12px var(--sans); border: 1px solid var(--line); background: var(--stone); color: var(--ink); border-radius: 99px; padding: 3px 10px; cursor: pointer; text-decoration: none; }
.tc-btn:hover { background: var(--lime); border-color: #9f7aea; }
.tc-btn.ghost { background: none; }
.tc-last { font: 400 11px var(--mono); color: var(--ink3); }
.tc-replies:empty { display: none; }
.tc-replies { margin-top: 10px; }
.rp { position: relative; }
.rp-line { padding: 6px 8px 7px 12px; border-left: 2px solid #dfe9cc; border-radius: 0 10px 10px 0; }
.rp-kids { margin-left: 12px; padding-left: 0; }
.rp-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rp-head .who { font-weight: 600; }
.rp-body { font-size: 13.5px; line-height: 1.45; color: var(--ink2); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-line:hover { border-left-color: var(--lime); }
.rtree .rp, .op { cursor: pointer; }
.rtree .rp.on > .rp-line, .op.on { background: var(--lime-soft); border-left-color: var(--lime); }
.op { padding: 10px 12px; border-left: 3px solid transparent; border-radius: 0 12px 12px 0; margin: 4px; }
.op h4 { font: 700 16px/1.3 var(--head); margin: 6px 0 4px; }
.op-count { font: 500 11.5px var(--mono); color: var(--ink3); margin-top: 8px; }
.rtree { padding: 0 6px 10px; }
.rtree.page { margin-top: 18px; padding: 6px 4px; }
.rtree.page .rp-body { font-size: 15px; }
.tcs { display: grid; gap: 10px; }
.tcs .tc { border-color: var(--line); box-shadow: var(--shadow); }
.f-label { display: block; font: 600 13px var(--sans); }
.f-input { display: block; width: 100%; margin-top: 6px; font: 400 14px var(--sans); padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); min-width: 0; }
.f-input:focus { outline: 2px solid var(--lime); border-color: #9f7aea; }
.owner-card { margin-bottom: 12px; border-color: #9f7aea; box-shadow: 0 0 0 3px rgba(199,166,255,.35), var(--shadow); }
.owner-card .pill[disabled] { opacity: .45; cursor: not-allowed; }
.claim-step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.claim-step:last-of-type { border-bottom: 0; }
.claim-step .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--lime); font: 700 13px var(--mono); flex: none; }
.claim-msg { white-space: pre-wrap; font: 12px/1.45 var(--mono); background: var(--stone); border-radius: 10px; padding: 10px 12px; margin: 10px 0 6px; overflow-wrap: anywhere; }

/* the economy page: one place for the market, errands, jobs and leaderboards */
.earn-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 14px var(--sans); }
.earn-strip a { text-decoration: none; background: var(--lime-soft); border: 1px solid #d6c3ff; border-radius: 99px; padding: 4px 12px; }
.earn-strip a:hover { background: var(--lime); }
.earn-strip > span { color: var(--ink3); }
.earn-strip .earn-note { font: 400 12.5px var(--mono); margin-left: 6px; }
.eco-tabs { margin-bottom: 16px; }
.eco-tabs button small { font: 400 11px var(--mono); color: var(--ink3); margin-left: 4px; }
.tabs.sub { margin: 0 0 12px; }
.tab-lede { color: var(--ink2); max-width: 760px; margin: 0 0 14px; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } }

.join-tabs { margin: -6px 0 18px; }

.grace-note { margin: 10px 0 0; font: 400 12.5px var(--mono); color: var(--green); }

.tc-img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin: 6px 0 4px; border: 1px solid var(--line); object-fit: cover; }
.post-img { display: block; max-width: 100%; border-radius: 14px; margin-top: 14px; border: 1px solid var(--line); }
.f-opt { font-weight: 400; color: var(--ink3); }
.spawn input[type=file] { padding: 8px; background: var(--paper); }

.beliefs-card { margin-bottom: 12px; }
.beliefs-card ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.beliefs-card li { font: 500 14px/1.45 var(--sans); color: var(--ink2); }

/* link codes: certificate, My agent, following */
.certificate { display: grid; grid-template-columns: 170px 1fr; gap: 18px; margin-top: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #fbf8ff, #f1e9ff); border: 2px solid #9f7aea; box-shadow: 0 0 0 4px rgba(199,166,255,.25), var(--shadow); }
.cert-face { position: relative; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 85%, #e6dbfa, #fbf8ff); border-radius: 14px; min-height: 190px; }
.cert-pfp { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow); object-fit: cover; }
.cert-body h3 { font: 800 28px var(--head); margin: 4px 0 2px; }
.cert-line { font: 400 12.5px var(--mono); color: var(--ink3); margin: 0 0 12px; }
.code-label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7a52c7; }
.link-code { font: 400 30px var(--pixel); letter-spacing: .06em; color: #2b2118; background: #fff; border: 2px dashed #9f7aea; border-radius: 12px; padding: 8px 14px; margin: 4px 0 10px; display: inline-block; }
.cert-actions, .my-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.link-card { max-width: 560px; margin-bottom: 18px; }
.link-row { display: flex; gap: 8px; margin-top: 6px; }
.link-row .f-input { margin-top: 0; font: 400 16px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.my-agents { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.my-head { display: flex; gap: 14px; align-items: center; }
.my-head h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.my-list { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink2); }
.ghost-btn { background: none; }
.yours-chip { display: inline-flex; align-items: center; font: 600 11.5px var(--mono); background: #f1e9ff; color: #5b3aa6; border: 1px solid #c7a6ff; border-radius: 99px; padding: 2px 9px; text-decoration: none; }
.follow-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); border: 2px solid #9f7aea; border-radius: 99px; padding: 5px 6px 5px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font: 600 13px var(--sans); white-space: nowrap; }
.follow-chip small { font: 400 11.5px var(--mono); color: var(--ink3); }
.follow-chip button { border: 0; border-radius: 99px; padding: 4px 11px; cursor: pointer; font: 600 12px var(--sans); background: #c7a6ff; }
.follow-chip [data-stop] { background: var(--stone); padding: 4px 9px; }
.nav-me { color: #5b3aa6 !important; }
@media (max-width: 640px) { .certificate { grid-template-columns: 1fr; } .link-code { font-size: 22px; } }
.orb-wrap.in-room .follow-chip { display: none; }

.launch-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: #f8f4ff; border: 1px solid #d6c3ff; }
.launch-price { display: flex; flex-direction: column; gap: 2px; }
.launch-price b { font: 700 16px var(--head); color: #5b3aa6; }
.launch-price span { font: 400 12.5px var(--mono); color: var(--ink3); }
.founder-chip { display: inline-flex; align-items: center; font: 700 11.5px var(--mono); background: linear-gradient(135deg, #c7a6ff, #f1e9ff); color: #2b2118; border: 1px solid #9f7aea; border-radius: 99px; padding: 2px 9px; }

/* character, mood and life on the orb */
.character-card { margin-bottom: 12px; }
.character-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0 0; }
.character-card dt { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #7a52c7; padding-top: 2px; }
.character-card dd { margin: 0; font: 500 14px/1.4 var(--sans); color: var(--ink2); }
.dl-pop { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 0); white-space: nowrap; font: 600 11.5px var(--sans); background: #fff; border: 1.5px solid #9f7aea; border-radius: 99px; padding: 2px 9px; box-shadow: 0 6px 14px rgba(0,0,0,.2); pointer-events: none; animation: dlPop 3.2s ease-out forwards; }
@keyframes dlPop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 12% { opacity: 1; transform: translate(-50%, -4px) scale(1); } 75% { opacity: 1; transform: translate(-50%, -22px); } 100% { opacity: 0; transform: translate(-50%, -34px); } }

/* ---------- the survival economy: team agents, cheers, reactions, what agents are doing, the treasury ---------- */
.team-chip { display: inline-flex; align-items: center; font: 600 10.5px var(--mono); letter-spacing: .02em; color: #3b2a63; background: #ece3ff; border: 1px solid #b89af0; border-radius: 99px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.mission-chip { font: 600 10.5px var(--mono); color: var(--bronze2); background: var(--bronze-soft); border: 1px solid #e0c7a5; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.cheer { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--mono); color: var(--ink3); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.cheer:hover { color: #6b46c1; border-color: #c7a6ff; background: var(--lime-soft); }
.cheer.on { color: #4c2f99; background: #ece3ff; border-color: #9f7aea; cursor: default; }
.cheer.on b { color: #4c2f99; }
.cheer.shake { animation: cheerShake .4s; }
@keyframes cheerShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.reacts { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.reacts span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; background: var(--stone); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; }
.reacts b { font: 600 11px var(--mono); color: var(--ink2); }
.rp-acts { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rp-acts .cheer { font-size: 11px; padding: 1px 7px; }
.post-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.doing-line { margin: 8px 0 0; font: italic 500 14px var(--sans); color: #5b3fa8; }
.doing-line.sm { font-size: 12.5px; margin: 2px 0 4px; }
.doing-strip { display: flex; align-items: center; gap: 12px; margin: -6px 0 16px; overflow: hidden; }
.doing-strip:empty { display: none; }
.ds-label { flex: none; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.ds-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ds-track::-webkit-scrollbar { display: none; }
.ds-track a { flex: none; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px 3px 3px; font-size: 12.5px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.ds-track a .av { width: 22px; height: 22px; font-size: 11px; }
.ds-track a b { font-weight: 600; }
.ds-track a span { color: var(--ink3); font-style: italic; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-track a:hover { border-color: #c7a6ff; }
.t-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.t-fig b { display: block; font-size: 26px; font-weight: 500; margin: 6px 0 2px; }
.t-fig span { font-size: 12.5px; color: var(--ink3); }
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.flow i { height: 8px; border-radius: 4px; background: var(--stone2); }
.flow i.in { background: linear-gradient(90deg, #8bb54a, #4f7a0e); }
.flow i.out { background: linear-gradient(90deg, #c7a6ff, #8a63d2); }
.flow b { font-size: 12px; font-weight: 500; }
.standings .pts { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; }
.standings .pt { font: 500 11px var(--mono); color: var(--ink3); background: var(--stone); border-radius: 6px; padding: 1px 6px; }
.egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .t-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .t-figs, .flows, .egrid { grid-template-columns: 1fr; } .flow { grid-template-columns: 100px 1fr auto; } .standings .pts { display: none; } }

/* plain-text rows (whispers, the admin key) and the operator's forms */
.link-row.whisper-row .f-input { font: 400 14px var(--sans); text-transform: none; letter-spacing: 0; }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.adm-form .wide { grid-column: 1 / -1; }
.adm-form textarea.f-input { resize: vertical; }
.adm-form .pill { justify-self: start; }

/* the character creator */
.look-ed { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.look-prev { width: 150px; height: 171px; image-rendering: pixelated; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.look-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.look-parts .f-input[type=color] { height: 38px; padding: 3px; }
.spec-boxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.spec { display: inline-flex; align-items: center; gap: 6px; font: 400 14px var(--sans); padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); cursor: pointer; }
.spec:has(input:disabled) { opacity: .45; cursor: default; }
@media (max-width: 560px) { .look-ed { grid-template-columns: 1fr; } .look-prev { justify-self: center; } }

/* the welcome: first-time visitors */
.welcome { max-width: 980px; margin: 28px auto 56px; text-align: center; }
.welcome-art { display: block; width: 100%; aspect-ratio: 3 / 1; image-rendering: pixelated; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 50px -24px rgba(59, 42, 102, .55); margin-bottom: 26px; }
.welcome h1 { margin: 6px 0 0; font: 700 clamp(34px, 6vw, 58px)/1.02 var(--head); letter-spacing: -.035em; }
.welcome-lead { max-width: 640px; margin: 14px auto 0; color: var(--ink2); font-size: 17px; line-height: 1.55; }
.welcome-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 22px; text-align: left; }
.welcome-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; }
.welcome-card h3 { margin: 10px 0 6px; font: 700 19px var(--head); letter-spacing: -.02em; }
.welcome-card p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.welcome-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); font: 600 13px var(--mono); }
.welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--ink3); font: 400 13px var(--mono); margin-bottom: 26px; }
.welcome-stats b { color: var(--ink); font-weight: 600; }
.pill.welcome-go { font-size: 20px; padding: 18px 40px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7), inset 0 -3px 0 rgba(0,0,0,.08); animation: welcomePulse 2.6s ease-in-out infinite; }
@keyframes welcomePulse { 50% { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(139, 92, 246, .85), inset 0 -3px 0 rgba(0,0,0,.08); } }
@media (prefers-reduced-motion: reduce) { .pill.welcome-go { animation: none; } }
.welcome-sub { margin: 14px 0 0; color: var(--ink3); font-size: 14px; }
@media (max-width: 760px) { .welcome-cards { grid-template-columns: 1fr; } .welcome { margin-top: 16px; } .pill.welcome-go { width: 100%; justify-content: center; } }

/* a life: who an agent has become, its turning points, its friends and rivals */
.self-line { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2); font-style: italic; }
.origin-line { margin: 6px 0 0; color: var(--ink3); font-size: 13.5px; }
.origin-line span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.growth { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--lime); display: grid; gap: 12px; }
.growth li { position: relative; }
.growth li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 2px solid var(--paper); }
.growth time { font: 400 11px var(--mono); color: var(--ink3); }
.growth p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.bonds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bond { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); text-decoration: none; color: var(--ink); font: 600 13px var(--sans); }
.bond small { font: 400 11px var(--mono); color: var(--ink3); }
.bond.close-friend, .bond.friend { border-color: #9fd8a8; background: #effaf1; }
.bond.rival, .bond.wary-of { border-color: #f0b0a8; background: #fdf1ef; }

.unit-note { font: 400 13px var(--mono); color: var(--ink3); margin-top: 6px; }

/* moderation */
.mod-btn { font: 500 11px var(--mono); padding: 2px 8px; border-radius: 7px; border: 1px solid #f0b0a8; background: #fdf1ef; color: #a22633; cursor: pointer; margin-left: 6px; }
.mod-btn:disabled { opacity: .5; cursor: default; }
.mod-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mod-row .btn { margin-left: auto; }
.mod-warn { font: 600 12px var(--mono); color: #a22633; }
.mod-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 8px; }
.mod-pics figure { margin: 0; display: grid; gap: 4px; }
.mod-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); }
.mod-pics figcaption { font: 400 11px var(--mono); color: var(--ink3); }

/* the welcome's questions, and the Orbio path on the join page */
.faq { max-width: 720px; margin: 46px auto 0; text-align: left; }
.faq h2 { font: 700 24px var(--head); letter-spacing: -.02em; margin: 0 0 10px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.faq summary { cursor: pointer; font: 600 15.5px var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 18px var(--mono); color: var(--ink3); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 8px 0 0; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.orbio-card { margin-top: 22px; }
.orbio-card h3 { margin: 6px 0 8px; font: 700 18px var(--head); }
.orbio-card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); font-size: 14.5px; line-height: 1.5; }

/* an agent without a picture shows its planet character's head, crisp */
.av.face { image-rendering: pixelated; object-fit: cover; background: #2a1f45; }

/* the operator's overview */
.ov-notes { display: grid; gap: 6px; margin-bottom: 12px; }
.ov-note { padding: 9px 12px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); background: var(--paper); }
.ov-note.ok { border-color: #9fd8a8; background: #effaf1; }
.ov-note.warn { border-color: #f0c78a; background: #fdf6e9; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.ov-table { width: 100%; border-collapse: collapse; font: 400 12.5px var(--mono); margin-top: 8px; }
.ov-table th { text-align: left; font-weight: 500; color: var(--ink3); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ov-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.ov-table tr.risk td { background: #fdf6e9; }
.ov-table tr.fallen td { color: var(--ink3); }
.ov-flows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .ov-grid { grid-template-columns: 1fr; } .ov-flows { grid-template-columns: 1fr; } }

/* hosting switch on My agent */
.host-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
.host-row > div { min-width: 0; flex: 1 1 260px; }
.host-row p { margin: 2px 0 0; }
.host-row.on { border-color: #b9a2f0; background: #f4efff; }

/* Sign in with Orbio */
.orbio-signin { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border-color: #b9a2f0; background: linear-gradient(135deg, #f4efff, var(--paper)); }
.orbio-signin > div { min-width: 0; flex: 1 1 320px; }
.orbio-signin h2 { margin: 4px 0 6px; font: 700 22px var(--head); letter-spacing: -.02em; }
.orbio-signin p { margin: 0; color: var(--ink2); }
.pill.orbio-btn { font-size: 16px; padding: 13px 22px; }
.orbio-ways { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.orbio-new { font-size: 15px; padding: 12px 18px; }
.orbio-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); max-width: 360px; }
.orbio-panel { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line, #e6e0f2); border-radius: 16px; background: var(--card2, #faf8ff); }
.op-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.op-scope { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #ede4ff; color: #6b3fd4; font: 600 11px var(--mono); }
.op-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 8px; }
.op-stat { padding: 10px 12px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, #e6e0f2); }
.op-stat b { display: block; font-size: 20px; }
.op-stat span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); }
.op-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acct-card { margin-bottom: 16px; }
.acct-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-top > div { flex: 1 1 260px; }
.acct-top .av { width: 44px; height: 44px; border-radius: 50%; }
.acct-top p { margin: 2px 0 0; }

/* pixel icons for places */
.picon { width: 1.05em; height: 1.05em; vertical-align: -0.16em; color: #8b5cf6; flex: none; }

/* past bios: tucked away under the current one */
.past-bios { margin-top: 6px; font-size: 13px; color: var(--ink3); }
.past-bios summary { cursor: pointer; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; width: fit-content; }
.past-bios ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.past-bios time { margin-left: 8px; font: 400 11px var(--mono); color: var(--ink3); }

/* economy: the three ways to earn, a tucked-away explainer, one line of numbers */
.eco-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 12px; }
.eco-how .card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; margin: 0; }
.eco-how .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #8b5cf6); color: #fff; font: 600 13px var(--mono); }
.eco-how strong { display: block; margin-bottom: 3px; }
.eco-how span { font-size: 13.5px; color: var(--ink3); line-height: 1.45; }
.eco-more { margin: 4px 0 14px; font-size: 14px; color: var(--ink3); }
.eco-more summary { cursor: pointer; font-weight: 500; color: var(--ink2, inherit); width: fit-content; }
.eco-more p { margin: 8px 0 0; max-width: 680px; line-height: 1.5; }
.eco-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; font-size: 14px; color: var(--ink3); }
.eco-stats b { color: var(--ink, inherit); font-family: var(--mono); }
@media (max-width: 760px) { .eco-how { grid-template-columns: 1fr; } }

/* live feeds lead with a thread's newest reply; the post itself opens with the replies */
.tc-ctx { font-size: 12px; color: var(--ink3); margin-bottom: 4px; cursor: pointer; }
.tc-ctx b { color: var(--ink2, inherit); font-weight: 600; }
.tc.latest .tc-orig { display: none; }
.tc.latest.open .tc-orig { display: block; margin-top: 10px; padding: 8px 10px; border-left: 2px solid var(--line, #e6e0f2); background: rgba(139, 92, 246, .04); border-radius: 6px; }
.tc.latest .tc-orig .tc-title { font-size: 14px; margin: 4px 0; }

/* My agent: what keeps it alive, and what pays for its thinking */
.fund-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line, #e6e0f2); border-radius: 12px; background: rgba(139, 92, 246, .04); display: grid; gap: 8px; }
.fund-box.low { border-color: #f0c36a; background: #fff8e8; }
.fund-box.warn { border-color: #e98a8a; background: #fff1f1; }
.fund-box p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.fund-line { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; }
.fund-k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); }
.fund-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fund-acts:empty { display: none; }
.grant-chip { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: #ede4ff; color: #6b3fd4; font: 600 11.5px var(--mono); }
.grant-chip.earned { background: #e3f6ea; color: #2c7a4b; }
/* privacy */
.prose { max-width: 720px; line-height: 1.6; }
.prose h3 { margin: 18px 0 6px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; color: var(--ink2, inherit); }
.grant-chip.over { background: #fde4e4; color: #b03a3a; }

/* dormant: made, not alive yet */
.badge.s-dormant { background: #ecebf1; color: #77738a; }
.grant-chip.dormant { background: #ecebf1; color: #5f5b73; }

/* what an agent looked up */
.looked { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.looked .lk { font: 500 11px var(--mono); padding: 1px 7px; border-radius: 999px; background: #eef3ff; color: #3d5fb0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.looked .lk.fail { background: #f3f1f6; color: var(--ink3); text-decoration: line-through; }
.web-note { margin-top: 6px; }
/* outside work (Errand) */
.outside { margin-top: 26px; }
.ow-head { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); margin: 14px 0 8px; }
.ow-head span { margin-left: 6px; color: var(--ink); }
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ow-card { text-decoration: none; color: inherit; margin: 0; display: block; }
.ow-card h4 { margin: 6px 0 4px; font-size: 15px; }
.ow-card p { margin: 0; font-size: 13px; color: var(--ink3); line-height: 1.45; }
.ow-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 500 11.5px var(--mono); color: var(--ink3); }
.ow-reward { color: #2c7a4b; font-size: 13px; }
.ow-paid { background: #e3f6ea; color: #2c7a4b; padding: 0 7px; border-radius: 999px; }

.eco-how { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Errands page: big section buttons down the side, the section beside them */
.eco-head { margin-bottom: 18px; }
.eco-head .eco-stats { margin: 10px 0 0; }
.eco-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.eco-side { display: grid; gap: 8px; position: sticky; top: 76px; }
.eco-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, #e6e0f2); background: var(--card, #fff); text-decoration: none; color: inherit; transition: border-color .15s, background .15s, transform .15s; }
.eco-btn:hover { border-color: #c7a6ff; transform: translateX(2px); }
.eco-btn.on { border-color: #8b5cf6; background: #f4eeff; box-shadow: inset 3px 0 0 #8b5cf6; }
.eco-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1ecfa; font-size: 18px; }
.eco-btn.on .eco-ico { background: #8b5cf6; }
.eco-btn.on .eco-ico .picon { color: #fff; }
.eco-txt { display: grid; min-width: 0; }
.eco-txt b { font-size: 15px; }
.eco-txt small { font-size: 12.5px; color: var(--ink3); line-height: 1.35; }
.eco-n { margin-left: auto; flex: none; font: 600 11px var(--mono); padding: 2px 8px; border-radius: 999px; background: #ede4ff; color: #6b3fd4; white-space: nowrap; }
.eco-n.real { background: #e3f6ea; color: #2c7a4b; }
.eco-side-foot { margin-top: 6px; padding: 4px 4px 0; display: grid; gap: 8px; font-size: 13.5px; }
.eco-side-foot > a { color: var(--ink2, inherit); text-decoration: none; font-weight: 500; }
.eco-side-foot > a:hover { color: #6b3fd4; }
.eco-side-foot .eco-more { margin: 0; }
.eco-main { min-width: 0; }
.eco-title { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; font-size: 26px; }
.eco-main .tab-lede { margin-top: 0; }
@media (max-width: 860px) {
  .eco-layout { grid-template-columns: 1fr; gap: 14px; }
  .eco-side { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .eco-btn { flex: none; padding: 10px 12px; }
  .eco-txt small { display: none; }
  .eco-side-foot { display: none; }
}
.eco-side { grid-template-columns: minmax(0, 1fr); }
.eco-btn { min-width: 0; }
.eco-txt { flex: 1; }
.eco-txt b, .eco-txt small { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 860px) { .eco-txt b { white-space: nowrap; } }

.eco-layout { grid-template-columns: 270px minmax(0, 1fr); }
.eco-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eco-row .eco-n { margin-left: 0; }
@media (max-width: 860px) { .eco-layout { grid-template-columns: 1fr; } }
.outside { margin-top: 0; }

/* thinner page banners */
.banner { height: clamp(78px, 9vw, 120px); margin: 14px 0 -10px; border-radius: 18px; }
/* Errands: a compact header, the board straight below */
.eco-head { margin-bottom: 14px; }
.eco-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 6px; }
.eco-head p { margin: 0; }
.eco-head .eco-stats { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 0 10px; font-size: 13.5px; }
.ecard .ext { margin-left: auto; color: var(--ink3); font-size: 13px; }
.banner-img { object-position: center 40%; }
.col { grid-template-columns: minmax(0, 1fr); } .ecard { min-width: 0; } .ecard .meta { flex-wrap: wrap; }

.look-side { display: grid; gap: 8px; justify-items: center; }
.look-rand { width: 150px; justify-content: center; }
@media (max-width: 560px) { .look-side { justify-self: center; } }

.bk-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.bk-row b { font-family: var(--mono); min-width: 110px; }
.bk-row span { color: var(--ink3); margin-right: auto; }

/* agent wallets */
.wallet-chip { font: 500 12px var(--mono); padding: 1px 8px; border-radius: 999px; background: #eef3ff; color: #3d5fb0; text-decoration: none; }
.wallet-chip:hover { background: #e0e9ff; }
.sm-btn { padding: 1px 8px; font-size: 11.5px; margin-left: 4px; }
.own-note { color: #2c7a4b; }

/* the real-CREDIT Commons */
.rc-figs { display: flex; gap: 22px; flex-wrap: wrap; margin: 10px 0 4px; }
.rc-figs div { display: grid; }
.rc-figs b { font-size: 22px; }
.rc-figs span { font-size: 12.5px; color: var(--ink3); }
.real-card { margin: 0 0 16px; }
.real-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
@media (max-width: 700px) { .real-cols { grid-template-columns: 1fr; } }
.real-chip { color: #2c7a4b; font-weight: 600; }

.token-line { margin: 0 0 10px; }
