:root {
  --acRGB: 168,73,58;
  --ac: #a8493a;
  --acHi: #b95c4a;
  --acDeep: #63241a;
  --acMid: #8a3a2c;
  --acLight: #c07a68;
  --acPale: #e4c6a4;
  --acDeepRGB: 138,58,44;
  --bg: #0b0607;
  --bgGlow: #2a0f10;
  --bg-elev: #140a0b;
  --card1RGB: 36,17,16;
  --card2RGB: 19,9,10;
  --card3RGB: 42,15,16;
  --navRGB: 16,8,9;
  --surface-0: var(--bg);
  --surface-1: rgba(var(--card2RGB),.88);
  --surface-2: rgba(var(--card1RGB),.76);
  --surface-3: rgba(var(--card3RGB),.68);
  --tx1: #f0e4de;
  --tx1b: #dcc9c2;
  --tx2: #a08a84;
  --tx3: #a0837b;
  --tx4: #8e736c;
  --avTx: #c89a8e;
  --avA: #5a2a24;
  --avB: #241412;
  --text: var(--tx1b);
  --muted: var(--tx2);
  --dim: var(--tx4);
  --accent: var(--ac);
  --accent-soft: var(--acLight);
  --gold: #bfa065;
  --goldRGB: 191,160,101;
  --win: #5d9472;
  --winRGB: 93,148,114;
  --radiant: #5d9472;
  --dire: #a34e42;
  --attr-strength: #a34e42;
  --attr-agility: #5d9472;
  --attr-intelligence: #6f91ad;
  --loss: #bd6a5e;
  --lossRGB: 189,106,94;
  --danger: #bd6a5e;
  --info: #7fb6d4;
  --rank-bronze: #d29a6b;
  --rank-silver: #d8dee9;
  --rank-gold: #cbb083;
  --rank-platinum: var(--info);
  --rank-diamond: #a891d0;
  --division-grad-default: linear-gradient(90deg, #2f6a94, var(--info));
  --focus-ring: #d6bd86;
  --steam: #66c0f4;
  --border: rgba(var(--acDeepRGB), 0.3);
  --control-bg: rgba(0,0,0,.28);
  --control-border: rgba(255,255,255,.11);
  --control-border-hover: rgba(255,255,255,.2);
  --control-border-active: rgba(var(--acRGB),.62);
  --control-placeholder: var(--tx4);
  --font-display: "Rajdhani", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-title: clamp(1.5rem, 3vw, 2rem);
  --text-display: clamp(1.75rem, 4vw, 2.625rem);
  --text-hero: clamp(2.5rem, 7vw, 4.25rem);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.6;
  --tracking-tight: 0.02em;
  --tracking-label: 0.14em;
  --tracking-title: 0.06em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --section-y: clamp(24px, 4vw, 44px);
  --section-gap: clamp(16px, 2.5vw, 28px);
  --fog-blur: 48px;
  --fog-a: rgba(var(--acRGB), .08);
  --fog-b: rgba(var(--acDeepRGB), .07);
  --fog-c: rgba(var(--goldRGB), .04);
  --noise-opacity: .034;
  --vignette-edge: .58;
  --clip-sm: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  --clip-md: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  --clip-lg: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
  --panel-bg: var(--surface-2);
  --page-max: min(1440px, 100%);
  --page-pad: clamp(14px, 3.2vw, 40px);
  --content-readable: min(52rem, 100%);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
#app {
  overflow-x: hidden;
  max-width: 100%;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--accent-soft); }
button { font: inherit; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fogDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(5%,4%,0) scale(1.14); }
}
@keyframes fogDriftAlt {
  from { transform: translate3d(0,0,0) scale(1.08); }
  to { transform: translate3d(-4%,3%,0) scale(1); }
}
.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 680px at 50% -200px, var(--bgGlow), transparent 58%),
    radial-gradient(ellipse 900px 520px at 85% 110%, rgba(var(--acDeepRGB),.18), transparent 55%),
    var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}
