/* ============================================
   BrawlerBase — Brawl Stars Design System v1.0
   ============================================ */

:root {
  --bb-yellow: #F8C300;
  --bb-yellow-dark: #D4A200;
  --bb-blue: #02A9F4;
  --bb-blue-dark: #0288CC;
  --bb-red: #FF3C38;
  --bb-red-dark: #D42F2C;
  --bb-green: #37D643;
  --bb-green-dark: #2CB036;
  --bb-orange: #FF9800;
  --bb-purple: #AB47BC;
  --bb-teal: #4ECDC4;
  --bb-gray: #95AFC0;
  --bb-dark: #0A0D20;
  --bb-panel: #131938;
  --bb-panel-light: #1E2550;
  --bb-border: #0D0914;
  --bb-shadow: rgba(13, 9, 20, 0.8);
  --bb-text: #FFFFFF;
  --bb-text-muted: #8C96C4;
  --bb-text-dim: #5B638C;
  --bb-border-w: 4px;
  --bb-radius: 12px;
  --bb-radius-sm: 8px;
  --bb-radius-lg: 16px;
  --bb-depth: 6px;
  --bb-depth-sm: 4px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bb-dark);
  color: var(--bb-text);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at top right, rgba(2, 169, 244, 0.12), transparent 500px),
    radial-gradient(ellipse at bottom left, rgba(255, 60, 56, 0.08), transparent 500px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bungee', cursive;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-shadow: 2px 2px 0 var(--bb-border);
  color: var(--bb-text);
}

a { color: var(--bb-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--bb-yellow); }

img { max-width: 100%; height: auto; display: block; }

/* === LAYOUT === */
.bb-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.bb-wrap.wide { max-width: 720px; }

.bb-section {
  padding: 0 20px;
  margin-bottom: 32px;
}

