/* WillowinWorlds CSS: Alien Flying page (games/alien-flying.html). Loaded after upcoming-game.css.
   Signature element: a warp tunnel. Rings textured with the game's tunnel-wall texture rush toward the viewer, each with a gap;
   a small CSS-drawn craft (hull textured with the ship texture) weaves around the wall and threads one gap per loop; a shield shimmers around it.
   The scene is decoration only (aria-hidden) and an illustration, not gameplay footage.
   Why it loops without a seam: the rings follow a geometric series (each ring is 1.8 times the one inside it), so zooming the whole
   tunnel by 1.8 over one loop puts every ring exactly where the next one started. The twist (50 degrees per loop) matches the 50 degree
   step between neighbouring gaps. The centre glow hides the rings that emerge or leave at the ends.
   Units: inside .aw-scene 1em = 1% of the stage width (container query unit). Only transform and opacity are animated. */

/* ---------- Hero ---------- */
body[data-game="alien-flying"] .ug-hero {
  position: relative;
}

body[data-game="alien-flying"] .ug-hero::before {
  content: "";
  position: absolute;
  inset: -4% -6% -6% 38%;
  background: radial-gradient(ellipse at 62% 48%, color-mix(in srgb, var(--ug-fill) 17%, transparent), transparent 64%);
  pointer-events: none;
}

body[data-game="alien-flying"] .ug-hero > .container {
  position: relative;
}

.aw-figure {
  justify-self: center;
  width: min(100%, 26rem);
  margin: 0;
}

.aw-figure figcaption {
  margin-top: 14px;
  color: var(--ug-ink);
  text-shadow: 0 0 12px color-mix(in srgb, var(--ug-bg) 88%, transparent);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.4;
  text-align: center;
}

.aw-stage {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid color-mix(in srgb, var(--ug-fill) 55%, var(--ug-line));
  border-radius: 28px;
  background: #030A16;
  box-shadow:
    0 30px 70px var(--ug-shadow),
    0 0 0 8px color-mix(in srgb, var(--ug-fill) 14%, transparent),
    0 0 70px color-mix(in srgb, var(--ug-fill) 24%, transparent);
}

.aw-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 70px 8px rgba(1, 6, 14, 0.72);
  pointer-events: none;
}

.aw-scene {
  position: absolute;
  inset: 0;
  font-size: 1cqw;
}

.aw-scene > * {
  position: absolute;
}