#embers-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: .85;
}
.fog {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  filter: blur(var(--fog-blur));
  animation: fogDrift 34s ease-in-out infinite alternate;
  will-change: transform;
}
.fog-a {
  left: -22%;
  top: -14%;
  width: 78%;
  height: 66%;
  background:
    radial-gradient(ellipse at 42% 45%, var(--fog-a), transparent 68%),
    radial-gradient(ellipse at 70% 30%, rgba(var(--acRGB),.04), transparent 60%);
}
.fog-b {
  right: -24%;
  bottom: -16%;
  width: 76%;
  height: 64%;
  background:
    radial-gradient(ellipse at 55% 50%, var(--fog-b), transparent 68%),
    radial-gradient(ellipse at 30% 70%, rgba(var(--acRGB),.05), transparent 58%);
  animation-name: fogDriftAlt;
  animation-duration: 44s;
}
.fog-c {
  left: 18%;
  top: 28%;
  width: 64%;
  height: 48%;
  background: radial-gradient(ellipse at 50% 50%, var(--fog-c), transparent 72%);
  filter: blur(calc(var(--fog-blur) + 10px));
  animation-duration: 52s;
  animation-delay: -18s;
  opacity: .9;
}
.page-in { position: relative; z-index: 3; flex: 1; }
.panel-v3 {
  background: var(--panel-bg);
  border: 1px solid rgba(var(--acDeepRGB),.22);
}
.clip { clip-path: var(--clip-md); }
.clip-sm { clip-path: var(--clip-sm); }
.clip-lg { clip-path: var(--clip-lg); }

/* —— Type roles (shared across pages) —— */
.type-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--tx3);
}
.type-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--tx3);
}
.type-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: #fff;
}
.type-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: #fff;
}
.type-body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--tx1b);
}
.type-meta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--muted);
}
.type-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--tx3);
}
.type-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--section-gap);
}
.section-head::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ac);
  box-shadow: 8px 5px 0 rgba(var(--acRGB),.28);
  flex-shrink: 0;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
  color: var(--tx2);
  text-transform: uppercase;
}
.rdi-divider {
  position: relative;
  height: 3px;
  background: linear-gradient(90deg,var(--radiant) 0%,var(--radiant) 46%,transparent 50%,var(--dire) 54%,var(--dire) 100%);
  opacity: .58;
}
.rdi-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg,#d6bd86,#80642e);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  box-shadow: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 34%, transparent 46%, rgba(0,0,0,var(--vignette-edge)) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 18%, transparent 78%, rgba(0,0,0,.28));
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--page-pad);
  height: 64px;
  background: rgba(var(--navRGB),.72);
  border-bottom: 1px solid rgba(var(--acDeepRGB),.3);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.3);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.brand {
  display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; color: inherit; padding: 0;
  flex-shrink: 0;
}
.brand-mark {
  position: relative; width: 30px; height: 30px;
}
.brand-mark::before {
  content: ""; position: absolute; inset: -4px;
  background: conic-gradient(from 0deg, var(--ac), transparent 30%, transparent 70%, var(--ac));
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  opacity: .32;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--acHi), var(--acDeep));
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.38);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
}
.brand-name span {
  background: linear-gradient(90deg, var(--acLight), var(--acPale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
}
.nav-drawer-tools { display: none; }
.nav-backdrop {
  display: none !important;
  pointer-events: none !important;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--tx3);
  background: transparent;
  border: 1px solid transparent;
  clip-path: var(--clip-sm);
  flex-shrink: 0;
  white-space: nowrap;
  filter: none;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-link:hover {
  color: var(--tx1b);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  filter: none;
}
.nav-link.active {
  color: #fff;
  border-color: rgba(var(--acRGB),.24);
  background: rgba(var(--acRGB),.075);
  filter: none;
}
.nav-link.active::after {
  content: "";
  position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px;
  background: var(--ac);
  box-shadow: none;
}
.nav-drop {
  position: relative;
  flex-shrink: 0;
}
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform .15s;
}
.nav-drop.open .nav-drop-caret { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  background: rgba(12,6,8,.98);
  border: 1px solid rgba(var(--acDeepRGB),.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  z-index: 120;
}
.nav-drop.open > .nav-drop-menu { display: flex; }
.nav-drop-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tx2);
  background: transparent;
  border: 1px solid transparent;
  clip-path: var(--clip-sm);
}
.nav-drop-item:hover {
  color: #fff;
  background: rgba(var(--acRGB),.1);
  border-color: rgba(var(--acRGB),.35);
}
.nav-drop-item.active {
  color: #fff;
  background: rgba(var(--acRGB),.16);
  border-color: rgba(var(--acRGB),.5);
}
.user-name { font-size: 13px; font-weight: 600; color: var(--tx1b); }
.faction-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.22);
  filter: none;
}
.faction-btn {
  padding: 6px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 1.2px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--tx4);
  transition: color .2s, background-color .2s;
}
.faction-btn.active {
  color: var(--acLight);
  background: rgba(var(--acRGB),.13);
  text-shadow: none;
}
.faction-btn:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-right .btn-steam.clip-sm {
  padding: 7px 14px 7px 10px;
  gap: 10px;
  border: 1px solid rgba(102,192,244,.35);
  filter: none;
  box-shadow: none;
}
.nav-right .btn-steam.clip-sm:hover {
  border-color: #66c0f4;
  filter: none;
  transform: none;
}
.nav-right .user-chip {
  border: 1px solid rgba(var(--acRGB),.28);
  filter: none;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(var(--acDeepRGB),.45);
  cursor: pointer;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  color: inherit;
}
.user-chip:hover {
  border-color: rgba(var(--acRGB),.75);
  background: rgba(var(--acDeepRGB),.12);
}
.user-chip img, .avatar-fallback {
  width: 28px; height: 28px; object-fit: cover;
  background: linear-gradient(135deg, var(--avA), var(--avB));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #c89a8e;
}
.user-tm {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--gold); text-shadow: none;
}

