/* DOCK-GAP-FIX-V1 */
/* ============================================================
   SINGLE BATTLE — GLOBAL VAR OVERRIDE
   Zero out the bottom-nav height on single battle pages so the
   dock sits flush with the screen edge on ALL viewport sizes.
   (style.css sets --co-bottom-nav-h: 62px globally in :root;
    the @media override in this file only fires at >=768px)
   ============================================================ */
.single-battle,
body.single.posttype-battle {
  --co-bottom-nav-h: 0px !important;
}

/* ============================================================
   SINGLE BATTLE — SWIPE DECK
   Full-viewport horizontal panel carousel
   Mobile: touch swipe | Desktop: arrow buttons + keyboard
   ============================================================ */

/* ── Shell: fills viewport below nav, above dock ───────────────── */
:root {
  --co-sb-dock-h: 72px;
  --co-sb-top-h:  52px;
  --co-sb-avail:  calc(100dvh - var(--co-nav-h) - var(--co-sb-top-h) - var(--co-sb-dock-h) - var(--co-bottom-nav-h, 0px));
}
@media (min-width: 768px) {
  :root { --co-bottom-nav-h: 0px; --co-sb-dock-h: 80px; }
}

.co-sb-shell {
  position: fixed;
  top: var(--co-nav-h, 56px);
  bottom: var(--co-bottom-nav-h, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--co-bg);
}
/* Tablet+: cap width and center */
@media (min-width: 768px) {
  .co-sb-shell {
    left: 50%;
    right: auto;
    width: min(960px, 100vw);
    transform: translateX(-50%);
    border-left:  1px solid var(--co-border);
    border-right: 1px solid var(--co-border);
  }
}

/* Kill Neve's default page padding/wrapper when we're here */
/* Kill ALL Neve wrappers that constrain width on single posts */
.single-battle .entry-content,
.single-battle .nv-content-wrap,
.single-battle .neve-main,
.single-battle .neve-main > .container,
.single-battle .neve-main > .single-post-container,
.single-battle .neve-main > .single-post-container > .container,
.single-battle .neve-main .nv-single-post-wrap,
.single-battle .neve-main .nv-single-post-wrap.col,
.single-battle .neve-main .col,
.single-battle .nv-sidebar-wrap,
.single-battle #neve_body > .wrapper,
.single-battle .wrapper {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}
/* Kill sidebar from showing at all */
.single-battle .nv-sidebar-wrap { display: none !important; }
/* No body scroll while deck is active */
.single-battle { overflow: hidden !important; }

/* ── Top bar ────────────────────────────────────────────────── */
.co-sb-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--co-sb-top-h);
  padding: 0 14px;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--co-border);
  flex-shrink: 0;
  z-index: 10;
}
.co-sb-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--co-radius-sm);
  background: rgba(255,215,0,0.07);
  border: 1px solid var(--co-border);
  color: var(--co-text-secondary);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.co-sb-back:hover { background: rgba(255,215,0,0.18); color: var(--co-gold); }
.co-sb-topbar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.co-sb-vs-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--co-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-sb-vs-label em { color: var(--co-gold); font-style: normal; margin: 0 4px; }

/* Status chip */
.co-sb-status-chip {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--co-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.co-sb-status-chip.st-live     { background: rgba(204,0,0,0.85);    animation: co-sb-pulse 1.6s infinite; }
.co-sb-status-chip.st-pending  { background: rgba(255,140,0,0.75);  color: #000; }
.co-sb-status-chip.st-settled  { background: rgba(40,167,69,0.85);  }
.co-sb-status-chip.st-cancelled{ background: rgba(120,120,120,0.6); }
@keyframes co-sb-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(204,0,0,0.5)} 50%{box-shadow:0 0 0 6px rgba(204,0,0,0)} }

/* ── Deck: horizontal scroll track ────────────────────────────── */
.co-sb-deck {
  flex: 1 1 0;               /* Take remaining height, allow shrink */
  width: 100%;
  min-height: 0;             /* Critical: allows flex child to shrink */
  min-width: 0;
  overflow: hidden;          /* Clips horizontal overflow */
  position: relative;        /* Anchor for absolutely-positioned track */
}

