/* =========================================================
   NEW GEN FORTNITE TRACKER
   Visual direction: editorial esports / data terminal / brutalist
   ========================================================= */

:root {
  --bg: #090b0f;
  --bg-soft: #0d1016;
  --panel: #10131a;
  --panel-2: #141821;
  --text: #f4f5f7;
  --muted: #818896;
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(255, 255, 255, 0.22);
  --acid: #d7ff3f;
  --violet: #8f5cff;
  --cyan: #59e8ff;
  --danger: #ff6174;
  --success: #75ff9f;

  --font-display: "Archivo Black", Impact, sans-serif;
  --font-sans: "Inter", Arial, sans-serif;
  --font-mono: "DM Mono", monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(143, 92, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 10% 0%, rgba(215, 255, 63, 0.07), transparent 24rem),
    var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: #080a0d;
  background: var(--acid);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 20;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 430px;
  height: 430px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: rgba(143, 92, 255, 0.075);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.topbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--acid);
  color: #0a0c0f;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.06em;
  transform: skew(-4deg);
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-link {
  position: relative;
  padding: 10px 15px;
  border-radius: 999px;
  color: #989eaa;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px 10px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(117, 255, 159, 0.08);
}

.profile-name,
.profile-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.profile-name {
  color: #b9bec9;
}

.profile-key {
  padding: 4px 6px;
  color: #707784;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 80px;
  padding: 90px 50px 74px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.eyebrow,
.mono-label,
.section-kicker,
.season-label,
.live-pill,
.updated-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.085em;
}

.eyebrow,
.mono-label,
.season-label,
.updated-text {
  color: var(--muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bdc4cf;
}

.live-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(215, 255, 63, 0.75);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(64px, 7.5vw, 132px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.28);
  text-shadow: 0 0 42px rgba(143, 92, 255, 0.12);
}

.hero-text {
  max-width: 560px;
  margin: 32px 0 0;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.65;
}

.search-panel {
  max-width: 740px;
  margin-top: 44px;
}

.search-label {
  margin-bottom: 9px;
  color: #6e7581;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 16px;
  background: rgba(13, 16, 22, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: 0.2s ease;
}

.search-field:focus-within {
  border-color: rgba(215, 255, 63, 0.7);
  box-shadow: 0 0 0 4px rgba(215, 255, 63, 0.06);
}

.search-icon {
  color: #8c93a0;
  font-size: 25px;
  transform: rotate(-15deg);
}

.search-field input {
  width: 100%;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-field input::placeholder {
  color: #555c68;
}

.search-field kbd {
  padding: 5px 7px;
  color: #676e79;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.search-button,
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 62px;
  padding: 0 22px;
  color: #0a0d0f;
  background: var(--acid);
  border: 0;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.search-button:hover,
.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(215, 255, 63, 0.12);
}

.button-arrow {
  font-size: 18px;
}

.search-hint {
  margin-top: 10px;
  color: #5f6672;
  font-size: 11px;
}

.search-hint button {
  padding: 0;
  color: #8d95a2;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  cursor: pointer;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.rank-card {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.86;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,.07), transparent 32%),
    linear-gradient(145deg, #181520, #0d1016 52%, #12151b);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotate(2.5deg);
}

.rank-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: 70px;
  background: var(--violet);
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.19;
}

.rank-card::after {
  content: "NEW GEN";
  position: absolute;
  left: -28px;
  bottom: 88px;
  color: rgba(255,255,255,.023);
  font-family: var(--font-display);
  font-size: 72px;
  letter-spacing: -0.08em;
  white-space: nowrap;
  transform: rotate(-90deg);
}

.rank-card-top,
.rank-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-symbol {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 260px;
  margin: auto;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 87% 18%, 100% 58%, 77% 100%, 23% 100%, 0% 58%, 13% 18%);
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(143,92,255,.7) 26%, rgba(42,25,72,.95) 53%, rgba(215,255,63,.3));
  box-shadow: 0 0 80px rgba(143,92,255,.22);
}

.rank-symbol::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  background:
    radial-gradient(circle at 65% 20%, rgba(255,255,255,.13), transparent 28%),
    #0c0e13;
}

.rank-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.rank-core::before {
  content: "";
  width: 66px;
  height: 2px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
}

.rank-tier {
  color: #c0c6d1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.rank-core strong {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 54px;
  letter-spacing: -0.07em;
}