.main {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.btn-steam {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px;
  background: linear-gradient(180deg, rgba(27,40,56,.95), rgba(18,28,40,.95));
  border: 1px solid #2a475e;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.38);
  color: #fff;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.btn-steam:hover {
  border-color: var(--steam);
  box-shadow: 0 8px 22px rgba(0,0,0,.42);
  transform: translateY(-2px);
}
.btn-steam .steam-icon {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  filter: none;
}
.btn-steam.clip-sm .steam-icon {
  width: 22px;
  height: 22px;
}
.btn-ghost {
  padding: 15px 26px;
  border: 1px solid rgba(var(--acRGB),.3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  color: #dcc9c2;
  cursor: pointer;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
  transition: color .15s, border-color .15s, background-color .15s, transform .15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  box-shadow: none;
  transform: translateY(-2px);
}
.btn-ghost:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(var(--acRGB),.08);
}
.btn-primary {
  padding: 12px 20px;
  border: 1px solid rgba(var(--acRGB),.42);
  background: rgba(var(--acDeepRGB),.16);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.btn-primary:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(var(--acDeepRGB),.26);
  box-shadow: none;
  transform: translateY(-2px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(var(--acDeepRGB),.34);
}
.btn-primary:disabled,
.btn-ghost:disabled,
.btn-ghost-sm:disabled,
.btn-pager:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.btn-pager {
  padding: 8px 14px;
  border: 1px solid rgba(var(--acRGB),.35);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.btn-pager:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-soft);
  box-shadow: none;
}
.btn-pager:active:not(:disabled) { background: rgba(var(--acRGB),.08); }
.btn-pager:disabled { opacity: .4; cursor: not-allowed; }
.steam-btn-text { text-align: left; line-height: 1.15; }
.steam-btn-label {
  font-size: 10px;
  letter-spacing: .8px;
  color: #8aa9c1;
  text-transform: uppercase;
}
.btn-steam.clip .steam-btn-label { font-size: 11px; }
.steam-btn-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}
.btn-steam.clip .steam-btn-title { font-size: 20px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 64px;
  text-align: center;
}
.hero h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero-title-lead,
.hero-title-accent {
  display: block;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--acLight), var(--acPale), var(--acLight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-position: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid rgba(var(--acRGB),.45);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-tight);
  color: var(--acLight);
  text-transform: uppercase;
  background: rgba(var(--acDeepRGB),.08);
  animation: none;
  margin-bottom: 22px;
}
.hero p {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(var(--text-md), 1.6vw, var(--text-lg));
  line-height: var(--leading-body);
  color: var(--muted);
  padding: 0 var(--page-pad);
  box-sizing: border-box;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  width: 100%;
  max-width: min(640px, 100%);
}
.hint {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--dim);
}

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-pad);
  width: 100%;
  box-sizing: border-box;
}
.section + .section {
  padding-top: calc(var(--section-y) * 0.7);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.card {
  padding: var(--space-6);
  background: linear-gradient(180deg, rgba(38,18,17,.62), rgba(20,10,11,.62));
  border: 1px solid rgba(var(--acDeepRGB),.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--acRGB),.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1;
  background-image: linear-gradient(180deg, rgba(var(--acRGB),.75), rgba(var(--acRGB),.08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.card h3 {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: #fff;
}
.card p {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--muted);
}

.panel {
  background: linear-gradient(180deg, rgba(38,18,17,.62), rgba(20,10,11,.62));
  border: 1px solid rgba(var(--acDeepRGB),.22);
  padding: 22px;
}

.player-cell { display: flex; align-items: center; gap: 12px; }
.player-cell img, .player-cell .avatar-fallback {
  width: 36px; height: 36px; border-radius: 0;
}

.search-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.search-row input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(var(--acDeepRGB),.35);
  color: var(--text);
  outline: none;
}
.search-row input:focus { border-color: var(--accent); }

.win { color: var(--radiant); }
.loss { color: var(--loss); }
.muted {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.error {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--loss) 48%, transparent);
  background: color-mix(in srgb, var(--loss) 10%, transparent);
  color: var(--loss);
  margin: 16px 0;
}
.ok {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--win) 40%, transparent);
  background: color-mix(in srgb, var(--win) 9%, transparent);
  color: var(--win);
  margin: 16px 0;
}
.chart {
  width: 100%;
  height: 180px;
  display: block;
}
.chart-line { stroke: var(--gold); }
.chart-area { fill: color-mix(in srgb, var(--gold) 10%, transparent); }
.chart-dot,
.chart-last { fill: var(--gold); }
.chart-last { stroke: var(--bg); }
.chart-current { color: var(--gold); font-weight: 700; }
.pager {
  display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px;
}
.pager button,
.pager .btn-pager {
  /* styled by .btn-pager */
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
}
.formula-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.formula-plus {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--tx3);
  line-height: 1;
  user-select: none;
}
.div-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.div-tile {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.div-tile:hover {
  transform: translateY(-1px);
  border-color: var(--div-color, rgba(var(--acRGB),.55));
  box-shadow: none;
}
.div-gem-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}
.div-gem-glow {
  position: absolute;
  inset: -6px;
  opacity: .45;
  pointer-events: none;
}
.div-gem {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.div-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--div-color);
}
.div-range {
  font-size: 12px;
  color: var(--tx4);
  font-variant-numeric: tabular-nums;
}