/* ---------- Tunnel ---------- */
/* The wall behind the rings: the tunnel texture, darkened toward the vanishing point (centre at 50% 46.4%). */
.aw-wall {
  inset: 0;
  background:
    radial-gradient(circle at 50% 46.4%, #02060E 0 6em, rgba(2, 6, 14, 0.64) 30em, rgba(2, 6, 14, 0.2) 74em),
    url("../assets/upcoming/alien-flying/hero-720.webp") center / cover;
}

.aw-spokes {
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 46.4%, rgba(56, 235, 255, 0.26) 0 0.45deg, transparent 0.45deg 15deg);
  -webkit-mask-image: radial-gradient(circle at 50% 46.4%, transparent 7em, #000 46em);
  mask-image: radial-gradient(circle at 50% 46.4%, transparent 7em, #000 46em);
}

.aw-twist {
  top: 58em;
  left: 50em;
  width: 0;
  height: 0;
  animation: aw-twist 4s linear infinite;
}

.aw-tunnel {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
  animation: aw-rush 4s cubic-bezier(0.333, 0.245, 0.667, 0.559) infinite;
}

/* Eight rings, diameters 3 x 1.8^k em. Gap angle steps 50 degrees per ring; 72.5 degrees offsets the pattern so the
   gap of the ring that crosses the craft's path (ring 5, at 3 s) faces the craft at that moment. */
.aw-ring {
  --k: 0;
  --d: 3em;
  position: absolute;
  top: calc(var(--d) / -2);
  left: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  transform: rotate(calc(var(--k) * 50deg + 72.5deg));
}

.aw-ring:nth-child(2) { --k: 1; --d: 5.4em; }
.aw-ring:nth-child(3) { --k: 2; --d: 9.72em; }
.aw-ring:nth-child(4) { --k: 3; --d: 17.5em; }
.aw-ring:nth-child(5) { --k: 4; --d: 31.5em; }
.aw-ring:nth-child(6) { --k: 5; --d: 56.7em; }
.aw-ring:nth-child(7) { --k: 6; --d: 102em; }
.aw-ring:nth-child(8) { --k: 7; --d: 183.7em; }

.aw-ring::before,
.aw-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* The ring body: tunnel texture, lifted with a blue screen so the plates read, cut to a band with a gap at the bottom. */
.aw-ring::after {
  background:
    radial-gradient(farthest-side, transparent 89%, rgba(0, 8, 24, 0) 92%, rgba(0, 8, 24, 0.55) 100%),
    linear-gradient(rgba(96, 176, 255, 0.26), rgba(96, 176, 255, 0.26)),
    url("../assets/upcoming/alien-flying/hero-720.webp") 35% 40% / cover;
  background-blend-mode: normal, screen, normal;
  -webkit-mask-image:
    radial-gradient(farthest-side, transparent 89%, #000 89.4%),
    conic-gradient(#000 0 148deg, transparent 148deg 212deg, #000 212deg);
  mask-image:
    radial-gradient(farthest-side, transparent 89%, #000 89.4%),
    conic-gradient(#000 0 148deg, transparent 148deg 212deg, #000 212deg);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.aw-ring:nth-child(even)::after {
  background-position: 70% 60%;
}

/* The lit inner lip of the ring. */
.aw-ring::before {
  background: radial-gradient(farthest-side, transparent 87.4%, rgba(160, 250, 255, 0.96) 89%, rgba(56, 235, 255, 0.5) 90.8%, rgba(56, 235, 255, 0) 97%);
  -webkit-mask-image: conic-gradient(#000 0 148deg, transparent 148deg 212deg, #000 212deg);
  mask-image: conic-gradient(#000 0 148deg, transparent 148deg 212deg, #000 212deg);
}

/* A crystal floating in each gap (the Xeno crystal texture). */
.aw-crystal {
  position: absolute;
  top: 94.6%;
  left: 50%;
  width: calc(var(--d) * 0.065);
  height: calc(var(--d) * 0.065);
  margin: calc(var(--d) * -0.0325) 0 0 calc(var(--d) * -0.0325);
}

.aw-crystal::before {
  content: "";
  position: absolute;
  inset: -90%;
  background: radial-gradient(circle, rgba(148, 255, 133, 0.7) 0, rgba(148, 255, 133, 0.22) 32%, transparent 64%);
}

.aw-crystal::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 90% 34%, 100% 62%, 50% 100%, 0 62%, 10% 34%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 56%),
    linear-gradient(rgba(148, 255, 133, 0.45), rgba(148, 255, 133, 0.45)),
    url("../assets/upcoming/alien-flying/gallery-xeno-crystal.webp") center / cover;
  background-blend-mode: normal, screen, normal;
}

/* Light at the end of the tunnel; also hides the rings that emerge at the centre. */
.aw-haze {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 46.4%, #EAFEFF 0 1.6em, rgba(130, 242, 255, 0.92) 3.6em, rgba(56, 235, 255, 0.4) 8em, rgba(3, 10, 22, 0) 24em);
}

/* ---------- Craft ---------- */
.aw-orbit {
  top: 58em;
  left: 50em;
  z-index: 2;
  width: 0;
  height: 0;
  animation: aw-weave 4s ease-in-out infinite;
}

.aw-craft {
  position: absolute;
  top: 32.25em;
  left: -13em;
  width: 26em;
  height: 17.5em;
  filter: drop-shadow(0 0 0.7em rgba(56, 235, 255, 0.55));
  animation: aw-bob 5s ease-in-out infinite;
}

/* Hull and wings: a delta seen from behind, filled with the ship texture. */
.aw-craft::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 60% 34%, 100% 66%, 96% 86%, 66% 76%, 58% 100%, 42% 100%, 34% 76%, 4% 86%, 0 66%, 40% 34%);
  background:
    linear-gradient(180deg, rgba(190, 250, 255, 0.5), rgba(190, 250, 255, 0) 38%, rgba(0, 10, 40, 0.45)),
    linear-gradient(90deg, rgba(0, 10, 40, 0.35), transparent 30% 70%, rgba(0, 10, 40, 0.35)),
    linear-gradient(rgba(110, 180, 255, 0.34), rgba(110, 180, 255, 0.34)),
    url("../assets/upcoming/alien-flying/gallery-scout-hull.webp") center / cover;
  background-blend-mode: normal, normal, screen, normal;
}

/* Canopy, engine glow and wing lights. */
.aw-craft::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 5% 7% at 50% 41%, #E8FFFF 0, #7DEFFF 38%, #1B8EA8 78%, transparent 100%),
    radial-gradient(circle at 40.5% 83%, #FFFFFF 0 1.2%, #7DEFFF 2.2%, rgba(56, 235, 255, 0.55) 5.5%, transparent 11%),
    radial-gradient(circle at 59.5% 83%, #FFFFFF 0 1.2%, #7DEFFF 2.2%, rgba(56, 235, 255, 0.55) 5.5%, transparent 11%),
    radial-gradient(circle at 17.5% 72%, #C8FFD0 0 0.7%, rgba(148, 255, 133, 0.7) 1.6%, transparent 4.5%),
    radial-gradient(circle at 82.5% 72%, #C8FFD0 0 0.7%, rgba(148, 255, 133, 0.7) 1.6%, transparent 4.5%);
  animation: aw-engine 4.2s ease-in-out infinite;
}

/* Shield: a soft bubble with a rim and a highlight that sweeps across it. */
.aw-shield {
  position: absolute;
  top: -6.75em;
  left: -6em;
  z-index: 1;
  overflow: hidden;
  width: 38em;
  height: 31em;
  border: 0.18em solid rgba(150, 255, 214, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 36% 24%, rgba(190, 255, 224, 0.34), transparent 52%),
    radial-gradient(ellipse at 50% 55%, rgba(148, 255, 133, 0.05) 40%, rgba(56, 235, 255, 0.24) 100%);
  box-shadow:
    inset 0 0 1.6em rgba(120, 255, 210, 0.45),
    0 0 1.4em rgba(120, 255, 210, 0.3);
  animation: aw-shield 4.4s ease-in-out infinite;
}

.aw-shield::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 26%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(220, 255, 240, 0.5), transparent);
  transform: translateX(-120%) skewX(-16deg);
  animation: aw-sweep 6s ease-in-out infinite;
}

/* ---------- Keyframes (loop: 4 s; 3 s is the moment the craft crosses the gap) ---------- */
@keyframes aw-rush {
  from { transform: scale(1); }
  to { transform: scale(1.8); }
}

@keyframes aw-twist {
  from { transform: rotate(0deg); }
  to { transform: rotate(50deg); }
}

@keyframes aw-weave {
  0%,
  100% { transform: rotate(-32deg); }
  50% { transform: rotate(32deg); }
}

@keyframes aw-bob {
  0%,
  100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-0.9em) rotate(2deg); }
}

@keyframes aw-engine {
  0%,
  100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes aw-shield {
  0%,
  100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes aw-sweep {
  0%,
  40% { transform: translateX(-120%) skewX(-16deg); }
  80%,
  100% { transform: translateX(520%) skewX(-16deg); }
}

/* ---------- Sections ---------- */
/* Feature cards: a seam of light on the top edge (like the cyan seams on the texture) grows on hover; the card lifts. */
body[data-game="alien-flying"] .ug-features .detail-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}

body[data-game="alien-flying"] .ug-features .detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ug-fill), color-mix(in srgb, var(--ug-fill) 0%, transparent));
  transform: scaleX(0.16);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body[data-game="alien-flying"] .ug-features .detail-card:hover,
body[data-game="alien-flying"] .ug-features .detail-card:focus-within {
  border-color: var(--ug-accent);
  box-shadow: 0 16px 34px var(--ug-shadow);
  transform: translateY(-4px);
}

body[data-game="alien-flying"] .ug-features .detail-card:hover::before,
body[data-game="alien-flying"] .ug-features .detail-card:focus-within::before {
  transform: scaleX(1);
}

body[data-game="alien-flying"] .ug-features .detail-card:active {
  transform: translateY(-1px) scale(0.99);
}

body[data-game="alien-flying"] .btn:active {
  transform: translateY(1px) scale(0.98);
}

/* How it plays: a tiny pictogram per step. */
body[data-game="alien-flying"] .ug-steps li {
  position: relative;
  transition: transform 0.22s ease-out, border-color 0.22s ease-out;
}

body[data-game="alien-flying"] .ug-steps li:hover {
  border-color: var(--ug-accent);
  transform: translateY(-3px);
}

body[data-game="alien-flying"] .ug-steps li::before,
body[data-game="alien-flying"] .ug-steps li::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  pointer-events: none;
}

/* A ring (the tunnel) in every step. */
body[data-game="alien-flying"] .ug-steps li::before {
  border: 2px solid color-mix(in srgb, var(--ug-accent) 55%, transparent);
}

/* Step 1: the craft dot orbits the tunnel wall. */
body[data-game="alien-flying"] .ug-steps li:nth-child(1)::after {
  background: radial-gradient(circle at 50% 8%, var(--ug-accent) 0 3px, transparent 3.5px);
  animation: aw-step-orbit 5.6s ease-in-out infinite;
}

/* Step 2: a ring with a gap, and the dot passing through it. */
body[data-game="alien-flying"] .ug-steps li:nth-child(2)::before {
  border-color: var(--ug-accent);
  border-bottom-color: transparent;
}

body[data-game="alien-flying"] .ug-steps li:nth-child(2)::after {
  background: radial-gradient(circle at 50% 92%, var(--ug-accent-2) 0 3px, transparent 3.5px);
  animation: aw-step-pass 5.6s ease-in-out infinite;
}

/* Step 3: a crystal that glints. */
body[data-game="alien-flying"] .ug-steps li:nth-child(3)::before {
  border-color: transparent;
}

body[data-game="alien-flying"] .ug-steps li:nth-child(3)::after {
  border-radius: 0;
  background: linear-gradient(135deg, var(--ug-accent-2), var(--ug-accent));
  clip-path: polygon(50% 8%, 88% 36%, 96% 60%, 50% 94%, 4% 60%, 12% 36%);
  animation: aw-step-glint 4.8s ease-in-out infinite;
}

@keyframes aw-step-orbit {
  0%,
  100% { transform: rotate(-60deg); }
  50% { transform: rotate(60deg); }
}

@keyframes aw-step-pass {
  0%,
  100% { transform: rotate(-70deg); }
  50% { transform: rotate(70deg); }
}

@keyframes aw-step-glint {
  0%,
  100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

/* Gallery: the texture swatches lift a little. */
body[data-game="alien-flying"] .ug-shot {
  transition: transform 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}

body[data-game="alien-flying"] .ug-shot img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body[data-game="alien-flying"] .ug-shot:hover {
  border-color: var(--ug-accent);
  box-shadow: 0 16px 34px var(--ug-shadow);
  transform: translateY(-3px);
}

body[data-game="alien-flying"] .ug-shot:hover img {
  transform: scale(1.04);
}

/* Vote: a small shield ring that shimmers. */
body[data-game="alien-flying"] .ug-vote {
  position: relative;
}

body[data-game="alien-flying"] .ug-vote::before,
body[data-game="alien-flying"] .ug-vote::after {
  content: "";
  position: absolute;
  top: clamp(24px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  pointer-events: none;
}

body[data-game="alien-flying"] .ug-vote::before {
  border: 2px solid color-mix(in srgb, var(--ug-accent) 70%, transparent);
  background: radial-gradient(circle at 36% 28%, color-mix(in srgb, var(--ug-accent-2) 40%, transparent), transparent 56%);
}

body[data-game="alien-flying"] .ug-vote::after {
  border: 2px solid var(--ug-accent-2);
  opacity: 0;
  animation: aw-vote-ring 4.8s ease-out infinite;
}

@keyframes aw-vote-ring {
  0%,
  30% { opacity: 0; transform: scale(0.8); }
  40% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 560px) {
  body[data-game="alien-flying"] .ug-vote::before,
  body[data-game="alien-flying"] .ug-vote::after {
    width: 2.6rem;
    height: 2.6rem;
  }
}

/* ---------- Page-wide deep space ----------
   Fixed behind every section. Back to front: tunnel wall (the tunnel texture), nebula (drifting, veined with the crystal texture),
   two star layers that twinkle, faint spokes, slow warp rings (geometric series zooming by 2, so the loop has no seam), and a veil for text.
   Loops: nebula, two star layers, warp (calm, 5 to 40 s; transform and opacity only). */
body[data-game="alien-flying"][data-theme] {
  background: transparent;
}

body.upcoming-game-page[data-game="alien-flying"][data-theme]::before {
  display: none;
}

body[data-game="alien-flying"][data-theme="dark"] {
  --aw-bg: linear-gradient(180deg, #040C1A 0%, #07162B 46%, #0A203C 100%);
  --aw-wall: 0.5;
  --aw-wall-shade: radial-gradient(circle at 74% 42%, rgba(2, 8, 18, 0.35), rgba(2, 8, 18, 0.9) 82%);
  --aw-neb-a: rgba(56, 235, 255, 0.24);
  --aw-neb-b: rgba(148, 255, 133, 0.14);
  --aw-neb-c: rgba(80, 110, 255, 0.22);
  --aw-band: 0.55;
  --aw-crystal: 0.16;
  --aw-star: rgba(232, 245, 255, 0.85);
  --aw-star-b: rgba(120, 240, 255, 0.9);
  --aw-ring: rgba(56, 235, 255, 0.46);
  --aw-ring-glow: rgba(56, 235, 255, 0.26);
  --aw-core: rgba(200, 252, 255, 0.55);
  --aw-planet: 0.9;
  --aw-veil: linear-gradient(90deg, rgba(4, 12, 26, 0.72), rgba(4, 12, 26, 0.5) 46%, rgba(4, 12, 26, 0.2) 80%, rgba(4, 12, 26, 0.12));
  --aw-veil-m: linear-gradient(180deg, rgba(4, 12, 26, 0.62), rgba(4, 12, 26, 0.5));
}

body[data-game="alien-flying"][data-theme="light"] {
  --aw-bg: linear-gradient(180deg, #E9FDFF 0%, #D6F7F5 55%, #C6EFE7 100%);
  --aw-wall: 0.1;
  --aw-wall-shade: none;
  --aw-neb-a: rgba(56, 235, 255, 0.3);
  --aw-neb-b: rgba(148, 255, 133, 0.26);
  --aw-neb-c: rgba(120, 150, 255, 0.2);
  --aw-band: 0.2;
  --aw-crystal: 0.09;
  --aw-star: rgba(27, 115, 125, 0.5);
  --aw-star-b: rgba(27, 115, 125, 0.6);
  --aw-ring: rgba(27, 115, 125, 0.3);
  --aw-ring-glow: rgba(56, 235, 255, 0.22);
  --aw-core: rgba(255, 255, 255, 0.85);
  --aw-planet: 0.55;
  --aw-veil: linear-gradient(90deg, rgba(231, 253, 255, 0.88), rgba(231, 253, 255, 0.66) 46%, rgba(231, 253, 255, 0.22) 80%, rgba(231, 253, 255, 0.1));
  --aw-veil-m: linear-gradient(180deg, rgba(231, 253, 255, 0.66), rgba(231, 253, 255, 0.52));
}

.aw-space {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--aw-bg);
  pointer-events: none;
}

.aw-space > * {
  position: absolute;
  inset: 0;
}

/* The tunnel wall: the game's tunnel texture, shaded toward the vanishing point; the ship hull texture runs along the bottom edge. */
.aw-space-wall {
  opacity: var(--aw-wall);
  background: var(--aw-wall-shade), url("../assets/upcoming/alien-flying/hero-1280.webp") center / cover;
}

.aw-space-wall::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 26vh;
  background: url("../assets/upcoming/alien-flying/gallery-scout-hull.webp") center / 460px auto;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}

/* Nebula: soft colour clouds that drift slowly; the crystal texture veins the middle one. */
.aw-space-nebula {
  inset: -8% -6%;
  background:
    radial-gradient(ellipse 42% 34% at 18% 28%, var(--aw-neb-a), transparent 72%),
    radial-gradient(ellipse 38% 30% at 80% 64%, var(--aw-neb-b), transparent 72%),
    radial-gradient(ellipse 52% 40% at 46% 92%, var(--aw-neb-c), transparent 72%),
    radial-gradient(ellipse 30% 26% at 90% 12%, var(--aw-neb-c), transparent 72%);
  will-change: transform;
  animation: aw-space-drift 46s ease-in-out infinite alternate;
}

.aw-space-nebula::after {
  content: "";
  position: absolute;
  inset: 22% 20% 18% 30%;
  background: url("../assets/upcoming/alien-flying/gallery-xeno-crystal.webp") center / 520px auto;
  opacity: var(--aw-crystal);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent 72%);
}

.aw-space-stars--a {
  background:
    radial-gradient(circle at 99px 17px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 74px 194px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 334px 12px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 242px 41px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 271px 75px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 56px 32px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 208px 34px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 290px 64px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 315px 164px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 23px 161px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 263px 15px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 342px 355px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 388px 359px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 163px 266px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 366px 230px, var(--aw-star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 141px 32px, var(--aw-star) 0 1px, transparent 1.7px);
  background-size: 420px 420px;
  animation: aw-space-twinkle 6s ease-in-out infinite alternate;
}

.aw-space-stars--b {
  background:
    radial-gradient(circle at 507px 411px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 348px 297px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 145px 177px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 81px 373px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 501px 411px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 284px 412px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 329px 545px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 59px 538px, var(--aw-star-b) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 458px 435px, var(--aw-star-b) 0 1.6px, transparent 2.3px);
  background-size: 560px 560px;
  animation: aw-space-twinkle 8.5s ease-in-out -3.5s infinite alternate;
}

.aw-space-spokes {
  background: repeating-conic-gradient(from 0deg at 74% 42%, var(--aw-ring) 0 0.25deg, transparent 0.25deg 12deg);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 74% 42%, transparent 6vmax, #000 40vmax, transparent 120vmax);
  mask-image: radial-gradient(circle at 74% 42%, transparent 6vmax, #000 40vmax, transparent 120vmax);
}

/* Warp: four rings, diameters 7 x 2^k vmax, lit one after another from the inside out, so the pulse travels toward you
   (opacity only: no ring is scaled or redrawn, and none is bigger than the screen). */
.aw-space-warp {
  inset: auto;
  top: 42%;
  left: 74%;
  width: 0;
  height: 0;
}

.aw-space-warp i {
  --d: 7vmax;
  position: absolute;
  top: calc(var(--d) / -2);
  left: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  border: 1.5px solid var(--aw-ring);
  border-radius: 50%;
  box-shadow:
    0 0 26px var(--aw-ring-glow),
    inset 0 0 26px var(--aw-ring-glow);
  opacity: 0.35;
}

/* The ring band: the tunnel texture, lifted with a blue screen, cut to a thin annulus. */
.aw-space-warp i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: var(--aw-band);
  background:
    linear-gradient(rgba(96, 176, 255, 0.3), rgba(96, 176, 255, 0.3)),
    url("../assets/upcoming/alien-flying/hero-720.webp") 40% 50% / cover;
  background-blend-mode: screen, normal;
  -webkit-mask-image: radial-gradient(farthest-side, transparent 90%, #000 90.5%);
  mask-image: radial-gradient(farthest-side, transparent 90%, #000 90.5%);
}

.aw-space-warp i:nth-child(2) { --d: 14vmax; }
.aw-space-warp i:nth-child(3) { --d: 28vmax; }
.aw-space-warp i:nth-child(4) { --d: 56vmax; }

/* Alien worlds: a crystal planet (the game's crystal texture, shaded to a sphere) and a hull-plated moon with a ring; they hang in the dark and drift. */
.aw-space-planet {
  inset: auto;
  border-radius: 50%;
  will-change: transform;
}

.aw-space-planet--crystal {
  top: 9vh;
  right: 6vw;
  width: min(15vmax, 190px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 32% 28%, rgba(210, 255, 240, 0.5), transparent 34%),
    radial-gradient(circle at 70% 74%, rgba(2, 6, 14, 0.88), transparent 66%),
    url("../assets/upcoming/alien-flying/gallery-xeno-crystal.webp") 30% 40% / 260% auto;
  box-shadow: 0 0 40px rgba(60, 255, 190, 0.28);
  opacity: var(--aw-planet);
}

.aw-space-planet--hull {
  bottom: 9vh;
  left: 53vw;
  width: min(9vmax, 120px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 34% 30%, rgba(190, 230, 255, 0.45), transparent 36%),
    radial-gradient(circle at 72% 76%, rgba(2, 6, 14, 0.88), transparent 68%),
    url("../assets/upcoming/alien-flying/gallery-scout-hull.webp") 40% 30% / 280% auto;
  box-shadow: 0 0 30px rgba(56, 235, 255, 0.24);
  opacity: var(--aw-planet);
}

.aw-space-planet--hull::after {
  content: "";
  position: absolute;
  inset: 40% -45% 40% -45%;
  border: 2px solid rgba(150, 220, 255, 0.45);
  border-radius: 50%;
  transform: rotate(-18deg);
}

/* Ships: small scout craft crossing the dark at different depths (a hull-textured arrowhead with an engine glow). */
.aw-space-ship {
  inset: auto;
  left: 0;
  width: 84px;
  height: 30px;
  will-change: transform;
}

.aw-space-ship i {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 50%, 24% 10%, 80% 26%, 100% 50%, 80% 74%, 24% 90%);
  background:
    linear-gradient(90deg, rgba(2, 6, 14, 0.5), transparent 60%),
    url("../assets/upcoming/alien-flying/gallery-scout-hull.webp") 50% 50% / 220px auto;
  transform: rotate(var(--tilt, 0deg));
}

.aw-space-ship::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 44px;
  height: 14px;
  margin-top: -7px;
  background: radial-gradient(ellipse closest-side, rgba(120, 245, 255, 0.95), rgba(56, 235, 255, 0.3) 55%, transparent);
  transform: rotate(var(--tilt, 0deg));
}

.aw-space-warp i {
  animation: aw-space-ring 6s linear infinite;
}

.aw-space-warp i:nth-child(2) { animation-delay: 1.1s; }
.aw-space-warp i:nth-child(3) { animation-delay: 2.2s; }
.aw-space-warp i:nth-child(4) { animation-delay: 3.3s; }

.aw-space-planet--crystal { animation: aw-space-float 70s ease-in-out infinite alternate; }
.aw-space-planet--hull { animation: aw-space-float 90s ease-in-out -30s infinite alternate; }

.aw-space-ship--a { animation: aw-space-fly 46s linear -12s infinite; }
.aw-space-ship--b { animation: aw-space-fly 74s linear -40s infinite; }
.aw-space-ship--c { animation: aw-space-fly 110s linear -75s infinite; }

.aw-space-ship--a { top: 12vh; --tilt: 6deg; opacity: 0.8; }
.aw-space-ship--b { top: 58vh; width: 58px; height: 21px; --tilt: -4deg; opacity: 0.55; }
.aw-space-ship--c { top: 78vh; width: 46px; height: 17px; --tilt: 3deg; opacity: 0.4; }

/* The light at the end of the tunnel (static; it also hides the rings that emerge at the centre). */
.aw-space-veil {
  background:
    radial-gradient(circle at 74% 42%, var(--aw-core) 0 0.5vmax, rgba(56, 235, 255, 0.22) 3.5vmax, transparent 14vmax),
    var(--aw-veil);
}

@keyframes aw-space-drift {
  from { transform: translate3d(-1.5vw, -1vh, 0); }
  to { transform: translate3d(1.5vw, 1.2vh, 0); }
}

@keyframes aw-space-twinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* A ring lights up and fades; the next one, a little farther out, follows. */
@keyframes aw-space-ring {
  0%   { opacity: 0.2; }
  10%  { opacity: 1; }
  45%  { opacity: 0.2; }
  100% { opacity: 0.2; }
}

@keyframes aw-space-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.8vw, 2.4vh, 0); }
}

