body {
  margin: 0;
  padding: 0;
}

.app-container {
  max-width: 1500px;
  gap: 16px;
}

/* Site header and footer belong to the index shell. */
.top-bar {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  max-height: 48px;
  min-height: 48px;
  padding: 8px 16px;
  box-sizing: border-box;
  background: #000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: static !important;
  top: auto !important;
  z-index: 9000;
  overflow: visible;
}

body:has(#lobby-view:not(.hidden)) .top-bar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 8px 16px;
  height: 48px;
  max-height: 48px;
  box-sizing: border-box;
  z-index: 9000;
  background: #000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.top-bar h1 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  line-height: 1;
}

.top-bar-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .top-bar-brand-mark {
    width: 28px;
    height: 28px;
  }

  .top-bar-brand {
    gap: 6px;
  }
}

.header-right-group {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 10px;
  min-width: 0;
}

.header-nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger-menu-btn,
.burger-menu-divider {
  display: none !important;
}

.header-right-group > .mini-btn,
.header-right-group > .header-strat-btn,
.header-nav-menu > .mini-btn,
.header-nav-menu > .header-strat-btn,
.lobby-nav-btn,
.strategy-nav-btn {
  padding: 6px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 0;
  box-shadow: none;
  color: #ffffff !important;
  transition: color 0.15s ease;
  cursor: pointer;
}

.header-right-group > .mini-btn,
.header-nav-menu > .mini-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-nav-menu > .mini-btn span,
.header-nav-menu > .header-strat-btn span,
.lobby-nav-btn span,
.strategy-nav-btn span {
  color: inherit;
}

/* When hovering over any button in the nav menu, all other buttons become light grey */
.header-nav-menu:has(> :hover) > .mini-btn,
.header-nav-menu:has(> :hover) > .header-strat-btn,
.header-nav-menu:has(> :hover) .lobby-nav-btn,
.header-nav-menu:has(> :hover) .strategy-nav-btn,
.header-right-group:has(> :hover) > .mini-btn,
.header-right-group:has(> :hover) > .header-strat-btn {
  color: #9ca3af !important;
}

/* The button that is hovered over stays white */
.header-nav-menu > .mini-btn:hover,
.header-nav-menu > .header-strat-btn:hover,
.lobby-dropdown-wrapper:hover .lobby-nav-btn,
.lobby-dropdown-wrapper.open .lobby-nav-btn,
.strategy-dropdown-wrapper:hover .strategy-nav-btn,
.strategy-dropdown-wrapper.open .strategy-nav-btn,
.header-right-group > .mini-btn:hover,
.header-right-group > .header-strat-btn:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: none;
}

/* Lobby & Strategy Dropdown Modals */
.lobby-dropdown-wrapper,
.strategy-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lobby-nav-btn,
.strategy-nav-btn {
  display: inline-flex;
  align-items: center;
}

.lobby-dropdown-menu,
.strategy-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9001;
  min-width: 160px;
  padding: 6px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  display: none;
}

.lobby-dropdown-menu::before,
.strategy-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.lobby-dropdown-wrapper:hover .lobby-dropdown-menu,
.lobby-dropdown-wrapper.open .lobby-dropdown-menu,
.strategy-dropdown-wrapper:hover .strategy-dropdown-menu,
.strategy-dropdown-wrapper.open .strategy-dropdown-menu {
  display: block;
}

.lobby-dropdown-menu button,
.strategy-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent !important;
  color: var(--text-main) !important;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.lobby-dropdown-menu button:hover,
.strategy-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

#auth-container {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c6d4df;
  padding: 6px 14px;
  min-height: 32px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); transition: all 0.2s ease;
}

.steam-btn:hover {
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.steam-btn-icon { width: 16px; height: 16px; fill: currentColor; }

.user-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 3px 12px 3px 6px;
  background: linear-gradient(135deg, #181b20 0%, #101216 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  cursor: pointer;
}

.user-avatar-img { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.user-name-text { font-size: 0.82rem; font-weight: 800; color: #ffffff; }

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9001;
  width: 190px;
  background: rgba(12, 12, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.92), 0 0 20px rgba(255, 255, 255, 0.04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-sizing: border-box;
  animation: mobileMenuFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-menu button,
.profile-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #f4f4f5;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: left;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.profile-menu button:hover,
.profile-menu a:hover,
.profile-menu button:active,
.profile-menu a:active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.profile-menu .profile-menu-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
  border: none;
  box-sizing: border-box;
}

.profile-menu .profile-logout-btn {
  color: #a1a1aa;
}

.profile-menu .profile-logout-btn:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.create-strat-btn {
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #000000;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer {
  display: none;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-container {
  max-width: 980px;
  width: 100%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Header Section */
.lobby-header {
  text-align: center;
  padding: 30px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  line-height: 1;
  text-shadow: none;
}

.hero-logo-accent {
  color: #22c55e;
  text-shadow: 0 0 35px rgba(34, 197, 94, 0.55), 0 0 12px rgba(34, 197, 94, 0.9);
}

.lobby-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 14px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-action-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* Callsign Card */
.nickname-section {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.input-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

#nickname-input, #nickname-input-join {
  width: 100%;
  padding: 14px 16px;
  background-color: #0d0f13;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#nickname-input:focus, #nickname-input-join:focus, #room-input:focus, #home-nickname-input:focus, #home-room-input:focus {
  outline: none;
  border-color: var(--cs-orange);
  box-shadow: 0 0 12px var(--cs-orange-glow);
}

/* Action Cards Grid */
.lobby-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.lobby-grid.single-card-grid {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.lobby-grid.single-card-grid .lobby-card {
  width: 100%;
}

.lobby-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lobby-card.host-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.15);
}

.lobby-card.join-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.15);
}

.card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.host-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.join-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lobby-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
}

.lobby-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 8px 0 20px;
}

