/* Flat world identity for the Arcade Comps hub. */

.brand-symbol {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 0;
  border: 2px solid var(--navy);
  background: #159bd0;
  box-shadow: inset 0 0 0 3px #fff, 3px 3px 0 #17134f2e;
  transform: rotate(-6deg);
}

.brand-symbol::before {
  z-index: 1;
  content: "";
  position: absolute;
  inset: 17% 4%;
  border: 1px solid #dffaff99;
  border-radius: 50%;
}

.brand-symbol::after {
  z-index: 1;
  content: "";
  position: absolute;
  inset: 4% 29%;
  border-right: 1px solid #dffaff99;
  border-left: 1px solid #dffaff99;
  border-radius: 50%;
}

.brand-symbol i {
  z-index: 2;
  position: absolute;
  display: block;
  background: #b5de55;
  box-shadow: none;
}

.brand-symbol i:first-child {
  clip-path: polygon(5% 25%, 30% 0, 66% 9%, 100% 35%, 78% 58%, 85% 100%, 42% 84%, 12% 62%);
  width: 40%;
  height: 31%;
  top: 19%;
  left: 7%;
  border-radius: 55% 45% 58% 42%;
}

.brand-symbol i:nth-child(2) {
  clip-path: polygon(20% 0, 72% 14%, 100% 46%, 66% 100%, 30% 82%, 0 39%);
  width: 24%;
  height: 34%;
  top: 47%;
  left: 27%;
  border-radius: 42% 58% 48% 52%;
}

.brand-symbol i:nth-child(3) {
  clip-path: polygon(0 28%, 32% 0, 100% 16%, 86% 61%, 55% 100%, 18% 75%);
  width: 38%;
  height: 29%;
  top: 27%;
  right: 5%;
  border-radius: 48% 52% 44% 56%;
}

.launch-hero {
  background: #edf7f8;
}

.launch-hero::before,
.launch-hero::after {
  display: none;
}

.hero-rays,
.hero-confetti {
  display: none;
}

