/* =========================================================================
   YOUR'S BILLIARDS 3D POOL ARENA - MASTER STYLESHEET
   Unminified and Modular Source CSS
   ========================================================================= */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-500-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-900.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-italic-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-italic-900.woff2") format("woff2");
}

/* =========================================================================
   BREAKPOINT TACTICAL 8-BALL POOL ARCHITECTURE (IMAGE 1 & 2 MATCH)
   ========================================================================= */
:root {
  --bp-orange: #a2ff00;

  --bp-orange-hover: #b8ff33;

  --bp-orange-glow: rgba(162, 255, 0, 0.45);

  --bp-dark-bg: #070a0d;

  --bp-panel: rgba(12, 18, 14, 0.94);

  --bp-panel-border: rgba(162, 255, 0, 0.22);

  --bp-glass: rgba(10, 16, 12, 0.9);

  --bp-text-muted: #cbd5e1;

  --bp-green: #10b981;

  --bp-cyan: #a2ff00;

  --bp-red: #ef4444;

  /* HUD & Engine Compatibility */
  --cod-yellow: #a2ff00;

  --cod-yellow-glow: rgba(162, 255, 0, 0.45);

  --cod-cyan: #a2ff00;

  --cod-green: #10b981;

  --cod-red: #ef4444;

  --cod-dark-bg: #070a0d;

  --cod-panel: rgba(12, 18, 14, 0.94);

  --cod-panel-border: rgba(162, 255, 0, 0.22);

  --cod-glass: rgba(10, 16, 12, 0.9);

  --cod-text-muted: #cbd5e1;
}

* {
  box-sizing: border-box;

  margin: 0;

  padding: 0;

  user-select: none;

  -webkit-user-select: none;
}

body,
html {
  width: 100%;

  height: 100%;

  overflow: hidden;

  background-color: var(--bp-dark-bg);

  font-family:
    "Space Grotesk",
    -apple-system,
    sans-serif;

  color: #ffffff;
}

#webgl-canvas {
  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: 1;
}

/* =========================================================================
   BREACHPOINT TACTICAL LOBBY & BRIEFING OVERLAY
   ========================================================================= */
#cod-lobby {
  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: 50;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 24px 44px 34px 44px;

  background: #090a0c;

  pointer-events: auto;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  overflow-y: auto;

  overflow-x: hidden;
}

#cod-lobby.hidden {
  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform: scale(1.02);
}

/* TOP HEADER STRIP (IMAGE 1 & 2 MATCH) */
.bp-header-strip {
  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  z-index: 60;
}

.bp-brand-dock {
  display: flex;

  align-items: flex-start;

  user-select: none;

  cursor: pointer;

  padding: 0;

  border-radius: 6px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.bp-brand-dock:hover {
  transform: scale(1.02);
}

.bp-brand-logo-img {
  height: 120px;

  width: auto;

  max-width: 480px;

  object-fit: contain;

  display: block;

  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85));
}

.bp-brand-title-wrap {
  display: flex;

  flex-direction: column;

  justify-content: center;

  line-height: 1;
}

.bp-brand-title-main {
  font-family: "Anton", sans-serif;

  font-size: 1.65rem;

  letter-spacing: 2px;

  color: #ffffff;

  text-transform: uppercase;
}

.bp-brand-title-sub {
  font-family: "Space Grotesk", sans-serif;

  font-size: 0.64rem;

  font-weight: 800;

  letter-spacing: 3px;

  color: var(--bp-orange);

  margin-top: 2px;

  text-transform: uppercase;
}

.bp-status-dot-green {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: var(--bp-orange);

  box-shadow: 0 0 8px var(--bp-orange);
}

.bp-header-right {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 8px;
}

.bp-status-badge {
  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(14, 20, 24, 0.75);

  border: 1px solid var(--bp-panel-border);

  padding: 6px 14px;

  border-radius: 3px;

  font-size: 0.72rem;

  font-family: monospace, sans-serif;

  font-weight: 700;

  letter-spacing: 1px;

  color: var(--bp-text-muted);
}

.bp-status-dot-dim {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--bp-text-muted);
}

.bp-quick-dock {
  display: flex;

  align-items: center;

  gap: 8px;

  background: var(--bp-glass);

  border: 1px solid var(--bp-panel-border);

  padding: 5px 10px;

  border-radius: 4px;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}

.bp-header-icon-btn {
  display: flex;

  align-items: center;

  gap: 6px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.14);

  color: var(--bp-text-muted);

  padding: 6px 12px;

  border-radius: 4px;

  font-family: "Space Grotesk", sans-serif;

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.8px;

  cursor: pointer;

  transition: all 0.2s ease;

  user-select: none;
}

.bp-header-icon-btn:hover {
  background: rgba(162, 255, 0, 0.15);

  border-color: var(--bp-orange);

  color: var(--bp-orange);

  transform: translateY(-1px);
}

.bp-header-icon-btn.active {
  background: rgba(162, 255, 0, 0.12);

  border-color: rgba(162, 255, 0, 0.4);

  color: var(--bp-orange);
}

.bp-header-icon-btn.muted {
  opacity: 0.55;

  color: #94a3b8;

  border-color: rgba(255, 255, 255, 0.1);

  background: transparent;
}

/* =========================================================================
   SCREEN 1: MAIN LOBBY HERO VIEW (IMAGE 2 MATCH)
   ========================================================================= */
#lobby-hero-view {
  flex: 1;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  width: 100%;

  max-width: 100%;

  margin: 0;

  padding-bottom: 24px;

  z-index: 55;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#lobby-hero-view.hidden-view {
  display: none !important;
}

.bp-hero-left {
  display: flex;

  flex-direction: column;

  max-width: 560px;
}