/* === HEADER === */
.bb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bb-blue);
  border-bottom: var(--bb-border-w) solid var(--bb-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bb-logo {
  font-family: 'Bungee', cursive;
  font-size: 1.5rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 1.5px var(--bb-border);
  text-shadow: 3px 3px 0 var(--bb-border);
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s;
}
.bb-logo:hover { transform: scale(1.05); color: var(--bb-yellow); }

/* Header actions group */
.bb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search bar — lives inside header, hidden by default */
.bb-search-bar {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.bb-search__input {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 14px;
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-panel);
  color: var(--bb-text);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: border-color 0.15s;
}
.bb-search__input::placeholder { color: var(--bb-text-dim); }
.bb-search__input:focus { border-color: var(--bb-yellow); }
.bb-search__close {
  background: none;
  border: none;
  color: var(--bb-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.bb-search__close:hover { color: var(--bb-yellow); }

/* Search active: header transforms */
.bb-header.bb-searching .bb-logo,
.bb-header.bb-searching .bb-search-toggle,
.bb-header.bb-searching .bb-burger { display: none; }
.bb-header.bb-searching .bb-search-bar { display: flex; }

/* Search toggle */
.bb-search-toggle {
  background: var(--bb-yellow);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  width: 42px; height: 42px;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  color: var(--bb-border);
  box-shadow: 0 3px 0 var(--bb-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.bb-search-toggle:active { transform: translateY(3px); box-shadow: 0 0 0 var(--bb-shadow); }

/* Search results dropdown */
.bb-search-results {
  background: var(--bb-blue-dark);
  border-bottom: var(--bb-border-w) solid var(--bb-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-search-results.open {
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 20px 12px;
}
.bb-search-result {
  display: block;
  padding: 12px 14px;
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  margin-bottom: 8px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--bb-shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.bb-search-result:hover {
  transform: translateX(4px);
  border-color: var(--bb-yellow);
}
.bb-search-result__title {
  font-family: 'Bungee', cursive;
  font-size: 0.92rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 0.3px var(--bb-border);
  margin-bottom: 4px;
}
.bb-search-result__desc {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bb-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-search-result mark {
  background: rgba(248, 195, 0, 0.25);
  color: var(--bb-yellow);
  padding: 0 1px;
  border-radius: 2px;
}
.bb-search__empty {
  text-align: center;
  padding: 20px;
  color: var(--bb-text-dim);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Burger */
.bb-burger {
  background: var(--bb-yellow);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  width: 42px; height: 42px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--bb-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.bb-burger:active { transform: translateY(3px); box-shadow: 0 0 0 var(--bb-shadow); }
.bb-burger span {
  display: block; width: 20px; height: 3px;
  background: var(--bb-border); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.bb-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.bb-burger.open span:nth-child(2) { opacity: 0; }
.bb-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Nav Drawer */
.bb-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 13, 32, 0.96);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 80px 24px 30px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bb-nav.open { transform: translateX(0); }
.bb-nav-group { margin-bottom: 6px; }
.bb-nav-group-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bb-blue);
  padding: 10px 0 6px;
  border-bottom: 2px solid rgba(2, 169, 244, 0.15);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.bb-nav-group-title::-webkit-details-marker { display: none; }
.bb-nav-group-title::after {
  content: '+';
  font-family: 'Bungee', cursive;
  font-size: 1rem;
  color: var(--bb-text-dim);
  transition: transform 0.2s, color 0.15s;
}
.bb-nav-group[open] > .bb-nav-group-title::after {
  content: '−';
  color: var(--bb-yellow);
}
.bb-nav-group-title:hover { color: var(--bb-yellow); }
.bb-nav-group > a { display: none; }
.bb-nav-group[open] > a { display: block; }
.bb-nav a {
  font-family: 'Bungee', cursive;
  font-size: 1.1rem;
  color: var(--bb-yellow);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--bb-border);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: block;
  transition: padding-left 0.2s, color 0.15s;
}
.bb-nav a:hover { padding-left: 10px; color: #fff; }
.bb-nav-close {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Bungee', cursive;
  font-size: 2rem; color: #fff;
  cursor: pointer;
  background: none; border: none;
  text-shadow: 2px 2px 0 var(--bb-border);
}

/* === HERO === */
.bb-hero {
  padding: 40px 20px 30px;
  text-align: center;
  background: linear-gradient(160deg, var(--bb-panel) 0%, var(--bb-dark) 100%);
  position: relative;
  overflow: hidden;
}
.bb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0L40 20L20 40L0 20Z" fill="rgba(255,255,255,0.015)"/></svg>');
  pointer-events: none;
}
.bb-hero::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(248, 195, 0, 0.06), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(2, 169, 244, 0.06), transparent 40%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -3%); }
}
.bb-hero h1 {
  font-size: 2rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 1px var(--bb-border);
  text-shadow: 3px 3px 0 var(--bb-border);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.bb-hero p {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bb-text-muted);
  position: relative; z-index: 1;
  max-width: 380px; margin: 0 auto;
}

/* Update Badge */
.bb-badge {
  display: inline-block;
  background: var(--bb-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  border: 2px solid var(--bb-border);
  margin-bottom: 12px;
  position: relative; z-index: 1;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 56, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 60, 56, 0); }
}

/* === BUTTONS === */
.bb-btn {
  display: inline-flex;
  justify-content: center; align-items: center;
  gap: 8px;
  font-family: 'Bungee', cursive;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  background: var(--bb-yellow);
  color: var(--bb-border);
  border: var(--bb-border-w) solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: 0 var(--bb-depth) 0 var(--bb-yellow-dark);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s, box-shadow 0.1s;
  letter-spacing: 0.5px;
}
.bb-btn:active {
  transform: translateY(var(--bb-depth));
  box-shadow: 0 0 0 var(--bb-yellow-dark);
}
.bb-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
}
.bb-btn:hover::after {
  animation: btnShine 0.6s ease-out;
}
@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 150%; }
}

.bb-btn--blue {
  background: var(--bb-blue);
  color: #fff;
  box-shadow: 0 var(--bb-depth) 0 var(--bb-blue-dark);
}
.bb-btn--blue:active { box-shadow: 0 0 0 var(--bb-blue-dark); }

.bb-btn--red {
  background: var(--bb-red);
  color: #fff;
  box-shadow: 0 var(--bb-depth) 0 var(--bb-red-dark);
}
.bb-btn--red:active { box-shadow: 0 0 0 var(--bb-red-dark); }

.bb-btn--green {
  background: var(--bb-green);
  color: var(--bb-border);
  box-shadow: 0 var(--bb-depth) 0 var(--bb-green-dark);
}
.bb-btn--green:active { box-shadow: 0 0 0 var(--bb-green-dark); }

/* === CARDS === */
.bb-card {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bb-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 var(--bb-shadow);
}
.bb-card__img {
  height: 100px;
  display: flex; justify-content: center; align-items: center;
  font-size: 3rem;
  border-bottom: 3px solid var(--bb-border);
  position: relative;
}
.bb-card__img::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 35%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.bb-card__body { padding: 14px; }
.bb-card__title {
  font-family: 'Bungee', cursive;
  font-size: 1.15rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 0.3px var(--bb-border);
  margin-bottom: 6px;
}

/* === TAGS === */
.bb-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bb-border);
  color: var(--bb-yellow);
}
.bb-tag--blue  { color: var(--bb-blue); }
.bb-tag--green { color: var(--bb-green); }
.bb-tag--red   { color: var(--bb-red); }

