:root {
  --bg: #0c0d0f;
  --bg-2: #111316;
  --panel: #16181c;
  --panel-2: #1c1f24;
  --panel-3: #23272e;
  --line: #2a2e36;
  --line-2: #363b45;
  --text: #ecebe8;
  --text-2: #c9c6bf;
  --muted: #8d8a83;
  --accent: #ce422b;
  --accent-2: #e2583f;
  --accent-deep: #a8331f;
  --accent-soft: rgba(206, 66, 43, .15);
  --accent-glow: rgba(206, 66, 43, .38);
  --amber: #f3a93b;
  --ok: #4ade80;
  --warn: #f5b93b;
  --err: #f0524b;
  --info: #7cb4f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Roboto Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --display: "Roboto Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(206, 66, 43, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(243, 169, 59, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 700; letter-spacing: .03em; line-height: 1.15; text-transform: uppercase; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
code, .mono { font-family: var(--mono); font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.hidden { display: none !important; }
::selection { background: var(--accent); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
*::-webkit-scrollbar-corner { background: transparent; }

.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; padding: 2px 8px 18px; color: var(--text); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span b { color: var(--accent); }
.guild-switch { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 8px; cursor: pointer; border: 1px solid var(--line); transition: border-color .15s; }
.guild-switch:hover { border-color: var(--accent); }
.guild-switch img, .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); object-fit: cover; flex: none; }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 12px; font-size: .75rem; color: var(--amber); background: rgba(243, 169, 59, .08); border: 1px solid rgba(243, 169, 59, .25); padding: 2px 9px; border-radius: 999px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; transition: background .12s, color .12s; position: relative; }
.nav a i { width: 18px; text-align: center; opacity: .9; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav a.active i { color: var(--accent-2); }
.nav .sep { margin: 16px 11px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f6c66; font-weight: 700; }
.main { padding: 26px 32px 70px; max-width: 1440px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.topbar h1 { margin: 0; }
.crumb { color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.userchip { display: flex; align-items: center; gap: 10px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); padding: 5px 6px 5px 10px; border-radius: 999px; }

.card { min-width: 0; background: linear-gradient(180deg, var(--panel), #14161a); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
.card > h2, .card > h3, .card h2, .card h3 { display: flex; align-items: center; gap: 10px; }
.card h2 i, .card h3 i { color: var(--accent-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: linear-gradient(180deg, var(--panel), #14161a); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.stat .k { color: var(--muted); font-size: .78rem; display: flex; gap: 7px; align-items: center; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .k i { color: var(--accent-2); }
.stat .v { font-family: var(--display); font-size: 1.9rem; font-weight: 700; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 11px 15px; cursor: pointer; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; display: flex; gap: 8px; align-items: center; border-radius: 0; }
.tabs button:hover { color: var(--text); border-color: transparent; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs button.active i { color: var(--accent-2); }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 15px; font: inherit; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, transform .06s, box-shadow .12s; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--accent); color: var(--text); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px var(--accent-glow); }
.btn-primary:hover { background: linear-gradient(180deg, #ea6a50, var(--accent-2)); color: #fff; box-shadow: 0 8px 24px -6px var(--accent-glow); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(240, 82, 75, .1); border-color: rgba(240, 82, 75, .45); color: #ff9a94; }
.btn-danger:hover { background: rgba(240, 82, 75, .18); border-color: var(--err); }
.btn-ok { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .45); color: #95f0b5; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 5px 11px; font-size: .82rem; }
.btn-icon { padding: 7px 10px; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
input, select, textarea { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #454b56; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select[multiple] option:checked { background: var(--accent-soft); color: var(--text); }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.field { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0; }
.switch input { appearance: none; width: 40px; height: 22px; background: var(--line-2); border-radius: 22px; position: relative; cursor: pointer; transition: background .15s; flex: none; padding: 0; border: 0; }
.switch input::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: left .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 21px; }
.switch input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .015); }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: rgba(206, 66, 43, .04); }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { color: #95f0b5; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .09); }
.badge.warn { color: #ffd07a; border-color: rgba(245, 185, 59, .35); background: rgba(245, 185, 59, .09); }
.badge.err { color: #ff9a94; border-color: rgba(240, 82, 75, .35); background: rgba(240, 82, 75, .09); }
.badge.info { color: #ffb08f; border-color: rgba(206, 66, 43, .35); background: var(--accent-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.err { background: var(--err); } .dot.warn { background: var(--warn); }

#toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 11px 15px; border-radius: 10px; min-width: 270px; max-width: 440px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: rise .18s ease-out; }
.toast.err { border-left-color: var(--err); } .toast.err i { color: var(--err); }
.toast.ok { border-left-color: var(--ok); } .toast.ok i { color: var(--ok); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 5, 7, .72); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 1500; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; width: min(780px, 100%); padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: rise .18s ease-out; }
.modal.wide { width: min(1200px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(12, 13, 15, .72); border-bottom: 1px solid var(--line); }
.site-nav .inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav .links { display: flex; align-items: center; gap: 22px; }
.site-nav .links a:not(.btn) { color: var(--text-2); font-weight: 500; }
.site-nav .brand { padding: 0; }
.brand span { line-height: 1; padding-top: 2px; }
.site-nav .links a:not(.btn):hover { color: var(--text); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: rgba(243, 169, 59, .08); border: 1px solid rgba(243, 169, 59, .22); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: .005em; margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--accent-2), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; box-shadow: var(--shadow), 0 0 0 1px rgba(206, 66, 43, .08); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(140deg, rgba(206, 66, 43, .6), transparent 45%, rgba(243, 169, 59, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.msg { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg .av { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; }
.msg .who { font-weight: 700; } .msg .who .tag { font-size: .66rem; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.msg .body { background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 9px 12px; margin-top: 6px; color: var(--text-2); font-size: .9rem; }
.stat-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: -10px; position: relative; }
.stat-strip .stat .v { font-size: 1.7rem; }
.section { padding: 70px 0 10px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head p { color: var(--text-2); font-size: 1.02rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: linear-gradient(180deg, var(--panel), #131519); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: rgba(206, 66, 43, .5); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-2); font-size: 1.15rem; margin-bottom: 14px; border: 1px solid rgba(206, 66, 43, .25); }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); margin: 0; font-size: .92rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); opacity: .85; display: block; margin-bottom: 6px; }
.step p { color: var(--text-2); margin: 0; font-size: .92rem; }
.cmd-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmd-cloud code { background: var(--panel); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 8px; color: var(--text-2); font-size: .85rem; }
.cmd-cloud code b { color: var(--accent-2); font-weight: 600; }
.cta-band { margin: 70px 0 0; padding: 44px; border-radius: 18px; text-align: center; background: radial-gradient(600px 200px at 50% 0%, rgba(206, 66, 43, .25), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid rgba(206, 66, 43, .35); }
.cta-band h2 { font-size: 2rem; }
.cta-band p { color: var(--text-2); }
.site-foot { margin-top: 70px; border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--muted); font-size: .85rem; }
.site-foot .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); margin-left: 18px; }

.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.guild-card { background: linear-gradient(180deg, var(--panel), #131519); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; color: var(--text); transition: border-color .15s, transform .15s; }
.guild-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.guild-card img, .guild-card .gi { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.1rem; flex: none; }
.guild-card .name { font-weight: 650; }
.guild-card.invite .gi { background: var(--accent-soft); color: var(--accent-2); border: 1px dashed rgba(206, 66, 43, .45); }

.builder { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 470px; overflow-y: auto; padding-right: 6px; }
.item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px; text-align: center; cursor: pointer; font-size: .7rem; color: var(--muted); transition: border-color .12s, color .12s; }
.item:hover { border-color: var(--accent); color: var(--text); }
.item img { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0 auto 4px; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 10px 0; }
.slot { aspect-ratio: 1; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; }
.slot.filled { background: linear-gradient(180deg, #2a2520, #1d1a17); border-color: #4a3d33; }
.slot img { width: 72%; height: 72%; object-fit: contain; }
.slot .qty { position: absolute; bottom: 2px; right: 5px; font-size: .7rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.slot .rm { position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 50%; background: var(--err); color: #fff; border: 0; padding: 0; font-size: .6rem; display: none; }
.slot:hover .rm { display: inline-flex; }
.container-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

#map { height: calc(100vh - 210px); min-height: 540px; border-radius: var(--radius); border: 1px solid var(--line); background: #243e45; }
.leaflet-container { background: #243e45 !important; font: inherit; }
.leaflet-bar a { background: var(--panel-2) !important; color: var(--text) !important; border-color: var(--line) !important; }
.map-layers { display: flex; gap: 16px; flex-wrap: wrap; }
.map-label { background: rgba(12, 13, 15, .88) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 6px !important; font-size: .72rem !important; padding: 1px 7px !important; box-shadow: none !important; }
.map-label::before { display: none !important; }
.grid-label { color: rgba(255, 255, 255, .45); font-size: 10px; font-weight: 600; white-space: nowrap; width: auto !important; height: auto !important; }
.tp-icon i { color: var(--amber); font-size: 20px; text-shadow: 0 1px 3px #000; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-box { height: 240px; position: relative; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); padding: 36px 10px; }
.empty i { font-size: 2rem; color: var(--line-2); width: auto; margin: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.pill-combo { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.pill-combo .badge + .badge::before { content: "\2192"; margin-right: 4px; color: var(--muted); }
.loader { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 40px; }

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  .g2, .g3, .g4, .builder, .features, .steps { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 16px; }
  .site-nav .links a:not(.btn) { display: none; }
  .hero { padding: 50px 0 40px; }
}

.grid-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.fa-marker { display: flex !important; align-items: center; justify-content: center; background: none; border: 0; }
.fa-marker i { font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 1px #000); }
.fa-marker.zorp i { font-size: 20px; }
.fa-marker.tp i { font-size: 22px; color: var(--amber); }
.fa-legend { display: inline-flex; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.z-online i, .fa-legend.z-online { color: #4ade80; }
.z-pending i, .fa-legend.z-pending { color: #f5b93b; }
.z-offline i, .fa-legend.z-offline { color: #f0524b; }
.fa-legend.tp { color: var(--amber); }
.solo i, .fa-legend.solo { color: #ecebe8; }
.team-0 i, .fa-legend.team-0 { color: #60a5fa; }
.team-1 i, .fa-legend.team-1 { color: #4ade80; }
.team-2 i, .fa-legend.team-2 { color: #f472b6; }
.team-3 i, .fa-legend.team-3 { color: #facc15; }
.team-4 i, .fa-legend.team-4 { color: #22d3ee; }
.team-5 i, .fa-legend.team-5 { color: #c084fc; }
.team-6 i, .fa-legend.team-6 { color: #fb923c; }
.team-7 i, .fa-legend.team-7 { color: #a3e635; }
.team-8 i, .fa-legend.team-8 { color: #2dd4bf; }
.team-9 i, .fa-legend.team-9 { color: #f87171; }

#pace { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .25s; }
#pace.on { opacity: 1; }
#pace .pace-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--amber)); box-shadow: 0 0 10px var(--accent-glow), 0 0 4px var(--accent); transition: width .2s ease-out; border-radius: 0 3px 3px 0; }
.skeleton { display: flex; flex-direction: column; gap: 12px; padding: 6px 0; }
.sk-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-3) 40%, var(--panel) 80%); background-size: 300% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.sk-line:nth-child(2) { width: 92%; } .sk-line:nth-child(3) { width: 78%; } .sk-line:nth-child(4) { width: 64%; }
.sk-line.sk-title { height: 26px; width: 34%; margin-bottom: 6px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.kit-thumb { width: 30px; height: 30px; object-fit: contain; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }

/* ---------- mobile navigation (drawer for the panel, dropdown for public pages) */
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 84vw); height: 100vh; z-index: 1200; transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
  body.nav-open .side { transform: none; box-shadow: 20px 0 50px rgba(0, 0, 0, .55); }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(5, 5, 7, .6); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .topbar { flex-wrap: nowrap; }
  .topbar h1 { font-size: 1.4rem; }
  .userchip > span { display: none; }
  .site-nav .inner { position: relative; }
  .site-nav .links { display: none; }
  .site-nav.open .links { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 16px 16px; background: rgba(17, 19, 22, .98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
  .site-nav.open .links a:not(.btn) { display: block; padding: 10px 12px; border-radius: 8px; }
  .site-nav.open .links a:not(.btn):hover { background: var(--panel); }
  .site-nav.open .links .btn { justify-content: center; }
}

/* ---------- boot splash (static in index.html, replaced by the first page render) */
.boot { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.boot img { width: 80px; height: auto; }
/* Same blink as the server listing site's loader, only ever used on loaders */
.blink { animation: blink .7s ease-in-out infinite; }
@keyframes blink { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation-duration: 2s; } }
.card > .row.between + .table-block, .card > .row.between + .table-wrap, .card > .row.between + .empty { margin-top: 14px; }

/* ---------- kit builder: Rust-style inventory with drag and drop */
.kit-containers { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 14px; }
.kit-container { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 10px; padding: 10px; transition: border-color .15s; }
.kit-container.active { border-color: rgba(206, 66, 43, .55); }
.kit-container-head { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 0 2px 8px; color: var(--text-2); font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.kit-container.active .kit-container-head { color: var(--text); }
.kit-containers .slots { margin: 0; }
.kit-containers .slots-wear { grid-template-columns: repeat(7, 1fr); }
.kit-containers .slot { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: border-color .12s, background .12s, transform .12s; }
.kit-containers .slot.filled { cursor: grab; }
.kit-containers .slot:hover { border-color: var(--line-2); }
.kit-containers .slot.selected { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.kit-containers .slot.drop, .builder .item-grid.drop { border-color: var(--accent); background: rgba(206, 66, 43, .14); }
.kit-containers .slot.drop { transform: scale(1.05); }
.builder .item-grid.drop { outline: 2px dashed var(--accent); outline-offset: -2px; border-radius: 10px; }
.builder .item { user-select: none; -webkit-user-select: none; }
.slot.drag-src, .item.drag-src { opacity: .35; }
.drag-ghost { position: fixed; top: 0; left: 0; width: 60px; height: 60px; z-index: 3000; pointer-events: none; border-radius: 10px; background: rgba(28, 31, 36, .92); border: 1px solid var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.drag-ghost img { width: 44px; height: 44px; object-fit: contain; }
body.dragging, body.dragging * { cursor: grabbing !important; }
.qty-field input { max-width: 140px; }
@media (hover: none) { .kit-containers .slot.filled .rm { display: inline-flex; } }

/* ---------- player list */
.player-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.players-table td { white-space: nowrap; }
.plat { display: inline-flex; width: 18px; justify-content: center; font-size: 1rem; }
.plat-xbox { color: #52b043; }
.plat-playstation { color: #3b82f6; }
.plat-unknown { color: var(--muted); font-size: .85rem; }

/* ---------- table pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.pager:empty { display: none; }
.pager-info { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.pager .pg { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 650; font-size: .85rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.pager .pg:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); }
.pager .pg.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pg:disabled { opacity: .35; cursor: default; }
.pager .pg-gap { color: var(--muted); padding: 0 4px; letter-spacing: .1em; }
.pager-size select { width: auto; height: 34px; padding-top: 0; padding-bottom: 0; font-size: .82rem; }
@media (max-width: 640px) {
  .pager { justify-content: center; }
  .pager-info { width: 100%; text-align: center; order: 2; }
  .pager-size { order: 3; }
}
.modal-cols { margin-top: 14px; align-items: start; }
.modal-cols > div { min-width: 0; }

/* server stats */
.hostname { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 2px 0 14px; color: var(--text-2); overflow-wrap: anywhere; }
.section-title { margin: 22px 0 10px; }
.stats-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.stats-toolbar .grow { flex: 1; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .82rem; padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent); color: #fff; }
.date-in { width: auto; height: 36px; }
.stats-grid { margin-bottom: 6px; }
.stat .sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.stat.good .v { color: #4ade80; }
.stat.warn .v { color: #f5b93b; }
.stat.bad .v { color: #f0524b; }
@media (max-width: 640px) { .stats-toolbar .grow { display: none; } }

/* player pages */
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.player-head h2 { margin: 0; }
.notice { display: flex; align-items: flex-start; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; color: var(--text-2); }
.notice i { color: var(--amber); margin-top: 3px; }
.link-card { max-width: 640px; }
.mono.big { font-size: 1.6rem; letter-spacing: .08em; color: var(--amber); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.shop-card { background: linear-gradient(180deg, var(--panel), #14161a); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-card:hover { border-color: var(--line-2); }
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.shop-head h3 { margin: 0; font-size: 1.1rem; }
.shop-card p { margin: 0; }
.shop-img { width: 56px; height: 56px; object-fit: contain; }
.shop-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.shop-foot .row { flex-wrap: nowrap; gap: 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--amber); }
.price s { color: var(--muted); font-size: .85rem; font-weight: 500; }
.qty-in { width: 58px !important; height: 30px; padding: 2px 6px; }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: .9rem; }
.includes i { color: #4ade80; margin-right: 6px; }
.kit-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-ic { position: relative; width: 44px; height: 44px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.kit-ic img { width: 34px; height: 34px; object-fit: contain; }
.kit-ic em { position: absolute; right: 2px; bottom: 0; font-style: normal; font-size: .65rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.game-tabs { flex-wrap: wrap; margin-bottom: 12px; }
.game-tabs button i { margin-right: 6px; }
.game-stage { display: flex; flex-direction: column; gap: 14px; }
.game-stage .row label.inline { margin: 0; }
.game-stage input[type="number"] { width: 120px; }
.game-result { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.game-result.win { color: #4ade80; }
.game-result.lose { color: #f0524b; }
.reels, .scratch { display: flex; gap: 10px; flex-wrap: wrap; }
.reels span { min-width: 84px; padding: 16px 10px; text-align: center; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.scratch { display: grid; grid-template-columns: repeat(3, 70px); }
.scratch span { padding: 14px 0; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--muted); }
.scratch span.hit { color: #4ade80; border-color: #4ade80; }
.bj { display: flex; flex-direction: column; gap: 12px; }
.cards { display: flex; gap: 6px; margin-top: 4px; }
.pcard { width: 46px; height: 64px; display: inline-flex; align-items: center; justify-content: center; background: #ecebe8; color: #16181c; border-radius: 7px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pcard.red { color: #d12a2a; }
.pcard.back { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 6px, #a8331f 6px, #a8331f 12px); color: transparent; }
.crash-mult { font-family: var(--display); font-weight: 700; font-size: 3.2rem; color: #4ade80; line-height: 1; }
.crash-mult.crashed { color: #f0524b; }
.bp-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-progress .bar, .mini-bar { flex: 1; min-width: 160px; height: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; position: relative; }
.bp-progress .bar span, .mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); }
.mini-bar { height: 18px; min-width: 140px; }
.mini-bar em { position: absolute; inset: 0; font-style: normal; font-size: .72rem; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 2px #000; }
.bp-grid { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.bp-row { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; align-items: stretch; }
.bp-row.labels span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.bp-tier { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: var(--muted); }
.bp-row.reached .bp-tier { color: var(--amber); }
.bp-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: .85rem; min-width: 0; }
.bp-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-cell.empty { background: none; border-style: dashed; }
.bp-cell.ready { border-color: var(--amber); color: var(--text); }
.bp-cell.ready i { color: var(--amber); }
.bp-cell.claimed { opacity: .55; }
.bp-cell.claimed i { color: #4ade80; }
.bp-cell.locked { color: var(--muted); }
.copy-row { display: flex; gap: 8px; } .copy-row input { flex: 1; min-width: 0; }

/* server cards */
.srv-summary { display: flex; gap: 18px; color: var(--muted); }
.srv-summary b { color: var(--text); font-family: var(--display); font-size: 1.2rem; margin-right: 3px; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.srv-card { position: relative; background: linear-gradient(180deg, var(--panel), #131519); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; min-width: 0; }
.srv-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--line-2); }
.srv-card.up::before { background: #4ade80; }
.srv-card.wait::before { background: #f5b93b; }
.srv-card.down::before { background: #f0524b; }
.srv-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.srv-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.srv-title h3 { margin: 0; font-size: 1.35rem; }
.srv-region { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.srv-state { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.srv-state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.srv-state.up { color: #4ade80; }
.srv-state.up .dot { box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.srv-state.wait { color: #f5b93b; }
.srv-state.down { color: #f0524b; }
.srv-host { font-size: .92rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.srv-metric { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srv-metric .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.srv-metric .k i { margin-right: 4px; }
.srv-metric b { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.srv-metric.good b { color: #4ade80; }
.srv-metric.warn b { color: #f5b93b; }
.srv-metric.bad b { color: #f0524b; }
.srv-spark { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px 6px; }
.spark { width: 100%; height: 44px; display: block; }
.srv-spark-meta { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.srv-error { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #fca5a5; background: rgba(240, 82, 75, .08); border: 1px solid rgba(240, 82, 75, .25); border-radius: 8px; padding: 6px 10px; }
.srv-error.warn { color: #ffd07a; background: rgba(245, 185, 59, .08); border-color: rgba(245, 185, 59, .25); }
.srv-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 460px) { .srv-grid { grid-template-columns: 1fr; } .srv-metrics { grid-template-columns: repeat(2, 1fr); } }

/* dashboard guild cards */
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 14px; }
.gc { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), #131519); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.gc:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(206, 66, 43, .35); }
.gc-banner { height: 76px; background: linear-gradient(135deg, #3a1a14, #1b1d22); background-size: cover; background-position: center; position: relative; }
.gc-banner::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(18px) saturate(1.3); background: linear-gradient(180deg, rgba(12, 13, 15, .15), rgba(12, 13, 15, .75)); }
.gc-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.gc-avatar { width: 64px; height: 64px; border-radius: 16px; margin-top: -32px; position: relative; z-index: 1; border: 3px solid #16181c; background: var(--panel-3); object-fit: cover; }
.gc-avatar.gi { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.gc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.gc-name h3 { margin: 0; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-role { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.gc-role.owner { color: #f3a93b; border-color: rgba(243, 169, 59, .4); background: rgba(243, 169, 59, .08); }
.gc-role.admin { color: #f0524b; border-color: rgba(240, 82, 75, .4); background: rgba(240, 82, 75, .08); }
.gc-role.mod { color: #60a5fa; border-color: rgba(96, 165, 250, .4); background: rgba(96, 165, 250, .08); }
.gc-role.player { color: #4ade80; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .07); }
.gc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gc-stats div { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 9px; padding: 8px; text-align: center; }
.gc-stats b { display: block; font-family: var(--display); font-size: 1.2rem; }
.gc-stats span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gc-cta { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .85rem; color: var(--accent-2); padding-top: 10px; border-top: 1px solid var(--line); }
.gc.invite { border-style: dashed; }
.gc.invite .gc-banner { filter: grayscale(.7); }
.gc.invite .gc-cta { justify-content: flex-start; gap: 8px; }

/* live map extras */
.fa-marker.vend i, .fa-legend.vend { color: #4ade80; }
.fa-marker.npcshop i, .fa-legend.npcshop { color: #22d3ee; }
.fa-legend.heat { color: #f97316; }
.key-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1.5px solid #140c06; }
.key-dot.tc { background: #f97316; }
.key-dot.itc { background: #c084fc; }
.map-key { background: rgba(17, 19, 22, .92) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; color: var(--text-2); font: 500 .8rem var(--font); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .4) !important; }
.map-key-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text); font: 700 .78rem var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 7px 11px; cursor: pointer; width: 100%; }
.map-key-list { display: none; padding: 10px 12px 4px; flex-direction: column; gap: 6px; }
.map-key-list > div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.map-key-list > div > span { width: 16px; display: inline-flex; justify-content: center; }
.map-key.open .map-key-list { display: flex; }
.map-key.open .map-key-btn { border-top: 1px solid var(--line); }

.ent-marker { display: flex !important; align-items: center; justify-content: center; background: none; border: 0; }
.ent-marker img { width: calc(100% * var(--ms, 1)); height: calc(100% * var(--ms, 1)); object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .95)) drop-shadow(0 0 1px #000); }
.ent-marker i { font-size: calc(18px * var(--ms, 1)); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .95)); }
.ent-marker.industrial img { filter: drop-shadow(0 0 3px #c084fc) drop-shadow(0 1px 2px #000); }
.key-ent { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.key-ent img { width: 18px; height: 18px; object-fit: contain; }
.map-key-list .key-head { margin-top: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.map-key-list { max-height: min(60vh, 520px); overflow-y: auto; }

.ent-c-patrol { color: #f0524b; }
.ent-c-chinook { color: #f97316; }
.ent-c-cargoship { color: #38bdf8; }
.ent-c-cargoplane { color: #e2e8f0; }
.ent-c-tugboat { color: #fbbf24; }
.ent-c-snowmobile { color: #bae6fd; }
.ent-c-car { color: #a3e635; }
.ent-c-shop { color: #22d3ee; }

/* monument labels + map mode switch */
.mon-label { background: none; border: 0; }
@font-face { font-family: "Heavy Rust"; src: url("/fonts/heavyrust.ttf") format("truetype"); font-display: swap; }
.mon-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: "Heavy Rust", var(--display); font-size: 17px; color: #fff; text-shadow: 2px 0 0 #000, 0 2px 0 #000, 2px 2px 0 #000, 0 0 3px rgba(0, 0, 0, .7); }
.map-mode { display: flex; background: rgba(17, 19, 22, .92) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; padding: 3px; gap: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4) !important; }
.map-mode button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: 7px; color: var(--muted); font: 700 .75rem var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; cursor: pointer; }
.map-mode button:hover { color: var(--text); }
.map-mode button.active { background: var(--accent); color: #fff; }

.hours-box { margin: 12px 0 6px; padding: 12px 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.hours-box .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.hours-box .big-num { font-family: var(--display); font-size: 1.4rem; }

/* platform admin */
.tabs a { color: var(--muted); padding: 11px 15px; font-weight: 600; border-bottom: 2px solid transparent; display: flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a.active i { color: var(--accent-2); }
.adm .tabs { margin-top: 22px; }
.adm .card { margin-top: 16px; }
.adm-search { width: 320px; max-width: 100%; }
.adm-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-gi { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; }
.adm-gi.round { border-radius: 50%; }
.adm-gi.blank { display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); border: 1px solid var(--line-2); font-size: .72rem; font-weight: 700; color: var(--text-2); }
.adm-mini { margin: 14px 0; }
.adm-mini .stat .v { font-size: 1.3rem; }
.row.nowrap { flex-wrap: nowrap; }
.announce { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; margin: 12px 0; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.announce.info i { color: var(--accent-2); }
.announce.warn { border-color: rgba(245, 185, 59, .35); background: rgba(245, 185, 59, .08); }
.announce.warn i { color: #ffd07a; }
.nav-stack { position: sticky; top: 0; z-index: 50; }
.nav-stack .site-nav { position: static; }
@media (max-width: 760px) { .adm-search { width: 100%; } .row.nowrap { flex-wrap: wrap; } }

.page-loader { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.page-loader img { width: 64px; height: auto; }

/* push + pwa */
.push-prefs { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.page-loader.small { min-height: 120px; }
.page-loader.small img { width: 44px; }
.notice.row.between { align-items: center; }
.offline { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.offline img { width: 72px; height: auto; opacity: .9; }
.offline p { max-width: 420px; }

/* smart devices */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.device { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.device.on { border-color: rgba(74, 222, 128, .45); box-shadow: 0 0 0 1px rgba(74, 222, 128, .15), 0 10px 30px -18px rgba(74, 222, 128, .6); }
.device-top { display: flex; align-items: center; gap: 12px; }
.device-ic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); color: var(--muted); font-size: 1.1rem; flex: none; }
.device.on .device-ic { color: #95f0b5; background: rgba(74, 222, 128, .1); }
.device-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.device-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-actions { display: flex; gap: 8px; }
.device-actions > button:first-child { flex: 1; }
.group-chip { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 12px; }
