:root {
  color-scheme: dark;
  --arcade-night: #090611;
  --arcade-panel: #15101f;
  --arcade-panel-bright: #21182f;
  --arcade-pink: #ff4fa3;
  --arcade-cyan: #48e7ff;
  --arcade-yellow: #ffe16b;
  --arcade-green: #8cf077;
  --arcade-purple: #9a75ff;
}

body {
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 79, 163, .17), transparent 29rem),
    radial-gradient(circle at 90% 18%, rgba(72, 231, 255, .14), transparent 34rem),
    linear-gradient(180deg, #0d0817, #07050c 48%, #100a19);
  color: #fff9ed;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 117, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 117, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.site-header {
  min-height: 76px;
  border-bottom-color: rgba(255, 255, 255, .12);
}

.wordmark { color: #fff; text-shadow: 0 0 20px rgba(72, 231, 255, .25); }
.top-nav a { color: #bfb4cd; }
.top-nav a:hover { color: var(--arcade-cyan); }

.arcade-mark {
  color: var(--arcade-cyan);
  filter: drop-shadow(0 0 7px rgba(72, 231, 255, .55));
}

.arcade-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 106px;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .62fr);
  align-items: end;
  gap: clamp(50px, 9vw, 130px);
  margin-bottom: 60px;
}

.hero-intro .kicker { color: var(--arcade-cyan); }

.hero-intro h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 8.2vw, 7.8rem);
  font-weight: 600;
  letter-spacing: -.066em;
  line-height: .82;
}

.hero-intro h1 em {
  color: var(--arcade-pink);
  font-weight: 500;
  text-shadow: 0 0 32px rgba(255, 79, 163, .28);
}

.hero-welcome { padding-bottom: 6px; }
.hero-welcome > p { margin: 0 0 24px; color: #c5b9d0; font-size: 1.02rem; line-height: 1.7; }
.hero-welcome .button-primary { border-color: var(--arcade-yellow); background: var(--arcade-yellow); color: #16101f; }
.hero-welcome .button span { margin-left: 9px; }

.online-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #998ca8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.online-count i,
.spotlight-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arcade-green);
  box-shadow: 0 0 10px var(--arcade-green);
  animation: arcade-pulse 1.8s ease-in-out infinite;
}

.featured-cabinet {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: linear-gradient(145deg, #251832, #100b19 42%, #1a1024);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.cabinet-marquee {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.35vw, 17px);
  padding: 0 18px;
  color: #16101f;
  background: linear-gradient(90deg, #f9c94d, #ffe783 48%, #f9c94d);
  border-radius: 15px 15px 7px 7px;
  box-shadow: 0 0 26px rgba(255, 225, 107, .2), inset 0 -4px rgba(166, 103, 30, .15);
}

.cabinet-marquee span {
  margin: 0 10px;
  font-size: clamp(.72rem, 1.1vw, .9rem);
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cabinet-marquee > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fffdf0;
  box-shadow: 0 0 10px #fff;
  animation: marquee-light 1.2s ease-in-out infinite alternate;
}

.cabinet-marquee > i:nth-child(2n) { animation-delay: -.6s; }

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .74fr);
  gap: 13px;
  padding-top: 13px;
}

.spotlight {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.spotlight:hover,
.spotlight:focus-visible {
  z-index: 3;
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36);
  transform: translateY(-4px);
}

.spotlight-main { min-height: 580px; background: linear-gradient(145deg, #264737, #0f271f 58%, #07120f); }

.spotlight-badge,
.spotlight-rank {
  position: absolute;
  z-index: 7;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(7, 10, 9, .58);
  backdrop-filter: blur(12px);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sprout-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 244, 183, .05), rgba(4, 24, 17, .48)),
    repeating-linear-gradient(to right, transparent 0 105px, rgba(255, 255, 255, .035) 106px 108px),
    linear-gradient(155deg, #50956d, #17382a 64%);
}

.sprout-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(228, 255, 167, .36), transparent 23%);
}

