/**
 * Dock & rails hub — icônes DA + badge « Bientôt ».
 */

.menu-hub-dock {
  row-gap: 10px;
  column-gap: 4px;
  padding: 8px 6px 6px;
}

/* Dock principal : stubs internes cachés (Build = characterBtn visible) */
.menu-hub-dock-btn--dock-hidden,
#equipmentBtn,
#masteryBtn {
  display: none !important;
}

.menu-hub-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-hub-rail-btn,
.menu-hub-dock-btn {
  position: relative;
  overflow: visible;
}

.menu-hub-dock-stack,
.menu-hub-rail-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 0;
}

.menu-hub-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(0, 48, 58, 0.65),
    rgba(4, 14, 22, 0.9)
  );
  border: 1px solid rgba(0, 255, 255, 0.28);
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.14),
    inset 0 0 10px rgba(0, 255, 255, 0.06);
  flex-shrink: 0;
}

.menu-hub-glyph img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.45));
}

.menu-hub-dock-label,
.menu-hub-rail-stack > span:last-child {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}

.menu-hub-dock-btn {
  min-height: 54px;
  padding: 5px 3px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.menu-hub-dock-btn:not(.menu-hub--soon):hover,
.menu-hub-dock-btn:not(.menu-hub--soon):focus-visible {
  border-color: rgba(0, 255, 255, 0.35);
  background: rgba(0, 40, 52, 0.35);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.12);
}

.menu-hub-dock-btn.is-active {
  border-color: rgba(0, 255, 255, 0.5);
  background: rgba(0, 55, 68, 0.45);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.22);
}

.menu-hub-dock-btn.is-active .menu-hub-glyph {
  border-color: rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.35);
}

.menu-hub-dock-btn--shop .menu-hub-glyph img {
  width: 19px;
  height: 19px;
}

.menu-hub-dock-btn--tournament {
  color: #e0c8ff;
}

.menu-hub-dock-btn--shop {
  color: #b8ffd8;
}

.menu-hub-dock-btn--economy {
  color: #ffe8a8;
}

.menu-hub-dock-btn--ranked {
  color: #a8e0ff;
}

.menu-hub-dock-btn--equipment {
  color: #a8d4ff;
}

.menu-hub-dock-btn--mastery {
  color: #ffd4b0;
}

/* —— Bientôt : flou contenu, badge en bas du bouton (pas au-dessus) —— */
.menu-hub--soon {
  cursor: default;
  pointer-events: auto;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.menu-hub-dock-btn.menu-hub--soon {
  min-height: 58px;
  padding-bottom: 14px;
}

.menu-hub-rail-btn.menu-hub--soon {
  min-height: 56px;
  padding-bottom: 12px;
}

.menu-hub--soon .menu-hub-dock-stack,
.menu-hub--soon .menu-hub-rail-stack {
  filter: blur(2px) saturate(0.45);
  opacity: 0.4;
}

.menu-hub-soon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: auto;
  left: auto;
  transform: none;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2a1800;
  background: linear-gradient(180deg, #ffe566, #ffb830);
  border: 1px solid rgba(255, 240, 180, 0.85);
  line-height: 1.15;
  white-space: nowrap;
  z-index: 5;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

.menu-hub-rail-btn .menu-hub-soon-badge {
  top: 2px;
  right: 2px;
  bottom: auto;
}

.menu-hub-rail-btn .menu-hub-rail-stack {
  gap: 3px;
}

.menu-hub-rail-btn.menu-hub--soon:active {
  transform: none;
}

.menu-hub--soul .menu-hub-glyph {
  border-color: rgba(0, 255, 255, 0.32);
  background: linear-gradient(
    180deg,
    rgba(0, 36, 48, 0.75),
    rgba(2, 10, 16, 0.95)
  );
}

.ys-progress-menu--economy .meta-header h2 { color: #ffe8a8; }

.economy-ys-race-card {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 80, 0.25);
  background: rgba(40, 28, 8, 0.35);
}

.economy-ys-race-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: rgba(255, 235, 200, 0.88);
  line-height: 1.35;
}

.economy-ys-race-btn {
  width: 100%;
}

.menu-hub--soul .menu-hub-dock-btn.is-active .menu-hub-glyph,
#gameStage.soul-da--active .menu-hub-dock-btn.is-active .menu-hub-glyph {
  border-color: rgba(0, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.4);
}
