/* ============================================================
   Littlest Bee Games — Southbound landing page
   Ported from the approved AIDesigner ultradesign artifact
   (run 8c2f0ab4). Design-system values kept verbatim; content
   swapped for real game assets and the real nine-biome palette
   from lib/game/terrain/biomes.dart.

   Tokens:
     navy    #1E2A44   hero grad #2C3C5C → #1E2A44
     amber   #F5A623   (3D shadow #D68F1C)
     blush   #F7C6D0   studio red #C0272D   ribbon #E85D65
     cream   #F4EFE6   card #EAE1D0
   ============================================================ */

:root {
  --navy: #1e2a44;
  --navy-deep: #141d30;
  --amber: #f5a623;
  --amber-shadow: #d68f1c;
  --blush: #f7c6d0;
  --studio: #c0272d;
  --ribbon: #e85d65;
  --cream: #f4efe6;
  --card: #eae1d0;
  --hero-ink: #f8f1eb;
  --hero-muted: #b9cdec;
  --foot-muted: #8aa2cd;

  --display: "Fredoka", sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 8px 24px -6px rgba(30, 42, 68, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Reveal animations (JS-gated so no-JS still shows content) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal-in { opacity: 0; transform: scale(0.95); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.js .is-visible { opacity: 1; transform: translateY(0) scale(1); }
.d1 { transition-delay: 100ms; }
.d2 { transition-delay: 200ms; }
.d3 { transition-delay: 300ms; }
.d4 { transition-delay: 400ms; }
.d5 { transition-delay: 500ms; }

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-delayed { animation: float 7s ease-in-out 1s infinite alternate; }

/* ---------- Buttons (chunky 3D press) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--display);
  font-size: 1.05rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  transition: all 0.15s ease;
  white-space: nowrap;
  justify-content: center;
}
.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 4px 0 0 var(--amber-shadow);
}
.btn-amber:hover { filter: brightness(1.1); }
.btn-amber:active { transform: translateY(4px); box-shadow: 0 0 0 0 transparent; }
.btn-outline {
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 4px 0 0 rgba(255, 255, 255, 0.3);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline:active { transform: translateY(4px); box-shadow: none; }
.btn-sm { font-size: 0.9rem; padding: 0.6em 1.3em; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
}
.brand-logo { height: 64px; width: auto; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to bottom, #2c3c5c, #1e2a44);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #fff; }
.s1 { top: 15%; left: 10%; width: 8px; height: 8px; opacity: 0.8; box-shadow: 0 0 8px #fff; }
.s2 { top: 25%; left: 80%; width: 6px; height: 6px; opacity: 0.6; }
.s3 { top: 10%; left: 60%; width: 8px; height: 8px; background: var(--amber); opacity: 0.4; }
.s4 { top: 40%; left: 30%; width: 4px; height: 4px; opacity: 0.5; }
.s5 { top: 8%; left: 35%; width: 5px; height: 5px; opacity: 0.35; }
.hero-mountain {
  position: absolute;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.m1 { width: 100vw; height: 50vh; right: -10vw; bottom: -5vh; transform: rotate(-5deg); background: #3b5482; filter: blur(1px); }
.m2 { width: 120vw; height: 40vh; left: -20vw; bottom: -10vh; transform: rotate(3deg); background: #4b6b9e; }
.hero-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25vh;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 6rem;
  width: 100%;
}
.hero-copy { color: #fff; }
.hero-title { margin: 0; }
.hero-wordmark {
  /* the game's own script wordmark, one big line in white.
     max-width:none lets it overflow the text column into the open sky */
  width: min(525px, 90vw);
  max-width: none;
  transform: rotate(-2deg);
  filter: drop-shadow(-2px 4px 0px #1b2338);
}

.ribbon {
  position: relative;
  display: inline-block;
  background: var(--ribbon);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.04em;
  padding: 0.4em 1em;
  margin: 1.6rem 0 0 0.5rem;
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  border-top: 1.1em solid transparent;
  border-bottom: 1.1em solid transparent;
}
.ribbon::before { left: -16px; border-right: 16px solid var(--ribbon); }
.ribbon::after { right: -16px; border-left: 16px solid var(--ribbon); }

.hero-body {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--hero-muted);
  max-width: 32rem;
}
.hero-tagline {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--blush);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* hero right art: two gameplay shots, tilted opposite ways */
.hero-art { position: relative; min-height: 530px; margin-left: 20px; }
.screen {
  position: absolute;
  width: 82%;
  border-radius: 20px;
  border: 5px solid #fdf6e3;
  box-shadow: 0 24px 48px -12px rgba(10, 16, 30, 0.55);
}
.screen-a { top: 0; left: 0; transform: rotate(-5deg); z-index: 2; }
.screen-b { bottom: 0; right: -2%; transform: rotate(4deg); }
.screen-a.float { animation: float-a 6s ease-in-out infinite; }
.screen-b.float-delayed { animation: float-b 7s ease-in-out 1s infinite alternate; }
/* floats that keep each card's own tilt */
@keyframes float-a {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}
@keyframes float-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.hero-curve { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 10; }
.hero-curve svg { display: block; width: 100%; height: 100px; }

/* ---------- Journey / biome strip ---------- */
.journey { background: var(--cream); padding: 6rem clamp(1rem, 4vw, 3rem) 5rem; position: relative; z-index: 20; }
.journey-head {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.journey-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; }
.journey-head p { font-size: 1.15rem; color: rgba(30, 42, 68, 0.8); }

.biome-strip {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: flex;
  height: 480px;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.biome-slice {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  overflow: hidden;
  cursor: default;
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
}
/* candy diagonal stripes — the game's hill signature */
.biome-slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-52deg,
    rgba(255, 255, 255, 0.22) 0 16px, rgba(255, 255, 255, 0) 16px 32px);
  pointer-events: none;
}
/* rounded hill at the foot of each slice */
.biome-slice::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 150%;
  height: 30%;
  border-radius: 100% 100% 0 0;
  background: var(--edge);
  opacity: 0.35;
}
.biome-strip:hover .biome-slice { opacity: 0.75; }
.biome-slice:hover { flex: 3; opacity: 1 !important; box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); z-index: 2; }
.slice-num { font-family: var(--display); font-size: 0.8rem; color: rgba(30, 42, 68, 0.45); z-index: 1; }
.slice-name {
  font-family: var(--display);
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-top: 0.45rem;
  z-index: 1;
}
/* mini gameplay card inside a slice */
.slice-shot {
  width: min(86%, 250px);
  margin-top: 0.9rem;
  border-radius: 12px;
  border: 3px solid #fdf6e3;
  box-shadow: 0 10px 22px -6px rgba(20, 29, 48, 0.4);
  z-index: 1;
}
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }
.slice-meta {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(30, 42, 68, 0.65);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.15em 0.9em;
  white-space: nowrap;
  /* collapsed: takes no space, so the mini cards align across slices */
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: all 0.35s ease 0.12s;
  z-index: 1;
}
.slice-icon { margin-top: 0.55rem; font-size: 1.25rem; opacity: 0.75; z-index: 1; }
.slice-detail {
  position: absolute;
  bottom: 1.3rem;
  left: 1.2rem;
  right: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease 0.15s;
  z-index: 1;
}
/* bold postcard line = the card's title, in-flow above the play card */
.slice-post {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  text-align: center;
  padding: 0 1.1rem;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: all 0.35s ease 0.13s;
  z-index: 1;
}
.slice-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(30, 42, 68, 0.75);
  line-height: 1.45;
}
.biome-slice:hover .slice-detail { opacity: 1; transform: translateY(0); }
.biome-slice:hover .slice-meta { max-height: 2.2em; margin-top: 0.5rem; opacity: 1; }
.biome-slice:hover .slice-post { max-height: 7em; margin-top: 0.9rem; opacity: 1; }