.kitchen-window {
  position: absolute;
  top: 72px;
  right: 11%;
  width: 145px;
  height: 175px;
  border: 10px solid #e7c784;
  border-radius: 70px 70px 8px 8px;
  background: linear-gradient(#92d9e4 0 65%, #d6e89c 65%);
  box-shadow: 0 0 38px rgba(206, 244, 186, .2), inset 0 0 0 4px rgba(68, 83, 55, .25);
}

.kitchen-window::after { content: ""; position: absolute; inset: 50% -1px auto; height: 7px; background: #e7c784; }

.sprout-platform {
  position: absolute;
  z-index: 2;
  height: 18px;
  border: 4px solid #3a2516;
  border-radius: 8px;
  background: #da9b51;
  box-shadow: inset 0 -5px rgba(77, 43, 21, .35), 0 8px 0 rgba(5, 23, 16, .25);
}

.platform-one { left: 7%; bottom: 31%; width: 32%; }
.platform-two { right: 10%; bottom: 47%; width: 27%; }
.platform-three { left: 35%; bottom: 65%; width: 22%; }

.sprout-hero {
  position: absolute;
  z-index: 4;
  left: 22%;
  bottom: 34%;
  width: 30px;
  height: 39px;
  border-radius: 48% 48% 38% 38%;
  background: #f0d477;
  box-shadow: inset -6px -6px rgba(71, 64, 26, .18), 0 0 0 3px #264f36, 0 10px 18px rgba(0, 0, 0, .25);
}

.sprout-hero::before,
.sprout-hero::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 20px;
  height: 25px;
  border-radius: 100% 12% 100% 12%;
  background: #a9eb70;
  border: 3px solid #264f36;
}

.sprout-hero::before { left: -8px; transform: rotate(-35deg); }
.sprout-hero::after { right: -8px; transform: scaleX(-1) rotate(-35deg); }

.dew {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 17px;
  border-radius: 60% 40% 55% 45%;
  background: #8ff6ff;
  box-shadow: 0 0 15px #5beeff;
  transform: rotate(42deg);
}

.dew-one { left: 47%; bottom: 45%; }
.dew-two { right: 18%; bottom: 64%; }
.dew-three { left: 50%; top: 16%; }

.featured-side { display: grid; grid-template-rows: 1fr 1fr; gap: 13px; }
.spotlight-small { min-height: 283px; }
.spotlight-wizard { background: linear-gradient(#617a5c 0 55%, #76543f 55%); }
.spotlight-tanks { background: radial-gradient(circle at 50% 80%, #16453e, #06090d 66%); }
.spotlight-small .wizard-art,
.spotlight-small .tank-art { position: absolute; inset: 0; opacity: .95; transform: scale(1.08); }

.spotlight-copy {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 7px;
  padding: 52px 25px 25px;
  background: linear-gradient(transparent, rgba(6, 5, 10, .93) 52%);
}

.spotlight-copy small { color: #cbbfd5; font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.spotlight-copy strong { font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; line-height: .95; }
.spotlight-copy > span { color: #d3cadb; font-size: .83rem; line-height: 1.5; }
.spotlight-copy b { margin-left: 8px; color: var(--arcade-yellow); white-space: nowrap; }
.spotlight-small .spotlight-copy { padding: 45px 20px 19px; }
.spotlight-small .spotlight-copy strong { font-size: clamp(1.65rem, 2.4vw, 2.35rem); }
.spotlight-small .spotlight-rank { top: 14px; left: 14px; }

.collection {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 79, 163, .12), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(72, 231, 255, .09), transparent 28rem),
    #0c0912;
}

.collection::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--arcade-pink), var(--arcade-yellow), var(--arcade-green), var(--arcade-cyan), var(--arcade-purple));
}

.collection > * { position: relative; z-index: 1; }
.collection .section-heading .kicker { color: var(--arcade-pink); }
.filter { border-color: rgba(255, 255, 255, .24); }
.filter:hover,
.filter.is-active { border-color: var(--arcade-yellow); background: var(--arcade-yellow); color: #17101f; }

.phase-guide { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .18); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.phase-definition { background: linear-gradient(145deg, #1e1728, #12101a); }
.phase-definition-release { box-shadow: inset 0 4px var(--arcade-green); }
.phase-definition-beta { box-shadow: inset 0 4px var(--arcade-purple); }
.phase-definition-alpha { box-shadow: inset 0 4px var(--arcade-pink); }

.game-card { background: #17121f; box-shadow: 0 16px 38px rgba(0, 0, 0, .2); }
.game-card:hover { border-color: rgba(72, 231, 255, .55); box-shadow: 0 20px 46px rgba(0, 0, 0, .35), 0 0 20px rgba(72, 231, 255, .08); }
.cover-chip { border-color: rgba(255, 255, 255, .45); background: rgba(9, 6, 17, .64); }
.play-link { color: var(--arcade-yellow); }

.about {
  width: min(1180px, calc(100% - 40px));
  color: #fff9ed;
}

.about .kicker { color: var(--arcade-cyan); }
.about-copy p { color: #b9aec4; }
.site-footer { border-top-color: rgba(255, 255, 255, .14); color: #9f93aa; }
.site-footer a:hover { color: var(--arcade-cyan); }

@keyframes arcade-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.75); }
}

@keyframes marquee-light {
  from { opacity: .45; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 920px) {
  .hero-intro { grid-template-columns: 1fr; gap: 34px; }
  .hero-welcome { max-width: 620px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .spotlight-small { min-height: 310px; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 26px, 1180px); }
  .top-nav a:nth-child(2),
  .top-nav a:nth-child(3) { display: none; }
  .arcade-hero { width: min(100% - 24px, 1240px); padding: 54px 0 74px; }
  .hero-intro { margin-bottom: 42px; }
  .hero-intro h1 { font-size: clamp(3.6rem, 18vw, 5rem); }
  .featured-cabinet { padding: 8px; border-radius: 19px; }
  .cabinet-marquee { min-height: 47px; gap: 5px; padding: 0 8px; }
  .cabinet-marquee > i:nth-child(-n+4),
  .cabinet-marquee > span ~ i:nth-last-child(-n+4) { display: none; }
  .featured-grid { gap: 8px; padding-top: 8px; }
  .spotlight-main { min-height: 510px; }
  .kitchen-window { right: 8%; width: 110px; height: 145px; }
  .featured-side { grid-template-columns: 1fr; gap: 8px; }
  .spotlight-small { min-height: 285px; }
  .spotlight-copy { padding-inline: 20px; }
  .spotlight-copy strong { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .online-count i,
  .spotlight-badge i,
  .cabinet-marquee > i { animation: none; }
}