@keyframes aw-space-fly {
  from { transform: translate3d(-14vw, 0, 0); }
  to { transform: translate3d(114vw, -7vh, 0); }
}

/* ---------- Sections in space ----------
   Section wrappers draw no box (a scan rail with tick marks and a lit node, and a row of slanted bars under the heading), so headings sit directly on the
   space backdrop (halo for contrast). The cards are hull panels: chamfered corners, scanlines, corner brackets and a status light, with the same
   cyan seams as the game's tunnel texture. Hover lights the seam and the border; nothing outside the panel changes, because the chamfer clips it. */
body[data-game="alien-flying"][data-theme="dark"] {
  --aw-line: #46627d;
  --aw-edge: #38ebff;
  --aw-scan: rgba(56, 235, 255, 0.045);
  --aw-panel-a: rgba(36, 60, 88, 0.9);
  --aw-panel-b: rgba(22, 40, 66, 0.9);
  --aw-bracket: rgba(56, 235, 255, 0.85);
  --aw-led: #94ff85;
}

body[data-game="alien-flying"][data-theme="light"] {
  --aw-line: #9fc2c6;
  --aw-edge: #1b737d;
  --aw-scan: rgba(27, 115, 125, 0.05);
  --aw-panel-a: rgba(252, 255, 255, 0.93);
  --aw-panel-b: rgba(238, 252, 252, 0.93);
  --aw-bracket: rgba(27, 115, 125, 0.85);
  --aw-led: #2f8f3c;
}

