:root {
  --bg: #070d17;
  --bg-2: #121f35;
  --panel: rgba(9, 17, 30, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(130, 195, 255, 0.34);
  --line-soft: rgba(130, 195, 255, 0.18);
  --text: #ecf5ff;
  --muted: #9cb2cf;
  --blue: #72c2ff;
  --mint: #95f2cc;
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(900px 420px at 50% -12%, rgba(153, 214, 255, 0.02), transparent 64%),
    radial-gradient(1000px 460px at -10% -18%, rgba(114, 194, 255, 0.06), transparent 55%),
    radial-gradient(700px 360px at 112% -8%, rgba(149, 242, 204, 0.045), transparent 52%),
    linear-gradient(160deg, #02060e 0%, #050d1a 48%, #071224 100%);
  padding: 1rem;
  animation: page-enter 0.65s var(--ease-dramatic) both;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.005) 0 1px, transparent 1px 80px);
  background-size: 220px 220px, 280px 280px, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(70% 56% at 50% 50%, rgba(117, 194, 255, 0.05), transparent 70%),
    radial-gradient(54% 44% at 65% 36%, rgba(149, 242, 204, 0.04), transparent 72%);
}

body.view-flash::after {
  animation: view-flash 0.44s var(--ease-dramatic) both;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(117, 194, 255, 0.02), transparent 62%),
    repeating-linear-gradient(0deg, rgba(117, 194, 255, 0.01) 0 1px, transparent 1px 42px),
    linear-gradient(rgba(145, 183, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 183, 255, 0.026) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  animation: bg-shift 24s ease-in-out infinite;
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.12;
  will-change: transform, opacity;
}

.site-bg::before {
  width: 38vw;
  height: 38vw;
  top: -10vw;
  left: -8vw;
  background: var(--blue);
  animation: orb-drift-a 14s ease-in-out infinite;
}

.site-bg::after {
  width: 36vw;
  height: 36vw;
  right: -9vw;
  bottom: -10vw;
  background: var(--mint);
  animation: orb-drift-b 18s ease-in-out infinite;
}

.wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.42rem;
  z-index: 55;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(8, 14, 24, 0.88);
  backdrop-filter: blur(12px);
  padding: 0.72rem 0.86rem;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.26s var(--ease-soft),
    box-shadow 0.26s var(--ease-soft),
    background-color 0.26s var(--ease-soft),
    transform 0.26s var(--ease-soft);
}

.topbar:hover {
  border-color: var(--line);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.52);
  transform: translateY(-2px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 12px;
  padding: 0.32rem 0.58rem;
  transition: transform 0.18s var(--ease-soft), border-color 0.18s var(--ease-soft), box-shadow 0.22s var(--ease-soft), text-shadow 0.2s var(--ease-soft);
}

.brand:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 0 0 1px var(--line-soft), 0 16px 28px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 18px rgba(117, 194, 255, 0.4);
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.36rem 0.7rem;
  transition: color 0.16s var(--ease-soft), border-color 0.16s var(--ease-soft), transform 0.16s var(--ease-soft), background-color 0.16s var(--ease-soft);
  position: relative;
  overflow: hidden;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease-soft);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  padding: 1.08rem;
  transition: border-color 0.28s var(--ease-dramatic), box-shadow 0.28s var(--ease-dramatic), transform 0.28s var(--ease-dramatic);
}

.panel:hover {
  border-color: var(--line);
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.56);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.12;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -70px;
  top: -100px;
  background: var(--blue);
  animation: hero-glow-a 12s ease-in-out infinite;
}

.hero::after {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -120px;
  background: var(--mint);
  animation: hero-glow-b 16s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-main {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: -45% -35%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.05) 50%, transparent 68%);
  mix-blend-mode: screen;
  transform: translateX(-62%) rotate(6deg);
  opacity: 0.24;
  animation: hero-sweep 8.2s var(--ease-dramatic) infinite;
}

.hero-main > * {
  position: relative;
  z-index: 1;
}

.hero-brandline {
  display: flex;
  gap: 0.82rem;
  align-items: center;
}

.hero-logo-frame {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 86px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: hero-logo-float 4.2s ease-in-out infinite;
  transition: transform 0.28s var(--ease-dramatic), box-shadow 0.28s var(--ease-dramatic), border-color 0.2s var(--ease-soft);
  box-shadow: 0 0 0 1px rgba(117, 194, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 36px rgba(0, 0, 0, 0.45);
}

.hero-logo-frame:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(117, 194, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 26px 46px rgba(0, 0, 0, 0.54);
}

.hero-logo-frame img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: #0a1728;
}

.hero-logo-initials {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #dff1ff;
}

.hero-brandcopy {
  min-width: 0;
}

.badge {
  display: inline-flex;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
}

.hero h1 {
  margin: 0.46rem 0 0;
  font-size: clamp(2rem, 4.9vw, 3.25rem);
  line-height: 1.04;
}

