/* GOOSE vs CHOPPER — mode launcher.
   Styled to match the Classic 2D game's Flash-era design system:
   its sky, its panel chrome, its glossy pill buttons and its heavy
   stroked Arial Black lettering. */

:root {
  --sky-top: #5da9e0;
  --sky-mid: #9fd0ef;
  --sky-low: #ffe9c4;
  --pond-top: #7fc4de;
  --pond-deep: #3a7da0;
  --panel-top: #3b4a63;
  --panel-bottom: #222c3e;
  --panel-ink: #0e131c;
  --gold: #ffd24a;
  --gold-ink: #3a2a00;
  --heli-blue: #9fd0ef;
  --heli-ink: #16304a;
  --goose-btn-top: #ffb52e;
  --goose-btn-bottom: #f07e12;
  --goose-btn-ink: #5a3000;
  --heli-btn-top: #5ab2e8;
  --heli-btn-bottom: #2a72b8;
  --heli-btn-ink: #143a5e;
  --body-font: Verdana, Geneva, sans-serif;
  --display-font: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  color: #fff;
  background: var(--sky-top);
  overflow-x: hidden;
}

/* ---------- painted sky, exactly like the 2D stage ---------- */

.stage-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-low) 88%
  );
}

.stage-sun {
  position: absolute;
  top: 6%;
  right: 12%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fffbe8;
  box-shadow:
    0 0 34px 18px rgba(255, 238, 170, 0.85),
    0 0 120px 70px rgba(255, 238, 170, 0.45);
}

.stage-cloud {
  position: absolute;
  width: 150px;
  height: 52px;
  background:
    radial-gradient(circle at 22% 68%, #fff 26px, transparent 27px),
    radial-gradient(circle at 46% 40%, #fff 33px, transparent 34px),
    radial-gradient(circle at 72% 64%, #fff 27px, transparent 28px),
    radial-gradient(circle at 50% 78%, #fff 30px, transparent 31px);
  filter: drop-shadow(0 4px 3px rgba(60, 110, 150, 0.18));
  animation: cloud-drift linear infinite;
}

/* Cloud lanes deliberately avoid the title and tagline bands. */
.stage-cloud--one { top: 2.5%; animation-duration: 74s; }
.stage-cloud--two { top: 7%; transform: scale(0.72); opacity: 0.7; animation-duration: 96s; animation-delay: -30s; }
.stage-cloud--three { top: 1%; transform: scale(1.2); opacity: 0.85; animation-duration: 120s; animation-delay: -68s; }
.stage-cloud--four { top: 42%; transform: scale(0.5); opacity: 0.4; animation-duration: 88s; animation-delay: -52s; }

@keyframes cloud-drift {
  from { left: 110%; }
  to { left: -20%; }
}

.stage-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
  display: block;
}

.stage-pond {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11%;
  background: linear-gradient(to bottom, var(--pond-top), var(--pond-deep));
  overflow: hidden;
}

.pond-shimmer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, 0.35) 40% 46%, transparent 46% 100%),
    linear-gradient(90deg, transparent 0 64%, rgba(255, 255, 255, 0.28) 64% 71%, transparent 71% 100%),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 18% 23%, transparent 23% 100%);
  background-size: 340px 3px, 460px 3px, 280px 3px;
  background-position: 0 22%, 0 52%, 0 78%;
  background-repeat: repeat-x;
  animation: shimmer-slide 9s linear infinite;
}

@keyframes shimmer-slide {
  from { background-position: 0 22%, 0 52%, 0 78%; }
  to { background-position: 340px 22%, -460px 52%, 280px 78%; }
}

/* ---------- layout ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  background: var(--panel-bottom);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
}

.launcher {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vh, 30px);
  padding: clamp(18px, 4vh, 44px) 18px calc(11vh + 20px);
}

/* ---------- title, matching bigText() in the 2D game ---------- */

.launcher-header {
  text-align: center;
}

.launcher-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(20, 22, 30, 0.55);
}

.launcher-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-family: var(--display-font);
  font-weight: 900;
  line-height: 1;
  font-size: clamp(42px, 8.4vw, 84px);
  paint-order: stroke fill;
}

.launcher-title > span {
  display: inline-block;
  animation: title-wobble 3.6s ease-in-out infinite;
}

.launcher-title__goose {
  color: var(--gold);
  -webkit-text-stroke: 0.15em var(--gold-ink);
  text-shadow: 0.04em 0.06em 0 rgba(20, 22, 30, 0.35);
  rotate: -3deg;
}

.launcher-title__versus {
  font-size: 0.44em;
  color: #fff;
  -webkit-text-stroke: 0.16em #1d2330;
  animation-delay: -1.2s;
}

.launcher-title__chopper {
  color: var(--heli-blue);
  -webkit-text-stroke: 0.15em var(--heli-ink);
  text-shadow: 0.04em 0.06em 0 rgba(20, 22, 30, 0.35);
  rotate: 2.4deg;
  animation-delay: -1.8s;
}

@keyframes title-wobble {
  0%, 100% { transform: rotate(-1.1deg); }
  50% { transform: rotate(1.1deg); }
}

.launcher-tagline {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(20, 22, 30, 0.6);
}

/* ---------- mode cards, styled like panel() + button() ---------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: clamp(16px, 3vw, 30px);
  width: min(96vw, 860px);
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(to bottom, var(--panel-top), var(--panel-bottom));
  border: 3.5px solid var(--panel-ink);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    4px 6px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-3px) scale(1.025);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.3),
    6px 10px 0 rgba(0, 0, 0, 0.42);
}

.mode-card:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.mode-card:active {
  transform: translateY(0) scale(0.995);
}

/* preview windows */