/* ── Individual panels ────────────────────────────────────────── */
.co-sb-panel {
  flex: 0 0 100%;            /* Each panel = full deck width */
  width: 100%;
  height: 100%;              /* Fill track height (track is absolutely bounded) */
  min-height: 0;
  overflow-y: auto;          /* Scroll panel content vertically */
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  padding: 20px 16px 32px;   /* Extra bottom padding so last item clears dock */
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  /* Show scrollbar on panels that need it */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,0,0.3) transparent;
}
.co-sb-panel::-webkit-scrollbar {
  width: 4px;
}
.co-sb-panel::-webkit-scrollbar-track {
  background: transparent;
}
.co-sb-panel::-webkit-scrollbar-thumb {
  background: rgba(255,215,0,0.25);
  border-radius: 2px;
}
.co-sb-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,215,0,0.5);
}


/* The track wrapper that slides */
.co-sb-deck-track {
  display: flex;
  position: absolute;        /* Fill deck exactly - no content-height bleed */
  top: 0; left: 0;
  bottom: 0;                 /* Height = deck height, not content height */
  width: 100%;               /* JS overrides this to 400% via style attr */
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Panel 0: Fighters ────────────────────────────────────────── */
.co-sb-fighters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.co-sb-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 16px 8px 20px;
  border-radius: var(--co-radius-md);
  background: rgba(26,26,26,0.7);
  border: 1px solid var(--co-border);
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.co-sb-fighter:hover { border-color: var(--co-gold-border); }
.co-sb-fighter.is-winner {
  border-color: var(--co-gold) !important;
  background: rgba(255,215,0,0.06) !important;
  box-shadow: 0 0 24px rgba(255,215,0,0.15);
}

.co-sb-avatar-wrap { position: relative; }
.co-sb-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--co-border);
  display: block;
}
.co-sb-fighter.is-winner .co-sb-avatar {
  border-color: var(--co-gold);
  box-shadow: 0 0 16px rgba(255,215,0,0.35);
}
.co-sb-avatar--placeholder {
  background: var(--co-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--co-gold);
}
.co-sb-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.8));
}
.co-sb-fighter-name {
  font-family: var(--co-font-display);
  font-size: 1rem;
  color: #fff;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}
.co-sb-record {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--co-text-muted);
}
.co-sb-wins { color: rgba(40,200,80,0.9); font-weight: 600; }
.co-sb-wins--new { color: rgba(180,180,180,0.6); font-weight: 400; font-size: 0.8em; letter-spacing: .04em; }
.co-sb-pay-badge {
  font-size: 0.65rem;
  background: rgba(204,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--co-radius-full);
  font-weight: 700;
}