.lobby-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px;
}

.host-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  color: #000000;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.host-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}

.create-lobby-btn,
.host-card .host-btn {
  color: #000000 !important;
}

.join-input-group {
  display: flex;
  gap: 8px;
}

#room-input {
  flex: 1;
  padding: 12px;
  background-color: #0d0f13;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}

.join-btn {
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.2s ease;
}

.join-btn:hover {
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.home-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  gap: 0;
}

/* Let the browser handle wheel, touch momentum, and keyboard scrolling. */
html:has(#lobby-view:not(.hidden)) {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  /* Override the legacy demo stylesheet's global mobile overflow rule. */
  overflow-y: visible !important;
}

body:has(#lobby-view:not(.hidden)) {
  overflow: visible;
  overflow-x: clip;
  overflow-y: visible !important;
}

.home-snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: 0;
}

/* The header is in normal document flow, above only the first section. */
#home-hero-splash {
  scroll-margin-top: 48px;
}

html:has(#lobby-view:not(.hidden)):has(.modal-overlay:not(.hidden), #header-nav-menu.open, .lobby-dropdown-wrapper.open, .strategy-dropdown-wrapper.open, .profile-menu:not(.hidden)),
body:has(#lobby-view:not(.hidden)):has(.modal-overlay:not(.hidden), #header-nav-menu.open, .lobby-dropdown-wrapper.open, .strategy-dropdown-wrapper.open, .profile-menu:not(.hidden)) {
  overflow-y: hidden !important;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.home-section-nav {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(8, 12, 16, 0.8);
}

@media (hover: hover) {
  html:has(#lobby-view:not(.hidden)):has(.lobby-dropdown-wrapper:hover, .strategy-dropdown-wrapper:hover),
  body:has(#lobby-view:not(.hidden)):has(.lobby-dropdown-wrapper:hover, .strategy-dropdown-wrapper:hover) {
    overflow-y: hidden !important;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

.home-section-nav[hidden] {
  display: none;
}

.home-section-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-section-nav button span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #637181;
  transition: background 0.2s ease, box-shadow 0.85s ease-out;
}

.home-section-nav button:hover span,
.home-section-nav button[aria-current="step"] span {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-glow);
}

.home-view.hero-brand-settled .home-section-nav button:hover span,
.home-view.hero-brand-settled .home-section-nav button[aria-current="step"] span {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.home-section-nav button:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: -2px;
}

@media (max-width: 640px) {
  .home-section-nav {
    top: auto;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .home-section-nav button {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(#lobby-view:not(.hidden)) {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .home-section-nav button span {
    transition: none;
  }
}

/* ==========================================================================
   Home Hero Section: Logo and tactical preview
   ========================================================================== */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  isolation: isolate;
  overflow: clip;
}

.hero-tactic-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 850px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 74%);
}

.hero-tactic-map,
.hero-tactic-overlay {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-tactic-map {
  object-fit: contain;
  filter: grayscale(0.9);
  opacity: 0.3;
}

.hero-tactic-players,
.hero-tactic-utility {
  opacity: 0;
}

.hero-tactic-player {
  color: var(--player-color, var(--accent-green));
}

.hero-tactic-route,
.hero-tactic-trail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-tactic-route {
  stroke-width: 1.5;
  opacity: 0.12;
}

.hero-tactic-trail {
  stroke-width: 3;
  opacity: 0.48;
}

.hero-tactic-dot {
  fill: currentColor;
  stroke: #080c0a;
  stroke-width: 2;
}

.hero-tactic-throw {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 4 10;
}

.hero-tactic-grenade {
  fill: #d4dce3;
}

.hero-tactic-utility-item[data-kind="flash"] .hero-tactic-grenade {
  fill: #fffbe6;
}

.hero-tactic-throw,
.hero-tactic-grenade,
.hero-tactic-smoke,
.hero-tactic-flash {
  opacity: 0;
}

.hero-tactic-toggle {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.hero-tactic-toggle[hidden] {
  display: none;
}

.hero-tactic-toggle:hover,
.hero-tactic-toggle:focus-visible {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.hero-tactic-toggle:focus-visible {
  outline: 1px solid var(--accent-green);
  outline-offset: 2px;
}

.hero-tactic-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-tactic-play-icon,
.hero-tactic-toggle[aria-pressed="true"] .hero-tactic-pause-icon {
  display: none;
}

.hero-tactic-toggle[aria-pressed="true"] .hero-tactic-play-icon {
  display: block;
}

@media (max-width: 640px) {
  .hero-tactic-preview {
    width: min(112vw, 600px);
  }

  .hero-tactic-toggle {
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .scroll-prompt-line {
    animation: none;
  }
}

.home-scroll-prompt {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0.45;
}

.scroll-prompt-line {
  display: block;
  width: 1.5px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #22c55e 100%);
  animation: promptPulse 2s infinite ease-in-out;
}

@keyframes promptPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-logo-center {
  --hero-mark-size: clamp(110px, 13vw, 180px);
  --hero-brand-gap: clamp(10px, 2vw, 26px);
  --hero-orbit-start-scale: 1.45;
  --hero-orbit-dock-duration: 1.05s;
  --hero-text-start-time: 2.05s;
  --hero-text-snap-duration: 2.2s;
  --hero-intro-finish-time: calc(var(--hero-text-start-time) + var(--hero-text-snap-duration));
  --hero-text-start-x: calc((var(--hero-mark-size) + var(--hero-brand-gap)) / -2);
  --hero-text-start-y: 0px;
  --hero-orbit-end-left: 0px;
  --hero-orbit-end-top: 50%;
  --hero-orbit-end-transform: translate(0, -50%);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: calc(var(--hero-mark-size) + var(--hero-brand-gap));
}

.hero-logo-center .hero-logo-title {
  position: relative;
  z-index: 1;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -2.5px;
  color: #c4c7cc;
  margin: 0;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.hero-orbit-stage {
  position: absolute;
  left: var(--hero-orbit-end-left);
  top: var(--hero-orbit-end-top);
  transform: var(--hero-orbit-end-transform);
  width: var(--hero-mark-size);
  z-index: 0;
  pointer-events: none;
}

.hero-orbit-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: brightness(1.08) drop-shadow(0 0 7px rgba(34, 197, 94, 0.32));
}

.hero-logo-half {
  display: inline-flex;
}

.hero-orbit-trace {
  fill: none;
  stroke: #fff;
  stroke-width: 86;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-logo-letter {
  position: relative;
  display: inline-block;
  -webkit-text-stroke: calc(var(--hero-mark-size) / 64) #000;
  paint-order: stroke fill;
}

.hero-logo-accent {
  color: #22c55e;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.25);
}

@media (max-width: 640px) {
  .hero-logo-center {
    --hero-mark-size: clamp(64px, 20vw, 104px);
    --hero-brand-gap: clamp(6px, 2vw, 10px);
    --hero-orbit-start-scale: 2.4;
    --hero-orbit-dock-duration: 0.95s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-brand-intro .hero-orbit-stage {
    animation: heroOrbitDock var(--hero-orbit-dock-duration) var(--hero-text-start-time) cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-brand-intro .hero-orbit-mark {
    filter: brightness(1) drop-shadow(0 0 0 rgba(34, 197, 94, 0));
    animation: heroOrbitAssemble 1.8s cubic-bezier(0.22, 1, 0.36, 1) both,
      heroOrbitGlow 0.85s var(--hero-intro-finish-time) ease-out forwards;
  }

  .hero-brand-intro .hero-orbit-trace {
    animation: heroOrbitTrace 1.6s 0.12s cubic-bezier(0.45, 0, 0.25, 1) both;
  }

  .hero-brand-intro .hero-orbit-trace-second {
    animation-delay: 0.32s;
  }

  .hero-brand-intro .hero-orbit-finish {
    animation: heroOrbitFinish 2s linear both;
  }

  .hero-brand-intro .hero-logo-title {
    animation: heroWordmarkDock 0.95s var(--hero-text-start-time) cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-brand-intro .logo-part-tac {
    animation: magneticTac var(--hero-text-snap-duration) var(--hero-text-start-time) cubic-bezier(0.68, -0.15, 0.265, 1.25) both;
  }

  .hero-brand-intro .logo-part-synq {
    animation: magneticSynq var(--hero-text-snap-duration) var(--hero-text-start-time) cubic-bezier(0.68, -0.15, 0.265, 1.25) both;
  }

  .hero-brand-intro .hero-logo-letter::after {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 0;
    text-shadow: none;
    background: linear-gradient(110deg, transparent 35%, rgba(225, 255, 237, 0.85) 49%, transparent 63%);
    background-size: 400% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    animation: heroLetterShimmer 12s calc(5.5s + var(--letter) * 0.07s) ease-in-out infinite both;
  }

  .hero-brand-intro .hero-orbit-stage,
  .hero-brand-intro .hero-orbit-mark,
  .hero-brand-intro .hero-orbit-trace,
  .hero-brand-intro .hero-orbit-finish,
  .hero-brand-intro .hero-logo-title,
  .hero-brand-intro .hero-logo-half,
  .hero-brand-intro .hero-logo-letter::after {
    animation-play-state: paused;
  }

  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-orbit-stage,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-orbit-mark,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-orbit-trace,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-orbit-finish,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-logo-title,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-logo-half,
  .home-hero[data-animation-playing="true"] .hero-brand-intro .hero-logo-letter::after {
    animation-play-state: running;
  }
}

@keyframes heroOrbitTrace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes heroOrbitFinish {
  0%, 85% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroOrbitAssemble {
  from { opacity: 0; transform: rotate(-12deg) scale(0.88); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes magneticTac {
  0% { opacity: 0; transform: translateY(-75vh); }
  40% { opacity: 0.9; transform: translateY(-55px); }
  65% { transform: translateY(-42px); }
  75% { transform: translateY(-45px); }
  86% { transform: translateY(5px); }
  93% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes magneticSynq {
  0% { opacity: 0; transform: translateY(75vh); }
  40% { opacity: 0.9; transform: translateY(55px); }
  65% { transform: translateY(42px); }
  75% { transform: translateY(45px); }
  86% { transform: translateY(-5px); }
  93% { transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroOrbitDock {
  from { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--hero-orbit-start-scale)); }
  to { left: var(--hero-orbit-end-left); top: var(--hero-orbit-end-top); transform: var(--hero-orbit-end-transform); }
}

@keyframes heroWordmarkDock {
  from { transform: translate(var(--hero-text-start-x), var(--hero-text-start-y)); }
  to { transform: translate(0, 0); }
}

@keyframes heroLetterShimmer {
  0% { opacity: 0; background-position: 100% 0; }
  2% { opacity: 1; }
  11% { opacity: 0; background-position: 0% 0; }
  100% { opacity: 0; background-position: 0% 0; }
}

@keyframes heroOrbitGlow {
  from { filter: brightness(1) drop-shadow(0 0 0 rgba(34, 197, 94, 0)); }
  to { filter: brightness(1.08) drop-shadow(0 0 7px rgba(34, 197, 94, 0.32)); }
}

/* ==========================================================================
   Home Flowchart Diagram: 1 Unified Continuous Diagram Section
   ========================================================================== */
.home-flowchart-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.02) 0%, transparent 70%);
}

.home-flow-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: center;
  will-change: opacity, transform;
}

/* ==========================================================================
   Flowchart: Reveal on Scroll Transitions
   ========================================================================== */
/* Elements that animate from bottom up without horizontal transform */
.home-flow-section .flow-box,
.home-flow-section .flow-leader-box,
.home-flow-section .flow-squad-box,
.home-flow-section .flow-connector-wrapper,
.home-flow-section .flow-split-connector,
.home-flow-section .flow-merge-connector,
.home-flow-section .flow-stem-top,
.home-flow-section .flow-squad-distribute-connector {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Stage Indicator: Preserves horizontal centering (translateX(-50%)) during reveal */
.home-flow-section .flow-stage-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(20px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Junction nodes: Preserves center pin positioning (translate(-50%, -50%)) */
.home-flow-section .flow-junction-node {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed on Scroll state */
.home-flow-section.flow-revealed .flow-box,
.home-flow-section.flow-revealed .flow-leader-box,
.home-flow-section.flow-revealed .flow-squad-box,
.home-flow-section.flow-revealed .flow-connector-wrapper,
.home-flow-section.flow-revealed .flow-split-connector,
.home-flow-section.flow-revealed .flow-merge-connector,
.home-flow-section.flow-revealed .flow-stem-top,
.home-flow-section.flow-revealed .flow-squad-distribute-connector {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-flow-section.flow-revealed .flow-stage-indicator {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.home-flow-section.flow-revealed .flow-junction-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Section 1 Reveal Flow (Badge -> 3 Sources -> Connector downwards) */
#home-section-sources.flow-revealed .flow-stage-indicator { transition-delay: 0.04s; }
#home-section-sources.flow-revealed .flow-sources-grid .flow-box:nth-child(1) { transition-delay: 0.10s; }
#home-section-sources.flow-revealed .flow-sources-grid .flow-box:nth-child(2) { transition-delay: 0.18s; }
#home-section-sources.flow-revealed .flow-sources-grid .flow-box:nth-child(3) { transition-delay: 0.26s; }
#home-section-sources.flow-revealed .flow-connector-wrapper { transition-delay: 0.34s; }
#home-section-sources.flow-revealed .flow-junction-node { transition-delay: 0.38s; }

/* Section 2 Reveal Flow (Split line enters -> Badge -> 2 Lobby Boxes -> Merge connector) */
#home-section-lobby.flow-revealed .flow-split-connector { transition-delay: 0.06s; }
#home-section-lobby.flow-revealed .flow-stage-indicator { transition-delay: 0.12s; }
#home-section-lobby.flow-revealed .flow-duo-grid .flow-box:nth-child(1) { transition-delay: 0.18s; }
#home-section-lobby.flow-revealed .flow-duo-grid .flow-box:nth-child(2) { transition-delay: 0.26s; }
#home-section-lobby.flow-revealed .flow-merge-connector { transition-delay: 0.36s; }
#home-section-lobby.flow-revealed .flow-junction-node { transition-delay: 0.38s; }

/* Section 3 Reveal Flow (Stem enters -> Badge -> Leader Box -> Squad branches -> 4 Players) */
#home-section-distribute.flow-revealed .flow-stem-top { transition-delay: 0.06s; }
#home-section-distribute.flow-revealed .flow-stage-indicator { transition-delay: 0.12s; }
#home-section-distribute.flow-revealed .flow-leader-box { transition-delay: 0.18s; }
#home-section-distribute.flow-revealed .flow-squad-distribute-connector { transition-delay: 0.26s; }
#home-section-distribute.flow-revealed .flow-junction-node { transition-delay: 0.28s; }
#home-section-distribute.flow-revealed .flow-squad-grid .flow-squad-box:nth-child(1) { transition-delay: 0.32s; }
#home-section-distribute.flow-revealed .flow-squad-grid .flow-squad-box:nth-child(2) { transition-delay: 0.38s; }
#home-section-distribute.flow-revealed .flow-squad-grid .flow-squad-box:nth-child(3) { transition-delay: 0.44s; }
#home-section-distribute.flow-revealed .flow-squad-grid .flow-squad-box:nth-child(4) { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .home-flow-section .flow-box,
  .home-flow-section .flow-leader-box,
  .home-flow-section .flow-squad-box,
  .home-flow-section .flow-connector-wrapper,
  .home-flow-section .flow-split-connector,
  .home-flow-section .flow-merge-connector,
  .home-flow-section .flow-stem-top,
  .home-flow-section .flow-squad-distribute-connector {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .home-flow-section .flow-stage-indicator {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    transition: none !important;
  }

  .home-flow-section .flow-junction-node {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
  }

  .flow-packet-dot {
    display: none !important;
  }
}

.flow-stage-indicator {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 5;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.flow-stage-indicator .stage-tag {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  padding: 3px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.flow-stage-indicator .stage-desc {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.flow-section-inner {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Specific vertical distribution for Section 1 */
#home-section-sources .flow-section-inner {
  justify-content: flex-start;
}

#home-section-sources .flow-sources-grid {
  margin-top: clamp(76px, 12vh, 120px);
}

/* Specific vertical distribution for Section 2 */
#home-section-lobby .flow-section-inner {
  justify-content: space-between;
}

/* Specific vertical distribution for Section 3 */
#home-section-distribute .flow-section-inner {
  justify-content: center;
}

#home-section-distribute .flow-squad-grid {
  margin-bottom: clamp(20px, 3vh, 40px);
}

/* Section 1: 3 Boxes Grid */
.flow-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.flow-box {
  background: rgba(14, 16, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 52px 36px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  position: relative;
}

.flow-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.flow-box.highlight-box {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.08);
}

.flow-card-link,
.flow-card-link:visited {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.flow-card-link.flow-preview-playing {
  border-color: rgba(34, 197, 94, 0.65);
}

@media (hover: hover) {
  .flow-card-link:hover {
    border-color: rgba(34, 197, 94, 0.65);
    background: rgba(19, 28, 23, 0.85);
  }
}

.home-flow-section .flow-card-link:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(19, 28, 23, 0.85);
  opacity: 1;
  transform: none;
}

.flow-sources-grid .flow-box.flow-card-visual,
.flow-duo-grid .flow-box.flow-card-visual {
  padding: 20px 22px;
  gap: 10px;
}

.flow-card-preview {
  display: block;
  width: min(100%, 210px);
  height: 110px;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

.flow-map-preview {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 58%, transparent 100%);
}

.flow-card-preview > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.flow-preview-map {
  opacity: 0.8;
}

.flow-preview-role {
  color: var(--player-color, var(--accent-green));
}

.flow-preview-route {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-preview-player,
.flow-preview-arrow {
  fill: currentColor;
}

.flow-preview-panel {
  fill: #101719;
  stroke: rgba(34, 197, 94, 0.28);
  stroke-width: 1;
}

.flow-community-back {
  fill: #0c1113;
  stroke: rgba(34, 197, 94, 0.18);
}

.flow-community-selected > .flow-preview-panel {
  stroke: var(--accent-green);
}

.flow-preview-accent {
  fill: var(--accent-green);
}

.flow-preview-muted {
  fill: #52645c;
}

.flow-preview-bookmark,
.flow-preview-symbol {
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-demo-ruler,
.flow-demo-grid {
  fill: none;
  stroke: #33433b;
  stroke-width: 1;
}

.flow-demo-grid {
  opacity: 0.5;
  stroke-dasharray: 2 3;
}

.flow-demo-selection {
  fill: var(--accent-green);
  opacity: 0.07;
}

.flow-demo-selection-edge,
.flow-demo-cursor {
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 1;
}

.flow-demo-selection-edge {
  opacity: 0.5;
}

.flow-demo-lane,
.flow-demo-segment {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.flow-demo-lane {
  stroke-width: 2;
  opacity: 0.12;
}

.flow-demo-segment {
  stroke-width: 4;
  opacity: 0.8;
}

.flow-demo-event {
  fill: #101719;
  stroke: currentColor;
  stroke-width: 1.5;
}

.flow-demo-event-extracted {
  fill: currentColor;
}

.flow-demo-track,
.flow-demo-progress {
  fill: none;
  stroke: #33433b;
  stroke-width: 2;
  stroke-linecap: round;
}

.flow-demo-progress {
  stroke: var(--accent-green);
  stroke-dasharray: 1;
}

.flow-duo-grid .flow-card-preview {
  width: min(100%, 260px);
}

.flow-roster-connector {
  fill: none;
  stroke: rgba(34, 197, 94, 0.35);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-roster-ring {
  fill: #101719;
  stroke: currentColor;
  stroke-width: 1.4;
}

.flow-roster-head,
.flow-roster-body,
.flow-roster-label {
  fill: currentColor;
}

.flow-roster-label {
  opacity: 0.65;
}

.flow-roster-check {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 901px) {
  .flow-sources-grid .flow-card-visual .flow-box-title {
    font-size: clamp(1rem, 2vw, 1.65rem);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .flow-sources-grid .flow-box.flow-card-visual,
  .flow-duo-grid .flow-box.flow-card-visual {
    padding: 16px 12px;
    gap: 8px;
  }

  .flow-card-preview {
    height: 90px;
  }
}

/* Lit-up box outline when the animated packet dot passes through */
.flow-box.box-flow-active,
.flow-leader-box.box-flow-active {
  border-color: #22c55e !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.5), inset 0 0 16px rgba(34, 197, 94, 0.14) !important;
}

.flow-squad-box.box-flow-active {
  border-color: #22c55e !important;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.45), inset 0 0 12px rgba(34, 197, 94, 0.1) !important;
}

.flow-squad-grid .flow-squad-box:nth-child(1).box-flow-active {
  border-color: #e6f13d !important;
  box-shadow: 0 0 26px rgba(230, 241, 61, 0.5), inset 0 0 14px rgba(230, 241, 61, 0.15) !important;
}

.flow-squad-grid .flow-squad-box:nth-child(2).box-flow-active {
  border-color: #109856 !important;
  box-shadow: 0 0 26px rgba(16, 152, 86, 0.5), inset 0 0 14px rgba(16, 152, 86, 0.15) !important;
}

.flow-squad-grid .flow-squad-box:nth-child(3).box-flow-active {
  border-color: #eda338 !important;
  box-shadow: 0 0 26px rgba(237, 163, 56, 0.5), inset 0 0 14px rgba(237, 163, 56, 0.15) !important;
}

.flow-squad-grid .flow-squad-box:nth-child(4).box-flow-active {
  border-color: #803ca1 !important;
  box-shadow: 0 0 26px rgba(128, 60, 161, 0.55), inset 0 0 14px rgba(128, 60, 161, 0.18) !important;
}

.flow-box-num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: #22c55e;
  text-align: center;
}

.flow-box-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
  text-align: center;
  line-height: 1.25;
}

/* Section 1 Connector: from bottom of 3 boxes all the way to bottom: 0 of section */
.flow-connector-wrapper {
  width: 100%;
  max-width: 1240px;
  flex: 1 1 auto;
  min-height: 90px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.flow-connector-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke: rgba(34, 197, 94, 0.4);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.flow-line-solid {
  stroke: rgba(34, 197, 94, 0.85);
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.7));
  vector-effect: non-scaling-stroke;
}

/* Crisp round tactical junction pins */
.flow-junction-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.95), 0 0 2px #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

/* Synchronized flowing data packet dots */
.flow-packet-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #22c55e, 0 0 4px #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.12s ease;
  will-change: left, top, opacity;
}

/* Section 2: Split Connector from top edge (top: 0) to top of 2 boxes */
.flow-split-connector {
  width: 100%;
  max-width: 1000px;
  flex: 1 1 auto;
  min-height: 85px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

/* Section 2: Merge Connector from bottom of 2 boxes all the way to bottom edge (bottom: 0) */
.flow-merge-connector {
  width: 100%;
  max-width: 1000px;
  flex: 1 1 auto;
  min-height: 85px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

/* Section 3: Stem Connector from top edge (top: 0) straight down to top of Leader box */
.flow-stem-top {
  width: 100%;
  max-width: 580px;
  flex: 1 1 auto;
  min-height: 60px;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.flow-stem-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.flow-split-svg,
.flow-merge-svg,
.flow-distribute-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.flow-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.flow-duo-grid .flow-box {
  min-height: 215px;
  padding: 56px 44px;
  border-radius: 18px;
  gap: 18px;
}

.flow-duo-grid .flow-box-title {
  font-size: 1.75rem;
}

/* Section 3: Leader Box (Top) & 4 Squad Boxes (Below) */
.flow-leader-box {
  width: 100%;
  max-width: 580px;
  min-height: 155px;
  background: rgba(14, 16, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 42px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.25s ease;
  margin: 0 auto;
}

.flow-leader-box.highlight-glow {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.1);
}

.flow-role-badge {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  padding: 5px 16px;
  border-radius: 4px;
}

.badge-leader {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.flow-leader-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.flow-squad-distribute-connector {
  width: 100%;
  max-width: 1200px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  flex: 0 0 64px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.flow-squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.flow-squad-box {
  background: rgba(14, 16, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 18px;
  min-height: 125px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.flow-squad-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.flow-role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-squad-role {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #ffffff;
}

/* Responsive adjustment for tablets */
@media (min-width: 641px) and (max-width: 900px) {
  .home-flow-section {
    padding: 0 14px;
  }

  .home-flowchart-container {
    overflow: visible;
  }

  .flow-section-inner {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  #home-section-sources .flow-section-inner {
    justify-content: flex-end;
  }

  #home-section-sources .flow-sources-grid {
    margin-top: 72px;
  }

  #home-section-lobby .flow-section-inner {
    justify-content: space-between;
  }

  #home-section-distribute .flow-section-inner {
    justify-content: flex-start;
  }

  #home-section-distribute .flow-squad-grid {
    margin-bottom: 24px;
  }

  .flow-stage-indicator {
    top: 10px;
    padding: 6px 14px;
    gap: 5px;
    border-radius: 10px;
  }

  .flow-stage-indicator .stage-tag {
    font-size: 0.7rem;
    padding: 2px 9px;
    letter-spacing: 2px;
  }

  .flow-stage-indicator .stage-desc {
    font-size: 0.76rem;
    letter-spacing: 1.5px;
  }

  .flow-sources-grid {
    gap: 12px;
    max-width: 100%;
  }

  .flow-box {
    padding: 16px 12px;
    gap: 8px;
    border-radius: 10px;
    min-height: 0;
  }

  .flow-box-title {
    font-size: 0.95rem;
  }

  .flow-box-desc {
    font-size: 0.78rem;
  }

  .flow-connector-wrapper {
    flex: 1 1 auto;
    min-height: 60px;
    max-width: 100%;
  }

  .flow-split-connector,
  .flow-merge-connector {
    flex: 1 1 auto;
    min-height: 48px;
    max-width: 600px;
  }

  .flow-duo-grid {
    gap: 14px;
    max-width: 600px;
  }

  .flow-stem-top {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: clamp(64px, 14vh, 100px);
    min-height: 64px;
    max-height: 100px;
    margin: 0 auto;
  }

  .flow-leader-box {
    padding: 16px 20px;
    max-width: 400px;
    min-height: 0;
  }

  .flow-squad-distribute-connector {
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    max-width: 100%;
  }

  .flow-squad-grid {
    gap: 8px;
    max-width: 100%;
  }

  .flow-squad-box {
    padding: 12px 8px;
    gap: 6px;
    min-height: 0;
  }

  .flow-squad-role {
    font-size: 0.65rem;
  }

  .flow-squad-task {
    font-size: 0.68rem;
  }

  .home-hero {
    height: calc(100vh - 48px);
    height: calc(100svh - 48px);
    min-height: calc(100svh - 48px);
    padding: 0 12px;
  }
}

/* Specific styling for compact mobile screens */
@media (max-width: 640px) {
  .home-hero {
    height: calc(100vh - 48px);
    height: calc(100svh - 48px);
    min-height: calc(100svh - 48px);
    padding: 0 12px;
  }

  .home-scroll-prompt {
    display: none !important;
  }

  .home-flow-section {
    padding: 0 10px;
    box-sizing: border-box;
  }

  .home-flow-section .flow-section-inner,
  #home-section-sources .flow-section-inner,
  #home-section-lobby .flow-section-inner,
  #home-section-distribute .flow-section-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 0;
  }

  .home-flow-section .flow-stage-indicator {
    position: absolute;
    top: auto;
    bottom: calc(50% + 46px);
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.97);
    padding: 5px 12px;
    border-radius: 8px;
    gap: 3px;
    margin: 0;
    z-index: 5;
  }

  .home-flow-section.flow-revealed .flow-stage-indicator {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  .flow-stage-indicator .stage-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.2;
  }

  .flow-stage-indicator .stage-desc {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Section 1: 3 Sources */
  #home-section-sources .flow-section-inner {
    justify-content: center;
    position: relative;
  }

  #home-section-sources .flow-sources-grid {
    margin-top: 0;
  }

  .flow-sources-grid {
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  .flow-sources-grid .flow-box {
    padding: 12px 6px;
    gap: 4px;
    border-radius: 8px;
    min-height: 0;
  }

  .flow-sources-grid .flow-box-num {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .flow-sources-grid .flow-box-title {
    font-size: 0.78rem;
    letter-spacing: -0.2px;
    line-height: 1.15;
    text-align: center;
  }

  .flow-sources-grid .flow-box.flow-card-visual {
    padding: 10px 6px;
    gap: 8px;
    height: 118px;
  }

  .flow-card-preview {
    height: 60px;
  }

  .flow-sources-grid .flow-card-visual .flow-box-title {
    min-height: 2.3em;
  }

  #home-section-sources .flow-stage-indicator {
    bottom: calc(50% + 78px);
  }

  /* Section 1 connector: spans from cards down to bottom edge */
  #home-section-sources .flow-connector-wrapper {
    position: absolute;
    top: calc(50% + 59px);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Section 2: 2 Lobbies */
  #home-section-lobby .flow-section-inner {
    justify-content: center;
    position: relative;
  }

  /* Section 2 split connector: spans from top edge down to cards */
  #home-section-lobby .flow-stage-indicator {
    bottom: calc(50% + 80px);
  }

  #home-section-lobby .flow-split-connector {
    position: absolute;
    top: 0;
    bottom: calc(50% + 61px);
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .flow-duo-grid {
    gap: 8px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .flow-duo-grid .flow-box {
    padding: 14px 12px;
    gap: 5px;
    border-radius: 8px;
    min-height: 0;
  }

  .flow-duo-grid .flow-box-num {
    font-size: 0.62rem;
    text-align: center;
  }

  .flow-duo-grid .flow-box-title {
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: center;
  }

  .flow-duo-grid .flow-box.flow-card-visual {
    padding: 10px;
    gap: 8px;
    height: 122px;
  }

  .flow-duo-grid .flow-card-visual .flow-box-title {
    min-height: 2.4em;
  }

  /* Section 2 merge connector: spans from cards down to bottom edge */
  #home-section-lobby .flow-merge-connector {
    position: absolute;
    top: calc(50% + 61px);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Section 3: Leader & Squad */
  #home-section-distribute .flow-section-inner {
    justify-content: center;
    position: relative;
  }

  #home-section-distribute .flow-stage-indicator {
    bottom: calc(50% + 91px);
  }

  /* Section 3 stem: spans from top edge down to Leader card */
  #home-section-distribute .flow-stem-top {
    position: absolute;
    top: 0;
    bottom: calc(50% + 79.5px);
    left: 0;
    right: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .flow-leader-box {
    width: 100%;
    max-width: 92%;
    padding: 12px 14px;
    gap: 5px;
    border-radius: 10px;
    min-height: 0;
  }

  .flow-role-badge {
    font-size: 0.56rem;
    letter-spacing: 1px;
    padding: 2px 6px;
  }

  .flow-leader-title {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .flow-squad-distribute-connector {
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  #home-section-distribute .flow-squad-grid {
    gap: 4px;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
  }

  .flow-squad-box {
    padding: 7px 3px;
    gap: 3px;
    border-radius: 6px;
    min-height: 0;
  }

  .flow-role-dot {
    width: 5px;
    height: 5px;
  }

  .flow-squad-role {
    font-size: 0.54rem;
    letter-spacing: 0.3px;
    line-height: 1.1;
  }

  .flow-squad-task {
    font-size: 0.56rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .hero-logo-center .hero-logo-title {
    font-size: clamp(3.75rem, 17vw, 6rem);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary,
  .cta-actions .hero-btn-primary,
  .cta-actions .hero-btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-caption-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
  }

  .window-status {
    display: none;
  }

  .cta-card {
    padding: 36px 20px;
  }

  .top-bar,
  body:has(#lobby-view:not(.hidden)) .top-bar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 8px 12px;
    gap: 8px;
    overflow: visible;
  }

  .header-right-group {
    width: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
  }

  .burger-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .burger-menu-btn:hover,
  .burger-menu-btn[aria-expanded="true"] {
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  }

  .header-nav-menu {
    display: none !important;
  }

  .header-nav-menu.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    max-width: calc(100vw - 24px);
    background: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.92), 0 0 20px rgba(255, 255, 255, 0.04);
    padding: 8px;
    gap: 3px;
    z-index: 9002;
    box-sizing: border-box;
    animation: mobileMenuFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9000;
    animation: mobileBackdropFade 0.18s ease;
  }

  @keyframes mobileBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobileMenuFade {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Hide redundant dropdown trigger headers on mobile - options are shown directly */
  .header-nav-menu.open #strategy-nav-btn {
    display: none !important;
  }

  /* Full-width wrappers for option groups */
  .header-nav-menu.open .lobby-dropdown-wrapper,
  .header-nav-menu.open .strategy-dropdown-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: static;
    gap: 2px;
  }

  /* All option menus are directly open and visible */
  .header-nav-menu.open .lobby-dropdown-menu,
  .header-nav-menu.open .strategy-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
  }

  .header-nav-menu.open .lobby-dropdown-menu::before,
  .header-nav-menu.open .strategy-dropdown-menu::before {
    display: none !important;
  }

  /* Separating line between option groups */
  .header-nav-menu.open .burger-menu-divider {
    display: block !important;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
    border: none;
    box-sizing: border-box;
  }

  /* All individual options directly accessible */
  .header-nav-menu.open .lobby-dropdown-menu button,
  .header-nav-menu.open .strategy-dropdown-menu button,
  .header-nav-menu.open #team-hub-nav-btn,
  .header-nav-menu.open > .mini-btn,
  .header-nav-menu.open > .header-strat-btn {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #f4f4f5 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
  }

  .header-nav-menu.open .lobby-dropdown-menu button:hover,
  .header-nav-menu.open .strategy-dropdown-menu button:hover,
  .header-nav-menu.open #team-hub-nav-btn:hover,
  .header-nav-menu.open .lobby-dropdown-menu button:active,
  .header-nav-menu.open .strategy-dropdown-menu button:active,
  .header-nav-menu.open #team-hub-nav-btn:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  /* Prevent hover graying on mobile */
  .header-nav-menu.open:has(> :hover) .lobby-dropdown-menu button,
  .header-nav-menu.open:has(> :hover) .strategy-dropdown-menu button,
  .header-nav-menu.open:has(> :hover) #team-hub-nav-btn {
    color: #f4f4f5 !important;
  }

  #auth-container {
    margin-left: 0;
    flex-shrink: 0;
  }

  .steam-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    min-height: 32px;
  }
}


/* Compact site navigation in the desktop tactic workspace. */
.top-bar.top-bar-compact {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 4px 8px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #000;
}

.top-bar-compact .top-bar-brand-mark {
  width: 26px;
  height: 26px;
}

.top-bar-compact .header-right-group {
  position: relative;
  gap: 6px;
}

.top-bar-compact .header-nav-menu {
  gap: 3px;
}

.top-bar-compact .header-nav-menu .header-strat-btn {
  padding: 6px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.top-bar-compact .steam-btn {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.top-bar-compact .user-badge {
  min-height: 30px;
  padding: 4px 6px;
  gap: 0;
}

.top-bar-compact .user-avatar-img {
  display: none;
}

.top-bar-compact .user-name-text {
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.top-bar.compact-nav-collapsed .burger-menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #121826;
  color: #fff;
  cursor: pointer;
}

.top-bar.compact-nav-collapsed .header-nav-menu {
  display: none !important;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 12, 14, 0.98);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75);
  z-index: 9002;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open #strategy-nav-btn {
  display: none !important;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open .lobby-dropdown-wrapper,
.top-bar.compact-nav-collapsed .header-nav-menu.open .strategy-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  position: static;
  width: 100%;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open .lobby-dropdown-menu,
.top-bar.compact-nav-collapsed .header-nav-menu.open .strategy-dropdown-menu {
  display: flex !important;
  flex-direction: column !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open .lobby-dropdown-menu::before,
.top-bar.compact-nav-collapsed .header-nav-menu.open .strategy-dropdown-menu::before {
  display: none !important;
}

.top-bar.compact-nav-collapsed .header-nav-menu.open .burger-menu-divider {
  display: block !important;
  width: 100%;
  height: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.1);
}

.top-bar.compact-nav-collapsed .header-nav-menu.open .lobby-dropdown-item,
.top-bar.compact-nav-collapsed .header-nav-menu.open .strategy-dropdown-item,
.top-bar.compact-nav-collapsed .header-nav-menu.open .team-hub-nav-btn {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px !important;
  border-radius: 6px;
  text-align: left;
  font-size: 0.8rem;
}

.top-bar-logo-accent {
  color: #22c55e;
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
}