.mode-card__preview {
  position: relative;
  height: clamp(120px, 17vh, 168px);
  overflow: hidden;
  border-bottom: 3px solid var(--panel-ink);
}

.mode-card__preview--2d {
  background: linear-gradient(to bottom, #5da9e0 0%, #9fd0ef 62%, #ffe9c4 100%);
}

.pixel-sun {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fffbe8;
  box-shadow: 0 0 22px 10px rgba(255, 238, 170, 0.8);
}

.pixel-cloud {
  position: absolute;
  width: 74px;
  height: 26px;
  background:
    radial-gradient(circle at 24% 66%, #fff 12px, transparent 13px),
    radial-gradient(circle at 50% 38%, #fff 16px, transparent 17px),
    radial-gradient(circle at 76% 66%, #fff 13px, transparent 14px);
}

.pixel-cloud--left { top: 18px; left: 12px; }
.pixel-cloud--right { top: 44px; right: 64px; transform: scale(0.8); opacity: 0.85; }

.pixel-goose,
.pixel-chopper {
  position: absolute;
  font-size: 40px;
  filter: drop-shadow(2px 3px 0 rgba(20, 22, 30, 0.35));
}

.pixel-goose {
  left: 16%;
  top: 42%;
  transform: scaleX(-1);
  animation: bob 2.6s ease-in-out infinite;
}

.pixel-chopper {
  right: 14%;
  top: 22%;
  animation: bob 2.2s ease-in-out infinite reverse;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.pixel-pond {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, #7fc4de, #3a7da0);
}

.preview-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(20, 30, 45, 0.09) 0 2px,
    transparent 2px 4px
  );
  pointer-events: none;
}

.mode-card__preview--3d {
  background: linear-gradient(to bottom, #223a5e 0%, #4a6ea8 42%, #e88d5a 78%, #f7c173 100%);
}

.scene-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -4px;
  height: 58%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 214, 140, 0.4) 0 2px, transparent 2px 56px),
    repeating-linear-gradient(0deg, rgba(255, 214, 140, 0.32) 0 2px, transparent 2px 26px);
  transform: perspective(240px) rotateX(58deg);
  transform-origin: 50% 100%;
}

.scene-tower {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to bottom, #2c3a52, #16202f);
  box-shadow: inset -4px 0 0 rgba(255, 214, 140, 0.28);
}

.scene-tower--one { left: 8%; width: 34px; height: 62%; }
.scene-tower--two { left: 22%; width: 26px; height: 44%; }
.scene-tower--three { right: 22%; width: 30px; height: 55%; }
.scene-tower--four { right: 6%; width: 40px; height: 70%; }

.scene-goose,
.scene-chopper {
  position: absolute;
  filter: drop-shadow(2px 4px 3px rgba(10, 14, 22, 0.55));
}

.scene-goose {
  left: 20%;
  top: 30%;
  font-size: 44px;
  transform: scaleX(-1);
  animation: bob 2.8s ease-in-out infinite;
}

.scene-chopper {
  right: 20%;
  top: 14%;
  font-size: 30px;
  animation: bob 2.1s ease-in-out infinite reverse;
}

.scene-flare {
  position: absolute;
  top: 20px;
  left: 34%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff7d9;
  box-shadow: 0 0 18px 9px rgba(255, 233, 170, 0.75);
}

.mode-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-chip--new {
  background: rgba(163, 39, 77, 0.55);
}

/* card body */

.mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}

.mode-card__title {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px rgba(20, 22, 30, 0.85);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.mode-card--classic .mode-card__title { color: var(--gold); }
.mode-card--cinematic .mode-card__title { color: var(--heli-blue); }

.mode-card__copy {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.mode-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mode-card__features > span {
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* glossy pill CTA, matching button() in the 2D game */

.mode-card__cta {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px rgba(60, 30, 0, 0.85);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: filter 120ms ease, transform 120ms ease;
  overflow: hidden;
}

.mode-card__cta::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 3px;
  height: 42%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.mode-card__cta--goose {
  background: linear-gradient(to bottom, var(--goose-btn-top), var(--goose-btn-bottom));
  border: 3px solid var(--goose-btn-ink);
}

.mode-card__cta--heli {
  background: linear-gradient(to bottom, var(--heli-btn-top), var(--heli-btn-bottom));
  border: 3px solid var(--heli-btn-ink);
  -webkit-text-stroke: 4px rgba(12, 40, 66, 0.9);
}

.mode-card:hover .mode-card__cta,
.mode-card:focus-visible .mode-card__cta {
  filter: brightness(1.12) saturate(1.05);
  transform: scale(1.03);
}

.mode-card__best {
  align-self: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 3px rgba(20, 22, 30, 0.8);
}

/* footer, matching the 2D menu's small print */

.launcher-footer {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 2px 4px rgba(20, 22, 30, 0.6);
}

/* ---------- responsive & motion ---------- */

@media (max-width: 720px) {
  .mode-grid {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }

  .launcher {
    padding-bottom: calc(11vh + 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-cloud,
  .pond-shimmer,
  .launcher-title > span,
  .pixel-goose,
  .pixel-chopper,
  .scene-goose,
  .scene-chopper {
    animation: none;
  }
}