.rank-footer {
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rank-footer div {
  display: grid;
  gap: 5px;
}

.rank-footer div:last-child {
  text-align: right;
}

.rank-footer span {
  color: #646b78;
  font-family: var(--font-mono);
  font-size: 9px;
}

.rank-footer strong {
  font-family: var(--font-mono);
  font-size: 12px;
}

.floating-tag {
  position: absolute;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(18px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.tag-a {
  left: 2%;
  top: 22%;
  color: var(--acid);
  transform: rotate(-4deg);
}

.tag-b {
  right: 0;
  bottom: 18%;
  color: #c7aefb;
  transform: rotate(4deg);
}

.dashboard-section,
.split-section,
.ranked-section {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.dashboard-section {
  padding: 74px 50px 30px;
}

.section-heading,
.panel-header,
.signal-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  color: var(--acid);
}

.section-heading h2,
.panel-header h3,
.ranked-copy h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.055em;
}

.section-heading h2 {
  font-size: clamp(36px, 4vw, 62px);
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.platform-chip,
.verified-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.platform-chip {
  color: #0d0f12;
  background: #eff1f4;
}

.verified-chip {
  color: #aaa4ff;
  border-color: rgba(143,92,255,.32);
  background: rgba(143,92,255,.09);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 48%),
    var(--bg-soft);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, transform .2s ease;
}

.metric-card:hover {
  background-color: #10141b;
}

.metric-card-primary {
  background:
    radial-gradient(circle at 30% 0%, rgba(215,255,63,.08), transparent 47%),
    var(--bg-soft);
}

.metric-header,
.metric-value-row,
.metric-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-header {
  color: #7c8490;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.metric-index {
  color: #434955;
}

.metric-value-row {
  align-items: flex-end;
  margin-top: 30px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 62px);
  letter-spacing: -0.07em;
}

.trend {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.trend.positive {
  color: var(--success);
}

.trend.negative {
  color: var(--danger);
}

.trend.neutral {
  color: #777f8b;
}

.metric-chart {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: auto;
  overflow: hidden;
}

.metric-chart span {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(to top, rgba(215,255,63,.22), var(--acid));
  border-radius: 2px 2px 0 0;
  opacity: .86;
}

.sparkline-wrap {
  position: relative;
  height: 110px;
  margin-top: auto;
}

.sparkline-wrap canvas {
  width: 100%;
  height: 100%;
}

.progress-cluster {
  display: grid;
  gap: 16px;
  margin-top: auto;
  margin-bottom: 10px;
}

.progress-row {
  display: grid;
  grid-template-columns: 46px 1fr 34px;
  align-items: center;
  gap: 9px;
  color: #717985;
  font-family: var(--font-mono);
  font-size: 9px;
}

.progress-row b {
  color: #b1b6c0;
  text-align: right;
  font-weight: 500;
}

.progress-track,
.band-track,
.signal-item > div {
  position: relative;
  overflow: hidden;
  height: 4px;
  background: rgba(255,255,255,.06);
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(143,92,255,.74);
}

.pr-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 28px;
}

.band-label {
  color: #565d68;
  font-family: var(--font-mono);
  font-size: 8px;
}

.band-track {
  height: 8px;
  overflow: visible;
  background:
    linear-gradient(90deg, #2a2f37, #555c66 42%, var(--violet) 74%, var(--acid));
}

.band-marker {
  position: absolute;
  left: 78%;
  top: 50%;
  width: 12px;
  height: 18px;
  background: #fff;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: left .45s cubic-bezier(.2,.75,.2,1);
}

.metric-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #5d6570;
  font-family: var(--font-mono);
  font-size: 8px;
}

.metric-foot span:last-child {
  color: #999faa;
}

.split-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  padding: 0 50px 30px;
}

.panel {
  min-height: 500px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.matches-panel {
  border-right: 0;
}

.panel-header {
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-header h3 {
  font-size: 28px;
}

.text-button {
  padding: 0;
  color: #767e8a;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  cursor: pointer;
}

.text-button:hover {
  color: #fff;
}

.match-list {
  display: grid;
}

.match-row {
  display: grid;
  grid-template-columns: 56px 1.2fr .8fr .7fr .7fr 22px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.match-row:last-child {
  border-bottom: 1px solid var(--line);
}

.placement {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  font-family: var(--font-display);
  font-size: 15px;
}

.placement.top {
  color: #101215;
  background: var(--acid);
}

.match-main {
  display: grid;
  gap: 4px;
}

.match-main strong {
  font-size: 12px;
}

.match-main span,
.match-stat span {
  color: #626a75;
  font-family: var(--font-mono);
  font-size: 8px;
}

.match-stat {
  display: grid;
  gap: 4px;
}

.match-stat strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.match-chevron {
  color: #454b55;
  transition: transform .2s ease;
}

.match-row:hover .match-chevron {
  transform: translateX(4px);
  color: var(--acid);
}

.weapon-table {
  display: grid;
}

.weapon-row {
  display: grid;
  grid-template-columns: 1fr 60px 74px;
  align-items: center;
  gap: 16px;
  min-height: 85px;
  border-top: 1px solid var(--line);
}

.weapon-row:last-child {
  border-bottom: 1px solid var(--line);
}

.weapon-main {
  display: grid;
  gap: 9px;
}

.weapon-main strong {
  font-size: 12px;
}

.weapon-bar {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.055);
}

.weapon-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.weapon-stat {
  display: grid;
  gap: 4px;
  text-align: right;
}

.weapon-stat span {
  color: #626a75;
  font-family: var(--font-mono);
  font-size: 8px;
}

.weapon-stat strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.ranked-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  padding: 90px 50px;
  background:
    linear-gradient(120deg, rgba(143,92,255,.07), transparent 42%),
    linear-gradient(315deg, rgba(215,255,63,.045), transparent 35%);
  border-bottom: 1px solid var(--line);
}

.ranked-copy h2 {
  margin-top: 18px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .88;
}

.ranked-copy h2 span {
  color: var(--acid);
}

.ranked-copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: #858d98;
  line-height: 1.7;
}

