/* The Workapp look (LucieYaK, 2026-12-01): near-black with crimson gradients, gold serif headings, red-tinted borders,
   square corners. Always dark. */
:root {
  color-scheme: dark;
  --bg-0: #070405;
  --bg-1: #140a0c;
  --surface-0: #0e0708;
  --surface-1: #160b0d;
  --surface-2: #1e0f12;
  --line: #3d1a1e;
  --line-strong: #6b2329;
  --text-primary: #ece1d6;
  --text-secondary: #bfb0a4;
  --text-muted: #8c7d74;
  --gold: #c9a06c;
  --crimson: #8e1b22;
  --crimson-hi: #b3263a;
  --crimson-lo: #4f0d12;
  --series-1: #b3263a;
  --series-1-faint: #b3263a59;
  --on-series: #fff3ec;
  --focus: #c9a06c;
  --danger: #ff7b72;
  --ok: #7fc28f;
  --radius: 2px;
  --panel: linear-gradient(180deg, #1a0c0f 0%, #110809 100%);
  --button: linear-gradient(180deg, #a5222b 0%, #7a141b 100%);
  --button-hover: linear-gradient(180deg, #bd2a34 0%, #8e1b22 100%);
  --quiet: linear-gradient(180deg, #221114 0%, #150a0c 100%);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Garamond, Georgia, serif;
  font: 15px/1.45 var(--serif);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text-primary); min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 85% -10%, #5c0f1840 0%, #5c0f1800 70%),
    radial-gradient(900px 600px at -10% 110%, #6b111c33 0%, #6b111c00 70%),
    linear-gradient(160deg, #1a0a0d 0%, #0b0506 45%, #070405 100%);
  background-attachment: fixed;
}
/* the faint art behind every page (LucieYaK, 2026-12-01), under the gradients' glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/bg.webp") center 30% / cover no-repeat; opacity: .16; filter: saturate(.9);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, #0006 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, #0006 100%);
}
button, select, input, textarea { font: inherit; color: inherit; border-radius: var(--radius); }
:focus-visible { outline: 1px solid var(--focus); outline-offset: 2px; }
select {
  background: var(--quiet); border: 1px solid var(--line-strong); color: var(--text-primary); padding: 6px 8px;
}
select option { background: #160b0d; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login form {
  width: min(360px, 100%); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 28px; display: grid; gap: 14px;
  box-shadow: 0 0 0 1px #000, 0 18px 50px #000a, inset 0 1px 0 #ffffff08;
}
.login h1 { margin: 0 0 4px; font-size: 24px; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.login p { margin: 0; color: var(--text-secondary); }
.login label { display: grid; gap: 4px; color: var(--text-secondary); font-size: 13px; }
.login input { padding: 9px 11px; border: 1px solid var(--line); background: var(--surface-0); }
.login .error { color: var(--danger); min-height: 1.4em; font-size: 13px; }
.primary {
  padding: 9px 16px; border: 1px solid #c4404a; background: var(--button); color: var(--on-series); cursor: pointer;
  font-weight: 600; letter-spacing: .02em; box-shadow: inset 0 1px 0 #ffffff1f, 0 2px 10px #0008;
}
.primary:hover:not(:disabled) { background: var(--button-hover); }
.primary:disabled { opacity: .55; cursor: default; }

/* dashboard */
header {
  display: flex; align-items: center; gap: 16px; padding: 12px 24px; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #1b0b0e 0%, #120709f0 100%); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 4px 18px #0009; backdrop-filter: blur(6px);
}
header h1 { font-size: 21px; margin: 0; color: var(--gold); font-weight: 600; letter-spacing: .03em; }
header .spacer { flex: 1; }
header h1, header .ghost, .seg button { white-space: nowrap; }
#tabs { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #6b2329 transparent; }
.ghost {
  background: var(--quiet); border: 1px solid var(--line-strong); padding: 6px 12px; cursor: pointer; color: var(--text-primary);
}
.ghost:hover:not(:disabled) { border-color: #a8333c; background: linear-gradient(180deg, #2c1418, #1a0b0e); }
main { max-width: 1100px; margin: 0 auto; padding: 22px 24px 60px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--quiet); }
.seg button { border: 0; border-radius: 0; background: none; padding: 7px 13px; cursor: pointer; color: var(--text-secondary); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--text-primary); background: #ffffff08; }
.seg button[aria-pressed="true"] { background: var(--button); color: var(--on-series); box-shadow: inset 0 1px 0 #ffffff1f; }
.filters label { display: inline-flex; gap: 6px; align-items: center; color: var(--text-secondary); font-size: 13px; }
.status { color: var(--text-muted); font-size: 13px; margin: -6px 0 16px; }
.note { color: var(--text-secondary); font-size: 13px; margin: 0 0 16px; max-width: 75ch; }

.card {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px #0008, 0 8px 26px #0007, inset 0 1px 0 #ffffff08;
}
.card h2 {
  font-size: 16px; margin: 0; padding: 13px 16px 10px; display: flex; gap: 10px; align-items: baseline; color: var(--gold);
  font-weight: 600; background: linear-gradient(90deg, #2a0f1340, #2a0f1300); border-bottom: 1px solid var(--line);
}
.card h2 small { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 26px 0 10px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 16px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.card h2 + table tr:first-child th, .card h2 + .kpis + table tr:first-child th { border-top: 0; }
th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
tr:hover td { background: #ffffff05; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.name { white-space: normal; min-width: 180px; }
td.few { color: var(--text-muted); }
td.barcell { width: 34%; min-width: 160px; padding-right: 20px; }
tr.total td { font-weight: 600; color: var(--gold); }
.bar { position: relative; height: 14px; }
.bar .p90 { position: absolute; left: 0; top: 3px; height: 8px; background: var(--series-1-faint); }
.bar .med {
  position: absolute; left: 0; top: 0; height: 14px;
  background: linear-gradient(90deg, #6e1219 0%, #b3263a 100%); box-shadow: 0 0 8px #b3263a55;
}
.bar:hover .med, .bar:focus .med { filter: brightness(1.2); }
.legend { display: flex; gap: 16px; color: var(--text-secondary); font-size: 12px; margin: 0 0 14px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.legend .k-med::before { background: linear-gradient(90deg, #6e1219, #b3263a); }
.legend .k-p90::before { background: var(--series-1-faint); }
.empty { padding: 30px 16px; color: var(--text-muted); text-align: center; }
.tip {
  position: fixed; pointer-events: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px #000c; z-index: 5; display: none; min-width: 150px;
}
.tip b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--gold); }
.tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--text-secondary); }
.tip div strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  td.barcell, th.barcell, .hide-sm { display: none; }
  main { padding: 14px; }
  header { flex-wrap: wrap; padding: 10px 14px; }
  #tabs { order: 3; width: 100%; overflow-x: auto; }
}
.legend[hidden] { display: none; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 16px 14px; }
.kpi { display: grid; }
.kpi-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.kpi-label { font-size: 12px; color: var(--text-muted); }
[hidden] { display: none !important; }
.bl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.bl-form label { color: var(--text-secondary); font-size: 13px; width: 100%; }
.bl-form input {
  flex: 1; min-width: 220px; max-width: 360px; padding: 9px 11px; border: 1px solid var(--line-strong); background: var(--surface-0);
}
.bl-head { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.bl-head h2 { margin: 0; font-size: 22px; color: var(--gold); }
.bl-user { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.bl-user:hover { text-decoration: underline; }

/* Bloodline: the family tree as the game draws it (RealmStyle colours: panel 12,11,12, gold 201,168,106, ruby 179,38,58,
   hot ruby 210,58,79, cream 236,227,212). Always dark, like the game. */
.bt-panel {
  --gold: #c9a86a; --ruby: #b3263a; --hot: #d23a4f; --cream: #ece3d4; --muted: #a0a2a8; --legend: #e9c075;
  --serif: Garamond, "EB Garamond", "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: Gotham, Montserrat, "Segoe UI", system-ui, sans-serif;
  background: #0c0b0c; color: var(--cream); border-radius: 2px; padding: 12px 14px 14px; margin-top: 6px;
  border: 1px solid #3a3029; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px #1c1714, 0 6px 24px #0006;
}
.bt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 2px 6px 10px; border-bottom: 1px solid #c9a86a40; margin-bottom: 12px; }
.bt-title { margin: 0; font: 400 30px/1.1 var(--serif); color: var(--cream); letter-spacing: .01em; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bt-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; border-radius: 2px; cursor: pointer;
  background: #141213; border: 1px solid #c9a86a40; color: var(--muted); font: 15px var(--serif); }
.bt-chip-sub { font: 500 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6a6c72; }
.bt-chip[aria-pressed="true"] { border-color: var(--gold); color: var(--cream); background: #1d1715; }
.bt-chip[aria-pressed="true"] .bt-chip-sub { color: var(--gold); }
.bt-view { position: relative; height: min(660px, 74vh); min-height: 380px; overflow: hidden; touch-action: none; cursor: grab; user-select: none;
  background: linear-gradient(180deg, #1a0a0e, #060506); border-radius: 2px; outline: none; }
.bt-view:active { cursor: grabbing; }
.bt-view:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.bt-edge { position: absolute; z-index: 3; pointer-events: none; }
.bt-edge-l { left: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(90deg, #080607, #08060700); }
.bt-edge-r { right: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(270deg, #080607, #08060700); }
.bt-edge-t { left: 0; right: 0; top: 0; height: 48px; background: linear-gradient(180deg, #080607, #08060700); }
.bt-edge-b { left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(0deg, #080607, #08060700); }
.bt-heading { position: absolute; z-index: 4; left: 20px; top: 12px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); pointer-events: none; }
.bt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.bt-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.bt-lines line { stroke: #c9a86a; stroke-opacity: .38; stroke-width: var(--lw, 2px); }
.bt-far .bt-lines .bt-drop-line { display: none; }
.bt-lines .bt-vein-glow { stroke: var(--ruby); stroke-opacity: .28; stroke-width: 10px; }
.bt-lines .bt-vein { stroke: var(--hot); stroke-opacity: 1; stroke-width: 3px; stroke-linecap: square; }
.bt-aura { position: absolute; width: 620px; height: 620px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, #b3263a61 0, #b3263a2a 32%, #b3263a00 68%); }
.bt-ring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #d23a4fe6 0, #d23a4f80 26%, #d23a4f22 48%, #d23a4f00 70%); }
.bt-ring.bt-hover { background: radial-gradient(circle, #c9a86aa6 0, #c9a86a4d 28%, #c9a86a14 50%, #c9a86a00 70%); }
.bt-ping { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--hot); pointer-events: none; }
.bt-drop { position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, #d23a4f 0, #d23a4f99 22%, #d23a4f00 66%); }
.bt-drop span { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: #ffbebe; transform: translate(-50%, -50%) rotate(45deg); }
.bt-node { position: absolute; width: 0; height: 0; }
.bt-node.bt-hold { visibility: hidden; }
.bt-slot { position: absolute; left: 0; top: 0; transform: translateX(-50%); box-sizing: border-box; overflow: visible;
  background: #000000e6; border: 2px solid #7f6644; box-shadow: inset 0 0 0 1px #000c, inset 0 0 12px #000, 0 0 0 1px #000a, 0 3px 8px #0008; }
.bt-slot img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; pointer-events: none; }
.bt-founder .bt-slot, .bt-spine .bt-slot, .bt-slot.bt-gold { border-color: var(--legend); box-shadow: inset 0 0 0 1px #000c, inset 0 0 12px #000, 0 0 0 1px #000a, 0 0 18px #e0a53a40; }
.bt-blood:not(.bt-founder) .bt-slot, .bt-slot.bt-ruby { border-color: var(--ruby); }
.bt-me .bt-slot, .bt-slot.bt-hot { border-color: var(--hot); }
.bt-gem { display: none; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; background: #e0a53a; transform: rotate(45deg); box-shadow: 0 0 4px #e0a53a; }
.bt-founder .bt-gem, .bt-spine .bt-gem { display: block; }
.bt-sigil { display: none; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.bt-spine .bt-sigil { display: block; }
.bt-inner { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 500 13px/1.1 var(--sans); color: var(--gold); padding: 4px; }
.bt-gap .bt-slot { display: none; }
.bt-badge { position: absolute; right: 0; bottom: 0; transform: translate(50%, 50%); min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box;
  border-radius: 11px; background: var(--ruby); color: #fff; font: 500 13px/22px var(--sans); text-align: center; box-shadow: 0 1px 4px #000a; }
.bt-name { position: absolute; left: 0; width: 114px; transform: translateX(-50%); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 19px/24px var(--serif); color: var(--cream); text-shadow: 0 1px 2px #000; pointer-events: none; }
.bt-founder .bt-name, .bt-spine .bt-name, .bt-gap .bt-name { width: 300px; }
.bt-founder .bt-name, .bt-spine .bt-name { color: var(--gold); }
.bt-gap .bt-name { color: var(--muted); font-style: italic; }
.bt-me .bt-name { color: #fff; }
.bt-tag { position: absolute; left: 0; width: 112px; transform: translateX(-50%); text-align: center; font: 500 11px/16px var(--sans); letter-spacing: .14em; color: var(--gold); pointer-events: none; }
.bt-me .bt-tag { color: var(--hot); }
.bt-dot { display: none; position: absolute; left: 0; top: 32px; width: var(--dot, 14px); height: var(--dot, 14px); transform: translate(-50%, -50%) rotate(45deg); background: var(--cream); }
.bt-far .bt-slot, .bt-far .bt-name, .bt-far .bt-tag { display: none; }
.bt-far .bt-dot { display: block; }
.bt-far .bt-blood .bt-dot { background: var(--ruby); }
.bt-far .bt-founder .bt-dot { background: var(--gold); top: 44px; }
.bt-far .bt-me .bt-dot { background: var(--hot); }
.bt-far .bt-gap .bt-dot, .bt-far .bt-spine .bt-dot, .bt-far .bt-more .bt-dot { background: var(--muted); }
.bt-card { position: absolute; z-index: 5; left: 30px; bottom: 30px; width: 372px; max-width: calc(100% - 60px); box-sizing: border-box; cursor: default;
  display: flex; gap: 16px; padding: 18px 16px 14px; background: #141213; border: 1px solid #4a3d31; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px #201a16, 0 8px 22px #000b; }
.bt-card .bt-slot { position: relative; transform: none; flex: none; width: 92px; height: 92px; }
.bt-card-text { min-width: 0; flex: 1; }
.bt-card-name { font: 22px/28px var(--serif); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-card-role { font: 500 11px/18px var(--sans); letter-spacing: .14em; color: var(--gold); }
.bt-card-facts { font: 14px/1.4 var(--sans); color: var(--muted); white-space: pre-line; margin-top: 2px; }
.bt-card-link { display: inline-block; margin-top: 4px; font: 12px var(--sans); color: #6a6c72; text-decoration: none; }
.bt-card-link:hover { color: var(--gold); text-decoration: underline; }
.bt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; }
.bt-status { flex: 1; min-width: 180px; margin: 0; padding-left: 10px; font: 15px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-buttons { display: flex; gap: 8px; }
.bt-button { min-width: 44px; height: 38px; padding: 0 16px; border-radius: 2px; cursor: pointer; font: 17px var(--serif); color: var(--cream);
  background: linear-gradient(180deg, #1c1919, #121011); border: 1px solid #c9a86a55; box-shadow: inset 0 1px 0 #ffffff0d; }
.bt-button:hover { border-color: var(--gold); }
.bt-button:disabled { opacity: .6; cursor: default; }
.bt-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .bt-card { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .bt-buttons { width: 100%; justify-content: flex-end; }
}

/* Live tab (public/live.js) */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 8px; }
.live-card {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 0 0 1px #0008, 0 8px 26px #0007, inset 0 1px 0 #ffffff08;
  display: grid; gap: 10px; align-content: start;
}
.live-card h2, .live-h { font-size: 17px; margin: 0; color: var(--gold); font-weight: 600; }
.live-h { margin: 22px 0 10px; }
.live-card .hint { margin: 0; color: var(--text-muted); font-size: 13px; }
.live-card textarea, .live-card input:not([type="checkbox"]) {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); background: var(--surface-0);
  width: 100%; box-sizing: border-box;
}
.live-card textarea { resize: vertical; }
.live-card .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.live-card label { display: grid; gap: 4px; color: var(--text-secondary); font-size: 13px; }
.live-card label.check { display: flex; align-items: center; gap: 8px; }
.live-card .row { display: flex; align-items: center; gap: 10px; }
.live-card .row .spacer { flex: 1; }
.live-card .count { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.live-card .status { margin: 0; min-height: 1.2em; }
#codes td.code { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
#codes tr.off td { color: var(--text-muted); }
#codes td.state.live { color: var(--ok); font-weight: 600; }
#codes .ghost { padding: 4px 10px; font-size: 12px; }
.live-log { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.live-log li { display: flex; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.live-log li:first-child { border-top: 0; }
.live-log b { color: var(--gold); }
.live-log .when { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-log .what { color: var(--text-secondary); overflow-wrap: anywhere; }

/* Sign in with Roblox (public/login.html) and the bottom-left "Logged in as" badge (public/app.js) */
.login-card {
  width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 30px 28px; display: grid; gap: 16px; box-shadow: 0 0 0 1px #000, 0 18px 50px #000a, inset 0 1px 0 #ffffff08;
}
.login-card h1 { margin: 0 0 4px; font-size: 24px; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.login-card p { margin: 0; color: var(--text-secondary); }
.login-card label { display: grid; gap: 4px; color: var(--text-secondary); font-size: 13px; }
.login-card input { padding: 9px 11px; border: 1px solid var(--line-strong); background: var(--surface-0); }
.login-card .error { color: var(--danger); min-height: 1.4em; font-size: 13px; }
.roblox-option { display: grid; gap: 12px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.roblox-signin { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 10px 16px; font-size: 15px; }
.roblox-signin svg { width: 18px; height: 18px; fill: currentColor; }
.me {
  position: fixed; left: 16px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 0 0 1px #000a, 0 10px 30px #000b, inset 0 1px 0 #ffffff08;
}
.me img { display: block; width: 40px; height: 40px; border: 1px solid var(--gold); background: #000; border-radius: var(--radius); }
.me-letter { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); color: var(--gold);
  background: var(--button); font-size: 20px; font-weight: 600; }
.me-text { display: grid; line-height: 1.2; }
.me-text small { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.me-text b { color: var(--gold); font-size: 15px; }
.me .ghost { margin-left: 6px; padding: 4px 10px; font-size: 12px; }
main { padding-bottom: 96px; }

/* the in-game announcement banner, as a preview (StarterPlayerScripts.RealmClient.Social.RealmAnnouncements: engraved
   silver heading over a blood slash, the iron divider with its crimson gem, the line in cream, the byline in gold) */
.an-preview {
  position: relative; padding: 16px 18px 14px; text-align: center; overflow: hidden; container-type: inline-size;
  background: radial-gradient(ellipse at 50% 45%, #000000d9 0%, #000000a6 55%, #00000000 100%),
    linear-gradient(180deg, #1a1012 0%, #0b0708 100%);
  border: 1px solid var(--line);
}
.an-heading { position: relative; display: grid; place-items: center; height: 34px; }
.an-heading > span:last-child {
  position: relative; font: 700 clamp(13px, 5.2cqi, 24px)/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #f6f3ec 0%, #c4bfb7 50%, #96918a 62%, #ded9d2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px #0e0a0a) drop-shadow(0 1px 0 #0e0a0a) drop-shadow(0 -1px 0 #0e0a0a);
}
.an-slash {
  position: absolute; left: 15%; right: 15%; top: 58%; height: 7px; transform: rotate(-2.5deg);
  background: linear-gradient(90deg, #84101400 0%, #841014a6 12%, #841014f2 55%, #841014b3 90%, #84101400 100%);
}
.an-divider { position: relative; height: 12px; margin: 6px auto 8px; width: min(340px, 80%); }
.an-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, #6e676000, #8a827a 20%, #8a827a 80%, #6e676000);
}
.an-divider span {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #e0404d, #7a0e16); border: 1px solid #2a1a1a; box-shadow: 0 0 6px #d23a4f80;
}
.an-line { margin: 0; font-size: 18px; color: #ece3d4; text-shadow: 0 1px 2px #000; overflow-wrap: anywhere; }
.an-line.empty { color: #ece3d466; }
.an-by { margin: 6px 0 0; font-size: 13px; color: #c9a86a; text-shadow: 0 1px 2px #000; min-height: 1.2em; }

/* Hotspots tab (public/app.js hotspots): the zones from above, shaded by their share of time */
.hot-frame { padding: 12px; }
.hot-map { display: block; width: 100%; height: auto; max-height: 72vh; }
.hot-wild { fill: #0b0607; stroke: var(--line-strong); stroke-width: 8; }
.hot-zone rect { stroke: #e0a06c; stroke-opacity: .5; stroke-width: 10; }
.hot-badge circle { fill: #120708; stroke: var(--gold); stroke-width: 9; }
.hot-badge > text:first-of-type { fill: var(--gold); font-family: var(--serif); font-weight: 700; }
.hot-badge { pointer-events: none; }
.hot-scale { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-muted); font-size: 12px; }
.hot-scale i { flex: 0 1 240px; height: 10px; background: linear-gradient(90deg, #3a1016, #8a1824 50%, #d6323e 80%, #ff8060); border: 1px solid var(--line-strong); }
.hot-zone:hover rect, .hot-zone:focus rect { stroke: var(--gold); stroke-opacity: 1; stroke-width: 16; }
.hot-zone:focus { outline: none; }
.hot-label { fill: #ece3d4; font-family: var(--serif); font-weight: 600; paint-order: stroke; stroke: #000; stroke-width: 14px; stroke-linejoin: round; pointer-events: none; }
.hot-rank { fill: var(--gold); }
.hot-share { font-weight: 400; fill: #d9c9b6; }
.hot-wild-label .hot-share { font-size: 80px; }
.hot-north { fill: var(--text-muted); font-family: var(--serif); }