.step-card {
  position: relative;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--acRGB),.32);
}
.step-glow {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--acRGB),.07), transparent 70%);
  pointer-events: none;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  background-image: linear-gradient(180deg, rgba(var(--acRGB),.85), rgba(var(--acRGB),.1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.step-attribute {
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .82;
}
.step-attribute.strength { color: var(--attr-strength); }
.step-attribute.agility { color: var(--attr-agility); }
.step-attribute.intelligence { color: var(--attr-intelligence); }
.step-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .5px;
  color: #fff;
}
.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tx2);
}
.formula-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.formula-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--tx3);
  text-transform: uppercase;
}
.formula-values {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.formula-values .win { text-shadow: none; }
.formula-values .loss { text-shadow: none; }
.formula-values .gold {
  color: var(--gold);
  text-shadow: none;
}
.formula-values .cyan {
  color: var(--info);
  text-shadow: none;
}
.formula-card p {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--tx2);
}

.lb-title-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lb-title-row h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 1px;
  color: #fff;
}
.lb-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: #8a6b64;
  text-transform: uppercase;
  background: rgba(var(--acDeepRGB),.05);
  border-bottom: 1px solid rgba(var(--acDeepRGB),.25);
}
.lb-place { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.lb-place.p1 { color: var(--gold); text-shadow: none; }
.lb-place.p2 { color: #c0c8d0; }
.lb-place.p3 { color: #c47a4a; }
.div-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--div-color);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.div-icon {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.div-icon-sm {
  width: 24px;
  height: 24px;
}
.div-icon-md {
  width: 40px;
  height: 40px;
}
.div-icon-lg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.42));
}
.div-emblem {
  position: relative;
}
.div-emblem::before {
  content: "";
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle, color-mix(in srgb, var(--div-color) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.div-emblem-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--div-grad);
  clip-path: polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
}
.div-emblem-core::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: rgba(5,6,8,.58);
  clip-path: inherit;
}
.div-emblem-tier {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  color: var(--div-color);
}
.div-icon-md .div-emblem-tier { font-size: 14px; }
.div-icon-lg .div-emblem-tier { font-size: 19px; }
.div-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.div-star {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.1);
  clip-path: polygon(50% 0,63% 35%,100% 38%,71% 61%,82% 100%,50% 76%,18% 100%,29% 61%,0 38%,37% 35%);
}
.div-star.active {
  background: var(--div-color);
}
.div-inline .gem {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex-shrink: 0;
}
.div-tile .div-icon-lg {
  transition: transform .2s ease, filter .2s ease;
}
.div-tile:hover .div-icon-lg {
  transform: translateY(-1px);
  filter: none;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
}
.empty-state-v3 {
  text-align: center;
  padding: 40px 28px;
  max-width: 480px;
  margin: 24px auto;
}
.empty-state-v3 .empty-gem {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, var(--ac), var(--acDeep));
  box-shadow: none;
}
.empty-state-v3 h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}
.empty-state-v3 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.empty-state-v3 .empty-cta { margin-top: 20px; }