.hero-edition {
  background: linear-gradient(105deg, #13b8d4 0%, #168bd1 48%, #65c85a 100%);
  box-shadow: 7px 7px 0 #123e91;
}

.select-button {
  display: inline-flex;
  justify-content: center;
  gap: 0;
  padding-inline: 22px;
  text-align: center;
  background: linear-gradient(105deg, #13b8d4 0%, #168bd1 48%, #65c85a 100%);
}

/* Keep the fine globe grid stable in browsers that shimmer on animated 1px curves. */
.world-disc {
  animation: none;
  backface-visibility: hidden;
  contain: paint;
}

.world-disc::before {
  mix-blend-mode: normal;
  opacity: .28;
}

.earth-grid,
.earth-grid i {
  backface-visibility: hidden;
}

.earth-grid {
  opacity: .34;
}

.earth-grid i {
  border-color: #ffffff4f;
}

/* A flatter, editorial game directory without decorative marketing copy. */
.featured-game {
  background: #4f73d8;
}

.feature-dock {
  display: none;
}

.network-section,
.site-header nav a[href="#network"],
.mobile-navigation a[href="#network"] {
  display: none;
}

.featured-game::after,
.feature-signal,
.browse-dock small,
.browse-count {
  display: none;
}

.featured-game,
.browse-dock {
  grid-template-columns: 1fr auto;
}

.browse-dock {
  background: #251b68;
}

.game-select {
  background: #0f1038;
}

.game-select::before,
.section-intro > p,
.section-intro h2 br,
.section-intro h2 em,
.catalog-total,
.catalog-status,
.catalog-footer,
.catalog-art::before,
.catalog-art::after {
  display: none;
}

.section-intro {
  grid-template-columns: 1fr;
  margin-bottom: 38px;
}

.section-intro h2 {
  letter-spacing: -.065em;
  line-height: .88;
}

.catalog-toolbar {
  align-items: end;
  border-bottom-color: #ffffff2e;
}

.catalog-filters button b {
  display: none;
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1440px;
}

.catalog-card {
  min-height: 420px;
  clip-path: none;
  border-width: 2px;
  box-shadow: none;
}

.catalog-card[hidden] {
  display: none !important;
}

.catalog-art {
  min-height: 300px;
  background: #d9e5ea;
}

.catalog-art-chunithm {
  background: #cfe7ec;
}

.catalog-art-sound-voltex {
  background: #d9dfe8;
}

.catalog-art-wacca {
  background: #d8dbe4;
}

.catalog-art-iidx {
  overflow: hidden;
  background: #fff;
}

.catalog-art-iidx .catalog-game-logo {
  width: 115%;
  max-width: none;
}

.catalog-game-logo,
.catalog-art-sound-voltex .catalog-game-logo {
  filter: none;
}

.catalog-copy {
  min-height: 118px;
  padding: 24px;
  display: flex;
  align-items: center;
  background: #18174b;
}

.catalog-copy::before {
  height: 5px;
  background: var(--game-a);
}

.catalog-copy h3 {
  margin: 0;
  font-size: clamp(1.85rem, 2.3vw, 3.1rem);
  letter-spacing: .025em;
  line-height: .8;
}

.catalog-card.is-upcoming {
  border-color: #777b8b;
  background: #bfc2ca;
}

.catalog-card.is-upcoming .catalog-art {
  background: #c9cbd1;
}

.catalog-card.is-upcoming .catalog-game-logo {
  opacity: .42;
  filter: grayscale(1);
}

.catalog-card.is-upcoming .catalog-copy {
  color: #a7a9b3;
  background: #343548;
}

.catalog-card.is-upcoming .catalog-copy::before {
  background: #777b87;
}

.catalog-card.is-external {
  border-color: #caff3d;
}

.catalog-card.is-external .catalog-copy {
  position: relative;
  align-items: center;
  padding: 24px;
}

.catalog-card.is-external .catalog-copy h3 {
  width: 100%;
  text-align: center;
}

.external-project-note {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #0f1038;
  background: #caff3d;
  border: 1px solid #fff;
  padding: 6px 9px 5px;
  letter-spacing: .1em;
  font-size: .48rem;
  font-weight: 900;
  line-height: 1;
}

/* Recognisable continent silhouettes on both large Earth illustrations. */
.earth-map .land-a {
  clip-path: polygon(4% 23%, 18% 7%, 38% 0, 52% 11%, 69% 7%, 83% 21%, 100% 29%, 87% 44%, 72% 50%, 67% 66%, 49% 62%, 38% 78%, 20% 72%, 9% 56%, 0 43%);
  width: 18%;
  height: 29%;
  top: 15%;
  left: 2%;
  border-radius: 36% 48% 42% 38%;
}

.earth-map .land-b {
  clip-path: polygon(8% 0, 45% 4%, 83% 17%, 100% 36%, 75% 51%, 67% 70%, 45% 100%, 26% 81%, 21% 60%, 0 34%);
  width: 9%;
  height: 34%;
  top: 42%;
  left: 17%;
  border-radius: 45% 42% 55% 38%;
}

.earth-map .land-c {
  clip-path: polygon(0 20%, 9% 8%, 21% 12%, 30% 1%, 44% 6%, 56% 0, 69% 8%, 83% 7%, 100% 20%, 94% 34%, 79% 39%, 70% 49%, 58% 45%, 51% 57%, 47% 77%, 38% 100%, 29% 80%, 25% 59%, 16% 48%, 4% 42%);
  width: 22%;
  height: 54%;
  top: 13%;
  left: 27%;
  border-radius: 35% 42% 43% 38%;
}

.earth-map .land-d {
  clip-path: polygon(8% 23%, 34% 4%, 75% 0, 100% 31%, 91% 67%, 62% 100%, 24% 88%, 0 55%);
  width: 8%;
  height: 13%;
  top: 65%;
  left: 40%;
  border-radius: 43% 57% 48% 52%;
}

.earth-map .land-copy.land-a { left: 52%; }
.earth-map .land-copy.land-b { left: 67%; }
.earth-map .land-copy.land-c { left: 77%; }
.earth-map .land-copy.land-d { left: 90%; }

/* Three supported games orbit the globe as compact station modules. */
.hero-stage {
  perspective: 1000px;
}

.hero-stage > .world-disc {
  z-index: 10;
}

.hero-stage > .orbit {
  display: none;
}

.game-stations {
  display: contents;
}

.game-station-track {
  --station-delay: 0s;
  --station-duration: 27s;
  z-index: 9;
  position: absolute;
  top: -2.5%;
  left: 5.3%;
  width: min(52vw, 690px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: game-station-axis-one var(--station-duration) linear infinite;
  animation-delay: var(--station-delay);
}

.game-station-track:nth-child(2) {
  --station-delay: -7.7s;
  --station-duration: 23s;
  animation-name: game-station-axis-two;
}

.game-station-track:nth-child(3) {
  --station-delay: -22.6s;
  --station-duration: 34s;
  animation-name: game-station-axis-three;
}

.game-station {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(82px, 7vw, 112px);
  height: clamp(48px, 4.4vw, 66px);
  border: 3px solid var(--navy);
  background: #fff;
  box-shadow: 0 7px 18px #0716403d, inset 0 -7px #dbe8ed;
  display: grid;
  place-items: center;
  padding: 9px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: game-station-counter-one var(--station-duration) linear infinite;
  animation-delay: var(--station-delay);
}

.game-station-track:nth-child(2) .game-station {
  animation-name: game-station-counter-two;
}

.game-station-track:nth-child(3) .game-station {
  animation-name: game-station-counter-three;
}

.game-station::before,
.game-station::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 31px;
  border: 2px solid var(--navy);
  background: #1785b7;
  box-shadow: inset 7px 0 #55c6de, inset -7px 0 #0d5d93;
  transform: translateY(-50%);
}

.game-station::before { right: calc(100% + 3px); }
.game-station::after { left: calc(100% + 3px); }

.game-station img {
  z-index: 1;
  position: absolute;
  inset: 5px 6px 9px;
  width: calc(100% - 12px);
  height: calc(100% - 14px);
  min-width: 0;
  min-height: 0;
  max-width: calc(100% - 12px);
  max-height: calc(100% - 14px);
  clip-path: inset(0);
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #0b0a2b2b);
}

@keyframes game-station-axis-one {
  0% { z-index: 9; transform: rotateX(62deg) rotateZ(0deg); }
  24.99% { z-index: 9; transform: rotateX(62deg) rotateZ(89.964deg); }
  25% { z-index: 11; transform: rotateX(62deg) rotateZ(90deg); }
  74.99% { z-index: 11; transform: rotateX(62deg) rotateZ(269.964deg); }
  75% { z-index: 9; transform: rotateX(62deg) rotateZ(270deg); }
  100% { z-index: 9; transform: rotateX(62deg) rotateZ(360deg); }
}

@keyframes game-station-counter-one {
  from { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-62deg); }
  to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-62deg); }
}