body[data-game="alien-flying"] {
  --aw-cut: 16px;
  --aw-cut-s: 9px;
  --aw-seam: repeating-linear-gradient(90deg, var(--aw-bracket) 0 1px, transparent 1px 6px);
}

body[data-game="alien-flying"] .game-page-section.soft-card {
  position: relative;
  padding-inline: 0;
  padding-top: clamp(32px, 4vw, 46px);
  border-color: transparent;
  background: none;
  box-shadow: none;
}

/* A scan rail: a baseline with tick marks, and a short lit segment at the start */
body[data-game="alien-flying"] .game-page-section.soft-card:not(.ug-vote)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--aw-edge), color-mix(in srgb, var(--aw-edge) 0%, transparent)) 0 0 / 132px 3px no-repeat,
    repeating-linear-gradient(90deg, var(--aw-bracket) 0 1px, transparent 1px 8px) 0 4px / 100% 6px no-repeat,
    linear-gradient(var(--aw-line), var(--aw-line)) 0 1px / 100% 1px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, #000 40%, transparent);
}

body[data-game="alien-flying"] .game-page-section h2,
body[data-game="alien-flying"] .lab-related-title,
body[data-game="alien-flying"] .ug-hero-copy h1 {
  text-shadow:
    0 0 22px color-mix(in srgb, var(--ug-bg) 88%, transparent),
    0 0 6px color-mix(in srgb, var(--ug-bg) 72%, transparent);
}

