/* ── DOTA 2 AUSTRALIA (D2AU) GLOBAL STYLESHEET ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Barlow+Condensed:ital,wght@0,600;0,700;1,600;1,700&display=swap');

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

:root {
  /* Deep Dota Atmospheric Color Palette */
  --bg: #07080c;
  --bg-subtle: #0b0d14;
  --surface: rgba(16, 20, 31, 0.85);
  --surface-hover: rgba(24, 30, 48, 0.92);
  --surface-solid: #121624;

  --border: #232738;
  --border-light: #343c52;
  --border-gold: #c89528;
  --border-gold-bright: #f5c453;
  --border-red: #e52b2b;
  --border-cyan: #00e5ff;
  --border-green: #81c784;

  --text: #f3f5f9;
  --text-muted: #949bb2;
  --text-subdued: #5e657c;

  /* Accent Colors */
  --red: #e52b2b;
  --red-hover: #ff3b30;
  --red-bg: rgba(229, 43, 43, 0.15);

  --radiant-cyan: #00e5ff;
  --radiant-bg: rgba(0, 229, 255, 0.12);

  --aegis-gold: #f5c453;
  --aegis-gold-dark: #c89528;
  --gold-bg: rgba(245, 196, 83, 0.12);

  --discord: #5865f2;
  --discord-hover: #4752c4;

  --max-width: 1180px;

  /* Global Typography System (Barlow System) */
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-condensed: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Strict Weight Cap: Maximum 700 */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-glow-red: 0 0 25px rgba(229, 43, 43, 0.3);
  --shadow-glow-gold: 0 0 30px rgba(245, 196, 83, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 43, 43, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--fw-regular); /* Barlow 400 */
  font-size: 16.5px; /* Body: 16-17px */
  line-height: 1.6; /* Body line-height: 1.55-1.65 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── GLOBAL HEADINGS HIERARCHY ── */

/* Major page titles & hero headings: Barlow Condensed 600-700, Desktop 52-58px, Mobile 36-40px */
h1, .hero-title, .page-title {
  font-family: var(--font-condensed);
  font-weight: var(--fw-bold); /* Barlow Condensed 700 */
  font-size: clamp(38px, 5vw, 54px); /* Desktop 54px, Mobile 38px */
  line-height: 1.08; /* Headings: 1.0-1.15 */
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Major headings & section titles: Barlow Condensed 600-700, H2 32-38px */
h2, .section-title {
  font-family: var(--font-condensed);
  font-weight: var(--fw-bold); /* Barlow Condensed 700 */
  font-size: clamp(28px, 3.5vw, 35px); /* H2: 32-38px (35px) */
  line-height: 1.12; /* Headings: 1.0-1.15 */
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Card headings: Barlow 600, H3 20-24px */
h3, .card-title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold); /* Barlow 600 */
  font-size: 22px; /* H3: 20-24px */
  line-height: 1.25;
  letter-spacing: normal;
  color: var(--text);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold); /* Barlow 600 */
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--text);
}

p, .card-desc, .hero-body, .section-intro {
  font-family: var(--font-body);
  font-weight: var(--fw-regular); /* Barlow 400 */
  font-size: 16.5px; /* Body: 16-17px */
  line-height: 1.6; /* Line height 1.55-1.65 */
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding-top: 70px;
}

section {
  padding: 50px 0;
  position: relative;
}

section.compact {
  padding: 30px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-condensed);
  font-size: clamp(28px, 3.5vw, 35px);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, #ffffff 40%, #ffd778 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 16.5px;
  font-weight: var(--fw-regular);
  margin-top: 4px;
}

/* ── NAVIGATION ── */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(7, 8, 12, 0.92);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.site-nav.scrolled {
  background: rgba(7, 8, 12, 0.98);
  border-bottom: 2px solid var(--border-gold);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 196, 83, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-condensed);
  font-size: 1.6rem;
  font-weight: var(--fw-bold); /* Barlow Condensed 700 */
  letter-spacing: normal;
  color: #fff;
  text-shadow: none;
}

.nav-brand span {
  color: #fff;
  letter-spacing: normal;
}

.nav-brand img,
.nav-brand svg {
  width: auto;
  height: 32px;
  max-width: 68px;
  object-fit: contain;
  filter: none;
  transition: none;
}

