:root {
  --bg: #07070c; --panel: #0e0d16; --panel2: #13121d; --line: #22202f; --text: #ece6d6; --muted: #8f8a9e;
  --gold: #e2bd6c; --gold2: #f3dca3; --ocean: #0a0b14; --land: #262433; --landline: #3a3749;
  --display: 'Marcellus', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(1200px 600px at 70% -10%, rgba(226,189,108,.10), transparent 60%), radial-gradient(900px 500px at 0% 30%, rgba(126,139,255,.06), transparent 60%); z-index: -1; }
a { color: inherit; }
.mono { font-family: var(--mono); }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 28px; background: rgba(7,7,12,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .18em; color: var(--gold2); }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.top nav a:hover { color: var(--text); }
.chain { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; color: var(--gold2); }
.chain i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

main { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
section { padding: 34px 0; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-top: 48px; }
.kicker { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--muted); }
.kicker b { color: var(--gold2); font-weight: 600; }
.live { color: #ff6b6b; margin-right: 8px; }
.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
h1 { font: 400 clamp(38px, 5.4vw, 72px)/1.02 var(--display); margin: 14px 0 18px; letter-spacing: -.01em; background: linear-gradient(180deg, #fff6df, var(--gold) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #c9c3b3; max-width: 620px; font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font: 500 14px var(--sans); cursor: pointer; }
.btn:hover { border-color: #3a3750; }
.btn.gold { background: linear-gradient(180deg, #f0d08a, #c99b45); color: #1a1408; border-color: transparent; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--panel); padding: 14px 16px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.stat b { display: block; font: 500 26px/1.25 var(--mono); color: var(--text); margin-top: 4px; }
.stat em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.stat.next b { color: var(--gold2); }
.up { color: #7fe0a8 !important; } .down { color: #ff8a80 !important; }

.world { display: grid; grid-template-columns: 1fr 330px; gap: 18px; padding-top: 18px; align-items: start; }
.map-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.map-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.layers { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 11px; font: 500 12.5px var(--sans); cursor: pointer; }
.pill.on { color: #15110a; background: var(--gold); border-color: var(--gold); }
.replay { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.replay input { width: 160px; accent-color: var(--gold); }
#live-btn.on { background: #ff6b6b22; color: #ff8b8b; border-color: #ff6b6b55; }
.map { position: relative; height: 620px; background: radial-gradient(ellipse at 50% 55%, #15122a 0%, #0a0915 45%, #040408 80%); cursor: grab; user-select: none; overflow: hidden; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
#globe { position: absolute; inset: 0; }
#globe canvas { outline: none; }
.gtip { background: #0b0a12f2; border: 1px solid #3a3550; border-radius: 10px; padding: 9px 11px; font: 12.5px var(--sans); color: var(--text); min-width: 190px; box-shadow: 0 10px 30px #0008; }
.gtip b { font-weight: 600; font-size: 13.5px; } .gtip .m { color: var(--muted); margin: 2px 0 4px; }
.seat { transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 99px; background: #0b0a12d9; border: 1px solid var(--c); color: var(--c); font: 600 10.5px var(--sans); letter-spacing: .04em; white-space: nowrap; pointer-events: none; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.seat i { font-style: normal; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c); color: #0b0a12; font-size: 10px; }
.map.grabbing { cursor: grabbing; }
.globe-ctl { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 4; }
.globe-ctl .pill { background: #0b0a12cc; backdrop-filter: blur(6px); min-width: 30px; }
.globe-ctl .pill.on { background: var(--gold); }
.hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font: 11.5px var(--mono); color: var(--muted); background: #0b0a12aa; padding: 4px 10px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
@media (max-width: 720px) { .hint { font-size: 10px; } .map { height: 440px; } .globe-ctl { top: 8px; left: 8px; } .globe-ctl .pill { padding: 4px 9px; } }
#svg { display: block; width: 100%; height: auto; }
.country { stroke: var(--landline); stroke-width: .5; transition: fill .5s; cursor: pointer; }
.country:hover { stroke: var(--gold2); stroke-width: 1.1; }
.country.sel { stroke: #fff; stroke-width: 1.4; }
.grat { fill: none; stroke: #ffffff0a; stroke-width: .5; }
.sphere { stroke: #ffffff18; }
.dot { pointer-events: none; }
.ping { fill: none; stroke-width: 1.5; pointer-events: none; animation: ping 2.2s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { r: 2; opacity: 1; } to { r: 22; opacity: 0; } }
.tip { position: absolute; pointer-events: none; background: #0b0a12f2; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; min-width: 180px; opacity: 0; transition: opacity .12s; z-index: 5; }
.tip b { font-weight: 600; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 13px var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

.side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow: auto; }
.side h3 { font: 400 22px var(--display); margin: 0 0 6px; }
.side p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.share { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.share .bar { grid-column: 2 / 4; height: 3px; background: #ffffff10; border-radius: 3px; overflow: hidden; }
.share .bar i { display: block; height: 100%; }
.share small { color: var(--muted); font: 12px var(--mono); }
.spark-box { margin-top: 16px; }
.spark-box small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
#spark { width: 100%; height: 80px; display: block; margin-top: 6px; }
.spark-l { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.spark-l i { display: inline-block; width: 8px; height: 2px; vertical-align: middle; margin-right: 4px; }
.cty-head { display: flex; justify-content: space-between; align-items: baseline; }
.close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.levers { display: grid; gap: 6px; margin: 12px 0; }
.lever { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.lever span:first-child { color: var(--muted); }
.meter { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.meter div { background: var(--panel2); border-radius: 9px; padding: 8px 10px; }
.meter small { display: block; color: var(--muted); font-size: 11px; }
.meter b { font: 500 16px var(--mono); }
.plist { margin: 10px 0 0; padding: 0; list-style: none; max-height: 210px; overflow: auto; font-size: 13px; }
.plist li { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.plist em { margin-left: auto; font-style: normal; color: var(--muted); font: 11.5px var(--mono); }

.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; }
.sec-head h2, .work h2, .token h2 { font: 400 32px var(--display); margin: 0; color: var(--gold2); }
.sec-head p { color: var(--muted); margin: 0; max-width: 820px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); max-height: 620px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .when { font: 12px var(--mono); color: var(--muted); padding-top: 1px; }
.feed .txt { font-size: 14px; }
.feed li.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: #e2bd6c1c; } }
.hn { font-weight: 600; white-space: nowrap; }
.hn small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 3px; }
.tag { display: inline-block; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; background: #ffffff10; color: var(--muted); }
.tag.t-take, .tag.t-contest { background: #ff5e5722; color: #ff9b93; } .tag.t-revolt, .tag.t-lost { background: #7e8bff22; color: #aab3ff; }
.tag.t-burn { background: #e2bd6c22; color: var(--gold2); } .tag.t-shield { background: #39d3ad1f; color: #7ee8cc; }
.more { margin-top: 12px; }

.house-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.house { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow: hidden; }
.house::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.house .glyph { position: absolute; right: 14px; top: 8px; font-size: 54px; color: var(--c); opacity: .12; }
.house h3 { font: 400 23px var(--display); margin: 0; color: var(--c); }
.house .model { font: 12px var(--mono); color: var(--muted); }
.house blockquote { margin: 12px 0; color: #cfc9b8; font-size: 13.5px; border-left: 2px solid var(--c); padding-left: 10px; }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hgrid div { background: var(--panel2); border-radius: 9px; padding: 7px 9px; min-width: 0; }
.hgrid small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.hgrid b { font: 500 14px var(--mono); }
.legit { margin-top: 10px; font-size: 12px; color: var(--muted); }
.legit .bar { height: 5px; background: #ffffff10; border-radius: 5px; margin-top: 4px; overflow: hidden; }
.legit .bar i { display: block; height: 100%; background: var(--c); }
.mind { float: right; font: 11px var(--mono); color: var(--c); }

.pil-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.pil-stats div { background: var(--panel); padding: 14px 16px; }
.pil-stats small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.pil-stats b { display: block; font: 500 24px var(--mono); }
.pil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pil { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pil h4 { margin: 0; font: 400 19px var(--display); color: var(--c); }
.pil .model { font: 12px var(--mono); color: var(--muted); }
.pil p { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.pil button { width: 100%; justify-content: center; opacity: .6; cursor: not-allowed; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.work { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.work-card h2 { font-size: 26px; }
.work-card p { color: #c9c3b3; font-size: 14px; }
.soon { display: inline-block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold2); border: 1px solid #e2bd6c55; border-radius: 99px; padding: 4px 10px; }
.jobs { display: grid; gap: 6px; }
.job { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.job em { margin-left: auto; font: 12px var(--mono); font-style: normal; color: var(--gold2); white-space: nowrap; }

.token { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #15121c, #0c0b12); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 34px 0; }
.tok-mark { display: grid; place-items: center; }
.tok-mark img { filter: drop-shadow(0 0 30px #e2bd6c55); }
.token h2 { font-size: 42px; }
.token p { color: #c9c3b3; }
.token ul { padding-left: 18px; color: #c9c3b3; }
.token li { margin: 6px 0; }
.ca { display: inline-flex; gap: 10px; align-items: center; background: #00000040; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 6px; }
.ca small { color: var(--muted); }
.disclaimer { color: #6f6a7e; font-size: 12px; max-width: 900px; padding-bottom: 20px; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .side { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr; }
  .house-grid, .pil-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  main { padding: 0 16px; }
  .top { padding: 10px 16px; gap: 12px; }
  .top nav { display: none; }
  .chain { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 21px; }
  .house-grid, .pil-grid, .work, .pil-stats { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .token { grid-template-columns: 1fr; }
  .replay input { width: 110px; }
  footer { flex-direction: column; padding: 18px 16px; }
}

/* ---------- PANTHEON CITY (live 3D capital) ---------- */
.city { position: relative; height: calc(100svh - 57px); min-height: 520px; padding: 0; overflow: hidden; background: #0c0b15; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.city-gl, .city-gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.city-gl canvas { cursor: grab; touch-action: none; }
.city-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; background: rgba(9,8,15,.9); border: 1px solid #3b3650; border-radius: 4px; color: var(--text); font: 600 11px var(--mono); letter-spacing: .1em; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.lbl::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 1px; height: 6px; background: #3b3650; }
.lbl:hover { border-color: var(--gold); }
.lbl i { font-style: normal; color: var(--muted); border-left: 1px solid #3b3650; padding-left: 7px; }
.lbl .lv { color: var(--gold2); font-weight: 500; letter-spacing: .02em; }
.lbl.lm b { color: var(--gold2); font-weight: 600; }
.lbl.dist { background: none; border: none; box-shadow: none; color: rgba(236,230,214,.38); font-size: 12px; letter-spacing: .3em; cursor: default; }
.lbl.dist::after { display: none; }
.hud-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; z-index: 3; }
.hud-top .grow { flex: 1; }
.hud-brand { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: rgba(9,8,15,.88); border: 1px solid #3b3650; border-radius: 4px; font: 400 14px var(--display); letter-spacing: .2em; color: var(--gold2); }
.hud-brand em { font: 500 10px var(--mono); color: var(--muted); font-style: normal; letter-spacing: .2em; }
.hb { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; background: rgba(9,8,15,.88); border: 1px solid #3b3650; border-radius: 4px; color: var(--text); font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
span.hb { cursor: default; }
.hb small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.hb b { font-weight: 600; }
.hb.clock i { width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hb.burn i { width: 8px; height: 10px; border-radius: 50% 50% 40% 40%; background: linear-gradient(#ffd27a, #ff6a2b); box-shadow: 0 0 8px #ff7a2e; }
.hb.burn b { color: #ffb36a; }
.hb.tg.on { border-color: var(--gold); color: var(--gold2); background: rgba(226,189,108,.1); }
.hb:hover { border-color: #5a5470; }
.hud-find { position: relative; }
.find-pop { position: absolute; top: calc(100% + 6px); left: 0; width: 260px; background: rgba(9,8,15,.96); border: 1px solid #3b3650; border-radius: 6px; padding: 8px; z-index: 5; }
.find-pop[hidden] { display: none; }
.find-pop input { width: 100%; background: #13121d; border: 1px solid #2d2a3d; border-radius: 4px; color: var(--text); padding: 7px 9px; font: 12px var(--mono); }
.find-pop ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 300px; overflow: auto; }
.find-pop li button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 7px 6px; font: 12px var(--mono); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; border-radius: 4px; }
.find-pop li button:hover { background: #1b1928; }
.find-pop li small { color: var(--muted); font-size: 10.5px; }
.hud-stats { position: absolute; left: 12px; top: 62px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.sc { width: 150px; padding: 8px 11px; background: rgba(9,8,15,.88); border: 1px solid #3b3650; border-radius: 4px; position: relative; }
.sc::after { content: ''; position: absolute; right: 8px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #7fd6ff; opacity: .7; }
.sc b { display: block; font: 600 19px/1.15 var(--mono); }
.sc small { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.sc.gold b { color: var(--gold2); }
.wire { position: absolute; left: 172px; top: 62px; width: min(400px, 34vw); max-height: 46%; display: flex; flex-direction: column; background: rgba(9,8,15,.9); border: 1px solid #3b3650; border-radius: 4px; z-index: 2; }
.wire-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #2a2739; }
.wire-h b { font-size: 11px; letter-spacing: .14em; color: var(--gold2); }
.wire-h small { color: var(--muted); font-size: 10px; flex: 1; }
.wire-h button { background: none; border: 1px solid #3b3650; color: var(--muted); width: 22px; height: 20px; border-radius: 3px; cursor: pointer; font: 12px var(--mono); }
.wire.min ol { display: none; }
.wire ol { list-style: none; margin: 0; padding: 4px 0; overflow: auto; font-size: 11px; line-height: 1.45; }
.wire li { display: grid; grid-template-columns: 40px 14px 1fr; gap: 6px; padding: 4px 10px; color: #c9c3b3; }
.wire li.fresh { background: rgba(226,189,108,.05); }
.wire li .t { color: var(--muted); }
.wire li em { font-style: normal; color: var(--gold); text-transform: uppercase; font-size: 9.5px; letter-spacing: .1em; margin-right: 4px; }
.cut { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -12px); width: min(560px, calc(100% - 24px)); padding: 10px 14px; background: rgba(9,8,15,.92); border: 1px solid #4a4360; border-left: 3px solid var(--gold); border-radius: 4px; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; z-index: 2; }
.cut.on { opacity: 1; transform: translate(-50%, 0); }
.cut small { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.cut p { margin: 4px 0 0; font: 13px/1.45 var(--sans); color: var(--text); }
.ccard { position: absolute; right: 12px; top: 62px; width: 300px; padding: 14px 16px; background: rgba(9,8,15,.95); border: 1px solid #4a4360; border-radius: 6px; z-index: 4; font-family: var(--sans); }
.ccard[hidden] { display: none; }
.ccard .x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.ccard small { font: 600 10px var(--mono); letter-spacing: .14em; color: var(--muted); }
.ccard h4 { margin: 4px 0 2px; font: 400 22px var(--display); color: var(--gold2); }
.ccard .mdl { font: 11px var(--mono); color: var(--muted); }
.ccard p { font-size: 13px; color: #c9c3b3; margin: 8px 0; }
.ccard .dim { color: var(--muted); font-size: 12px; }
.ccard .kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font: 12px var(--mono); margin: 10px 0; }
.ccard .kv span { color: var(--muted); }
.ccard .go { font: 12px var(--mono); color: var(--gold); }
.mini { position: absolute; right: 12px; bottom: 46px; width: 290px; background: rgba(9,8,15,.92); border: 1px solid #3b3650; border-radius: 4px; z-index: 2; }
.mini-h { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-bottom: 1px solid #2a2739; }
.mini-h b { font-size: 11px; letter-spacing: .14em; color: var(--gold2); }
.mini-h small { color: var(--muted); font-size: 10px; }
.mini canvas { display: block; width: 100%; height: 140px; }
.mini-l { padding: 6px 10px 8px; font-size: 10.5px; color: #c9c3b3; line-height: 1.4; }
.mini-l i, .ticker i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.hint { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,230,214,.45); pointer-events: none; white-space: nowrap; z-index: 1; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: rgba(7,7,12,.94); border-top: 1px solid #2a2739; overflow: hidden; z-index: 2; }
.ticker-in { display: inline-flex; gap: 38px; white-space: nowrap; padding: 8px 0 0 100%; font-size: 11.5px; color: #c9c3b3; animation: tick 120s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
.city-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold2); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 1100px) { .wire { display: none; } .hide-m { display: none !important; } .hud-top { flex-wrap: nowrap; } }
@media (max-width: 760px) {
  .city { height: calc(100svh - 50px); }
  .hide-s, .mini, .hint { display: none !important; }
  .hud-top { top: 8px; left: 8px; right: 8px; gap: 5px; }
  .hb, .hud-brand { padding: 6px 8px; font-size: 10.5px; flex: none; }
  .hud-brand, .hb.burn small, .hb.clock small { display: none; }
  .hud-top .grow { display: none; }
  .hud-top { justify-content: space-between; }
  .hud-stats { top: auto; bottom: 42px; left: 8px; right: 8px; flex-direction: row; }
  .sc { width: auto; min-width: 0; flex: 1; padding: 6px 8px; }
  .sc b { font-size: 15px; }
  .cut { top: 50px; }
  .ccard { left: 8px; right: 8px; top: auto; bottom: 100px; width: auto; }
}

/* ---------- city v2: operative HUD ---------- */
.hud-top { left: 50%; right: auto; transform: translateX(-50%); gap: 4px; padding: 5px; background: rgba(9,8,15,.9); border: 1px solid #3b3650; border-radius: 6px; flex-wrap: nowrap; max-width: calc(100% - 140px); }
.hud-top .hb, .hud-top .hud-brand { background: transparent; border-color: transparent; }
.hud-top .hb.tg.on { border-color: var(--gold); background: rgba(226,189,108,.1); }
.hud-top button.hb:not(.tg) { border-color: #3b3650; }
.hud-top .hb.gold-t { color: var(--gold2); border-color: #5a4d2c !important; }
.hud-brand { font-size: 15px; padding: 6px 10px; }
.hb .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd6ff; box-shadow: 0 0 8px #7fd6ff; }
.hb.exit { position: absolute; right: 12px; top: 12px; z-index: 3; }
.hud-stats { top: 12px; gap: 6px; }
.sc { width: 168px; padding: 9px 12px; }
.sc b { font-size: 21px; }
.sc.big b { font-size: 23px; color: var(--text); }
.wire { left: 190px; top: 70px; width: min(430px, 34vw); max-height: 50%; }
.wire-tabs { display: flex; gap: 4px; flex: none; }
.wire-tabs button { background: none; border: 1px solid transparent; color: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .12em; padding: 3px 6px; border-radius: 3px; cursor: pointer; }
.wire-tabs button.on { color: var(--gold2); border-color: #4a4360; }
.wire li { grid-template-columns: 62px 1fr; }
.wire li .x b { color: var(--text); font-weight: 600; }
.wire li .fn, .ccard .fn { color: #7fd6ff; }
.wire li .ok, .ccard .ok { color: #8fe0a4; }
.wire li .bad, .ccard .bad { color: #ff7a6b; }
.wire li .x em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 1px; }
.wire li .x em.bad { color: #ff9c8f; }
.wire li .x em.tg { display: inline; color: var(--gold); text-transform: uppercase; font-size: 9.5px; letter-spacing: .1em; }
.lbl.agent { flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px 5px; border-color: #4a4360; font-size: 10.5px; }
.lbl.agent b { color: #ffd9a0; letter-spacing: .1em; }
.lbl.agent small { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #8fd8c9; letter-spacing: .12em; font-weight: 500; }
.lbl.agent small i { width: 6px; height: 6px; border: 0; padding: 0; }
.lbl.agent.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px rgba(0,0,0,.6); }
.moment { position: absolute; left: 12px; bottom: 46px; width: 380px; padding: 12px 52px 12px 14px; background: rgba(9,8,15,.92); border: 1px solid #3b3650; border-radius: 6px; z-index: 2; }
.moment small { font-size: 10px; letter-spacing: .16em; color: #8fd8c9; font-weight: 600; }
.moment small span { color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.moment p { margin: 6px 0 8px; font: 500 14.5px/1.35 var(--sans); color: var(--text); }
.moment-d { display: flex; gap: 5px; }
.moment-d i { width: 7px; height: 4px; background: #3b3650; }
.moment-d i.on { background: #7fd6ff; width: 16px; }
.moment button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background: none; border: 1px solid #4a4360; color: var(--text); border-radius: 4px; cursor: pointer; font-size: 18px; }
.ccard .team { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px 0 10px; }
.ccard .team button { text-align: left; background: #13121d; border: 1px solid #2d2a3d; color: var(--text); border-radius: 4px; padding: 5px 7px; font: 11px var(--mono); cursor: pointer; }
.ccard .team button em { display: block; font-style: normal; color: var(--muted); font-size: 9.5px; }
.ccard .clog { list-style: none; margin: 6px 0; padding: 0; font: 11px var(--mono); }
.ccard .clog li { padding: 2px 0; color: var(--muted); }
.ticker .tt { color: var(--muted); font-weight: 500; margin-right: 8px; }
.mini-l div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .hud-top { max-width: calc(100% - 120px); } .moment { width: 320px; } }
@media (max-width: 760px) {
  .hud-top { left: 8px; right: 8px; transform: none; max-width: none; justify-content: space-between; }
  .hb.exit { display: none; }
  .moment { left: 8px; right: 8px; width: auto; bottom: 96px; padding: 9px 46px 9px 11px; }
  .moment p { font-size: 13px; margin: 4px 0 6px; }
  .hud-stats { top: auto; bottom: 38px; }
  .sc { width: auto; }
  .sc.big b { font-size: 15px; }
  .ccard { bottom: 170px; }
}
.wire-h { flex-wrap: nowrap; white-space: nowrap; } .wire-h small { overflow: hidden; text-overflow: ellipsis; }

/* ---------- city v3 ---------- */
.city { background: linear-gradient(180deg, #2a2347 0%, #171329 38%, #0c0b15 70%); transition: background 2s; }
.city[data-sky="dusk"] { background: linear-gradient(180deg, #5a3a5e 0%, #2a1f3f 35%, #0c0b15 72%); }
.city[data-sky="day"] { background: linear-gradient(180deg, #6f7fb8 0%, #3c3f6e 36%, #15142a 72%); }
.bub { position: absolute; left: 0; top: 0; max-width: 220px; padding: 6px 9px; background: rgba(250,246,236,.96); color: #1a1625; border: 2px solid #4a4360; border-radius: 10px; font: 500 11.5px/1.35 var(--sans); pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.45); visibility: hidden; }
.bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: rgba(250,246,236,.96); border-bottom: 0; }
.lbl.venue { padding: 4px 8px; font-size: 10px; border-color: color-mix(in srgb, var(--c) 60%, #3b3650); }
.lbl.venue b { color: var(--c); }
.lbl.venue .vc { color: var(--gold2); font-weight: 500; }
.mini-tabs { display: flex; gap: 4px; }
.mini-tabs button { background: none; border: 1px solid transparent; color: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .12em; padding: 2px 6px; border-radius: 3px; cursor: pointer; }
.mini-tabs button.on { color: var(--gold2); border-color: #4a4360; }
.mini canvas { cursor: crosshair; }
.city.in-session .sc.gold { border-color: var(--gold); box-shadow: 0 0 14px rgba(226,189,108,.35); }
.city.in-session .sc.gold small::after { content: ' · in session'; color: var(--gold); }

/* ---------- city v4: daylight ---------- */
.city, .city[data-sky="day"] { background: linear-gradient(180deg, #9fb5d1 0%, #c3cfdc 45%, #d6dbe0 100%); }
.city[data-sky="dusk"] { background: linear-gradient(180deg, #8f8fb8 0%, #d9b3a0 50%, #e2cbbd 100%); }
.city[data-sky="night"] { background: linear-gradient(180deg, #1d1a3a 0%, #2a2846 60%, #322f50 100%); }
.hud-stats { top: 62px; } .wire { top: 62px; }
@media (max-width: 760px) { .hud-stats { top: auto; } }
.wire-h small { display: none; }
.wire-tabs { flex: 1; }

/* ---------- city v7: weather, flights ---------- */
.city[data-weather="rain"] { background: linear-gradient(180deg, #6f7985 0%, #8e98a4 50%, #a3abb5 100%) !important; }
.city[data-weather="fog"] { background: linear-gradient(180deg, #c3c8cf 0%, #d5d9de 100%) !important; }
.city.bolt::after { content: ""; position: absolute; inset: 0; background: rgba(235,240,255,.28); pointer-events: none; z-index: 1; }
.hb.wx small { margin-right: 6px; opacity: .6; }
.lbl.flight { padding: 4px 8px; font-size: 10px; flex-direction: column; align-items: flex-start; gap: 2px; border-color: #6b5a2c; }
.lbl.flight b { color: var(--gold2, #f3dca3); }
.lbl.flight small { color: #aab; font-weight: 500; letter-spacing: .08em; }

/* ---------- landing first, the city lives behind Spectate ---------- */
.city { display: none; }
html.spectating .city { display: block; height: 100svh; min-height: 0; border: 0; }
html.spectating body > .top, html.spectating main, html.spectating body > footer { display: none; }
html.spectating, html.spectating body { overflow: hidden; }
.spectate { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: #31352b; border: 1px solid #8e9478; color: #ecebdc; text-decoration: none; font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; transition: background .2s, border-color .2s, transform .2s; }
.spectate i { font-style: normal; color: #c9cdb3; font-size: 12px; }
.spectate:hover { background: #3d4235; border-color: #b9bf9f; transform: translateY(-1px); }
.spectate.sm { padding: 7px 12px; font-size: 11.5px; margin-left: 8px; }
.capital { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0 56px; }
.cap-shot { position: relative; display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #9fb5d1; }
.cap-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.cap-shot:hover img { transform: scale(1.03); }
.cap-live { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; background: rgba(7,7,12,.82); border-radius: 4px; color: #fff; font: 600 11px var(--mono); letter-spacing: .14em; }
.cap-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 8px #ff4b4b; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cap-copy small { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--gold); }
.cap-copy h2 { margin: 10px 0 12px; }
.cap-copy p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
@media (max-width: 860px) { .capital { grid-template-columns: 1fr; } .top .spectate.sm { display: none; } }

/* ---------- PLAY: pilgrim mode ---------- */
.spectate.play { background: #3a3220; border-color: #c9a55a; color: #f6e6bd; }
.spectate.play:hover { background: #4a3f27; border-color: #e2bd6c; }
.cap-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.plx { position: absolute; inset: 0; z-index: 30; display: flex; background: radial-gradient(ellipse at 50% 30%, rgba(20,18,30,.82), rgba(7,7,12,.96)); backdrop-filter: blur(6px); font-family: var(--mono); color: #ecebdc; overflow: auto; }
.plx.in, .plx:empty { display: none; }
.pl-top { display: flex; align-items: center; gap: 22px; padding: 20px 28px; flex-wrap: wrap; }
.pl-brand { font: 600 15px var(--mono); letter-spacing: .26em; color: #f3dca3; }
.pl-brand small { display: block; font-size: 9px; letter-spacing: .3em; color: #8c8a7a; margin-top: 2px; }
.pl-steps { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6f6d63; }
.pl-steps li i { font-style: normal; color: #6f6d63; margin-right: 6px; }
.pl-steps li.on { color: #ecebdc; }
.pl-steps li.on i { color: #e2bd6c; }
.pl-steps li.done { color: #a9a796; }
.pl-steps .sep { width: 28px; height: 1px; background: #3b3a33; }
.pl-wallet { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: transparent; border: 1px solid #5b5946; color: #ecebdc; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.pl-wallet.on { border-color: #6b8f71; cursor: default; }
.pl-wallet.on i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; }
.pl-x { color: #a9a796; text-decoration: none; font-size: 11px; letter-spacing: .14em; }
.pl-gate, .pl-panel { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; }
.pl-gate-c { margin: auto; max-width: 620px; padding: 24px 28px 60px; }
.pl-gate-c small { font-size: 11px; letter-spacing: .16em; color: #e2bd6c; }
.pl-gate-c h1 { font: 400 clamp(34px, 5vw, 58px)/1.05 Marcellus, serif; margin: 14px 0 16px; color: #f3dca3; }
.pl-gate-c p { font: 400 15px/1.6 var(--sans); color: #c9c7b8; margin: 0 0 24px; }
.pl-gate-c em { display: block; margin-top: 18px; font-size: 11px; color: #7d7b6e; font-style: normal; letter-spacing: .08em; }
.pl-row, .pl-foot { display: flex; gap: 12px; flex-wrap: wrap; }
.pl-btn { padding: 13px 22px; background: #2a2a24; border: 1px solid #6f6d5a; color: #ecebdc; font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.pl-btn:hover { border-color: #b9b79f; }
.pl-btn.gold { background: #ecebdc; color: #15140f; border-color: #ecebdc; }
.pl-btn.gold:hover { background: #fff; }
.pl-panel h2 { font: 600 clamp(24px, 3vw, 36px) var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 6px 28px 6px; }
.pl-sub { margin: 0 28px 18px; color: #a9a796; letter-spacing: .04em; font-size: 12px; }
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 28px; }
.pl-card { position: relative; background: #17161d; border: 1px solid #2c2b33; padding: 8px 8px 12px; cursor: pointer; color: #6f6d63; font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .2s, background .2s; }
.pl-card canvas { width: 100%; max-width: 200px; aspect-ratio: 4 / 5; height: auto; }
.pl-card:hover { border-color: #5b5946; }
.pl-card.on { border-color: #ecebdc; background: #1d1c24; color: #ecebdc; }
.pl-foot { justify-content: space-between; padding: 18px 28px 26px; margin-top: auto; }
.pl-cust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 0 28px; }
.pl-stage { position: relative; background: #17161d; border: 1px solid #2c2b33; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.pl-stage canvas { width: min(100%, 380px); aspect-ratio: 4 / 5; height: auto; cursor: grab; }
.pl-stage small { position: absolute; bottom: 10px; font-size: 10px; letter-spacing: .14em; color: #6f6d63; }
.pl-opts h2 { margin: 0 0 12px; }
.pl-opt { margin-bottom: 12px; }
.pl-opt > small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8c8a7a; margin-bottom: 6px; }
.pl-opt input { width: 100%; max-width: 320px; padding: 10px 12px; background: #17161d; border: 1px solid #3b3a33; color: #ecebdc; font: 500 13px var(--mono); border-radius: 2px; }
.pl-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-sw button { width: 28px; height: 28px; border: 1px solid #3b3a33; background: var(--c); cursor: pointer; border-radius: 2px; color: #8c8a7a; font-size: 12px; }
.pl-sw button.on { outline: 2px solid #ecebdc; outline-offset: 2px; }
.pl-sw.txt button, .pl-sw.houses button { width: auto; height: auto; padding: 6px 10px; background: #1d1c24; color: #c9c7b8; font: 500 11px var(--mono); letter-spacing: .08em; }
.pl-sw.houses button { border-left: 3px solid var(--c); }
.pl-sw.txt button.on, .pl-sw.houses button.on { background: #ecebdc; color: #15140f; outline: none; }
.pl-flash { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 10px 16px; background: #1d1c24; border: 1px solid #5b5946; font-size: 12px; z-index: 5; }
.pl-load { margin: auto; padding: 24px; width: 100%; max-width: 580px; }
.pl-load-c { position: relative; border: 1px solid #3b3a33; background: rgba(12,12,16,.92); padding: 30px 26px 18px; }
.pl-tag { position: absolute; top: -9px; left: 22px; background: #0d0d11; border: 1px solid #3b3a33; padding: 1px 8px; font-size: 9px; letter-spacing: .2em; color: #a9a796; }
.pl-load h2 { font: 600 34px var(--mono); letter-spacing: .14em; margin: 0 0 6px; }
.pl-load p { font-size: 12px; color: #a9a796; margin: 0 0 16px; }
.pl-load ul { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #2c2b33; }
.pl-load li { display: grid; grid-template-columns: 1.3fr 1.6fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2c2b33; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; align-items: center; }
.pl-load li span { text-transform: none; letter-spacing: .02em; color: #8c8a7a; font-size: 11px; }
.pl-load li em { font-style: normal; color: #6f6d63; }
.pl-load li.done em { color: #7fd0ff; }
.pl-bar { height: 2px; background: #2c2b33; }
.pl-bar i { display: block; height: 100%; width: 0; background: #ecebdc; transition: width .35s; }
.pl-load-f { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; letter-spacing: .14em; color: #8c8a7a; text-transform: uppercase; }
.city.playing .hud-stats, .city.playing .moment, .city.playing .hint, .city.playing #wire, .city.playing #t-director, .city.playing #t-watch, .city.playing #t-street { display: none !important; }
.pl-hud { position: absolute; left: 14px; top: 64px; z-index: 6; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); max-width: 290px; }
.pl-me { background: rgba(9,8,15,.88); border: 1px solid #3b3650; padding: 10px 12px; border-radius: 4px; display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; }
.pl-me i { width: 10px; height: 10px; border-radius: 2px; grid-row: span 2; }
.pl-me b { font-size: 13px; color: #f3dca3; letter-spacing: .06em; }
.pl-me small { font-size: 10px; color: #a9a796; letter-spacing: .08em; }
.pl-obj { list-style: none; margin: 0; padding: 10px 12px; background: rgba(9,8,15,.88); border: 1px solid #3b3650; border-radius: 4px; font-size: 11.5px; color: #c9c7b8; }
.pl-obj li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.pl-obj li.h { font-size: 9.5px; letter-spacing: .18em; color: #e2bd6c; padding-bottom: 6px; }
.pl-obj li i { width: 10px; height: 10px; border: 1px solid #6f6d63; border-radius: 2px; flex: none; }
.pl-obj li.done { color: #7d7b6e; text-decoration: line-through; }
.pl-obj li.done i { background: #5fd38a; border-color: #5fd38a; }
.pl-obj em { margin-left: auto; font-style: normal; color: #8c8a7a; }
.pl-keys { font-size: 10px; letter-spacing: .08em; color: #d6d4c6; background: rgba(9,8,15,.7); padding: 6px 10px; border-radius: 4px; }
.pl-prompt { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 6; padding: 9px 14px; background: rgba(9,8,15,.92); border: 1px solid #c9a55a; color: #f6e6bd; font: 600 12px var(--mono); letter-spacing: .08em; border-radius: 4px; display: flex; gap: 8px; align-items: center; }
.pl-prompt[hidden] { display: none; }
.pl-prompt kbd { background: #ecebdc; color: #15140f; padding: 1px 7px; border-radius: 2px; font: 700 11px var(--mono); }
.pl-prompt small { color: #a9a796; font-weight: 500; }
@media (max-width: 860px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-cust { grid-template-columns: 1fr; } .pl-stage { min-height: 300px; } .pl-steps { display: none; } }

/* ---------- REAL EARTH ---------- */
.real-pill { border-color: #6fa0b8; color: #bfe3f2; }
.real-pill:hover { background: #12303d; }
.real-dive { position: absolute; left: 50%; bottom: 56px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 99px; border: 1px solid #6fa0b8; background: rgba(8,24,32,.88); color: #d6f1fb; font: 600 13px var(--sans); cursor: pointer; transition: opacity .3s, transform .3s; z-index: 4; }
.real-dive.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.real-row { display: flex; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.realbtn { padding: 8px 12px; border-radius: 8px; border: 1px solid #6fa0b8; background: #12303d; color: #d6f1fb; font: 600 12.5px var(--sans); cursor: pointer; text-decoration: none; }
.realbtn.ghost { background: transparent; color: #a9cfdd; }
.realbtn:hover { border-color: #bfe3f2; }
html.real-on, html.real-on body { overflow: hidden; }
.real { position: fixed; inset: 0; z-index: 200; background: #05050a; display: block; }
.real[hidden] { display: none; }
.real-map { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.real-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.real-top > * { pointer-events: auto; }
.real-id { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(7,7,12,.86); border: 1px solid #2c2b3a; border-radius: 10px; backdrop-filter: blur(8px); }
.real-id small { font: 600 10px var(--mono); letter-spacing: .18em; color: #6fc3e0; }
.real-id b { font: 400 20px Marcellus, serif; color: #f3dca3; }
.real-id span { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: #c9c7b8; }
.real-id span i { width: 9px; height: 9px; border-radius: 2px; }
.real-act { display: flex; gap: 8px; flex-wrap: wrap; }
.real-b { padding: 9px 13px; background: rgba(7,7,12,.86); border: 1px solid #3b3a4a; color: #ecebdc; border-radius: 8px; font: 600 12px var(--mono); letter-spacing: .06em; text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); }
.real-b:hover { border-color: #6fc3e0; }
.real-b.off { opacity: .55; }
.real-b.x { border-color: #c9a55a; color: #f6e6bd; }
.real-card { position: absolute; right: 12px; top: 74px; z-index: 3; width: 300px; max-width: calc(100% - 24px); max-height: calc(100% - 140px); overflow: auto; padding: 14px 16px; background: rgba(7,7,12,.88); border: 1px solid #2c2b3a; border-radius: 12px; backdrop-filter: blur(8px); color: #d9d7ca; font: 400 13px var(--sans); }
.real-card[hidden] { display: none; }
.real-card small { display: block; font: 600 10px var(--mono); letter-spacing: .16em; color: #e2bd6c; margin: 4px 0 6px; }
.real-card h4 { margin: 0 0 8px; font: 400 22px Marcellus, serif; color: #f3dca3; }
.real-card ul { list-style: none; margin: 0 0 10px; padding: 0; }
.real-card li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #1d1c28; }
.real-card li i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.real-card li em { margin-left: auto; font-style: normal; color: #8c8a7a; font-size: 11.5px; }
.real-card .dim { color: #8c8a7a; font-size: 12px; margin: 6px 0 0; }
.real-foot { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; padding: 7px 12px; border-radius: 99px; background: rgba(7,7,12,.78); color: #c9c7b8; font: 500 11.5px var(--sans); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.real-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: #bfe3f2; font: 500 14px var(--mono); letter-spacing: .1em; background: radial-gradient(circle, rgba(10,30,40,.6), #05050a); }
.real-load[hidden] { display: none; }
.real-pop .maplibregl-popup-content { background: #0b0b12; color: #ecebdc; border: 1px solid #2c2b3a; border-radius: 10px; padding: 10px 12px; font: 500 12px var(--mono); }
.real-pop .maplibregl-popup-tip { border-top-color: #0b0b12 !important; border-bottom-color: #0b0b12 !important; }
.real-pop-b { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.real-pop-b a { color: #bfe3f2; border: 1px solid #2f5b6d; padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.real-zoom { width: 100%; padding: 6px; background: #12303d; color: #d6f1fb; border: 1px solid #2f5b6d; border-radius: 6px; cursor: pointer; font: 600 11px var(--mono); }
.real-pop .maplibregl-popup-close-button { color: #8c8a7a; }
@media (max-width: 760px) { .real-card { top: auto; bottom: 52px; width: auto; left: 12px; max-height: 38%; } .real-foot { display: none; } .real-id b { font-size: 16px; } }

.real-b.d3 { border-color: #6fa0b8; color: #bfe3f2; }
.real-b.d3.on { background: #12303d; border-color: #bfe3f2; color: #fff; }

/* ---------- v23 OLIVE PIXEL LANDING ---------- */
html:not(.spectating) { --bg: #1b1d18; --panel: #23261f; --panel2: #2a2e25; --line: #3a3e31; --text: #e2dbbb; --muted: #9c9a84; --gold: #d8cfa6; --gold2: #ece4c0; --display: 'Pixelify Sans', 'Silkscreen', monospace; }
html:not(.spectating) body { background: linear-gradient(160deg, #1a1c17 0%, #20241d 55%, #1c1f19 100%) fixed, #1b1d18; color: var(--text); }
html:not(.spectating) body::before { background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px); }
.top { background: rgba(27,29,24,.9); border-bottom-color: #34382c; }
.brand { color: #ece4c0; }
.top nav a { color: #aaa78f; } .top nav a:hover { color: #ece4c0; }
.chain { color: #e2dbbb; border-color: #3a3e31; } .chain i { background: #b9c48a; box-shadow: 0 0 8px #b9c48a; }
h1 { font-family: var(--display); font-weight: 500; letter-spacing: .01em; line-height: 1.08; background: none; color: #e2dbbb; -webkit-text-fill-color: #e2dbbb; filter: none; }
.sec-head h2, .work h2, .token h2, .cap-copy h2, .house h3, .side h3 { font-family: var(--display); font-weight: 500; color: #e2dbbb; }
.kicker { color: #8f8d78; } .kicker b { color: #e2dbbb; }
.lede { color: #c4bea2; }
.spectate { background: #31352b; border-color: #8e9478; color: #ecebdc; border-radius: 2px; box-shadow: none; font-family: var(--display); letter-spacing: .08em; font-size: 15px; }
.spectate i { color: #c9cdb3; }
.spectate:hover { background: #3d4235; border-color: #b9bf9f; }
.spectate.play { background: #e2dbbb; border-color: #f2ecd2; color: #1b1d18; box-shadow: none; }
.spectate.play i { color: #1b1d18; }
.spectate.play:hover { background: #f2ecd2; }
.btn { background: #23261f; border-color: #3a3e31; color: #e2dbbb; border-radius: 2px; }
.btn:hover { border-color: #8e9478; }
.btn.gold { background: #b9c48a; color: #1b1d18; box-shadow: none; }
.stats { background: #3a3e31; border: 1px solid #3a3e31; gap: 1px; border-radius: 4px; }
.stat { background: #22251e; border-radius: 0; }
.stat small { color: #8f8d78; }
.stat b { font-family: var(--display); font-weight: 500; color: #e2dbbb; text-shadow: none; }
.stat.next b { color: #b9c48a; }
/* $PNTH card in sand */
html:not(.spectating) .token { background: #b29f7a; border: 1px solid #8e7f5f; border-radius: 18px; color: #2a2a1f; }
html:not(.spectating) .token h2 { color: #1f201a; font-size: 48px; }
html:not(.spectating) .token p, html:not(.spectating) .token ul { color: #2f2f24; }
html:not(.spectating) .token li b { color: #1f201a; }
html:not(.spectating) .tok-mark img { filter: brightness(.3) sepia(.4); }
html:not(.spectating) .ca { background: rgba(31,32,26,.08); border-color: #8e7f5f; color: #1f201a; }
html:not(.spectating) .ca small { color: #4c4836; }

/* ---------- v26 CITY ECONOMY + LIVE PILGRIMS (play mode only) ---------- */
.ec-strip { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: rgba(9,8,15,.9); border: 1px solid #3b3650; border-radius: 4px; font: 12px var(--mono); color: #c9c7b8; white-space: nowrap; max-width: calc(100% - 24px); }
.ec-cash { color: #f3dca3; font-size: 15px; } .ec-strip > small { color: #8f8a9e; font-size: 10px; letter-spacing: .1em; margin-left: -4px; }
.ec-job { overflow: hidden; text-overflow: ellipsis; border-left: 1px solid #3b3650; padding-left: 10px; } .ec-job i { font-style: normal; font-size: 9.5px; letter-spacing: .14em; color: #e2bd6c; margin-right: 6px; } .ec-job b { color: #fff; } .ec-job em { font-style: normal; color: #8f8a9e; margin-left: 6px; } .ec-job.idle { color: #8f8a9e; }
.ec-strip button { background: #3a3220; border: 1px solid #c9a55a; color: #f6e6bd; font: 600 11px var(--mono); letter-spacing: .1em; padding: 6px 10px; border-radius: 2px; cursor: pointer; }
.ec-strip kbd, .ec-job kbd { font: 10px var(--mono); border: 1px solid #5b5946; border-radius: 3px; padding: 0 4px; margin-left: 4px; color: #ecebdc; }
.ec-off { color: #e07a5f; }
.ec-panel { position: absolute; right: 14px; top: 64px; bottom: 90px; width: min(460px, calc(100% - 28px)); z-index: 8; display: flex; flex-direction: column; background: rgba(12,11,19,.96); border: 1px solid #3b3650; border-radius: 6px; font: 12.5px/1.5 var(--sans); color: #d9d7ca; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.ec-panel[hidden] { display: none; }
.ec-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #2a2838; flex-wrap: wrap; }
.ec-head > b { font: 400 13px var(--display); letter-spacing: .18em; color: #f3dca3; }
.ec-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.ec-tabs button, .ec-x { background: none; border: 1px solid transparent; color: #a9a796; font: 11px var(--mono); letter-spacing: .06em; padding: 4px 7px; border-radius: 3px; cursor: pointer; }
.ec-tabs button.on { color: #f3dca3; border-color: #4a4360; background: rgba(226,189,108,.08); } .ec-x { margin-left: auto; }
.ec-body { overflow: auto; padding: 12px 14px 16px; }
.ec-body h4 { margin: 14px 0 6px; font: 600 10px var(--mono); letter-spacing: .16em; color: #e2bd6c; text-transform: uppercase; }
.ec-dim { color: #8f8a9e; font-size: 11.5px; } .ec-err { color: #e07a5f; } .ok { color: #5fd38a; } .bad { color: #e07a5f; }
.ec-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .ec-me div { background: #16151f; border: 1px solid #2a2838; padding: 8px 10px; border-radius: 4px; }
.ec-me small { display: block; font: 9.5px var(--mono); letter-spacing: .14em; color: #8f8a9e; } .ec-me b { font: 600 16px var(--mono); color: #f3dca3; }
.ec-list { list-style: none; padding: 0; margin: 0; } .ec-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #1f1d2a; }
.ec-list i, .ec-cards i, .ec-council i, .ec-feed i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; flex: none; }
.ec-cards { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.ec-cards li { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: #16151f; border: 1px solid #2a2838; border-radius: 4px; }
.ec-cards li > div { flex: 1; min-width: 0; } .ec-cards b { display: block; color: #ecebdc; font-weight: 600; } .ec-cards small { color: #8f8a9e; font-size: 11px; }
.ec-cards em { font-style: normal; font: 600 12px var(--mono); color: #f3dca3; } .ec-cards em.bad { font-size: 9.5px; letter-spacing: .12em; color: #e07a5f; margin-left: 4px; }
.ec-cards li.failed { opacity: .55; }
.ec-body button { background: #23222e; border: 1px solid #4a4360; color: #ecebdc; font: 600 11px var(--mono); padding: 5px 9px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.ec-body button:hover { border-color: #e2bd6c; } .ec-body button.gold { background: #3a3220; border-color: #c9a55a; color: #f6e6bd; margin-top: 6px; } .ec-body button:disabled { opacity: .4; cursor: default; }
.ec-body input, .ec-body select { background: #0d0c14; border: 1px solid #3b3650; color: #ecebdc; font: 12px var(--mono); padding: 5px 7px; border-radius: 3px; min-width: 0; }
.ec-amt { width: 76px; } .ec-row { display: flex; gap: 6px; margin: 6px 0; } .ec-row input:not([type=number]) { flex: 1; } .ec-row input[type=number] { width: 70px; }
.ec-cur { background: #1a1824; border: 1px solid #4a4360; border-left: 3px solid #e2bd6c; padding: 9px 11px; border-radius: 4px; margin: 8px 0; }
.ec-cur small { font: 9.5px var(--mono); letter-spacing: .12em; color: #e2bd6c; } .ec-cur b { display: block; color: #fff; margin: 2px 0; } .ec-cur p { margin: 4px 0; }
.ec-cur span.done { color: #5fd38a; text-decoration: line-through; } .ec-cur span.now { color: #f3dca3; font-weight: 600; }
.ec-council, .ec-feed { list-style: none; padding: 0; margin: 0; } .ec-council li { padding: 5px 0; border-bottom: 1px solid #1f1d2a; } .ec-council b { color: #f3dca3; margin-right: 4px; }
.ec-feed li { display: grid; grid-template-columns: auto 1fr auto; column-gap: 4px; padding: 6px 0; border-bottom: 1px solid #1f1d2a; } .ec-feed li i { margin-top: 5px; } .ec-feed b { color: #ecebdc; }
.ec-feed b em { font: 9px var(--mono); color: #6fc3e0; font-style: normal; border: 1px solid #2f5b6d; padding: 0 3px; border-radius: 2px; } .ec-feed span { grid-column: 2 / 4; } .ec-feed small { color: #6f6a7e; font-size: 10px; }
.ec-body pre { white-space: pre-wrap; word-break: break-all; background: #0d0c14; border: 1px solid #2a2838; padding: 8px; border-radius: 4px; font: 11px var(--mono); color: #bfe3f2; }
.ec-body a { color: #f3dca3; }
.ec-tags, .net-tags { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.ec-tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; padding: 3px 8px; background: rgba(9,8,15,.82); border: 1px dashed #8e9478; border-radius: 3px; color: #ecebdc; font: 10px var(--mono); cursor: pointer; white-space: nowrap; }
.ec-tag b { font-size: 10.5px; letter-spacing: .06em; } .ec-tag small { font-size: 9px; color: #a9a796; }
.ec-tag.owned { border: 1px solid var(--c); border-top-width: 3px; } .ec-tag.mine { box-shadow: 0 0 0 1px #e2bd6c; } .ec-tag.mine b { color: #f3dca3; }
.ec-tag[hidden], .net-tag[hidden] { display: none; }
.net-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 2px 7px; background: rgba(9,8,15,.78); border-radius: 3px; color: #fff; font: 600 10.5px var(--mono); white-space: nowrap; }
.net-tag i { width: 7px; height: 7px; border-radius: 50%; } .net-tag span { display: block; font: 500 11px var(--sans); color: #f6e6bd; max-width: 220px; white-space: normal; margin-left: 4px; }
.net-tag.says { flex-wrap: wrap; max-width: 260px; }
.net-count { position: absolute; left: 14px; bottom: 40px; z-index: 6; display: flex; align-items: center; gap: 7px; padding: 6px 10px; background: rgba(9,8,15,.88); border: 1px solid #3b3650; border-radius: 4px; font: 11px var(--mono); color: #c9c7b8; }
.net-count i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 8px #5fd38a; }
.pl-chat { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 9; width: min(560px, calc(100% - 28px)); }
.pl-chat input { width: 100%; box-sizing: border-box; padding: 10px 12px; background: rgba(9,8,15,.95); border: 1px solid #c9a55a; color: #fff; font: 13px var(--sans); border-radius: 4px; outline: none; }
@media (max-width: 760px) { .ec-panel { top: 56px; bottom: 80px; right: 8px; } .ec-strip { bottom: 36px; font-size: 11px; } .ec-job { display: none; } .net-count { display: none; } }