.profile-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn-ghost-sm {
  padding: 8px 14px;
  border: 1px solid rgba(var(--acDeepRGB),.35);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}
.btn-ghost-sm:hover { color: var(--accent-soft); border-color: var(--accent); }
.btn-ghost-sm:active:not(:disabled) { background: rgba(var(--acRGB),.08); }
.progress-bar {
  height: 8px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--info) 58%, #000), var(--info));
  box-shadow: none;
}
.hero-abbr {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--avA), var(--avB));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) var(--page-pad);
  border-top: 1px solid rgba(var(--acDeepRGB),.25);
  background: rgba(var(--card3RGB),.24);
  text-align: center;
  width: 100%;
}
.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(var(--acRGB),.08), transparent 68%);
  pointer-events: none;
  opacity: .7;
}
.final-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-block; margin-left: 8px; }
  .nav-right .faction-toggle,
  .nav-right .motion-toggle { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    height: calc(100dvh - 64px);
    width: min(340px, 88vw);
    max-width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(12,6,8,.98);
    border-right: 1px solid var(--border);
    z-index: 90;
    box-shadow: 16px 0 36px rgba(0,0,0,.42);
  }
  .nav.open .nav-link {
    width: 100%;
    min-height: 44px;
    text-align: left;
    justify-content: space-between;
  }
  .nav.open .nav-drop { width: 100%; }
  .nav.open .nav-drop-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(0,0,0,.25);
  }
  .nav.open .nav-drop.open > .nav-drop-menu { display: flex; }
  .nav-drawer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .nav-drawer-tools .faction-toggle,
  .nav-drawer-tools .motion-toggle { display: flex; }
  .nav.open + .nav-backdrop {
    display: block !important;
    pointer-events: auto !important;
    position: fixed;
    inset: 64px 0 0;
    z-index: 80;
    border: 0;
    background: rgba(0,0,0,.74);
    backdrop-filter: none;
  }
  body:has(.nav.open) { overflow: hidden; }
}

