/* ==========================================================================
   Winnie Blues OSRS Clan - Master Design System & Stylesheet
   Crafted with custom CSS properties, glassmorphic panels, and OSRS aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  /* Winnie Blues Signature Colors */
  --bg-darkest: #070a11;
  --bg-dark: #0b101c;
  --bg-surface: #10182b;
  --bg-surface-elevated: #16223d;
  --bg-glass: rgba(16, 24, 43, 0.75);
  --bg-glass-hover: rgba(26, 38, 66, 0.85);

  /* Accents */
  --blue-primary: #2563eb;
  --blue-light: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.35);
  --blue-soft: #60a5fa;
  --blue-badge: rgba(37, 99, 235, 0.2);

  /* OSRS Gold / Gilded Tones */
  --gold-primary: #fbbf24;
  --gold-bright: #fef08a;
  --gold-dark: #d97706;
  --gold-glow: rgba(251, 191, 36, 0.3);
  --gold-badge: rgba(245, 158, 11, 0.15);

  /* Functional Accents */
  --green-xp: #10b981;
  --green-glow: rgba(16, 185, 129, 0.25);
  --purple-raid: #c084fc;
  --purple-glow: rgba(192, 132, 252, 0.35);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #fcd34d;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  --border-gold: rgba(251, 191, 36, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.7);
  --shadow-blue: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-purple: 0 0 35px rgba(192, 132, 252, 0.3);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-fantasy: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-mono { font-family: var(--font-mono); }
.font-fantasy { font-family: var(--font-fantasy); }
.text-gold { color: var(--gold-primary) !important; }
.text-blue { color: var(--blue-light) !important; }
.text-green { color: var(--green-xp) !important; }
.text-slate { color: var(--text-muted) !important; }
.font-bold { font-weight: 700; }

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--blue-glow);
  border: 1px solid var(--border-active);
  overflow: hidden;
  padding: 2px;
}