.ranked-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.primary-cta,
.secondary-cta {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 10px;
}

.secondary-cta {
  color: #b9bec8;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.secondary-cta:hover {
  border-color: rgba(255,255,255,.4);
}

.signal-board {
  align-self: center;
  padding: 26px;
  background: rgba(11, 14, 19, .74);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.2);
}

.signal-top {
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.signal-top span {
  color: #777f8b;
  font-family: var(--font-mono);
  font-size: 10px;
}

.signal-top strong {
  font-family: var(--font-display);
  font-size: 26px;
}

.signal-grid {
  display: grid;
  gap: 19px;
  padding: 26px 0;
}

.signal-item {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  align-items: center;
  gap: 16px;
}

.signal-item span,
.signal-item b {
  font-family: var(--font-mono);
  font-size: 9px;
}

.signal-item span {
  color: #737b87;
}

.signal-item b {
  color: #bfc4cc;
  text-align: right;
  font-weight: 500;
}

.signal-item > div {
  height: 6px;
}

.signal-item i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--acid));
  transform-origin: left;
  animation: grow 1s cubic-bezier(.2,.8,.2,1) both;
}

.signal-note {
  padding: 18px;
  background: rgba(143,92,255,.07);
  border: 1px solid rgba(143,92,255,.16);
  border-radius: 12px;
}

.signal-note span {
  color: #9b7efa;
  font-family: var(--font-mono);
  font-size: 9px;
}

.signal-note p {
  margin: 9px 0 0;
  color: #999faa;
  font-size: 12px;
  line-height: 1.6;
}

.footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 30px;
  color: #555d68;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.footer-brand strong {
  color: #858d98;
  font-size: 11px;
}

.footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 9px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  max-width: 340px;
  padding: 13px 15px;
  color: #0b0d10;
  background: var(--acid);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.loading .metric-value,
.loading #playerName,
.loading #rankTier,
.loading #rankPercent {
  opacity: .22;
  filter: blur(3px);
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr .72fr;
    gap: 32px;
    padding-inline: 32px;
  }

  .dashboard-section,
  .split-section,
  .ranked-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .matches-panel {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 22px), var(--container));
  }

  .topbar {
    min-height: 74px;
  }

  .profile-name,
  .profile-key {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 62px 22px;
  }

  .hero h1 {
    font-size: clamp(56px, 17vw, 90px);
  }

  .hero-text {
    max-width: 90%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .rank-card {
    max-width: 370px;
  }

  .rank-symbol {
    width: 225px;
    height: 225px;
  }

  .dashboard-section,
  .split-section,
  .ranked-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .dashboard-section {
    padding-top: 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-meta {
    justify-content: flex-start;
  }

  .ranked-section {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
}

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-button {
    min-height: 54px;
  }

  .search-field {
    min-height: 56px;
  }

  .search-field kbd {
    display: none;
  }

  .hero-visual {
    min-height: 350px;
  }

  .rank-card {
    max-width: 300px;
  }

  .rank-symbol {
    width: 190px;
    height: 190px;
  }

  .rank-core strong {
    font-size: 42px;
  }

  .tag-a {
    left: 0;
    top: 12%;
  }

  .tag-b {
    right: 0;
    bottom: 11%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 315px;
  }

  .split-section {
    padding-top: 0;
  }

  .panel {
    padding: 20px;
  }

  .match-row {
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    min-height: 74px;
  }

  .match-row .match-stat:nth-of-type(2),
  .match-row .match-stat:nth-of-type(3) {
    display: none;
  }

  .match-chevron {
    display: none;
  }

  .weapon-row {
    grid-template-columns: 1fr 56px;
  }

  .weapon-stat:last-child {
    display: none;
  }

  .ranked-actions {
    flex-direction: column;
  }

  .signal-item {
    grid-template-columns: 92px 1fr 28px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}