.lead {
  margin: 0;
  color: #c8dcf7;
  line-height: 1.62;
  max-width: 820px;
}

.hero-tags {
  display: flex;
  gap: 0.46rem;
  flex-wrap: wrap;
}

.subtle {
  margin: 0.32rem 0 0;
  color: var(--muted);
  line-height: 1.54;
}

.chooser-panel {
  display: grid;
  gap: 0.7rem;
}

.chooser-head h2 {
  margin: 0;
}

.chooser-buttons {
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.featured-panel {
  display: grid;
  gap: 0.72rem;
}

.featured-counter {
  min-width: 66px;
  justify-content: center;
}

.featured-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.66rem;
  align-items: stretch;
}

.featured-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 280px;
  align-items: stretch;
}

.featured-media-wrap {
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #081424, #0f223b);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  --featured-bg-image: none;
}

.featured-media-wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--featured-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.15) brightness(0.9);
  transform: scale(1.08);
  opacity: 0.82;
  z-index: 0;
}

.featured-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 16, 30, 0.12), rgba(8, 16, 30, 0.38));
  z-index: 1;
}

.featured-media-blur {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(22px) saturate(1.15) brightness(0.9);
  transform: scale(1.06);
  opacity: 0.84;
  z-index: 0;
}

.featured-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  position: relative;
  z-index: 2;
}

.featured-body {
  padding: 0.86rem;
  display: grid;
  align-content: start;
  gap: 0.58rem;
}

.featured-body h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2.4vw, 1.76rem);
}

.featured-body .chip {
  min-width: 112px;
  justify-content: center;
  text-align: center;
}

.featured-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.featured-actions {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.54rem;
}

.featured-nav {
  min-width: 44px;
  font-size: 1.1rem;
  align-self: center;
}

.featured-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.featured-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.12);
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s var(--ease-soft), border-color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft);
}

.featured-dot:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: var(--line);
}

.featured-dot.is-active {
  background: linear-gradient(120deg, var(--blue), var(--mint));
  border-color: rgba(117, 194, 255, 0.58);
}

.hero-actions,
.game-actions,
.roblox-actions,
.game-modal-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.58rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease-dramatic), filter 0.22s var(--ease-dramatic), border-color 0.2s var(--ease-soft), box-shadow 0.28s var(--ease-dramatic);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.07);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--mint));
  color: #03253b;
  border-color: rgba(117, 194, 255, 0.58);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -35% -55%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  opacity: 0;
  transform: translateX(-45%);
  transition: transform 0.34s var(--ease-soft), opacity 0.26s var(--ease-soft);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(45%);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-soft);
}

.btn.is-active {
  box-shadow: 0 0 0 2px rgba(117, 194, 255, 0.28), 0 14px 24px rgba(0, 0, 0, 0.3);
}

.games-panel,
.grid-two {
  grid-column: 1 / -1;
}

.section-head {
  margin-bottom: 0.84rem;
}

.section-head h2,
.grid-two h2,
.game-card h3,
.game-card h4,
.group-meta h3,
.roblox-body h3 {
  margin: 0;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.loading {
  opacity: 0.9;
}

.group-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.76rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.74rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.22s var(--ease-soft), transform 0.22s var(--ease-soft), background-color 0.22s var(--ease-soft);
}

.group-card:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.group-icon {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
}

.group-meta a,
.footer-links a {
  color: #afdfff;
}

.roblox-grid {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.86rem;
}

.roblox-card {
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  cursor: pointer;
  transition: border-color 0.22s var(--ease-dramatic), transform 0.22s var(--ease-dramatic), box-shadow 0.22s var(--ease-dramatic);
  animation: card-in 0.42s var(--ease-soft) both;
  animation-delay: calc(var(--card-index, 0) * 48ms);
  position: relative;
  will-change: transform, box-shadow;
  transform: perspective(960px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translateY(0) scale(1);
}

.roblox-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% -20%, rgba(117, 194, 255, 0.14), transparent 44%);
  opacity: 0;
  transition: opacity 0.24s var(--ease-soft);
}

.roblox-card:hover,
.roblox-card:focus-visible {
  border-color: var(--line);
  transform: perspective(960px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translateY(-8px) scale(1.014);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.46);
  outline: none;
}

.roblox-card:hover::before,
.roblox-card:focus-visible::before {
  opacity: 1;
}

.roblox-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #0a1628, #10243e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roblox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #071322;
  transition: transform 0.38s var(--ease-dramatic), filter 0.3s var(--ease-soft);
}

.roblox-card:hover .roblox-media img,
.roblox-card:focus-visible .roblox-media img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}

.roblox-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cde3fb;
  font-weight: 700;
}

.roblox-body {
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.56rem;
}

.roblox-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.22rem 0.58rem;
  font-size: 0.82rem;
}