.bp-hero-tagline {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 2px;

  color: #ffffff;

  text-transform: uppercase;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.bp-tagline-dash {
  width: 16px;

  height: 2px;

  background: #ffffff;

  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.bp-hero-headline {
  font-family: "Anton", sans-serif;

  font-size: 5.2rem;

  font-weight: 400;

  line-height: 1.1;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: #ffffff;

  margin: 14px 0 16px 0;

  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.bp-title-dot {
  color: var(--bp-orange);
}

.bp-hero-sub {
  font-size: 0.95rem;

  line-height: 1.5;

  color: #f1f5f9;

  font-weight: 600;

  margin-bottom: 24px;

  max-width: 480px;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* PRIMARY CTA BUTTON (IMAGE 2 MATCH) */
.bp-primary-cta {
  width: 470px;

  height: 72px;

  background: var(--bp-orange);

  color: #000000;

  border: none;

  border-radius: 6px;

  padding: 0 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  box-shadow: 0 6px 25px var(--bp-orange-glow);

  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-primary-cta:hover {
  background: var(--bp-orange-hover);

  transform: translateY(-2px);

  box-shadow: 0 10px 32px rgba(162, 255, 0, 0.65);
}

.bp-cta-reticle {
  display: flex;

  align-items: center;

  justify-content: center;

  color: #000000;
}

.bp-cta-content {
  flex: 1;

  text-align: left;

  padding-left: 16px;

  display: flex;

  flex-direction: column;
}

.bp-cta-title {
  font-family: "Anton", sans-serif;

  font-size: 1.45rem;

  font-weight: 400;

  letter-spacing: 1.2px;

  line-height: 1.1;

  text-transform: uppercase;

  color: #000000;
}

.bp-cta-sub {
  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 1.2px;

  color: #111111;

  text-transform: uppercase;
}

.bp-cta-arrow {
  color: #000000;

  display: flex;

  align-items: center;

  transition: transform 0.2s;
}

.bp-primary-cta:hover .bp-cta-arrow {
  transform: translateX(4px);
}

/* 3-TILE GRID (IMAGE 2 MATCH) */
.bp-tiles-grid {
  width: 470px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 14px;
}

.bp-tile-btn {
  background: rgba(10, 15, 20, 0.78);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 6px;

  padding: 13px 16px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #e2e8f0;

  cursor: pointer;

  transition: all 0.2s;

  backdrop-filter: blur(14px);
}

.bp-tile-btn:hover {
  background: rgba(162, 255, 0, 0.12);

  border-color: var(--bp-orange);

  color: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 4px 14px rgba(162, 255, 0, 0.25);
}

.bp-tile-left {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 0.88rem;

  font-weight: 700;

  letter-spacing: 0.5px;
}

.bp-tile-icon {
  display: flex;

  align-items: center;

  color: var(--bp-text-muted);
}

.bp-tile-btn:hover .bp-tile-icon {
  color: var(--bp-orange);
}

.bp-tile-chevron {
  color: var(--bp-text-muted);

  font-weight: 800;

  font-size: 0.88rem;
}

.bp-tile-btn:hover .bp-tile-chevron {
  color: var(--bp-orange);
}

/* FOOTER STATUS STRING */
.bp-footer-status {
  margin-top: 18px;

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 0.72rem;

  font-family: monospace, sans-serif;

  color: var(--bp-text-muted);

  letter-spacing: 1.5px;

  font-weight: 700;
}

.bp-dot-green {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--bp-green);

  box-shadow: 0 0 8px var(--bp-green);
}

/* RIGHT COLUMN: TACTICAL VENUE CARD (IMAGE 2 MATCH) */
.bp-theater-card {
  width: 390px;

  background: rgba(8, 12, 16, 0.82);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 24px;

  backdrop-filter: blur(20px);

  display: flex;

  flex-direction: column;

  gap: 14px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.bp-theater-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 0.75rem;

  font-family: monospace, sans-serif;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.bp-theater-sub {
  font-size: 0.72rem;

  font-weight: 800;

  color: var(--bp-text-muted);

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.bp-theater-title {
  font-family: "Anton", sans-serif;

  font-size: 2.2rem;

  font-weight: 400;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: #ffffff;

  line-height: 1;
}

.bp-theater-desc {
  font-size: 0.8rem;

  line-height: 1.45;

  color: var(--bp-text-muted);

  font-weight: 500;
}

.bp-hub-mode-item {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-left: 3px solid #a2ff00;

  border-radius: 6px;

  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;

  cursor: pointer;
}

.bp-hub-mode-item:hover {
  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(162, 255, 0, 0.6);

  transform: translateX(2px);
}

.bp-hub-mode-left {
  display: flex;

  align-items: center;

  gap: 10px;
}

.bp-hub-mode-icon {
  width: 34px;

  height: 34px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;

  align-items: center;

  justify-content: center;

  color: #a2ff00;

  flex-shrink: 0;
}

.bp-hub-mode-name {
  font-family: "Anton", sans-serif;

  font-size: 1.15rem;

  font-weight: 400;

  letter-spacing: 1px;

  color: #fff;

  line-height: 1.1;
}

.bp-hub-mode-meta {
  font-size: 0.68rem;

  font-weight: 700;

  color: var(--bp-text-muted);

  letter-spacing: 0.5px;
}

.bp-hub-play-btn {
  padding: 8px 14px;

  background: #a2ff00;

  color: #050505;

  font-family: "Anton", sans-serif;

  font-size: 0.95rem;

  font-weight: 400;

  letter-spacing: 1px;

  border: none;

  border-radius: 4px;

  cursor: pointer;

  white-space: nowrap;

  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
}

.bp-hub-play-btn:hover {
  background: #b8ff33;

  transform: translateY(-1px);

  box-shadow: 0 4px 14px rgba(162, 255, 0, 0.4);
}

.bp-theater-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 14px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.bp-stat-matchup {
  font-family: "Anton", sans-serif;

  font-size: 1.7rem;

  font-weight: 400;

  letter-spacing: 1.5px;

  display: flex;

  align-items: center;

  gap: 6px;
}

.bp-vs {
  font-size: 0.82rem;

  color: var(--bp-text-muted);

  font-weight: 800;
}

.bp-stat-sub {
  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: var(--bp-text-muted);

  text-transform: uppercase;
}

/* =========================================================================
   SCREEN 2: MATCH BRIEFING / MODE SELECTION (IMAGE 1 MATCH)
   ========================================================================= */
#lobby-briefing-view {
  flex: 1;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  width: 100%;

  max-width: 100%;

  margin: 0;

  padding-bottom: 24px;

  z-index: 55;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#lobby-briefing-view.hidden-view {
  display: none !important;
}

.bp-briefing-header-block {
  margin-bottom: 24px;

  display: flex;

  flex-direction: column;
}

.bp-back-btn {
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 6px;

  color: #ffffff;

  font-size: 0.76rem;

  font-weight: 800;

  letter-spacing: 2px;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 16px;

  margin-bottom: 18px;

  transition: all 0.2s ease;

  align-self: flex-start;

  backdrop-filter: blur(8px);
}

.bp-back-btn:hover {
  background: rgba(162, 255, 0, 0.15);

  border-color: var(--bp-orange);

  color: var(--bp-orange);

  transform: translateX(-3px);
}

.bp-briefing-meta {
  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 2.5px;

  color: var(--bp-orange);

  text-transform: uppercase;

  margin-bottom: 8px;

  text-shadow: 0 0 10px rgba(162, 255, 0, 0.4);
}

.bp-briefing-title {
  font-family: "Anton", sans-serif;

  font-size: 3.8rem;

  font-weight: 400;

  line-height: 1;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: #ffffff;

  margin: 4px 0 12px 0;

  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.bp-briefing-sub {
  font-size: 0.95rem;

  line-height: 1.5;

  color: #e2e8f0;

  font-weight: 600;

  margin-bottom: 4px;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.bp-briefing-grid {
  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: 36px;

  align-items: flex-end;

  width: 100%;
}

/* BRIEFING LEFT COLUMN (SECTIONS 01, 02, 03) */
.bp-briefing-left {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.bp-section-label {
  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 2px;

  color: #ffffff;

  text-transform: uppercase;

  margin-bottom: 8px;

  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* 01 SELECT VENUE CARD */
.bp-venue-card {
  background: rgba(14, 20, 24, 0.82);

  border: 1px solid var(--bp-panel-border);

  border-radius: 4px;

  padding: 16px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  backdrop-filter: blur(12px);
}

.bp-venue-left {
  display: flex;

  align-items: center;

  gap: 18px;
}

.bp-table-schematic {
  width: 90px;

  height: 52px;

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(16, 115, 56, 0.22);

  position: relative;

  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);

  display: flex;

  align-items: center;

  justify-content: center;
}

.bp-schematic-pocket {
  position: absolute;

  width: 6px;

  height: 6px;

  background: #000;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.4);
}

.bp-venue-info {
  display: flex;

  flex-direction: column;
}

.bp-venue-type {
  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: var(--bp-text-muted);

  text-transform: uppercase;
}

.bp-venue-name {
  font-family: "Anton", sans-serif;

  font-size: 1.45rem;

  font-weight: 400;

  letter-spacing: 1px;

  color: #ffffff;
}

.bp-venue-details {
  font-size: 0.75rem;

  color: var(--bp-text-muted);

  font-weight: 600;
}

.bp-check-badge {
  color: var(--bp-orange);

  font-size: 1.25rem;

  font-weight: 900;
}

/* 02 STARTING MODE CARDS */
.bp-mode-cards-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

.bp-mode-card {
  background: rgba(14, 20, 24, 0.82);

  border: 1px solid var(--bp-panel-border);

  border-radius: 4px;

  padding: 16px;

  display: flex;

  align-items: center;

  gap: 14px;

  cursor: pointer;

  transition: all 0.2s;

  position: relative;

  backdrop-filter: blur(12px);
}

.bp-mode-card.selected {
  border-color: var(--bp-orange);

  background: rgba(162, 255, 0, 0.12);

  box-shadow: 0 0 16px rgba(162, 255, 0, 0.3);
}

.bp-mode-card.disabled {
  opacity: 0.45;

  cursor: not-allowed;

  border-color: rgba(255, 255, 255, 0.06);

  background: rgba(8, 12, 16, 0.5);
}

.bp-mode-card.disabled:hover {
  transform: none;

  box-shadow: none;
}

.bp-mode-icon {
  width: 36px;

  height: 36px;

  border-radius: 4px;

  background: rgba(255, 255, 255, 0.06);

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--bp-orange);
}

.bp-mode-card.disabled .bp-mode-icon {
  color: var(--bp-text-muted);
}

.bp-mode-text {
  flex: 1;
}

.bp-mode-name {
  font-family: "Anton", sans-serif;

  font-size: 1.3rem;

  font-weight: 400;

  letter-spacing: 1px;

  color: #ffffff;
}

.bp-mode-card.disabled .bp-mode-name {
  color: var(--bp-text-muted);
}

.bp-mode-desc {
  font-size: 0.7rem;

  color: var(--bp-text-muted);

  font-weight: 700;

  letter-spacing: 0.5px;
}

.bp-mode-check {
  color: var(--bp-orange);

  font-weight: 900;

  font-size: 1.1rem;
}

.bp-locked-pill {
  font-size: 0.62rem;

  font-weight: 900;

  color: #ef4444;

  background: rgba(239, 68, 68, 0.15);

  border: 1px solid rgba(239, 68, 68, 0.3);

  padding: 2px 6px;

  border-radius: 2px;

  letter-spacing: 1px;
}

/* 03 BOT DIFFICULTY & RULESET */
.bp-diff-pills-row {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;
}

.bp-diff-pill {
  background: rgba(14, 20, 24, 0.82);

  border: 1px solid var(--bp-panel-border);

  border-radius: 3px;

  padding: 10px;

  text-align: center;

  cursor: pointer;

  color: var(--bp-text-muted);

  font-family: inherit;

  transition: all 0.2s;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 2px;
}

.bp-diff-pill strong {
  font-family: "Anton", sans-serif;

  font-size: 0.95rem;

  font-weight: 400;

  letter-spacing: 1px;
}

.bp-diff-pill small {
  font-size: 0.65rem;

  font-weight: 700;

  letter-spacing: 0.5px;

  opacity: 0.8;
}

.bp-diff-pill.active {
  background: rgba(162, 255, 0, 0.15);

  border-color: var(--bp-orange);

  color: #ffffff;

  box-shadow: 0 0 12px rgba(162, 255, 0, 0.25);
}

.bp-toggle-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 14px;

  background: rgba(14, 20, 24, 0.65);

  border: 1px solid var(--bp-panel-border);

  border-radius: 3px;

  margin-top: 8px;
}

.bp-toggle-info {
  display: flex;

  flex-direction: column;
}

.bp-toggle-title {
  font-size: 0.82rem;

  font-weight: 800;

  color: #fff;

  letter-spacing: 0.5px;
}

.bp-toggle-desc {
  font-size: 0.7rem;

  color: var(--bp-text-muted);

  font-weight: 600;
}

/* MODERN SWITCH */
.bp-switch {
  position: relative;

  display: inline-block;

  width: 42px;

  height: 22px;
}

.bp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bp-slider {
  position: absolute;

  cursor: pointer;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: rgba(255, 255, 255, 0.15);

  transition: 0.3s;

  border-radius: 22px;
}

.bp-slider:before {
  position: absolute;

  content: "";

  height: 16px;

  width: 16px;

  left: 3px;

  bottom: 3px;

  background-color: white;

  transition: 0.3s;

  border-radius: 50%;
}

.bp-switch input:checked + .bp-slider {
  background-color: var(--bp-orange);
}

.bp-switch input:checked + .bp-slider:before {
  transform: translateX(20px);
}

/* BRIEFING RIGHT COLUMN: RULES OF ENGAGEMENT PANEL */
.bp-rules-panel {
  background: rgba(12, 18, 22, 0.85);

  border: 1px solid var(--bp-panel-border);

  border-radius: 4px;

  padding: 24px;

  backdrop-filter: blur(16px);

  display: flex;

  flex-direction: column;

  gap: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bp-rules-heading {
  font-size: 0.76rem;

  font-weight: 800;

  letter-spacing: 2px;

  color: #ffffff;

  text-transform: uppercase;

  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bp-rules-matchup {
  display: flex;

  align-items: baseline;

  gap: 14px;
}

.bp-big-num {
  font-family: "Anton", sans-serif;

  font-size: 3.6rem;

  font-weight: 400;

  line-height: 1;

  color: #ffffff;
}

.bp-vs-text {
  font-size: 0.88rem;

  font-weight: 900;

  color: var(--bp-text-muted);

  letter-spacing: 1px;
}

.bp-matchup-sub {
  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: var(--bp-text-muted);

  text-transform: uppercase;

  margin-top: -6px;
}

.bp-specs-table {
  display: flex;

  flex-direction: column;

  gap: 8px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding: 12px 0;
}

.bp-spec-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 0.78rem;
}

.bp-spec-row span:first-child {
  color: var(--bp-text-muted);

  font-weight: 600;
}

.bp-spec-row span:last-child {
  color: #ffffff;

  font-weight: 800;

  letter-spacing: 0.5px;

  font-family: monospace, sans-serif;
}

.bp-rules-advisory {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  font-size: 0.74rem;

  line-height: 1.45;

  color: var(--bp-text-muted);

  background: rgba(255, 255, 255, 0.03);

  padding: 10px 12px;

  border-radius: 3px;

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-deploy-btn {
  width: 100%;

  height: 58px;

  background: var(--bp-orange);

  color: #000000;

  border: none;

  border-radius: 6px;

  font-family: "Anton", sans-serif;

  font-size: 1.45rem;

  font-weight: 400;

  letter-spacing: 2px;

  text-transform: uppercase;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 4px 20px var(--bp-orange-glow);

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-deploy-btn:hover {
  background: var(--bp-orange-hover);

  transform: translateY(-2px);

  box-shadow: 0 8px 28px rgba(162, 255, 0, 0.65);
}

.bp-deploy-btn.loading {
  background: #141b22;

  color: var(--bp-orange);

  border: 1px solid var(--bp-orange);

  cursor: wait;
}

.bp-deploy-caption {
  font-size: 0.7rem;

  color: var(--bp-text-muted);

  text-align: center;

  font-weight: 600;
}

/* =========================================================================
   TACTICAL MODAL OVERLAY (SETTINGS, CONTROLS, RULES, CLOTH)
   ========================================================================= */
.bp-modal-overlay {
  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(4, 7, 10, 0.78);

  backdrop-filter: blur(12px);

  z-index: 80;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: opacity 0.25s ease;
}

.bp-modal-overlay.hidden {
  display: none;
}

.bp-modal-box {
  background: rgba(14, 20, 24, 0.96);

  border: 1px solid var(--bp-panel-border);

  border-radius: 6px;

  width: 580px;

  max-width: 90%;

  max-height: 85vh;

  display: flex;

  flex-direction: column;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);

  overflow: hidden;
}

.bp-modal-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 24px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-modal-header h3 {
  font-family: "Anton", sans-serif;

  font-size: 1.6rem;

  font-weight: 400;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.bp-modal-close {
  background: transparent;

  border: none;

  color: var(--bp-text-muted);

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 4px;

  border-radius: 3px;

  transition: all 0.2s;
}

.bp-modal-close:hover {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.1);
}

.bp-modal-body {
  padding: 24px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 16px;
}

/* Modals Inner Elements */
.bp-setting-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 10px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-setting-label {
  font-size: 0.9rem;

  font-weight: 700;
}

.bp-controls-grid {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.bp-control-item {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 12px;

  background: rgba(255, 255, 255, 0.04);

  border-radius: 4px;

  font-size: 0.85rem;
}

.bp-key-badge {
  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.2);

  padding: 3px 8px;

  border-radius: 3px;

  font-family: monospace;

  font-weight: 800;

  color: var(--bp-orange);

  font-size: 0.8rem;
}

/* SWATCHES & GRAPHICS SETTINGS MODAL */
.bp-gfx-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 6px;
}

.bp-gfx-card {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 12px 6px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 6px;

  cursor: pointer;

  transition: all 0.2s ease;

  color: #fff;

  user-select: none;
}

.bp-gfx-card:hover {
  background: rgba(162, 255, 0, 0.08);

  border-color: rgba(162, 255, 0, 0.4);

  transform: translateY(-2px);
}

.bp-gfx-card.active {
  background: rgba(162, 255, 0, 0.14);

  border-color: var(--bp-orange);

  box-shadow: 0 0 14px rgba(162, 255, 0, 0.25);
}

.bp-gfx-name {
  font-family: "Anton", sans-serif;

  font-size: 1.15rem;

  letter-spacing: 1px;

  color: #fff;
}

.bp-gfx-card.active .bp-gfx-name {
  color: var(--bp-orange);
}

.bp-gfx-desc {
  font-size: 0.68rem;

  font-weight: 700;

  color: #cbd5e1;

  margin-top: 4px;
}

.bp-gfx-tag {
  font-size: 0.6rem;

  font-weight: 600;

  color: #94a3b8;

  margin-top: 4px;
}

.bp-swatches-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 10px;

  margin-top: 8px;
}

.bp-swatch-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  cursor: pointer;
}

.bp-swatch-circle {
  width: 48px;

  height: 48px;

  border-radius: 50%;

  border: 3px solid transparent;

  transition: all 0.2s;
}

.bp-swatch-item:hover .bp-swatch-circle {
  transform: scale(1.08);
}

.bp-swatch-item.active .bp-swatch-circle {
  border-color: #ffffff;

  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.bp-swatch-label {
  font-size: 0.7rem;

  font-weight: 800;

  text-align: center;

  color: var(--bp-text-muted);
}

/* =========================================================================
   IN-GAME TACTICAL WARZONE HUD (NO EMOJIS, CLEAN SVG ICONS)
   ========================================================================= */
#tournament-hud {
  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: 20;

  pointer-events: none;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 20px 28px;
}

#tournament-hud.hidden {
  display: none;
}

.hud-top-strip {
  display: flex;

  justify-content: space-between;

  align-items: center;

  width: 100%;

  pointer-events: auto;
}

/* TOP HUD CONTROLS (USING SAME TACTICAL DOCK SCHEME) */
.top-left-controls {
  display: flex;

  align-items: center;

  gap: 10px;
}

.top-right-controls {
  display: flex;

  align-items: center;

  gap: 10px;
}

/* CUE BALL SPIN CONTROLLER */
.cue-ball-spin-box {
  width: 38px;

  height: 38px;

  border-radius: 50%;

  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #f0f0f0 45%,
    #d1d5db 85%,
    #9ca3af 100%
  );

  border: 1.5px solid rgba(162, 255, 0, 0.35);

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);

  position: relative;

  cursor: crosshair;

  user-select: none;

  touch-action: none;

  display: flex;

  align-items: center;

  justify-content: center;

  transition:
    transform 0.15s ease,
    border-color 0.2s ease;

  flex-shrink: 0;
}

.cue-ball-spin-box:hover {
  transform: scale(1.06);

  border-color: var(--cod-yellow);
}

.cue-ball-spin-dot {
  position: absolute;

  width: 14px;

  height: 14px;

  border-radius: 50%;

  border: 2px solid #ef4444;

  background: rgba(239, 68, 68, 0.3);

  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

/* BOTTOM PVP MATCHUP DOCK (REUSING EXACT BOTTOM BUTTON DOCK DESIGN) */
.bottom-matchup-container {
  display: flex;

  align-items: center;

  gap: 10px;

  background: var(--cod-glass);

  border: 1px solid var(--cod-panel-border);

  padding: 5px 12px;

  border-radius: 4px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}

.bottom-player-plate {
  display: flex;

  align-items: center;

  gap: 8px;

  padding: 3px 8px;

  border-radius: 3px;

  border: 1px solid transparent;

  transition: all 0.22s ease;
}

.bottom-player-plate.active-turn {
  background: rgba(162, 255, 0, 0.1);

  border-color: rgba(162, 255, 0, 0.45);

  box-shadow: 0 0 12px rgba(162, 255, 0, 0.22);
}

.bottom-player-info {
  display: flex;

  align-items: center;

  gap: 6px;
}

.bottom-player-name {
  font-family: "Space Grotesk", "Barlow Condensed", sans-serif;

  font-weight: 800;

  font-size: 0.78rem;

  letter-spacing: 1px;

  color: #ffffff;

  white-space: nowrap;
}

.bottom-player-plate.active-turn .bottom-player-name {
  color: var(--cod-yellow);
}

.bottom-role-badge {
  font-size: 0.62rem;

  font-weight: 800;

  background: rgba(255, 255, 255, 0.08);

  color: var(--cod-text-muted);

  padding: 1px 5px;

  border-radius: 3px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.bottom-player-plate.active-turn .bottom-role-badge {
  background: rgba(162, 255, 0, 0.18);

  color: var(--cod-yellow);

  border-color: rgba(162, 255, 0, 0.35);
}

.bottom-player-balls {
  display: flex;

  align-items: center;

  gap: 4px;
}

.bottom-vs-badge {
  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(162, 255, 0, 0.12);

  border: 1px solid rgba(162, 255, 0, 0.3);

  color: var(--cod-yellow);

  border-radius: 4px;

  padding: 2px 8px;

  min-width: 32px;

  height: 26px;

  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;

  font-weight: 900;

  font-size: 0.85rem;

  letter-spacing: 1px;

  flex-shrink: 0;

  transition: all 0.22s ease;
}

.top-ball-pip {
  width: 16px;

  height: 16px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.35);

  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #cbd5e1 70%,
    #64748b 100%
  );

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 0.55rem;

  font-weight: 900;

  color: #000000;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

  transition: all 0.22s ease;
}

.top-ball-pip.pocketed {
  opacity: 0.18;

  filter: grayscale(1);

  transform: scale(0.85);

  box-shadow: none;
}

.top-ball-pip.solid {
  background: radial-gradient(
    circle at 35% 30%,
    #facc15 0%,
    #eab308 60%,
    #a16207 100%
  );

  border-color: #fef08a;

  color: #000;
}

.top-ball-pip.stripe {
  background: linear-gradient(
    to bottom,
    #ffffff 22%,
    #3b82f6 22%,
    #1d4ed8 78%,
    #ffffff 78%
  );

  border-color: #93c5fd;

  color: #fff;
}

.bp-diff-container {
  transition:
    opacity 0.3s ease,
    max-height 0.35s ease;
}

.bp-diff-container.collapsed {
  display: none !important;
}

/* TACTICAL VERTICAL POWER BAR (MATCHING BOTTOM DOCKS & CLEAN WHITE SCHEME) */
.vertical-power-dock {
  position: absolute;

  right: 20px;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  background: var(--cod-glass);

  border: 1px solid var(--cod-panel-border);

  padding: 8px 6px;

  border-radius: 4px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  pointer-events: auto;

  z-index: 25;
}

.power-track-bar {
  width: 20px;

  height: 240px;

  border-radius: 3px;

  background: rgba(0, 0, 0, 0.65);

  border: 1px solid rgba(255, 255, 255, 0.18);

  position: relative;

  cursor: pointer;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
}

.power-track-fill {
  width: 100%;

  height: 45%;

  background: #ffffff;

  border-radius: 0 0 2px 2px;

  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);

  transition: height 0.05s ease;
}

.power-knob-circle {
  position: absolute;

  left: 1px;

  right: 1px;

  height: 4px;

  border-radius: 1px;

  background: #ffffff;

  box-shadow: 0 0 8px #ffffff;

  bottom: 45%;

  transform: translateY(50%);

  pointer-events: none;
}

.btn-fire-cue {
  width: 40px;

  height: 40px;

  border-radius: 4px;

  background: #ffffff;

  border: 1px solid #ffffff;

  color: #000000;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);

  transition: all 0.2s ease;
}

.btn-fire-cue:hover {
  transform: scale(1.08);

  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.85);

  filter: brightness(1.1);
}

