:root {
  --gold: #e8b94a;
  --gold-bright: #f5d060;
  --gold-dark: #a07820;
  --red: #cc1a1a;
  --red-bright: #ff2222;
  --bg: #0a0a0a;
  --bg2: #111108;
  --bg3: #1a1a12;
  --text: #e8e0cc;
  --text-dim: #8a8070;
  --green: #44cc44;
  --bevel-light: #c8b060;
  --bevel-dark: #3a2a00;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--gold-dark) #050400;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(232,185,74,0.02) 40px, rgba(232,185,74,0.02) 41px),
    linear-gradient(rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.94)),
    url("cage-texture.svg");
  background-color: var(--bg);
  background-size: auto, auto, auto, 96px 96px;
  background-attachment: scroll, scroll, scroll, fixed;
  color: var(--text);
  font-family: "Courier Prime", Courier, monospace;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.05) 3px, rgba(0, 0, 0, 0.05) 4px);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050400;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border: 1px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #1a0000 0%, #000 60%);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 0 var(--gold-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 16px;
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--gold);
}

.site-logo:hover {
  text-decoration: none;
}

.logo-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  background: var(--red);
  border: 2px solid var(--gold-bright);
  box-shadow: 2px 2px 0 #000;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
}

.logo-text {
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 #000, 2px 2px 0 #550000;
}

.live-dot {
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  animation: blink 1s step-end infinite;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav-btn,
.tab,
.select,
.select-label select {
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  background: rgba(38, 34, 29, 0.92);
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08), inset -1px -1px 0 rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: all 0.05s;
}

.nav-btn {
  min-width: 0;
}

.nav-btn:hover,
.tab:hover {
  background: #211d18;
  color: var(--gold-bright);
  text-decoration: none;
}

.nav-btn.active,
.tab.active {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  background: var(--red);
  color: #fff;
}

.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  border-top: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  padding: 2px 0;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 28s linear infinite;
  color: var(--gold);
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 2px;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

@keyframes flicker1 {
  0%, 100% { text-shadow: 0 0 10px #ff4400, 0 0 30px #ff2200, 0 0 60px #ff0000, 2px -2px 0 #cc0000; }
  25% { text-shadow: 0 0 15px #ff6600, 0 0 40px #ff3300, 0 0 80px #ff1100, -1px -3px 0 #aa0000; }
  50% { text-shadow: 0 0 8px #ff3300, 0 0 25px #ff1100, 0 0 50px #dd0000, 1px -2px 0 #ee0000; }
  75% { text-shadow: 0 0 20px #ff5500, 0 0 45px #ff2200, 0 0 90px #ff0000, 0 -3px 0 #bb0000; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.app {
  min-height: 70vh;
}

.main-content,
.band {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-band,
.fighter-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 40px max(24px, calc((100vw - 1200px) / 2 + 24px)) 32px;
  border-bottom: 0;
  background:
    linear-gradient(rgba(7, 7, 7, 0.88), rgba(7, 7, 7, 0.88)),
    url("cage-texture.svg"),
    radial-gradient(ellipse at 18% 38%, rgba(201, 48, 44, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse at 84% 38%, rgba(220, 199, 122, 0.08) 0%, transparent 62%);
  background-size: auto, 96px 96px, auto, auto;
}

.fighter-head > div,
.hero-copy,
.hero-stats {
  min-width: 0;
}

.hero-band::after,
.fighter-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent);
}

.hero-copy,
.fighter-head > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--green);
  text-transform: uppercase;
}

.activity-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border: 2px solid;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 2px;
}

.activity-badge.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(68, 204, 68, 0.08);
}

.activity-badge.inactive {
  border-color: var(--red);
  color: #fff;
  background: rgba(204, 26, 26, 0.82);
}

.hero-copy h1,
.fighter-head h1,
.fire-title {
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  -webkit-text-stroke: 2px #cc0000;
  animation: flicker1 0.15s infinite alternate;
  overflow-wrap: anywhere;
}

.fighter-head h1 {
  font-size: clamp(48px, 8vw, 94px);
}

.dek,
.hero-desc {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--text-dim);
  font-family: "Courier Prime", Courier, monospace;
  font-size: 17px;
  line-height: 1.45;
}

