﻿/* ===========================
   BlitzTiers â€“ Main Stylesheet
   =========================== */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0B0B0B;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #222222;
  --accent: #FFD700;
  --accent2: #f5c400;
  --discord: #5865F2;
  --discord2: #4752c4;
  --text: #ffffff;
  --text2: #a0a0a0;
  --text3: #666666;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .6);
  --glow: 0 0 60px rgba(88, 101, 242, .15);

  /* Tier colors */
  --tier-ht1: #FFD700;
  --tier-lt1: #FFA500;
  --tier-ht2: #ef4444;
  --tier-lt2: #f97316;
  --tier-ht3: #a855f7;
  --tier-lt3: #8b5cf6;
  --tier-ht4: #3b82f6;
  --tier-lt4: #06b6d4;
  --tier-ht5: #22c55e;
  --tier-lt5: #6b7280;

  /* Gamemode Colors */
  --gm-bliss: #a78bfa;
  --gm-blitzmace: #FFD700;
  --gm-infuse: #22d3ee;
  --gm-strength: #ef4444;
  --gm-regear: #22c55e;
  --gm-quickdrop: #eab308;
  --gm-speed: #34d399;
  --gm-skywars: #60a5fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  transition: opacity .2s;
}

.logo:hover {
  opacity: .85;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text);
}

/* NAV */
.header-nav {
  display: flex;
  gap: .25rem;
  margin-right: auto;
}

.nav-link {
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text2);
  transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-link.active {
  color: var(--accent);
}

/* ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, filter .15s, box-shadow .15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-info {
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-info:hover {
  color: var(--text);
  border-color: #333;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 2px 12px rgba(88, 101, 242, .3);
}

.btn-discord:hover {
  background: var(--discord2);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(255, 215, 0, .25);
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 4px 24px rgba(255, 215, 0, .4);
}

.btn-lg {
  padding: .75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ===========================
   SEARCH
   =========================== */
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.search-wrap:focus-within {
  border-color: var(--accent);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: .4rem .75rem;
  min-width: 0;
  width: 180px;
}

.search-input::placeholder {
  color: var(--text3);
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem .6rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  transition: color .2s;
}

.search-btn:hover {
  color: var(--accent);
}

/* Large hero search */
.search-large {
  width: 100%;
  font-size: 1rem;
  padding: .85rem 1.2rem;
}

.search-btn-lg {
  flex-shrink: 0;
  border-radius: var(--radius-sm) !important;
}

/* ===========================
   HEX BACKGROUND
   =========================== */
.hex-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(88, 101, 242, .06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V50L28 34l28 16v34z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 215, 0, .08);
  border: 1px solid rgba(255, 215, 0, .2);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  animation: fadeUp .6s .1s ease both;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 1.2rem auto 2rem;
  animation: fadeUp .6s .2s ease both;
}

.hero-search {
  display: flex;
  gap: .75rem;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .35rem .35rem .35rem .75rem;
  animation: fadeUp .6s .3s ease both;
}

.hero-search:focus-within {
  border-color: var(--accent);
}

.hero-search .search-large {
  background: transparent;
  border: none;
  outline: none;
  padding: .5rem .25rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeUp .6s .4s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===========================
   SECTIONS GENERIC
   =========================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-sub {
  color: var(--text2);
  margin-top: .5rem;
}

/* ===========================
   GAMEMODE CARDS
   =========================== */
.gamemodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gamemode-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.gamemode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .02), transparent);
  pointer-events: none;
}

.gamemode-card:hover {
  transform: translateY(-3px);
  border-color: #333;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .04);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
}

.card-desc {
  color: var(--text3);
  font-size: .82rem;
  margin-top: .2rem;
}

.card-arrow {
  color: var(--text3);
  font-size: 1.1rem;
  transition: color .2s, transform .2s;
}

.gamemode-card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ===========================
   TIER BADGES (HOME)
   =========================== */
.tiers-section {
  background: var(--bg2);
}

.tiers-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tier-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}

.tier-badge-card:hover {
  transform: translateY(-4px);
}

