/* the silo — HUD over the two worlds. Cold concrete glass, one hazard-yellow accent, red for the cleaners, tabular numbers. */
:root {
  --ink: #eceadf;
  --ink-2: rgba(232, 228, 214, 0.74);
  --ink-3: rgba(226, 222, 206, 0.5);
  --ink-4: rgba(220, 216, 200, 0.3);
  --acc: #ffd23a;
  --acc-2: #ffe27a;
  --acc-3: #fff1b8;
  --acc-dim: #b8900f;
  --raid: #ff5a3d;
  --win: #8be39a;
  --loss: #ff6b5a;
  --sol: #b9a2ff;
  --glass: rgba(14, 16, 19, 0.6);
  --glass-strong: rgba(12, 14, 17, 0.88);
  --line: rgba(220, 215, 190, 0.13);
  --line-2: rgba(220, 215, 190, 0.22);
  --hi: rgba(255, 255, 255, 0.06);
  --r: 12px;
  --r-sm: 8px;
  --gut: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0c0e; color: var(--ink); font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { font-feature-settings: 'tnum' 1, 'cv11' 1; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex: none; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(220, 215, 190, 0.06); color: var(--ink-2); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.amber { color: var(--acc); }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; touch-action: none; }

/* ───────────── glass */
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), inset 0 1px 0 var(--hi); }
.glass-strong { background: var(--glass-strong); backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--hi); }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(255, 210, 58, 0.14); color: var(--acc-2); border: 1px solid rgba(255, 210, 58, 0.3); font-family: var(--mono); }