/* === SECTION HEADING === */
.bb-heading {
  font-family: 'Bungee', cursive;
  font-size: 1.45rem;
  color: var(--bb-yellow);
  text-shadow: 2px 2px 0 var(--bb-border);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.bb-heading::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--bb-blue);
  border: 3px solid var(--bb-border);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === TIER TABLE === */
.bb-tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.bb-tier-row { border-radius: var(--bb-radius); overflow: hidden; }
.bb-tier-label {
  font-family: 'Bungee', cursive;
  font-size: 1.3rem;
  width: 60px;
  text-align: center;
  padding: 14px 6px;
  border: 3px solid var(--bb-border);
  border-right: none;
  border-radius: var(--bb-radius) 0 0 var(--bb-radius);
  text-shadow: 2px 2px 0 var(--bb-border);
}
.bb-tier-label--s { background: var(--bb-red); color: #fff; }
.bb-tier-label--a { background: var(--bb-orange); color: #fff; }
.bb-tier-label--b { background: var(--bb-teal); color: #fff; }
.bb-tier-label--c { background: var(--bb-gray); color: #fff; }
.bb-tier-label--d { background: #636e72; color: #fff; }

.bb-tier-content {
  padding: 12px 14px;
  border: 3px solid var(--bb-border);
  border-left: none;
  border-radius: 0 var(--bb-radius) var(--bb-radius) 0;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.7;
  background: var(--bb-panel);
}
.bb-tier-content strong { color: var(--bb-yellow); }
.bb-tier-row.s .bb-tier-content { background: rgba(255, 107, 107, 0.07); }
.bb-tier-row.a .bb-tier-content { background: rgba(255, 165, 0, 0.07); }
.bb-tier-row.b .bb-tier-content { background: rgba(78, 205, 196, 0.07); }
.bb-tier-row.c .bb-tier-content { background: rgba(149, 175, 192, 0.07); }

/* === BRAWLER DETAIL CARD === */
.bb-detail {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
}
.bb-detail h3 {
  font-size: 1.25rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 0.5px var(--bb-border);
  margin-bottom: 8px;
}
.bb-detail p {
  font-size: 0.88rem;
  font-weight: 700;
  color: #c8cde8;
  line-height: 1.6;
}
.bb-detail .bb-highlight { color: var(--bb-green); font-weight: 900; }

/* === PATCH TABLE === */
.bb-patch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.bb-patch-row { background: var(--bb-panel); }
.bb-patch-row td {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.5;
}
.bb-patch-row td:first-child {
  font-family: 'Bungee', cursive;
  font-size: 0.92rem;
  color: var(--bb-yellow);
  width: 78px;
  border: 3px solid var(--bb-border);
  border-right: none;
  border-radius: var(--bb-radius-sm) 0 0 var(--bb-radius-sm);
}
.bb-patch-row td:nth-child(2) {
  border: 3px solid var(--bb-border);
  border-left: none; border-right: none;
}
.bb-patch-row td:last-child {
  width: 70px;
  border: 3px solid var(--bb-border);
  border-left: none;
  border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
  text-align: center;
  font-weight: 900;
}
.bb-nerf { color: var(--bb-red); }
.bb-buff { color: var(--bb-green); }

/* === MODE GRID === */
.bb-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bb-mode {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 14px;
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
}
.bb-mode--wide { grid-column: span 2; }
.bb-mode__name {
  font-family: 'Bungee', cursive;
  font-size: 1rem;
  color: var(--bb-blue);
  -webkit-text-stroke: 0.3px var(--bb-border);
  margin-bottom: 6px;
}
.bb-mode__brawlers {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--bb-text-muted);
  line-height: 1.5;
}
.bb-mode__brawlers strong { color: var(--bb-yellow); }

/* === BEGINNER LIST === */
.bb-beginner-list { display: flex; flex-direction: column; gap: 10px; }
.bb-beginner-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 12px;
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
  transition: transform 0.2s;
}
.bb-beginner-item:hover { transform: translateX(4px); }
.bb-beginner-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border: 3px solid var(--bb-border);
  flex-shrink: 0;
}
.bb-beginner-name {
  font-family: 'Bungee', cursive;
  font-size: 1rem;
  color: var(--bb-yellow);
  -webkit-text-stroke: 0.3px var(--bb-border);
}
.bb-beginner-desc {
  font-size: 0.8rem; font-weight: 700; color: var(--bb-text-muted);
}

/* === A-TIER LIST === */
.bb-a-tier-list { display: flex; flex-direction: column; gap: 8px; }
.bb-a-tier-item {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--bb-shadow);
  transition: transform 0.2s;
}
.bb-a-tier-item:hover { transform: translateX(4px); }
.bb-a-tier-item strong {
  color: var(--bb-yellow);
  font-family: 'Bungee', cursive;
  font-size: 0.95rem;
  -webkit-text-stroke: 0.3px var(--bb-border);
}
.bb-a-tier-item span {
  font-size: 0.82rem; font-weight: 700; color: var(--bb-text-muted);
}

/* === GUIDE CARDS (Homepage) === */
.bb-guide {
  display: flex;
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
  text-decoration: none;
  transition: transform 0.2s;
}
.bb-guide:hover { transform: translateX(5px); }
.bb-guide__icon {
  width: 80px;
  display: flex; justify-content: center; align-items: center;
  font-size: 2.2rem;
  border-right: 3px solid var(--bb-border);
  flex-shrink: 0;
}
.bb-guide__body { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bb-guide__title {
  font-family: 'Bungee', cursive;
  font-size: 1.1rem; color: var(--bb-text);
  -webkit-text-stroke: 0.3px var(--bb-border);
  margin-bottom: 4px; line-height: 1.2;
}
.bb-guide__meta { font-size: 0.82rem; color: var(--bb-text-muted); font-weight: 800; }

/* === PROMO BANNER === */
.bb-promo {
  margin: 24px 20px;
  background: var(--bb-red);
  border: var(--bb-border-w) solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--bb-depth) var(--bb-depth) 0 var(--bb-shadow);
  transform: rotate(-1.2deg);
  position: relative;
}
.bb-promo h2 {
  font-size: 1.7rem; color: #fff;
  text-shadow: 2px 2px 0 var(--bb-border);
  margin-bottom: 10px;
}
.bb-promo p {
  font-weight: 800; margin-bottom: 18px; font-size: 0.95rem;
}

/* === BRAWLER GRID (Homepage) === */
.bb-brawler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 20px;
}
.bb-brawler-grid .bb-card { text-decoration: none; }