.tier-label-big {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.tier-name {
  font-weight: 700;
  font-size: .95rem;
}

.tier-desc {
  color: var(--text3);
  font-size: .78rem;
  text-align: center;
}

/* Tier color classes */
.tier-ht1 .tier-label-big,
.tier-ht1-pip,
.tier-ht1-c {
  color: var(--tier-ht1);
}

.tier-lt1 .tier-label-big,
.tier-lt1-pip,
.tier-lt1-c {
  color: var(--tier-lt1);
}

.tier-ht2 .tier-label-big,
.tier-ht2-pip,
.tier-ht2-c {
  color: var(--tier-ht2);
}

.tier-lt2 .tier-label-big,
.tier-lt2-pip,
.tier-lt2-c {
  color: var(--tier-lt2);
}

.tier-ht3 .tier-label-big,
.tier-ht3-pip,
.tier-ht3-c {
  color: var(--tier-ht3);
}

.tier-lt3 .tier-label-big,
.tier-lt3-pip,
.tier-lt3-c {
  color: var(--tier-lt3);
}

.tier-ht4 .tier-label-big,
.tier-ht4-pip,
.tier-ht4-c {
  color: var(--tier-ht4);
}

.tier-lt4 .tier-label-big,
.tier-lt4-pip,
.tier-lt4-c {
  color: var(--tier-lt4);
}

.tier-ht5 .tier-label-big,
.tier-ht5-pip,
.tier-ht5-c {
  color: var(--tier-ht5);
}

.tier-lt5 .tier-label-big,
.tier-lt5-pip,
.tier-lt5-c {
  color: var(--tier-lt5);
}

.tier-ht1 {
  border-color: rgba(255, 215, 0, .25);
}

.tier-lt1 {
  border-color: rgba(255, 165, 0, .2);
}

.tier-ht2 {
  border-color: rgba(239, 68, 68, .25);
}

.tier-lt2 {
  border-color: rgba(249, 115, 22, .2);
}

.tier-ht3 {
  border-color: rgba(168, 85, 247, .25);
}

.tier-lt3 {
  border-color: rgba(139, 92, 246, .2);
}

.tier-ht4 {
  border-color: rgba(59, 130, 246, .25);
}

.tier-lt4 {
  border-color: rgba(6, 182, 212, .2);
}

.tier-ht5 {
  border-color: rgba(34, 197, 94, .25);
}

.tier-lt5 {
  border-color: rgba(107, 114, 128, .25);
}

/* ===========================
   CTA BOX
   =========================== */
.cta-section {
  padding-bottom: 6rem;
}

.cta-box {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, #141414, #111);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4rem 2rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, .15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  position: relative;
}

.cta-sub {
  color: var(--text2);
  max-width: 500px;
  margin: 1rem auto;
  position: relative;
}

.cta-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-top: 1.75rem;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-tagline {
  color: var(--text3);
  font-size: .85rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text3);
  font-size: .85rem;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text3);
  font-size: .78rem;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.page-sub {
  color: var(--text2);
  margin-top: .5rem;
}

/* ===========================
   LEADERBOARD PAGE
   =========================== */
.lb-section {
  padding-top: 2.5rem;
}

.mode-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.mode-tab {
  padding: .5rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}

.mode-tab:hover {
  color: var(--text);
  border-color: #333;
}

.mode-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.tier-filters {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-label {
  color: var(--text3);
  font-size: .85rem;
  margin-right: .25rem;
}

.tier-filter {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text2);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .85rem;
  cursor: pointer;
  transition: all .2s;
}

.tier-filter.active {
  background: var(--bg3);
  border-color: #444;
  color: var(--text);
}

.tier-pip {
  font-weight: 800;
  font-size: .85rem;
}

.lb-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table thead tr {
  background: var(--bg2);
}

.lb-table th {
  padding: .85rem 1.25rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}

.lb-table td {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  vertical-align: middle;
}

.lb-table tbody tr {
  background: var(--bg);
  transition: background .15s;
}

.lb-table tbody tr:hover {
  background: var(--bg2);
}

.lb-table tbody tr:last-child td {
  border-bottom: none;
}

.lb-rank {
  font-weight: 800;
  color: var(--text3);
  font-size: .85rem;
  width: 48px;
}

.lb-rank.gold {
  color: #FFD700;
}

.lb-rank.silver {
  color: #C0C0C0;
}

.lb-rank.bronze {
  color: #CD7F32;
}

.lb-player-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.lb-ign {
  font-weight: 700;
}

.tier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 1rem;
}

.tier-tag.ht1 {
  background: rgba(255, 215, 0, .15);
  color: var(--tier-ht1);
  border: 1px solid rgba(255, 215, 0, .35);
}

.tier-tag.lt1 {
  background: rgba(255, 165, 0, .12);
  color: var(--tier-lt1);
  border: 1px solid rgba(255, 165, 0, .25);
}