.nav-brand:hover img,
.nav-brand:hover svg {
  transform: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-item {
  position: relative;
}

/* Navigation: Barlow 500-600, 14-15px */
.nav-link {
  font-family: var(--font-body);
  font-size: 14.5px; /* Nav: 14-15px */
  font-weight: var(--fw-semibold); /* Barlow 600 */
  letter-spacing: normal; /* No excessive letter spacing */
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--aegis-gold));
  box-shadow: 0 0 8px var(--red);
}

/* Nav Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(14, 18, 28, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  list-style: none;
  display: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  backdrop-filter: blur(12px);
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.dropdown-menu a:hover {
  background-color: var(--surface-hover);
  color: var(--aegis-gold);
  padding-left: 20px;
}

/* Nav Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(16, 20, 31, 0.85);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: rgba(245, 196, 83, 0.12);
  border-color: var(--border-gold);
  color: var(--aegis-gold);
  box-shadow: 0 0 14px rgba(245, 196, 83, 0.3);
  transform: translateY(-2px);
}

.nav-search-btn:active {
  transform: translateY(0);
}

.nav-search-btn:focus-visible {
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 0 2px rgba(245, 196, 83, 0.4);
}

.nav-search-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-search-btn:hover .nav-search-icon {
  transform: scale(1.1);
  stroke: var(--aegis-gold);
}

/* ── TOP RIGHT DISCORD BUTTON (D2AU AEGIS GOLD OUTLINE THEME) ── */
.nav-discord-btn,
.btn-discord-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(16, 20, 31, 0.85);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-family: var(--font-condensed);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 0 12px rgba(245, 196, 83, 0.18);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.nav-discord-btn .discord-icon,
.btn-discord-outline .discord-icon {
  width: 19px;
  height: 15px;
  fill: var(--aegis-gold);
  flex-shrink: 0;
  transition: fill 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.nav-discord-btn:hover,
.btn-discord-outline:hover {
  background: rgba(245, 196, 83, 0.12);
  border-color: var(--border-gold-bright);
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(245, 196, 83, 0.45), inset 0 0 10px rgba(245, 196, 83, 0.15);
  transform: translateY(-2px);
}

.nav-discord-btn:hover .discord-icon,
.btn-discord-outline:hover .discord-icon {
  fill: #ffd778;
  filter: drop-shadow(0 0 6px rgba(245, 196, 83, 0.75));
  transform: scale(1.08);
}

.nav-discord-btn:active,
.btn-discord-outline:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(245, 196, 83, 0.25);
}

.search-kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(7, 8, 12, 0.98);
  border-bottom: 2px solid var(--border-gold);
  padding: 16px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  padding: 8px 0;
}

.mobile-menu a.active {
  color: var(--aegis-gold);
}

.mobile-menu-divider {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-subdued);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── UNIFIED HERO & PAGE-HEADER TOP BANNER (QUEEN OF PAIN BACKGROUND & SAME DIMENSIONS) ── */
.hero,
.page-header {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 30px 0 34px;
  background-image: 
    linear-gradient(180deg, rgba(7, 8, 12, 0.45) 0%, rgba(7, 8, 12, 0.95) 100%),
    url('assets/hero_bg_banner.jpg');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.page-header {
  min-height: 185px;
  padding: 26px 0 30px;
}

.page-header .hero-title {
  font-size: clamp(24px, 3.2vw, 34px) !important;
  line-height: 1.15;
  margin-bottom: 6px !important;
}

.page-header .hero-body {
  font-size: 14.5px !important;
  line-height: 1.45;
  margin-bottom: 0 !important;
}

.hero::before,
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 40%, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 60%, rgba(229, 43, 43, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero .container,
.page-header .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

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

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-condensed);
  font-size: clamp(30px, 3.8vw, 42px); /* Compact & punchy */
  font-weight: var(--fw-bold); /* Barlow Condensed 700 */
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 30%, #f5c453 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
  letter-spacing: -0.01em;
}

.hero-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-regular); /* Barlow 400 */
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Floating Character Visual Overlay */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-character-img {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 83, 0.3);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(245, 196, 83, 0.25));
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