.brand-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 3px);
  display: block;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 40%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-primary);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  -webkit-text-fill-color: #fff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-btn {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-btn.active {
  color: #fff;
  background: var(--blue-badge);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Nav Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cc-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-cc-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-discord-nav {
  background: #5865F2;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-discord-nav:hover {
  background: #4752c4;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
  padding: 0.4rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.mobile-nav-drawer.open {
  display: flex;
}

/* ==========================================================================
   Loot Ticker Stream
   ========================================================================== */

.ticker-section {
  background: rgba(11, 16, 28, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  z-index: 2;
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  padding-left: 1.5rem;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  transform: scale(1.03);
}

.ticker-item.megarare {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(192, 132, 252, 0.1);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

.ticker-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ticker-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.ticker-player {
  font-weight: 700;
  color: #fff;
}

.ticker-drop {
  color: var(--text-muted);
}

.ticker-val {
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-banner {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-active);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 20%, #38bdf8 60%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px var(--blue-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
}

.btn-primary-sm {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px var(--blue-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-ghost-sm:hover {
  color: #fff;
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

/* Hero Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  opacity: 0;
  transition: var(--transition);
}

.hero-stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-md);
}

.hero-stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Active Competitions Quick Highlights
   ========================================================================== */

.competitions-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.comp-card-spotlight {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.comp-card-spotlight:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--gold-glow);
}

.comp-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.comp-title {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.comp-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.comp-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.comp-metric {
  display: flex;
  flex-direction: column;
}

.comp-metric .lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.comp-metric .val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */

.section-head-wrap {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-tag-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  display: block;
}

.section-headline {
  font-size: 2.1rem;
  font-weight: 900;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  max-width: 650px;
}

.page-section {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

.page-section.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hall of Fame & Hiscores Table
   ========================================================================== */

.hiscores-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.hiscores-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.metric-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  max-width: 100%;
}

.metric-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: var(--border-active);
}

.metric-chip.active {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-light);
  box-shadow: 0 0 15px var(--blue-glow);
}

.hiscores-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  gap: 0.5rem;
  width: 260px;
}

.hiscores-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
  font-family: var(--font-body);
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-badge.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green-xp);
}

/* Hiscores Table */
.hiscores-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hiscores-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hiscores-table th {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.hiscores-table td {
  padding: 1rem 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hiscore-row {
  transition: var(--transition);
  cursor: pointer;
}

.hiscore-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hiscore-row.top-rank {
  background: rgba(251, 191, 36, 0.03);
}

.col-rank {
  width: 80px;
  font-size: 1.05rem;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-icon {
  font-size: 1.25rem;
}

.player-text {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

.player-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.loading-row, .empty-row {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--text-muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Interactive 5x5 Bingo Board
   ========================================================================== */

.bingo-standings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.bingo-team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.team-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.team-pts {
  font-weight: 800;
  color: var(--gold-primary);
}

.team-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.team-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.bingo-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 135px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bingo-tile:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.bingo-tile.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.bingo-tile.completed::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 15px var(--green-glow);
  pointer-events: none;
}

.bingo-tile.dimmed {
  opacity: 0.35;
  filter: grayscale(0.7);
}

.bingo-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.bingo-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.bingo-pts {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.bingo-claim-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-xp);
  margin-top: 0.3rem;
}

.bingo-unclaimed {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ==========================================================================
   Loot Feed & Drops Gallery (>= 1M GP)
   ========================================================================== */

.loot-filters-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.loot-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.loot-filter-btn:hover {
  color: #fff;
  border-color: var(--border-active);
}

.loot-filter-btn.active {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-light);
  box-shadow: 0 0 15px var(--blue-glow);
}

.loot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.loot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.loot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.loot-card.megarare-card {
  border-color: rgba(192, 132, 252, 0.4);
  background: linear-gradient(135deg, rgba(16, 24, 43, 0.95), rgba(192, 132, 252, 0.08));
  box-shadow: var(--shadow-purple);
}

.loot-img-box {
  width: 58px;
  height: 58px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loot-img-box img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.loot-body {
  flex: 1;
  min-width: 0;
}

.loot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.loot-player {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.loot-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.loot-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loot-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.loot-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loot-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.megarare-badge {
  background: rgba(192, 132, 252, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--purple-raid);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==========================================================================
   Clan Events Schedule & Ranks
   ========================================================================= */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.event-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.event-tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-badge);
  color: var(--blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.event-world {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.event-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.event-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-primary);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  color: var(--text-dim);
}

/* Clan Ranks Grid */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.rank-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: var(--transition);
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.rank-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.rank-badge {
  font-size: 2rem;
}

.rank-title-box h4 {
  font-size: 1.15rem;
}

.rank-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.rank-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rank-req {
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.req-label {
  color: var(--text-dim);
  margin-right: 0.35rem;
}

/* Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.rule-card:hover {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

.rule-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
}

.rule-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.rule-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-dim);
  padding: 0.2rem 0.5rem;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #fff;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.tag-pill.gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-primary); border: 1px solid var(--border-gold); }
.tag-pill.blue { background: rgba(37, 99, 235, 0.15); color: var(--blue-light); border: 1px solid var(--border-active); }
.tag-pill.green { background: rgba(16, 185, 129, 0.15); color: var(--green-xp); border: 1px solid rgba(16, 185, 129, 0.4); }

/* Drop Detail Modal */
.drop-detail-view {
  text-align: center;
}

.drop-large-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-active);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-large-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.drop-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.drop-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.drop-info-item .lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
}

.drop-info-item .val {
  font-size: 1rem;
  color: #fff;
}

.drop-detail-footer, .profile-actions, .bingo-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Profile Modal */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.profile-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px var(--blue-glow);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  animation: slideToast 0.2s ease;
}

.toast.visible {
  display: flex;
}

@keyframes slideToast {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
  margin-top: 5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 380px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .competitions-banner-grid {
    grid-template-columns: 1fr;
  }
  .bingo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bingo-standings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .header-actions .btn-discord-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bingo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bingo-standings-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
