/* NO.1 ROBLOX hub landing — dark minimal (Pretendard) */

.rbx-landing {
  --rbx-bg: #09090b;
  --rbx-zinc-400: #a1a1aa;
  --rbx-zinc-500: #71717a;
  --rbx-zinc-800: #27272a;
  --rbx-zinc-900: #18181b;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--rbx-zinc-400);
  background: var(--rbx-bg);
}

.rbx-hero {
  --rbx-dot-x: 28%;
  --rbx-dot-y: 38%;
  --rbx-dot-spot: min(360px, 48vw);
  position: relative;
  overflow: hidden;
  /* Linear-style: hero sits upper-left in a wide shell, not center-stacked */
  padding: clamp(48px, 9vh, 96px) 0 clamp(40px, 6vh, 72px);
  text-align: left;
}

@media (min-width: 901px) {
  .rbx-hero {
    min-height: clamp(380px, 48vh, 480px);
    padding: clamp(64px, 12vh, 148px) 0 clamp(64px, 9vh, 112px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

.rbx-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rbx-hero__glow {
  position: absolute;
  left: 8%;
  top: -12%;
  width: min(640px, 70vw);
  height: min(380px, 48vh);
  background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.14), transparent 70%);
  filter: blur(72px);
  opacity: 0.15;
}

/* Magic UI–style dot pattern (SVG) + cursor spotlight (desktop) */
.rbx-hero__dot-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
}

.rbx-dot-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rbx-dot-pattern--base {
  color: rgba(255, 255, 255, 0.22);
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.14) 100%
  );
  mask-image: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.rbx-dot-pattern--spot {
  color: rgba(255, 255, 255, 0.52);
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(
    circle var(--rbx-dot-spot) at var(--rbx-dot-x) var(--rbx-dot-y),
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.45) 36%,
    rgba(0, 0, 0, 0.12) 56%,
    transparent 70%
  );
  mask-image: radial-gradient(
    circle var(--rbx-dot-spot) at var(--rbx-dot-x) var(--rbx-dot-y),
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.45) 36%,
    rgba(0, 0, 0, 0.12) 56%,
    transparent 70%
  );
}

.rbx-hero.rbx-hero--dot-active .rbx-dot-pattern--spot {
  color: rgba(255, 255, 255, 0.68);
  opacity: 1;
}

@media (max-width: 900px) {
  .rbx-hero__dot-field {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 8%,
      #000 18%,
      #000 82%,
      rgba(0, 0, 0, 0.5) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 8%,
      #000 18%,
      #000 82%,
      rgba(0, 0, 0, 0.5) 92%,
      transparent 100%
    );
  }

  .rbx-dot-pattern--spot {
    display: none;
  }

  .rbx-dot-pattern--base {
    color: rgba(255, 255, 255, 0.18);
    -webkit-mask-image:
      radial-gradient(ellipse 88% 72% at 24% 36%, rgba(0, 0, 0, 0.85) 0%, transparent 72%),
      linear-gradient(165deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 100%);
    mask-image:
      radial-gradient(ellipse 88% 72% at 24% 36%, rgba(0, 0, 0, 0.85) 0%, transparent 72%),
      linear-gradient(165deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

.rbx-hero__shell {
  position: relative;
  z-index: 1;
}

.rbx-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0;
}

.rbx-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #fff;
}

.rbx-hero__title-line {
  display: block;
  font-size: clamp(2.35rem, 5.8vw, 4.1rem);
}

.rbx-hero__title-line--accent {
  font-size: clamp(2rem, 5vw, 3.55rem);
  font-weight: 600;
  color: #f4f4f5;
}

.rbx-hero__sub {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--rbx-zinc-400);
}

.rbx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 1.75rem;
}

.rbx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease-out, border-color 0.3s ease-out, transform 0.3s ease-out;
}

.rbx-btn--primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.rbx-btn--primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.rbx-btn--ghost {
  background: var(--rbx-zinc-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rbx-btn--ghost:hover {
  background: var(--rbx-zinc-800);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.rbx-games {
  padding: 0 0 2rem;
  margin-top: clamp(20px, 4vh, 48px);
}

.rbx-games__inner {
  margin: 0 auto;
  text-align: left;
}

.rbx-games__label {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rbx-zinc-500);
}

.rbx-games__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.rbx-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 27, 0.35);
  font-size: 0.75rem;
  font-weight: 500;
  color: #d4d4d8;
  text-decoration: none;
  transition: border-color 0.3s ease-out, background 0.3s ease-out;
}

