/* Playable NEO originals */
.games-showcase {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 8% 42%, rgba(79, 205, 227, 0.08), transparent 34%),
    radial-gradient(ellipse at 93% 58%, rgba(125, 77, 203, 0.09), transparent 34%);
}

.games-showcase > .container {
  position: relative;
  z-index: 1;
}

.games-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 247, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 247, 232, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.games-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--color-tiffany);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, gap 180ms ease;
}

.games-jump-link > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--color-tiffany);
  box-shadow: 0 0 14px rgba(120, 247, 232, 0.85);
}

.games-jump-link > b {
  font-size: 1rem;
}

.games-jump-link:hover,
.games-jump-link:focus-visible {
  color: #fff;
  gap: 14px;
}

.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(34px, 5vw, 54px);
}

.game-portal {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(199, 234, 239, 0.15);
  background: linear-gradient(155deg, rgba(19, 25, 34, 0.98), rgba(7, 9, 14, 0.99));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.game-portal:hover,
.game-portal:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(120, 247, 232, 0.62);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), 0 0 36px rgba(120, 247, 232, 0.09);
}

.game-portal:focus-visible,
.games-jump-link:focus-visible,
.games-showcase-note a:focus-visible {
  outline: 3px solid var(--color-tiffany);
  outline-offset: 4px;
}

.game-portal-art {
  position: relative;
  aspect-ratio: 1.78;
  overflow: hidden;
  isolation: isolate;
  background: #0c1421;
  border-bottom: 1px solid rgba(199, 234, 239, 0.13);
}