/* ── BUTTONS (Barlow 500-600, 14-15px) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14.5px; /* Nav/buttons: 14-15px */
  font-weight: var(--fw-semibold); /* Barlow 600 */
  letter-spacing: normal; /* Removed excessive letter spacing */
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary, .btn-gold {
  background: linear-gradient(135deg, #f5c453 0%, #c89528 100%);
  color: #07080c;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(245, 196, 83, 0.3);
}

.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(135deg, #ffd778 0%, #e0aa35 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
  color: #000;
}

.btn-red {
  background: linear-gradient(135deg, #e52b2b 0%, #b31e1e 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 43, 43, 0.3);
}

.btn-red:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #cc2424 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-gold);
  color: var(--aegis-gold);
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: var(--discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
}

/* ── CARDS & GRIDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  transition: background 0.3s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 196, 83, 0.15);
}

.card:hover::before {
  background: linear-gradient(90deg, transparent, var(--aegis-gold), transparent);
}

/* Static non-interactive cards (e.g. Skill Division badges) — no hover animations */
.card-static,
.skill-division-card {
  transition: none !important;
  cursor: default;
}

.card-static::before,
.skill-division-card::before {
  display: none !important;
}

.card-static:hover,
.skill-division-card:hover {
  background: var(--surface) !important;
  transform: none !important;
  box-shadow: var(--shadow-card) !important;
  transition: none !important;
}

.card-static:hover::before,
.skill-division-card:hover::before {
  display: none !important;
}

/* Card headings: Barlow 600, H3 20-24px */
.card-title {
  font-family: var(--font-body);
  font-size: 22px; /* H3: 20-24px */
  font-weight: var(--fw-semibold); /* Barlow 600 */
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: normal;
  line-height: 1.25;
}

.card-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-regular); /* Barlow 400 */
  color: var(--text-muted);
  font-size: 16.5px; /* Body: 16-17px */
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Card with Hero Image Header */
.card-hero-header {
  position: relative;
  height: 135px;
  margin: -24px -24px 16px -24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-hero-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,0.1) 0%, rgba(16,20,31,0.95) 100%);
}

.card-hero-icon {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--aegis-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 10px rgba(229, 172, 59, 0.3);
  background: #080b12;
  object-fit: contain;
  padding: 3px;
  z-index: 2;
}

.card-hero-icon[src$=".svg"],
.card-hero-icon[src*="logo"] {
  object-fit: contain;
  padding: 3px;
}

/* ── ITEM ROWS (List Layout) ── */
.item-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  position: relative;
}

.item-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-gold);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 196, 83, 0.15);
}

.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.item-main {
  flex: 1;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.item-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: var(--fw-semibold); /* Barlow 600 */
  color: var(--text);
  margin-bottom: 4px;
}

