:root {
  --bg: #050505;
  --bg2: #0b0b0c;
  --panel: #111113;
  --panel2: #19191c;
  --line: #2b1a1e;
  --text: #f3f3f4;
  --muted: #b4b4bb;
  --red: #c8102e;
  --red2: #ff1f3d;
  --blue: #ff4d63;   /* secondary accent (light red) */
  --gold: #f5b041;   /* "pending" status only */
  --green: #2ecc71;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(200,16,46,.16), transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(200,16,46,.08), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand, .stat b { font-family: Rajdhani, Inter, sans-serif; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 .5rem; }
h2 { font-size: 1.9rem; margin: 0 0 .25rem; }
h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
p { margin: .3rem 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 3vw, 56px); }
main.container { flex: 1; padding-top: 28px; padding-bottom: 60px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--red); box-shadow: 0 1px 18px rgba(200,16,46,.25); }
.topbar-inner { max-width: none; margin: 0; padding: 10px clamp(16px, 2.5vw, 40px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.topbar-inner .brand { justify-self: start; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; white-space: nowrap; }
.emblem { width: 38px; height: 38px; border-radius: 50%; flex: none; border: 1px solid var(--red); background: #000 url(/assets/apple-touch-icon.png) center / cover no-repeat; }
.brand b { color: var(--red2); }
.nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.nav > a, .dropdown-btn { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; background: none; border: 0; font: inherit; cursor: pointer; }
.nav > a:hover, .dropdown-btn:hover, .nav > a.active { color: var(--text); background: var(--panel); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 160px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: none; box-shadow: var(--shadow); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.dropdown-menu a:hover { background: var(--panel2); color: var(--text); }
.menu-btn { display: none; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 12px; cursor: pointer; }
.account { display: flex; align-items: center; gap: 8px; margin-left: 6px; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); object-fit: cover; flex: none; }
.announcement { background: linear-gradient(90deg, var(--red), #7a0a26); text-align: center; padding: 8px 16px; font-weight: 600; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: 600 .95rem Inter, sans-serif; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #3a4a74; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--red2), var(--red)); border-color: transparent; }
.btn.blue { background: linear-gradient(135deg, var(--blue), var(--red)); border-color: transparent; }
.btn.discord { background: #0b0b0c; border-color: var(--red); }
.btn.discord:hover { background: #1a0a0e; border-color: var(--red2); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.danger { color: #ff7b93; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
input, textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(255,31,61,.45); border-color: var(--red2); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* layout pieces */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow { color: var(--red2); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); text-transform: capitalize; }
.tag.green { color: var(--green); border-color: rgba(46,204,113,.35); }
.tag.red { color: #ff7b93; border-color: rgba(255,45,90,.35); }
.tag.gold { color: var(--gold); border-color: rgba(245,176,65,.35); }
.tag.blue { color: #ffffff; border-color: rgba(255,255,255,.35); }
.stat { padding: 18px; }
.stat b { display: block; font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: 600 .88rem Inter, sans-serif; }
.tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(255,255,255,.02); }
.list-row .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { padding: 0; overflow: hidden; }

/* banner + hero */
.banner { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(200,16,46,.18); }
.banner img { display: block; width: 100%; height: clamp(230px, 40vw, 640px); object-fit: cover; object-position: center 52%; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 50%, rgba(5,5,5,.9) 100%); }
.banner-cta { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 16px; }
.section-title { color: var(--red2); margin: 24px 0 12px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 30px 0 34px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.status-card { position: relative; overflow: hidden; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; margin-right: 6px; }
.status-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.18); }
.status-dot.off { background: var(--red2); }
.meter { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #6d0a1b, var(--red2)); width: 0; transition: width .6s; }
.players { max-height: 180px; overflow: auto; margin-top: 10px; font-size: .88rem; }
.players div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.feature .icon { font-size: 1.6rem; }

/* content cards */
.card-title { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.rule { padding: 16px 18px; border-left: 3px solid var(--red2); background: var(--panel); border-radius: 0 10px 10px 0; margin-bottom: 10px; }
.rule h3 { font-size: 1.1rem; }
.post { display: flex; gap: 12px; }
.post .body { white-space: pre-wrap; word-wrap: break-word; }
.post-actions { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.post-actions button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }
.post-actions button.liked { color: var(--red2); }
.thread .msg { padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 10px; white-space: pre-wrap; word-wrap: break-word; }
.thread .msg.staff { border-color: rgba(255,31,61,.5); background: rgba(255,31,61,.06); }
.thread .msg.system { background: none; border-style: dashed; color: var(--muted); font-size: .88rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.price { color: #fff; font-family: Rajdhani, sans-serif; font-size: 1.5rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* toast & modal */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 200; max-width: calc(100% - 32px); }
.toast.error { border-color: var(--red2); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.modal-card { width: 100%; max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.modal-close { float: right; }

.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { cursor: pointer; }
.footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero, .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
  .topbar-inner { grid-template-columns: 1fr auto auto; }
  .menu-btn { display: block; order: 3; }
  .topbar-right { order: 2; }
  .account .small { display: none; } /* just the bell + avatar on small screens */
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; white-space: normal; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; display: block; border: 0; box-shadow: none; background: none; padding-left: 12px; }
  .dropdown-btn { display: none; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .list-row { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; }
}

/* DOCIT */
.vs { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.list-row.sealed { cursor: default; }

/* Civilians */
.city-card { cursor: pointer; transition: border-color .15s; }
.city-card:hover { border-color: var(--red); }

/* Changelog */
.changelog-body p { white-space: pre-wrap; margin: .6rem 0 0; }
.changelog-body ul.changes { margin: .6rem 0 0; padding-left: 1.2rem; }
.changelog-body ul.changes li { margin: .2rem 0; }
.changelog-body ul.changes li::marker { color: var(--red2); }
.changelog-body.compact { max-height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.changelog-entry { margin-bottom: 4px; }

/* Home: full-width headline, then compact status next to the latest update */
.hero.hero-wide { display: block; padding: 26px 0 24px; text-align: center; }
/* headline sized to span the banner width (banner = page width minus padding) */
.hero.hero-wide h1 { font-size: clamp(2.4rem, 9.2vw, 13rem); line-height: 1; margin: 6px 0 12px; white-space: nowrap; }
.hero.hero-wide .lead { max-width: 760px; margin: 0 auto; font-size: 1.15rem; }
.status-row { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 30px; }
.status-card.compact { padding: 18px; }
.status-card .players-count { font-family: Rajdhani, sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; margin-top: 6px; }
.status-card .players-count span { font-size: 1.05rem; }
.status-card .players { max-height: 120px; }
.latest-update { height: 100%; display: flex; flex-direction: column; }
.latest-update .changelog-body.compact { max-height: 170px; flex: 1; }
@media (max-width: 760px) { .status-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hero.hero-wide h1 { white-space: normal; font-size: 2.8rem; } }

/* Notifications bell */
.bell { position: relative; background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: 4px 6px; border-radius: 8px; color: var(--text); }
.bell:hover { background: var(--panel); }
.bell-count { position: absolute; top: -2px; right: -4px; background: var(--red2); color: #fff; font: 700 .65rem Inter, sans-serif; border-radius: 99px; padding: 1px 5px; }
.list-row.notif.unread { background: rgba(255,31,61,.06); }
.list-row.notif.unread b::before { content: '● '; color: var(--red2); }
/* Rules quiz */
.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.quiz-q legend { padding: 0 6px; }
.quiz-q.wrong { border-color: var(--red2); }
.quiz-q .check { margin: 6px 0; font-weight: 400; }

/* Businesses */
.biz-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel2); display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--line); }
/* Events */
.event-card { display: flex; gap: 16px; align-items: flex-start; }
.event-time { min-width: 86px; display: flex; flex-direction: column; font-family: Rajdhani, sans-serif; font-size: 1.3rem; }
/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.g-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); cursor: pointer; aspect-ratio: 4 / 3; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.g-item:hover img, .g-item:hover video { transform: scale(1.04); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: .8rem; display: flex; flex-direction: column; }
.g-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); border: 1px solid var(--red); border-radius: 99px; padding: 1px 8px; font-size: .72rem; }
.g-link { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; }
@media (max-width: 600px) { .event-card { flex-direction: column; gap: 6px; } }

/* LSX */
.spark { width: 160px; height: 44px; display: block; }
table.lsx td { vertical-align: middle; }

/* leaderboards */
ol.board { list-style: none; counter-reset: b; padding: 0; margin: 8px 0 0; }
ol.board li { counter-increment: b; display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
ol.board li:last-child { border-bottom: 0; }
ol.board li::before { content: counter(b); min-width: 1.4em; font-family: Rajdhani, Inter, sans-serif; font-weight: 700; color: var(--red2); }
ol.board li:nth-child(-n+3)::before { color: var(--gold); }
.board-val { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; white-space: nowrap; }
/* staff activity */
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 10px; }
.daybars i { flex: 1; min-height: 2px; background: linear-gradient(var(--red2), var(--red)); border-radius: 3px 3px 0 0; }
/* creators */
.creator.is-live { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255,45,90,.25); }
.live-strip { margin-top: 18px; }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.live-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--red); border-radius: 12px; background: rgba(255,45,90,.06); }
/* supporters */
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.supporter { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.supporter.dim { opacity: .45; }
.rules-banner { background: linear-gradient(90deg, #3a0010, #1a0008); }

/* live city */
.bars { display: grid; gap: 8px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 30px; gap: 10px; align-items: center; font-size: .9rem; }
.bar-row i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--red2)); }
.bar-row b { text-align: right; font-family: Rajdhani, Inter, sans-serif; }
/* wanted */
.wanted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.poster { background: #e9dfc7; color: #2a1d10; border-radius: 6px; padding: 16px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); transform: rotate(-.6deg); }
.poster:nth-child(even) { transform: rotate(.7deg); }
.poster-head { font-family: Rajdhani, Inter, sans-serif; font-weight: 800; font-size: 2rem; letter-spacing: .12em; color: #8b0000; border-bottom: 2px solid #8b0000; margin-bottom: 8px; }
.poster h3 { color: #1a1008; margin: 4px 0; }
.poster .muted { color: #6b5a44 !important; }
/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge { font-size: .72rem; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); white-space: nowrap; }
/* application status */
ol.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
ol.steps li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; opacity: .65; }
ol.steps li.done { opacity: 1; border-color: rgba(46,204,113,.35); }
/* on call */
.oncall { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.oncall.on { color: var(--text, #fff); }
/* marketplace */
.listing img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--line); }
.listing.dim { opacity: .55; }
/* uptime */
.uptime-bars { display: flex; gap: 1px; height: 34px; margin: 10px 0 4px; }
.uptime-bars i { flex: 1; border-radius: 2px; background: var(--green); }
.uptime-bars i.part { background: var(--gold); }
.uptime-bars i.down { background: var(--red2); }
.restart-banner { background: linear-gradient(90deg, #4a3300, #1f1500); }
/* search */
.search-btn { background: none; border: 1px solid var(--line); border-radius: 10px; color: inherit; padding: 6px 10px; cursor: pointer; font-size: 1rem; }
.search-btn:hover { border-color: var(--red); }
.search-group { margin-bottom: 12px; }
.search-group .list-row { padding: 8px 4px; }
@media (max-width: 600px) { .bar-row { grid-template-columns: 110px 1fr 26px; } }

/* memorials */
.memorial img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; filter: grayscale(.6); }
.memorial .epitaph { font-style: italic; color: var(--muted); margin: 8px 0; }
/* rumors */
.rumors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rumor { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(0,0,0,.25); font-style: italic; }
/* player of the month */
.panel.voted { border-color: var(--gold); }
/* handover */
.handover summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }

/* phones: keep the header on one row (brand, account, menu); search moves into the menu */
.nav-search { display: none; }
@media (max-width: 1150px) { .nav-search { display: block; } }
@media (max-width: 600px) {
  .topbar-inner { gap: 8px; padding: 8px 12px; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand .emblem { width: 30px; height: 30px; }
  .topbar-right .search-btn { display: none; }
  .topbar-right .btn.sm { padding: 6px 10px; font-size: .8rem; }
}

/* home: latest update expands in place */
.changelog-body.compact.expanded { max-height: none; -webkit-mask-image: none; mask-image: none; }
.latest-update .changelog-body.compact.expanded { max-height: none; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; align-self: flex-start; }
.link-btn:hover { text-decoration: underline; }
.status-row:has(.changelog-body.expanded) { align-items: start; }

/* home showcase (replaces the static banner) */
.showcase { position: relative; min-height: clamp(420px, 62vh, 680px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(200,16,46,.18); display: flex; align-items: center; margin-bottom: 26px; isolation: isolate; }
.showcase-slides, .showcase .slide { position: absolute; inset: 0; }
.showcase .slide { background: #050505 center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 16s ease-out; }
.showcase .slide.on { opacity: 1; transform: scale(1); }
.showcase::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.6) 38%, rgba(5,5,5,.1) 75%), linear-gradient(0deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,0) 35%); }
.showcase-content { position: relative; z-index: 2; padding: clamp(24px, 5vw, 80px); max-width: 760px; }
.showcase h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .92; margin: 8px 0 6px; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.showcase h1 span { color: var(--red2); display: block; }
.showcase .tagline { font-family: Rajdhani, Inter, sans-serif; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; margin: 0 0 10px; }
.showcase .lead { color: #d6d6d6; font-size: 1.08rem; max-width: 560px; margin: 0 0 18px; }
.showcase-place { position: absolute; z-index: 2; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 12px; font-size: .82rem; color: #cfcfcf; }
.showcase .dots { display: flex; gap: 6px; }
.showcase .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.showcase .dots button.on { background: var(--red2); border-color: var(--red2); }
@media (max-width: 760px) {
  .showcase { min-height: 460px; align-items: flex-end; }
  .showcase::after { background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.55) 55%, rgba(5,5,5,.15) 100%); }
  .showcase-place { left: 16px; right: auto; top: 12px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { .showcase .slide { transition: none; transform: none; } }
/* home: online staff inside the Active Staff card */
.staff-online { display: flex; flex-direction: column; gap: 10px; }
.status-row:has(.staff-online) { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(240px, 300px); }
@media (max-width: 1100px) { .status-row:has(.staff-online) { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); } .status-row .staff-online { grid-column: 1 / -1; } }
@media (max-width: 760px) { .status-row:has(.staff-online) { grid-template-columns: 1fr; } }
.staff-online-head { display: flex; align-items: center; gap: 6px; }
.staff-online-row { display: flex; align-items: center; gap: 10px; }
.staff-online-row .avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; }

/* saved drafts */
.draft-status { margin-top: 6px; }
/* staff timeline */
.timeline { display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.tl-row { display: grid; grid-template-columns: 110px 26px 1fr; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); }
.tl-row.bad .small { color: #ff9aac; }
.tl-row.good .small { color: #8be0a8; }
/* city map */
.map-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 80vh; background: #1aa3d1; }
.map-inner { position: relative; margin: 0 auto; transition: width .2s ease; }
.map-inner img { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; }
.pin { position: absolute; transform: translate(-50%, -100%); background: #111; border: 2px solid var(--red2); border-radius: 50% 50% 50% 4px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 15px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.5); padding: 0; }
.pin.event { border-color: var(--gold); }
.pin.biz.hiring { box-shadow: 0 0 0 3px rgba(46,204,113,.8), 0 3px 10px rgba(0,0,0,.5); }
.pin:hover { z-index: 2; transform: translate(-50%, -100%) scale(1.15); }
/* heatmap */
table.heatmap { border-collapse: separate; border-spacing: 2px; font-size: .7rem; }
table.heatmap th { color: var(--muted); font-weight: 500; padding: 0 4px; white-space: nowrap; text-align: left; }
table.heatmap td { width: 26px; height: 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,.05); }

/* duty clock */
.duty-clock { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.duty-clock.on { border-color: rgba(46,204,113,.5); }
.duty-clock > span:first-child { display: flex; align-items: center; gap: 6px; }
.duty-clock .btn { margin-left: auto; }
/* wiki */
.wiki-body p { margin: 0 0 10px; line-height: 1.6; }
.wiki-body ul { margin: 0 0 10px 18px; }
/* event check-in */
.checkin-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.checkin-code { font-family: Rajdhani, Inter, sans-serif; font-size: 3.6rem; font-weight: 800; letter-spacing: .3em; text-align: center; color: var(--red2); margin: 10px 0; }
/* desktop dropdowns: hide right after a link is clicked, even while the mouse is still over the menu */
@media (min-width: 1151px) { .dropdown.closing .dropdown-menu { display: none !important; } }
.tag.legal { color: #c9a7ff; border-color: rgba(170,120,255,.4); }
/* Public Safety tag: bright police blue, filled so it stands out on the dark cards */
.tag.safety { color: #8fd0ff; background: rgba(37,130,255,.18); border-color: rgba(96,170,255,.7); font-weight: 600; }

/* ---------- accessibility */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
#view:focus { outline: none; }
.dropdown:focus-within .dropdown-menu { display: block; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* ---------- undo toast */
.undo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; gap: 10px; align-items: center; background: #1b1b1f; border: 1px solid var(--red); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
/* ---------- what's new */
.whats-new { margin: -10px 0 22px; }
.whats-new-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.whats-new-list a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: rgba(255,255,255,.03); }
.whats-new-list a:hover { border-color: var(--red); }
.world-line { text-align: center; margin-top: 6px; color: var(--muted); }
/* ---------- 2FA bar */
.twofa-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: linear-gradient(90deg, #3b2a00, #1d1500); }
.twofa-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.twofa-form input[name="code"] { width: 130px; letter-spacing: .2em; }
/* ---------- uploads */
.upload-row { display: flex; gap: 8px; align-items: center; }
.upload-row input[type="text"], .upload-row input:not([type]) { flex: 1; }
.upload-btn { white-space: nowrap; cursor: pointer; }
/* ---------- newspaper */
.masthead { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .02em; }
.news-lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.news-lead img, .news-card img, .news-hero { width: 100%; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.news-lead img { max-height: 340px; }
.news-card img { height: 160px; margin-bottom: 8px; }
.news-hero { max-height: 420px; margin: 10px 0 16px; }
.news-article { max-width: 760px; margin: 0 auto; }
.news-body p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.75; margin: 0 0 14px; }
@media (max-width: 760px) { .news-lead { grid-template-columns: 1fr; } }
/* ---------- staff schedule */
.schedule-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
/* showroom: pick a dealership, then filter */
.dealer-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dealer-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dealer-card:hover { border-color: var(--red); }
.dealer-card.on { border-color: var(--red2); box-shadow: 0 0 0 1px var(--red2) inset; background: rgba(225,6,44,.08); }
.showroom-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.showroom-filters select { width: auto; }
.showroom-search { min-width: 200px; flex: 1; }
.dealer-block { margin-bottom: 18px; }

/* ---------- home: live hero line, resident spotlight, slim feature strip ---------- */
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-stats .sep { opacity: .45; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px var(--green); vertical-align: 1px; }
.showcase { justify-content: space-between; gap: 24px; }
.spotlight-card { position: relative; z-index: 2; flex: 0 0 auto; width: min(380px, 36%); margin: 28px clamp(24px, 4vw, 64px) 52px 0; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden;
  background: rgba(8,8,10,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.spot-photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(200,16,46,.35), rgba(10,10,12,.9)); display: grid; place-items: center; }
.spot-photo span { font-family: Rajdhani, Inter, sans-serif; font-size: 3.4rem; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.spot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-photo img + span { display: none; }
.spot-body { padding: 16px 18px 18px; }
.spot-body h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.spot-meta { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spot-meta b { color: var(--red2); }
.spotlight-card blockquote { margin: 10px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: .98rem; line-height: 1.6; color: #e4e4e6;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.spot-plain { margin: 10px 0 12px; color: var(--muted); font-size: .95rem; }
.spot-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spot-links a { color: var(--red2); }
.spot-links a.muted { color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.linklike:hover { color: var(--text); }
.spot-admin { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.feature-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 12px 16px; margin: 0 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; }
.feature-strip span { display: inline-flex; align-items: baseline; gap: 6px; cursor: help; }
.feature-strip i { font-style: normal; }
.feature-strip em { display: none; }
@media (max-width: 900px) {
  .showcase { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; }
  .spotlight-card { width: auto; margin: 0 16px 48px; }
  .spot-photo { aspect-ratio: 16 / 7; }
}
@media (max-width: 760px) {
  .showcase-content { padding-top: 48px; }
}

/* ---------- spotlight: personal touches, Resident of the Week, cast row, wall, profile card editor ---------- */
.spotlight-card { transition: border-color .4s ease, box-shadow .4s ease; }
.spotlight-card.pinned { border-color: rgba(245,176,65,.75); box-shadow: 0 0 0 1px rgba(245,176,65,.35), 0 18px 60px rgba(245,176,65,.22); }
.spotlight-card.pinned .spot-body h3, .spotlight-card.pinned .eyebrow { color: var(--gold); }
.spot-ribbon { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffd27a, #f5b041); color: #241600; font-size: .74rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.spot-online { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); font-style: normal; font-size: .72rem; font-weight: 700; }
.spot-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.spot-headline { margin: 0 0 6px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #f0d9a0; font-size: 1rem; line-height: 1.35; }
.spot-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spot-badges span { font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.spot-links .respect { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 999px; padding: 4px 12px; font: inherit; letter-spacing: 0; cursor: pointer; }
.spot-links .respect:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.spot-links .respect.on, .spot-links .respect:disabled { cursor: default; opacity: .8; }
.spot-links .respect.on { border-color: rgba(245,176,65,.6); color: var(--gold); }
.spot-cast { display: flex; gap: 6px; padding: 0 18px 16px; overflow-x: auto; scrollbar-width: none; }
.spot-cast button { flex: 0 0 auto; padding: 2px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.spot-cast button:hover, .spot-cast button.on { opacity: 1; border-color: var(--red2); }
.spotlight-card.pinned .spot-cast button.on { border-color: var(--gold); }
.spot-face { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(200,16,46,.5), #111); }
.spot-face b { font-size: .7rem; color: #fff; }
.spot-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-face img + b { display: none; }
.resident-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.resident-tile { padding: 0; overflow: hidden; border-color: rgba(245,176,65,.35); }
.resident-tile .spot-photo { aspect-ratio: 16 / 10; }
.resident-tile blockquote { font-family: Georgia, 'Times New Roman', serif; color: #e4e4e6; margin: 10px 0 8px; }
.spot-style { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; margin-top: 10px; }
.spot-style legend { padding: 0 6px; font-weight: 700; }
.spot-stats { margin: 6px 0 0; }
.quote-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.quote-pick button { text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .86rem; cursor: pointer; }
.quote-pick button.on { border-color: var(--red2); color: var(--text); background: rgba(225,6,44,.12); }
.focus-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.focus-full { position: relative; width: min(260px, 100%); cursor: crosshair; line-height: 0; }
.focus-full img { width: 100%; border-radius: 8px; }
.focus-full i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--red2), 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }
.focus-preview { display: grid; gap: 4px; width: 200px; }
.focus-preview img { width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .spotlight-card { transition: none; } }

/* ---------- terms / privacy ---------- */
.legal { max-width: 860px; line-height: 1.7; }
.legal section + section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal h3 { margin: 0 0 6px; }
.legal ul { margin: 6px 0; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { text-decoration: underline; }

/* ---------- watch streams on the site ---------- */
.stream-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-stage { margin-bottom: 18px; }
.stream-poster { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em;
  background: radial-gradient(circle at 50% 45%, rgba(145,70,255,.35), rgba(5,5,5,.95) 70%), #050505; border: 1px solid var(--line); }
.stream-poster:hover, .stream-poster:focus-visible { border-color: var(--red2); }
.modal-card .stream-frame { margin-top: 8px; }
.live-tag { cursor: pointer; margin-top: 6px; font: inherit; font-size: .74rem; }
.spot-online.spot-live i { background: var(--red2); box-shadow: 0 0 8px var(--red2); }
.spot-links .respect.watch { border-color: var(--red2); color: #fff; background: rgba(225,6,44,.25); }
.live-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