/* Arctic starts expanded; it yields as soon as another slice is hovered */
.biome-slice:first-child { flex: 3; }
.biome-slice:first-child .slice-meta { max-height: 2.2em; margin-top: 0.5rem; opacity: 1; }
.biome-slice:first-child .slice-post { max-height: 7em; margin-top: 0.9rem; opacity: 1; }
.biome-slice:first-child .slice-detail { opacity: 1; transform: translateY(0); }
.biome-strip:hover .biome-slice:first-child:not(:hover) { flex: 1; }
.biome-strip:hover .biome-slice:first-child:not(:hover) .slice-meta,
.biome-strip:hover .biome-slice:first-child:not(:hover) .slice-post { max-height: 0; margin-top: 0; opacity: 0; }
.biome-strip:hover .biome-slice:first-child:not(:hover) .slice-detail { opacity: 0; }

/* pole-to-pole route line */
.route { position: relative; max-width: 1100px; margin: 4rem auto 0; height: 60px; }
.route-curve {
  width: 100%;
  height: 60px;
  border-top: 3px dashed rgba(30, 42, 68, 0.3);
  border-radius: 50%;
}
.route-pip { position: absolute; left: 2%; top: -34px; width: 54px; transform: rotate(-10deg); }
.route-label {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 1.4rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.route-flag { position: absolute; right: 2%; top: -30px; color: var(--studio); font-size: 1.5rem; transform: rotate(12deg); }

/* ---------- How to play ---------- */
.play {
  background: var(--cream);
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 6rem;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.pill {
  display: inline-block;
  background: #fde9ec;
  color: var(--studio);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.4em 1.2em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.play h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.controls { display: flex; flex-direction: column; gap: 2.4rem; }
.control { display: flex; gap: 1.5rem; align-items: flex-start; }
.control h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.control p { color: rgba(30, 42, 68, 0.7); max-width: 24rem; }
/* CSS-drawn game button: pressed (hold) and raised (release) */
.control-btn {
  flex-shrink: 0;
  width: 80px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #d6cfc1;
  box-shadow: 0 8px 0 0 #c5beae;
  transition: all 0.3s ease;
  margin-top: 4px;
}
.control-btn.pressed {
  background: var(--amber);
  border-color: #a97a35;
  box-shadow: 0 2px 0 0 #a97a35;
  transform: translateY(6px);
}
.control:hover .control-btn.pressed { transform: translateY(0); box-shadow: 0 8px 0 0 #a97a35; }
.control:hover .control-btn:not(.pressed) { transform: translateY(6px); box-shadow: 0 2px 0 0 #c5beae; }
.play-note { margin-top: 2rem; font-style: italic; color: rgba(30, 42, 68, 0.6); }

.play-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card);
  background: linear-gradient(to bottom, #aecde2, #d8eaf5);
}
.panel-hill { position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.panel-hill.far { width: 150%; height: 33%; left: -20%; background: #9bc4dd; }
.panel-hill.near { width: 120%; height: 25%; right: -10%; background: #fff; }
.panel-divider { position: absolute; top: 50%; left: 10%; width: 80%; border-top: 2px dashed rgba(255, 255, 255, 0.8); }
.label {
  position: absolute;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.4em 1.2em;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(30, 42, 68, 0.3);
  z-index: 3;
}
.label-hold { top: 14%; right: 20%; }
.label-release { bottom: 30%; left: 10%; }
.panel-pip { position: absolute; z-index: 2; filter: drop-shadow(0 10px 12px rgba(30, 42, 68, 0.3)); }
.panel-pip.dive { top: 16%; left: 28%; width: 26%; transform: rotate(18deg); }
.panel-pip.soar { bottom: 12%; right: 22%; width: 20%; transform: rotate(-10deg); }

/* ---------- Features ---------- */
.is-hidden { display: none !important; }
.features { background: var(--cream); padding: 2rem clamp(1.25rem, 3vw, 2rem) 8rem; }
.features-head {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4rem;
}
.leaf { color: var(--blush); display: inline-block; transform: rotate(-12deg); font-size: 0.8em; vertical-align: middle; }
.leaf.flip { transform: rotate(12deg); }
.feature-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.feature-card {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--card);
  border-radius: 2rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card:hover { transform: translateY(-8px); }
.feature-card h4 { font-size: 1.1rem; text-transform: uppercase; margin: 1.4rem 0 0.5rem; }
.feature-card p { font-size: 0.9rem; color: rgba(30, 42, 68, 0.7); line-height: 1.45; padding: 0 0.4rem 0.6rem; }
.tile {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 8px rgba(30, 42, 68, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tile-arctic { background: #b3cde5; }
.tile-arctic::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 33%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100% 100% 0 0;
}
.tile-arctic img { width: 60%; position: relative; z-index: 1; }
.tile-map { background: #d8dcc4; }
.map {
  width: 72%;
  height: 72%;
  background: #acbe9d;
  border: 3px solid #93a584;
  border-radius: 6px;
  transform: rotate(6deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}
.map-pin { font-size: 2rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)); }
.tile-daily { background: #fdf0de; }
.trophy { font-size: 3.4rem; filter: drop-shadow(0 4px 6px rgba(30, 42, 68, 0.2)); }
.tile-chill { background: #fbe9e7; }
.heart { font-size: 3.6rem; color: #de6861; animation: pulse 2s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.tile-scarf { background: #fdf0de; }
.scarf {
  position: relative;
  width: 66%;
  height: 44%;
  background: #c84f3c;
  border-radius: 999px;
  border-bottom: 6px solid #a83d2d;
}
.scarf-tail {
  position: absolute;
  right: 4px;
  bottom: -26px;
  width: 30px;
  height: 56px;
  background: #c84f3c;
  border-radius: 0 6px 6px 6px;
  border-right: 4px solid #a83d2d;
  border-bottom: 4px solid #a83d2d;
  transform: rotate(-14deg);
}

/* ---------- Gummy Bounce (out now) ---------- */
.gummy {
  /* candy-pink band: same storybook language, different flavor */
  background: linear-gradient(180deg, #fdeef2 0%, #fbe3ea 100%);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}
.gummy-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.out-now {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: #43b26b;
  padding: 0.45em 1.2em;
  border-radius: 999px;
  box-shadow: 0 3px 0 0 #2e8a4e;
  margin-bottom: 1.4rem;
}
.gummy-logo { width: min(340px, 80%); }
.gummy-body {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: rgba(30, 42, 68, 0.8);
  max-width: 30rem;
}
.gummy-points {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.8rem;
  display: grid;
  gap: 0.5rem;
}
.gummy-points li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
.gummy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: #ff6b81;
  box-shadow: 0 2px 0 0 #d94f66;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 0 0 var(--navy-deep);
}
.btn-navy:hover { filter: brightness(1.15); }
.btn-navy:active { transform: translateY(4px); box-shadow: none; }
.gummy-shots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.gummy-shot {
  width: min(44%, 210px);
  border-radius: 20px;
  border: 5px solid #fff;
  box-shadow: 0 22px 44px -14px rgba(90, 30, 50, 0.4);
}
.gummy-shot.tilt-l { transform: rotate(-4deg) translateY(10px); }
.gummy-shot.tilt-r { transform: rotate(4deg) translateY(-10px); }

/* ---------- Our games shelf ---------- */
.shelf-section {
  background: var(--navy);
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 10rem;
  position: relative;
  isolation: isolate;
}
.shelf-head {
  text-align: center;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.seed { color: #425a82; font-size: 0.8em; display: inline-block; transform: rotate(-12deg); vertical-align: middle; }
.seed.flip { transform: rotate(12deg); }
.shelf-sub { text-align: center; color: var(--foot-muted); font-size: 1.1rem; margin: 0.8rem 0 4rem; font-weight: 600; }

.shelf-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto -12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.game-box { position: relative; width: min(295px, 100%); transition: transform 0.3s ease; }
.game-box:hover { transform: translateY(-14px); }
.badge-new {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 3;
  background: var(--studio);
  color: #fff;
  font-family: var(--display);
  font-size: 0.75rem;
  padding: 0.3em 0.9em;
  border-radius: 6px;
  transform: rotate(-12deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.game-cover {
  aspect-ratio: 4 / 3;
  border-radius: 16px 16px 0 0;
  border: 4px solid #fdf6e3;
  border-bottom: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}
.cover-southbound { background: linear-gradient(to bottom, #8bc5e3, #bfe6f5); }
.badge-out { background: #43b26b; }
/* Gummy Bounce cover: pastel candy sky + the title art + a peeking bear */
.cover-gummy {
  background: linear-gradient(to bottom, #dcedfb, #f2e3f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-gb-logo { width: 78%; filter: drop-shadow(0 4px 6px rgba(60, 20, 60, 0.25)); }
.gb-bear {
  position: absolute;
  bottom: -10px;
  right: 14%;
  width: 44px;
  height: 58px;
  background: #58d68d;
  border-radius: 48% 48% 42% 42%;
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.08);
}
.gb-bear::before, .gb-bear::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #1d2b44;
}
.gb-bear::before { left: 11px; }
.gb-bear::after { right: 11px; }
.cover-hill {
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 120%;
  height: 60%;
  background: #a8d3eb;
  border-radius: 100% 0 0 0;
}
.cover-pip {
  position: absolute;
  top: 18%;
  left: 16%;
  width: 44%;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 8px rgba(30, 42, 68, 0.35));
}
.cover-wordmark {
  position: absolute;
  bottom: 10%;
  left: 8%;
  width: 70%;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.7));
}
.game-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdf6e3;
  border: 4px solid #fdf6e3;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}
.bar-heart { color: rgba(30, 42, 68, 0.5); font-size: 1.1rem; }

.game-soon {
  aspect-ratio: 4 / 3.6;
  background: #1a2643;
  border: 1px solid #2d3a5d;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
}
.game-soon:hover { transform: translateY(-14px); }
.soon-stitch {
  border: 1.5px dashed #425a82;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}
.soon-logo { width: 110px; opacity: 0.5; }
.game-soon h3 { color: #b5c9ea; font-size: 1rem; letter-spacing: 0.08em; }
.game-soon p { color: #738cb8; font-size: 0.8rem; }

.wooden-shelf {
  max-width: 1100px;
  height: 32px;
  margin: 0 auto;
  background-color: #5d4037;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(0, 0, 0, 0.05) 10px, rgba(0, 0, 0, 0.05) 20px);
  border-radius: 8px 8px 4px 4px;
  box-shadow: inset 0 -12px 16px -8px rgba(0, 0, 0, 0.5), 0 20px 24px -12px rgba(0, 0, 0, 0.4);
  position: relative;
}
.wooden-shelf::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: rgba(255, 255, 255, 0.05); border-radius: 8px 8px 0 0; }

/* ---------- Contact section ---------- */
.contact-section {
  background: #eef4ec;
  padding: 5.5rem 1.5rem 6rem;
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); }
.contact-sub { margin-top: 1rem; color: rgba(30, 42, 68, 0.75); line-height: 1.6; max-width: 34ch; }
.contact-pip { height: 110px; margin-top: 1.6rem; }
.contact-form {
  background: #fff;
  border: 2.5px solid var(--navy);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 16px 34px -14px rgba(20, 29, 48, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label span {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #faf7ef;
  border: 2px solid rgba(30, 42, 68, 0.35);
  border-radius: 12px;
  padding: 0.65em 0.9em;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(30, 42, 68, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--amber); }
.contact-send { align-self: flex-start; border: none; cursor: pointer; font: inherit; font-weight: 800; letter-spacing: 0.08em; }
@media (max-width: 800px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-pip { display: none; }
  .contact-row { grid-template-columns: 1fr; }
}

/* ---------- CTA bar + footer ---------- */
.site-footer { background: var(--navy); position: relative; padding-bottom: 2rem; }
/* scalloped edge riding on top of the cream CTA bar: cream domes rising into navy */
.scallop {
  height: 24px;
  background-size: 48px 24px;
  background-position: bottom center;
  background-image: radial-gradient(circle at 24px 24px, var(--cream) 23px, transparent 24px);
  transform: translateY(1px);
}
.cta-bar {
  position: relative;
  background: var(--cream);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 15px 30px rgba(30, 42, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  padding: 2.2rem clamp(1.5rem, 5vw, 4rem) 2.4rem;
  z-index: 2;
}
.cta-pip {
  position: absolute;
  left: clamp(1rem, 12vw, 12rem);
  bottom: 0;
  width: 92px;
  transform: translateY(26%);
  transition: transform 0.3s ease;
}
.cta-bar:hover .cta-pip { transform: translateY(12%); }
.cta-copy h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: 0.06em; text-transform: uppercase; }
.cta-copy p { color: rgba(30, 42, 68, 0.7); font-size: 0.95rem; margin-top: 0.3rem; }

.footer-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem clamp(1.5rem, 4vw, 3rem) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #2c3c5c;
  position: relative;
}
.footer-logo { height: 60px; width: auto; margin-top: 1.2rem; }
.footer-brand p { color: var(--foot-muted); font-size: 0.9rem; max-width: 240px; }
.footer-me { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-body h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.footer-contact a,
.footer-legal-links a { color: var(--foot-muted); font-size: 0.95rem; font-weight: 700; }
.footer-contact a:hover,
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links a { display: inline-block; margin-bottom: 0.5rem; }
.footer-support { display: inline-block; margin-top: 0.5rem; text-decoration: underline; text-underline-offset: 3px; }
/* thank-you toast (?submitted=true bounce-back from FormNinja) */
.thanks-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--cream, #f2ede4);
  color: var(--navy);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  padding: 0.7em 1.1em 0.7em 1.4em;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px -10px rgba(20, 29, 48, 0.45);
  transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
  max-width: min(92vw, 480px);
}
.thanks-toast.show { transform: translate(-50%, 0); }
.thanks-toast span { color: var(--amber); }
.thanks-toast button {
  border: none;
  background: none;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0 0 0 0.2em;
}

/* decorative ice peaks + flag */
.footer-ice { position: relative; width: 160px; height: 140px; align-self: flex-end; }
.ice { position: absolute; bottom: 0; }
.ice.a { right: 0; width: 110px; height: 130px; background: #e8effc; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.ice.b { right: 60px; width: 80px; height: 100px; background: #d1e0f5; clip-path: polygon(40% 0%, 0% 100%, 80% 100%); }
.ice-flag { position: absolute; top: -18px; right: 42px; color: var(--studio); font-size: 1.5rem; transform: rotate(12deg); z-index: 1; }
.footer-legal {
  text-align: center;
  color: #5b719e;
  font-size: 0.78rem;
  padding: 1.6rem 1.5rem 0.5rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-wordmark { margin: 0 auto; }
  .ribbon { margin-left: 0; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 360px; margin-top: 1.5rem; margin-left: 0; }
  .screen { width: 78%; }
  .screen-a { left: 2%; }
  .screen-b { right: 2%; }
  .play { grid-template-columns: 1fr; }
  .play-panel { order: -1; }
  .gummy-inner { grid-template-columns: 1fr; text-align: center; }
  .gummy-logo, .gummy-body { margin-left: auto; margin-right: auto; }
  .gummy-points { justify-items: center; }
  .gummy-points li { text-align: left; }
  .footer-ice { display: none; }
}

@media (max-width: 860px) {
  /* biome strip stacks into cards with everything visible */
  .biome-strip { flex-direction: column; height: auto; }
  .biome-slice {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 0.8rem;
    padding: 1.1rem 1.3rem 1.2rem;
  }
  .biome-slice::after { display: none; }
  .biome-slice:hover { flex: 1; }
  .slice-num { font-size: 0.75rem; }
  .slice-name { font-size: 1.05rem; margin: 0; justify-self: start; }
  .slice-icon { margin: 0; }
  .slice-shot {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 340px);
    margin-top: 0.9rem;
  }
  .slice-post {
    grid-column: 1 / -1;
    max-height: none;
    opacity: 1;
    text-align: left;
    padding: 0;
    margin-top: 0.8rem;
  }
  .slice-meta {
    grid-column: 1 / -1;
    justify-self: start;
    max-height: none;
    opacity: 1;
    margin-top: 0.6rem;
  }
  .slice-detail {
    position: static;
    opacity: 1;
    transform: none;
    grid-column: 1 / -1;
    margin-top: 0.7rem;
  }
  .route { display: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .cta-pip { display: none; }
  /* footer: centered stack instead of a ragged left column */
  .footer-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-brand p { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal-up, .js .reveal-in { opacity: 1; transform: none; }
}
