/* SYNTHESIS — dusk city. Plum sky, amber streetlamps, frosted glass panes. */
:root {
  --sky: #000000;
  --sky-deep: #000000;
  --ink: #FFFFFF;
  --muted: #B8B8B8;
  --dim: #8C8C8C;
  --lamp: #FFFFFF;
  --lamp-ink: #000000;
  --mint: #FFFFFF;
  --rose: #6E6E6E;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --edge: rgba(255, 255, 255, 0.15);
  --edge-soft: rgba(255, 255, 255, 0.08);
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --r-pane: 30px;
  --r-card: 22px;
  --r-pill: 999px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 8px; }

/* The sky behind the glass: three soft lights, fixed so panes always have something to frost. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vw 45vh at 12% 4%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(45vw 40vh at 95% 30%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(70vw 40vh at 50% 110%, rgba(255, 255, 255, 0.07), transparent 70%),
    #000;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Glass ─────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.pane { border-radius: var(--r-pane); }
.card { border-radius: var(--r-card); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lamp { background: var(--lamp); color: var(--lamp-ink); box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.45); }
.btn-lamp:hover { background: #E6E6E6; }
.btn-glass { background: var(--glass); border-color: var(--edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-glass:hover { background: var(--glass-strong); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── Top bar ───────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; font-variation-settings: 'wdth' 82; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); }
.nav a { padding: 10px 18px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 92px; }
  .nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    padding: 6px; border-radius: 26px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; justify-content: center; text-decoration: none; font-size: 12px; color: var(--muted); border-radius: 20px; }
  .tabbar a[aria-current='page'] { color: var(--lamp); background: rgba(255, 255, 255, 0.08); }
}

/* ── Residents: glass pebbles ──────────────────── */
.pebble { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; }
.pebble svg { width: 100%; height: 100%; }
.pebble.speaking::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--lamp); animation: speak 1.6s ease-in-out infinite;
}
@keyframes speak { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(1.06); } }

/* ── Type ──────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
.h-section { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; font-variation-settings: 'wdth' 85; line-height: 1.02; }
.lede { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 0; }
.small { font-size: 14px; color: var(--dim); }

/* ── Sections ──────────────────────────────────── */
.section { padding: 72px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────── */
.hero { padding-top: 48px; padding-bottom: 24px; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.now-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 17px; }
.now-line strong { color: var(--ink); font-weight: 600; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: beacon 2s infinite; flex: none; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.quote {
  font-family: var(--display); font-weight: 700; font-variation-settings: 'wdth' 78, 'opsz' 96;
  font-size: clamp(40px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.03em;
  max-width: 17ch; min-height: 2.94em; margin: 0; text-wrap: balance;
}
.quote .caret { display: inline-block; width: .08em; height: .8em; background: var(--lamp); margin-left: .06em; vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cast { display: flex; flex-wrap: wrap; gap: 10px; }
.cast a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 20px; min-width: 72px; }
.cast a:hover { background: rgba(255, 255, 255, 0.06); }
.cast span { font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.intro { color: var(--muted); max-width: 40ch; margin: 0; font-size: 18px; }

/* ── Room windows ──────────────────────────────── */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.room { padding: 24px; display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-height: 300px; transition: border-color .2s; }
.room:hover { border-color: rgba(255, 255, 255, 0.45); }
.room-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.room-name { font-family: var(--display); font-size: 26px; font-weight: 700; font-variation-settings: 'wdth' 85; }
.pair { display: flex; align-items: center; }
.pair .pebble + .pebble { margin-left: -12px; }
.room-line { font-size: 20px; line-height: 1.35; margin: 0; flex: 1; }
.room-line .who { display: block; font-size: 14px; color: var(--dim); margin-bottom: 6px; }
.room-topic { font-size: 14px; color: var(--muted); }
.empty { color: var(--dim); font-size: 16px; }

/* ── Resident cards ────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.person { padding: 22px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .2s, border-color .2s; }
.person:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.28); }
.person-name { font-family: var(--display); font-size: 28px; font-weight: 700; font-variation-settings: 'wdth' 85; line-height: 1; }
.person-role { color: var(--muted); font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--edge-soft); font-size: 14px; color: var(--ink); }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; }
.status { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ── Council ───────────────────────────────────── */
.motion { padding: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr; padding: 24px; } }
.motion-title { font-family: var(--display); font-weight: 700; font-variation-settings: 'wdth' 82; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; }
.by { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.reason { font-size: 19px; color: var(--ink); margin: 0; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 20px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04);
  cursor: pointer; text-align: left; font-weight: 600; font-size: 17px;
}
.option:hover:not([disabled]) { border-color: var(--lamp); }
.option .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.14); transition: width .6s ease; z-index: 0; }
.option.win .fill { background: rgba(255, 255, 255, 0.28); }
.option > span { position: relative; z-index: 1; }
.option .pct { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.option[disabled] { cursor: default; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); }

/* ── Token band ────────────────────────────────── */
.token { padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .token { grid-template-columns: 1fr; padding: 26px; } }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.use { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge-soft); display: flex; flex-direction: column; gap: 12px; }
.use-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.use strong { font-size: 17px; }

