.cursor-bird path { fill: var(--ink); }
.game-mode .cursor-bird,
.game-mode .flight-trail,
.game-mode .flock { display: none; }

.hero {
  padding: 0;
  display: block;
  background: var(--white);
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  display: grid;
  grid-template-columns: 58% 42%;
  grid-template-rows: minmax(0, 1fr) 54px;
  overflow: hidden;
}

.hero-stage .hero-copy {
  padding: clamp(45px, 6vw, 88px) clamp(40px, 5.5vw, 82px);
  background: var(--white);
}

.postal-stamp {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin: 0 0 clamp(24px, 4vh, 40px);
  padding: 15px 21px;
  color: var(--brick);
  background: transparent;
  border: 3px solid var(--brick);
  outline: 1px solid rgba(182, 83, 66, .72);
  outline-offset: 4px;
  border-radius: 1px 3px 2px 1px;
  transform: rotate(-2deg) skewX(-.6deg);
  box-shadow: 1px 1px 0 rgba(182, 83, 66, .38), -1px 0 0 rgba(182, 83, 66, .24);
  clip-path: polygon(1% 2%, 99% 0, 100% 96%, 98% 100%, 1% 98%, 0 5%);
}

.postal-stamp::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 2;
  pointer-events: none;
  opacity: .78;
  background:
    radial-gradient(circle at 7% 28%, var(--white) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 18% 75%, var(--white) 0 1px, transparent 1.7px),
    radial-gradient(circle at 39% 18%, var(--white) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 58% 68%, var(--white) 0 1.3px, transparent 2px),
    radial-gradient(circle at 77% 31%, var(--white) 0 1px, transparent 1.6px),
    radial-gradient(circle at 94% 82%, var(--white) 0 1.3px, transparent 2px);
  background-size: 31px 23px, 39px 29px, 37px 31px, 43px 27px, 33px 25px, 41px 33px;
}

.postal-stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--brick);
  opacity: .8;
  transform: rotate(.35deg);
  pointer-events: none;
}

.postal-stamp strong {
  position: relative;
  z-index: 1;
  font: 700 1.08rem/1 "Courier New", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .hero-manifesto {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(3.15rem, 4.5vw, 4.75rem)/.96 Georgia, serif;
  letter-spacing: -.052em;
}

.hero .hero-manifesto em {
  color: var(--blue);
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

.hero-stage .hero-copy > p {
  max-width: 640px;
  margin: clamp(20px, 3vh, 30px) 0;
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  line-height: 1.48;
}

.hero-stage .hero-art {
  min-height: 0;
  background: var(--blue);
}

.game-bird {
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(310px, 63%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(8deg);
  filter: drop-shadow(14px 17px 0 rgba(36, 32, 29, .13));
  cursor: pointer;
}

.game-bird .study-bird {
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
  filter: none;
}

.game-bird:hover,
.game-bird:active { transform: translate(-50%, -50%) rotate(8deg); }

.game-bird:focus-visible {
  outline: 2px dashed var(--white);
  outline-offset: 12px;
  border-radius: 50%;
}

.hero-marquee {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--green);
  border-top: 1px solid var(--ink);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: pluma-marquee 22s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font: 700 .67rem "Courier New", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marquee-set b {
  display: inline-grid;
  place-items: center;
  height: 1em;
  font: 700 1.25rem/1 "Courier New", monospace;
  transform: translateY(-.02em);
}

@keyframes pluma-marquee { to { transform: translateX(-25%); } }

.game-page {
  height: 100svh;
  padding: clamp(22px, 3vw, 42px) clamp(22px, 4vw, 60px);
  color: var(--ink);
  background: var(--blue);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.game-tools { display: flex; align-items: center; gap: 8px; }

.game-sound {
  padding: 9px 11px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 .6rem "Courier New", monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.game-header a,
.game-scoreboard {
  padding: 9px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font: 700 .63rem "Courier New", monospace;
  text-transform: uppercase;
}

.game-title {
  margin: 0;
  color: var(--white);
  font: italic clamp(1.8rem, 3vw, 3rem) Georgia, serif;
}

.game-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 26px 8px 26px 8px;
  box-shadow: 8px 9px 0 var(--ink);
  background: var(--blue);
}

#flightGame {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 28px;
  pointer-events: none;
}

.game-overlay h1 {
  margin: 0;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--ink);
  font: 400 clamp(3rem, 7vw, 7rem)/.85 Georgia, serif;
  letter-spacing: -.06em;
}

.game-overlay p {
  max-width: 420px;
  margin: 18px 0;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(251, 250, 246, .9);
  border: 1px dashed var(--ink);
  font: 700 .68rem/1.45 "Courier New", monospace;
  text-transform: uppercase;
}

.game-overlay button {
  pointer-events: auto;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--ink);
  border-radius: 7px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.game-overlay.playing { display: none; }

@media (max-width: 760px) {
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62fr) minmax(0, 38fr) 44px;
    padding-bottom: 72px;
  }

  .hero-stage .hero-copy {
    padding: 25px 23px 24px;
    justify-content: center;
  }

  .postal-stamp {
    margin-bottom: 18px;
    padding: 8px 12px 9px;
  }

  .postal-stamp strong { font-size: 1rem; }

  .hero .hero-manifesto {
    max-width: 355px;
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: .95;
  }

  .hero-stage .hero-copy > p {
    margin: 13px 0;
    font-size: .79rem;
    line-height: 1.4;
  }

  .hero-stage .stitch-button {
    padding: 9px 12px;
    font-size: .73rem;
  }

  .game-bird { width: min(190px, 52vw); }
  .hero-stage .sun { width: 34%; right: 12%; top: 8%; }
  .marquee-set { gap: 20px; padding-right: 20px; font-size: .58rem; }

  .game-page {
    padding: 14px 12px 78px;
    gap: 10px;
  }

  .game-header a { display: none; }
  .game-header { justify-content: space-between; }
  .game-title { font-size: 1.55rem; }
  .game-scoreboard { font-size: .54rem; padding: 7px 8px; }
  .game-tools { gap: 5px; }
  .game-sound { padding: 7px 8px; font-size: .52rem; }
  .game-shell { border-radius: 18px 6px; box-shadow: 5px 6px 0 var(--ink); }
  .game-overlay h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .game-overlay p { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}