.item-desc {
  font-size: 16px;
  font-weight: var(--fw-regular); /* Barlow 400 */
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── BADGES & TAGS (Small labels: 12-13px, tracking 0.06-0.08em) ── */
.meta-tag, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12.5px; /* Small labels: 12-13px */
  font-weight: var(--fw-semibold); /* Barlow 600 */
  text-transform: uppercase;
  letter-spacing: 0.07em; /* Category label tracking: 0.06-0.08em */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-live {
  background: var(--red-bg);
  border-color: var(--border-red);
  color: var(--red);
  box-shadow: 0 0 10px rgba(224, 49, 49, 0.35);
  animation: pulseLive 2s infinite;
}

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

.tag-d2au {
  background: var(--gold-bg);
  border-color: var(--border-gold);
  color: var(--aegis-gold);
}

.tag-open {
  background: var(--radiant-bg);
  border-color: var(--border-cyan);
  color: var(--radiant-cyan);
}

/* Rank Chips */
.rank-chip {
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.rank-immortal { background: rgba(245, 196, 83, 0.18); color: var(--aegis-gold); border-color: var(--border-gold); }
.rank-divine { background: rgba(188, 83, 245, 0.18); color: #d88bf8; border-color: rgba(188, 83, 245, 0.4); }
.rank-ancient { background: rgba(66, 165, 245, 0.18); color: #64b5f6; border-color: rgba(66, 165, 245, 0.4); }
.rank-legend { background: rgba(102, 187, 106, 0.18); color: #81c784; border-color: rgba(102, 187, 106, 0.4); }
.rank-archon { background: rgba(255, 167, 38, 0.18); color: #ffb74d; border-color: rgba(255, 167, 38, 0.4); }

/* ── TABS (Barlow 500-600, 14-15px) ── */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 8px 16px 12px;
  font-family: var(--font-body);
  font-size: 14.5px; /* Nav: 14-15px */
  font-weight: var(--fw-semibold); /* Barlow 600 */
  letter-spacing: normal;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text);
  border-bottom-color: var(--border-light);
}

.tab-btn.active {
  color: var(--aegis-gold);
  border-bottom-color: var(--aegis-gold);
  text-shadow: 0 0 10px rgba(245, 196, 83, 0.4);
}

/* ── TABLE STYLING ── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

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

.d2au-table th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
}

.d2au-table td {
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-regular);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.d2au-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

/* ── DOTABUFF PROFILE LINKS ── */
.dotabuff-link {
  color: var(--radiant-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.dotabuff-link:hover {
  color: #fff !important;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.dotabuff-link:hover strong {
  color: #fff !important;
  text-decoration: underline;
}

/* ── FILTERS & INPUTS ── */
.filters-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-btn {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.filter-btn.active {
  background: var(--surface-hover);
  border-color: var(--border-gold);
  color: var(--aegis-gold);
  box-shadow: 0 0 10px rgba(245, 196, 83, 0.2);
}

.form-input {
  background: rgba(16, 20, 31, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-regular);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 10px rgba(245, 196, 83, 0.25);
}

/* ── FOOTER ── */
.site-footer {
  background: #050609;
  border-top: 2px solid var(--border-gold);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  padding: 40px 0;
  margin-top: 60px;
}

hr, .divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
  width: 100%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h4 {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: #fff;
}

.footer-brand p {
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--aegis-gold);
}

/* ── EMPTY STATES ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: var(--fw-regular);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ── RESPONSIVE MEDIA QUERIES & MOBILE OPTIMIZATIONS ── */

/* 1. Global Touch & Inputs */
.form-input,
input[type="text"],
input[type="search"],
select,
textarea {
  font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
}

.tabs-nav,
.filters-row {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar,
.filters-row::-webkit-scrollbar {
  display: none;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 2. Tablet & Medium Screens (max-width: 900px) */
@media (max-width: 900px) {
  nav.site-nav {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-brand {
    font-size: 1.35rem;
    gap: 8px;
  }

  .nav-brand img, .nav-brand svg {
    width: auto;
    height: 28px;
    max-width: 58px;
    object-fit: contain;
  }

  .nav-menu {
    display: none !important;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.3rem;
    border-radius: var(--radius-sm);
  }

  .nav-search-btn {
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .search-kbd {
    display: none; /* Hide desktop shortcut hint on mobile */
  }

  .mobile-menu {
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--aegis-gold);
    gap: 8px;
  }

  .mobile-menu.active,
  .mobile-menu.open {
    display: flex !important;
  }

  .mobile-menu a {
    font-size: 15.5px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    min-height: 44px; /* Touch target standard */
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
  }

  .mobile-menu a:hover,
  .mobile-menu a.active {
    background: rgba(245, 196, 83, 0.12);
    border-color: var(--border-gold);
    color: var(--aegis-gold);
  }

  .mobile-discord-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    background: rgba(16, 20, 31, 0.9) !important;
    border: 1.5px solid var(--border-gold) !important;
    border-radius: var(--radius-sm) !important;
    color: #ffffff !important;
    font-family: var(--font-condensed) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 0 14px rgba(245, 196, 83, 0.2) !important;
    margin-top: 8px !important;
    transition: all 0.2s ease !important;
  }

  .mobile-discord-btn .discord-icon {
    width: 20px !important;
    height: 16px !important;
    fill: var(--aegis-gold) !important;
    flex-shrink: 0 !important;
    transition: fill 0.2s ease, filter 0.2s ease !important;
  }

  .mobile-discord-btn:hover,
  .mobile-discord-btn:active {
    background: rgba(245, 196, 83, 0.15) !important;
    border-color: var(--border-gold-bright) !important;
    box-shadow: 0 0 24px rgba(245, 196, 83, 0.45), inset 0 0 10px rgba(245, 196, 83, 0.2) !important;
  }

  .mobile-discord-btn:hover .discord-icon {
    fill: #ffd778 !important;
    filter: drop-shadow(0 0 6px rgba(245, 196, 83, 0.75)) !important;
  }

  .mobile-search-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 4px;
    font-size: 14.5px;
  }

  /* Hero Section Tablet Adjustments */
  .hero,
  .page-header {
    min-height: 170px;
    padding: 24px 0 28px;
  }

  .page-header {
    min-height: 155px;
    padding: 20px 0 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-badge-row {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: clamp(26px, 5.2vw, 34px);
    margin-bottom: 6px;
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 6px;
  }

  .hero-character-img {
    max-height: 130px;
  }
}

/* 3. Standard Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 36px 0;
  }

  section.compact {
    padding: 24px 0;
  }

  h1, .hero-title, .page-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .hero,
  .page-header {
    min-height: 150px;
    padding: 20px 0 22px;
  }

  .page-header {
    min-height: 140px;
    padding: 18px 0 20px;
  }

  .hero-character-img {
    max-height: 110px;
  }

  h2, .section-title {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  h3, .card-title {
    font-size: 19px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
  }

  .card {
    padding: 18px;
  }

  .card-hero-header {
    height: 110px;
    margin: -18px -18px 14px -18px;
  }

  .card-hero-icon {
    width: 42px;
    height: 42px;
    left: 14px;
    bottom: 8px;
  }

  .d2au-table th,
  .d2au-table td {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .tabs-nav {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 18px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 13.5px;
    min-height: 40px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12.5px;
    min-height: 38px;
  }

  .site-footer {
    padding: 30px 0;
    margin-top: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

/* 4. List Items & Stacked Components (max-width: 640px) */
@media (max-width: 640px) {
  .item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .item-row:hover {
    transform: none;
  }

  .item-row > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .item-row .btn {
    width: 100%;
    min-height: 42px;
  }

  .item-thumb {
    width: 48px;
    height: 48px;
  }

  .item-title {
    font-size: 18px;
  }
}

/* 5. Modals & Small Smartphones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-character-img {
    max-height: 90px;
  }

  .hero,
  .page-header {
    min-height: 130px;
    padding: 16px 0 18px;
  }

  .page-header {
    min-height: 120px;
    padding: 14px 0 16px;
  }

  .nav-search-btn {
    width: 34px;
    height: 34px;
  }

  .nav-search-icon {
    width: 15px;
    height: 15px;
  }

  .nav-discord-btn {
    padding: 6px 12px;
    font-size: 13.5px;
    gap: 7px;
  }

  .nav-discord-btn .discord-icon {
    width: 16px;
    height: 13px;
  }

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

  /* Universal Modal Responsive Padding & Heights */
  #siteSearchModal,
  div[id*="Modal"] {
    padding: 12px !important;
    align-items: flex-start !important;
    padding-top: 20px !important;
  }

  #siteSearchModal > div,
  div[id*="Modal"] > .card {
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 18px !important;
    width: 100% !important;
  }

  #siteSearchResults {
    max-height: calc(88vh - 130px) !important;
  }

  .btn {
    width: 100%;
  }
}

/* ── HORIZONTAL BRACKET TRACK & SINGLE-VIEW GRID (LOW SCROLLING DESIGN) ── */
.bracket-fit-grid,
.bracket-horizontal-track {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--aegis-gold) rgba(7, 8, 12, 0.8);
}

.bracket-fit-grid .round-column {
  flex: 1 1 0%;
  min-width: 135px;
}

.bracket-fit-grid::-webkit-scrollbar,
.bracket-horizontal-track::-webkit-scrollbar {
  height: 6px;
}

.bracket-fit-grid::-webkit-scrollbar-track,
.bracket-horizontal-track::-webkit-scrollbar-track {
  background: rgba(7, 8, 12, 0.8);
  border-radius: 4px;
}

.bracket-fit-grid::-webkit-scrollbar-thumb,
.bracket-horizontal-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--aegis-gold-dark), var(--aegis-gold));
  border-radius: 4px;
}

/* ── D2AU TOURNAMENT MATCH RESULTS SCOREBOARD ── */
.match-results-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.match-round-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
}

.match-round-header {
  padding: 10px 16px;
  background: rgba(245, 196, 83, 0.05);
  border-bottom: 1px solid rgba(245, 196, 83, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.match-scorecard-row {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transition: background 0.15s ease;
}

.match-scorecard-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.match-scorecard-row:last-child {
  border-bottom: none;
}

.match-scorecard-team-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  text-align: right;
}

.match-scorecard-team-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

.match-scorecard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 110px;
  padding: 0 8px;
}

.match-scorecard-score {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 680px) {
  .match-scorecard-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .match-scorecard-team-left {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
  .match-scorecard-center {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  }
}

/* ── D2AU EVENTS CALENDAR STYLES ── */
.cal-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(245, 196, 83, 0.12);
  border-color: var(--aegis-gold);
  color: var(--aegis-gold);
}

.cal-today-btn {
  background: rgba(245, 196, 83, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--aegis-gold);
}

.cal-today-btn:hover {
  background: var(--aegis-gold);
  color: #000;
}

.cal-month-title {
  font-family: var(--font-condensed);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.cal-jump-select {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
}

.cal-jump-select:focus {
  border-color: var(--aegis-gold);
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.cal-legend-dot.dot-league { background: var(--aegis-gold); box-shadow: 0 0 6px rgba(245, 196, 83, 0.6); }
.cal-legend-dot.dot-lan { background: var(--radiant-cyan); box-shadow: 0 0 6px rgba(0, 229, 255, 0.6); }
.cal-legend-dot.dot-inhouse { background: var(--discord); box-shadow: 0 0 6px rgba(88, 101, 242, 0.6); }
.cal-legend-dot.dot-stream { background: #46e372; box-shadow: 0 0 6px rgba(70, 227, 114, 0.6); }
.cal-legend-dot.dot-reg { background: var(--red); box-shadow: 0 0 6px rgba(229, 43, 43, 0.6); }

/* Ongoing leagues banner */
.cal-ongoing-banner {
  background: linear-gradient(90deg, rgba(200, 149, 40, 0.12) 0%, rgba(16, 20, 31, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--aegis-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-grid-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(7, 8, 12, 0.95);
  border-bottom: 1px solid var(--border);
}

.cal-weekday {
  padding: 12px 10px;
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border);
  gap: 1px;
}

.cal-day-cell {
  background: var(--surface);
  min-height: 110px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cal-day-cell:hover {
  background: var(--surface-hover);
}

.cal-day-cell.other-month {
  background: rgba(11, 13, 20, 0.65);
  opacity: 0.45;
}

.cal-day-cell.today {
  background: rgba(245, 196, 83, 0.06);
  border: 1.5px solid var(--aegis-gold);
  box-shadow: inset 0 0 10px rgba(245, 196, 83, 0.15);
  z-index: 2;
}

.cal-day-cell.selected {
  outline: 2px solid var(--radiant-cyan);
  outline-offset: -2px;
  background: rgba(0, 229, 255, 0.08);
  z-index: 3;
}

.cal-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-day-num {
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.cal-today-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--aegis-gold);
  background: rgba(245, 196, 83, 0.2);
  border: 1px solid rgba(245, 196, 83, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.cal-event-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cal-event-chip {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event-chip:hover {
  filter: brightness(1.25);
  transform: translateX(1px);
}

.chip-league,
.chip-tournament {
  background: rgba(245, 196, 83, 0.16);
  border-left: 3px solid var(--aegis-gold);
  color: var(--aegis-gold);
}

.chip-lan {
  background: rgba(0, 229, 255, 0.14);
  border-left: 3px solid var(--radiant-cyan);
  color: var(--radiant-cyan);
}

.chip-in-house {
  background: rgba(88, 101, 242, 0.18);
  border-left: 3px solid var(--discord);
  color: #a2adff;
}

.chip-stream {
  background: rgba(70, 227, 114, 0.16);
  border-left: 3px solid #46e372;
  color: #46e372;
}

.chip-registration {
  background: rgba(229, 43, 43, 0.16);
  border-left: 3px solid var(--red);
  color: #ff8585;
}

.cal-more-chip {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-block;
  cursor: pointer;
}

.cal-more-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Selected day schedule panel */
.cal-day-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 20px;
}

.cal-day-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* List View Date Badge Enhancement */
.list-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 68px;
  background: rgba(11, 13, 20, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  text-align: center;
  flex-shrink: 0;
}

.list-date-box.is-live {
  border-color: var(--red);
  background: var(--red-bg);
  box-shadow: 0 0 10px rgba(224, 49, 49, 0.35);
}

.list-date-box.is-live .list-date-month {
  color: var(--red);
}

.list-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--aegis-gold);
  letter-spacing: 0.6px;
  line-height: 1.1;
}

.list-date-day {
  font-family: var(--font-condensed);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.list-date-weekday {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Responsive Calendar */
@media (max-width: 768px) {
  .cal-weekday {
    padding: 8px 4px;
    font-size: 0.75rem;
  }
  .cal-day-cell {
    min-height: 65px;
    padding: 4px 5px;
  }
  .cal-day-num {
    font-size: 0.88rem;
  }
  .cal-event-chip {
    padding: 2px 4px;
    font-size: 0.62rem;
  }
  .cal-header-bar {
    padding: 12px 14px;
  }
  .cal-month-title {
    font-size: 1.4rem;
  }
  .list-date-box {
    min-width: 54px;
    height: 54px;
  }
  .list-date-day {
    font-size: 1.3rem;
  }
}

/* ── INTERACTIVE SKILL DIVISION CARDS (tournaments.html) ── */
.division-card {
  padding: 16px 18px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.division-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.division-card.active {
  background: rgba(245, 196, 83, 0.08) !important;
  border-width: 2px !important;
  box-shadow: 0 0 20px rgba(245, 196, 83, 0.25) !important;
}

.division-card.active-minor {
  border-color: #81c784 !important;
  background: rgba(129, 199, 132, 0.1) !important;
  box-shadow: 0 0 20px rgba(129, 199, 132, 0.3) !important;
}

.division-card.active-intermediate {
  border-color: var(--aegis-gold) !important;
  background: rgba(245, 196, 83, 0.1) !important;
  box-shadow: 0 0 20px rgba(245, 196, 83, 0.3) !important;
}

.division-card.active-major {
  border-color: var(--red) !important;
  background: rgba(229, 43, 43, 0.1) !important;
  box-shadow: 0 0 20px rgba(229, 43, 43, 0.3) !important;
}

.division-card.active-paramount {
  border-color: var(--radiant-cyan) !important;
  background: rgba(0, 229, 255, 0.1) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
}

.division-card .active-pill {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 6px;
  align-self: flex-start;
}

.division-card.active .active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── RULE AREA NAV & CLICKABLE RULE SECTIONS ── */
.rule-area-nav-wrap {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.rule-area-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.rule-area-nav::-webkit-scrollbar {
  height: 4px;
}

.rule-area-nav::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.rule-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.18s ease;
}

.rule-area-btn:hover {
  color: var(--text);
  border-color: var(--aegis-gold);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.rule-area-btn.active {
  color: var(--bg);
  background: var(--aegis-gold);
  border-color: var(--aegis-gold);
  box-shadow: 0 0 14px rgba(245, 196, 83, 0.4);
}

.rule-section {
  scroll-margin-top: 130px;
  margin-bottom: 28px;
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rule-card:hover {
  border-color: var(--border-light);
}

.rule-card.highlight {
  border-color: var(--border-gold);
  box-shadow: 0 0 25px rgba(245, 196, 83, 0.15);
}

.rule-item-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-item-num {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  color: var(--aegis-gold);
  font-weight: 700;
}

.rule-clause-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-clause-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 28px;
  position: relative;
}

.rule-clause-list li strong.clause-num {
  position: absolute;
  left: 0;
  color: var(--aegis-gold);
  font-size: 0.85rem;
  font-family: var(--font-condensed);
}

/* ── D2AU LIVE SYNC BUTTONS & FEEDBACK TOAST ── */
@keyframes d2auSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-icon {
  display: inline-block;
  animation: d2auSpin 0.75s linear infinite;
  transform-origin: center center;
}

.sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.sync-btn:hover {
  transform: translateY(-1px);
}

.sync-btn.syncing {
  pointer-events: none;
  opacity: 0.85;
}

.sync-btn.synced {
  border-color: #81c784 !important;
  color: #81c784 !important;
}

#d2auSyncToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: rgba(18, 22, 36, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 196, 83, 0.25);
  padding: 12px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  max-width: 360px;
}

#d2auSyncToast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#d2auSyncToast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(129, 199, 132, 0.15);
  border: 1px solid #81c784;
  color: #81c784;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

#d2auSyncToast .toast-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--aegis-gold);
  font-weight: 700;
  line-height: 1.2;
}

#d2auSyncToast .toast-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