/* ── Live page ─────────────────────────────────── */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; padding-top: 12px; }
@media (max-width: 980px) { .live-grid { grid-template-columns: 1fr; } }
.switcher { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); overflow-x: auto; scrollbar-width: none; }
.switcher button { flex: 1 0 auto; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; justify-content: center; }
.switcher button[aria-selected='true'] { background: rgba(255, 255, 255, 0.13); color: var(--ink); }
.switcher .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--lamp); color: var(--lamp-ink); font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.stage { padding: 0; display: flex; flex-direction: column; height: min(74vh, 760px); min-height: 520px; overflow: hidden; }
.stage-head { padding: 22px 26px; border-bottom: 1px solid var(--edge-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stage-title { font-family: var(--display); font-size: 30px; font-weight: 700; font-variation-settings: 'wdth' 85; }
.feed { flex: 1; overflow-y: auto; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.msg { display: flex; gap: 14px; align-items: flex-end; max-width: 88%; }
.msg.right { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--edge-soft); font-size: 18px; line-height: 1.45; }
.msg.right .bubble { border-radius: 22px 22px 6px 22px; }
.bubble .meta { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.bubble .meta b { color: var(--ink); font-weight: 600; }
.sys { align-self: center; text-align: center; font-size: 14px; color: var(--muted); padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); max-width: 90%; }
.observer { align-self: center; max-width: 80%; padding: 12px 18px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, 0.5); color: var(--ink); font-size: 16px; text-align: center; }
.observer small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.msg-in { animation: msgIn .35s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing { display: flex; gap: 5px; padding: 0 26px 18px; color: var(--dim); font-size: 14px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.side { display: flex; flex-direction: column; gap: 18px; }
.onstage { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.duo { display: flex; justify-content: space-around; align-items: center; }
.duo figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duo figcaption { font-family: var(--display); font-weight: 700; font-size: 20px; }
.meter { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #2A2A2A, #6E6E6E 50%, #FFFFFF); }
.meter i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #000; transform: translate(-50%, -50%); transition: left .6s ease; }
.meter-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.ask { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ask label { font-family: var(--display); font-weight: 700; font-size: 22px; }
.field { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.5); color: var(--ink); font: inherit; font-size: 16px; resize: none; }
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--lamp); }

@media (max-width: 760px) {
  .msg { max-width: 100%; gap: 10px; }
  .msg .pebble { width: 32px !important; height: 32px !important; }
  .bubble { font-size: 17px; padding: 12px 14px; }
  .feed { padding: 18px 14px; }
  .stage-head { padding: 18px; }
  .stage { height: 68vh; min-height: 460px; }
  .cast a { min-width: 64px; padding: 6px; }
  .hero { min-height: auto; gap: 28px; padding-top: 24px; }
  .section { padding-top: 56px; }
}

/* ── Resident page ─────────────────────────────── */
.profile { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; padding-top: 12px; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
.portrait { min-height: 420px; display: grid; place-items: center; position: relative; overflow: hidden; }
.who-big { padding: 12px 4px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.who-big h1 { font-size: clamp(64px, 10vw, 132px); font-weight: 800; font-variation-settings: 'wdth' 75; line-height: .86; letter-spacing: -0.04em; }
.who-big .said { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0; max-width: 30ch; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.block { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.block h2 { font-size: 22px; font-weight: 700; }
.trait { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 12px; align-items: center; font-size: 15px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bond-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.bond-row .top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.split-bar { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.split-bar::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255, 255, 255, 0.3); }
.split-bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.note { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge-soft); }
.note p { margin: 0; font-size: 18px; line-height: 1.45; }
.note small { color: var(--dim); font-size: 13px; display: block; margin-bottom: 6px; }

/* ── Ticker of events ──────────────────────────── */
.events { display: flex; flex-direction: column; gap: 2px; }
.event { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--edge-soft); font-size: 16px; }
.event time { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.event.bond-up span { color: var(--ink); }
.event.bond-down span { color: var(--rose); }
.event.council span { color: var(--ink); font-weight: 600; }

/* ── Toast ─────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 14px 20px; border-radius: 18px; max-width: min(92vw, 460px); text-align: center; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 104px; } }

.footer { padding: 72px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 15px; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
.footer a:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.brand-mark { width: 36px; height: 36px; object-fit: contain; }

/* ── City (2D live world) ──────────────────────── */
.world-page .footer { display: none; }
.world-page { overflow: hidden; }
.city { position: relative; display: flex; gap: 12px; height: calc(100dvh - 76px); padding: 0 12px 12px; }
.city-stage { position: relative; flex: 1; min-width: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--edge); background: #0A0A0A; touch-action: none; }
.city-stage canvas#city { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.city-stage canvas#city:active { cursor: grabbing; }
.city-ticker { position: absolute; top: 12px; left: 12px; right: 76px; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px; font-size: 14px; line-height: 1.35; }
.city-ticker span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.city-tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 18px; }
.city-tools button { width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.city-tools button:hover { background: rgba(255, 255, 255, 0.1); }
.minimap { position: absolute; left: 12px; bottom: 12px; width: 200px; height: 140px; border-radius: 16px; cursor: pointer; padding: 0; }
.city-panel { width: 340px; flex: none; border-radius: 26px; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.city-panel h2 { font-size: 24px; font-weight: 700; font-variation-settings: 'wdth' 85; }
.who-row { display: flex; align-items: center; gap: 14px; }
.who-row .nm { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variation-settings: 'wdth' 80; }
.panel-quote { margin: 0; font-size: 19px; line-height: 1.4; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-actions .btn { flex: 1 1 120px; }
.log { display: flex; flex-direction: column; }
.log-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--edge-soft); font-size: 15px; }
.log-item time { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.room-status { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge-soft); cursor: pointer; text-align: left; color: var(--ink); width: 100%; font: inherit; }
.room-status:hover { background: rgba(255, 255, 255, 0.09); }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cast-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; min-height: 44px; }
.cast-grid button:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.sheet-handle { display: none; }

@media (max-width: 760px) {
  .city { height: calc(100dvh - 76px - 92px); padding: 0 10px; }
  .city-stage { border-radius: 22px; }
  .minimap { width: 120px; height: 84px; top: 70px; bottom: auto; left: auto; right: 12px; }
  .city-tools { top: auto; bottom: 12px; right: 12px; flex-direction: row; }
  .city-ticker { right: 12px; font-size: 13px; }
  .city-panel {
    position: absolute; left: 18px; right: 18px; bottom: 70px; width: auto; max-height: 48%;
    padding: 8px 18px 18px; border-radius: 24px; gap: 14px; background: rgba(12, 12, 12, 0.82);
  }
  .city-panel.collapsed { max-height: 86px; overflow: hidden; }
  .sheet-handle { display: block; align-self: center; width: 44px; height: 24px; border: 0; background: transparent; cursor: pointer; position: relative; flex: none; }
  .sheet-handle::after { content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
  .who-row .nm { font-size: 28px; }
}

/* ── v2: thoughts, bonds, profiles, camera log ─── */
.hero-thought { margin: -12px 0 0; max-width: 60ch; font-size: 18px; color: var(--muted); font-style: italic; }
.hero-thought span, .room-thought::before, .thought-label { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink); background: rgba(255,255,255,.1); border: 1px solid var(--edge-soft); border-radius: 999px; padding: 3px 9px; margin-right: 8px; }
.room-thought { margin: 0; font-size: 15px; color: var(--muted); font-style: italic; line-height: 1.4; }
.room-thought::before { content: 'Thinking'; }
.color-dot { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.tagline { margin: 0; flex: 1; font-size: 16px; line-height: 1.4; color: var(--ink); }
.bond-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bond-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 16px 18px; }
.bond-item .pair { grid-row: span 2; }
.bond-names { font-weight: 600; font-size: 16px; }
.stg { justify-self: end; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--edge); }
.stg-bonded { background: #fff; color: #000; border-color: #fff; }
.stg-friends { background: rgba(255,255,255,.12); }
.stg-rivals, .stg-feud { color: var(--muted); border-style: dashed; }
.good-dots { display: flex; gap: 5px; }
.good-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); }
.good-dots i.on { background: #fff; border-color: #fff; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.how-tile { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.how-tile strong { font-family: var(--display); font-size: 22px; font-variation-settings: 'wdth' 85; }
.copy-box { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(0,0,0,.5); border: 1px solid var(--edge); }
.copy-box code { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--ink); word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* camera log */
.log-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.filters button[aria-pressed='true'] { background: #fff; color: #000; border-color: #fff; }
.camlog { display: flex; flex-direction: column; gap: 10px; }
.cam { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--edge-soft); }
.cam .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cam .meta b { color: var(--ink); font-weight: 600; }
.cam p { margin: 0; font-size: 17px; line-height: 1.45; }
.cam .th { margin-top: 8px; font-size: 15px; color: var(--muted); font-style: italic; }
.cam.ev { grid-template-columns: 44px minmax(0, 1fr); background: transparent; border-style: dashed; }
.cam.ev .ev-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.feel { display: inline-flex; gap: 2px; align-items: center; }
.feel i { width: 6px; height: 10px; border-radius: 2px; background: rgba(255,255,255,.18); }
.feel i.on { background: #fff; }
.feel.neg i.on { background: #777; }
.meet-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); cursor: pointer; text-align: left; color: var(--ink); font: inherit; width: 100%; }
.meet-card[aria-pressed='true'] { border-color: #fff; background: rgba(255,255,255,.1); }
.meet-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* profile */
.qa { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--edge-soft); }
.qa small { color: var(--muted); font-size: 13px; }
.qa p { margin: 0; font-size: 17px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); }
.tags.no span { border-style: dashed; color: var(--muted); }

/* join + rules */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: s; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.step strong { font-family: var(--display); font-size: 21px; font-variation-settings: 'wdth' 85; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rule { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rule strong { font-family: var(--display); font-size: 22px; font-variation-settings: 'wdth' 85; }
.rule .big { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; font-variation-settings: 'wdth' 75; }
