/* Header */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 8px;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  fill: var(--spotify-green);
  filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.35));
  flex-shrink: 0;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

@media (max-width: 390px) {
  .brand-title {
    font-size: 16px;
  }

  .meta-badges {
    gap: 4px;
  }
}

/* Animated Fire Streak Badge (In the freed upper slot below filters) */
.streak-top-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 2px;
}

.streak-fire-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 64px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.streak-fire-badge:hover {
  transform: scale(1.1);
}

.streak-fire-svg {
  width: 58px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 4px 14px rgba(255, 102, 0, 0.58));
}

.streak-fire-badge.active-streak .flame-outer {
  animation: flamePulse 1.25s ease-in-out infinite alternate;
  transform-origin: 50% 85%;
}

.streak-fire-badge.active-streak .flame-mid {
  animation: flameFlicker 0.95s ease-in-out infinite alternate-reverse;
  transform-origin: 50% 85%;
}

.streak-fire-badge.active-streak .flame-inner {
  animation: flameFlicker 0.72s ease-in-out infinite alternate;
  transform-origin: 50% 85%;
}

.streak-fire-badge.zero-streak .streak-fire-svg {
  filter: grayscale(0.8) opacity(0.5);
}

@keyframes flamePulse {
  0% {
    transform: scale(0.96) rotate(-1.5deg);
  }

  100% {
    transform: scale(1.06) rotate(1.5deg);
  }
}

@keyframes flameFlicker {
  0% {
    transform: scaleY(0.93) translateY(1px);
    opacity: 0.86;
  }

  100% {
    transform: scaleY(1.06) translateY(-1px);
    opacity: 1;
  }
}

.streak-count-text {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 800;
  color: rgba(110, 32, 0, 0.9);
  text-shadow: 0 1px 2px rgba(255, 240, 180, 0.5);
  pointer-events: none;
  line-height: 1;
}

.streak-fire-badge.zero-streak .streak-count-text {
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Crystal Currency Counter (No Background Pill) */
.points-badge {
  height: 36px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #8bf0ff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, filter 0.2s ease;
}

.points-badge:hover {
  transform: scale(1.08);
}

.points-badge.guest-locked {
  opacity: 0.55;
  filter: grayscale(0.65);
}

.points-crystal-svg {
  width: 22px;
  height: 25px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(56, 217, 255, 0.65));
}

.points-count-text {
  direction: ltr;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

@keyframes pointsPop {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(56, 217, 255, 0.45));
  }

  45% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 16px rgba(107, 240, 255, 0.95));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(56, 217, 255, 0.45));
  }
}

.points-badge.points-pop {
  animation: pointsPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bottom Navigation Bar (Instagram / App Style) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 320;
  background: rgba(14, 9, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(192, 132, 252, 0.22);
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
}

.bottom-nav-inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.18s ease;
}

.bottom-nav-item:active {
  transform: scale(0.93);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item.active .nav-avatar {
  border-color: var(--spotify-green);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.45);
}

.bottom-nav-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item.active {
  color: #ffffff;
}

.bottom-nav-item.active svg {
  fill: var(--accent-purple-bright);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.65));
}

/* Center Main Game Button in Bottom Nav */
.bottom-nav-item.nav-main-game .nav-main-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(36, 22, 74, 0.95);
  border: 1.5px solid rgba(192, 132, 252, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav-item.nav-main-game svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
}

.bottom-nav-item.nav-main-game.active .nav-main-icon-wrap {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  border-color: #e9d5ff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.6);
}

.bottom-nav-item.nav-main-game.active svg {
  fill: #ffffff;
}

.bottom-nav-item.nav-main-game.active {
  color: var(--accent-purple-bright);
}

.filter-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.streams-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.genre-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--spotify-green);
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.genre-pill:hover {
  background: rgba(29, 185, 84, 0.22);
}

/* Hamburger Icon Button */
.menu-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.menu-toggle-btn:hover {
  background: var(--surface-hover);
  border-color: #3e3e3e;
}

.menu-toggle-btn:active {
  transform: scale(0.94);
}

.menu-bar {
  width: 17px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

/* Colored Difficulty Chips (Compact height & snuggled above player card) */
.chips-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 2px 0;
  scrollbar-width: none;
}

.chips-wrapper::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 1 1 auto;
  text-align: center;
  border: 1px solid transparent;
  padding: 4px 7px;
  line-height: 1.15;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

.chip:active {
  transform: scale(0.95);
}

.chip[data-level="easy"] {
  background: rgba(30, 215, 96, 0.14);
  color: var(--easy-color);
  border-color: rgba(30, 215, 96, 0.26);
}

.chip[data-level="medium"] {
  background: rgba(245, 197, 24, 0.14);
  color: var(--medium-color);
  border-color: rgba(245, 197, 24, 0.26);
}

.chip[data-level="hard"] {
  background: rgba(255, 140, 26, 0.14);
  color: var(--hard-color);
  border-color: rgba(255, 140, 26, 0.26);
}

.chip[data-level="very_hard"] {
  background: rgba(255, 77, 77, 0.14);
  color: var(--very-hard-color);
  border-color: rgba(255, 77, 77, 0.26);
}

.chip[data-level="impossible"] {
  background: rgba(184, 110, 255, 0.14);
  color: var(--impossible-color);
  border-color: rgba(184, 110, 255, 0.26);
}

.chip[data-level="easy"].active {
  background: var(--easy-color);
  color: #000000;
  box-shadow: 0 0 18px rgba(30, 215, 96, 0.55);
}

.chip[data-level="medium"].active {
  background: var(--medium-color);
  color: #000000;
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.55);
}

.chip[data-level="hard"].active {
  background: var(--hard-color);
  color: #000000;
  box-shadow: 0 0 18px rgba(255, 140, 26, 0.55);
}

.chip[data-level="very_hard"].active {
  background: var(--very-hard-color);
  color: #000000;
  box-shadow: 0 0 18px rgba(255, 77, 77, 0.55);
}

.chip[data-level="impossible"].active {
  background: var(--impossible-color);
  color: #000000;
  box-shadow: 0 0 18px rgba(184, 110, 255, 0.55);
}