.nickname {
  margin: 10px 0 0;
  color: var(--gold-bright);
  font-family: "VT323", monospace;
  font-size: 26px;
  letter-spacing: 2px;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat {
  min-width: 140px;
  padding: 14px 16px 12px;
  text-align: left;
  background: #0a0800;
  border: 3px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1), inset -1px -1px 0 rgba(0,0,0,0.5);
}

.stat span {
  display: block;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  color: var(--gold-bright);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(243, 225, 163, 0.18);
}

.band {
  padding: 30px 0;
  background: transparent;
  border-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.section-title {
  margin: 0;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(36px, 4vw, 44px);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, 0 0 20px rgba(232, 185, 74, 0.3);
}

.section-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 14px;
  letter-spacing: 2px;
  animation: blink 1.5s step-end infinite;
}

.divider {
  height: 6px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent);
}

.search-wrap {
  max-width: 760px;
  margin-bottom: 20px;
}

.search {
  width: 100%;
  max-width: 760px;
  margin-bottom: 0;
  padding: 10px 16px;
  outline: none;
  background: #000;
  border: 3px solid rgba(220, 199, 122, 0.92);
  border-radius: 4px;
  color: var(--text);
  caret-color: var(--gold-bright);
  font-family: "Courier Prime", Courier, monospace;
  font-size: 18px;
  letter-spacing: 0;
}

.search::placeholder {
  color: rgba(235, 225, 189, 0.5);
}

.search:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(243, 225, 163, 0.2), 0 0 24px rgba(220, 199, 122, 0.08);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 0;
}

.result-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.fighter-result {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 10px 12px;
  background: rgba(28, 26, 24, 0.88);
  border: 2px solid rgba(220, 199, 122, 0.38);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.05s;
}