/* === EDITORIAL CONTENT === */
.bb-section-lead {
  color: var(--bb-text-muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 14px;
}

.bb-note {
  background: linear-gradient(135deg, rgba(248, 195, 0, 0.14), rgba(2, 169, 244, 0.1));
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-depth-sm) var(--bb-depth-sm) 0 var(--bb-shadow);
  padding: 16px;
}

.bb-note p {
  color: #d9def6;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
}

.bb-criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bb-criteria-card,
.bb-compact-list > div {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  box-shadow: 3px 3px 0 var(--bb-shadow);
  padding: 12px 14px;
}

.bb-criteria-card strong,
.bb-compact-list strong {
  color: var(--bb-yellow);
  display: block;
  font-family: 'Bungee', cursive;
  font-size: 0.88rem;
  line-height: 1.25;
  margin-bottom: 5px;
  -webkit-text-stroke: 0.25px var(--bb-border);
}

.bb-criteria-card span,
.bb-compact-list > div {
  color: var(--bb-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.55;
}

.bb-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-faq details {
  background: var(--bb-panel);
  border: 3px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  box-shadow: 3px 3px 0 var(--bb-shadow);
  overflow: hidden;
}

.bb-faq summary {
  color: var(--bb-yellow);
  cursor: pointer;
  font-family: 'Bungee', cursive;
  font-size: 0.9rem;
  line-height: 1.35;
  list-style: none;
  padding: 13px 14px;
  -webkit-text-stroke: 0.25px var(--bb-border);
}

.bb-faq summary::-webkit-details-marker {
  display: none;
}

.bb-faq summary::after {
  content: '+';
  float: right;
  color: var(--bb-blue);
}

.bb-faq details[open] summary::after {
  content: '-';
}

.bb-faq p {
  border-top: 2px solid rgba(255, 255, 255, 0.06);
  color: var(--bb-text-muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.6;
  padding: 0 14px 14px;
}

.bb-update-log {
  background: #0d1025;
  border: 3px solid #1a1f45;
  border-radius: var(--bb-radius-sm);
  padding: 16px;
}

.bb-update-log h3 {
  color: var(--bb-blue);
  font-size: 1rem;
  margin-bottom: 8px;
}

.bb-update-log ul {
  color: var(--bb-text-muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.6;
  margin-left: 18px;
}

@media (min-width: 720px) {
  .bb-criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === DISCLAIMER === */
.bb-disclaimer {
  background: #0d1025;
  border: 3px solid #1a1f45;
  border-radius: var(--bb-radius-sm);
  padding: 16px;
}
.bb-disclaimer p {
  font-size: 0.78rem;
  color: var(--bb-text-dim);
  font-style: italic;
  line-height: 1.5;
}

/* === FOOTER === */
.bb-footer {
  margin-top: auto;
  padding: 16px 20px;
  background: #060814;
  border-top: var(--bb-border-w) solid var(--bb-border);
  text-align: center;
}
.bb-footer__guides {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}
.bb-footer__guides a {
  color: var(--bb-text-muted);
  font-weight: 800; text-decoration: none;
  font-size: 0.82rem; line-height: 1.5;
  transition: color 0.15s;
}
.bb-footer__guides a:hover { color: var(--bb-yellow); }
.bb-footer__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 8px;
}
.bb-footer__links a {
  color: var(--bb-text-dim);
  font-weight: 600; text-decoration: none;
  font-size: 0.78rem; line-height: 1.5;
  transition: color 0.15s;
}
.bb-footer__links a:hover { color: #fff; }
.bb-footer__disclaimer {
  font-size: 0.78rem;
  color: var(--bb-text-dim);
  line-height: 1.5;
  font-weight: 600;
  max-width: 400px;
  margin: 0 auto;
}

/* === BACK TO TOP === */
.bb-back-top {
  text-align: center;
  padding: 24px 20px;
}

/* === ANIMATIONS === */
@keyframes bbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bbSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb-float { animation: bbFloat 3s ease-in-out infinite; }

/* Staggered entrance */
.bb-stagger > * {
  opacity: 0;
  animation: bbSlideUp 0.4s ease-out forwards;
}
.bb-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.bb-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.bb-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.bb-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.bb-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.bb-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.bb-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.bb-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.bb-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.bb-stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* === WORDPRESS OVERRIDES === */
/* Hide default WP elements that conflict with our design */
.wp-block, .wp-block-group, .entry-content { all: unset; display: block; }
.screen-reader-text { display: none; }
.wp-container, .is-layout-flow { all: unset; }

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .bb-wrap { max-width: 540px; }
  .bb-wrap.wide { max-width: 800px; }
  .bb-brawler-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-mode-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-mode--wide { grid-column: span 3; }
}
