/* Roblox page — group hub + merch showcase (blue theme) */

.roblox-page .bg-glow--right {
  background: var(--roblox);
  opacity: 0.2;
}

.roblox-hub {
  position: relative;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(9, 89, 238, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(9, 89, 238, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--bg-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -24px rgba(9, 89, 238, 0.35);
}

.roblox-hub__label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(9, 89, 238, 0.35);
}

.roblox-hub__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--nav-accent);
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(255, 136, 25, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
}

.roblox-hub__join:hover {
  transform: translateY(-3px);
  background: #ff9529;
  box-shadow: 0 14px 40px rgba(255, 136, 25, 0.45);
}

.roblox-hub__join-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.roblox-hub__join-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.roblox-merch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.roblox-merch__label {
  grid-column: 1 / -1;
  font-size: var(--text-ui-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.merch-showcase {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px dashed rgba(9, 89, 238, 0.35);
  background:
    radial-gradient(circle at 50% 35%, rgba(9, 89, 238, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.merch-showcase__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 70%
  );
  animation: merch-shine 3.5s ease-in-out infinite;
}

.merch-showcase__orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(9, 89, 238, 0.25);
  border-radius: 50%;
  animation: merch-orbit 8s linear infinite;
}

.merch-showcase__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: merch-float 4s ease-in-out infinite;
}

.merch-showcase__hoodie {
  width: 72%;
  max-height: 88%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(9, 89, 238, 0.35));
  animation: merch-spin-y 6s ease-in-out infinite;
}

.merch-showcase__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.7rem;
  font-size: var(--text-ui-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roblox);
  background: rgba(9, 89, 238, 0.15);
  border: 1px solid rgba(9, 89, 238, 0.35);
  border-radius: 6px;
}

.roblox-merch__info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.roblox-merch__info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.roblox-merch__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.roblox-merch__price-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--roblox);
}

.roblox-merch__robux-icon {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  flex-shrink: 0;
}

.roblox-merch__price-note {
  font-size: var(--text-ui-sm);
  color: var(--text-muted);
}

.roblox-merch__buy {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-display);
  font-size: var(--text-ui-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #93c5fd, var(--roblox));
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.roblox-merch__buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 89, 238, 0.35);
}

.roblox-merch__buy.is-placeholder {
  cursor: not-allowed;
  opacity: 0.85;
}

.roblox-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto 2rem;
  max-width: min(520px, 92vw);
}

.roblox-showcase__bubble {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  margin: 0 0 -0.1rem;
  padding: 1.15rem 1.75rem 1.2rem;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 2.4vw + 0.62rem, 1.6rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: #0c1019;
  background: #fff;
  border: 2.5px solid #111;
  border-radius: 999px;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.28);
  animation: roblox-bubble-breathe 5.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.roblox-showcase__bubble::before {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  bottom: -14px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2.5px solid #111;
  border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}

.roblox-showcase__bubble::after {
  content: "";
  position: absolute;
  left: calc(50% + 2px);
  bottom: -24px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2.5px solid #111;
  border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.roblox-showcase__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1.15rem;
  object-fit: contain;
  animation: roblox-breathe 5.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 42px rgba(9, 89, 238, 0.28));
  will-change: transform;
}

.hero--roblox .info__block a {
  color: var(--roblox);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero--roblox .info__block a:hover {
  opacity: 0.85;
}

@keyframes merch-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes merch-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes merch-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes merch-spin-y {
  0%, 100% { transform: rotateY(-12deg) scale(1); }
  50% { transform: rotateY(12deg) scale(1.04); }
}

@keyframes roblox-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-8px);
  }
}

@keyframes roblox-bubble-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.045) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roblox-showcase__image {
    animation: none;
  }

  .roblox-showcase__bubble {
    animation: none;
  }
}

@media (max-width: 768px) {
  .roblox-hub,
  .stores-hub {
    margin-left: 0;
    margin-right: 0;
    padding: 1.5rem 1rem;
  }

  .roblox-hub__join {
    padding: 1.1rem 0.85rem;
    font-size: clamp(0.78rem, 3.4vw, 1.2rem);
    letter-spacing: 0.06em;
  }

  .roblox-showcase {
    max-width: min(420px, 88vw);
    margin-bottom: 1.5rem;
  }

  .roblox-showcase__bubble {
    padding: 1rem 1.25rem 1.05rem;
    font-size: clamp(0.68rem, 2.2vw + 0.5rem, 1.25rem);
  }

  .roblox-showcase__image {
    margin-top: -1rem;
  }

  .store-card__action {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .roblox-hub {
    padding: 1.5rem 1rem;
  }

  .roblox-merch {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .roblox-merch__price {
    justify-content: center;
  }
}