.btn-fire-cue:active {
  transform: scale(0.95);
}

/* MINIMAL TACTICAL BOTTOM DOCK (CLEAN SVG ICONS - NO EMOJIS!) */
.hud-bottom-row {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  width: 100%;

  pointer-events: auto;
}

.tactical-tools-dock {
  display: flex;

  gap: 6px;

  background: var(--cod-glass);

  padding: 6px 10px;

  border-radius: 4px;

  border: 1px solid var(--cod-panel-border);
}

.tool-icon-btn {
  width: 40px;

  height: 40px;

  border-radius: 4px;

  background: transparent;

  border: 1px solid transparent;

  color: #cbd5e1;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.2s;
}

.tool-icon-btn:hover {
  background: rgba(162, 255, 0, 0.15);

  border-color: var(--cod-yellow);

  color: var(--cod-yellow);
}

.aim-steer-dock {
  display: none;

  align-items: center;

  gap: 8px;

  background: var(--cod-glass);

  padding: 6px 14px;

  border-radius: 4px;

  border: 1px solid var(--cod-panel-border);
}

.mobile-manual-aim .aim-steer-dock {
  display: flex;
}

#cod-toast {
  position: absolute;

  top: 75px;

  left: 50%;

  transform: translateX(-50%) translateY(-20px);

  padding: 10px 28px;

  border-radius: 4px;

  background: rgba(8, 12, 18, 0.95);

  border-left: 4px solid var(--cod-yellow);

  color: #ffffff;

  font-size: 0.95rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1px;

  opacity: 0;

  pointer-events: none;

  transition: all 0.35s ease;

  z-index: 100;
}

#webgl-canvas canvas {
  touch-action: none;
}

#tournament-hud {
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
}

.hud-top-strip {
  pointer-events: none;
}

.top-left-controls,
.top-right-controls {
  pointer-events: auto;
}