.rbx-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(39, 39, 42, 0.5);
}

.rbx-pill--muted {
  opacity: 0.55;
  cursor: default;
}

.rbx-reviews {
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}

.rbx-reviews__head {
  max-width: 1120px;
  margin: 0 auto 1rem;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.rbx-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rbx-marquee__inner {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: rbx-marquee-scroll linear infinite;
  animation-duration: max(48s, calc(var(--rbx-marquee-count, 6) * 9s));
}

.rbx-marquee:hover .rbx-marquee__inner {
  animation-play-state: paused;
}

.rbx-marquee__track {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding: 4px 12px 4px 0;
}

@keyframes rbx-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbx-marquee__inner {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .rbx-marquee__track[aria-hidden="true"] {
    display: none;
  }

  .rbx-marquee__track {
    flex-wrap: wrap;
    padding: 0;
  }
}

.rbx-review {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  padding: 14px 16px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(8px);
  text-align: left;
}

.rbx-review__stars {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fbbf24;
}

.rbx-review__text {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #e4e4e7;
}

.rbx-review__meta {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--rbx-zinc-500);
}

.rbx-bento-wrap {
  padding: 0 16px 3.5rem;
}

.rbx-bento-wrap .game-pick--hub-two {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.rbx-bento-wrap .game-pick__grid--hub-two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.rbx-bento-wrap .game-pick__grid--hub-two .game-tile {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
}

.rbx-bento-wrap .game-pick__grid--hub-two .game-tile__body {
  width: 100%;
  min-height: 220px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .rbx-bento-wrap .game-pick__grid--hub-two {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    grid-template-columns: unset !important;
  }

  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile {
    flex: 0 0 auto;
    border-radius: 1rem;
  }

  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile + .game-tile {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile__body {
    min-height: 200px;
  }
}

@media (min-width: 901px) {
  .rbx-bento-wrap .game-pick__grid--hub-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile--fisch,
  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile--sae,
  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile--featured {
    grid-column: auto !important;
    min-height: 240px;
  }

  .rbx-bento-wrap .game-pick__grid--hub-two .game-tile__body {
    min-height: 240px;
  }
}

.rbx-bento-wrap .game-tile__desc {
  display: none;
}

.rbx-bento-wrap__head {
  max-width: 1120px;
  margin: 0 auto 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.rbx-bento {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, auto);
}

.rbx-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.4);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease-out, border-color 0.3s ease-out, background 0.3s ease-out;
}

.rbx-bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(39, 39, 42, 0.45);
}

.rbx-bento__card--large {
  grid-column: span 2;
  min-height: 220px;
}

.rbx-bento__card--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.rbx-bento__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rbx-bento__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.rbx-bento__desc {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--rbx-zinc-400);
}

@media (min-width: 768px) {
  .rbx-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(150px, 1fr));
  }

  .rbx-bento__card--large {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .rbx-bento__card--sae {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  .rbx-bento__card--adm {
    grid-column: 3;
    grid-row: 2;
  }

  .rbx-bento__card--misc {
    grid-column: 4;
    grid-row: 2;
  }
}

/* ===== Staggered reveal (hub) ===== */
@keyframes rbx-reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rbx-landing .rbx-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rbx-reveal-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.18s + var(--rbx-delay, 0) * 130ms);
}

.rbx-landing .rbx-hero__title.rbx-reveal {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rbx-landing .rbx-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Linear-aligned chrome (hub) — https://linear.app/ ===== */
.bs-body.rbx-hub-page {
  background: #09090b !important;
}

.bs-body.rbx-hub-page.auth-route {
  background: #09090b !important;
  background-image: none !important;
}

.bs-body.rbx-hub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 10%, transparent 75%);
}

.bs-body.rbx-hub-page #MainContent {
  position: relative;
  z-index: 1;
}

.bs-body.rbx-hub-page .mkt-shell[data-collection] {
  padding-top: 0;
  max-width: none;
  padding-inline: 28px;
}

/* Sticky glass bar — flush at top; floats slightly when scrolled */
.bs-body.rbx-hub-page .hdr.hdr--hub-glass {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    top 0.28s ease,
    margin 0.28s ease,
    width 0.28s ease,
    border-radius 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.bs-body.rbx-hub-page .hdr.hdr--hub-glass.hdr--hub-floating {
  top: 10px;
  width: min(1120px, calc(100% - 20px));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(9, 9, 11, 0.72) !important;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.42);
}