/* Slanted bars under every heading, like a signal indicator */
body[data-game="alien-flying"] .game-page-section h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 7px;
  margin-top: 12px;
  background: repeating-linear-gradient(115deg, var(--aw-edge) 0 8px, transparent 8px 13px);
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25));
}

body[data-game="alien-flying"] :is(.ug-lede, .ug-hero-copy .hero-copy, .ug-genre, .ug-vote .ug-lede) {
  color: color-mix(in srgb, var(--ug-ink) 90%, var(--ug-muted));
  text-shadow: 0 0 12px color-mix(in srgb, var(--ug-bg) 85%, transparent);
}

/* On the light sky the tagline sits directly on the backdrop, so the accent is deepened a little to keep a comfortable contrast margin. */
body[data-game="alien-flying"][data-theme="light"] .ug-tagline {
  color: color-mix(in srgb, var(--ug-accent) 78%, var(--ug-ink));
}

/* Eyebrow: a data tag with a status light */
body[data-game="alien-flying"] .eyebrow {
  border-radius: 2px 12px 2px 12px;
  border-color: color-mix(in srgb, var(--aw-edge) 50%, var(--aw-line));
  background: color-mix(in srgb, var(--ug-card) 70%, transparent);
}

body[data-game="alien-flying"] .eyebrow::before {
  width: 7px;
  height: 7px;
  background: var(--aw-led);
  box-shadow: 0 0 8px var(--aw-led);
}