.performance-active .bottom-matchup-container {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 1100px) {
  .hud-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .bottom-matchup-container {
    grid-column: 1/-1;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tactical-tools-dock {
    grid-row: 2;
    justify-self: start;
  }

  .aim-steer-dock {
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 600px) {
  .bottom-matchup-container {
    width: 100%;
    gap: 4px;
    padding: 4px;
    justify-content: space-between;
  }

  .bottom-player-plate {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    min-width: 0;
  }

  .bottom-player-balls {
    gap: 3px;
  }

  .top-ball-pip {
    width: 14px;
    height: 14px;
    font-size: 9px;
    flex-shrink: 0;
  }

  .bottom-player-name {
    font-size: 10px;
  }

  .tactical-tools-dock {
    gap: 1px;
    padding: 3px;
  }

  .tool-icon-btn {
    width: 34px;
    height: 38px;
  }

  .aim-steer-dock {
    gap: 2px;
    padding: 3px;
  }

  .vertical-power-dock {
    right: 10px;
    width: 44px;
    padding: 6px;
    max-height: 32vh;
  }

  .power-track-bar {
    height: clamp(85px, 22vh, 180px);
  }

  #cod-toast {
    max-width: 85vw;
    box-sizing: border-box;
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (max-height: 500px) {
  .vertical-power-dock {
    max-height: 45vh;
  }

  .power-track-bar {
    height: 25vh;
  }

  #tournament-hud {
    padding: 6px;
  }

  .tool-icon-btn {
    height: 30px;
  }
}

/* In-game controls share the lobby's dark glass, lime edge and clipped geometry. */
#btn-pause-match {
  position: absolute;

  top: max(10px, env(safe-area-inset-top));

  right: max(10px, env(safe-area-inset-right));

  z-index: 35;

  min-width: 68px;

  height: 44px;

  padding: 0 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  color: #f8fafc;

  background: linear-gradient(
    145deg,
    rgba(15, 25, 19, 0.96),
    rgba(6, 12, 9, 0.96)
  );

  border: 1px solid rgba(162, 255, 0, 0.42);

  border-radius: 2px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.06);

  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );

  font:
    800 0.68rem/1 "Space Grotesk",
    "Barlow Condensed",
    sans-serif;

  letter-spacing: 0.08em;

  cursor: pointer;

  pointer-events: auto;
}

#btn-pause-match:hover,
#btn-pause-match:focus-visible {
  color: var(--cod-yellow);
  border-color: var(--cod-yellow);
  outline: none;
  box-shadow:
    0 0 0 2px rgba(162, 255, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.5);
}

.top-right-controls {
  margin-right: 78px;
}

.tactical-tools-dock,
.bottom-matchup-container,
.aim-steer-dock,
.vertical-power-dock {
  background: linear-gradient(
    145deg,
    rgba(15, 25, 19, 0.94),
    rgba(6, 12, 9, 0.94)
  );

  border-color: rgba(162, 255, 0, 0.24);

  border-radius: 2px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.045);
}

.tool-icon-btn,
.btn-fire-cue {
  border-radius: 2px;
}

.hud-bottom-row {
  justify-content: flex-start;
  gap: 8px;
}

.bottom-matchup-container {
  margin-left: auto;
  min-height: 54px;
  box-sizing: border-box;
}

.aim-steer-dock {
  min-height: 54px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .hud-bottom-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
  }

  .bottom-matchup-container {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin-left: auto;
  }

  .tactical-tools-dock,
  .aim-steer-dock {
    grid-row: auto;
    justify-self: auto;
  }
}

@media (max-width: 760px) {
  #btn-pause-match {
    height: 38px;
    min-width: 42px;
    padding: 0 9px;
  }

  #btn-pause-match span {
    display: none;
  }

  .top-right-controls {
    margin-right: 50px;
  }

  .hud-bottom-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
  }

  .tactical-tools-dock {
    grid-column: 1;
  }

  .bottom-matchup-container {
    grid-column: 2;
    margin-left: 0;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    overflow: hidden;
  }

  .aim-steer-dock {
    grid-column: 3;
    min-height: 46px;
  }

  .bottom-player-plate {
    padding: 2px;
  }

  .bottom-player-balls {
    gap: 2px;
  }

  .top-ball-pip {
    width: 11px;
    height: 11px;
    font-size: 0;
  }

  .bottom-player-name {
    font-size: 9px;
    letter-spacing: 0.35px;
  }

  .bottom-role-badge {
    font-size: 8px;
    padding: 1px 3px;
  }

  .bottom-vs-badge {
    min-width: 22px;
    height: 22px;
    padding: 1px 3px;
    font-size: 10px;
  }

  .aim-steer-dock > span {
    display: none;
  }

  .aim-steer-dock .tool-icon-btn {
    width: 30px;
  }
}

@media (max-width: 520px) {
  .hud-bottom-row {
    grid-template-columns: 1fr auto;
  }

  .hud-bottom-row > .tactical-tools-dock {
    grid-column: 1/-1;
    grid-row: 1;
    width: max-content;
    max-width: 100%;
  }

  .bottom-matchup-container {
    grid-column: 1;
    grid-row: 2;
  }

  .aim-steer-dock {
    grid-column: 2;
    grid-row: 2;
  }

  .bottom-player-balls .top-ball-pip:nth-child(n + 6) {
    display: flex;
  }
}

/* =========================================================================
   LOBBY, TITLE SCREEN, MATCH REPORT & SPORTS THEME OVERRIDES
   ========================================================================= */

/* Monochrome sports menu. Existing table/HUD geometry stays in the engine. */
:root {
  --bp-orange: #fff;
  --bp-orange-hover: #dedede;
  --bp-orange-glow: rgba(255, 255, 255, 0.16);
  --bp-panel-border: rgba(255, 255, 255, 0.25);
  --bp-cyan: #fff;
  --cod-yellow: #fff;
  --cod-cyan: #fff;
  --cod-yellow-glow: rgba(255, 255, 255, 0.15);
  --ink: #111214;
  --paper: #f1f0ec;
  --muted: #afb0b1;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

button:disabled {
  cursor: wait;
}

em {
  font-style: italic;
}

h1,
h2,
strong {
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1,
h2,
.arena-tile strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

kbd {
  font:
    600 10px "Space Grotesk",
    sans-serif;
  border: 1px solid #777;
  padding: 3px 5px;
  margin: 0 6px 0 14px;
}

#cod-lobby {
  padding: 26px 5vw 22px;
  background:
    linear-gradient(
      180deg,
      rgba(9, 10, 12, 0.65),
      rgba(9, 10, 12, 0.32) 45%,
      rgba(9, 10, 12, 0.9)
    ),
    url("../images/ui/lounge-clean.webp") center/cover !important;
  gap: 18px;
  overflow: auto;
}

.bp-header-strip {
  align-items: center;
  flex-shrink: 0;
}

.bp-brand-dock {
  border: 0;
  background: none;
  color: white;
  align-items: center;
  gap: 12px;
  border-radius: 0;
}

.brand-ball {
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font:
    700 26px "Space Grotesk",
    sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-word {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-align: left;
  line-height: 1.05;
}

.brand-word b {
  display: block;
  font-size: 25px;
}

.bp-header-right {
  margin: 0;
}

.bp-status-badge {
  display: none;
}

.bp-quick-dock {
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0;
  backdrop-filter: none;
}

.bp-header-icon-btn {
  border: 0;
  border-radius: 0;
  font-size: 9px;
  background: none;
  color: #bbb;
  letter-spacing: 1px;
  padding: 8px 10px;
}

.bp-header-icon-btn:hover,
.bp-header-icon-btn.active {
  background: #fff;
  color: #111;
  transform: none;
}

.bp-header-icon-btn.muted {
  color: #aaa;
  background: none;
}

.arena-tabs {
  display: flex;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  position: relative;
  z-index: 55;
}

.arena-tabs button {
  border: 0;
  background: #e8e7e3;
  color: #222;
  padding: 9px 30px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.arena-tabs button.selected,
.arena-tabs button:hover {
  background: #141517;
  color: #fff;
  box-shadow: inset 0 -3px #fff;
}

#lobby-hero-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  gap: 17px;
  max-width: 1160px;
  width: 100%;
  margin: auto;
  min-height: 0;
}

.lobby-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.lobby-heading .eyebrow {
  color: #c5c5c5;
}

.lobby-heading h1 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.95;
  text-align: right;
}

.lobby-heading h1 br {
  display: none;
}

.lobby-heading h1 em {
  margin-left: 8px;
  color: #c6c6c6;
}

.arena-grid {
  display: grid;
  grid-template-columns: 1fr 2.15fr 1fr;
  grid-template-rows: 180px 90px 90px;
  gap: 7px;
}

.arena-tile {
  position: relative;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  text-align: left;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  overflow: hidden;
  min-width: 0;
}

.arena-tile:hover {
  transform: scale(1.018);
  z-index: 2;
  box-shadow:
    0 0 0 3px #fff,
    0 10px 40px #0008;
}

.arena-tile small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 5px;
}

.arena-tile strong {
  font-size: clamp(22px, 2.8vw, 39px);
  line-height: 0.95;
  display: block;
}

.tile-light {
  background: linear-gradient(135deg, #fff, #e3e3df);
  color: #18181a;
}

.tile-dark {
  background: #17181be8;
  color: #fff;
}

.tile-symbol {
  font-size: 34px;
  font-family: "Space Grotesk", sans-serif;
}

.tile-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 22px;
}

.tile-controls {
  grid-column: 1;
  grid-row: 1;
}

.tile-stats {
  grid-column: 1;
  grid-row: 2/4;
}

.tile-ai {
  grid-column: 3;
  grid-row: 1;
}

.tile-pass {
  grid-column: 3;
  grid-row: 2;
  padding: 16px 20px;
}

.tile-rules {
  grid-column: 3;
  grid-row: 3;
  padding: 16px 20px;
}

.tile-pass strong,
.tile-rules strong {
  font-size: 27px;
}

.tile-hero {
  grid-column: 2;
  grid-row: 1/4;
  background:
    linear-gradient(180deg, #0001 25%, #000c),
    url("../images/ui/title.webp") 30% center/cover;
  color: #fff;
  border: 3px solid #fff;
  outline: 1px solid #ffffff50;
  outline-offset: 3px;
}

.tile-overline {
  font-size: 9px;
  letter-spacing: 2px;
  background: #111;
  color: white;
  align-self: start;
  padding: 7px 10px;
}

.hero-tile-copy {
  align-self: end;
  text-align: right;
}

.hero-tile-copy strong {
  font-size: clamp(60px, 6vw, 91px);
  line-height: 0.82;
  margin: 12px 0 18px;
}

.hero-tile-copy em {
  color: #d3d3d3;
}

.hero-tile-copy > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: end;
}

.hero-tile-copy b {
  font-size: 22px;
}

#lobby-record {
  font-size: 9px;
  letter-spacing: 1px;
  color: #aaa;
  margin-top: 15px;
}

.arena-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: #ddd;
}

.arena-footer kbd:first-child {
  margin-left: 0;
}

.arena-footer b {
  margin: 0 10px;
  color: #777;
}

#lobby-briefing-view {
  display: flex;
  flex: 1;
  padding: 0;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.setup-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.text-button {
  border: 0;
  background: none;
  color: white;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 8px 0;
}

.setup-heading h1 {
  font-size: clamp(25px, 3.3vw, 44px);
  line-height: 1.05;
  margin-top: 6px;
}

.setup-heading .eyebrow {
  color: #bcbcbc;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  min-height: 420px;
}

.setup-panel {
  background: #ecece8;
  color: #18191b;
  padding: 25px;
  border: 3px solid white;
  outline: 1px solid white;
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 1px solid #8885;
  padding-bottom: 13px;
}