/* VS divider */
.co-sb-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  width: 60px;
  padding-top: 16px;
}
.co-sb-vs-text {
  font-family: var(--co-font-display);
  font-size: 1.4rem;
  color: var(--co-gold);
  text-shadow: 0 0 16px rgba(255,215,0,0.5);
  line-height: 1;
}
.co-sb-stake {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,215,0,0.1);
  border: 1px solid var(--co-gold-border);
  border-radius: var(--co-radius-sm);
  padding: 6px 8px;
}
.co-sb-stake-amt {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--co-gold);
  line-height: 1;
}
.co-sb-stake-lbl {
  font-size: 0.6rem;
  color: var(--co-text-muted);
  text-transform: uppercase;
}
.co-sb-city {
  font-size: 0.62rem;
  color: var(--co-text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 58px;
  word-break: break-word;
}

/* Notices */
.co-sb-notice {
  padding: 10px 14px;
  border-radius: var(--co-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
  width: 100%;
}
.co-sb-notice--warn { background: rgba(255,140,0,0.12); border: 1px solid rgba(255,140,0,0.3); color: #ffb347; }
.co-sb-notice--live { background: rgba(204,0,0,0.12);  border: 1px solid rgba(204,0,0,0.4);   color: #ff6b6b; animation: co-sb-pulse 1.6s infinite; }
/* -- Awaiting tracks (gold/yellow) -- */
.co-sb-notice--await-tracks {
  background: rgba(255,200,0,0.12);
  border: 1px solid rgba(255,200,0,0.55);
  color: #ffd700;
  animation: co-sb-pulse 2.4s ease-in-out infinite;
}
/* -- Live-fire banner (neon green + sparks) -- */
.co-sb-notice--live-fire {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, rgba(0,220,80,0.18) 0%, rgba(0,150,50,0.08) 100%);
  border: 2px solid rgba(0,220,80,0.6);
  color: #00ff66; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(0,255,80,0.8);
  animation: co-live-glow 1.4s ease-in-out infinite alternate;
  min-height: 54px;
}
.co-lf-text { position: relative; z-index: 2; }
.co-lf-icon  { font-size: 1.3em; position: relative; z-index: 2; }
.co-fireworks {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle 4px at 12% 35%, #ffff00 0%, transparent 80%) no-repeat,
    radial-gradient(circle 4px at 28% 65%, #00ff88 0%, transparent 80%) no-repeat,
    radial-gradient(circle 4px at 50% 18%, #ff44ff 0%, transparent 80%) no-repeat,
    radial-gradient(circle 4px at 72% 55%, #00ffff 0%, transparent 80%) no-repeat,
    radial-gradient(circle 4px at 88% 28%, #ff8800 0%, transparent 80%) no-repeat,
    radial-gradient(circle 5px at 38% 78%, #ffff00 0%, transparent 80%) no-repeat,
    radial-gradient(circle 5px at 62% 42%, #00ff88 0%, transparent 80%) no-repeat,
    radial-gradient(circle 3px at 20% 88%, #ff44ff 0%, transparent 80%) no-repeat,
    radial-gradient(circle 3px at 80% 75%, #ff0055 0%, transparent 80%) no-repeat;
  animation: co-sparks 0.85s ease-in-out infinite alternate;
}
@keyframes co-live-glow {
  from { box-shadow: 0 0 10px rgba(0,255,80,0.3),  0 0 30px rgba(0,255,80,0.1); }
  to   { box-shadow: 0 0 24px rgba(0,255,80,0.8),  0 0 55px rgba(0,255,80,0.3), 0 0 90px rgba(0,200,60,0.12); }
}
@keyframes co-sparks {
  from { opacity: 0.35; transform: scale(0.94) rotate(-1.5deg); }
  to   { opacity: 1;    transform: scale(1.06) rotate(1.5deg); }
}
.co-sb-notice--win  { background: rgba(255,215,0,0.10); border: 1px solid var(--co-gold-border); color: var(--co-gold); }

/* ── Panel 1: Details ────────────────────────────────────────── */
.co-sb-details-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.co-sb-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(26,26,26,0.6);
  border-radius: var(--co-radius-sm);
  border: 1px solid var(--co-border);
  transition: border-color 0.15s;
}
.co-sb-detail-row:hover { border-color: var(--co-border-hover); }
.co-sb-detail-row--full { align-items: flex-start; }
.co-sb-detail-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1.5;
}
.co-sb-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--co-text-muted);
  margin-bottom: 3px;
}
.co-sb-detail-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.co-sb-gold { color: var(--co-gold) !important; }
.co-sb-terms {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.75) !important;
  font-style: italic;
}
.co-sb-terms p { margin: 0 0 4px; }

/* ── Panel 2: Tracks ─────────────────────────────────────────── */
.co-sb-panel-heading {
  font-family: var(--co-font-display);
  color: var(--co-gold);
  font-size: 1.1rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--co-border);
}
.co-sb-upload-zone {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,215,0,0.05);
  border: 2px dashed rgba(255,215,0,0.3);
  border-radius: var(--co-radius-md);
}
.co-sb-upload-heading {
  color: var(--co-gold);
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── Panel 3: Vote / Arena ───────────────────────────────────── */
.co-sb-voting-soon {
  text-align: center;
  padding: 40px 20px;
  color: var(--co-text-muted);
}
.co-sb-soon-icon { font-size: 3rem; margin-bottom: 12px; }
.co-sb-comments-wrap { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--co-border); }

/* ── Desktop arrow buttons ─────────────────────────────────────── */
.co-sb-arrow {
  display: none; /* mobile: hidden */
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17,17,17,0.9);
  border: 1px solid var(--co-border);
  color: var(--co-gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.co-sb-arrow:hover  { background: rgba(255,215,0,0.15); border-color: var(--co-gold); }
.co-sb-arrow:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.co-sb-arrow--prev { left: 12px; }
.co-sb-arrow--next { right: 12px; }
@media (min-width: 768px) {
  .co-sb-arrow { display: flex; }
}

/* ── Bottom dock nav ──────────────────────────────────────────── */
.co-sb-dock {
  display: flex;
  height: var(--co-sb-dock-h);
  flex-shrink: 0;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(255,215,0,0.1);
  /* on mobile sit above bottom nav */
  position: relative;
  z-index: 20;
  /* safe area */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 767px) {
  /* on mobile the global bottom nav covers normal bottom — dock stays just above it via page margin */
  .co-sb-dock { margin-bottom: 0; }
  /* hide the global bottom nav on single battle — our dock IS the nav */
  .single-battle .co-bottom-nav { display: none !important; }
  body.single-battle { padding-bottom: 0 !important; }
}

.co-sb-dock-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 4px;
  transition: color 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.co-sb-dock-btn:hover  { color: rgba(255,255,255,0.7); }
.co-sb-dock-btn.is-active {
  color: #111 !important;
  background: var(--co-gold);
  border-radius: 10px;
}
.co-sb-dock-btn.is-active::after {
  content: '';
  display: none;
}
.co-sb-dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.co-sb-dock-icon svg { transition: stroke 0.15s; }
.co-sb-dock-btn.is-active .co-sb-dock-icon svg { stroke: #111 !important; }
.co-sb-dock-label { font-size: 9.5px; }

/* Live pip on vote tab */
.co-sb-dock-live-pip {
  position: absolute;
  top: 6px;
  right: 20%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--co-red, #CC0000);
  animation: co-sb-pulse 1.6s infinite;
}

/* ── Plugin overrides inside panels ─────────────────────────────── */
.co-sb-shell .battle-page   { border: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.co-sb-shell .battle-card   { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; }
.co-sb-shell .epic-battle-details { background: transparent !important; border: none !important; }

/* battle_ui pay button - make it gold */
.co-sb-shell .hb-pay-stake-btn,
.co-sb-shell a.button.hb-stake { background: linear-gradient(45deg, var(--co-gold), #FFA500) !important; color: #000 !important; border-radius: var(--co-radius-full) !important; font-weight: 700 !important; border: none !important; }

/* Social share buttons */
.co-sb-shell .addtoany_share_save_container { margin: 8px 0 0; }

/* ── Responsive desktop: max width, centered ────────────────────── */
/* Desktop enhancements */
@media (min-width: 768px) {
  .co-sb-avatar { width: 110px; height: 110px; }
  .co-sb-fighter-name { font-size: 1.2rem; }
  .co-sb-vs-text { font-size: 1.9rem; }
  .co-sb-panel { padding: 24px 28px; }
  .co-sb-fighters { gap: 16px; }
}

/* ============================================================
   PLUGIN WHITE-CARD OVERRIDES
   All plugin shortcodes output white/purple inline styles.
   These scoped overrides win via specificity.
   ============================================================ */

/* --- Stake action card (battle_ui shortcode) --- */
.co-sb-shell .stake-action-card {
  background: rgba(26,26,26,0.9) !important;
  border: 1px solid var(--co-gold-border) !important;
  border-radius: var(--co-radius-md) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  color: #fff !important;
}
.co-sb-shell .stake-action-card.battle-completed.winner {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,165,0,0.08)) !important;
  border-color: rgba(255,215,0,0.4) !important;
}
.co-sb-shell .action-content h4 { color: var(--co-gold) !important; }
.co-sb-shell .action-content p   { color: rgba(255,255,255,0.8) !important; }
.co-sb-shell .completed-status,
.co-sb-shell .final-status {
  background: rgba(255,215,0,0.15) !important;
  border-color: rgba(255,215,0,0.3) !important;
  color: var(--co-gold) !important;
}
.co-sb-shell .battle-stake-ui { margin: 12px 0 0 !important; }

/* --- Track cards (battle_tracks_display shortcode) --- */
.co-sb-shell .battle-track-card {
  background: rgba(26,26,26,0.88) !important;
  border-radius: var(--co-radius-md) !important;
  box-shadow: none !important;
  color: #fff !important;
  border-top-width: 3px !important;
}
.co-sb-shell .battle-track-card.challenger { border-top-color: var(--co-red, #CC0000) !important; }
.co-sb-shell .battle-track-card.opponent   { border-top-color: var(--co-gold) !important; }
.co-sb-shell .track-role-header h4 { color: #fff !important; }
.co-sb-shell .track-content h5    { color: rgba(255,255,255,0.85) !important; }
.co-sb-shell .track-meta small    { color: rgba(255,255,255,0.4) !important; }
.co-sb-shell .battle-status-banner {
  background: rgba(204,0,0,0.15) !important;
  border: 1px solid rgba(204,0,0,0.4) !important;
  color: #ff6b6b !important;
}

/* Track grid: 1 col on mobile, 2 col on desktop */
.co-sb-shell .battle-tracks-grid {
  grid-template-columns: 1fr !important;
}
@media (min-width: 600px) {
  .co-sb-shell .battle-tracks-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* --- Voting interface (battle_voting_interface shortcode) --- */
.co-sb-shell .hb-voting-interface {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}
.co-sb-shell .hb-fighter {
  background: rgba(26,26,26,0.88) !important;
  color: #fff !important;
  border-radius: var(--co-radius-md) !important;
  box-shadow: none !important;
  border: 1px solid var(--co-border) !important;
}
.co-sb-shell .hb-fighter.voted {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.1)) !important;
  border-color: var(--co-gold) !important;
}
.co-sb-shell .fighter-info h4  { color: #fff !important; }
.co-sb-shell .fighter-role      { color: rgba(255,255,255,0.5) !important; }
.co-sb-shell .vote-count .count { color: var(--co-gold) !important; }
.co-sb-shell .vote-count .label { color: rgba(255,255,255,0.5) !important; }
.co-sb-shell .hb-vote-btn {
  background: linear-gradient(45deg, var(--co-gold), #FFA500) !important;
  color: #000 !important;
  border-radius: var(--co-radius-full) !important;
  font-weight: 700 !important;
}
.co-sb-shell .hb-vote-btn.disabled {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.3) !important;
}
.co-sb-shell .voting-header h3  { color: var(--co-gold) !important; }
.co-sb-shell .vs-circle {
  background: linear-gradient(135deg, var(--co-red, #CC0000), var(--co-gold)) !important;
}
.co-sb-shell .vs-divider { color: var(--co-gold) !important; }

/* Battle results / winner announcement */
.co-sb-shell .battle-results h3   { color: var(--co-gold) !important; }
.co-sb-shell .winner-info h2       { color: var(--co-gold) !important; font-family: var(--co-font-display) !important; }
.co-sb-shell .winner-announcement  { background: transparent !important; }
.co-sb-shell .winner-avatar img    { border: 3px solid var(--co-gold) !important; box-shadow: 0 0 20px rgba(255,215,0,0.3) !important; }

/* Vote progress bars */
.co-sb-shell .hb-vote-bar.challenger .bar-fill { background: linear-gradient(90deg, var(--co-red, #CC0000), #ff4444) !important; }
.co-sb-shell .hb-vote-bar.opponent  .bar-fill  { background: linear-gradient(90deg, var(--co-gold), #FFA500) !important; }
.co-sb-shell .voting-stats h4  { color: rgba(255,255,255,0.8) !important; }
.co-sb-shell .bar-label         { color: rgba(255,255,255,0.7) !important; }
.co-sb-shell .bar-percent        { color: rgba(255,255,255,0.9) !important; }
.co-sb-shell .hb-vote-stats     { color: rgba(255,255,255,0.6) !important; }

/* Login prompt */
.co-sb-shell .login-prompt {
  background: rgba(255,215,0,0.06) !important;
  border-color: rgba(255,215,0,0.2) !important;
  color: rgba(255,255,255,0.7) !important;
}

/* --- Comment form theming --- */
.co-sb-shell .comment-respond {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.co-sb-shell #commentform textarea,
.co-sb-shell #commentform input[type="text"],
.co-sb-shell #commentform input[type="email"],
.co-sb-shell #commentform input[type="url"] {
  background: rgba(255,255,255,0.05) !important;
  border: 1.5px solid rgba(255,215,0,0.2) !important;
  border-radius: var(--co-radius-sm) !important;
  color: #fff !important;
}
.co-sb-shell #commentform textarea:focus,
.co-sb-shell #commentform input:focus {
  border-color: var(--co-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1) !important;
}
.co-sb-shell .comment-form label { color: rgba(255,255,255,0.7) !important; }
.co-sb-shell .hb-comment-submit,
.co-sb-shell #commentform .button-primary {
  background: linear-gradient(45deg, var(--co-gold), #FFA500) !important;
  color: #000 !important;
  border: none !important;
  border-radius: var(--co-radius-full) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 10px 24px !important;
}
.co-sb-shell .comment-emoji-toolbar button,
.co-sb-shell .reaction-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--co-radius-sm) !important;
  cursor: pointer !important;
}
.co-sb-shell .comment-emoji-toolbar button:hover,
.co-sb-shell .reaction-btn:hover {
  background: rgba(255,215,0,0.15) !important;
  border-color: var(--co-gold-border) !important;
}
/* ============================================================
   LOGIN GATE — Panel 3 results/comments for guests
   ============================================================ */
.co-sb-login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 32px;
  margin: 8px 0;
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: var(--co-radius-md);
  gap: 10px;
}
.co-sb-gate-icon { font-size: 2.8rem; line-height: 1; margin-bottom: 4px; }
.co-sb-login-gate h4 {
  font-family: var(--co-font-display);
  color: var(--co-gold);
  font-size: 1.2rem;
  margin: 0;
}
.co-sb-login-gate p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin: 0;
  max-width: 260px;
}
.co-sb-gate-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 28px;
  background: linear-gradient(45deg, var(--co-gold), #FFA500);
  color: #000;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--co-radius-full);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(255,215,0,0.25);
}
.co-sb-gate-btn:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(255,215,0,0.4); color: #000; }
.co-sb-gate-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.co-sb-gate-link:hover { color: var(--co-gold); }
/* Compact inline gate for pending battles */
.co-sb-login-gate--sm {
  padding: 14px 16px;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  border-style: dashed;
}
.co-sb-login-gate--sm a { color: var(--co-gold); font-weight: 600; }
/* Dock btn live state — gold lightning icon */
.co-sb-dock-btn--live .co-sb-dock-icon svg {
  fill: var(--co-gold);
  stroke: none;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.6));
}
.co-sb-dock-btn--live { color: var(--co-gold) !important; }
/* Hide footer on single battle pages - deck dock replaces it */
.single-battle footer,
.single-battle .site-footer,
.single-battle #footer,
.single-battle .footer-bottom,
.single-battle .footer-main,
.single-battle .footer-top,
.single-battle .builder-footer {
  display: none !important;
}

/* ============================================================
   PLAYER BAR ON SINGLE BATTLE PAGE
   Must sit above deck shell (z:99) and bottom nav (z:100)
   Player positions above bottom nav, slides up over dock
   ============================================================ */
.single-battle #co-player-bar,
body.single.posttype-battle #co-player-bar {
  z-index: 101;
  bottom: var(--co-bottom-nav-h, 0px);
}

/* Collapse player bar when hidden so it takes no visual space */
#co-player-bar:not(.co-player-active) {
  height: 0 !important;
  overflow: hidden !important;
  border-top: none !important;
  padding: 0 !important;
}

/* =================================================
   SHARE BAR
   ================================================= */
.co-sb-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.co-sb-share-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.4);
  margin-right: 4px;
}
.co-sb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}
.co-sb-share-btn:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.co-sb-share--x    { color: #fff; }
.co-sb-share--fb   { color: #4267B2; border-color: rgba(66,103,178,0.35); }
.co-sb-share--wa   { color: #25D366; border-color: rgba(37,211,102,0.35); }
.co-sb-share--copy { color: rgba(255,255,255,0.75); }
.co-sb-share--copy.co-sb-copied {
  color: #00ff88;
  border-color: rgba(0,255,136,0.4);
}
/* Hide text labels on very small screens, keep icons */
@media (max-width: 400px) {
  .co-sb-share-label { display: none; }
  .co-sb-share-btn   { padding: 8px; }
  .co-sb-copy-label  { display: none; }
}
