@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/saira-condensed/files/saira-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 900; font-display: swap; src: url('/vendor/fonts/saira-condensed/files/saira-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/saira/files/saira-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/saira/files/saira-latin-700-normal.woff2') format('woff2'); }
:root { --bg: #05070e; --panel: #0c1222; --panel2: #111a30; --line: rgba(255, 255, 255, 0.09); --text: #e9eeff; --muted: #93a1c6; --gold: #ffd23f; --good: #5fe08a; --bad: #ff6b6b; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.5 'Saira', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, .brand, .pill, .btn, .cond { font-family: 'Saira Condensed', 'Saira', sans-serif; text-transform: uppercase; }
h2 { margin: 0 0 6px; font-weight: 900; font-size: clamp(30px, 7vw, 44px); line-height: 1; letter-spacing: 0.5px; text-wrap: balance; }
h3 { margin: 28px 0 10px; font-weight: 900; font-size: 24px; letter-spacing: 1px; }
.lead { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(100% - 32px, 980px); margin: 0 auto; padding: 44px 0 8px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(5, 7, 14, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: 4px; text-decoration: none; margin-right: auto; white-space: nowrap; min-width: 0; }
.brand img { flex: none; }
.pill { font-weight: 700; font-size: 14px; letter-spacing: 2px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.pill:empty { visibility: hidden; }   /* nothing to say until the first data arrives */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: var(--text); font-weight: 900; font-size: 16px; letter-spacing: 1.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.solid { background: var(--gold); border-color: var(--gold); color: #05070e; }
.btn:hover { border-color: #fff; } .btn.solid:hover { filter: brightness(1.08); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#hero { position: relative; height: min(86svh, 820px); min-height: 480px; overflow: hidden; touch-action: pan-y; }
#globe { position: absolute; inset: 0; cursor: grab; } #globe:active { cursor: grabbing; }
#globe canvas { display: block; }
.heroText { position: absolute; left: 0; right: 0; top: 18px; text-align: center; pointer-events: none; padding: 0 16px; }
.heroText h1 { margin: 0; font-weight: 900; font-size: clamp(34px, 9vw, 68px); line-height: 0.95; text-shadow: 0 4px 24px #000; text-wrap: balance; }
.count { margin: 8px 0 0; font-family: 'Saira Condensed', sans-serif; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-size: clamp(15px, 4vw, 20px); text-shadow: 0 2px 10px #000; font-variant-numeric: tabular-nums; }
.hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 1px; pointer-events: none; transition: opacity 0.4s; }
.sheet { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 24px, 420px); padding: 14px 16px; border-radius: 16px; background: rgba(12, 18, 34, 0.94); border: 1px solid var(--line); border-left: 5px solid var(--c, #5b6788); }
.sheet h3 { margin: 0; font-size: 26px; } .sheet p { margin: 4px 0 0; color: var(--muted); font-size: 14px; } .sheet b { color: var(--text); }
.sheet .x { position: absolute; right: 6px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 7px 12px 8px; border-radius: 10px; background: rgba(8, 12, 24, 0.94); border: 1px solid rgba(255, 255, 255, 0.22); white-space: nowrap; }
.tip b { display: block; font-size: 15px; } .tip span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.5px; } .tip i { font-style: normal; font-weight: 700; }
.sheet .lands { font-size: 12px; }
.mePin { position: absolute; left: 0; top: 0; pointer-events: none; padding: 4px 10px; border-radius: 10px; background: var(--gold); color: #05070e; font-weight: 700; font-size: 13px; white-space: nowrap; transform: translate(-50%, -130%); }
.mePin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }

.find { display: flex; gap: 8px; } .find input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 16px 'Saira', sans-serif; }
.card { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--gold)); }
.card .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .card .who b { font-size: 22px; overflow-wrap: anywhere; } .card .who span { color: var(--c); font-family: 'Saira Condensed', sans-serif; font-weight: 900; letter-spacing: 1.5px; font-size: 20px; }
.card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: 12px 0 0; } .card dt { color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; } .card dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.xpbar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); margin-top: 12px; overflow: hidden; } .xpbar i { display: block; height: 100%; background: var(--c); border-radius: 5px; }
.card small { color: var(--muted); display: block; margin-top: 6px; }

.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.side { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.side.off { opacity: 0.6; }
.side header { display: flex; align-items: center; gap: 10px; color: var(--c); } .side header h3 { margin: 0; font-size: 30px; line-height: 1; }
.side .motto { margin: 6px 0 2px; font-weight: 700; } .side .bio { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.side .nums { display: flex; gap: 18px; font-variant-numeric: tabular-nums; } .side .nums div { display: flex; flex-direction: column; } .side .nums b { font-family: 'Saira Condensed', sans-serif; font-weight: 900; font-size: 30px; line-height: 1; } .side .nums span { color: var(--muted); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.side .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin: 12px 0 10px; overflow: hidden; } .side .bar i { display: block; height: 100%; background: var(--c); }
.side .trait { margin: 0; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--c, #5b6788); color: #05070e; font-family: 'Saira Condensed', sans-serif; font-weight: 900; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.tag.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.live { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; color: var(--muted); font-size: 14px; } .live b { color: var(--text); font-variant-numeric: tabular-nums; }
.battles, .toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.battles li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.battles .res { font-family: 'Saira Condensed', sans-serif; font-weight: 900; letter-spacing: 1px; font-size: 15px; } .battles .res.win { color: var(--good); } .battles .res.held { color: var(--muted); }
.battles .txt { min-width: 0; } .battles .txt small { display: block; color: var(--muted); font-size: 12px; }
.area { margin: 18px 0 8px; color: var(--muted); font-family: 'Saira Condensed', sans-serif; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 15px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rg { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c, #5b6788); text-align: left; color: inherit; font: inherit; cursor: pointer; }
.rg:hover { background: var(--panel2); } .rg b { font-family: 'Saira Condensed', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 0.5px; text-transform: uppercase; } .rg span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.toplist li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.toplist .n { font-family: 'Saira Condensed', sans-serif; font-weight: 900; font-size: 22px; color: var(--gold); } .toplist .u { min-width: 0; overflow-wrap: anywhere; } .toplist .u small { display: block; color: var(--muted); font-size: 12px; } .toplist .xp { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; } .toplist .xp small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.story p { margin: 0 0 8px; font-size: 18px; max-width: 56ch; } .story { margin-bottom: 34px; }
.rules { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 70ch; } .rules b { color: var(--gold); }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; } .ranks div { padding: 8px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); } .ranks b { display: block; color: var(--text); font-family: 'Saira Condensed', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: 1px; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 40px 0 34px; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 480px) { .top { gap: 8px; padding: 10px 12px; } .top .btn { padding: 0 10px; font-size: 13px; letter-spacing: 1px; min-height: 36px; } .brand { font-size: 14px; letter-spacing: 1px; gap: 7px; } .brand img { width: 24px; height: 24px; } .brand span { overflow: hidden; text-overflow: ellipsis; } .pill { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