@media (max-width: 900px) {
  .formula-grid { grid-template-columns: 1fr; }
  .formula-plus { display: none; }
  .div-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-actions { align-items: stretch; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .div-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn-steam,
  .cta-row .btn-ghost {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero { padding: 40px var(--page-pad) 48px; }
  .hero h1 {
    max-width: 520px;
    font-size: clamp(31px, 8.2vw, 38px);
    line-height: 1.08;
  }
  .hero p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.58;
  }
  .step-card { padding: 24px 18px; }
  .final-cta { padding: 48px var(--page-pad); }
  .final-cta::before { width: min(520px, 100%); }
  .lb-filters { flex-direction: column; align-items: stretch; }
  .lb-filters .lb-select,
  .lb-filters .theme-select,
  .lb-filters .search-input,
  .search-row input { width: 100%; min-width: 0; }
  .lb-filters .theme-select { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  .div-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 18px; letter-spacing: 1px; }
  .nav { gap: 8px; }
  .nav-burger { margin-left: 0; }
  .nav-right { gap: 6px; }
  .nav-right .btn-steam.clip-sm,
  .nav-right .user-chip {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
    clip-path: none;
  }
  .nav-right .btn-steam .steam-btn-text,
  .nav-right .user-chip > div {
    display: none;
  }
}

/* —— Site improvements —— */
.lb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
  align-items: center;
}
.lb-row.clickable {
  cursor: pointer;
  transition: background .15s ease;
}
.hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  background: #1a1012;
}
.match-links {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.match-links a {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .3px;
}
.match-links a:hover { color: var(--gold); }
.chart-wrap { position: relative; }
.chart-dot { cursor: pointer; }
.chart-dot:hover { r: 6; }
.chart-axis {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--tx4);
  font-size: var(--text-xs);
}
.match-row-title { min-width: 0; }
.league-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: #fff;
}
.panel-pad { padding: 22px; }
.landing-final-copy { margin: 0 0 20px; }
.profile-self-cta { margin-top: 8px; }
.profile-heroes-section {
  max-width: none;
  padding: 16px 0 0;
}
.section-inline-action { margin-top: 12px; }
.not-found-actions { margin-top: 24px; }
.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-title-note {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.league-invite { margin: 14px 0; }
.widget-block { margin-top: 16px; }
.lb-toolbar {
  padding: 14px 16px;
  margin: 14px 0 18px;
  overflow: visible;
  position: relative;
  z-index: 6;
  clip-path: none;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}
.lb-toolbar .search-row { margin-bottom: 10px; }
.lb-toolbar .lb-filters {
  margin: 0;
  padding-top: 10px;
  position: relative;
  z-index: 7;
  border-top: 1px solid rgba(255,255,255,.06);
}
.lb-meta {
  padding-bottom: 4px;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.page-leaderboard > .error {
  margin: 10px 0;
  padding-block: 10px;
}

@keyframes skeletonShimmer {
  to { transform: translateX(100%); }
}
.skeleton-panel,
.sk-profile-head,
.sk-tile { position: relative; overflow: hidden; }
.skeleton-panel { padding: 8px 18px; }
.sk-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.sk-block,
.sk-tile::before {
  display: block;
  height: 13px;
  background: rgba(255,255,255,.065);
}
.sk-block { position: relative; overflow: hidden; }
.sk-block::after,
.sk-tile::after,
.skeleton-panel::after,
.sk-profile-head::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: skeletonShimmer 1.35s infinite;
  pointer-events: none;
}
.sk-short { width: 52px; }
.sk-mid { width: 110px; justify-self: end; }
.sk-profile-head {
  display: grid;
  grid-template-columns: 90px 1fr 160px;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 28px;
}
.sk-profile-head .sk-tile { height: 88px; }
.sk-profile-head .sk-block { height: 22px; }
.sk-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.sk-tiles > .sk-tile { min-height: 86px; background: var(--panel-bg); border: 1px solid rgba(255,255,255,.05); }
@media (max-width: 800px) {
  .sk-row { grid-template-columns: 52px 1fr; }
  .sk-row .sk-mid { display: none; }
  .sk-profile-head { grid-template-columns: 72px 1fr; }
  .sk-profile-head > :last-child { display: none; }
  .sk-tiles { grid-template-columns: repeat(2, 1fr); }
}
body.reduce-motion .sk-block::after,
body.reduce-motion .sk-tile::after,
body.reduce-motion .skeleton-panel::after,
body.reduce-motion .sk-profile-head::after { animation: none; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 18px 20px;
  background: transparent;
  border: 0;
}
.faq-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  letter-spacing: .5px;
}
.faq-item p {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--muted);
}
.legal-page .page-title-row { margin-bottom: 8px; }
.legal-updated { margin: 0 0 8px; font-size: 13px; }
.site-footer {
  position: relative;
  margin-top: auto;
  padding: 36px var(--page-pad) 40px;
  border-top: 0;
  background: rgba(8,4,5,.72);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(var(--acRGB),.55) 0 8px,
    transparent 8px 16px
  );
  box-shadow: none;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.3fr;
  gap: 28px 24px;
  align-items: start;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-row .brand-mark {
  width: 28px;
  height: 28px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1.5px;
}
.footer-tagline {
  margin: 10px 0 0;
  font-size: 13px;
  max-width: 280px;
}
.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tx3);
}
.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
}
.footer-links a, .footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: var(--gold); }
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12px;
  color: var(--dim);
}
.footer-feedback-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}
.footer-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-feedback-form select,
.footer-feedback-form textarea,
.footer-feedback-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  background: rgba(0,0,0,.35);
  color: var(--tx1b);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}