.setup-panel h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 0.95;
  font-style: italic;
}

.opponent-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bp-mode-card {
  border: 2px solid #bfbfbc;
  padding: 18px 16px;
  background: #dededb;
  color: #16171a;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  border-radius: 0;
  min-width: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.bp-mode-card.selected {
  background: #17181a;
  color: white;
  border-color: #17181a;
  box-shadow:
    0 0 0 2px #ecece8,
    0 0 0 3px #17181a;
}

.bp-mode-card:hover {
  transform: translateY(-2px);
  border-color: #17181a;
}

.opponent-icon {
  font:
    700 38px "Barlow Condensed",
    sans-serif;
  line-height: 1.1;
}

.opponent-icon span {
  font-size: 20px;
  margin: 0 4px;
}

.bp-mode-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
}

.bp-mode-card small {
  font-size: 10px;
  line-height: 1.3;
}

.selection-marker {
  font-size: 8px;
  letter-spacing: 1px;
  opacity: 0;
  margin-top: 8px;
}

.selected .selection-marker {
  opacity: 1;
}

.bp-diff-container {
  padding: 0;
  background: none;
  border: 0;
  display: block;
}

.bp-diff-container.collapsed {
  display: none !important;
}

.difficulty-row {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.bp-diff-pill {
  background: #deded9;
  color: #242426;
  border: 1px solid #bbb;
  border-radius: 0;
  padding: 9px 14px;
  font:
    700 15px "Barlow Condensed",
    sans-serif;
  flex: 1;
  box-shadow: none;
}

.bp-diff-pill.active,
.bp-diff-pill:hover {
  background: #17181a;
  color: #fff;
  border-color: #17181a;
}

.setup-rule-strip {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-top: 1px solid #aaa;
  padding-top: 12px;
  margin-top: auto;
}

.setup-poster {
  background:
    linear-gradient(180deg, #0005, #0000 30%, #000e),
    url("../images/ui/lounge-clean.webp") 75% center/cover;
  border: 4px solid #f3f2ee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  min-height: 420px;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poster-copy h2 {
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 0.98;
}

.poster-copy p {
  font-size: 11px;
  margin: 12px 0 19px;
  color: #c8c8c8;
}

.bp-deploy-btn {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  font:
    800 22px "Barlow Condensed",
    sans-serif;
  padding: 15px 20px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.bp-deploy-btn:hover {
  background: #d9d9d5;
  box-shadow: none;
  transform: none;
}

.poster-copy > small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 12px;
  color: #ccc;
}

#title-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #eeede9 url("../images/ui/title.webp") center/cover;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 4vw;
}

.title-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.title-top > span:first-child {
  background: #111;
  color: #fff;
  padding: 8px 10px;
}

.title-copy {
  margin-left: 57%;
  width: 39%;
  padding: 15px 0;
}

.title-ball {
  display: flex;
  width: 66px;
  height: 66px;
  background: #111;
  border-radius: 50%;
  color: #fff;
  align-items: center;
  justify-content: center;
  font:
    700 44px "Space Grotesk",
    sans-serif;
  margin-bottom: 25px;
}

.title-copy .eyebrow {
  font-size: 9px;
}

.title-copy h1 {
  font-size: clamp(45px, 7.2vw, 110px);
  line-height: 0.86;
  letter-spacing: -1px;
  margin: 14px 0 22px;
  font-weight: 900;
}

.title-copy h1 em {
  font-size: 0.85em;
}

.title-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 37px;
}

.loading-caption {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  gap: 10px;
  white-space: nowrap;
}

.loading-track {
  height: 4px;
  background: #1112;
  margin-top: 12px;
}

.loading-track > div {
  height: 100%;
  width: 0;
  background: #111;
  transition: width 0.2s;
}

.title-copy button {
  border: 0;
  border-top: 1px solid #1115;
  border-bottom: 1px solid #1115;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    800 19px "Barlow Condensed",
    sans-serif;
  letter-spacing: 1px;
  background: none;
  color: #111;
  cursor: pointer;
  width: 100%;
}

.title-copy button:hover {
  background: #111;
  color: white;
  padding-left: 10px;
  padding-right: 10px;
}

.title-copy button:focus-visible {
  outline-color: #111;
}

.title-copy button span {
  font-size: 25px;
}

.title-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
}

.title-footer > span:first-child {
  color: #fff;
  background: #111;
  padding: 8px;
}

.title-footer > span:last-child {
  text-align: right;
  line-height: 1.7;
  font-size: 8px;
}

#loading-error {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 12px;
}

#match-report {
  position: fixed;
  inset: 0;
  z-index: 150;
  background:
    linear-gradient(180deg, #08090ef2, #171921e6),
    url("../images/ui/lounge-clean.webp") center/cover;
  color: #ecece9;
  display: flex;
  flex-direction: column;
  padding: 25px 5vw;
  overflow: auto;
  gap: 22px;
}

.report-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #bcbdbf;
}

.report-brand .brand-ball {
  width: 32px;
  height: 32px;
  font-size: 21px;
}

.report-brand b {
  color: white;
}

.report-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #ffffff38;
  padding-bottom: 22px;
}

.report-scoreboard h1 {
  font-size: clamp(28px, 3.4vw, 49px);
  line-height: 1;
  margin-top: 9px;
}

.report-scoreboard .eyebrow {
  color: #999;
}

.report-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 21px;
}

.report-score strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: 5px;
  color: #fff;
}

.report-score small {
  grid-column: 1/4;
  font:
    500 9px "Space Grotesk",
    sans-serif;
  letter-spacing: 1px;
  color: #b9bbbf;
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 220px;
}

.report-player {
  background: #141720a0;
  padding: 19px;
}

.report-player .panel-heading {
  color: #c3c5cd;
  border-color: #ffffff22;
  margin-bottom: 12px;
}

.report-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff0c;
  font-size: 11px;
  color: #b8bac2;
  gap: 12px;
}

.report-stat-row strong {
  font:
    600 15px "Barlow Condensed",
    sans-serif;
  color: #fff;
  text-align: right;
}

.report-center {
  background: #45495565;
  padding: 19px;
  min-width: 0;
}

.report-center-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font:
    700 14px "Barlow Condensed",
    sans-serif;
  letter-spacing: 1px;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 13px;
}

.report-center-heading span:last-child {
  color: #ccc;
}

#report-description {
  font-size: 10px;
  color: #c4c6cd;
  line-height: 1.65;
  margin: 15px 0;
}

#report-events {
  max-height: 285px;
  overflow: auto;
}

.match-event {
  display: flex;
  gap: 16px;
  align-items: start;
  border-top: 1px solid #ffffff15;
  padding: 13px 0;
}

.match-event time {
  color: #afb3bc;
  font-size: 10px;
  min-width: 42px;
  padding-top: 2px;
}

.match-event strong {
  font-size: 11px;
}

.match-event span {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: #b8bac2;
  margin-top: 4px;
}

.empty-record {
  white-space: pre-line;
  color: #b7b9c3;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 1px;
  text-align: center;
  padding: 40px 10px;
}

.report-actions {
  display: flex;
  gap: 6px;
  margin: auto auto 0;
  width: 100%;
  max-width: 1050px;
}

.report-actions button {
  flex: 1;
  background: #11141b;
  color: #ddd;
  border: 0;
  padding: 15px 12px;
  font:
    700 20px "Barlow Condensed",
    sans-serif;
  cursor: pointer;
}

.report-actions button:first-child,
.report-actions button:nth-child(2) {
  background: #eeefea;
  color: #111;
}

.report-actions button:hover {
  background: #bbbdb9;
  color: #111;
}

.report-actions button#btn-resume.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: wait;
  opacity: 1;
}

.report-actions button#btn-resume.loading .match-launch-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: #1114;
  border-top-color: #111;
}

.report-actions button#btn-resume.loading > span:last-child {
  display: none;
}

.report-footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: #bbb;
}

.report-footer kbd {
  margin-left: 0;
}

#btn-pause-match {
  position: absolute;
  top: 17px;
  right: 17px;
  pointer-events: auto;
  background: #111d;
  border: 1px solid #ffffff40;
  color: white;
  padding: 9px 12px;
  font:
    700 12px "Space Grotesk",
    sans-serif;
  cursor: pointer;
  z-index: 10;
}

#btn-pause-match span {
  font-size: 9px;
  margin-left: 5px;
}

.bp-modal-box {
  border-color: #ffffff40;
  border-radius: 0;
  background: #17181bf5;
}

.bp-modal-heading,
.bp-toggle-title,
.bp-gfx-title {
  color: #fff;
}

.bp-modal-close:hover {
  color: #111;
  background: white;
}

.bp-gfx-card.active,
.bp-swatch-item.active {
  border-color: white;
  box-shadow: none;
}

.bp-modal-overlay {
  background: #000b;
}

.bp-gfx-card:hover {
  border-color: white;
}

.bp-controls-key {
  background: #fff;
  color: #111;
}

input {
  accent-color: #fff !important;
}

@media (min-width: 1500px) {
  .arena-grid {
    grid-template-rows: 220px 105px 105px;
  }

  .arena-tile {
    padding: 27px;
  }

  .tile-pass,
  .tile-rules {
    padding: 24px;
  }

  .setup-grid {
    min-height: 510px;
  }

  .setup-poster {
    min-height: 510px;
  }

  .setup-panel {
    padding: 32px;
    gap: 25px;
  }

  .bp-mode-card {
    padding: 25px;
  }

  .report-columns {
    max-height: 530px;
  }

  .report-stat-row {
    padding: 18px 0;
  }
}

@media (max-width: 900px) {
  #cod-lobby {
    padding: 18px 4vw;
    gap: 15px;
  }

  .bp-header-icon-btn {
    padding: 7px;
  }

  .brand-word {
    font-size: 15px;
  }

  .brand-word b {
    font-size: 19px;
  }

  .brand-ball {
    width: 33px;
    height: 33px;
    font-size: 21px;
  }

  .arena-grid {
    grid-template-columns: 1fr 1.65fr 1fr;
    grid-template-rows: 150px 80px 80px;
  }

  .arena-tile {
    padding: 17px;
  }

  .arena-tile strong {
    font-size: 27px;
  }

  .tile-pass strong,
  .tile-rules strong {
    font-size: 21px;
  }

  .arena-tile small {
    font-size: 7px;
  }

  .hero-tile-copy strong {
    font-size: 65px;
  }

  .tile-arrow {
    right: 10px;
    bottom: 11px;
  }

  .arena-tabs button {
    padding: 8px 24px;
  }

  .setup-grid {
    gap: 16px;
    min-height: 380px;
  }

  .setup-panel,
  .setup-poster {
    padding: 19px;
    min-height: 380px;
  }

  .setup-panel {
    gap: 15px;
  }

  .setup-panel h2 {
    font-size: 43px;
  }

  .bp-mode-card {
    padding: 12px;
    gap: 7px;
  }

  .bp-mode-card strong {
    font-size: 22px;
  }

  .opponent-icon {
    font-size: 29px;
  }

  .poster-copy h2 {
    font-size: 37px;
  }

  .report-scoreboard {
    gap: 18px;
  }

  .report-score {
    gap: 12px;
    font-size: 16px;
  }

  .report-score strong {
    font-size: 40px;
  }

  .report-columns {
    grid-template-columns: 1fr 1.3fr 1fr;
  }

  .report-player,
  .report-center {
    padding: 13px;
  }

  .report-stat-row {
    font-size: 10px;
    padding: 12px 0;
  }

  .report-actions button {
    font-size: 17px;
  }

  #report-events {
    max-height: 255px;
  }

  .title-copy {
    margin-left: 54%;
    width: 43%;
  }

  .title-copy h1 {
    font-size: 8vw;
  }

  .title-ball {
    width: 50px;
    height: 50px;
    font-size: 35px;
  }
}