.game-portal-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.18), transparent 36%, rgba(5, 7, 12, 0.62)),
    linear-gradient(rgba(210, 255, 252, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 255, 252, 0.025) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.game-portal-svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.game-portal:hover .game-portal-svg,
.game-portal:focus-visible .game-portal-svg {
  transform: scale(1.045);
}

.game-art-label,
.game-art-live {
  position: absolute;
  z-index: 2;
  color: rgba(238, 253, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-art-label--top {
  top: 20px;
  left: 22px;
}

.game-art-label--bottom {
  right: 22px;
  bottom: 19px;
  color: rgba(238, 253, 255, 0.65);
}

.game-art-live {
  top: 17px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(176, 255, 246, 0.25);
  background: rgba(7, 15, 22, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.game-art-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ef9d8;
  box-shadow: 0 0 10px rgba(126, 249, 216, 0.9);
}

.game-portal-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 3vw, 32px);
}

.game-portal-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.game-portal-kicker {
  color: var(--color-tiffany);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.game-portal-kicker > span:last-child {
  color: rgba(219, 242, 246, 0.38);
}

.game-portal--orbital .game-portal-kicker {
  color: #d1a0ff;
}

.game-portal-info h3 {
  margin: 11px 0 10px;
  color: #f7fbff;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.game-portal-info p {
  max-width: 48ch;
  margin: 0;
  color: var(--color-text-dim);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* What the player needs to know before pressing play: device, controls, and what they get. */
.game-portal-specs {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.game-portal-specs li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  color: #eefcff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-portal-specs span {
  color: var(--color-tiffany);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.game-portal--orbital .game-portal-specs span {
  color: #d1a0ff;
}

/* The play button: the one strong action on each card. */
.game-portal-play {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin-top: auto;
  padding: 10px 18px 10px 10px;
  color: #03211e;
  background: var(--color-tiffany);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.game-portal-specs + .game-portal-play {
  margin-top: 24px;
}

.game-portal-info > p + .game-portal-play {
  margin-top: 24px;
}

.game-portal-play-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: #03211e;
  color: var(--color-tiffany);
  font-size: 0.9rem;
}

.game-portal-play-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.game-portal-play-text small {
  color: rgba(3, 33, 30, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.game-portal-play > b {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.game-portal--orbital .game-portal-play {
  color: #1c0a2e;
  background: #d1a0ff;
}

.game-portal--orbital .game-portal-play-icon {
  background: #1c0a2e;
  color: #d1a0ff;
}

.game-portal--orbital .game-portal-play-text small {
  color: rgba(28, 10, 46, 0.72);
}

.game-portal:hover .game-portal-play,
.game-portal:focus-visible .game-portal-play {
  background: #a6fff4;
  box-shadow: 0 0 28px rgba(120, 247, 232, 0.35);
}

.game-portal--orbital:hover .game-portal-play,
.game-portal--orbital:focus-visible .game-portal-play {
  background: #e3c6ff;
  box-shadow: 0 0 28px rgba(209, 160, 255, 0.35);
}

.game-portal:hover .game-portal-play > b,
.game-portal:focus-visible .game-portal-play > b {
  transform: translate(3px, -3px);
}

.game-portal:active .game-portal-play {
  transform: scale(0.985);
}

/* PRESS START on the art, like a title screen waiting for the player. */
.game-art-start {
  position: absolute;
  left: 22px;
  bottom: 17px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(120, 247, 232, 0.8);
}

.game-art-start b {
  color: var(--color-tiffany);
  font-size: 0.7rem;
}

.game-portal--orbital .game-art-start b {
  color: #d1a0ff;
}

/* A phone in the art showing real screens of the game; it rises out of the bottom edge of the card. */
.game-phone {
  position: absolute;
  top: 24%;
  right: 9%;
  z-index: 2;
  height: 108%;
  aspect-ratio: 9 / 17.6;
  padding: 5px;
  border-radius: 24px;
  background: linear-gradient(160deg, #26303c, #07090d 55%);
  box-shadow:
    0 0 0 1px rgba(120, 247, 232, 0.45),
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(120, 247, 232, 0.16);
  transform: rotate(6deg);
  transform-origin: 50% 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 420ms ease;
}

.game-portal--orbital .game-phone {
  box-shadow:
    0 0 0 1px rgba(209, 160, 255, 0.5),
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(209, 160, 255, 0.18);
}

.game-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 26%;
  height: 6px;
  border-radius: 6px;
  background: #05070a;
  transform: translateX(-50%);
}

.game-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 19px;
  background: #05080c;
}

.game-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 600ms ease;
}

.game-phone-screen img.is-on {
  opacity: 1;
}

.game-portal:hover .game-phone,
.game-portal:focus-visible .game-phone {
  transform: rotate(2deg) translateY(-10px);
}

/* The art behind the phone steps back, and its corner label gives way to the phone. */
.game-portal-art .game-art-label--bottom {
  display: none;
}

.game-phone-tag {
  position: absolute;
  left: 22px;
  bottom: 46px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(238, 253, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.game-phone-tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--color-tiffany);
}

.game-portal--orbital .game-phone-tag::before {
  background: #d1a0ff;
}

/* The art comes alive only while the card is on screen and motion is on. */
.game-portal-svg .gp-pulse {
  stroke-dasharray: 70 930;
  stroke-dashoffset: 1000;
  opacity: 0;
}

.game-portal-svg .gp-ship,
.game-portal-svg .gp-glow,
.game-portal-svg .gp-windows,
.game-portal-svg .gp-stars,
.game-portal-svg .gp-pulse {
  animation-play-state: paused;
}

html[data-motion="on"] .game-portal-svg .gp-pulse {
  opacity: 0.9;
  animation: gp-run 3.2s linear infinite;
}

html[data-motion="on"] .game-portal-svg .gp-pulse--orbit {
  stroke-dasharray: 110 890;
  opacity: 0.7;
  animation-duration: 6s;
}

html[data-motion="on"] .game-portal-svg .gp-ship {
  animation: gp-float 3.6s ease-in-out infinite;
}

html[data-motion="on"] .game-portal-svg .gp-glow {
  animation: gp-breathe 4.8s ease-in-out infinite;
}

html[data-motion="on"] .game-portal-svg .gp-windows {
  animation: gp-flicker 2.6s steps(1, end) infinite;
}

html[data-motion="on"] .game-portal-svg .gp-stars {
  animation: gp-twinkle 3s ease-in-out infinite;
}

html[data-motion="on"] .game-art-start {
  animation: gp-blink 1.6s steps(1, end) infinite paused;
}

.game-portal.is-live .game-portal-svg .gp-ship,
.game-portal.is-live .game-portal-svg .gp-glow,
.game-portal.is-live .game-portal-svg .gp-windows,
.game-portal.is-live .game-portal-svg .gp-stars,
.game-portal.is-live .game-portal-svg .gp-pulse,
.game-portal.is-live .game-art-start {
  animation-play-state: running;
}

/* On hover the light runs faster, as if the game were about to start. */
.game-portal.is-live:hover .game-portal-svg .gp-pulse {
  animation-duration: 1.4s;
}

@keyframes gp-run {
  to { stroke-dashoffset: 0; }
}

@keyframes gp-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -14px); }
}

@keyframes gp-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gp-flicker {
  0%, 100% { opacity: 0.36; }
  30% { opacity: 0.6; }
  55% { opacity: 0.28; }
  80% { opacity: 0.5; }
}

@keyframes gp-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes gp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.games-showcase-note {
  margin: 34px 0 0;
  color: var(--color-text-dim);
  font-size: 0.84rem;
  text-align: center;
}

.games-showcase-note a {
  margin-left: 5px;
  color: var(--color-tiffany);
  font-weight: 700;
  text-decoration: none;
}

.games-showcase-note a:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .games-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 680px;
    margin-inline: auto;
  }

  .game-portal-art {
    aspect-ratio: 1.7;
  }
}

@media (max-width: 420px) {
  .game-portal-art {
    aspect-ratio: 1.6;
  }

  .game-portal-info p {
    font-size: 1rem;
  }

  .game-art-start {
    left: 15px;
    bottom: 13px;
    font-size: 0.62rem;
  }

  .game-phone-tag {
    left: 15px;
    bottom: 38px;
    font-size: 0.66rem;
  }

  .game-phone {
    right: 7%;
    padding: 4px;
    border-radius: 20px;
  }

  .game-phone-screen {
    border-radius: 16px;
  }

  .game-portal-play-text small {
    font-size: 0.7rem;
  }

  .game-art-label--top {
    top: 15px;
    left: 15px;
    font-size: 0.55rem;
  }

  .game-art-label--bottom {
    right: 15px;
    bottom: 14px;
    font-size: 0.5rem;
  }

  .game-art-live {
    top: 12px;
    right: 11px;
    padding: 6px 7px;
    font-size: 0.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-portal-svg .gp-ship,
  .game-portal-svg .gp-glow,
  .game-portal-svg .gp-windows,
  .game-portal-svg .gp-stars,
  .game-portal-svg .gp-pulse,
  .game-art-start {
    animation: none !important;
  }

  .game-phone,
  .game-phone-screen img {
    transition: none;
  }

  .game-portal,
  .game-portal-svg,
  .game-portal-play,
  .games-jump-link {
    transition: none;
  }

  .game-portal:hover,
  .game-portal:focus-visible,
  .game-portal:hover .game-portal-svg,
  .game-portal:focus-visible .game-portal-svg {
    transform: none;
  }
}

/* AURORA CIRCUIT (2026-11-15): the first of the three, shown across the whole row with its real gameplay. */
.game-portal-shot,
.game-portal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.game-portal-video {
  opacity: 0;
  transition: opacity 500ms ease, transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.game-portal-video.is-playing {
  opacity: 1;
}

.game-portal:hover .game-portal-shot,
.game-portal:hover .game-portal-video,
.game-portal:focus-visible .game-portal-shot,
.game-portal:focus-visible .game-portal-video {
  transform: scale(1.03);
}

/* AURORA's colour is the site's gold, beside SKYLINE's tiffany and ORBITAL's violet. */
.game-portal--aurora .game-portal-kicker,
.game-portal--aurora .game-portal-specs span,
.game-portal--aurora .game-art-start b {
  color: #ffd36a;
}

.game-portal--aurora .game-portal-play {
  color: #2a1c00;
  background: #ffd36a;
}

.game-portal--aurora .game-portal-play-icon {
  background: #2a1c00;
  color: #ffd36a;
}

.game-portal--aurora .game-portal-play-text small {
  color: rgba(42, 28, 0, 0.72);
}

.game-portal--aurora:hover .game-portal-play,
.game-portal--aurora:focus-visible .game-portal-play {
  background: #ffe39a;
  box-shadow: 0 0 28px rgba(255, 211, 106, 0.35);
}

.game-portal--aurora .game-phone-tag::before {
  background: #ffd36a;
}

@media (min-width: 761px) {
  .game-portal--aurora {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .game-portal--aurora .game-portal-art {
    flex: 1.7 1 0;
    min-width: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(199, 234, 239, 0.13);
  }

  .game-portal--aurora .game-portal-info {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-portal-shot,
  .game-portal-video {
    transition: none;
  }
}

/* Real footage is busy at its edges (the game's own HUD), so the labels get a deeper shade behind them. */
.game-portal-art--aurora::after {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.72), rgba(5, 7, 12, 0.08) 26%, transparent 52%, rgba(5, 7, 12, 0.8)),
    linear-gradient(90deg, rgba(5, 7, 12, 0.35), transparent 40%);
  background-size: auto;
}
