/* Catch the Chicken — site styles */
:root {
  --sky-top: #7cc6f2;
  --sky-low: #d9f1ff;
  --sun: #ffc93c;
  --sun-deep: #f5a300;
  --barn: #c9382c;
  --barn-deep: #9e2419;
  --grass: #6dbb3c;
  --grass-deep: #3f8a24;
  --cream: #fff8e8;
  --paper: #fffdf6;
  --ink: #3a2a1a;
  --ink-soft: #6b5640;
  --line: #ecdcbc;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(58, 42, 26, .12), 0 18px 40px rgba(58, 42, 26, .10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--barn); text-underline-offset: 3px; }
a:hover { color: var(--barn-deep); }

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 246, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: #fdeec6; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 70%, #eaf8d8 100%);
  padding: 56px 0 0;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: min(440px, 100%); filter: drop-shadow(0 6px 0 rgba(120, 60, 0, .18)); }
.hero p.lede { font-size: 1.22rem; color: #2e3f4f; max-width: 34ch; margin: 18px 0 26px; font-weight: 600; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
  transform: rotate(1.5deg);
}
.hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hills { display: block; width: 100%; height: auto; margin-top: 48px; position: relative; z-index: 1; }

/* flying chickens */
.flock { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flyer {
  position: absolute; width: 86px; height: 86px;
  pointer-events: auto; cursor: pointer;
  background: none; border: 0; padding: 0;
  animation: fly linear infinite;
}
.flyer img { width: 100%; height: 100%; object-fit: contain; }
.flyer.caught { animation-play-state: paused; }
.flyer.caught img { animation: caught .9s ease-in forwards; }
@keyframes fly {
  0%   { transform: translate(-140px, 0) rotate(-4deg); }
  25%  { transform: translate(25vw, -26px) rotate(3deg); }
  50%  { transform: translate(50vw, 8px) rotate(-3deg); }
  75%  { transform: translate(75vw, -20px) rotate(4deg); }
  100% { transform: translate(calc(100vw + 140px), 0) rotate(-2deg); }
}
@keyframes caught {
  0%   { transform: scale(1.15); }
  35%  { transform: scale(1.15) rotate(-8deg); }
  100% { transform: translateY(240px) rotate(160deg) scale(.8); opacity: 0; }
}
.feather {
  position: absolute; width: 14px; height: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  pointer-events: none;
  animation: feather 900ms ease-out forwards;
}
@keyframes feather {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flyer { animation: none; }
}

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 20px 10px 16px;
  border-radius: 16px;
  background: #1d1d1f; color: #fff; text-decoration: none;
  box-shadow: 0 5px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.store-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .72rem; opacity: .85; font-weight: 600; letter-spacing: .3px; }
.store-btn strong { font-family: "Fredoka", sans-serif; font-size: 1.2rem; font-weight: 600; }
.store-btn.soon { background: #5c5148; box-shadow: 0 5px 0 #3a3129; cursor: default; }
.store-btn.soon:hover { transform: none; box-shadow: 0 5px 0 #3a3129; }
.store-note { margin: 12px 0 0; font-size: .92rem; color: #3a4c5c; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.kicker { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--barn); text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; margin-bottom: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 14px; background: #fdeec6;
}
.card p { margin: 0; color: var(--ink-soft); }

/* modes */
.modes { background: linear-gradient(180deg, #eaf8d8, #f6fbe9); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { border-radius: var(--radius); padding: 30px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mode h3 { font-size: 1.8rem; margin-bottom: 8px; }
.mode p { margin: 0; font-size: 1.08rem; opacity: .95; }
.mode.escape { background: linear-gradient(135deg, var(--barn), #e0613a); }
.mode.trial { background: linear-gradient(135deg, #2e8bc9, #48b3e6); }
.mode .big { position: absolute; right: 18px; top: 10px; font-family: "Fredoka", sans-serif; font-size: 4.2rem; font-weight: 700; opacity: .18; }
.stars { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.star { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.star b { display: block; color: var(--sun-deep); font-size: 1.3rem; letter-spacing: 2px; }
.star span { color: var(--ink-soft); font-size: .98rem; }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.world img { width: 72px; height: 72px; flex: none; }
.world h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.world p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* gallery */
.gallery-section { background: #fdf1d6; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 640px);
  gap: 18px; overflow-x: auto; padding: 6px 16px 22px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.gallery figcaption { text-align: center; margin-top: 10px; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* family */
.family { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.family ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.family li { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.family li strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; }
.family .cast { display: flex; justify-content: center; align-items: end; gap: 6px; }
.family .cast img { width: 33%; height: auto; }

/* CTA */
.cta { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); text-align: center; }
.cta .stores { justify-content: center; }
.cta img.icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 18px; box-shadow: var(--shadow); }

/* ---------- Content pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0; }
.page-hero p { margin: 8px 0 0; font-weight: 600; color: #2e3f4f; }
.prose { padding: 48px 0 80px; }
.prose .wrap { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.callout { background: #fdeec6; border: 2px solid #f3d995; border-radius: 18px; padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: .96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fdeec6; font-family: "Fredoka", sans-serif; font-weight: 600; }

.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.contact-card p { margin: 0; color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  border-radius: 999px; background: var(--barn); color: #fff; text-decoration: none;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 5px 0 var(--barn-deep);
}
.btn:hover { color: #fff; background: #d64434; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--barn-deep); }

details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 4px 20px; margin: 12px 0; }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.12rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--barn); }
details[open] summary::after { content: "–"; }
details p, details ul { margin: 0 0 .6em; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #3a2a1a; color: #f3e6cc; padding: 44px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: #ffd76a; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .family { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; text-align: center; }
  .hero-logo { margin-inline: auto; }
  .hero p.lede { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .hero-art { transform: none; }
  .features, .worlds { grid-template-columns: 1fr 1fr; }
  .family .cast { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .features, .worlds, .mode-grid, .stars { grid-template-columns: 1fr; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .brand span { display: none; }
  .flyer { width: 64px; height: 64px; }
  .hero-logo { width: min(280px, 80%); }
  .hero p.lede { font-size: 1.08rem; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
}