/* The hull panel. The border is an inset line plus diagonal lines drawn in the two chamfered corners; corner brackets sit in the other two. */
body[data-game="alien-flying"] :is(.detail-card, .update-list li, .ug-next li, .lab-related-link) {
  border: 0;
  border-radius: 0 4px 0 4px;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 0 0 / var(--aw-cut) var(--aw-cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 100% 100% / var(--aw-cut) var(--aw-cut) no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 14px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 0 100% / 14px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 0 100% / 2px 14px no-repeat,
    repeating-linear-gradient(180deg, var(--aw-scan) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, var(--aw-panel-a), var(--aw-panel-b));
  box-shadow: inset 0 0 0 1px var(--aw-line);
  clip-path: polygon(var(--aw-cut) 0, 100% 0, 100% calc(100% - var(--aw-cut)), calc(100% - var(--aw-cut)) 100%, 0 100%, 0 var(--aw-cut));
}

body[data-game="alien-flying"] :is(.ug-features .detail-card, .ug-faq .detail-card, .update-list li):hover,
body[data-game="alien-flying"] :is(.ug-features .detail-card, .update-list li):focus-within {
  box-shadow: inset 0 0 0 1px var(--aw-edge), inset 0 0 26px color-mix(in srgb, var(--aw-edge) 16%, transparent);
}

body[data-game="alien-flying"] .ug-facts .game-page-facts > div {
  position: relative;
  padding-top: 18px;
  border: 0;
  border-radius: 0 3px 0 3px;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 0 0 / var(--aw-cut-s) var(--aw-cut-s) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 100% 100% / var(--aw-cut-s) var(--aw-cut-s) no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 10px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 2px 10px no-repeat,
    repeating-linear-gradient(180deg, var(--aw-scan) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, var(--aw-panel-a), var(--aw-panel-b));
  box-shadow: inset 0 0 0 1px var(--aw-line);
  clip-path: polygon(var(--aw-cut-s) 0, 100% 0, 100% calc(100% - var(--aw-cut-s)), calc(100% - var(--aw-cut-s)) 100%, 0 100%, 0 var(--aw-cut-s));
}

/* A readout tick strip at the top of each fact, a status light on each feature title */
body[data-game="alien-flying"] .ug-facts .game-page-facts > div::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  width: 38px;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--aw-bracket) 0 1px, transparent 1px 5px);
}