@media (max-width: 600px) {
  #cod-lobby {
    padding: 16px 18px;
    gap: 16px;
  }

  .bp-header-right {
    gap: 0;
  }

  .bp-header-icon-btn {
    padding: 7px 6px;
    font-size: 8px;
  }

  .bp-header-icon-btn svg {
    display: none;
  }

  .bp-quick-dock {
    padding: 3px;
  }

  .brand-word {
    font-size: 12px;
  }

  .brand-word b {
    font-size: 16px;
  }

  .bp-brand-dock {
    gap: 7px;
  }

  .arena-tabs button {
    padding: 7px 17px;
    font-size: 15px;
  }

  .lobby-heading {
    align-items: start;
    gap: 15px;
  }

  .lobby-heading .eyebrow {
    font-size: 8px;
    max-width: 105px;
    line-height: 1.5;
  }

  .lobby-heading h1 {
    font-size: 27px;
  }

  .lobby-heading h1 br {
    display: block;
  }

  .lobby-heading h1 em {
    margin: 0;
  }

  .arena-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 110px 100px 75px;
    gap: 7px;
  }

  .tile-hero {
    grid-column: 1/3;
    grid-row: 1;
  }

  .tile-controls {
    grid-column: 1;
    grid-row: 3;
  }

  .tile-stats {
    grid-column: 2;
    grid-row: 3;
  }

  .tile-ai {
    grid-column: 1;
    grid-row: 2;
  }

  .tile-pass {
    grid-column: 2;
    grid-row: 2;
  }

  .tile-rules {
    grid-column: 1/3;
    grid-row: 4;
  }

  .arena-tile {
    padding: 15px;
  }

  .tile-symbol {
    font-size: 23px;
  }

  .arena-tile strong {
    font-size: 29px;
  }

  .tile-controls .tile-symbol,
  .tile-stats .tile-symbol {
    display: none;
  }

  .tile-pass strong {
    font-size: 29px;
  }

  .hero-tile-copy strong {
    font-size: 70px;
  }

  .tile-rules strong {
    font-size: 23px;
  }

  .tile-hero {
    background-position: 30% 60%;
  }

  .tile-hero .hero-tile-copy {
    display: block;
  }

  .hero-tile-copy small {
    font-size: 7px;
  }

  .hero-tile-copy > span {
    font-size: 8px;
    gap: 15px;
  }

  .arena-footer {
    font-size: 7px;
  }

  .arena-footer > span:last-child {
    display: none;
  }

  .setup-heading {
    display: block;
  }

  .setup-heading h1 {
    font-size: 34px;
    margin-top: 5px;
  }

  .setup-heading .text-button {
    margin-bottom: 14px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .setup-panel {
    padding: 20px;
    min-height: 0;
    gap: 20px;
  }

  .setup-panel h2 {
    font-size: 43px;
  }

  .bp-mode-card {
    padding: 16px;
  }

  .bp-mode-card strong {
    font-size: 26px;
  }

  .setup-poster {
    min-height: 320px;
    padding: 20px;
  }

  .poster-copy h2 {
    font-size: 43px;
  }

  .title-copy {
    margin: 0;
    width: 100%;
    align-self: end;
    padding: 26px;
    background: #f0efeadc;
    backdrop-filter: blur(8px);
  }

  #title-screen {
    padding: 20px;
    background-position: 28% center;
    gap: 20px;
  }

  .title-top {
    font-size: 8px;
    align-items: center;
  }

  .title-copy h1 {
    font-size: 64px;
    margin: 15px 0 20px;
  }

  .title-ball {
    display: none;
  }

  .title-tagline {
    font-size: 8px;
    margin-bottom: 27px;
  }

  .title-footer > span:first-child {
    display: none;
  }

  .title-footer {
    justify-content: end;
  }

  .title-copy button {
    font-size: 20px;
  }

  .title-copy .eyebrow {
    font-size: 8px;
  }

  .title-footer > span:last-child {
    background: #f0efeac9;
    padding: 8px;
  }

  .loading-caption {
    font-size: 7px;
  }

  #match-report {
    padding: 18px;
    gap: 18px;
  }

  .report-brand {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .report-scoreboard {
    display: block;
    padding-bottom: 16px;
  }

  .report-scoreboard h1 {
    font-size: 38px;
  }

  .report-score {
    margin-top: 22px;
    font-size: 21px;
    gap: 12px;
  }

  .report-score strong {
    font-size: 46px;
  }

  .report-columns {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    min-height: 0;
  }

  .report-center {
    grid-column: 1/3;
    grid-row: 2;
  }

  .report-player {
    padding: 14px;
  }

  .report-stat-row {
    font-size: 10px;
    padding: 11px 0;
  }

  .report-stat-row strong {
    font-size: 15px;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .report-actions button {
    font-size: 17px;
    min-height: 46px;
  }

  .report-footer {
    font-size: 7px;
    gap: 15px;
  }

  .report-footer > span:last-child {
    text-align: right;
  }

  #report-events {
    max-height: 225px;
  }

  .empty-record {
    padding: 16px;
    font-size: 10px;
  }

  .report-score small {
    font-size: 8px;
  }

  #btn-pause-match span {
    display: none;
  }
}

@media (max-height: 600px) and (min-width: 601px) {
  #cod-lobby {
    padding: 14px 4vw;
    gap: 10px;
  }

  .arena-grid {
    grid-template-rows: 115px 65px 65px;
  }

  .lobby-heading h1 {
    font-size: 26px;
  }

  .lobby-heading {
    display: none;
  }

  .arena-tile {
    padding: 14px;
  }

  .tile-symbol {
    font-size: 24px;
  }

  .arena-tile strong {
    font-size: 27px;
  }

  .hero-tile-copy strong {
    font-size: 65px;
  }

  .tile-pass strong,
  .tile-rules strong {
    font-size: 23px;
  }

  .setup-heading h1 {
    font-size: 29px;
  }

  .setup-heading .eyebrow {
    display: none;
  }

  .setup-grid {
    min-height: 0;
  }

  .setup-panel,
  .setup-poster {
    min-height: 295px;
    padding: 16px;
  }

  .setup-panel {
    gap: 13px;
  }

  .setup-panel h2 {
    font-size: 36px;
  }

  .bp-mode-card {
    padding: 10px;
  }

  .opponent-icon {
    display: none;
  }

  .bp-mode-card strong {
    font-size: 23px;
  }

  .setup-rule-strip {
    font-size: 7px;
  }

  .poster-copy h2 {
    font-size: 33px;
  }

  .title-ball {
    display: none;
  }

  .title-copy h1 {
    font-size: 60px;
  }

  .title-tagline {
    margin-bottom: 25px;
  }

  #match-report {
    gap: 13px;
    padding: 14px 4vw;
  }

  .report-brand {
    display: none;
  }

  .report-scoreboard {
    padding-bottom: 12px;
  }

  .report-scoreboard h1 {
    font-size: 32px;
  }

  .report-score strong {
    font-size: 38px;
  }

  .report-columns {
    min-height: 180px;
  }

  .report-stat-row {
    padding: 8px 0;
  }

  #report-events {
    max-height: 165px;
  }

  .report-actions button {
    padding: 10px;
  }

  .report-footer {
    font-size: 7px;
  }
}

/* In-game HUD: the same square, monochrome sports-menu language as the lobby. */
#tournament-hud .tactical-tools-dock,
#tournament-hud .bottom-matchup-container,
#tournament-hud .aim-steer-dock,
#tournament-hud .vertical-power-dock {
  background: rgba(10, 11, 13, 0.84);

  border: 1px solid rgba(255, 255, 255, 0.28);

  border-radius: 0;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);

  backdrop-filter: none;

  -webkit-backdrop-filter: none;
}

#tournament-hud .tool-icon-btn {
  border: 0;

  border-radius: 0;

  color: #d6d7d8;
}

#tournament-hud .tool-icon-btn:hover,
#tournament-hud .tool-icon-btn:focus-visible {
  color: #111214;

  background: #f1f0ec;

  border-color: transparent;

  outline: none;

  transform: none;
}

#tournament-hud .bottom-matchup-container {
  padding: 6px 10px;
}

#tournament-hud .bottom-player-plate {
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow: none;
}

#tournament-hud .bottom-player-plate.active-turn {
  background: rgba(255, 255, 255, 0.08);

  border-color: #fff;

  box-shadow: inset 0 -2px #fff;
}

#tournament-hud .bottom-player-plate.active-turn .bottom-player-name {
  color: #fff;
}

#tournament-hud .bottom-role-badge,
#tournament-hud .bottom-player-plate.active-turn .bottom-role-badge {
  color: #d1d2d3;

  background: rgba(255, 255, 255, 0.07);

  border-color: rgba(255, 255, 255, 0.24);

  border-radius: 0;
}

#tournament-hud .bottom-vs-badge {
  color: #fff;

  background: #17181b;

  border-color: rgba(255, 255, 255, 0.42);

  border-radius: 0;
}

#tournament-hud .aim-steer-dock > span {
  color: #d1d2d3 !important;
  letter-spacing: 1px;
}

#tournament-hud .cue-ball-spin-box {
  border-color: #fff;
  box-shadow:
    0 2px 10px #0009,
    inset 0 -2px 4px #0004;
}

#tournament-hud .cue-ball-spin-box:hover {
  border-color: #fff;
  transform: none;
}

#tournament-hud .cue-ball-spin-dot {
  border-color: #111214;
  background: rgba(17, 18, 20, 0.3);
  box-shadow: 0 0 0 1px #fff8;
}

#tournament-hud .vertical-power-dock {
  right: max(17px, env(safe-area-inset-right));
  padding: 7px 6px;
}

#tournament-hud .power-track-bar {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.35);
  background: #08090b;
  box-shadow: inset 0 0 0 1px #000;
}

#tournament-hud .power-track-fill,
#tournament-hud .power-knob-circle {
  background: #f1f0ec;
  box-shadow: none;
}

#tournament-hud .btn-fire-cue {
  border-radius: 0;
  background: #f1f0ec;
  color: #111214;
  border: 0;
  box-shadow: none;
}

#tournament-hud .btn-fire-cue:hover {
  background: #cfd0cd;
  box-shadow: none;
  filter: none;
  transform: none;
}

/* Pause owns the top-right corner;
   spin sits on its own row beneath it. */
#btn-pause-match {
  top: max(17px, env(safe-area-inset-top));

  right: max(17px, env(safe-area-inset-right));

  min-width: 92px;

  height: 44px;

  padding: 0 14px;

  color: #fff;

  background: rgba(10, 11, 13, 0.9);

  border: 1px solid rgba(255, 255, 255, 0.36);

  border-radius: 0;

  clip-path: none;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.32),
    inset 0 -2px #fff;

  letter-spacing: 1px;
}

