:root {
  --bg: #07070c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1f8;
  --muted: #9a97ab;
  --faint: #6b6880;
  --gold: #f2c14e;
  --gold-2: #ffe7a3;
  --rose: #ff4f7b;
  --teal: #36f1d1;
  --green: #4ade80;
  --red: #ff5a6a;
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --t0: #8b9bb8;
  --t1: #3ee6ff;
  --t2: #c56bff;
  --t3: #f2c14e;
  --t4: #36f1d1;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(242, 193, 78, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 10%, rgba(197, 107, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(54, 241, 209, 0.06), transparent 60%),
    var(--bg);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.wrap { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px max(28px, calc((100vw - 1240px) / 2 + 28px));
  background: rgba(7, 7, 12, 0.7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand img { border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.brand-sub { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #1a1206; background: linear-gradient(135deg, #fff1c2, #f2c14e); vertical-align: 3px; }
.brand em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-net { margin-right: auto; }
.net { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.net.demo { color: var(--gold-2); border-color: rgba(242, 193, 78, 0.4); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  padding: 9px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none !important;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn.primary {
  color: #1a1206; border-color: transparent;
  background: linear-gradient(135deg, #fff1c2 0%, #f2c14e 45%, #d99a2b 100%);
  box-shadow: 0 8px 24px -8px rgba(242, 193, 78, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #fff6d6 0%, #f7cd66 45%, #e3a636 100%); box-shadow: 0 10px 30px -8px rgba(242, 193, 78, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.glass { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); }
.btn.danger { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff7a8a, #e11d48); box-shadow: 0 8px 24px -8px rgba(225, 29, 72, 0.7); }
.btn.danger:hover:not(:disabled) { background: linear-gradient(135deg, #ff8f9c, #f43f5e); }
.btn.teal { color: #042a24; border-color: transparent; background: linear-gradient(135deg, #b8fff2, #36f1d1); box-shadow: 0 8px 24px -10px rgba(54, 241, 209, 0.7); }
.btn.big { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

/* hero */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 56px 28px 28px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.eyebrow { margin: 0 0 14px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 18px; }
.grad { background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 40%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c9c6d6; font-size: 17px; max-width: 34em; margin: 0 0 26px; }
.lead b { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  position: relative; aspect-ratio: 12 / 7; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(54, 241, 209, 0.35), var(--shadow);
}
.hero-art .art { width: 100%; height: 100%; display: block; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 12, 0.85)); }
.hero-art .hero-tag { position: absolute; left: 20px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.hero-tag .emblem { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
.hero-tag b { display: block; font-family: var(--display); font-size: 16px; }
.hero-tag span { color: var(--muted); font-size: 13px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-height: 76px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; position: relative; overflow: hidden;
}
.stat .k { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.stat .v { font-family: var(--display); font-size: 20px; font-weight: 600; position: relative; z-index: 1; }
.stat .v small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.stat.crackdown { border-color: rgba(255, 90, 106, 0.5); background: linear-gradient(135deg, rgba(255, 90, 106, 0.16), rgba(59, 130, 246, 0.12)); }
.stat.crackdown .v { color: #ffd0d5; }
.stat.crackdown::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 90, 106, 0.25), rgba(59, 130, 246, 0.25)); animation: siren 1.4s infinite alternate; mix-blend-mode: screen; pointer-events: none; }
@keyframes siren { from { opacity: 0.1; } to { opacity: 0.45; } }
.stat .btn { margin-top: 4px; align-self: flex-start; position: relative; z-index: 1; }
.skeleton { background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0.07), var(--surface)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* banner */
.banner {
  margin-bottom: 18px; padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.1), rgba(242, 193, 78, 0.03)); border: 1px solid rgba(242, 193, 78, 0.28); color: #f4e3b5;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px;
}
.banner .ico { font-size: 18px; }
.banner span { flex: 1; min-width: 220px; }
.banner .ico { flex: none; min-width: 0; color: var(--gold); }
#myGangs { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.banner.err { background: rgba(255, 90, 106, 0.08); border-color: rgba(255, 90, 106, 0.35); color: #ffd0d5; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-bottom: 48px; }
.col-main, .col-side { min-width: 0; }
section { margin-bottom: 36px; }
.sec-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.3px; margin: 0; }
h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 14px; letter-spacing: 0.2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.col-side .panel { margin-bottom: 16px; }
.col-side { position: sticky; top: 84px; align-self: start; }

.tabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; transition: color .2s, background .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.attacker { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
select, input {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
select { padding: 8px 12px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; }
select:focus, input:focus { border-color: rgba(242, 193, 78, 0.6); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.15); }

/* gang cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.empty { color: var(--muted); padding: 34px 20px; text-align: center; grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.card {
  --tier: var(--t0); --gang: var(--rose);
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tier) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--tier) 55%, transparent); }
.card.tier-1 { --tier: var(--t1); }
.card.tier-2 { --tier: var(--t2); }
.card.tier-3 { --tier: var(--t3); }
.card.tier-4 { --tier: var(--t4); border-color: rgba(54, 241, 209, 0.35); }
.card.tier-4::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--teal) 80%, var(--gold-2) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.card.mine { border-color: rgba(242, 193, 78, 0.45); }
.card.dead .scene { filter: grayscale(1) brightness(0.7); }

.scene { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.scene .art { width: 100%; height: 100%; display: block; transition: transform .6s ease; }
.card:hover .scene .art { transform: scale(1.05); }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 12, 0) 45%, rgba(14, 13, 22, 0.95) 100%); }
.tier-pill {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(7, 7, 12, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--tier) 50%, transparent); color: color-mix(in srgb, var(--tier) 70%, white);
}
.tier-pill.mine-pill { left: auto; right: 12px; border-color: rgba(242, 193, 78, 0.6); color: var(--gold-2); }
.card-body { position: relative; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-head { display: flex; align-items: flex-end; gap: 12px; margin-top: -42px; position: relative; z-index: 1; }
.card-head .emblem { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)); }
.card-head .who { min-width: 0; padding-bottom: 2px; }
.card h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; word-break: break-word; }
.card h4 .id { color: var(--faint); font-family: var(--body); font-weight: 600; font-size: 12px; }
.arch { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.stars .off { color: rgba(255, 255, 255, 0.15); }
.value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.value { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.5px; }
.value small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 50%, transparent), var(--tier)); }
.next-tier { font-size: 11.5px; color: var(--faint); margin-top: -4px; }
.status { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.ok { color: #bbf7d0; }
.status.warn { color: #fde68a; background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.2); }
.status.hot { color: #fecdd3; background: rgba(255, 90, 106, 0.08); border-color: rgba(255, 90, 106, 0.3); font-weight: 700; }
.status.hot .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.status.protect { color: #bae6fd; }
.status.dead { color: var(--muted); }
.facts { font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.facts b { color: var(--text); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; align-items: center; }
.why { font-size: 12px; color: var(--faint); }

/* found form */
.found { display: grid; gap: 18px; padding: 24px; }
.found-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.found-fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.field input { width: 100%; font-size: 15px; }
.hint { color: var(--faint); font-size: 12.5px; min-height: 1em; }
.hint.bad { color: var(--red); }
.hint.good { color: var(--green); }
.amount { display: grid; gap: 8px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.quick button:hover { color: var(--text); border-color: rgba(242, 193, 78, 0.5); }
.arch-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.arch-picker button {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); font-weight: 700; font-size: 13px; text-align: left; transition: border-color .2s, background .2s;
}
.arch-picker button:hover { background: var(--surface-2); }
.arch-picker .emblem { width: 30px; height: 30px; flex: none; }
.arch-picker button.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: 0 0 0 1px var(--c) inset; }
.found-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); }
.pv-portrait { position: relative; aspect-ratio: 1 / 1; }
.pv-portrait .boss { width: 100%; height: 100%; display: block; }
.pv-portrait .tier-pill { --tier: var(--t0); }
.pv-portrait .badge { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }
.pv-portrait .badge .emblem { width: 100%; height: 100%; }
.found-preview .pv { padding: 14px; display: grid; gap: 4px; }
.found-preview .pv b { font-family: var(--display); font-size: 15px; word-break: break-word; }
.found-preview .pv-sub { color: var(--muted); font-size: 12.5px; }
.traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.traits span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: #cfcbe0; }
.traits span.legend { color: #1a1206; background: linear-gradient(135deg, #fff1c2, #f2c14e); border-color: transparent; font-weight: 800; }
.pv-note { color: var(--faint); font-size: 11.5px; margin-top: 8px; }

/* boss portraits */
.portrait {
  --tier: var(--t0);
  position: relative; width: 74px; height: 74px; flex: none; border-radius: 18px; background: #0b0b12;
  border: 2px solid color-mix(in srgb, var(--tier) 70%, transparent);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8), 0 0 18px -6px var(--tier);
}
.portrait .boss { width: 100%; height: 100%; display: block; border-radius: 16px; }
.portrait .badge { position: absolute; right: -9px; bottom: -9px; width: 28px; height: 28px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7)); }
.portrait .badge .emblem { width: 100%; height: 100%; }
.card-head .portrait { margin-right: 4px; }
.hero-tag .portrait { width: 58px; height: 58px; border-radius: 16px; }
.hero-tag .portrait .boss { border-radius: 14px; }
.hero-tag .portrait .badge { width: 24px; height: 24px; right: -8px; bottom: -8px; }
.mini-portrait { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex: none; border: 1px solid var(--line-2); }
.mini-portrait .boss { width: 100%; height: 100%; display: block; }
.form-actions { display: flex; flex-direction: row-reverse; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }

/* side */
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: top; }
.top-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; counter-increment: top; transition: background .2s; }
.top-list li:hover { background: var(--surface-2); }
.top-list li::before { content: counter(top); width: 18px; color: var(--faint); font-weight: 800; font-size: 12px; text-align: center; }
.top-list li:first-child::before { color: var(--gold); }
.top-list li.none::before { content: none; }
.top-list .emblem { width: 32px; height: 32px; flex: none; }
.top-list .who { min-width: 0; flex: 1; }
.top-list .n { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-list .v { color: var(--muted); font-size: 12px; }
.top-list .sol { font-family: var(--display); font-size: 13px; font-weight: 600; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier-list li { display: flex; align-items: center; gap: 12px; }
.tier-list .thumb { width: 64px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; border: 1px solid var(--line); }
.tier-list .thumb .art { width: 100%; height: 100%; display: block; }
.tier-list .t { flex: 1; min-width: 0; }
.tier-list .t b { display: block; font-size: 13.5px; }
.tier-list .t span { color: var(--faint); font-size: 12px; }
.tier-list .cnt { font-family: var(--display); font-size: 13px; color: var(--muted); min-width: 2ch; text-align: right; }
.rules ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; color: #c9c6d6; }
.rules b { color: var(--text); }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; padding-bottom: 32px; border-top: 1px solid var(--line); padding-top: 20px; }

/* toasts */
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 50; max-width: min(400px, calc(100vw - 36px)); }
.toast {
  background: rgba(20, 19, 30, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: pop .25s ease-out; word-break: break-word; display: flex; gap: 10px; align-items: flex-start;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.toast.ok::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.toast.err::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.toast.warn::before { background: var(--amber); }
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }

/* modal */
dialog {
  border: 1px solid var(--line-2); border-radius: 24px; background: #0f0e17; color: var(--text);
  padding: 0; width: min(460px, calc(100vw - 32px)); overflow: hidden; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
dialog[open] { animation: pop .25s ease-out; }
dialog::backdrop { background: rgba(3, 3, 8, 0.72); backdrop-filter: blur(6px); }
#modalArt:empty { display: none; }
#modalArt .scene { aspect-ratio: 12 / 5; }
.modal-inner { padding: 22px 24px 24px; }
.modal-inner h3 { font-size: 19px; margin-bottom: 12px; }
#modalBody { display: grid; gap: 12px; margin-bottom: 20px; font-size: 14px; color: #d6d3e2; }
#modalBody p { margin: 0; }
#modalBody input { width: 100%; }
.calc { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; font-size: 13.5px; }
.calc div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.calc b { color: var(--text); }
.calc .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; color: var(--text); font-weight: 700; }
.calc .total b { color: var(--gold-2); }

@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .col-side .panel { margin: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .hero-art { max-width: 640px; }
}
@media (max-width: 720px) {
  .wrap, .hero { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 12px 16px; }
  .nav-net { display: none; }
  .brand { margin-right: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .found-grid { grid-template-columns: minmax(0, 1fr); }
  .found-preview { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
  .found-preview .pv { align-content: start; }
  .pv-portrait .tier-pill { display: none; }
  .pv-portrait .badge { width: 30px; height: 30px; left: 8px; bottom: 8px; }
  .arch-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attacker { margin-left: 0; width: 100%; }
  .attacker select { flex: 1; }
  .tabs { width: 100%; overflow-x: auto; }
  .grid, #myGangs { grid-template-columns: minmax(0, 1fr); }
  #walletBtn { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* gameplay v2: districts, events */
.district-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.district-picker button {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); transition: border-color .2s, background .2s;
}
.district-picker button:hover { background: var(--surface-2); }
.district-picker button b { font-size: 13.5px; }
.district-picker button small { color: var(--faint); font-size: 11.5px; line-height: 1.3; }
.district-picker button.active { border-color: var(--gold); background: rgba(242, 193, 78, 0.08); box-shadow: 0 0 0 1px var(--gold) inset; }
.district-info {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  border: 1px solid rgba(242, 193, 78, 0.35); background: rgba(242, 193, 78, 0.05);
}
.district-info > b { color: var(--gold); font-size: 13.5px; }
.district-info ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.district-info .who { margin: 8px 0 0; font-weight: 600; }
.district-info .common { margin: 8px 0 0; color: var(--faint); font-size: 12px; }
.boss-pill {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; color: #1a1206; background: linear-gradient(135deg, #fff1c2, #f2c14e);
}
.stat .note { text-transform: none; letter-spacing: 0; font-weight: 600; position: relative; z-index: 1; }
.stat.event { border-color: rgba(54, 241, 209, 0.35); }

/* ---------------------------------------------------------------- profile */
.sec-sub { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.prof { display: flex; flex-direction: column; gap: 8px; }
.prof h3 { margin: 0 0 4px; font-family: var(--display); font-size: 17px; }
.prof p { margin: 0; font-size: 13px; line-height: 1.5; }
.prof-big { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1;
  background: linear-gradient(100deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-variant-numeric: tabular-nums; text-align: right; }
.ref-link { display: flex; gap: 8px; margin: 4px 0; }
.ref-link input { flex: 1; min-width: 0; font-size: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.prof .btn.primary { margin-top: 6px; align-self: flex-start; }
.ref-hint { display: block; margin-top: 6px; color: var(--teal); }

/* ---------------------------------------------------------------- top menu */
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links a.active { color: var(--gold-2); background: rgba(242, 193, 78, 0.1); }
.nav-links a[hidden] { display: none; }
section[id], .panel[id] { scroll-margin-top: 84px; }
@media (max-width: 1060px) {
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  section[id], .panel[id] { scroll-margin-top: 130px; }
}

/* ---------------------------------------------------------------- city feed */
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-head h3 { margin: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #3dff9a); box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 255, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0); } }
.feed-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.feed-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.feed-list li:last-child { border-bottom: 0; }
.feed-list li.muted { display: block; }
.feed-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: rgba(255, 255, 255, 0.05); }
.feed-ico.raid { background: rgba(255, 77, 94, 0.15); }
.feed-ico.money { background: rgba(242, 193, 78, 0.14); }
.feed-ico.city { background: rgba(54, 241, 209, 0.12); }
.feed-txt b { color: var(--text); font-weight: 700; }
.feed-meta { display: block; color: var(--faint, var(--muted)); font-size: 11.5px; margin-top: 2px; }
.feed-meta a { color: inherit; }
@media (max-width: 480px) { .brand-sub { display: none; } .nav-links a { padding: 6px 10px; font-size: 13px; } }

/* =====================================================================================
   THEME "NEON SUNSET" — sunset over a tropical crime city, neon signs, wet asphalt.
   Overrides the base theme above; no third-party brand names, fonts or marks.
   ===================================================================================== */
:root {
  --bg: #0d0618;
  --panel: #170a29;
  --panel-2: #1d0e33;
  --surface: #170a29;
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f6eefc;
  --muted: #b9a6d0;
  --faint: #9a88b5;
  --gold: #ffd27a;
  --gold-2: #ffe2a8;
  --neon: #ff3d81;
  --orange: #ff8a3d;
  --rose: #ff3d81;
  --teal: #4ef2e0;
  --green: #4ef2a8;
  --red: #ff2e63;
  --amber: #ffb27a;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
}
body { background: var(--bg); }
.bg {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 61, 129, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(122, 32, 160, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(78, 242, 224, 0.05), transparent 60%),
    var(--bg);
}
.bg::after { display: none; }
a { color: #ffb3d1; }

/* nav + neon logo */
.nav { background: rgba(13, 6, 24, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); }
.brand { align-items: baseline; gap: 10px; }
.neon-logo {
  font-family: var(--script); font-size: 30px; line-height: 1; color: #ffe2f0; white-space: nowrap;
  text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon), 0 0 34px var(--neon);
}
.neon-logo.small { font-size: 24px; }
.brand-sub { margin: 0; padding: 0; background: none; color: var(--gold); font-family: var(--display); font-size: 10px; letter-spacing: 2px; vertical-align: 0; }
.nav-links a { color: #e6d6ee; }
.nav-links a.active { color: #ffffff; background: rgba(255, 61, 129, 0.16); }
.net { border-color: rgba(255, 255, 255, 0.2); }

/* buttons */
.btn.primary {
  color: #2b1300; background: linear-gradient(135deg, #ffd27a, #ff9f3d);
  box-shadow: 0 10px 28px -10px rgba(255, 159, 61, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffe09a, #ffad55); box-shadow: 0 12px 32px -10px rgba(255, 159, 61, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.neon { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--neon), var(--orange)); box-shadow: 0 12px 36px -10px rgba(255, 61, 129, 0.8); }
.btn.neon:hover:not(:disabled) { background: linear-gradient(135deg, #ff5a95, #ff9c55); }
.btn.danger { background: linear-gradient(135deg, #ff2e63, #ff6a3d); box-shadow: 0 10px 28px -10px rgba(255, 46, 99, 0.8); }
.btn.danger:hover:not(:disabled) { background: linear-gradient(135deg, #ff4a78, #ff7f55); }
.btn.teal { color: #04231f; background: linear-gradient(135deg, #b8fff6, #4ef2e0); }
.btn.glass { background: rgba(13, 6, 24, 0.5); border-color: rgba(255, 255, 255, 0.24); }
.btn.wide { width: 100%; padding: 13px 16px; font-size: 15px; border-radius: 14px; }
select:focus, input:focus { border-color: rgba(255, 61, 129, 0.6); box-shadow: 0 0 0 3px rgba(255, 61, 129, 0.18); }

/* ---------------------------------------------------------------- sunset hero */
.sunset { position: relative; height: clamp(480px, 46vw, 620px); overflow: hidden; isolation: isolate; }
.sunset .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1b0b3a 0%, #4a1466 26%, #b0246e 50%, #ff5a4f 66%, #ffa65c 72%, #3a1050 72.2%, #160829 100%); }
.sunset .sun {
  position: absolute; left: 60%; top: 25%; width: clamp(180px, 21vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ffe873 0%, #ff9a4d 45%, #ff3d81 80%); box-shadow: 0 0 120px rgba(255, 120, 90, 0.55);
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%);
}
.sunset .skyline { position: absolute; left: 0; bottom: 27.8%; width: 100%; height: 40%; }
.sunset .water { position: absolute; left: 0; right: 0; top: 72%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(255, 120, 140, 0.16) 0 2px, transparent 2px 14px); }
.sunset .sun-reflect { position: absolute; left: calc(60% + clamp(180px, 21vw, 300px) / 2 - 80px); top: 72%; width: 160px; bottom: 0; background: linear-gradient(180deg, rgba(255, 170, 90, 0.7), rgba(255, 61, 129, 0)); filter: blur(10px); }
.sunset .palm { position: absolute; fill: #12051f; }
.sunset .palm-l { left: -40px; bottom: -30px; height: 92%; }
.sunset .palm-r { right: -60px; bottom: -40px; height: 104%; transform: scaleX(-1); }
.sunset-copy { position: relative; z-index: 1; padding-top: clamp(28px, 4vw, 56px); max-width: 1240px; }
.sunset-copy .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(13, 6, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--gold); font-size: 12px; letter-spacing: 1.5px; }
.sunset-copy h1 { max-width: 12em; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -1.5px; color: #fff; text-shadow: 0 4px 30px rgba(26, 6, 40, 0.6); }
.sunset-copy .lead { max-width: 30em; margin: 20px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: #fbe7f3; text-shadow: 0 2px 12px rgba(26, 6, 40, 0.85); }
.sunset-copy .hero-cta { margin-top: 28px; }

/* ---------------------------------------------------------------- ticker */
.ticker { display: flex; align-items: stretch; height: 46px; background: #1a0b2e; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 max(18px, calc((100vw - 1240px) / 2 + 28px)); background: #ffd23f; color: #1a0b2e; font: 800 12px var(--display); letter-spacing: 1px; text-transform: uppercase; }
.ticker-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e0144f; animation: pulse 1s infinite; }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker-run { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-seg { display: flex; align-items: center; gap: 22px; padding-left: 22px; white-space: nowrap; font-size: 14.5px; }
.ticker-seg .sep { color: #8d7aa8; }
.ticker-seg .hl { color: #ff8ab8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- city stats */
.stats { margin-top: 24px; }
.stat { background: var(--panel); border-color: var(--line); border-radius: 18px; }
.stat .k { color: var(--muted); }
.stat.event { border-color: rgba(255, 61, 129, 0.45); background: linear-gradient(135deg, rgba(255, 61, 129, 0.22), rgba(122, 32, 160, 0.22)); }
.stat.event .k { color: #ffb3d1; }
.banner { background: rgba(255, 210, 122, 0.06); border-color: rgba(255, 210, 122, 0.25); color: #f4e3c5; }

/* ---------------------------------------------------------------- while you were away */
.away {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; padding: 18px 22px; border-radius: 20px;
  background: linear-gradient(90deg, rgba(224, 20, 79, 0.28), rgba(23, 10, 41, 0.92) 60%); border: 1px solid rgba(255, 77, 110, 0.55);
  box-shadow: 0 0 40px rgba(224, 20, 79, 0.2);
}
.away-face { width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden; border: 2px solid #ff4d6e; }
.away-face svg { width: 100%; height: 100%; display: block; }
.away-txt { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.away-txt small { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #ff8aa4; }
.away-txt b { font-family: var(--display); font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; line-height: 1.3; }
.away-txt span { font-size: 14px; color: #e7d3ea; }
.away-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- gang card v2 */
.panel { background: var(--panel); border-color: var(--line); }
.tabs { background: var(--panel); }
.tabs button.active { background: rgba(255, 61, 129, 0.18); color: #fff; }
.grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
#myGangs { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--panel); border-color: var(--line); border-radius: 22px; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.card.mine { border-color: rgba(255, 210, 122, 0.55); box-shadow: 0 20px 60px -30px rgba(255, 159, 61, 0.45); }
.card.target { border-color: rgba(255, 77, 110, 0.6); box-shadow: 0 0 50px -10px rgba(255, 46, 99, 0.25); }
.card-top { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 12px; }
.card-top .who { min-width: 0; flex: 1; }
.card h4 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -0.3px; }
.card h4 .id { font-size: 12px; }
.card .arch { margin-top: 4px; flex-wrap: wrap; row-gap: 0; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.pill.mine { background: var(--gold); color: #2b1300; }
.pill.hot { background: var(--red); color: #fff; }
.pill.hot i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.pill.calm { background: rgba(78, 242, 224, 0.14); color: var(--teal); }
.card-photo { position: relative; aspect-ratio: 11 / 8; overflow: hidden; background: #12051f; }
.card-photo > svg.boss { width: 100%; height: 100%; display: block; transition: transform .6s ease; }
.card:hover .card-photo > svg.boss { transform: scale(1.03); }
.card.target .card-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(255, 46, 99, 0.28) 100%); pointer-events: none; }
.card.dead .card-photo > svg.boss { filter: grayscale(1) brightness(0.6); }
.photo-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, rgba(23, 10, 41, 0), var(--panel)); pointer-events: none; }
.photo-emblem { position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; padding: 4px; border-radius: 50%; background: rgba(13, 6, 24, 0.75); }
.photo-emblem .emblem { width: 100%; height: 100%; display: block; }
.card-photo .boss-pill { position: absolute; right: 12px; top: 12px; margin: 0; }
.boss-pill { color: var(--gold); background: rgba(13, 6, 24, 0.78); border: 1px solid rgba(255, 210, 122, 0.55); text-transform: none; letter-spacing: 0; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.card-body { padding: 4px 18px 18px; gap: 12px; }
.value { font-family: var(--display); font-weight: 800; font-size: 30px; }
.status { background: rgba(255, 255, 255, 0.04); }
.loot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(78, 242, 168, 0.1); border: 1px solid rgba(78, 242, 168, 0.35); font-size: 13px; color: #9ff5cd; }
.loot b { font-family: var(--display); font-size: 16px; color: var(--green); white-space: nowrap; }
.actions { flex-direction: column; align-items: stretch; gap: 10px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-row .btn { flex: 1; }
.why { text-align: center; }

/* threat timer */
.threat { padding: 14px 16px; border-radius: 16px; background: rgba(255, 138, 61, 0.1); border: 1px solid rgba(255, 138, 61, 0.45); }
.threat.lvl-1, .threat.lvl-2 { background: rgba(255, 210, 122, 0.07); border-color: rgba(255, 210, 122, 0.35); }
.threat.lvl-5 { background: rgba(255, 46, 99, 0.14); border-color: rgba(255, 77, 110, 0.7); animation: alarm 1.6s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.18); } }
.threat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #ffb27a; }
.threat.lvl-5 .threat-head { color: #ff8aa4; }
.heat { display: flex; gap: 3px; }
.heat i { width: 14px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.heat i.on.h1 { background: #ffe873; } .heat i.on.h2 { background: #ffd23f; } .heat i.on.h3 { background: #ff8a3d; } .heat i.on.h4 { background: #ff4d6e; } .heat i.on.h5 { background: #ff2e63; }
.threat-time { margin-top: 6px; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #ffb27a; letter-spacing: -0.5px; line-height: 1.1; }
.threat.lvl-1 .threat-time, .threat.lvl-2 .threat-time { color: var(--gold); }
.threat.lvl-5 .threat-time { color: #ff6a8a; }
.threat-note { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #e7d3ea; }
.hunters { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #e7d3ea; line-height: 1.35; }
.hunters.calm { color: var(--muted); }
.hunters .faces { display: flex; flex: none; }
.hunters .faces > span { margin-left: -8px; }
.hunters .faces > span:first-child { margin-left: 0; }
.hunters .mini-portrait { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); }

/* business strip */
.card-biz { display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin-top: auto; background: linear-gradient(90deg, rgba(97, 25, 94, 0.5), rgba(23, 10, 41, 0.4)); border-top: 1px solid var(--line); }
.biz-thumb { width: 88px; height: 52px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.biz-thumb .art { width: 100%; height: 100%; display: block; }
.biz-txt { min-width: 0; flex: 1; display: grid; gap: 2px; }
.biz-txt small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.biz-txt b { font-family: var(--display); font-size: 15px; font-weight: 700; }
.biz-txt .progress { margin-top: 5px; }
.biz-txt .next-tier { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.progress i { background: linear-gradient(90deg, var(--neon), var(--orange)); }

/* ---------------------------------------------------------------- feed: phone with posts */
.phone { margin-bottom: 16px; padding: 10px; border-radius: 38px; background: #050208; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 5px #1d1028; }
.phone-screen { border-radius: 30px; overflow: hidden; background: #120821; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; background: linear-gradient(180deg, #3a1050, #120821); }
.phone-sub { font-size: 12px; color: var(--muted); }
.phone-head .live-dot { margin-left: auto; }
.phone .feed-list { margin: 0; padding: 4px 12px 14px; gap: 10px; max-height: 560px; }
.feed-list li.post { display: block; padding: 12px; border: 0; border-radius: 16px; background: var(--panel-2); }
.feed-list li.muted { padding: 16px 6px; border: 0; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .mini-portrait { width: 34px; height: 34px; border-radius: 50%; }
.post-head .mini-portrait.blank { display: grid; place-items: center; font-size: 11px; color: var(--muted); background: #2a1642; }
.post-head b { font-size: 13.5px; }
.post-meta { display: block; font-size: 11.5px; color: var(--faint); }
.post-meta a { color: inherit; }
.post p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; }
.post p b { color: #fff; }
.chips, .rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, 0.07); color: #e7d3ea; }
.chip.raid { background: rgba(255, 46, 99, 0.18); color: #ff8aa4; }
.chip.gain { background: rgba(78, 242, 168, 0.14); color: var(--green); }
.chip.money { background: rgba(255, 210, 122, 0.14); color: var(--gold); }
.chip.hit { background: rgba(78, 242, 224, 0.14); color: var(--teal); }
.chip.gold { background: rgba(255, 210, 122, 0.16); color: var(--gold); border: 1px solid rgba(255, 210, 122, 0.4); }
.post.news { background: linear-gradient(135deg, rgba(255, 61, 129, 0.25), rgba(122, 32, 160, 0.25)); border: 1px solid rgba(255, 61, 129, 0.4); }
.post.news small { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #ffb3d1; }
.post.news p { margin-top: 6px; font-weight: 600; }
.post.news .post-meta { margin-top: 6px; }

/* ---------------------------------------------------------------- raid scene */
.raid-scene { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #3a0f3f 0%, #12051f 55%, #07030d 100%); animation: pop .3s ease-out; }
.raid-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(180deg, rgba(255, 61, 129, 0.12) 0 2px, transparent 2px 12px); pointer-events: none; }
.rs-light { position: absolute; bottom: -40px; width: 60vw; height: 34vh; filter: blur(6px); pointer-events: none; }
.rs-light.l { left: -10vw; background: linear-gradient(70deg, rgba(255, 240, 200, 0.32), transparent 70%); transform: rotate(-14deg); }
.rs-light.r { right: -10vw; background: linear-gradient(-70deg, rgba(255, 240, 200, 0.32), transparent 70%); transform: rotate(14deg); }
.rs-siren { position: absolute; top: -10vh; width: 40vw; height: 40vw; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: siren-swap 1.2s ease-in-out infinite alternate; }
.rs-siren.rr { left: -10vw; background: rgba(255, 46, 99, 0.35); }
.rs-siren.b { right: -10vw; background: rgba(60, 120, 255, 0.35); animation-direction: alternate-reverse; }
@keyframes siren-swap { from { opacity: 0.35; } to { opacity: 1; } }
.rs-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 24px 16px; text-align: center; max-width: 760px; }
.rs-faces { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); }
.rs-faces figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.rs-faces figcaption { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-face { width: clamp(76px, 12vw, 104px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: block; }
.rs-face svg { width: 100%; height: 100%; display: block; }
.rs-face.win { border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(255, 210, 122, 0.4); }
.rs-face.lose { border: 3px solid #ff4d6e; filter: grayscale(0.55) brightness(0.8); }
.rs-faces figure:last-child figcaption { color: #ff8aa4; }
.rs-arrow { width: 56px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rs-title { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: 1; letter-spacing: -2px; color: #fff4fa; text-shadow: 0 0 8px var(--neon), 0 0 24px var(--neon), 0 0 60px var(--neon); }
.rs-gain { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 54px); color: var(--green); text-shadow: 0 0 30px rgba(78, 242, 168, 0.45); }
.rs-chips { justify-content: center; }
.rs-chips .chip { padding: 7px 13px; font-size: 13px; }
.rs-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ---------------------------------------------------------------- phone tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .neon-logo { font-size: 26px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom); background: rgba(13, 6, 24, 0.95); border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a996c2; font-size: 11px; font-weight: 600; text-decoration: none; }
  .tabbar a[hidden] { display: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: #fff; }
  .tabbar a.active svg { stroke: var(--neon); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  section[id], .panel[id], .phone[id] { scroll-margin-top: 76px; }
  .sunset { height: 560px; }
  .sunset .sun { left: 46%; top: 40%; }
  .sunset .palm-l { height: 70%; left: -70px; }
  .sunset .palm-r { height: 78%; right: -90px; }
  .ticker-tag { padding-left: 16px; }
  .away { padding: 14px 16px; gap: 12px; }
  .away-face { width: 48px; height: 48px; }
  .away-act { width: 100%; }
  .away-act .btn { flex: 1; }
  .card h4 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-run { animation: none; }
  .ticker-track { overflow-x: auto; }
}
.mini-portrait { display: block; }
.sunset::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(13, 6, 24, 0.78) 0%, rgba(13, 6, 24, 0.45) 40%, rgba(13, 6, 24, 0) 68%); }
.sunset-copy { z-index: 2; }

/* ---------------------------------------------------------------- hero by day of the city (data-day = daily event) */
.sunset .sky, .sunset .sun, .sunset .sun-reflect { transition: background 1.2s, box-shadow 1.2s, opacity 1.2s; }
.sunset .palm { z-index: 1; }
.day-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.day-fx .fx { display: none; position: absolute; }
.day-tag { margin-bottom: 14px; }
.day-tag.d1 { color: #fff; background: rgba(120, 10, 30, 0.6); border-color: rgba(255, 60, 90, 0.6); animation: alarm 1.2s infinite; }
.day-tag.d2 { color: #ffb0a0; background: rgba(60, 4, 10, 0.65); border-color: rgba(255, 70, 50, 0.5); }
.day-tag.d3 { color: #ffd76a; border-color: rgba(255, 207, 74, 0.55); }
.day-tag.d4 { color: #e6f6ff; border-color: rgba(200, 235, 255, 0.5); }

/* the road along the waterline, shared by the chase and the convoy */
.fx-road { left: 0; right: 0; top: calc(72% - clamp(26px, 2.8vw, 40px)); height: clamp(26px, 2.8vw, 40px); }
.fx-road .car { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 3; will-change: transform; }
.fx-road .truck { aspect-ratio: 160 / 56; height: 120%; }
@keyframes drive { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bump { 50% { translate: 0 -1.5px; } }

/* 1 — Crackdown: night falls, sirens, a chase and a searchlight helicopter */
.sunset[data-day="1"] .sky { background: linear-gradient(180deg, #05030f 0%, #120a2e 30%, #2a0f3f 55%, #4a1236 68%, #6a1a3a 72%, #120621 72.2%, #070310 100%); }
.sunset[data-day="1"] .sun { opacity: 0.18; box-shadow: none; }
.sunset[data-day="1"] .sun-reflect { opacity: 0.15; }
.sunset[data-day="1"] .fx-siren { display: block; inset: 0; background: radial-gradient(55% 60% at 35% 72%, rgba(255, 30, 60, 0.55), transparent 70%), linear-gradient(180deg, rgba(255, 30, 60, 0.12), transparent 40%); animation: siren-a 0.9s steps(1) infinite; }
.sunset[data-day="1"] .fx-siren::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 75% 72%, rgba(40, 110, 255, 0.6), transparent 70%), linear-gradient(180deg, rgba(40, 110, 255, 0.14), transparent 40%); animation: siren-a 0.9s steps(1) infinite reverse; }
.fx-heli svg g { fill: #3a3150; }
.fx-heli svg { filter: drop-shadow(0 0 6px rgba(200, 220, 255, 0.35)); }
@keyframes siren-a { 0% { opacity: 1; } 50% { opacity: 0.1; } }
.sunset[data-day="1"] .fx-chase { display: block; }
.fx-chase .car { animation: drive 7s linear infinite, bump 0.35s ease-in-out infinite; }
.fx-chase .getaway { animation-delay: -4.2s, 0s; }
.fx-chase .cop:nth-child(2) { animation-delay: -3.3s, -0.1s; }
.fx-chase .cop:nth-child(3) { animation-delay: -2.4s, -0.2s; }
.fx-chase .lb-r { animation: lb 0.5s steps(1) infinite; }
.fx-chase .lb-b { animation: lb 0.5s steps(1) infinite reverse; }
@keyframes lb { 0% { opacity: 1; } 50% { opacity: 0.15; } }
.sunset[data-day="1"] .fx-heli { display: block; right: 14%; top: 9%; width: clamp(70px, 7vw, 110px); animation: hover 3s ease-in-out infinite; }
.fx-heli svg { position: relative; width: 100%; display: block; }
.fx-heli .rotor { transform-origin: 60px 5px; animation: rotor 0.12s linear infinite; }
@keyframes rotor { 50% { transform: scaleX(0.15); } }
.fx-heli .blink { animation: lb 1s steps(1) infinite; }
.fx-heli .beam { position: absolute; left: 50%; top: 80%; width: clamp(160px, 18vw, 260px); height: clamp(260px, 26vw, 380px); margin-left: calc(clamp(160px, 18vw, 260px) / -2); transform-origin: 50% 0; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(220, 235, 255, 0.55), rgba(220, 235, 255, 0.04)); filter: blur(2px); animation: sweep 6s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(-22deg); } }
@keyframes hover { 50% { transform: translate(-14px, 6px); } }

/* 2 — Purge night: blood moon, the city burns */
.sunset[data-day="2"] .sky { background: linear-gradient(180deg, #0a0206 0%, #2a0510 34%, #5c0a14 58%, #a3201a 70%, #c8401c 72%, #1a0408 72.2%, #090205 100%); }
.sunset[data-day="2"] .sun { -webkit-mask-image: none; mask-image: none; background: radial-gradient(circle at 38% 35%, #ff8a6a 0%, #c4231c 45%, #5e0a0e 100%); box-shadow: 0 0 140px rgba(255, 40, 30, 0.6); top: 14%; width: clamp(140px, 15vw, 220px); }
.sunset[data-day="2"] .sun-reflect { background: linear-gradient(180deg, rgba(255, 60, 40, 0.65), rgba(120, 0, 0, 0)); }
.sunset[data-day="2"] .skyline g { fill: #14040a; }
.sunset[data-day="2"] .skyline rect[fill^="url"] { animation: a-flicker 2.4s infinite; }
.sunset[data-day="2"] .fx-fires { display: block; left: 0; right: 0; top: 52%; height: 22%; }
.fx-fires i { position: absolute; bottom: -6%; width: clamp(70px, 8vw, 130px); aspect-ratio: 0.55; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: radial-gradient(45% 55% at 50% 80%, rgba(255, 230, 120, 1), rgba(255, 110, 20, 0.85) 40%, rgba(220, 30, 10, 0.35) 62%, rgba(255, 30, 10, 0) 75%); filter: blur(2px); box-shadow: 0 -30px 60px -10px rgba(40, 10, 10, 0.5); transform-origin: 50% 100%; animation: flame 0.9s ease-in-out infinite alternate; }
.fx-fires i:nth-child(1) { left: 14%; } .fx-fires i:nth-child(2) { left: 37%; animation-delay: -0.3s; }
.fx-fires i:nth-child(3) { left: 55%; animation-delay: -0.6s; } .fx-fires i:nth-child(4) { left: 74%; animation-delay: -0.2s; }
.fx-fires i:nth-child(5) { left: 90%; animation-delay: -0.5s; }
@keyframes flame { from { transform: scale(0.85, 0.8); opacity: 0.75; } to { transform: scale(1.05, 1.15); opacity: 1; } }
.fx-fires b { position: absolute; bottom: 30%; width: 4px; height: 4px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 6px #ff7a2a; animation: ember 4s linear infinite; }
.fx-fires b:nth-of-type(1) { left: 16%; } .fx-fires b:nth-of-type(2) { left: 39%; animation-delay: -1.4s; }
.fx-fires b:nth-of-type(3) { left: 57%; animation-delay: -2.6s; } .fx-fires b:nth-of-type(4) { left: 76%; animation-delay: -0.7s; }
.fx-fires b:nth-of-type(5) { left: 92%; animation-delay: -3.1s; } .fx-fires b:nth-of-type(6) { left: 47%; animation-delay: -2s; }
@keyframes ember { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(30px, -260px); opacity: 0; } }
.sunset[data-day="2"] .fx-glow { display: block; left: 0; right: 0; top: 40%; bottom: 0; background: radial-gradient(70% 60% at 50% 70%, rgba(255, 60, 20, 0.3), transparent 70%); animation: a-pulse 2.2s ease-in-out infinite; }

/* 3 — Convoy: golden hour, armoured trucks roll through the city */
.sunset[data-day="3"] .sky { background: linear-gradient(180deg, #2a1240 0%, #6b2a5a 24%, #d0703a 50%, #ffb347 64%, #ffe08a 72%, #3a1d3f 72.2%, #180b26 100%); }
.sunset[data-day="3"] .sun { background: linear-gradient(180deg, #fff6b0 0%, #ffd24d 50%, #ff9b2e 85%); box-shadow: 0 0 160px rgba(255, 200, 80, 0.7); }
.sunset[data-day="3"] .sun-reflect { background: linear-gradient(180deg, rgba(255, 215, 110, 0.85), rgba(255, 170, 60, 0)); }
.sunset[data-day="3"] .fx-convoy { display: block; }
.fx-convoy .truck { animation: drive 18s linear infinite, bump 0.7s ease-in-out infinite; }
.fx-convoy .truck:nth-child(1) { animation-delay: -12s, 0s; }
.fx-convoy .truck:nth-child(2) { animation-delay: -9.6s, -0.2s; }
.fx-convoy .truck:nth-child(3) { animation-delay: -7.2s, -0.4s; }
.fx-convoy .blink { animation: lb 0.8s steps(1) infinite; }
.sunset[data-day="3"] .fx-sparks { display: block; left: 0; right: 0; top: 74%; bottom: 0; }
.fx-sparks i { position: absolute; width: 6px; height: 6px; background: #ffe7a3; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sparkle 2.4s ease-in-out infinite; }
.fx-sparks i:nth-child(1) { left: 58%; top: 10%; } .fx-sparks i:nth-child(2) { left: 66%; top: 30%; animation-delay: -0.6s; }
.fx-sparks i:nth-child(3) { left: 71%; top: 12%; animation-delay: -1.2s; } .fx-sparks i:nth-child(4) { left: 62%; top: 52%; animation-delay: -1.8s; }
.fx-sparks i:nth-child(5) { left: 75%; top: 44%; animation-delay: -0.9s; } .fx-sparks i:nth-child(6) { left: 68%; top: 70%; animation-delay: -1.5s; }
@keyframes sparkle { 0%, 100% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.6); opacity: 1; } }

/* 4 — Truce: a calm pastel dawn, doves over the bay */
.sunset[data-day="4"] .sky { background: linear-gradient(180deg, #3c4a7a 0%, #7d7fb4 28%, #e3a7c0 52%, #ffd0b0 66%, #fff0d6 72%, #4f4a78 72.2%, #2b2850 100%); }
.sunset[data-day="4"] .sun { background: linear-gradient(180deg, #fffbe6 0%, #ffe2b8 55%, #ffc0c8 90%); box-shadow: 0 0 120px rgba(255, 230, 200, 0.6); }
.sunset[data-day="4"] .sun-reflect { background: linear-gradient(180deg, rgba(255, 240, 220, 0.75), rgba(255, 200, 220, 0)); }
.sunset[data-day="4"] .water { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 18px); }
.sunset[data-day="4"] .skyline g { fill: #2c2452; }
.sunset[data-day="4"] .palm { fill: #1d1838; }
.sunset[data-day="4"] .fx-doves { display: block; inset: 0; }
.fx-doves svg { position: absolute; width: clamp(34px, 3.6vw, 56px); fill: #fbfbff; filter: drop-shadow(0 2px 6px rgba(40, 30, 80, 0.4)); animation: fly 22s linear infinite, flap 0.6s ease-in-out infinite; }
.fx-doves svg:nth-child(1) { top: 16%; animation-delay: -4s, 0s; }
.fx-doves svg:nth-child(2) { top: 24%; width: clamp(28px, 2.8vw, 44px); animation-delay: -5s, -0.2s; }
.fx-doves svg:nth-child(3) { top: 30%; width: clamp(24px, 2.4vw, 36px); animation-delay: -15s, -0.4s; }
@keyframes fly { from { left: -6%; translate: 0 0; } 50% { translate: 0 -24px; } to { left: 104%; translate: 0 0; } }
@keyframes flap { 50% { transform: scaleY(0.45); } }

@media (prefers-reduced-motion: reduce) {
  .day-fx *, .day-fx *::after, .day-tag { animation: none !important; }
  .fx-siren::after { opacity: 0.5; }
  .fx-chase .getaway { left: 52%; } .fx-chase .cop:nth-child(2) { left: 40%; } .fx-chase .cop:nth-child(3) { left: 28%; }
  .fx-convoy .truck:nth-child(1) { left: 66%; } .fx-convoy .truck:nth-child(2) { left: 50%; } .fx-convoy .truck:nth-child(3) { left: 34%; }
  .fx-doves svg:nth-child(1) { left: 60%; } .fx-doves svg:nth-child(2) { left: 70%; } .fx-doves svg:nth-child(3) { left: 78%; }
}
.threat.lvl-5 .threat-time { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 720px) { .sunset::before { background: linear-gradient(180deg, rgba(13, 6, 24, 0.55) 0%, rgba(13, 6, 24, 0.7) 55%, rgba(13, 6, 24, 0.2) 100%); } }
.rs-title { font-size: clamp(30px, 9vw, 76px); overflow-wrap: anywhere; }
.rs-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.rs-share > span { color: var(--muted); font-size: 13px; font-weight: 600; }
.rs-share .btn { display: inline-flex; align-items: center; gap: 7px; }
.rs-share svg { width: 16px; height: 16px; fill: currentColor; }
.rs-share .share-tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.rs-share .share-tg:hover { background: #1e98d6; }
.rs-share .share-x { background: #000; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.rs-share .share-x:hover { background: #16161a; }

/* ---------------------------------------------------------------- wallet picker */
.w-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: pop .2s ease-out; }
.w-sheet { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.w-head h3 { margin: 0; font-size: 19px; }
.w-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.w-list { display: grid; gap: 8px; }
.w-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 600 15px var(--body); text-align: left; text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s; }
.w-row:hover, .w-row:focus-visible { background: rgba(255, 61, 129, 0.1); border-color: rgba(255, 61, 129, 0.45); outline: none; }
.w-badge { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--wc) 22%, #120821); border: 1px solid color-mix(in srgb, var(--wc) 60%, transparent); color: var(--wc); font: 800 16px var(--display); }
.w-name { flex: 1; }
.w-tag { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.w-tag.ok { color: var(--green); }
.w-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #e7d3ea; padding: 10px 12px; border-radius: 12px; background: rgba(255, 210, 122, 0.07); border: 1px solid rgba(255, 210, 122, 0.25); }
.w-list + .w-note { margin: 12px 0 0; background: transparent; border-color: var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .w-overlay { place-items: end stretch; padding: 0; }
  .w-sheet { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- living boss portraits
   Pure CSS on the generated SVG parts; each boss gets its own phase (--ad, --ad2 from the name). */
.boss .a-fig, .boss .a-head, .boss .a-blink, .boss .a-spot, .boss .a-smoke { transform-box: fill-box; }
.boss .a-fig { transform-origin: 50% 100%; animation: a-breathe 4.2s ease-in-out infinite var(--ad, 0s); }
.boss .a-head { transform-origin: 50% 95%; animation: a-sway 7s ease-in-out infinite var(--ad2, 0s); }
.boss .a-blink { transform-origin: 50% 50%; animation: a-blink 5.5s infinite var(--ad, 0s); }
.boss .a-glint { animation: a-glint 6s ease-in-out infinite var(--ad2, 0s); }
.boss .a-smoke { transform-origin: 50% 100%; animation: a-smoke 3.2s ease-in-out infinite var(--ad, 0s); }
.boss .a-ember { animation: a-ember 2.4s ease-in-out infinite var(--ad, 0s); }
.boss .a-twinkle { animation: a-twinkle 3.6s ease-in-out infinite var(--ad2, 0s); }
.boss .a-pulse { animation: a-pulse 5s ease-in-out infinite var(--ad, 0s); }
.boss .a-flicker { animation: a-flicker 6s steps(1) infinite var(--ad2, 0s); }
.boss .a-spot { transform-origin: 50% 0%; animation: a-spot 9s ease-in-out infinite var(--ad, 0s); }
.boss .a-rain { animation: a-rain 0.9s linear infinite; }
.boss .a-windows { animation: a-windows 7s steps(1) infinite var(--ad2, 0s); }
@keyframes a-breathe { 50% { transform: translateY(-0.7px) scaleY(1.008); } }
@keyframes a-sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(1.6deg); } 70% { transform: rotate(-1.2deg); } }
@keyframes a-blink { 0%, 93%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(0.1); } }
@keyframes a-glint { 0%, 70% { opacity: 0; transform: translateX(0); } 74% { opacity: 0.85; } 86% { opacity: 0.85; transform: translateX(15px); } 90%, 100% { opacity: 0; transform: translateX(16px); } }
@keyframes a-smoke { 0% { transform: translateY(0) scaleX(1); opacity: 0.28; } 60% { transform: translateY(-2.5px) scaleX(1.25); opacity: 0.14; } 100% { transform: translateY(-4px) scaleX(1.4); opacity: 0; } }
@keyframes a-ember { 50% { fill: #ffd27a; filter: drop-shadow(0 0 1.5px #ff6a3d); } }
@keyframes a-twinkle { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.8) drop-shadow(0 0 1.5px #ffe7a3); } }
@keyframes a-pulse { 50% { opacity: 0.55; } }
@keyframes a-flicker { 0%, 100% { opacity: 1; } 41% { opacity: 0.35; } 43% { opacity: 1; } 46% { opacity: 0.25; } 48% { opacity: 1; } }
@keyframes a-spot { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes a-rain { from { transform: translateY(-9px); } to { transform: translateY(0); } }
@keyframes a-windows { 0%, 100% { opacity: 0.55; } 30% { opacity: 0.25; } 60% { opacity: 0.7; } }
/* Small avatars in lists and feed stay still: motion everywhere would be noise. */
.mini-portrait .boss *, .top-list .boss * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .boss * { animation: none !important; } }

/* City fund payouts: cards, profile, feed */
.gain-txt { color: var(--green) !important; }
.fund-line { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fund-line b:first-child { color: var(--green); }
.fund-note { display: block; margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.22); }
.fund-note b { color: var(--text); }