body[data-game="alien-flying"] .ug-features .detail-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body[data-game="alien-flying"] .ug-features .detail-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aw-led);
  box-shadow: 0 0 9px var(--aw-led), 0 0 0 3px color-mix(in srgb, var(--aw-led) 22%, transparent);
}

/* The seam of light on the card top sits inside the chamfer */
body[data-game="alien-flying"] .ug-features .detail-card::before {
  left: var(--aw-cut);
  width: calc(100% - var(--aw-cut));
}

/* FAQ: a readout column of ticks along the right edge of the panel */
body[data-game="alien-flying"] .ug-faq .detail-card {
  position: relative;
}

body[data-game="alien-flying"] .ug-faq .detail-card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 10px;
  width: 6px;
  height: 52px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--aw-bracket) 0 1px, transparent 1px 6px);
  opacity: 0.7;
}

/* Next: each goal has a small hexagon node */
body[data-game="alien-flying"] .ug-next li::before {
  width: 13px;
  height: 14px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--aw-edge), var(--ug-accent-2));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transform: none;
}

body[data-game="alien-flying"] .ug-status-note {
  border: 0;
  border-radius: 0 4px 0 4px;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 0 0 / var(--aw-cut-s) var(--aw-cut-s) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-line) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 100% 100% / var(--aw-cut-s) var(--aw-cut-s) no-repeat,
    linear-gradient(var(--aw-edge), var(--aw-edge)) 0 var(--aw-cut-s) / 3px calc(100% - 2 * var(--aw-cut-s)) no-repeat,
    repeating-linear-gradient(180deg, var(--aw-scan) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, var(--aw-panel-a), var(--aw-panel-b));
  box-shadow: inset 0 0 0 1px var(--aw-line);
  clip-path: polygon(var(--aw-cut-s) 0, 100% 0, 100% calc(100% - var(--aw-cut-s)), calc(100% - var(--aw-cut-s)) 100%, 0 100%, 0 var(--aw-cut-s));
}