#btn-pause-match:hover,
#btn-pause-match:focus-visible {
  color: #111214;
  background: #f1f0ec;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  outline: none;
}

#tournament-hud .top-right-controls {
  position: absolute;

  top: max(75px, calc(env(safe-area-inset-top) + 58px));

  right: max(17px, env(safe-area-inset-right));

  margin: 0;
}

#tournament-hud .top-right-controls .tactical-tools-dock {
  padding: 5px !important;
}

@media (max-width: 760px) {
  #btn-pause-match {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    min-width: 42px;
    height: 40px;
    padding: 0 10px;
  }

  #tournament-hud .top-right-controls {
    top: max(62px, calc(env(safe-area-inset-top) + 52px));
    right: max(10px, env(safe-area-inset-right));
  }

  #tournament-hud .vertical-power-dock {
    right: max(10px, env(safe-area-inset-right));
  }
}

@media (max-height: 500px) {
  #btn-pause-match {
    height: 34px;
  }

  #tournament-hud .top-right-controls {
    top: max(50px, calc(env(safe-area-inset-top) + 42px));
  }

  #tournament-hud .cue-ball-spin-box {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 600px) {
  #match-report > * {
    flex-shrink: 0;
  }

  .report-columns {
    flex: none;
  }

  .report-actions {
    margin: 0;
  }

  .report-center {
    min-height: 180px;
  }

  .report-stat-row {
    font-size: 11px;
  }

  .report-footer {
    padding-bottom: 4px;
  }
}

/* Keep the complete title block on the clean white side of the artwork. */
@media (min-width: 901px) {
  .title-copy {
    margin-left: auto;
    margin-right: 2vw;
    width: clamp(250px, 23vw, 440px);
    padding-right: 0;
  }

  .title-copy h1 {
    font-size: clamp(64px, 6.1vw, 110px);
  }
}

.title-ball {
  background: none;
  border-radius: 0;
  object-fit: contain;
}

.title-ball svg {
  display: block;
  width: 100%;
  height: 100%;
}

.title-top {
  font-size: clamp(12px, 0.8vw, 16px);
}

.title-top > span:first-child {
  padding: 10px 14px;
}

.title-footer {
  font-size: clamp(12px, 0.8vw, 15px);
}

.title-footer > span:first-child {
  padding: 10px 12px;
}

.title-footer > span:last-child {
  font-size: clamp(11px, 0.75vw, 14px);
  line-height: 1.7;
}

.title-copy .eyebrow {
  font-size: clamp(11px, 0.72vw, 14px);
}

.title-tagline {
  font-size: clamp(11px, 0.75vw, 14px);
}

.loading-caption {
  font-size: clamp(11px, 0.75vw, 14px);
  line-height: 1.5;
}

.loading-track {
  height: 5px;
  margin-top: 14px;
}

@media (max-width: 900px) and (min-width: 601px) {
  .title-copy {
    margin-left: auto;
    margin-right: 1.5vw;
    width: 30vw;
  }

  .title-copy h1 {
    font-size: 6.8vw;
  }

  .title-top,
  .title-footer {
    font-size: 11px;
  }

  .title-footer > span:last-child {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .title-top {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .title-top > span:first-child {
    padding: 8px 10px;
  }

  .title-copy .eyebrow,
  .title-tagline,
  .loading-caption {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .title-footer > span:last-child {
    font-size: 10px;
  }
}

.lobby-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  width: 100%;
  position: relative;
  z-index: 55;
}

.lobby-page.hidden-view {
  display: none !important;
}

.aux-grid {
  min-height: 470px;
}

.settings-panel {
  gap: 17px;
}

.settings-panel h2,
.info-panel h2 {
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 0.97;
}

.performance-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #b8b8b4;
  border-bottom: 1px solid #b8b8b4;
  padding: 13px 0;
  gap: 20px;
  cursor: pointer;
}

.performance-setting strong {
  font:
    800 19px "Barlow Condensed",
    sans-serif;
}

.performance-setting small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #555;
}

.performance-setting input {
  width: 23px;
  height: 23px;
  accent-color: #111 !important;
  cursor: pointer;
}

.quality-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.quality-cards .bp-gfx-card {
  padding: 15px 8px;
  border: 1px solid #bbb;
  border-radius: 0;
  background: #dfdfdb;
  color: #111;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

.quality-cards .bp-gfx-card.active,
.quality-cards .bp-gfx-card:hover {
  background: #17181a;
  color: #fff;
  border-color: #17181a;
  transform: none;
  box-shadow: none;
}

.quality-cards strong {
  display: block;
  font:
    800 23px "Barlow Condensed",
    sans-serif;
}

.quality-cards small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}

.audio-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.audio-settings button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #bbb;
  background: #deded9;
  color: #111;
  padding: 15px 10px;
  cursor: pointer;
}

.audio-settings button[aria-pressed="true"] {
  background: #17181a;
  color: white;
  border-color: #17181a;
}

.audio-settings span {
  font-size: 8px;
  letter-spacing: 0.7px;
  font-weight: 700;
}

.audio-settings strong {
  font:
    800 24px "Barlow Condensed",
    sans-serif;
}

.finish-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 23px;
}

.finish-cards .bp-swatch-item {
  min-width: 0;
  background: #111c;
  border: 1px solid #ffffff40;
  color: white;
  border-radius: 0;
  padding: 12px 4px;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
}

.finish-cards .bp-swatch-item.active {
  border: 2px solid white;
  background: #ffffff25;
  box-shadow: none;
  transform: none;
}

.finish-cards .bp-swatch-item:hover {
  border-color: white;
  transform: translateY(-2px);
}

.finish-color {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff70;
  margin: 0 auto 9px;
}

.finish-color.color-red {
  background: #ad001c;
}

.finish-color.color-green {
  background: #17671b;
}

.finish-color.color-blue {
  background: #526b8b;
}

.finish-color.color-charcoal {
  background: #263238;
}

.finish-color.color-violet {
  background: #4a154b;
}

.top-right-controls .tactical-tools-dock {
  padding: 4px;
}

.aim-steer-dock .aim-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cod-text-muted);
}

.finish-cards strong {
  font:
    700 13px "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.5px;
}

.finish-poster .poster-copy > small {
  color: #fff;
}

.info-panel {
  gap: 16px;
}

.info-tabs {
  display: flex;
  gap: 3px;
}

.info-tabs button {
  flex: 1;
  border: 1px solid #bcbcb9;
  background: #deded9;
  color: #111;
  padding: 10px;
  font:
    800 18px "Barlow Condensed",
    sans-serif;
  cursor: pointer;
}

.info-tabs button.selected,
.info-tabs button:hover {
  background: #17181a;
  border-color: #17181a;
  color: white;
}

.info-panel h2 {
  margin-bottom: 17px;
}

.info-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #b8b8b4;
  padding: 12px 0;
  gap: 15px;
}

.info-control-row > span {
  font-size: 11px;
  color: #454548;
}

.info-control-row strong {
  font:
    700 16px "Barlow Condensed",
    sans-serif;
  text-align: right;
}

.info-note {
  font-size: 11px;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid #b8b8b4;
  padding-top: 13px;
}

.rule-list {
  list-style: none;
  counter-reset: rules;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rule-list li {
  counter-increment: rules;
  position: relative;
  padding: 0 0 12px 36px;
  border-bottom: 1px solid #b8b8b4;
}

.rule-list li:before {
  content: counter(rules, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font:
    800 20px "Barlow Condensed",
    sans-serif;
  color: #777;
}

.rule-list strong {
  font:
    800 19px "Barlow Condensed",
    sans-serif;
}

.rule-list p {
  font-size: 11px;
  line-height: 1.6;
  color: #454548;
  margin-top: 4px;
}

.info-poster .setup-rule-strip {
  color: #ccc;
  border-color: #ffffff40;
}

.match-launch-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid #1114;
  border-top-color: #111;
  border-radius: 50%;
  animation: match-spin 0.7s linear infinite;
}

.bp-deploy-btn.loading {
  justify-content: start;
  gap: 14px;
  opacity: 1;
  cursor: wait;
}

.bp-deploy-btn.loading > span:last-child {
  display: none;
}

#lobby-briefing-view:has(.bp-deploy-btn.loading) .setup-panel {
  pointer-events: none;
  opacity: 0.7;
}

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

.bp-deploy-btn.loading #deploy-btn-text {
  color: #111;
}

#info-controls,
#info-rules {
  max-height: clamp(240px, 44vh, 470px);
  overflow-y: auto;
  padding-right: 24px;
  scrollbar-gutter: stable;
  scrollbar-color: #92928f #deded9;
  scrollbar-width: thin;
}

#report-events {
  padding-right: 18px;
  scrollbar-gutter: stable;
}

@media (max-width: 600px) {
  #info-controls,
  #info-rules {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }
}

@media (min-width: 1500px) {
  .aux-grid {
    min-height: 520px;
  }

  .settings-panel {
    gap: 20px;
  }

  .info-control-row {
    padding: 14px 0;
  }

  .settings-panel h2,
  .info-panel h2 {
    font-size: 56px;
  }
}

@media (max-width: 900px) {
  .aux-grid {
    gap: 16px;
    min-height: 430px;
  }

  .settings-panel {
    gap: 14px;
  }

  .quality-cards {
    grid-template-columns: 1fr 1fr;
  }

  .quality-cards .bp-gfx-card {
    padding: 11px;
  }

  .quality-cards strong {
    font-size: 21px;
  }

  .audio-settings {
    grid-template-columns: 1fr;
  }

  .audio-settings button {
    padding: 10px;
  }

  .finish-cards {
    gap: 4px;
  }

  .finish-color {
    width: 26px;
    height: 26px;
  }

  .finish-cards strong {
    font-size: 11px;
  }

  .info-control-row strong {
    font-size: 14px;
  }

  .info-control-row > span {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .arena-tabs button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .lobby-page {
    gap: 20px;
  }

  .aux-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 19px;
  }

  .settings-panel {
    gap: 18px;
  }

  .quality-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .quality-cards .bp-gfx-card {
    padding: 12px 7px;
  }

  .quality-cards strong {
    font-size: 20px;
  }

  .audio-settings {
    grid-template-columns: 1fr 1fr;
  }

  .finish-poster {
    min-height: 380px;
  }

  .finish-cards {
    gap: 6px;
  }

  .finish-color {
    width: 30px;
    height: 30px;
  }

  .finish-cards strong {
    font-size: 12px;
  }

  .info-control-row {
    padding: 12px 0;
  }

  .info-control-row strong {
    font-size: 14px;
  }

  .info-control-row > span {
    font-size: 11px;
  }

  .info-poster {
    min-height: 320px;
  }

  .rule-list p {
    font-size: 12px;
  }

  .performance-setting strong {
    font-size: 20px;
  }

  .settings-panel h2,
  .info-panel h2 {
    font-size: 42px;
  }

  .match-launch-spinner {
    width: 20px;
    height: 20px;
  }
}

@media (max-height: 600px) and (min-width: 601px) {
  .aux-grid {
    min-height: 0;
  }

  .settings-panel {
    gap: 12px;
  }

  .settings-panel h2,
  .info-panel h2 {
    font-size: 36px;
  }

  .quality-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .quality-cards .bp-gfx-card {
    padding: 10px 8px;
  }

  .quality-cards small {
    display: none;
  }

  .audio-settings {
    grid-template-columns: 1fr 1fr;
  }

  .performance-setting {
    padding: 10px 0;
  }

  .info-panel {
    gap: 13px;
  }

  .info-control-row {
    padding: 10px 0;
  }

  .lobby-page {
    margin: 10px auto;
  }

  .finish-poster {
    min-height: 340px;
  }
}

