/* Seething Sheep page only. Shared pieces live in site.css; the rules for both are in design/README.md. */

/* ---------- Hero: the Meadows scene, the game's own backdrop layers and real character frames ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#35a4fe, #3aa7fd 70%); }
.hero__copy { position: relative; z-index: 6; padding-top: 84px; }
.hero__copy .col { padding-left: 0; }
.hero h1 { margin: 0.1rem 0 1rem; }
.hero .place { color: var(--ink); }
.hero__panel .lede { margin-bottom: 0.5rem; max-width: 24ch; }
.hero__panel p:not(.lede):not(.small) { max-width: 38ch; }
.hero__panel .small { color: var(--ink); max-width: 42ch; margin: 0; }
.hero__panel .btn-row { align-items: center; }

/* The big Play button: bigger than any other button on the site, with a play triangle */
.btn--play { font-size: 1.35rem; padding: 0.7em 1.5em 0.7em 1.2em; min-height: 60px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.btn--play:hover { box-shadow: 0 8px 0 var(--ink); }
.btn--play:active { box-shadow: 0 1px 0 var(--ink); }
.btn--play svg { width: 1.2em; height: 1.2em; }
.btn--play { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1239px) { .hero .btn--play { font-size: 1.12rem; padding-inline: 1.05em; } }

.hero__scene { position: relative; height: 430px; margin-top: 0.4rem; --stage-shift: -4%; }
.hero__scene .parallax__stage { top: 0; bottom: 0; right: var(--stage-shift); height: 100%; aspect-ratio: 1672 / 941; }
.hero__scene picture { display: contents; }
.hero .char { --char-scale: 1.2; width: calc(var(--w) * var(--char-scale)); bottom: 31.2%; }
.c-catapult { --x: 47%; --w: 9.5%; --ar: 0.8475; --depth: 0.55; --delay: -1.2s; }
.c-ram { --x: 57%; --w: 7.6%; --ar: 1.186; --depth: 0.62; --act-h: 96%; --delay: -0.4s; }
.c-grunt { --x: 70%; --w: 6.8%; --ar: 0.9136; --depth: 0.58; --act-h: 93%; --delay: -2s; bottom: 31.6%; }
.c-chief { --x: 79%; --w: 13.2%; --ar: 1.0025; --depth: 0.66; --act-h: 94%; --delay: -0.9s; }
.launch-pt { position: absolute; left: 51.5%; bottom: 52%; width: 1px; height: 1px; }
.land-pt { position: absolute; left: 82%; bottom: 33.5%; width: 1px; height: 1px; }
@media (min-width: 760px) {
  .hero { background: linear-gradient(#35a4fe, #5ab4fb 85%); min-height: 56.28vw; }
  .hero__copy { padding-top: 92px; padding-bottom: 2.5rem; max-width: 58%; margin-left: 0; }
  .hero__copy .col { padding-left: var(--lane); }
  .hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); }
  .hero__scene { position: absolute; left: 0; right: 0; bottom: 0; height: 56.28vw; margin: 0; }
  .hero__scene .parallax__stage { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .hero__scene .parallax__layer--sky { -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
  .hero__panel { background: var(--paper); border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 1.2rem 1.3rem 1.1rem; }
  .hero .char { --char-scale: 1.15; }
  .c-catapult { --x: 58%; }
  .c-ram { --x: 67%; }
  .c-grunt { display: none; }
  .c-chief { --x: 79%; }
  .launch-pt { left: 63%; bottom: 55%; }
  .land-pt { left: 82.5%; bottom: 33.5%; }
}
@media (min-width: 1240px) {
  .hero__copy { padding-top: 96px; padding-bottom: 3rem; max-width: 690px; }
  .hero__copy.wrap { margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
  .hero__panel { padding: 1.3rem 1.5rem 1.2rem; }
  .hero .char { --char-scale: 1; }
  .c-catapult { --x: 56%; --w: 9%; }
  .c-ram { --x: 64.6%; --w: 7.4%; }
  .c-grunt { display: block; --x: 74.8%; --w: 6.6%; }
  .c-chief { --x: 82.5%; --w: 13%; }
  .launch-pt { left: 59.6%; bottom: 50%; }
  .land-pt { left: 83.6%; bottom: 33.6%; }
}

/* ---------- See it played: a real clip and real screenshots ---------- */
.seen { background: var(--sage); }
.seen__head { margin-bottom: var(--space-5); }
.clip { position: relative; margin: 0 0 var(--space-6); }
.clip__frame { position: relative; border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; background: var(--sky); aspect-ratio: 16 / 9; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip__btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px;
  font: 800 1rem/1 var(--sans); color: var(--ink);
  padding: 0.5em 0.9em; background: var(--paper); border: var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); cursor: pointer;
}
.clip__btn[hidden] { display: none; }
.clip__btn svg { width: 1em; height: 1em; }
.clip figcaption, .shot figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.8rem; }
.shots { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.shot { margin: 0; }
.shot img { width: 100%; border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-m); background: var(--sky); aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption strong { color: var(--ink); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-6); } }
.seen .btn-row { margin-top: var(--space-6); }

/* ---------- The four worlds ---------- */
.worlds-sec .place, .worlds-sec h2 { color: var(--on-dark); }
.sec--lake .world a:not(.btn) { color: var(--ink); }
.worlds { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-6); }
.world { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-l); overflow: hidden; }
.world__art { position: relative; aspect-ratio: 16 / 10; border-bottom: var(--line); overflow: hidden; background: var(--lake); }
.world__art .parallax { position: absolute; inset: 0; --amp-x: 26px; --amp-y: 10px; }
.world__art .parallax__stage { inset: 0; }
.world__art .parallax__layer { --depth: 0.16; }
.world__art .char { --depth: 0.6; left: auto; right: 6%; bottom: 3%; width: auto; height: 66%; aspect-ratio: var(--ar, 1); }
.world__art .char--left { right: auto; left: 5%; }
.world__art .char img { left: auto; right: 0; transform: none; }
.world__art .char--left img { left: 0; right: auto; }
.world__body { padding: 1rem 1.15rem 1.25rem; display: grid; gap: 0.5rem; align-content: start; flex: 1; }
.world__body h3 { font-style: italic; font-weight: 800; font-size: 1.9rem; }
.world__body p { margin: 0; }
.world__body .chip { justify-self: start; }
.world--meadow .world__art { background: linear-gradient(#35a4fe, #7cc4ff); }
.world--later .world__art::after { content: ""; position: absolute; inset: 0; background: rgba(36, 82, 113, 0.18); pointer-events: none; z-index: 4; }
@media (min-width: 760px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- The sheep (and, below, the face cards and bosses): a card per character ---------- */
.flock-sec { background: var(--moss); }
.sheep-grid { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.sheep { display: grid; align-content: start; grid-template-columns: 112px 1fr; gap: 0.9rem; align-items: center; background: var(--paper); color: var(--ink); border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-m); padding: 0.7rem 0.9rem 0.8rem 0.7rem; }
.sheep__art { position: relative; height: 112px; border: var(--line); border-radius: var(--radius-m); overflow: hidden; background: radial-gradient(circle at 50% 68%, var(--tint, #ffe08a), var(--tint2, var(--gold)) 78%); }
.sheep__art .parallax { position: absolute; inset: 0; --amp-x: 16px; --amp-y: 8px; overflow: hidden; }
.sheep__art .parallax__stage { inset: 0; }
.sheep__art .char { --depth: 0.55; width: auto; aspect-ratio: auto; left: 0; right: 0; bottom: 7%; top: 7%; }
.sheep__art .char img.char__act { height: var(--act-h, 100%); }
.sheep__art .shade { position: absolute; left: 18%; right: 18%; bottom: 3%; height: 10%; border-radius: 50%; background: rgba(42, 29, 18, 0.28); filter: blur(3px); --depth: 0.2; }
.sheep__art .shade.parallax__layer { inset: auto 18% 3% 18%; width: auto; height: 10%; }
.sheep h3 { font-size: 1.5rem; line-height: 1.1; }
.sheep__power { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 1.1rem; margin: 0.1rem 0 0.25rem; color: var(--ink); }
.sheep p:not(.sheep__power) { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.sheep .chip { margin-top: 0.5rem; font-size: 0.82rem; max-width: 100%; white-space: normal; }
.sheep-grid--4 .sheep h3 { font-size: 1.3rem; }
.flock-group { margin-top: var(--space-7); }
.flock-group h3 { font-size: var(--step-2); margin-bottom: 0.2rem; }
.flock-group > p { margin: 0 0 var(--space-2); max-width: var(--measure); }
@media (min-width: 640px) { .sheep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1020px) {
  .sheep-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheep-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
  .sheep { grid-template-columns: 1fr; align-items: start; padding: 0.7rem; gap: 0.7rem; box-shadow: var(--shadow-l); }
  .sheep__art { height: 190px; }
  .sheep__text { padding: 0 0.4rem 0.5rem; }
}
.sheep--wide { max-width: 640px; }
@media (min-width: 1020px) { .sheep--wide { grid-template-columns: 220px 1fr; align-items: center; } .sheep--wide .sheep__art { height: 170px; } }
.sheep-grid--wide { grid-template-columns: 1fr; }
.motion .sheep:hover { transform: translateY(-3px); }
.sheep { transition: transform 0.2s; }
/* tints: each sheep's own colour behind it */
.t-ram { --tint: #fff1c8; --tint2: #f2c46a; }
.t-blaze { --tint: #ffd29a; --tint2: #f58a3a; }
.t-storm { --tint: #e3d3ff; --tint2: #9b73e0; }
.t-frost { --tint: #eaf8ff; --tint2: #8fcbe8; }
.t-flock { --tint: #f1ffb8; --tint2: #b4d92c; }
.t-sponge { --tint: #fff3a6; --tint2: #e9c21f; }
.t-crystal { --tint: #cfeaff; --tint2: #5b9de6; }
.t-pilot { --tint: #ffe0d6; --tint2: #e88b7a; }
.t-wolfsuit { --tint: #e6e2d6; --tint2: #a59d8a; }
.t-queen { --tint: #ffd6dc; --tint2: #e0707f; }
.t-jack { --tint: #ffe6c2; --tint2: #e8863a; }
.t-king { --tint: #d3f0cf; --tint2: #4f9a52; }
.t-ace { --tint: #dcdce8; --tint2: #6f6f8c; }
.t-mega { --tint: #fff0b8; --tint2: #e6a92b; }
.t-bchief { --tint: #d9f0c0; --tint2: #7fbf4a; }
.t-blumber { --tint: #efdcb8; --tint2: #b0834a; }
.t-bwitch { --tint: #e6f4ff; --tint2: #8ab8dd; }
.t-bking { --tint: #f6cdbb; --tint2: #c9543a; }

/* ---------- Face cards and bosses ---------- */
.big-sec { background: linear-gradient(var(--crag), var(--dusk) 180px); color: #efe9f7; }
.big-sec .place { color: var(--on-dark-soft); }
.big-sec h2, .big-sec h3.on-dark { color: var(--on-dark); }
.big-sec a:not(.btn) { color: #ffd27a; }
.big-sec .sheep { color: var(--ink); }
.big-sec .sheep a { color: var(--ink); }
.bosses { margin-top: var(--space-6); }
.boss-shots { display: grid; gap: var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.boss-shots figure { margin: 0; }
.boss-shots img { width: 100%; border: 3px solid var(--on-dark); border-radius: var(--radius-l); box-shadow: 0 6px 0 var(--on-dark); aspect-ratio: 16 / 9; object-fit: cover; background: var(--sky); }
.boss-shots figcaption { font-size: var(--step--1); color: var(--on-dark-soft); margin-top: 0.8rem; }
@media (min-width: 760px) { .boss-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note { font-size: var(--step--1); color: var(--on-dark-soft); max-width: var(--measure); margin-top: var(--space-4); }

/* ---------- Founders' deal ---------- */
.deal { background: var(--sage); }
.deal__grid { display: grid; gap: var(--space-6); }
.deal .promise { margin: var(--space-6) 0 var(--space-5); }
.promise h3 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--moss); }
.faq { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); max-width: 780px; }
.faq details { background: var(--paper); border: var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 900; font-size: 1.3rem; line-height: 1.2; padding: 0.85rem 1.1rem; min-height: 56px; border-radius: var(--radius-m);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 2px solid var(--ink); border-radius: 50%; font: 800 1.2rem/1 var(--sans); background: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.1rem 1rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Closing call to play: a short slice of the same Meadows scene ---------- */
.closer { position: relative; overflow: hidden; background: linear-gradient(#35a4fe, #3aa7fd 70%); }
.closer__copy { position: relative; z-index: 6; padding-top: var(--space-7); }
.closer__copy .col { padding-left: 0; }
.closer__panel { background: var(--paper); border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 1.2rem 1.3rem 1.1rem; max-width: 30rem; }
.closer__panel h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 0.4rem; }
.closer__panel .lede { margin-bottom: 0; }
.closer__panel .btn-row { margin-bottom: 0; }
.closer__scene { position: relative; height: 260px; margin-top: 0.6rem; }
.closer__scene .parallax__stage { top: 0; bottom: 0; right: -4%; height: 100%; aspect-ratio: 1672 / 941; }
.closer .char { bottom: 31.2%; --depth: 0.6; }
.c-ram2 { --x: 52%; --w: 9.5%; --ar: 1.186; --act-h: 96%; --delay: -0.7s; }
.c-grunt2 { --x: 67%; --w: 8.2%; --ar: 0.9136; --act-h: 93%; --delay: -1.8s; bottom: 31.6%; }
@media (min-width: 760px) {
  .closer { min-height: 36vw; }
  .closer__copy { padding-top: 3.2rem; padding-bottom: 3rem; max-width: 62%; margin-left: 0; }
  .closer__copy .col { padding-left: var(--lane); }
  .closer__scene { position: absolute; left: 0; right: 0; bottom: 0; height: 56.28vw; margin: 0; }
  .closer__scene .parallax__stage { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .c-ram2 { --x: 62%; --w: 8%; }
  .c-grunt2 { --x: 77%; --w: 7%; }
}
@media (min-width: 1240px) { .closer__copy.wrap { margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); max-width: 690px; } }