/* ───────────── loader */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: radial-gradient(1200px 700px at 50% 60%, #1c1e22 0%, #0b0c0e 70%); transition: opacity .9s var(--ease), visibility .9s; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-logo { width: 150px; height: 150px; display: block; animation: ld-glow 2.2s ease-in-out infinite; }
@keyframes ld-glow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 210, 58, .3)); transform: scale(1); } 50% { filter: drop-shadow(0 0 28px rgba(255, 210, 58, .7)); transform: scale(1.04); } }
.ld-word { font-family: var(--display); font-weight: 900; letter-spacing: .3em; font-size: 34px; padding-left: .3em; background: linear-gradient(180deg, #fff6d0, #ffd23a 70%, #b8900f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-bar { width: 220px; height: 3px; border-radius: 3px; background: rgba(220, 215, 190, .12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe27a, #ffb000); box-shadow: 0 0 12px #ffd23a; transition: width .4s var(--ease); }
.ld-step { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; min-height: 16px; }

/* ───────────── HUD layout */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: 0; transition: opacity 1.2s var(--ease); }
.hud.on { opacity: 1; }
.hud.cinema { opacity: 0 !important; }
.hud > * { pointer-events: auto; }
.hud .top { pointer-events: none; }
.hud .top > * { pointer-events: auto; }
.top { position: absolute; left: var(--gut); right: var(--gut); top: var(--gut); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.brand { padding: 14px 16px 14px; width: 348px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; margin: -4px 0 -4px -4px; filter: drop-shadow(0 0 10px rgba(255, 210, 58, .4)); }
.brand-mark img { width: 34px; height: 34px; display: block; }
.brand-word { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .14em; line-height: 1; background: linear-gradient(180deg, #fff6d0 10%, #ffd23a 60%, #c99a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tick { margin-left: auto; }
.phase { margin-top: 14px; }
.phase-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.phase-title { font-weight: 600; letter-spacing: .01em; }
.phase-val { margin-left: auto; font-weight: 700; color: var(--acc-2); }
.phase .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(255, 210, 58, .18); animation: blink 1.8s ease-in-out infinite; }
.phase.swarm .dot { background: var(--raid); box-shadow: 0 0 0 3px rgba(255, 90, 61, .2); }
@keyframes blink { 50% { opacity: .35; } }
.phase-bar { position: relative; height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(220, 215, 190, .1); overflow: hidden; }
.phase-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #8c6a00, #ffd23a 70%, #fff1b8); box-shadow: 0 0 14px rgba(255, 210, 58, .5); transition: width .8s var(--ease); }
.phase-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.phase.swarm .phase-bar i { background: linear-gradient(90deg, #7a1a0a, #ff5a3d 60%, #ffd23a); }
.phase-sub { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.goal { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(560px, calc(100vw - 2 * var(--gut))); padding: 12px 16px 12px; border-radius: 12px; }
.goal-head { display: flex; align-items: center; gap: 9px; }
.goal-ico { width: 16px; height: 16px; color: var(--acc); filter: drop-shadow(0 0 8px rgba(255, 210, 58, .7)); }
.goal-title { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.goal-val { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--ink); font-family: var(--mono); }
.goal-bar { position: relative; height: 16px; margin-top: 9px; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(255, 210, 58, .06) 0 8px, rgba(0, 0, 0, .12) 8px 16px); border: 1px solid rgba(255, 210, 58, .25); overflow: hidden; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #8c6a00, #ffd23a 70%, #fff1b8); box-shadow: 0 0 18px rgba(255, 210, 58, .5); transition: width 1s var(--ease); }
.goal-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transform: translateX(-100%); animation: sheen 2.4s ease-in-out infinite; }
.goal-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); font-family: var(--mono); }
.goal-sub { margin-top: 7px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.goal.done .goal-val { color: var(--win); }

.stats { display: grid; grid-template-columns: repeat(4, 118px) 150px; padding: 6px; }
.stat { position: relative; display: grid; grid-template-rows: auto auto auto; gap: 3px; padding: 9px 12px 10px; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.stat .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.stat .v { font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.stat .v small { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 1px; }
.stat .s { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.next { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.stat.next .k { grid-column: 1 / 3; }
.stat.next .ring { position: relative; width: 38px; height: 38px; grid-row: 2; }
.stat.next .ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.stat.next .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; font-family: var(--mono); }
.rbg { fill: none; stroke: rgba(220, 215, 190, .12); stroke-width: 4; }
.rfg { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100.53; stroke-dashoffset: 100.53; transition: stroke-dashoffset .6s var(--ease); filter: drop-shadow(0 0 5px rgba(255, 210, 58, .6)); }
.stat.next .s { grid-row: 2; grid-column: 2; white-space: normal; line-height: 1.35; }
.stat .v.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { color: var(--acc-3); text-shadow: 0 0 18px rgba(255, 210, 58, .8); } }

/* ───────────── panels */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 10px #ff4d3d; animation: blink 1.4s infinite; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(220, 215, 190, .05); border: 1px solid var(--line); }
.seg button { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: rgba(220, 215, 190, .06); }
.seg button.on { color: #1a1406; background: linear-gradient(180deg, #ffe27a, #ffc81a); box-shadow: 0 2px 10px rgba(255, 200, 30, .3); }

.feed { position: absolute; left: var(--gut); top: 152px; width: 348px; bottom: 84px; max-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.feed-list { position: relative; flex: 1; overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; column-gap: 10px; height: 46px; padding: 0 12px 0 12px; cursor: default; position: relative; }
.row.click { cursor: pointer; }
.row.click:hover { background: rgba(220, 215, 190, .06); }
.row .av { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.row .av img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.row .av.ico { background: rgba(220, 215, 190, .07); border: 1px solid var(--line); color: var(--ink-2); }
.row .av.ico svg { width: 15px; height: 15px; }
.row .tx { min-width: 0; }
.row .l1 { font-size: 12.8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.row .l1 b { color: var(--ink); font-weight: 700; }
.row .l1 .bn { color: var(--acc-2); font-weight: 700; font-family: var(--mono); font-size: 12px; }
.row .l2 { font-size: 11px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-size: 12.5px; font-weight: 700; text-align: right; white-space: nowrap; font-family: var(--mono); }
.row .amt small { display: block; font-size: 10.5px; color: var(--ink-4); font-weight: 500; margin-top: 2px; }
.amt.pos { color: var(--win); } .amt.neg { color: var(--loss); } .amt.gold { color: var(--acc-2); } .amt.red { color: var(--raid); } .amt.fire { color: #ff9a3d; } .amt.sol { color: var(--sol); } .amt.dim { color: var(--ink-3); }
.row.in { animation: row-in .55s var(--ease); }
.row.in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 210, 58, .16), transparent 70%); animation: row-glow 1.4s ease-out forwards; pointer-events: none; }
.row.k-raid.in::after { background: linear-gradient(90deg, rgba(255, 90, 61, .18), transparent 70%); }
.row.k-migrate { height: 58px; background: linear-gradient(90deg, rgba(255, 210, 58, .16), transparent); }
@keyframes row-in { from { transform: translateY(-14px); opacity: 0; } }
@keyframes row-glow { to { opacity: 0; } }
.row.trader .l1 { color: var(--ink-3); }
.row.trader { height: 38px; }
.row.trader .av { transform: scale(.82); }

.side { position: absolute; right: var(--gut); top: 116px; width: 380px; bottom: 84px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.side > * { pointer-events: auto; }
.card { padding: 16px; position: relative; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--ink-2); transition: background .2s, color .2s, transform .2s; }
.icon-btn:hover { background: rgba(220, 215, 190, .08); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 26px; height: 26px; border-radius: 6px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.close { position: absolute; right: 10px; top: 10px; }
.btn { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: #1a1406; background: linear-gradient(180deg, #ffe27a, #ffc81a); box-shadow: 0 4px 16px rgba(255, 200, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s, filter .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.ghost { color: var(--ink-2); background: rgba(220, 215, 190, .06); border: 1px solid var(--line); box-shadow: none; padding: 0 10px; }
.btn.ghost:hover { color: var(--ink); background: rgba(220, 215, 190, .1); }
.link { font-size: 11.5px; font-weight: 600; color: var(--acc-2); display: inline-flex; gap: 6px; align-items: center; }
.link:hover { color: var(--acc-3); }

.queen-card .qc-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.qc-crest { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255, 210, 58, .35); box-shadow: 0 0 16px rgba(255, 210, 58, .2); }
.qc-title { font-family: var(--display); font-weight: 800; font-size: 20px; margin-top: 3px; letter-spacing: .04em; line-height: 1; }
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qc-grid > div { padding: 9px 11px; display: grid; gap: 3px; }
.qc-grid > div + div { border-left: 1px solid var(--line); }
.k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.qc-grid .v { font-size: 14px; font-weight: 700; white-space: nowrap; font-family: var(--mono); }
.board-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.board { display: grid; gap: 2px; }
.brow { display: grid; grid-template-columns: 18px 28px 1fr auto; gap: 10px; align-items: center; height: 40px; padding: 0 8px; border-radius: 8px; cursor: pointer; transition: background .2s; }
.brow:hover { background: rgba(220, 215, 190, .07); }
.brow .rk { font-size: 11px; color: var(--ink-4); font-weight: 700; text-align: center; font-family: var(--mono); }
.brow img { width: 28px; height: 28px; border-radius: 5px; }
.brow .nm { font-weight: 700; font-size: 12.5px; font-family: var(--mono); }
.brow .nm small { display: block; font-weight: 500; font-size: 10.5px; color: var(--ink-4); margin-top: 1px; font-family: var(--ui); }
.brow .val { font-weight: 700; font-size: 12.5px; color: var(--acc-2); text-align: right; font-family: var(--mono); }
.board-empty { padding: 14px 8px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* profile */
.profile { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } }
.pf-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding-right: 30px; }
.pf-crest { width: 72px; height: 72px; position: relative; }
.pf-crest img { width: 72px; height: 72px; position: relative; z-index: 1; border-radius: 10px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.pf-crest::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, var(--acc-d, #ffd23a), transparent); opacity: .45; filter: blur(6px); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .2; transform: scale(.9); } }
.pf-name { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .06em; line-height: 1; }
.pf-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(255, 210, 58, .12); color: var(--acc-2); border: 1px solid rgba(255, 210, 58, .25); max-width: 100%; overflow: hidden; }
.pf-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.pf-status.raid { background: rgba(255, 90, 61, .13); color: #ff8a70; border-color: rgba(255, 90, 61, .3); }
.pf-status.carry { background: rgba(255, 210, 90, .16); color: #ffe08a; border-color: rgba(255, 210, 90, .35); }
.pf-status.sleep { background: rgba(200, 200, 220, .08); color: var(--ink-3); border-color: var(--line); }
.pf-addr { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding: 6px 6px 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pf-addr .mono { flex: 1; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.pf-addr .mono b { color: var(--acc); font-weight: 600; }
.pf-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 22px; }
.trait { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); background: rgba(220, 215, 190, .05); border: 1px solid var(--line); }
.trait i { width: 8px; height: 8px; border-radius: 2px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pf-grid > div { padding: 9px 11px; display: grid; gap: 3px; min-width: 0; }
.pf-grid > div:nth-child(3n+2), .pf-grid > div:nth-child(3n+3) { border-left: 1px solid var(--line); }
.pf-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
.pf-grid .v { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.pf-grid .v.pos { color: var(--win); } .pf-grid .v.neg { color: var(--loss); }
.pf-chart { position: relative; margin-top: 12px; height: 60px; border-radius: 8px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); overflow: hidden; }
.pf-chart canvas { width: 100%; height: 100%; display: block; }
.pf-chart-k { position: absolute; left: 10px; top: 7px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.pf-tx-head { display: flex; justify-content: space-between; margin: 14px 2px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pf-tx { flex: 1; min-height: 60px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: rgba(220, 215, 190, .2) transparent; }
.txr { display: grid; grid-template-columns: 24px 1fr auto 40px 22px; gap: 8px; align-items: center; height: 36px; border-bottom: 1px solid rgba(220, 215, 190, .06); font-size: 12px; }
.txr .ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(220, 215, 190, .06); }
.txr .ic svg { width: 13px; height: 13px; }
.txr .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.txr .am { font-weight: 700; text-align: right; white-space: nowrap; font-family: var(--mono); }
.txr .tm { color: var(--ink-4); font-size: 11px; text-align: right; font-family: var(--mono); }
.txr .sg { color: var(--ink-4); display: grid; place-items: center; }
.txr .sg svg { width: 13px; height: 13px; }
.txr .sg:hover { color: var(--acc-2); }
.txr.fresh { animation: row-in .5s var(--ease); }
.pf-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-top: 12px; }
.pf-foot .btn { width: 100%; }
.pf-foot .btn.off { color: var(--ink-2); background: rgba(220, 215, 190, .06); border: 1px solid var(--line); box-shadow: none; }

/* dock + corners */
.dock { position: absolute; left: 50%; bottom: var(--gut); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; }
.dock .seg { padding: 3px; border-radius: 9px; }
.dock .seg button { height: 34px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; }
.dock .seg svg { width: 16px; height: 16px; }
.dock .btn { height: 36px; }
.dock .btn svg { width: 17px; height: 17px; }
.dock-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.corner-l { position: absolute; left: var(--gut); bottom: var(--gut); display: grid; gap: 8px; font-size: 11.5px; color: var(--ink-3); pointer-events: none; }
.hint-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.sim-tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(14, 16, 19, .6); border: 1px dashed rgba(255, 210, 58, .35); color: var(--acc-2); font-weight: 600; font-size: 11px; width: max-content; backdrop-filter: blur(8px); }
.sim-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: blink 1.6s infinite; }
.corner-r { position: absolute; right: var(--gut); bottom: var(--gut); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 10px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 12px; color: var(--ink-2); transition: background .2s; max-width: 240px; }
.ca:hover { background: rgba(220, 215, 190, .08); color: var(--ink); }
.ca .k { font-size: 10px; }
.ca .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca svg { width: 14px; height: 14px; color: var(--ink-3); }

/* ───────────── world labels */
.labels, .popups { position: fixed; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.popups { z-index: 9; }
.lbl { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform, opacity; white-space: nowrap; }
.lbl.flower { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: auto; cursor: pointer; }
.lbl.flower .pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 6px; background: rgba(12, 14, 17, .82); border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.lbl.flower .sym { font-weight: 800; font-size: 12.5px; letter-spacing: .02em; font-family: var(--mono); }
.lbl.flower .mc { font-size: 11.5px; color: var(--ink-3); font-weight: 600; font-family: var(--mono); }
.lbl.flower .hit { display: none; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 4px; background: rgba(255, 60, 40, .85); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 0 16px rgba(255, 60, 40, .6); font-family: var(--mono); }
.lbl.flower.attack .hit { display: inline-flex; }
.lbl.flower.attack .pill { border-color: rgba(255, 90, 61, .6); }
.lbl.flower .new { display: none; height: 18px; padding: 0 6px; border-radius: 4px; background: linear-gradient(180deg, #8be39a, #2fb866); color: #062010; font-size: 9.5px; font-weight: 900; letter-spacing: .08em; align-items: center; }
.lbl.flower.fresh .new { display: inline-flex; }
.lbl.flower.fresh .pill { border-color: rgba(139, 227, 154, .55); }
.lbl.flower .stem { width: 1px; height: 18px; background: linear-gradient(180deg, rgba(220, 215, 190, .45), transparent); }
.lbl.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: rgba(12, 14, 17, .7); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--acc-2); pointer-events: auto; cursor: pointer; font-family: var(--mono); }
.lbl.tag svg { width: 13px; height: 13px; }
.lbl.sel { display: grid; justify-items: center; }
.reticle { width: 54px; height: 54px; margin-bottom: -27px; transform: translateY(0); animation: spin 8s linear infinite; }
.reticle rect { fill: none; stroke: var(--acc); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255, 210, 58, .8)); }
@keyframes spin { to { transform: rotate(360deg); } }
.lbl.sel .nm { order: -1; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 4px; border-radius: 6px; background: rgba(12, 14, 17, .78); border: 1px solid rgba(255, 210, 58, .45); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; font-family: var(--mono); }
.lbl.sel .nm img { width: 18px; height: 18px; border-radius: 3px; }

.pop { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 800; font-size: 12px; letter-spacing: .01em; padding: 4px 9px; border-radius: 6px; background: rgba(12, 14, 17, .6); border: 1px solid rgba(220, 215, 190, .2); color: var(--acc-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); will-change: transform, opacity; display: inline-flex; align-items: center; gap: 6px; }
.pop img { width: 16px; height: 16px; border-radius: 3px; }
.pop.hatch { color: #fff6d6; border-color: rgba(255, 220, 120, .45); }
.pop.buy, .pop.honey { color: var(--acc-2); }
.pop.burn { color: #ffae6a; border-color: rgba(255, 130, 60, .45); }
.pop.raid { color: #ff9a82; border-color: rgba(255, 90, 61, .5); }
.pop.win { color: var(--win); border-color: rgba(139, 227, 154, .4); }
.pop.loss { color: var(--loss); border-color: rgba(255, 107, 90, .4); }
.pop.sleep { color: var(--ink-3); }
.pop.claim, .pop.whale { font-size: 15px; padding: 6px 14px; color: #fff6d6; background: linear-gradient(180deg, rgba(110, 80, 0, .75), rgba(40, 30, 0, .75)); border-color: rgba(255, 210, 90, .6); box-shadow: 0 0 30px rgba(255, 200, 30, .35); }
.pop.sell { color: #ff8a70; }

.tip { position: fixed; z-index: 12; pointer-events: none; min-width: 180px; max-width: 280px; padding: 10px 12px; border-radius: 8px; background: rgba(12, 14, 17, .9); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); font-size: 12px; transition: opacity .15s; }
.tip .th { display: flex; align-items: center; gap: 10px; }
.tip .th img { width: 30px; height: 30px; border-radius: 5px; }
.tip .tn { font-weight: 800; font-size: 13px; font-family: var(--mono); }
.tip .ts { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.tip .tg { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; margin-top: 9px; font-size: 11.5px; color: var(--ink-3); }
.tip .tg b { color: var(--ink); font-weight: 700; text-align: right; font-family: var(--mono); }
.tip .hint { margin-top: 8px; font-size: 10.5px; color: var(--ink-4); }

/* banner + toast */
.banner { position: fixed; left: 50%; top: 20vh; transform: translateX(-50%); z-index: 20; text-align: center; pointer-events: none; }
.banner.show { animation: banner 6.5s var(--ease) forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 18px) scale(.97); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.b-eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc-2); font-weight: 700; font-family: var(--mono); }
.b-title { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 7vw, 96px); letter-spacing: .08em; line-height: 1; margin-top: 10px; text-transform: uppercase; background: linear-gradient(180deg, #fff8e0 15%, #ffd23a 55%, #b8900f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 200, 30, .4)); }
.b-sub { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20; padding: 10px 16px; border-radius: 8px; background: rgba(12, 14, 17, .92); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); animation: toast 2.2s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ───────────── modals */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(6, 7, 9, .5); backdrop-filter: blur(3px); animation: fade .3s var(--ease); padding: var(--gut); }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(980px, 100%); max-height: min(760px, calc(100vh - 2 * var(--gut))); display: flex; flex-direction: column; animation: sheet-in .4s var(--ease); }
@keyframes sheet-in { from { transform: translateY(16px) scale(.985); opacity: 0; } }
.sheet-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 18px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.col-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-right: 36px; }
.search { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 7px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--ink-3); }
.search svg { width: 14px; height: 14px; }
.search input { width: 190px; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 12.5px; }
.search:focus-within { border-color: rgba(255, 210, 58, .5); }
.col-grid { overflow-y: auto; padding: 16px 22px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; scrollbar-width: thin; scrollbar-color: rgba(220, 215, 190, .2) transparent; }
.tile { position: relative; height: 112px; border-radius: 8px; border: 1px solid var(--line); background: rgba(220, 215, 190, .03); display: grid; justify-items: center; align-content: center; gap: 4px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.tile:hover { background: rgba(220, 215, 190, .08); border-color: rgba(255, 210, 58, .35); transform: translateY(-2px); }
.tile img { width: 52px; height: 52px; border-radius: 7px; }
.tile .tn { font-weight: 800; font-size: 10.5px; letter-spacing: .04em; font-family: var(--mono); }
.tile .tv { font-size: 10.5px; color: var(--ink-3); font-weight: 600; font-family: var(--mono); }
.tile .st { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.tile.raid .st { background: var(--raid); box-shadow: 0 0 8px var(--raid); }
.tile.sleep .st { background: #7c7a86; box-shadow: none; }
.tile.sleep img { filter: grayscale(.8) brightness(.7); }
.tile.egg { cursor: default; opacity: .55; }
.tile.egg:hover { transform: none; background: rgba(220, 215, 190, .03); border-color: var(--line); }
.tile.egg .cell { width: 44px; height: 50px; border-radius: 4px; background: linear-gradient(160deg, #4a4c52, #1e2024); border: 1px solid rgba(220, 215, 190, .15); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: rgba(220, 215, 190, .5); font-family: var(--mono); }
.tile.egg .st { display: none; }
.col-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-3); }

.help-sheet { width: min(760px, 100%); padding: 30px 32px 26px; overflow-y: auto; }
.help-sheet h2 { font-family: var(--display); font-size: 40px; margin: 8px 0 10px; font-weight: 900; letter-spacing: .03em; line-height: 1; }
.lede { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 22px; max-width: 600px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 10px; background: rgba(220, 215, 190, .035); border: 1px solid var(--line); }
.steps .si { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 210, 58, .25), rgba(255, 210, 58, .06)); color: var(--acc-2); border: 1px solid rgba(255, 210, 58, .3); }
.steps .si svg { width: 20px; height: 20px; }
.steps .si.red { background: linear-gradient(160deg, rgba(255, 90, 61, .25), rgba(255, 90, 61, .06)); color: #ff9a82; border-color: rgba(255, 90, 61, .3); }
.steps .si.dim { background: rgba(220, 215, 190, .05); color: var(--ink-3); border-color: var(--line); }
.steps h3 { margin: 2px 0 4px; font-size: 14.5px; font-weight: 700; }
.steps p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.fine { margin: 18px 0 0; font-size: 12px; color: var(--ink-3); }

#settings { position: fixed; right: var(--gut); bottom: 70px; z-index: 31; width: 300px; padding: 16px; border-radius: 12px; display: grid; gap: 12px; animation: sheet-in .3s var(--ease); font-weight: 500; font-size: 12.5px; color: var(--ink); text-shadow: none; white-space: normal; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: rgba(220, 215, 190, .1); border: 1px solid var(--line); position: relative; transition: background .2s; }
.toggle i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .25s var(--ease), background .2s; }
.toggle[aria-pressed="true"] { background: rgba(255, 210, 58, .35); border-color: rgba(255, 210, 58, .5); }
.toggle[aria-pressed="true"] i { transform: translateX(16px); background: var(--acc-2); }
.set-foot { font-size: 11px; color: var(--ink-4); }

/* ───────────── narrow screens */
@media (max-width: 1280px) {
  .feed, .side { bottom: 170px; }
  .goal { width: min(480px, calc(100vw - 2 * var(--gut))); }
  .stats { grid-template-columns: repeat(4, 104px) 140px; }
  .stat .v { font-size: 17px; }
  .side { width: 340px; }
}
@media (max-width: 1100px) {
  .feed { width: 300px; }
  .brand { width: 300px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4), .stat.next { display: none; }
}
@media (max-width: 820px) {
  .feed { bottom: 70px; }
  .side { bottom: 70px; }
  :root { --gut: 10px; }
  .top { flex-direction: column; align-items: stretch; gap: 8px; }
  .brand { width: auto; padding: 10px 150px 10px 12px; }
  .brand .tick { display: none; }
  .brand-word { font-size: 20px; }
  .phase { margin-top: 8px; }
  .phase-sub { display: none; }
  .goal { bottom: 226px; padding: 8px 12px; }
  .goal-sub { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); padding: 2px; }
  .stat { padding: 7px 9px; }
  .stat .v { font-size: 15px; }
  .stat .s { display: none; }
  .feed { top: auto; bottom: 70px; left: var(--gut); right: var(--gut); width: auto; height: 150px; max-height: none; }
  .feed .seg { display: none; }
  .row.trader { display: none; }
  .side { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 70px; height: 62vh; }
  .queen-card { display: none; }
  .profile { border-radius: 14px; }
  .dock { left: var(--gut); right: var(--gut); transform: none; justify-content: space-between; }
  .dock .seg span, .dock .btn span { display: none; }
  .corner-l, .corner-r .ca, .dock-sep { display: none; }
  .corner-r { top: var(--gut); bottom: auto; right: var(--gut); padding: 3px; }
  .col-tools { padding-right: 0; }
  .sheet-head { grid-template-columns: 1fr; }
  .labels .lbl.flower .mc { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ───────────── outside: the surface camera's frame */
.camfeed { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hud.realm-out .camfeed { opacity: 1; }
.cf { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(236, 234, 223, .32); }
.cf.tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.cf.tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }
.cf.bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; }
.cf.br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.cf-tag { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: rgba(236, 234, 223, .7); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.cf-tag .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; animation: blink 1.1s steps(2) infinite; }
.cf-clock { color: rgba(236, 234, 223, .5); }
.hud.realm-in .cf-tag .rec { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.hud.realm-in .camfeed { opacity: 1; }
.hud.realm-in .cf { display: none; }
.hud.realm-out .in-only, .hud.realm-in .out-only { display: none; }

/* ───────────── the cleaners card */
.clean-card { padding: 14px 14px 12px; border-color: rgba(255, 90, 61, .28) !important; }
.cl-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; }
.cl-ico { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #ffb39f; background: linear-gradient(160deg, rgba(255, 90, 61, .3), rgba(255, 90, 61, .06)); border: 1px solid rgba(255, 90, 61, .38); box-shadow: 0 0 18px rgba(255, 90, 61, .2); }
.cl-ico svg { width: 19px; height: 19px; }
.cl-title { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-top: 3px; }
.cl-rate { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #ffc3b4; background: rgba(255, 90, 61, .12); border: 1px solid rgba(255, 90, 61, .3); }
.cl-rate i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a3d; box-shadow: 0 0 10px #ff5a3d; animation: blink 0.5s steps(2) infinite; }
.cl-rate.idle i { animation: none; background: var(--ink-4); box-shadow: none; }
.cl-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cl-grid > div { padding: 8px 11px; display: grid; gap: 3px; min-width: 0; }
.cl-grid > div + div { border-left: 1px solid var(--line); }
.cl-grid .v { font-size: 15px; font-weight: 800; white-space: nowrap; font-family: var(--mono); }
.cl-list { display: grid; gap: 4px; margin-top: 10px; }
.cl-row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; background: rgba(255, 90, 61, .05); border: 1px solid rgba(255, 90, 61, .16); cursor: pointer; overflow: hidden; transition: background .2s, border-color .2s; }
.cl-row:hover { background: rgba(255, 90, 61, .1); border-color: rgba(255, 90, 61, .35); }
.cl-row img { width: 30px; height: 30px; border-radius: 6px; }
.cl-row .nm { min-width: 0; }
.cl-row .nm b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row .nm b em { font-style: normal; color: #ffb39f; }
.cl-row .nm small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); white-space: nowrap; }
.cl-row .tr { text-align: right; font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--acc-2); }
.cl-row .tr small { display: block; font-size: 10px; color: var(--ink-4); font-weight: 600; margin-top: 1px; }
.cl-row .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #ff5a3d, #ffd23a); box-shadow: 0 0 8px rgba(255, 140, 60, .8); transition: width .45s var(--ease); }
.cl-row.walk { background: rgba(220, 215, 190, .03); border-color: var(--line); }
.cl-row.walk .bar { background: linear-gradient(90deg, #7c7a86, #b8b4a8); box-shadow: none; }
.cl-row.flash { animation: cl-flash .35s ease-out; }
@keyframes cl-flash { 0% { box-shadow: inset 0 0 0 1px rgba(255, 210, 58, .7), 0 0 16px rgba(255, 160, 40, .35); } }
.cl-empty { padding: 10px 6px 2px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.cl-done { display: grid; gap: 1px; }
.cd-row { display: grid; grid-template-columns: 1fr auto auto 22px; gap: 10px; align-items: center; height: 30px; padding: 0 6px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.cd-row:hover { background: rgba(220, 215, 190, .06); }
.cd-row .sy { font-family: var(--mono); font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-row .sy small { color: var(--ink-4); font-weight: 600; margin-left: 6px; }
.cd-row .tc { font-family: var(--mono); font-weight: 700; color: var(--acc-2); }
.cd-row .tm { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.cd-row a { color: var(--ink-4); display: grid; place-items: center; }
.cd-row a:hover { color: var(--acc-2); }
.cd-row a svg { width: 13px; height: 13px; }

/* the dweller profile while it cleans */
.pf-clean { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 90, 61, .07); border: 1px solid rgba(255, 90, 61, .28); }
.pfc-head { display: flex; align-items: center; gap: 8px; }
.pfc-sym { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.pfc-state { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #ffb39f; }
.pfc-head .icon-btn { margin-left: auto; }
.pfc-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(220, 215, 190, .1); overflow: hidden; }
.pfc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff5a3d, #ffd23a); box-shadow: 0 0 10px rgba(255, 140, 60, .7); transition: width .45s var(--ease); }
.pfc-sub { margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.pf-clean.done { background: rgba(220, 215, 190, .04); border-color: var(--line); }
.pf-clean.done .pfc-state { color: var(--ink-3); }

/* ───────────── world labels: the coin pillars, the tracking boxes, places */
.lbl.coin { display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto; cursor: pointer; }
.lbl.coin .pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 5px; background: rgba(10, 12, 14, .82); border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.lbl.coin .sym { font-weight: 800; font-size: 12px; font-family: var(--mono); }
.lbl.coin .tc { font-size: 11px; color: var(--acc-2); font-weight: 700; font-family: var(--mono); }
.lbl.coin .st { display: none; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 9.5px; font-weight: 900; letter-spacing: .08em; align-items: center; font-family: var(--mono); }
.lbl.coin.cleaning .st { display: inline-flex; background: rgba(60, 220, 130, .9); color: #04210f; box-shadow: 0 0 14px rgba(60, 220, 130, .5); }
.lbl.coin.cleaning .pill { border-color: rgba(60, 220, 130, .55); }
.lbl.coin.done .st { display: inline-flex; background: linear-gradient(180deg, #ffe27a, #ffc81a); color: #2a1a00; }
.lbl.coin.dim { opacity: .45 !important; }
.lbl.coin .stem { width: 1px; height: 14px; background: linear-gradient(180deg, rgba(220, 215, 190, .45), transparent); }
.lbl.track { pointer-events: none; }
.lbl.track .box { position: relative; border: 1px dashed rgba(255, 120, 90, .85); background: rgba(255, 90, 61, .05); }
.lbl.track .box::before, .lbl.track .box::after { content: ''; position: absolute; width: 8px; height: 8px; border: 2px solid #ffd23a; }
.lbl.track .box::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.lbl.track .box::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.lbl.track .tl { position: absolute; left: -1px; bottom: calc(100% + 3px); display: grid; gap: 1px; font-family: var(--mono); font-size: 10px; line-height: 1.25; color: #ffe6dc; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.lbl.track .tl b { color: #ff9a82; font-weight: 800; letter-spacing: .06em; }
.lbl.track .tl i { font-style: normal; color: var(--acc-2); }
.lbl.track .tl .xy { color: rgba(236, 234, 223, .5); }
.lbl.track.walk .box { border-color: rgba(200, 200, 210, .5); background: none; }
.lbl.track.walk .tl b { color: var(--ink-3); }
.lbl.tag.big { height: 30px; padding: 0 12px; font-size: 12px; gap: 8px; color: #fff6d6; background: linear-gradient(180deg, rgba(110, 80, 0, .7), rgba(30, 22, 0, .78)); border-color: rgba(255, 210, 90, .6); box-shadow: 0 0 24px rgba(255, 200, 30, .3); }
.lbl.tag.big svg { width: 15px; height: 15px; }
.lbl.tag.hill { color: var(--ink-2); }
.pop.raid { color: #ff9a82; }

/* the realm switch */
.dock .seg.realm button.on { color: #1a1406; }
.hud.realm-in .goal-ico { color: var(--acc); }
.hud.busy .dock, .hud.busy .side, .hud.busy .feed { opacity: .55; pointer-events: none; transition: opacity .3s; }

@media (max-width: 1280px) { .clean-card .cl-done { display: none; } }
@media (max-width: 820px) {
  .clean-card { display: none; }
  .cf-tag { display: none; }
  .lbl.track .tl .xy { display: none; }
}

/* the feed's head: title on its own line, the five filters share the full width below it (nothing wraps, nothing is cut) */
.feed .panel-head { flex-wrap: wrap; row-gap: 9px; padding: 11px 12px 10px; }
.feed .panel-head .live { white-space: nowrap; flex: 1 0 100%; }
.feed #feedFilter { flex: 1 0 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.feed #feedFilter button { justify-content: center; padding: 0 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the right column never runs past the dock: the cleaners card gives way first, its lists clip */
.side .clean-card { flex: 0 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.side .clean-card .cl-done { min-height: 0; overflow: hidden; }
.side .queen-card { flex: none; }
.col-tools .seg { flex-wrap: nowrap; }
/* the camera tag sits between the brand box and the stats only where there is room for it */
@media (max-width: 1439px) { .cf-tag { display: none; } }