@keyframes game-station-axis-two {
  0% { z-index: 11; transform: rotateY(66deg) rotateZ(0deg); }
  49.99% { z-index: 11; transform: rotateY(66deg) rotateZ(-179.964deg); }
  50% { z-index: 9; transform: rotateY(66deg) rotateZ(-180deg); }
  100% { z-index: 9; transform: rotateY(66deg) rotateZ(-360deg); }
}

@keyframes game-station-counter-two {
  from { transform: translate(-50%, -50%) rotateZ(0deg) rotateY(-66deg); }
  to { transform: translate(-50%, -50%) rotateZ(360deg) rotateY(-66deg); }
}

@keyframes game-station-axis-three {
  0% { z-index: 9; transform: rotateZ(38deg) rotateX(72deg) rotateZ(0deg); }
  24.99% { z-index: 9; transform: rotateZ(38deg) rotateX(72deg) rotateZ(89.964deg); }
  25% { z-index: 11; transform: rotateZ(38deg) rotateX(72deg) rotateZ(90deg); }
  74.99% { z-index: 11; transform: rotateZ(38deg) rotateX(72deg) rotateZ(269.964deg); }
  75% { z-index: 9; transform: rotateZ(38deg) rotateX(72deg) rotateZ(270deg); }
  100% { z-index: 9; transform: rotateZ(38deg) rotateX(72deg) rotateZ(360deg); }
}

@keyframes game-station-counter-three {
  from { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-72deg) rotateZ(-38deg); }
  to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-72deg) rotateZ(-38deg); }
}

