/* ---------- Tokens ---------- */
:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --panel: #131519;
  --panel-2: #181b20;
  --line: #24272d;
  --line-2: #323640;
  --text: #ececee;
  --muted: #9a9da5;
  --faint: #656872;
  --green: #49a026;
  --green-hi: #6fcf2a;
  --green-lo: #1b2d16;
  --red: #d4524f;
  --gold: #e3b341;
  --silver: #b9c0cc;
  --bronze: #c98558;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cut: 10px;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); min-width: 320px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }
::selection { background: var(--green); color: #fff; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--green); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow { font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--green-hi); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 24px;
  font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #07130a; }
.btn-primary:hover { background: var(--green-hi); }
.btn-ghost { background: #1d2026; color: var(--text); }
.btn-ghost:hover { background: #272b33; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Avatar / skins ---------- */
.avatar {
  --s: 32px; position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--s); height: var(--s);
  background: #1b1e24; overflow: hidden; border-radius: 3px;
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar.no-img::after { content: attr(data-initial); font: 700 calc(var(--s) * .5)/1 var(--display); color: var(--muted); text-transform: uppercase; }
.skin-body { display: block; height: 100%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 13, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; height: var(--header-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { display: block; }
.brand-word { font: 800 24px/1 var(--display); letter-spacing: .14em; padding-top: 2px; }

.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 6px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; font: 600 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--green); }
.main-nav .nav-discord { color: #8f99ff; }
.main-nav .nav-discord:hover { color: #b3baff; }

.header-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 360px; height: 42px; margin-left: auto; padding: 0 6px 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s; }
.header-search:focus-within { border-color: var(--green); }
.header-search > .icon { color: var(--faint); width: 17px; height: 17px; }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.header-search input::placeholder { color: var(--faint); }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button[type="submit"] { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px; color: var(--muted); }
.header-search button[type="submit"]:hover { background: var(--green); color: #07130a; }

.suggestions { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 60; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.suggestions[hidden] { display: none; }
.suggestion { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 4px; text-align: left; font-weight: 500; }
.suggestion:hover, .suggestion.is-active { background: #232730; }
.suggestion small { margin-left: auto; color: var(--faint); font-size: 12px; }
.suggestion .suggestion-go { display: grid; place-items: center; width: 28px; height: 28px; background: var(--green-lo); color: var(--green-hi); border-radius: 3px; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.ip-button { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; background: var(--green-lo); border: 1px solid #2c4a20; border-radius: 4px; color: #bfe9a3; font: 500 14px/1 var(--mono); transition: background .15s, border-color .15s; }
.ip-button:hover { background: #223a1a; border-color: var(--green); }
.ip-button .icon-copy { width: 15px; height: 15px; opacity: .7; }

.lang { position: relative; }
.lang-button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font: 700 15px/1 var(--display); letter-spacing: .08em; transition: border-color .15s; }
.lang-button:hover, .lang-button[aria-expanded="true"] { border-color: var(--line-2); background: var(--panel-2); }
.lang-button .icon { width: 17px; height: 17px; color: var(--muted); }
.lang-button .icon-chevron { width: 14px; height: 14px; transition: transform .15s; }
.lang-button[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.lang-menu[hidden] { display: none; }
.lang-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 4px; text-align: left; }
.lang-option:hover, .lang-option:focus-visible { background: #232730; outline: 0; }
.lang-option .code { display: grid; place-items: center; width: 34px; height: 24px; background: #0e1013; border: 1px solid var(--line-2); border-radius: 3px; font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.lang-option .names { display: grid; line-height: 1.2; }
.lang-option .names b { font-weight: 600; font-size: 15px; }
.lang-option .names small { color: var(--faint); font-size: 12px; }
.lang-option .icon { margin-left: auto; width: 16px; height: 16px; color: var(--green-hi); opacity: 0; }
.lang-option[aria-selected="true"] .icon { opacity: 1; }
.lang-option[aria-selected="true"] .code { border-color: var(--green); color: var(--green-hi); }

.profile-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); overflow: hidden; transition: border-color .15s, color .15s; }
.profile-button:hover { border-color: var(--green); color: var(--text); }
.profile-button .avatar { --s: 40px; border-radius: 0; }
.profile-button.has-profile { border-color: #2c4a20; }
.profile-icon { width: 22px; height: 22px; }

.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }

/* ---------- Hero ---------- */
.app-view { min-height: 60vh; outline: 0; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 82% 20%, rgba(73,160,38,.16), transparent 70%),
  radial-gradient(40% 50% at 8% 100%, rgba(73,160,38,.07), transparent 70%),
  linear-gradient(180deg, #0c0e11, var(--bg)); }
.hero-bg::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 90% at 70% 30%, #000, transparent 85%); mask-image: radial-gradient(70% 90% at 70% 30%, #000, transparent 85%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-mark { position: absolute; right: -6%; top: 50%; width: min(58vw, 640px); transform: translateY(-50%) rotate(-4deg); opacity: .07; filter: grayscale(.2); pointer-events: none; user-select: none; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-hi); flex: 0 0 auto; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green-hi); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { font: 800 clamp(64px, 9vw, 116px)/.86 var(--display); letter-spacing: -.005em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: normal; color: var(--green-hi); }
.hero-lead { max-width: 520px; margin-top: 22px; font-size: 18px; color: var(--muted); }

.ip-box { display: flex; align-items: stretch; width: min(100%, 460px); margin-top: 32px; background: var(--panel); border: 1px solid var(--line-2); }
.ip-box-text { display: grid; flex: 1; min-width: 0; padding: 12px 18px; }
.ip-box-text small { font: 600 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ip-box-text code { font: 700 28px/1.2 var(--mono); letter-spacing: .02em; color: #fff; }
.ip-box .btn { --h: auto; align-self: stretch; padding: 0 22px; clip-path: none; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-meta .sep { width: 1px; height: 14px; background: var(--line-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Podium */
.podium-card { position: relative; padding: 22px 22px 0; background: linear-gradient(180deg, rgba(24,27,32,.9), rgba(16,18,22,.9)); border: 1px solid var(--line-2); }
.podium-card::before, .podium-card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--green); }
.podium-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.podium-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.podium-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.podium-head h2 { font: 700 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.podium-head { align-items: center; }
.podium-nav { display: flex; gap: 6px; }
.podium-nav button { display: grid; place-items: center; width: 34px; height: 34px; background: #1d2026; border: 1px solid var(--line-2); color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.podium-nav button:hover { background: var(--green); border-color: var(--green); color: #07130a; }
.podium-nav button:first-child .icon { transform: rotate(180deg); }
.podium-nav .icon { width: 16px; height: 16px; }
.podium.swap { animation: podium-in .28s ease-out; }
@keyframes podium-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 10px; margin-top: 14px; }
.podium-slot { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.podium-skin { height: 168px; display: flex; align-items: flex-end; }
.podium-slot[data-pos="1"] .podium-skin { height: 208px; }
.podium-name { max-width: 100%; margin-top: 10px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 19px/1.1 var(--display); letter-spacing: .04em; }
.podium-rating { margin-bottom: 10px; font: 500 13px/1.2 var(--mono); color: var(--muted); }
.podium-base { display: grid; place-items: center; width: 100%; border: 1px solid var(--line-2); border-bottom: 0; background: linear-gradient(180deg, #20242b, #171a1f); font: 800 38px/1 var(--display); color: #3a3f4a; }
.podium-slot[data-pos="1"] .podium-base { height: 74px; color: var(--gold); border-color: #5b4a1c; background: linear-gradient(180deg, #2a2412, #181710); }
.podium-slot[data-pos="2"] .podium-base { height: 52px; color: var(--silver); }
.podium-slot[data-pos="3"] .podium-base { height: 38px; color: var(--bronze); }
.podium-empty { padding: 60px 0 70px; text-align: center; color: var(--faint); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.stat-strip div { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-left: 1px solid var(--line); }
.stat-strip div:first-child { border-left: 0; }
.stat-strip dt { font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.stat-strip dd { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: .02em; }
.stat-strip dd small { font-size: 18px; color: var(--faint); font-weight: 600; }
.strip-wrap { position: relative; z-index: 2; margin-top: -40px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font: 800 clamp(34px, 4.4vw, 48px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.section-head p { margin-top: 10px; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font: 700 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--green-hi); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Mode tiles */
.mode-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mode-tile { position: relative; display: flex; flex-direction: column; flex: 0 0 calc((100% - 42px) / 4); min-height: 250px; padding: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background .2s; }
.mode-tile::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; background: radial-gradient(closest-side, rgba(73,160,38,.14), transparent); opacity: 0; transition: opacity .25s; }
.mode-tile:hover { border-color: #2f5a20; background: var(--panel-2); transform: translateY(-2px); }
.mode-tile:hover::before { opacity: 1; }
.mode-num { font: 600 14px/1 var(--mono); color: var(--faint); }
.mode-art { margin: 18px 0 14px; width: max-content; }
.sprite { display: block; }
.sprite .px-a { fill: var(--green-hi); }
.sprite .px-b { fill: #4c9a22; }
.sprite .px-c { fill: #2a5a16; }
.mode-tile strong { font: 800 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.mode-tile p { margin-top: 8px; max-width: 360px; font-size: 15px; color: var(--muted); }
.mode-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--faint); }
.mode-foot b { color: var(--text); font-weight: 600; }
.mode-foot .icon { width: 16px; height: 16px; color: var(--green-hi); transition: transform .2s; }
.mode-tile:hover .mode-foot .icon { transform: translate(2px, -2px); }

/* ---------- Leaderboard ---------- */
.board { background: var(--panel); border: 1px solid var(--line); }
.board-scroll { overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; min-width: 560px; }
.board th { padding: 14px 16px; text-align: left; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); background: #101216; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background .12s; }
.board tbody tr:hover { background: #171a1f; }
.board .num { text-align: right; }
.board .pos { width: 64px; font: 800 24px/1 var(--display); color: var(--faint); }
.board tr.top-1 .pos { color: var(--gold); }
.board tr.top-2 .pos { color: var(--silver); }
.board tr.top-3 .pos { color: var(--bronze); }
.board tr.top-1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.board tr.top-2 td:first-child { box-shadow: inset 3px 0 0 var(--silver); }
.board tr.top-3 td:first-child { box-shadow: inset 3px 0 0 var(--bronze); }
.player-cell { display: inline-flex; align-items: center; gap: 12px; font: 700 20px/1 var(--display); letter-spacing: .03em; }
.player-cell:hover { color: var(--green-hi); }
.rating-cell { font: 700 22px/1 var(--display); letter-spacing: .02em; }
.winrate { display: inline-flex; align-items: center; gap: 10px; min-width: 120px; }
.winrate-bar { flex: 1; height: 4px; background: #262a31; }
.winrate-bar i { display: block; height: 100%; background: var(--green); }
.winrate span { min-width: 44px; text-align: right; font-size: 14px; color: var(--muted); }
.rank-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; color: var(--muted); background: rgba(255,255,255,.03); white-space: nowrap; }
.rank-founder { color: #ff6b66; background: rgba(255,107,102,.08); }
.rank-mythic { color: var(--gold); background: rgba(227,179,65,.08); }
.rank-champion { color: var(--green-hi); background: rgba(111,207,42,.08); }
.rank-rival { color: #8ec5ff; background: rgba(142,197,255,.08); }
.board-empty { padding: 48px 16px; text-align: center; color: var(--faint); }

/* ---------- Join + Discord ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--panel); }
.step { position: relative; padding: 30px 30px 32px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-num { font: 800 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px #2f5a20; }
.step h3 { margin-top: 12px; font: 700 24px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.step-ip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 10px; background: #0e1013; border: 1px solid var(--line-2); font: 500 14px/1 var(--mono); color: #bfe9a3; }
.step-ip:hover { border-color: var(--green); }
.step-ip .icon { width: 14px; height: 14px; }

.discord-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 84px; padding: 38px 40px; overflow: hidden; background: #14162a; border: 1px solid #2c3169; }
.discord-band::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(88,101,242,.35), transparent); }
.discord-band h2 { position: relative; font: 800 clamp(30px, 3.6vw, 42px)/1.05 var(--display); text-transform: uppercase; }
.discord-band p { position: relative; margin-top: 8px; color: #a9afdc; }
.discord-band .btn { position: relative; }

/* ---------- Page heads / tabs ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { margin-top: 12px; font: 800 clamp(44px, 6vw, 68px)/.95 var(--display); text-transform: uppercase; }
.page-head p { margin-top: 12px; max-width: 560px; color: var(--muted); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; background: #1d2026; border: 1px solid var(--line-2); font: 600 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; height: 42px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line); font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.tab .sprite { width: 18px; height: 18px; }
.tab .sprite .px-a, .tab .sprite .px-b, .tab .sprite .px-c { fill: currentColor; }
.tab .sprite .px-b { opacity: .7; } .tab .sprite .px-c { opacity: .45; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: #07130a; background: var(--green); border-color: var(--green); }
.page-bottom { padding-bottom: 96px; }

/* ---------- Profile ---------- */
.profile-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.profile-banner { position: absolute; inset: 0; z-index: -1; --a: #1c2026; --b: #0f1114;
  background: radial-gradient(60% 120% at 85% 0%, var(--a), transparent 70%), linear-gradient(180deg, var(--b), var(--bg)); }
.profile-banner::before { content: ""; position: absolute; inset: 0; opacity: .7;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 22px); }
.profile-hero.theme-forest .profile-banner { --a: #1f4015; --b: #0c140a; }
.profile-hero.theme-dusk .profile-banner { --a: #2e2347; --b: #110d1b; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px; min-height: 300px; padding-top: 40px; }
.skin-stage { position: relative; display: flex; align-items: flex-end; height: 260px; padding: 0 26px; }
.skin-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); opacity: .7; }
.skin-stage .skin-body { height: 244px; }
.skin-stage.no-img::before { content: attr(data-initial); position: absolute; inset: 0 0 12px; display: grid; place-items: center; font: 800 96px/1 var(--display); color: #2a2e36; }
.profile-id { padding-bottom: 34px; min-width: 0; }
.profile-id h1 { margin-top: 10px; font: 800 clamp(46px, 7vw, 84px)/.9 var(--display); letter-spacing: .01em; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.chip-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.chip-verified .icon { width: 16px; height: 16px; color: var(--green-hi); }
.bio { max-width: 520px; margin-top: 14px; color: var(--muted); }
.bio-empty { color: var(--faint); font-style: italic; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; padding-bottom: 34px; }
.profile-actions .btn { --h: 40px; font-size: 15px; padding: 0 18px; }

.profile-body { padding: 36px 0 96px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); }
.stat-card span { display: block; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.stat-card strong { display: block; margin-top: 12px; font: 800 40px/1 var(--display); letter-spacing: .01em; }
.stat-card strong small { font-size: 22px; color: var(--muted); font-weight: 700; }
.stat-card.accent { border-color: #2c4a20; background: linear-gradient(180deg, #17261a, var(--panel)); }
.stat-card.accent strong { color: var(--green-hi); }

.panel { padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel-title h2 { font: 700 20px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.panel-title span { font-size: 13px; color: var(--faint); }

.record-nums { display: flex; justify-content: space-between; align-items: baseline; }
.record-nums b { font: 800 44px/1 var(--display); }
.record-nums small { display: block; margin-top: 4px; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.record-nums .loss { text-align: right; color: var(--red); }
.record-nums .win { color: var(--green-hi); }
.record-bar { display: flex; height: 8px; margin-top: 16px; background: #2a1a1a; }
.record-bar i { display: block; background: var(--green); }

.weekly { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; height: 150px; }
.weekly div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.weekly i { display: block; width: 100%; min-height: 4px; background: #2a3a24; transition: background .15s; }
.weekly div:last-child i { background: var(--green); }
.weekly div:hover i { background: var(--green-hi); }
.weekly span { font: 600 13px/1 var(--display); letter-spacing: .1em; color: var(--faint); }

.matches { display: grid; }
.match { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.match:first-child { border-top: 0; padding-top: 0; }
.match-result { display: grid; place-items: center; width: 34px; height: 34px; font: 800 18px/1 var(--display); }
.match-result.win { background: var(--green-lo); color: var(--green-hi); border: 1px solid #2c4a20; }
.match-result.loss { background: #2a1717; color: var(--red); border: 1px solid #4a2525; }
.match-info { display: grid; min-width: 0; line-height: 1.25; }
.match-info b { font: 700 18px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.match-info span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.match-info .avatar { --s: 16px; border-radius: 2px; }
.match time { font: 500 13px/1 var(--mono); color: var(--faint); }

.sample-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- Store ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.store-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; background: var(--panel); border: 1px solid var(--line); --accent: var(--silver); }
.store-card[data-accent="green"] { --accent: var(--green-hi); }
.store-card[data-accent="gold"] { --accent: var(--gold); }
.store-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--accent); }
.store-card.featured { background: linear-gradient(180deg, #16231a, var(--panel) 55%); border-color: #2f5a20; transform: translateY(-10px); padding-bottom: 38px; }
.store-badge { position: absolute; top: 18px; right: 18px; padding: 5px 10px; background: var(--green); color: #07130a; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.store-card h2 { font: 800 40px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.store-card > p { margin-top: 10px; min-height: 48px; color: var(--muted); font-size: 15px; }
.store-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 20px; font: 800 44px/1 var(--display); }
.store-price span { font: 500 14px/1 var(--body); color: var(--faint); }
.perks { display: grid; gap: 12px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.perks li { display: flex; align-items: flex-start; gap: 10px; }
.perks .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.store-card .btn { margin-top: auto; width: 100%; }
.note { margin-top: 28px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); font-size: 14px; color: var(--muted); }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 11px 14px; border-left: 2px solid var(--line); font: 600 16px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-nav a:hover { color: var(--text); border-color: var(--line-2); }
.legal-nav a.active { color: var(--text); border-color: var(--green); background: linear-gradient(90deg, rgba(73,160,38,.1), transparent); }
.legal-article h1 { margin-top: 12px; font: 800 clamp(44px, 6vw, 68px)/.95 var(--display); text-transform: uppercase; }
.legal-article > .lead { margin-top: 14px; max-width: 620px; font-size: 18px; color: var(--muted); }
.legal-sections { margin-top: 40px; border-top: 1px solid var(--line); }
.legal-section { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-index { font: 700 20px/1.4 var(--mono); color: var(--green); }
.legal-section h2 { font: 700 26px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.legal-section p { margin-top: 8px; max-width: 640px; color: var(--muted); }
.legal-extra { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--green-hi); font-weight: 600; }
.legal-extra .icon { width: 16px; height: 16px; }

/* ---------- States ---------- */
.state { display: grid; justify-items: center; gap: 12px; padding: 90px 20px; text-align: center; }
.state .icon { width: 34px; height: 34px; color: var(--faint); }
.state h2 { font: 800 36px/1 var(--display); text-transform: uppercase; }
.state p { max-width: 420px; color: var(--muted); }
.state .btn { margin-top: 10px; }
.notfound-code { font: 800 clamp(110px, 20vw, 200px)/.8 var(--display); color: transparent; -webkit-text-stroke: 2px #2f5a20; }
.skeleton { background: linear-gradient(90deg, #14171b 25%, #1b1f25 50%, #14171b 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Dialog ---------- */
.login-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.login-dialog::backdrop { background: rgba(4, 5, 6, .72); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-title { font: 700 22px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; color: var(--muted); }
.icon-button:hover { background: #232730; color: var(--text); }
.account-content { padding: 20px; display: grid; gap: 18px; }
.account-content p { color: var(--muted); font-size: 15px; }
.account-content label, .account-content legend { display: block; margin-bottom: 8px; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.account-content input[type="text"], .account-content input:not([type]), .account-content textarea, .verify-input-row input { width: 100%; padding: 12px 14px; background: #0e1013; border: 1px solid var(--line-2); border-radius: 4px; outline: 0; }
.account-content textarea { resize: vertical; min-height: 80px; }
.account-content input:focus, .account-content textarea:focus { border-color: var(--green); }
.verify-input-row { display: flex; gap: 10px; }
.verify-input-row .btn { --h: 46px; }
.dialog-help, .verify-message { font-size: 13px !important; color: var(--faint) !important; }
.verify-message.error, .error-text { color: var(--red) !important; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 14px; background: #0e1013; border: 1px solid var(--line); }
.account-summary .avatar { --s: 52px; }
.account-summary div { display: grid; line-height: 1.25; }
.account-summary strong { font: 700 22px/1 var(--display); letter-spacing: .04em; }
.account-summary span { font-size: 13px; color: var(--green-hi); }
.account-summary .btn { margin-left: auto; --h: 36px; font-size: 14px; padding: 0 14px; }
.profile-edit-form { display: grid; gap: 16px; }
.profile-edit-form h2 { font: 700 20px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-choice { position: relative; display: grid; place-items: end start; height: 64px; padding: 8px 10px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, var(--c1), var(--c2)); margin: 0 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text) !important; font-family: var(--body) !important; }
.theme-choice input { position: absolute; opacity: 0; }
.theme-choice:has(input:checked) { border-color: var(--green-hi); box-shadow: inset 0 0 0 1px var(--green-hi); }
.theme-choice-graphite { --c1: #2a2f38; --c2: #12141a; }
.theme-choice-forest { --c1: #2f6a1d; --c2: #0c140a; }
.theme-choice-dusk { --c1: #4a3878; --c2: #110d1b; }
.account-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-form-actions .btn { --h: 42px; font-size: 15px; }
.account-save-message { color: var(--green-hi) !important; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: calc(100vw - 32px); padding: 13px 20px; background: #20252c; border: 1px solid var(--line-2); border-left: 3px solid var(--green); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 15px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: #07080a; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.footer-brand-col p { max-width: 320px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.footer-brand-col .brand-word { font-size: 28px; }
.footer-social { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; background: #5865f2; color: #fff; border-radius: 4px; transition: background .15s; }
.social-link:hover { background: #6b77f5; }
.social-link .icon { width: 22px; height: 22px; }
.footer-ip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; background: var(--green-lo); border: 1px solid #2c4a20; border-radius: 4px; color: #bfe9a3; font: 500 14px/1 var(--mono); }
.footer-ip:hover { border-color: var(--green); }
.footer-ip .icon { width: 15px; height: 15px; }
.footer-ip .icon-copy { opacity: .7; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h2 { margin-bottom: 6px; font: 700 15px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.footer-col a { font-size: 15px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--green-hi); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 22px; padding-bottom: 26px; }
.footer-disclaimer { max-width: 760px; font-size: 13px; line-height: 1.55; color: var(--faint); }
.footer-copy { flex: 0 0 auto; font-size: 13px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .ip-button span { display: none; }
  .ip-button { padding: 0 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .podium-card { max-width: 560px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .brand { order: 1; margin-right: auto; }
  .header-tools { order: 2; }
  .menu-toggle { display: grid; }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; }
  .main-nav { order: 4; display: none; flex: 1 1 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { height: 48px; padding: 0 4px; }
  .main-nav a.active::after { left: 0; right: auto; bottom: 10px; top: 10px; width: 3px; height: auto; }
  .main-nav a.active { padding-left: 14px; }
  .site-header { position: sticky; }
  .mode-tile { flex-basis: calc((100% - 28px) / 3); }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .store-grid { grid-template-columns: 1fr; max-width: 520px; }
  .store-card.featured { transform: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .legal-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid var(--line); }
  .legal-nav a.active { border-bottom-color: var(--green); background: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .profile-head { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 28px; }
  .skin-stage { height: 200px; padding: 0 20px; margin-bottom: -2px; }
  .skin-stage .skin-body { height: 188px; }
  .profile-id { padding: 22px 0 22px; }
  .profile-actions { flex-direction: row; flex-wrap: wrap; padding-bottom: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ip-button { display: none; }
  .header-tools { gap: 8px; }
  .wrap, .header-inner { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero h1 { font-size: 72px; }
  .hero-lead { font-size: 16px; }
  .ip-box-text code { font-size: 22px; }
  .ip-box .btn span { display: none; }
  .ip-box .btn { padding: 0 18px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(3) { border-left: 0; }
  .stat-strip div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .podium-skin { height: 124px; } .podium-slot[data-pos="1"] .podium-skin { height: 154px; }
  .podium-name { font-size: 16px; }
  .podium-card { padding: 18px 14px 0; }
  .mode-tile { flex-basis: 100%; min-height: 0; }
  .discord-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; margin-top: 64px; }
  .page-head { padding: 40px 0 22px; }
  .board th:nth-child(4), .board td:nth-child(4), .board th:nth-child(5), .board td:nth-child(5) { display: none; }
  .board table { min-width: 0; }
  .board th, .board td { padding-left: 12px; padding-right: 12px; }
  .board .pos { width: 46px; font-size: 20px; }
  .player-cell { font-size: 18px; gap: 10px; }
  .cards { gap: 10px; }
  .stat-card { padding: 16px; } .stat-card strong { font-size: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-grid { padding-top: 48px; padding-bottom: 40px; }
  .legal-section { grid-template-columns: 40px 1fr; }
  .verify-input-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.link-code { font: 700 32px/1.2 var(--display); letter-spacing: .18em; color: var(--green); margin: 18px 0 8px; user-select: all; }

/* Match archive: a Morbid field report rather than a copied inventory viewer. */
.profile-history { padding-bottom: 96px; }
.profile-history .section-head { margin-bottom: 22px; }
.history-tabs { margin-bottom: 16px; }
.history-list { border: 1px solid var(--line); background: var(--panel); }
.history-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 18px; align-items: center; gap: 22px; padding: 18px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.history-row:first-child { border-top: 0; }
.history-row:hover { background: #202821; }
.history-row > .icon { width: 18px; height: 18px; color: var(--faint); }
.history-result { display: inline-grid; place-items: center; padding: 6px 8px; border: 1px solid currentColor; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.history-result.win { color: var(--green-hi); }
.history-result.loss { color: var(--red); }
.history-main, .history-meta { display: grid; gap: 5px; }
.history-main strong { font: 700 23px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.history-main small, .history-meta small { color: var(--faint); font-size: 13px; }
.history-meta { text-align: right; color: var(--muted); font-size: 14px; }
.history-meta small { color: var(--green-hi); font: 700 15px/1 var(--mono); }
.history-empty { padding: 25px; }
.history-more { margin-top: 16px; }

.match-page { padding-top: 42px; padding-bottom: 96px; }
.match-back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.match-back:hover { color: var(--green-hi); }
.match-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.match-overview { position: relative; overflow: hidden; margin-top: 26px; padding: 30px 34px; border: 1px solid #31512d; background: radial-gradient(ellipse at 90% -30%, #234523 0, transparent 45%), linear-gradient(135deg, #141e18, #101215 70%); }
.match-overview::after { content: 'M'; position: absolute; right: 18px; bottom: -72px; font: 800 280px/1 var(--display); color: rgba(134,215,74,.045); pointer-events: none; }
.match-overview h1 { position: relative; margin: 8px 0 28px; font: 800 clamp(42px, 6vw, 72px)/.9 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.match-facts { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.match-facts > span { display: grid; gap: 5px; min-width: 100px; color: var(--faint); font: 600 12px/1 var(--display); letter-spacing: .13em; text-transform: uppercase; }
.match-facts b { color: var(--text); font: 600 16px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.match-fighters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: stretch; }
.match-fighter { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.match-fighter.winner { border-top: 3px solid var(--green-hi); padding-top: 22px; }
.fighter-head { display: flex; gap: 15px; align-items: center; }
.fighter-head .avatar { --s: 56px; }
.fighter-head h2 { font: 800 32px/1 var(--display); }
.fighter-head a:hover h2 { color: var(--green-hi); }
.fighter-outcome { display: inline-block; margin-top: 7px; color: var(--muted); font: 700 12px/1 var(--display); letter-spacing: .15em; text-transform: uppercase; }
.winner .fighter-outcome { color: var(--green-hi); }
.fighter-rating { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 8px; }
.fighter-rating strong { font: 800 36px/1 var(--display); }
.fighter-rating span { color: var(--muted); font: 700 14px/1 var(--mono); }
.fighter-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-block: 1px solid var(--line); }
.fighter-metrics div { display: grid; gap: 7px; padding: 15px 7px; border-left: 1px solid var(--line); }
.fighter-metrics div:first-child { border-left: 0; padding-left: 0; }
.fighter-metrics span { color: var(--faint); font: 600 11px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.fighter-metrics strong { font: 700 20px/1 var(--display); }
.inventory-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 17px 0 9px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.inventory-heading small { color: var(--faint); font: 500 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.armor-slots { display: grid; grid-template-columns: repeat(4, 42px); gap: 5px; }
.inventory-scroll { overflow-x: auto; }
.inventory-slots { display: grid; grid-template-columns: repeat(9, 42px); gap: 5px; width: max-content; padding-bottom: 5px; }
.item-slot { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #343c3c; background: linear-gradient(145deg, #1c2227, #101417); }
.item-slot.empty { opacity: .65; }
.item-icon { display: block; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.item-unknown { padding: 2px; color: var(--muted); font: 600 8px/1.1 var(--mono); overflow-wrap: anywhere; text-align: center; }
.item-slot small { position: absolute; right: 2px; bottom: 1px; color: #fff; font: 800 13px/1 var(--display); text-shadow: 1px 1px 2px #000; }
.match-reason { margin-top: 16px; color: var(--faint); font-size: 13px; }
.inventory-unavailable { padding: 18px; border: 1px dashed var(--line-2); color: var(--faint); font-size: 14px; }
@media (max-width: 900px) { .match-fighters { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .history-row { grid-template-columns: 72px minmax(0, 1fr) 15px; gap: 10px; padding: 14px 12px; }
  .history-row .history-meta { grid-column: 2; grid-row: 2; text-align: left; }
  .history-row > .icon { grid-column: 3; grid-row: 1; }
  .history-main strong { font-size: 19px; }
  .match-page { padding-top: 24px; }.match-overview { padding: 24px 18px; }.match-fighter { padding: 18px; }
  .fighter-metrics strong { font-size: 17px; }.inventory-heading small { max-width: 155px; text-align: right; }
}