/* Gallery: texture samples in a hull frame. Chamfers, corner brackets and a thin line sit over the picture; the caption is a readout bar. */
body[data-game="alien-flying"] .ug-shot {
  position: relative;
  border: 0;
  border-radius: 0 4px 0 4px;
  background: linear-gradient(160deg, var(--aw-panel-a), var(--aw-panel-b));
  clip-path: polygon(var(--aw-cut) 0, 100% 0, 100% calc(100% - var(--aw-cut)), calc(100% - var(--aw-cut)) 100%, 0 100%, 0 var(--aw-cut));
}

body[data-game="alien-flying"] .ug-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 0 0 / var(--aw-cut) var(--aw-cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 100% 100% / var(--aw-cut) var(--aw-cut) no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 16px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 2px 16px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 0 100% / 16px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 0 100% / 2px 16px no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aw-edge) 55%, transparent);
}

body[data-game="alien-flying"] .ug-shot figcaption {
  position: relative;
  padding-left: 66px;
}

body[data-game="alien-flying"] .ug-shot figcaption::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 38px;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--aw-bracket) 0 1px, transparent 1px 5px);
}

body[data-game="alien-flying"] .ug-shot:hover::before {
  box-shadow: inset 0 0 0 1px var(--aw-edge), inset 0 0 28px color-mix(in srgb, var(--aw-edge) 22%, transparent);
}

/* Vote: a hangar-bay panel, armor-plate edge along the top (the hazard texture), chamfers, brackets */
body[data-game="alien-flying"] .game-page-section.ug-vote {
  padding: clamp(40px, 5vw, 54px) clamp(24px, 4vw, 40px) clamp(30px, 4vw, 40px);
  border: 0;
  border-radius: 0 6px 0 6px;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 0 0 / 28px 28px no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--aw-edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) 100% 100% / 28px 28px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 22px 2px no-repeat,
    linear-gradient(var(--aw-bracket), var(--aw-bracket)) 100% 0 / 2px 22px no-repeat,
    url("../assets/upcoming/alien-flying/gallery-hazard-armor.webp") 0 0 / 220px auto repeat-x,
    radial-gradient(ellipse 60% 120% at 14% 0%, color-mix(in srgb, var(--ug-fill) 18%, transparent), transparent 70%),
    repeating-linear-gradient(180deg, var(--aw-scan) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, var(--aw-panel-a), var(--aw-panel-b));
  background-size: 28px 28px, 28px 28px, 22px 2px, 2px 22px, 220px 7px, auto, auto, auto;
  background-position: 0 0, 100% 100%, 100% 0, 100% 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-x, no-repeat, repeat, repeat;
  box-shadow: inset 0 0 0 1px var(--aw-line);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

/* Buttons: angular, with an inner glow */
body[data-game="alien-flying"] .btn,
body[data-game="alien-flying"].game-detail-page .btn:focus-visible {
  border-radius: 4px 16px 4px 16px;
}

body[data-game="alien-flying"] .btn-primary {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 24px color-mix(in srgb, var(--ug-fill) 38%, transparent);
}

body[data-game="alien-flying"] .btn-ghost {
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--aw-edge) 14%, transparent);
}

body[data-game="alien-flying"] .social-link,
body[data-game="alien-flying"] .lab-related-all {
  background: color-mix(in srgb, var(--ug-card-2) 78%, transparent);
}

body[data-game="alien-flying"] .game-footer {
  background: color-mix(in srgb, var(--ug-card) 84%, transparent);
}

/* ---------- Narrow screens ---------- */
@media (max-width: 920px) {
  .aw-figure {
    width: min(100%, 22rem);
    margin-top: 6px;
  }
}

@media (max-width: 1100px) {
  .aw-space-planet--hull {
    display: none;
  }
}

/* Small screens: no warp rings, one star layer, no hull strip, one planet and one ship. */
@media (max-width: 760px) {
  .aw-space-warp,
  .aw-space-stars--b,
  .aw-space-wall::after,
  .aw-space-planet--hull,
  .aw-space-ship--b,
  .aw-space-ship--c {
    display: none;
  }

  .aw-space-planet--crystal {
    top: 7vh;
    width: 22vw;
  }

  .aw-space-spokes {
    opacity: 0.3;
  }

  .aw-space-veil {
    background: var(--aw-veil-m);
  }
}

/* ---------- Reduced motion: a still, finished frame (tunnel at rest, craft centred at the bottom with its shield up). ---------- */
@media (prefers-reduced-motion: reduce) {
  .aw-space-nebula,
  .aw-space-stars,
  .aw-space-warp i,
  .aw-space-planet,
  .aw-space-ship,
  .aw-twist,
  .aw-tunnel,
  .aw-orbit,
  .aw-craft,
  .aw-craft::after,
  .aw-shield,
  .aw-shield::after,
  body[data-game="alien-flying"] .ug-steps li::after,
  body[data-game="alien-flying"] .ug-vote::after {
    animation: none;
  }

  .aw-shield::after {
    transform: translateX(120%) skewX(-16deg);
  }

  body[data-game="alien-flying"] .ug-features .detail-card,
  body[data-game="alien-flying"] .ug-features .detail-card::before,
  body[data-game="alien-flying"] .ug-steps li,
  body[data-game="alien-flying"] .ug-shot,
  body[data-game="alien-flying"] .ug-shot img {
    transition: none;
  }
}