.tier-tag.ht2 {
  background: rgba(239, 68, 68, .15);
  color: var(--tier-ht2);
  border: 1px solid rgba(239, 68, 68, .3);
}

.tier-tag.lt2 {
  background: rgba(249, 115, 22, .12);
  color: var(--tier-lt2);
  border: 1px solid rgba(249, 115, 22, .25);
}

.tier-tag.ht3 {
  background: rgba(168, 85, 247, .15);
  color: var(--tier-ht3);
  border: 1px solid rgba(168, 85, 247, .3);
}

.tier-tag.lt3 {
  background: rgba(139, 92, 246, .12);
  color: var(--tier-lt3);
  border: 1px solid rgba(139, 92, 246, .25);
}

.tier-tag.ht4 {
  background: rgba(59, 130, 246, .15);
  color: var(--tier-ht4);
  border: 1px solid rgba(59, 130, 246, .3);
}

.tier-tag.lt4 {
  background: rgba(6, 182, 212, .12);
  color: var(--tier-lt4);
  border: 1px solid rgba(6, 182, 212, .25);
}

.tier-tag.ht5 {
  background: rgba(34, 197, 94, .12);
  color: var(--tier-ht5);
  border: 1px solid rgba(34, 197, 94, .25);
}

.tier-tag.lt5 {
  background: rgba(107, 114, 128, .12);
  color: var(--tier-lt5);
  border: 1px solid rgba(107, 114, 128, .25);
}

.lb-mode-tag {
  font-size: .78rem;
  padding: .25rem .65rem;
  border-radius: 99px;
  background: var(--bg3);
  color: var(--text3);
  font-weight: 600;
}

.lb-date {
  color: var(--text3);
  font-size: .82rem;
}

.lb-loading {
  text-align: center;
  color: var(--text3);
  padding: 3rem;
}

.lb-empty-msg {
  text-align: center;
  color: var(--text3);
  margin-top: 2rem;
}

/* ===========================
   TIER DETAIL PAGE
   =========================== */
.tiers-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s;
}

.tier-detail-card:hover {
  transform: translateX(4px);
}

.tier-big-badge {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.tier-detail-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.tier-detail-info p {
  color: var(--text2);
  margin-bottom: .75rem;
  font-size: .95rem;
}

.tier-detail-info li {
  color: var(--text3);
  font-size: .88rem;
  padding: .2rem 0;
  padding-left: 1rem;
  position: relative;
  list-style: none;
}

.tier-detail-info li::before {
  content: 'â–¸';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ===========================
   MODALS
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: scaleIn .2s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-size: .85rem;
  padding: .25rem .5rem;
  cursor: pointer;
  transition: color .2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.modal-box p {
  color: var(--text2);
  margin-bottom: .75rem;
}

.modal-box h3 {
  margin: 1rem 0 .5rem;
  font-size: 1rem;
}

.modal-box ol {
  padding-left: 1.25rem;
  color: var(--text2);
}

.modal-box ol li {
  margin-bottom: .3rem;
  font-size: .9rem;
}

/* Player result card */
.player-card {
  text-align: center;
}

.player-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  margin: 0 auto 1rem;
}

.player-card-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.player-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}

.player-tier-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
  text-align: center;
}

.player-tier-mode {
  font-size: .75rem;
  color: var(--text3);
  margin-bottom: .25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.player-tier-val {
  font-size: 1.5rem;
  font-weight: 900;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: .75rem 1rem;
  }

  .header-actions {
    gap: .4rem;
  }

  .search-wrap {
    display: none;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .gamemodes-grid {
    grid-template-columns: 1fr;
  }

  .tiers-row {
    gap: .75rem;
  }

  .tier-badge-card {
    min-width: 100px;
    padding: 1.25rem 1rem;
  }

  .tier-detail-card {
    flex-direction: column;
  }

  .lb-table th:nth-child(4),
  .lb-table td:nth-child(4),
  .lb-table th:nth-child(5),
  .lb-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-nav {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    padding: .5rem;
    gap: .5rem;
  }

  .hero-search .btn {
    width: 100%;
    justify-content: center;
  }
}

.lb-tier-badges-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lb-tier-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.2rem 0.5rem;
  gap: 0.35rem;
  transition: border-color .2s;
  cursor: default;
}

.lb-tier-badge:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.gm-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  display: block;
  flex-shrink: 0;
}

.gm-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}