.stats-mode-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.stats-mode-tabs[hidden] {
  display: none;
}

.stats-mode-tabs button {
  padding: 10px 22px;
  border: 1px solid #ffffff30;
  background: #141720;
  color: #ccc;
  cursor: pointer;
  font:
    700 18px "Barlow Condensed",
    sans-serif;
}

.stats-mode-tabs button.active {
  background: #eeefea;
  color: #111;
  border-color: #eeefea;
}

.stats-mode-tabs button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* Shared menu scrollbars follow each panel's monochrome surface. */
:is(#cod-lobby, #match-report) {
  --menu-scroll-thumb: #92938f;
  --menu-scroll-track: #141519;
  --menu-scroll-hover: #eeefea;
}

:is(#cod-lobby, #match-report) .setup-panel {
  --menu-scroll-thumb: #777873;
  --menu-scroll-track: #deded9;
  --menu-scroll-hover: #242522;
}

:is(#cod-lobby, #match-report),
:is(#cod-lobby, #match-report) * {
  scrollbar-width: thin;
  scrollbar-color: var(--menu-scroll-thumb) var(--menu-scroll-track);
}

:is(#cod-lobby, #match-report)::-webkit-scrollbar,
:is(#cod-lobby, #match-report) *::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

:is(#cod-lobby, #match-report)::-webkit-scrollbar-track,
:is(#cod-lobby, #match-report) *::-webkit-scrollbar-track {
  background: var(--menu-scroll-track);
  border-radius: 2px;
}

:is(#cod-lobby, #match-report)::-webkit-scrollbar-thumb,
:is(#cod-lobby, #match-report) *::-webkit-scrollbar-thumb {
  background: var(--menu-scroll-thumb);
  border: 1px solid var(--menu-scroll-track);
  border-radius: 2px;
}

:is(#cod-lobby, #match-report)::-webkit-scrollbar-thumb:hover,
:is(#cod-lobby, #match-report) *::-webkit-scrollbar-thumb:hover {
  background: var(--menu-scroll-hover);
}

:is(#cod-lobby, #match-report)::-webkit-scrollbar-corner,
:is(#cod-lobby, #match-report) *::-webkit-scrollbar-corner {
  background: var(--menu-scroll-track);
}

/* Lobby scrolling stays functional through wheel/trackpad/touch without a
   browser scrollbar. A compact desktop hint handles discoverability. */
#cod-lobby,
#cod-lobby * {
  scrollbar-width: none;
}

#cod-lobby::-webkit-scrollbar,
#cod-lobby *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#lobby-scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  transform: translate(-50%, 0);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(10, 11, 13, 0.92);
  color: #fff;
  box-shadow: 0 10px 28px #0007;
  font:
    700 11px "Space Grotesk",
    sans-serif;
  letter-spacing: 1.4px;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s,
    opacity 0.18s;
}

#lobby-scroll-hint:hover,
#lobby-scroll-hint:focus-visible {
  background: #f1f0ec;
  color: #111214;
  transform: translate(-50%, -3px);
  outline: none;
}

#lobby-scroll-hint b {
  font-size: 18px;
  line-height: 1;
  animation: lobby-scroll-arrow 1.1s ease-in-out infinite alternate;
}

@keyframes lobby-scroll-arrow {
  to {
    transform: translateY(4px);
  }
}

/* The native pointer is intentionally replaced by a clear game reticle. */
#game-reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s;
}
.desktop-game-input #game-reticle,
html.room-view-active:not(.game-paused) #game-reticle {
  opacity: 1;
}
html.desktop-game-input:not(.game-paused),
html.desktop-game-input:not(.game-paused) body,
html.desktop-game-input:not(.game-paused) *,
.desktop-game-input #webgl-canvas,
.desktop-game-input #webgl-canvas canvas,
html.room-view-active:not(.game-paused),
html.room-view-active:not(.game-paused) body,
html.room-view-active:not(.game-paused) *,
html.room-view-active:not(.game-paused) #webgl-canvas,
html.room-view-active:not(.game-paused) #webgl-canvas canvas {
  cursor: none !important;
}

#tournament-hud .tool-icon-btn.virtual-hover,
#tournament-hud button.virtual-hover,
.virtual-hover {
  background: #f1f0ec !important;
  color: #111214 !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.45) !important;
  border-color: #fff !important;
}

#game-reticle.is-pointer {
  transform: translate(-50%, -50%) scale(1.25);
}
#game-reticle.is-pointer:before,
#game-reticle.is-pointer:after,
#game-reticle.is-pointer span:before,
#game-reticle.is-pointer span:after {
  background: #00e5ff !important;
  box-shadow:
    0 0 3px #00e5ff,
    0 0 8px #00e5ff !important;
}

#match-report,
#match-report *:not(button):not([role="button"]):not(a):not(input):not(select) {
  cursor: default !important;
}

#match-report button,
#match-report [role="button"],
#match-report a {
  cursor: pointer !important;
}

body.game-paused,
html.game-paused,
html.game-paused * {
  cursor: default !important;
}
html.game-paused button,
html.game-paused [role="button"],
html.game-paused a {
  cursor: pointer !important;
}

body.game-paused #game-reticle,
html.game-paused #game-reticle,
#match-report:not([hidden]) ~ #game-reticle {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#game-reticle:before,
#game-reticle:after,
#game-reticle span:before,
#game-reticle span:after {
  content: "";
  position: absolute;
  background: #fff;
  box-shadow:
    0 0 2px #000,
    0 0 5px #000;
}

#game-reticle:before,
#game-reticle:after {
  left: 10px;
  width: 2px;
  height: 6px;
}
#game-reticle:before {
  top: 0;
}
#game-reticle:after {
  bottom: 0;
}
#game-reticle span:before,
#game-reticle span:after {
  top: 10px;
  width: 6px;
  height: 2px;
}
#game-reticle span:before {
  left: 0;
}
#game-reticle span:after {
  right: 0;
}

#btn-free-look.active {
  background: #f1f0ec !important;
  color: #111214 !important;
  border-color: #fff !important;
}

/* Manual steering belongs to touch devices and sits above the right side of
   the player strip instead of crowding the desktop mouse HUD. */
.mobile-manual-aim .aim-steer-dock {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
  min-height: 46px;
  z-index: 26;
}

@media (max-width: 760px), (hover: none) {
  #lobby-scroll-hint {
    display: none !important;
  }
}

/* Aim controls stay recovered and attached to the player strip. Desktop uses
   the mouse as the primary control; touch devices use these hold buttons. */
.player-controls-stack {
  margin-left: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.player-controls-stack .bottom-matchup-container {
  margin-left: 0;
}

#tournament-hud .aim-steer-dock,
.mobile-manual-aim #tournament-hud .aim-steer-dock {
  display: flex;
  position: static;
  right: auto;
  bottom: auto;
  min-height: 46px;
  padding: 5px 8px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 -2px #fff;
  z-index: auto;
}

#tournament-hud .aim-steer-dock .tool-icon-btn {
  width: 42px;
  height: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Premium click-and-hold lobby navigation control. */
#lobby-scroll-hint {
  padding: 6px;
  gap: 6px;
  cursor: default;
  transform: translateX(-50%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 14px 35px #0009,
    inset 0 -2px #fff;
}

#lobby-scroll-hint:hover,
#lobby-scroll-hint:focus-within {
  color: #fff;
  background: rgba(10, 11, 13, 0.96);
  transform: translateX(-50%);
}

#lobby-scroll-hint > span {
  display: flex;
  flex-direction: column;
  padding: 0 10px 0 6px;
  line-height: 1.05;
  text-align: left;
}

#lobby-scroll-hint small {
  color: #aeb0b2;
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

#lobby-scroll-hint button {
  width: 42px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #202226;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}

#lobby-scroll-hint button:hover,
#lobby-scroll-hint button:focus-visible {
  background: #f1f0ec;
  color: #111214;
  transform: translateY(-2px);
  outline: none;
}

#lobby-scroll-hint button:active,
#lobby-scroll-hint button.scrolling {
  transform: translateY(1px);
  background: #fff;
  color: #111;
}

#lobby-scroll-hint button:disabled {
  opacity: 0.28;
  cursor: default;
  transform: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hud-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .player-controls-stack {
    max-width: calc(100% - 250px);
  }
  .player-controls-stack .bottom-matchup-container {
    width: 100%;
  }
}

/* Mobile & Narrow Viewport: 2-Row HUD Layout + Single-Row Player Card */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .hud-bottom-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 6px !important;
    column-gap: 6px !important;
    width: 100% !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .player-controls-stack {
    display: contents !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hud-bottom-row .tactical-tools-dock {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 3px 6px !important;
    gap: clamp(2px, 1vw, 6px) !important;
  }
  .hud-bottom-row .tactical-tools-dock .tool-icon-btn {
    width: clamp(30px, 6.8vw, 36px) !important;
    height: clamp(32px, 7.2vw, 38px) !important;
  }
  #tournament-hud .aim-steer-dock,
  .mobile-manual-aim #tournament-hud .aim-steer-dock,
  .aim-steer-dock {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
    display: flex !important;
    padding: 3px 6px !important;
    gap: 4px !important;
    min-height: unset !important;
    border-radius: 2px !important;
  }
  #tournament-hud .aim-steer-dock .tool-icon-btn {
    width: clamp(30px, 6.8vw, 36px) !important;
    height: clamp(32px, 7.2vw, 38px) !important;
  }
  .bottom-matchup-container,
  .player-controls-stack .bottom-matchup-container {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 4px !important;
    column-gap: 8px !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  #p1-card {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  #p2-card {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .bottom-player-plate {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: clamp(4px, 1.5vw, 10px) !important;
    padding: 3px 6px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
  }
  #p2-card .bottom-player-info {
    order: -1 !important;
  }
  #p2-card .bottom-player-info .bottom-player-name {
    order: -1 !important;
  }
  .bottom-player-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(3px, 1vw, 6px) !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .bottom-player-name {
    font-size: clamp(9px, 2.2vw, 12px) !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
    font-weight: 800 !important;
  }
  .bottom-role-badge {
    font-size: clamp(7.5px, 1.8vw, 9.5px) !important;
    padding: 1px 4px !important;
    white-space: nowrap !important;
    border-radius: 2px !important;
  }
  .bottom-player-balls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(2px, 0.8vw, 4px) !important;
    flex-shrink: 0 !important;
  }
  .bottom-player-balls .top-ball-pip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(14px, 3.4vw, 19px) !important;
    height: clamp(14px, 3.4vw, 19px) !important;
    font-size: clamp(7.5px, 1.8vw, 10px) !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
  }
  .bottom-player-balls .top-ball-pip:nth-child(n + 6) {
    display: flex !important;
  }
  .bottom-vs-badge,
  #top-vs-badge {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    min-width: clamp(24px, 5.5vw, 32px) !important;
    height: clamp(32px, 7.5vw, 42px) !important;
    font-size: clamp(8px, 2vw, 11px) !important;
    padding: 2px 4px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