.footer-feedback-form select:focus,
.footer-feedback-form textarea:focus,
.footer-feedback-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(var(--acRGB),.55);
  box-shadow: none;
}
.footer-feedback-form textarea {
  resize: vertical;
  min-height: 72px;
}
.footer-feedback-submit {
  align-self: flex-start;
  margin-top: 2px;
}
.footer-feedback-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}
.footer-feedback-status--ok { color: var(--win); }
.footer-feedback-status--error { color: var(--loss); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-feedback-col { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer { padding-block: 28px 30px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .footer-brand-block,
  .footer-feedback-col,
  .footer-copy {
    grid-column: 1 / -1;
  }
  .footer-links { gap: 8px; }
  .footer-links a,
  .footer-links button { font-size: 13px; }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.back-link:hover { color: var(--gold); }
.steam-profile-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}
.legal-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  color: #fff;
  letter-spacing: 1px;
}
.legal-updated { margin: 0 0 24px; font-size: 13px; }
.legal-block {
  padding: 22px 24px;
  margin-bottom: 14px;
}
.legal-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-soft);
  letter-spacing: .5px;
}
.legal-block p,
.legal-block li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.legal-block ul { margin: 0; padding-left: 20px; }
.legal-block code {
  font-size: 13px;
  color: var(--gold);
  background: rgba(255,255,255,.05);
  padding: 2px 6px;
  border-radius: 3px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent-soft); }
