/* ======================= Region band + liquid glass ======================= */
:root {
  --region-band-h: 92px;
  --edge-gap: .75rem;
  --liquid-border: rgba(255, 255, 255, .18);
  --liquid-glow: rgba(89, 220, 225, .35);
  --liquid-glow-2: rgba(140, 84, 255, .25);
}

/* Dark strip under the header that scrolls away with the page */
.region-band {
  background:
    radial-gradient(200px 60px at 20% 50%, rgba(89, 220, 225, .18), transparent 70%),
    radial-gradient(220px 70px at 80% 40%, rgba(140, 84, 255, .16), transparent 70%),
    var(--bg-900);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, .14));
  min-height: var(--region-band-h);
  padding: .7rem 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* Row: centered inside the band */
.region-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--edge-gap);
}

/* Liquid glass tray */
.region-liquid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  width: min(1100px, 100%);
  padding: .65rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--liquid-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  overflow: hidden;
}

.region-liquid::before,
.region-liquid::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(240px 120px at 20% 60%, var(--liquid-glow), transparent 70%),
    radial-gradient(220px 110px at 80% 30%, var(--liquid-glow-2), transparent 70%);
  opacity: .55;
  filter: blur(14px);
  animation: liquid-float 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.region-liquid::after {
  animation-duration: 16s;
  opacity: .35;
}

@keyframes liquid-float {
  0% { transform: translateY(-2%) rotate(0deg); }
  100% { transform: translateY(2%) rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .region-liquid::before,
  .region-liquid::after {
    animation: none;
  }
}

/* Group bubbles (inside tray) */
.region-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(12, 14, 20, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.region-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .10), transparent 60%);
  opacity: .6;
  pointer-events: none;
}

.region-pills {
  display: flex;
  gap: .35rem;
  align-items: center;
}

.group-label {
  font-size: .78rem;
  color: var(--text-300, #c2c6d4);
  letter-spacing: .22px;
  text-transform: uppercase;
}

.region-pill {
  appearance: none;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: var(--text-100, #f4f6fb);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  overflow: hidden;
}

.region-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 30% 20%, rgba(255, 255, 255, .35), transparent 70%);
  opacity: .35;
  pointer-events: none;
}

.region-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .14);
}

.region-pill.active,
.region-pill[aria-pressed="true"] {
  border-color: rgba(89, 220, 225, .7);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25), 0 0 0 2px rgba(89, 220, 225, .18) inset;
  background: linear-gradient(180deg, rgba(89, 220, 225, .45), rgba(89, 220, 225, .18));
}

/* Responsive */
@media (max-width: 800px) {
  .region-band {
    padding: .7rem 0;
  }

  .region-liquid {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    border-radius: 1.2rem;
    padding: .65rem;
  }

  .region-bubble {
    justify-content: space-between;
    border-radius: 1rem;
  }

  .region-pills {
    gap: .3rem;
  }

  .region-pill {
    flex: 1 1 0;
    text-align: center;
    padding: .45rem .6rem;
    font-size: .9rem;
  }
}

@media (max-width: 600px) {
  .region-band {
    padding: .5rem 0;
  }

  .region-liquid {
    padding: .5rem;
    gap: .5rem;
  }

  .region-bubble {
    padding: .3rem .4rem;
  }

  .region-pill {
    padding: .4rem .5rem;
    font-size: .86rem;
  }
}

@media (max-width: 520px) {
  .group-label { display: none; }
  .region-liquid { width: min(560px, 100%); }
}