@media (max-width: 900px) {
  .launch-hero {
    min-height: clamp(580px, calc(38vw + 305px), 660px);
  }

  .hero-stage {
    top: 130px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .game-station-track {
    width: min(55vw, 540px);
    top: 0;
    left: 7%;
  }
}

@media (min-width: 901px) {
  .launch-hero {
    min-height: max(720px, calc(100svh - 180px));
  }
}

@media (min-width: 901px) and (max-width: 1230px) {
  .launch-hero {
    min-height: clamp(600px, calc(41.5vw + 196px), 720px);
  }
}

@media (min-width: 1231px) and (max-width: 1499px) {
  .game-station-track {
    width: min(40vw, 540px);
    left: 15%;
  }
}

@media (min-width: 1500px) {
  .brand-lockup-hero {
    --brand-icon: clamp(116px, 7.2vw, 124px);
    --brand-small: clamp(1.25rem, 1.15vw, 1.6rem);
    --brand-large: clamp(10.7rem, 11vw, 12rem);
    gap: clamp(24px, 1.8vw, 32px);
  }
}

/* Keep the hero composed as one unit on ultra-wide desktop displays. */
@media (min-width: 1700px) {
  .hero-copy {
    width: 50%;
    max-width: none;
    top: calc(clamp(55px, 5vh, 90px) + min(1.84vw, 32.8px) + min(18vw, 380px));
    padding-top: 0;
    padding-bottom: 0;
    padding-left: max(90px, calc((100vw - 2000px) / 2 + 80px));
    transform: translateY(-50%);
  }

  .brand-lockup-hero {
    --brand-icon: clamp(124px, 5.7vw, 150px);
    --brand-small: clamp(1.35rem, 1vw, 1.7rem);
    --brand-large: clamp(11rem, 8vw, 13.5rem);
    gap: clamp(28px, 1.7vw, 38px);
  }

  .hero-edition {
    min-width: clamp(230px, 11vw, 290px);
    min-height: clamp(44px, 2.4vw, 56px);
    font-size: clamp(.9rem, .72vw, 1.08rem);
  }

  .hero-stage {
    width: min(46vw, 940px);
    max-width: none;
    height: min(46vw, 820px);
    top: clamp(55px, 5vh, 90px);
    right: max(64px, calc((100vw - 2100px) / 2 + 40px));
  }

  .hero-stage > .world-disc {
    width: min(36vw, 760px);
    height: min(36vw, 760px);
  }

  .game-station-track {
    width: min(41vw, 850px);
    top: -1.5%;
  }

  .game-station {
    width: clamp(112px, 5.4vw, 138px);
    height: clamp(66px, 3.35vw, 82px);
  }

  .feature-dock {
    width: min(calc(100% - 144px), 2100px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 620px) {
  .launch-hero {
    min-height: 520px;
  }

  .hero-edition {
    box-shadow: 5px 5px 0 #123e91;
  }

  .catalog-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }

  .catalog-filters button,
  .catalog-filters button:first-child {
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
  }

  .game-station-track {
    width: 480px;
    top: 3%;
    left: 12%;
  }

  .hero-stage {
    top: 32px;
  }

  .game-station {
    width: 94px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-station-track,
  .game-station {
    animation: none;
  }

  .game-station-track { z-index: 11; }

  .game-station-track:first-child { transform: rotateX(62deg) rotateZ(20deg); }
  .game-station-track:first-child .game-station { transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(-62deg); }
  .game-station-track:nth-child(2) { transform: rotateY(66deg) rotateZ(-140deg); }
  .game-station-track:nth-child(2) .game-station { transform: translate(-50%, -50%) rotateZ(140deg) rotateY(-66deg); }
  .game-station-track:nth-child(3) { transform: rotateZ(38deg) rotateX(72deg) rotateZ(255deg); }
  .game-station-track:nth-child(3) .game-station { transform: translate(-50%, -50%) rotateZ(-255deg) rotateX(-72deg) rotateZ(-38deg); }
}

/* Geographically accurate Natural Earth projection, with CSS land shapes as a no-JS fallback. */
.earth-map.earth-map--accurate {
  inset: 0;
  width: 100%;
  height: 100%;
  animation: none;
}

.earth-map--accurate > .land {
  display: none;
}

.earth-geo-canvas,
.brand-geo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.earth-geo-canvas {
  z-index: 2;
}

.earth-map--accurate + .earth-grid {
  display: none;
}

.brand-symbol--accurate::before,
.brand-symbol--accurate::after,
.brand-symbol--accurate > i {
  display: none;
}

.brand-geo-canvas {
  z-index: 2;
  border-radius: 50%;
}