.fighter-result:hover {
  transform: translateY(-1px);
  background: rgba(35, 33, 30, 0.95);
  border-color: rgba(243, 225, 163, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.fighter-result:active {
  transform: translateY(0);
  box-shadow: inset 0 0 0 1px rgba(243, 225, 163, 0.25);
}

.fighter-result strong {
  padding-right: 30px;
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000;
}

.fighter-result span {
  color: var(--text-dim);
  font-family: "Courier Prime", Courier, monospace;
  font-size: 13px;
  line-height: 1.3;
}

.fighter-elo-label {
  color: rgba(235, 225, 189, 0.72) !important;
}

.fighter-result .elo-mini {
  align-self: end;
  color: var(--gold-bright);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
}

.fighter-result .rank-mini {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid rgba(220, 199, 122, 0.45);
}

.tab {
  position: relative;
  bottom: -2px;
  margin-right: 4px;
  border-bottom: none;
  background: rgba(38, 34, 29, 0.92);
  color: var(--text-dim);
  padding: 8px 20px;
  border-radius: 4px 4px 0 0;
}

.tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold-bright) var(--gold-dark) var(--gold) var(--gold-bright);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(220, 199, 122, 0.35);
  border-top: none;
  background: rgba(8, 8, 8, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: "Courier Prime", Courier, monospace;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  padding: 8px 12px;
  text-align: left;
  background: linear-gradient(180deg, #d23931 0%, #b52b27 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(232, 185, 74, 0.1);
  color: var(--text);
  vertical-align: middle;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

tr:hover td {
  background: rgba(220, 199, 122, 0.08);
}

td:first-child,
td:nth-child(2) a,
td a {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
}

td:nth-child(3),
td:nth-child(4) {
  color: var(--gold-bright);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.muted {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
}

.up {
  color: var(--green);
  font-weight: 700;
}

.down {
  color: var(--red-bright);
  font-weight: 700;
}

.ad-slot {
  display: grid;
  gap: 10px;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px 18px;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(220, 199, 122, 0.4);
  border-radius: 4px;
  color: var(--gold);
  text-align: center;
}

.ad-slot-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ad-slot-frame {
  display: grid;
  place-items: center;
  min-height: min(220px, max(var(--slot-height, 90px), 90px));
  padding: 8px;
  background: rgba(18, 16, 14, 0.9);
  border: 2px dashed rgba(220, 199, 122, 0.65);
  border-radius: 4px;
}

.ad-slot-placeholder {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
}

.ad-slot-placeholder strong {
  color: var(--gold-bright);
  font-size: 24px;
  letter-spacing: 3px;
}

.ad-slot-placeholder span:last-child {
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 2px;
}

.ad-slot-unit {
  width: min(100%, var(--slot-width, 970px));
  min-height: var(--slot-height, 90px);
}

.fighter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.fighter-meta > * {
  padding: 6px 10px;
  background: rgba(28, 26, 24, 0.88);
  border: 1px solid rgba(220, 199, 122, 0.35);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

.instagram-panel {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(220, 199, 122, 0.3);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.instagram-panel h2 {
  margin-top: 0;
}

.instagram-embed-shell {
  min-width: 0;
}

.instagram-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(28, 26, 24, 0.88);
  border: 1px solid rgba(220, 199, 122, 0.3);
  border-radius: 4px;
}

.instagram-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  border: 2px solid var(--gold);
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 #000;
}

.instagram-profile-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 18px;
}

.instagram-profile-card span:not(.instagram-mark) {
  display: block;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 15px;
  letter-spacing: 1px;
}

.instagram-profile-card a {
  padding: 6px 10px;
  border: 1px solid rgba(220, 199, 122, 0.45);
  border-radius: 4px;
  color: var(--green);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.instagram-media {
  max-width: 540px;
  min-width: 0 !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  background: #0a0800 !important;
  border-color: var(--gold-dark) !important;
}

.chart-wrap {
  padding: 16px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(220, 199, 122, 0.3);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.division-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.division-chip {
  padding: 7px 12px 6px;
  background: rgba(28, 26, 24, 0.88);
  border: 1px solid rgba(220, 199, 122, 0.35);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

.division-chip.active {
  background: rgba(88, 12, 12, 0.94);
  border-color: rgba(243, 225, 163, 0.92);
  color: var(--gold-bright);
}

.chart-context {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 1px;
}

.elo-svg,
.chart {
  width: 100%;
  height: auto;
  min-height: 220px;
  background: #050500;
  border: 1px solid rgba(220, 199, 122, 0.35);
  border-radius: 4px;
}

.elo-svg {
  display: block;
  min-height: 320px;
}

.chart-bg {
  fill: #050500;
}

.grid-line {
  stroke: rgba(232, 185, 74, 0.13);
  stroke-width: 1;
}

.axis-line {
  stroke: var(--gold-dark);
  stroke-width: 3;
}

.axis-label,
.axis-title {
  fill: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 1px;
}

.axis-title {
  font-size: 20px;
}

.chart-series polyline {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(232, 185, 74, 0.24));
}

.chart-series circle {
  stroke: #000;
  stroke-width: 2;
}

.chart-point-label {
  pointer-events: none;
}

.chart-point-label rect {
  fill: #070700;
  stroke-width: 2;
  filter: drop-shadow(2px 2px 0 #000);
}

.chart-point-label text {
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

.chart-point-label.division rect {
  stroke: var(--gold-bright);
}

.chart-point-label.division text {
  fill: var(--gold-bright);
}

.chart-point-label.overall rect {
  stroke: var(--green);
}

.chart-point-label.overall text {
  fill: var(--green);
}

.chart-point-label.division-alt rect {
  stroke: var(--red);
}

.chart-point-label.division-alt text {
  fill: var(--red);
}

.chart-series.division polyline,
.legend-line.division {
  stroke: var(--gold-bright);
}

.chart-series.division circle {
  fill: var(--gold-bright);
}

.chart-series.division-alt polyline,
.legend-line.division-alt {
  stroke: var(--red);
}

.chart-series.division-alt circle {
  fill: var(--red);
}

.chart-series.overall polyline,
.legend-line.overall {
  stroke: var(--green);
}

.chart-series.overall circle {
  fill: var(--green);
}

.legend-line {
  stroke-width: 5;
}

.chart line {
  stroke: var(--gold-dark);
  stroke-width: 3;
}

.chart polyline {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 5;
}

.chart text {
  fill: var(--text-dim);
  font-size: 16px;
}

.select-label {
  display: inline-grid;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.select {
  min-width: 260px;
  padding-right: 32px;
  outline: none;
}

.lineage {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lineage-step {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid rgba(232, 185, 74, 0.16);
}

.lineage-step time {
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 18px;
}

.site-footer {
  margin-top: 28px;
  padding: 20px 24px;
  border-top: 6px solid var(--gold-dark);
  background:
    linear-gradient(rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.96)),
    url("cage-texture.svg");
  background-size: auto, 96px 96px;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
}

.site-footer .ad-slot {
  margin: 0 auto 16px;
  max-width: 980px;
}

.site-footer .ad-slot-frame {
  min-height: max(var(--slot-height, 90px), 90px);
}

.visitor-counter {
  display: none;
}

.counter-digits {
  display: none;
}

.legacy-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 12px;
  background: #000;
  border: 2px solid rgba(220, 199, 122, 0.45);
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 16px;
}

.legacy-counter .counter-digits {
  padding: 2px 6px;
  background: #001100;
  border: 1px inset #003300;
  font-size: 20px;
  letter-spacing: 4px;
}

.best-viewed {
  animation: blink 2s step-end infinite;
}

.loading,
.error {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  padding: 24px;
  background: #0a0800;
  border: 3px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  color: var(--green);
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 2px;
}

code {
  color: var(--green);
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .hero-band,
  .fighter-head,
  .instagram-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-band,
  .fighter-head {
    gap: 16px;
    padding: 28px 16px 22px;
  }

  .instagram-profile-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .instagram-profile-card a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .ad-slot-meta {
    flex-direction: column;
    align-items: center;
  }

  .site-logo,
  .site-nav {
    justify-content: center;
  }

  .site-logo {
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .logo-text {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .logo-badge {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .live-dot {
    width: 100%;
    text-align: center;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-btn {
    text-align: center;
    padding: 6px 10px;
    font-size: 16px;
    letter-spacing: 1px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat {
    min-width: 0;
    flex: 1 1 120px;
    padding: 8px;
  }

  .stat strong {
    font-size: 28px;
  }

  .hero-copy h1,
  .fire-title {
    font-size: clamp(40px, 14vw, 56px);
    -webkit-text-stroke: 1px #cc0000;
    letter-spacing: 2px;
  }

  .fighter-head h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .dek,
  .hero-desc {
    font-size: 15px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-title {
    font-size: clamp(28px, 9vw, 36px);
    letter-spacing: 2px;
  }

  .result-grid,
  .result-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fighter-result {
    min-height: 96px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab {
    margin-right: 0;
    text-align: center;
  }

  .lineage-step {
    grid-template-columns: 1fr;
  }

  .fighter-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fighter-meta > * {
    min-width: 0;
    text-align: center;
  }

  .search-wrap {
    max-width: none;
  }

  .search {
    font-size: 16px;
    padding: 10px 12px;
  }

  .select-label {
    width: 100%;
  }

  .select {
    min-width: 0;
    width: 100%;
  }

  table {
    min-width: 620px;
    font-size: 12px;
  }

  th {
    padding: 8px 10px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  td {
    padding: 8px 10px;
  }

  td:nth-child(3),
  td:nth-child(4) {
    font-size: 18px;
  }

  .chart-wrap {
    padding: 10px;
  }

  .elo-svg {
    min-height: 240px;
  }

  .axis-label,
  .axis-title {
    font-size: 16px;
  }

  .chart-point-label text {
    font-size: 13px;
  }

  .ad-slot {
    width: min(1200px, calc(100% - 20px));
    padding: 12px;
  }

  .site-footer {
    padding: 18px 14px 24px;
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media (max-width: 430px) {
  .result-grid,
  .result-grid.wide {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
  }

  .site-nav,
  .tabs,
  .fighter-meta {
    grid-template-columns: 1fr;
  }

  .main-content,
  .band,
  .loading,
  .error,
  .ad-slot {
    width: min(1200px, calc(100% - 16px));
  }

  .hero-band,
  .fighter-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-title {
    font-size: 28px;
  }

  .fighter-result strong {
    font-size: 13px;
    padding-right: 24px;
  }

  .fighter-result span {
    font-size: 12px;
  }

  table {
    min-width: 560px;
  }

  .chart-context {
    font-size: 16px;
  }
}