.game-card {
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.96rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.95rem;
  transition: border-color 0.28s var(--ease-dramatic), box-shadow 0.28s var(--ease-dramatic), transform 0.28s var(--ease-dramatic);
}

.game-card:hover {
  border-color: var(--line);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.42);
  transform: translateY(-5px);
}

.game-card ul,
.game-card-side ol {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: #d2e4fb;
  line-height: 1.52;
}

.chip {
  display: inline-flex;
  margin: 0 0 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8e9ff;
}

.game-card-side {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 8, 15, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modal-fade-in 0.28s var(--ease-dramatic) both;
}

.game-modal-card {
  width: min(860px, 96vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 18, 30, 0.96);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.52);
  padding: 0.95rem;
  animation: modal-pop-in 0.42s var(--ease-dramatic) both;
}

.game-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.game-modal-head h3 {
  margin: 0;
}

.game-modal-media-wrap {
  margin-top: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #071322;
}

.game-modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
}

.detail-stats {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer {
  margin-top: 1.14rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.94rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.intro-burst {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(68% 58% at 50% 48%, rgba(117, 194, 255, 0.22), transparent 72%),
    rgba(3, 7, 13, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
}

.intro-burst.is-animating {
  opacity: 1;
  visibility: visible;
  animation: intro-burst-fade 1.65s var(--ease-dramatic) both;
}

.intro-burst.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-burst-core {
  width: clamp(112px, 17vw, 168px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 62%),
    linear-gradient(140deg, rgba(117, 194, 255, 0.24), rgba(149, 242, 204, 0.2)),
    rgba(8, 15, 27, 0.9);
  box-shadow:
    0 30px 58px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(117, 194, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.84) translateY(22px);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.intro-burst-core::before {
  content: "";
  position: absolute;
  inset: -120% -45%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.34) 50%, transparent 64%);
  transform: translateX(-40%) rotate(6deg);
  opacity: 0;
}

.intro-burst.is-animating .intro-burst-core {
  animation: intro-burst-core-pop 1.58s var(--ease-dramatic) both;
}

.intro-burst.is-animating .intro-burst-core::before {
  animation: intro-burst-core-sweep 1.3s var(--ease-dramatic) both;
  animation-delay: 0.12s;
}

.intro-burst-mark {
  font-size: clamp(1.45rem, 4.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #eaf5ff;
  text-shadow: 0 0 28px rgba(117, 194, 255, 0.56);
}

.intro-burst-logo {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(145, 210, 255, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.986);
  transition:
    opacity 0.52s var(--ease-dramatic),
    transform 0.72s var(--ease-dramatic);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.view-enter {
  animation: view-switch-in 0.46s var(--ease-dramatic) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bg-shift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.02);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: perspective(960px) rotateX(0deg) rotateY(0deg) translateY(20px) scale(0.972);
  }
  to {
    opacity: 1;
    transform: perspective(960px) rotateX(0deg) rotateY(0deg) translateY(0) scale(1);
  }
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes view-switch-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes hero-glow-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.22;
  }
  50% {
    transform: translate3d(26px, -10px, 0) scale(1.08);
    opacity: 0.42;
  }
}

@keyframes hero-glow-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(-24px, 10px, 0) scale(1.1);
    opacity: 0.36;
  }
}

@keyframes hero-sweep {
  0% {
    transform: translateX(-64%) rotate(6deg);
    opacity: 0;
  }
  16% {
    opacity: 0.56;
  }
  52% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(66%) rotate(6deg);
    opacity: 0;
  }
}

@keyframes orb-drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

@keyframes orb-drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-20px, 16px, 0) scale(1.09);
  }
}

@keyframes view-flash {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}

@keyframes intro-burst-fade {
  0%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes intro-burst-core-pop {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(26px);
    filter: blur(6px);
  }
  20% {
    opacity: 1;
    transform: scale(1.03) translateY(0);
    filter: blur(0);
  }
  68% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
  }
}

@keyframes intro-burst-core-sweep {
  0% {
    opacity: 0;
    transform: translateX(-56%) rotate(6deg);
  }
  28% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(56%) rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .intro-burst {
    display: none !important;
  }
}

@media (max-width: 1160px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    min-height: 200px;
  }

  .game-card,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .roblox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .featured-shell {
    grid-template-columns: 1fr;
  }

  .featured-nav {
    display: none;
  }

  .roblox-grid {
    grid-template-columns: 1fr;
  }

  .group-card {
    grid-template-columns: 1fr;
  }

  .group-icon {
    width: 84px;
    height: 84px;
  }

}

@media (max-width: 640px) {
  body {
    padding: 0.64rem;
  }

  .panel,
  .game-modal-card {
    padding: 0.82rem;
  }

  .hero-logo-frame {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .hero-logo-frame img {
    width: 60px;
    height: 60px;
  }
}