.bs-body.rbx-hub-page .hdr-row.hdr-wide {
  max-width: 1120px;
  height: 56px;
  gap: 12px;
  padding-inline: 0;
  margin: 0 auto;
}

.bs-body.rbx-hub-page .hdr-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bs-body.rbx-hub-page .hdr-chip-nav {
  justify-content: flex-start;
  flex: 1 1 auto;
  margin-left: 4px;
  gap: 0;
  align-items: center;
}

.bs-body.rbx-hub-page .hdr-nav-divider {
  display: block;
  width: 1px;
  height: 14px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.bs-body.rbx-hub-page .hdr-chip {
  height: 32px;
  padding: 0 10px;
  border: none !important;
  border-radius: 8px;
  background: transparent !important;
  color: #71717a !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none !important;
}

.bs-body.rbx-hub-page .hdr-chip:hover {
  color: #e4e4e7 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
  transform: none;
}

.bs-body.rbx-hub-page .hdr-chip.is-on,
.bs-body.rbx-hub-page .hdr-chip.active {
  color: #fafafa !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: none !important;
}

.bs-body.rbx-hub-page .hdr-right {
  gap: 6px;
}

.bs-body.rbx-hub-page .hdr-discord-btn--account {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(24, 24, 27, 0.45) !important;
  color: #d4d4d8 !important;
  font-size: 13px;
  font-weight: 500;
}

.bs-body.rbx-hub-page .hdr-discord-btn--account:hover {
  background: rgba(39, 39, 42, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.bs-body.rbx-hub-page .hdr-auth-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px !important;
}

.bs-body.rbx-hub-page .hdr-right a.hdr-auth-btn--ghost,
.bs-body.rbx-hub-page a.hdr-auth-btn.hdr-auth-btn--ghost {
  border: none !important;
  background: transparent !important;
  color: #a1a1aa !important;
}

.bs-body.rbx-hub-page .hdr-right a.hdr-auth-btn--solid,
.bs-body.rbx-hub-page a.hdr-auth-btn.hdr-auth-btn--solid {
  background: #fafafa !important;
  color: #09090b !important;
  border: 1px solid #fafafa !important;
}

.bs-body.rbx-hub-page .hub-page-shell {
  padding-left: 0;
  padding-right: 0;
}

.hdr-nav-divider {
  display: none;
}

.bs-body.rbx-hub-page .hdr-nav-divider {
  display: block;
}

/* Catalog / buy / cart on hub chrome (all shops except SAE) */
.bs-body.rbx-hub-page .mkt-shell[data-collection] {
  background: transparent;
}

.bs-body.rbx-hub-page .shop-game-title,
.bs-body.rbx-hub-page .shop-game-kicker {
  color: #fafafa;
}

.bs-body.rbx-hub-page .shop-game-blurb,
.bs-body.rbx-hub-page .shop-game-count {
  color: #a1a1aa;
}

.bs-body.rbx-hub-page .detail-panel {
  background: rgba(24, 24, 27, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.85);
}

.bs-body.rbx-hub-page .detail-title,
.bs-body.rbx-hub-page .detail-cat {
  color: #fafafa;
}

.bs-body.rbx-hub-page .detail-price {
  color: #fafafa;
}

.bs-body.rbx-hub-page .detail-lead,
.bs-body.rbx-hub-page .form-note,
.bs-body.rbx-hub-page .detail-info dt,
.bs-body.rbx-hub-page .detail-info dd {
  color: #a1a1aa;
}

.bs-body.rbx-hub-page .detail-info dd strong,
.bs-body.rbx-hub-page .form-note strong {
  color: #e4e4e7;
}

.bs-body.rbx-hub-page .cg-head .cg-kicker,
.bs-body.rbx-hub-page .cg-head h1 {
  color: #fafafa;
}

.bs-body.rbx-hub-page .card {
  background: rgba(24, 24, 27, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}

.bs-body.rbx-hub-page .card-name,
.bs-body.rbx-hub-page .price-now {
  color: #f4f4f5;
}

.bs-body.rbx-hub-page .card-stock,
.bs-body.rbx-hub-page .card-cat {
  color: #a1a1aa;
}

.bs-body.rbx-hub-page .filters,
.bs-body.rbx-hub-page .grid-section-head {
  color: #e4e4e7;
}
