/* Pondor — synchsupport.org/pond only (loaded after site.css).
   Look: a living pond. Light mode is a sunny morning (sky blue, lily green, duck yellow); dark mode is
   the same pond by moonlight (navy water, a moon, stars and fireflies). Rounder and softer than the
   other Synch pages, because it's a game.
   Same rules as the Architect and Academy pages: everything is scoped under body.pond-page main, the
   nav and footer keep the site's colours, and motion only exists behind html.js-decode (never when
   animations are off). The un-animated state is always the finished, resting pond. */

.pond-page main {
  --blue: #0f7c86; --blue-ink: #0b6a73; --blue-wash: #def3f1;
  --bg: #f3fbf9; --bg-2: #e4f4f1; --panel: #ffffff; --line: #cfe6e2;
  --ink: #0f2a2e; --ink-2: #2f4d52; --mute: #56767a;
  --duck: #ffd23f; --duck-2: #f5b82e; --on-duck: #2b2100; --bill: #f08a24;
  --goose: #fbfaf5; --goose-wing: #d6dbe2; --goose-line: #9aa6b2;
  --sky-1: #9fd8f6; --sky-2: #e3f5ff; --hill-2: #a6d895; --hill-1: #74c27a; --tree: #4fa35a; --trunk: #8a6a48;
  --w-1: #63c7d2; --w-2: #2a8ea3; --wave: rgba(255, 255, 255, .7); --glint: rgba(255, 255, 255, .75);
  --lily: #3f9d4f; --lily-2: #58b866; --flower: #ff8fb1; --reed: #4c8a43; --cattail: #7a5536;
  --sun: #ffe27a; --sun-glow: rgba(255, 214, 90, .55); --cloud: rgba(255, 255, 255, .9);
  --fly: transparent; --hp: #44c06a; --hp-low: #f0b429; --hp-out: #e5484d;
  --shadow: 0 1px 2px rgba(10, 60, 66, .06), 0 12px 30px rgba(10, 60, 66, .09);
  --round: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
}
:root[data-theme="dark"] .pond-page main {
  --blue: #4fd1c5; --blue-ink: #7fe0d6; --blue-wash: #10302f;
  --bg: #07151b; --bg-2: #0b1e25; --panel: #0f252d; --line: #1c3d46;
  --ink: #e6f6f4; --ink-2: #b9d6d3; --mute: #86a9a6;
  --goose-wing: #c3cbd6;
  --sky-1: #050f1f; --sky-2: #12304d; --hill-2: #17323a; --hill-1: #12292b; --tree: #10302b; --trunk: #2a2a2a;
  --w-1: #1a4c63; --w-2: #081e2e; --wave: rgba(190, 230, 255, .3); --glint: rgba(255, 248, 214, .8);
  --lily: #1f5a33; --lily-2: #2b6e40; --flower: #e48aa8; --reed: #24492b; --cattail: #3d2c1f;
  --sun: #f4f1de; --sun-glow: rgba(240, 236, 200, .28); --cloud: rgba(170, 190, 220, .12);
  --fly: #f7ff9b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pond-page main {
    --blue: #4fd1c5; --blue-ink: #7fe0d6; --blue-wash: #10302f;
    --bg: #07151b; --bg-2: #0b1e25; --panel: #0f252d; --line: #1c3d46;
    --ink: #e6f6f4; --ink-2: #b9d6d3; --mute: #86a9a6;
    --goose-wing: #c3cbd6;
    --sky-1: #050f1f; --sky-2: #12304d; --hill-2: #17323a; --hill-1: #12292b; --tree: #10302b; --trunk: #2a2a2a;
    --w-1: #1a4c63; --w-2: #081e2e; --wave: rgba(190, 230, 255, .3); --glint: rgba(255, 248, 214, .8);
    --lily: #1f5a33; --lily-2: #2b6e40; --flower: #e48aa8; --reed: #24492b; --cattail: #3d2c1f;
    --sun: #f4f1de; --sun-glow: rgba(240, 236, 200, .28); --cloud: rgba(170, 190, 220, .12);
    --fly: #f7ff9b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root.a11y-contrast .pond-page main { --ink: #000; --ink-2: #0c2226; --mute: #22403f; --line: #6c9590; --blue-ink: #045058; }
:root.a11y-contrast[data-theme="dark"] .pond-page main { --ink: #fff; --ink-2: #f0fffd; --mute: #cfe8e5; --line: #5f8f8a; --blue-ink: #b8fff6; }
@media (prefers-color-scheme: dark) {
  :root.a11y-contrast:not([data-theme="light"]) .pond-page main { --ink: #fff; --ink-2: #f0fffd; --mute: #cfe8e5; --line: #5f8f8a; --blue-ink: #b8fff6; }
}

.pond-page main { overflow-x: clip; background: var(--bg); color: var(--ink); }
.pond-page main .section--alt { background: var(--bg-2); }
.pond-page main h1, .pond-page main h2, .pond-page main h3 { font-family: var(--round); font-weight: 800; letter-spacing: -.015em; }
:root.a11y-font .pond-page main h1, :root.a11y-font .pond-page main h2, :root.a11y-font .pond-page main h3 { font-family: inherit; }
.pond-page main .eyebrow { color: var(--blue-ink); }
.pond-page main .btn { border-radius: 14px; }
.pond-page main .btn--primary { background: var(--duck); border-color: var(--duck-2); color: var(--on-duck); box-shadow: 0 4px 0 var(--duck-2), 0 10px 24px -12px rgba(200, 140, 0, .6); font-weight: 700; }
.pond-page main .btn--primary:hover { background: #ffdc5e; transform: translateY(-1px); }
.pond-page main .btn--primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--duck-2); }
.pond-page main .btn:not(.btn--primary) { background: var(--panel); border-color: var(--line); color: var(--ink); }
.pond-page main .btn:not(.btn--primary):hover { border-color: var(--blue); }
.pond-page main code { background: var(--blue-wash); color: var(--ink); border-radius: 6px; padding: .1em .35em; }
.pond-page main a:not(.btn) { color: var(--blue-ink); }

/* ── hero ── */
.pond-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%); }
.ph-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-sun { position: absolute; top: 46px; right: 9%; width: 96px; height: 96px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 60px 24px var(--sun-glow); }
.ph-cloud { position: absolute; width: 150px; height: 44px; border-radius: 30px; background: var(--cloud); filter: blur(.5px); }
.ph-cloud::before, .ph-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.ph-cloud::before { width: 64px; height: 64px; left: 22px; top: -30px; }
.ph-cloud::after { width: 50px; height: 50px; left: 70px; top: -20px; }
.ph-cloud.c1 { top: 70px; left: 8%; }
.ph-cloud.c2 { top: 150px; left: 58%; transform: scale(.75); opacity: .8; }
.ph-cloud.c3 { top: 36px; left: 78%; transform: scale(.55); opacity: .7; }
.ph-stars { position: absolute; inset: 0 0 40% 0; opacity: 0;
  background-image: radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 28% 48%, #fff, transparent), radial-gradient(1.4px 1.4px at 44% 14%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 63% 36%, #fff, transparent), radial-gradient(1.6px 1.6px at 72% 10%, #fff, transparent), radial-gradient(1.2px 1.2px at 90% 44%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 6% 60%, #fff, transparent), radial-gradient(1.1px 1.1px at 52% 58%, #fff, transparent), radial-gradient(1.5px 1.5px at 84% 26%, #fff, transparent); }
:root[data-theme="dark"] .pond-page .ph-stars { opacity: .9; }
:root[data-theme="dark"] .pond-page .ph-sun { width: 70px; height: 70px; box-shadow: 0 0 50px 18px var(--sun-glow), inset -12px -8px 0 rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pond-page .ph-stars { opacity: .9; }
  :root:not([data-theme="light"]) .pond-page .ph-sun { width: 70px; height: 70px; box-shadow: 0 0 50px 18px var(--sun-glow), inset -12px -8px 0 rgba(0, 0, 0, .06); }
}
.ph-text { position: relative; z-index: 2; padding-top: 64px; }
.pd-kicker { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--blue-ink); }
.pond-hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; margin-top: 8px; color: var(--ink); }
.ph-tag { font: 800 clamp(1.3rem, 2.6vw, 1.75rem)/1.2 var(--round); margin-top: 10px; color: var(--ink); }
:root.a11y-font .ph-tag { font-family: inherit; }
.pond-hero .lead { margin-top: 14px; max-width: 56ch; color: var(--ink-2); }
.pond-hero .btn-row { margin-top: 24px; }
.ph-note { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.ph-scene { display: block; width: 100%; height: clamp(230px, 34vw, 430px); margin-top: -30px; }

.st-w1 { stop-color: var(--w-1); } .st-w2 { stop-color: var(--w-2); }
.ph-hill2 { fill: var(--hill-2); } .ph-hill1 { fill: var(--hill-1); }
.ph-trees circle { fill: var(--tree); } .ph-trees rect { fill: var(--trunk); }
.ph-glint ellipse { fill: var(--glint); opacity: .55; }
.ph-waves rect { fill: var(--wave); }
.ph-lily path { fill: var(--lily); } .ph-lily.l2 path, .ph-lily.l4 path { fill: var(--lily-2); }
.ph-flower circle { fill: var(--flower); } .ph-flower .mid { fill: #ffe27a; }
.ph-reeds path { fill: none; stroke: var(--reed); stroke-width: 4; stroke-linecap: round; }
.ph-reeds .leaf { fill: var(--reed); stroke: none; }
.ph-reeds rect { fill: var(--cattail); }
.ph-reeds { transform-box: fill-box; transform-origin: 50% 100%; }
.ph-flies circle { fill: var(--fly); filter: drop-shadow(0 0 5px var(--fly)); }
.ph-ripples circle { fill: none; stroke: var(--wave); stroke-width: 2.5; }

/* birds */
.d-body { fill: var(--duck); } .d-wing { fill: var(--duck-2); } .d-bill { fill: var(--bill); }
.g-body { fill: var(--goose); } .g-neck { fill: none; stroke: var(--goose); stroke-width: 15; stroke-linecap: round; } .g-wing { fill: var(--goose-wing); } .g-bill { fill: var(--bill); }
.ph-goose .g-body { stroke: var(--goose-line); stroke-width: .8; stroke-opacity: .5; }
.eye { fill: #1b1b1b; }
.ph-duck { transform: translate(640px, 318px); cursor: pointer; outline: none; }
.ph-goose { transform: translate(380px, 342px); cursor: pointer; outline: none; }
.ph-duck:focus-visible .bob, .ph-goose:focus-visible .bob { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 4px var(--blue)); }
.bubble rect, .bubble path { fill: #fff; stroke: #1f3d42; stroke-width: 2; }
.bubble text { font: 900 17px var(--round); fill: #1f3d42; }
.bubble { opacity: 0; transition: opacity .2s; pointer-events: none; }
.ph-duck.is-quack .quack, .ph-goose.is-quack .honk { opacity: 1; }

/* hero motion */
.js-decode .ph-cloud.c1 { animation: ph-drift 70s linear infinite; }
.js-decode .ph-cloud.c2 { animation: ph-drift 95s linear -40s infinite; }
.js-decode .ph-cloud.c3 { animation: ph-drift 120s linear -80s infinite; }
@keyframes ph-drift { from { translate: -40vw 0; } to { translate: 60vw 0; } }
.js-decode .ph-stars { animation: ph-twinkle 4s ease-in-out infinite alternate; }
@keyframes ph-twinkle { to { filter: brightness(.6); } }
.js-decode .ph-duck { animation: ph-duck 20s linear infinite; }
.js-decode .ph-goose { animation: ph-goose 20s linear infinite; }
@keyframes ph-duck {
  0% { transform: translate(-120px, 318px); } 44% { transform: translate(560px, 318px); } 56% { transform: translate(650px, 318px); }
  70% { transform: translate(960px, 318px); } 100% { transform: translate(1340px, 318px); }
}
@keyframes ph-goose {
  0%, 10% { transform: translate(-260px, 342px); } 44% { transform: translate(300px, 342px); } 56% { transform: translate(520px, 342px); }
  70% { transform: translate(800px, 342px); } 100% { transform: translate(1360px, 342px); }
}
.js-decode .ph-goose .honk { animation: ph-honk 20s linear infinite; }
.js-decode .ph-duck .eek { animation: ph-eek 20s linear infinite; }
@keyframes ph-honk { 0%, 50% { opacity: 0; } 52%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes ph-eek { 0%, 54% { opacity: 0; } 56%, 68% { opacity: 1; } 71%, 100% { opacity: 0; } }
.js-decode .bob { animation: ph-bob 1.8s ease-in-out infinite alternate; }
.js-decode .ph-goose .bob { animation-duration: 2.3s; }
@keyframes ph-bob { from { transform: translateY(-1.5px) rotate(-1.5deg); } to { transform: translateY(2px) rotate(1.5deg); } }
.js-decode .ph-waves rect { animation: ph-wave 6s ease-in-out infinite alternate; }
.js-decode .ph-waves .w2, .js-decode .ph-waves .w5 { animation-duration: 7.5s; animation-delay: -2s; }
.js-decode .ph-waves .w3, .js-decode .ph-waves .w6 { animation-duration: 5s; animation-delay: -3s; }
@keyframes ph-wave { from { transform: translateX(-18px); opacity: .35; } to { transform: translateX(18px); opacity: 1; } }
.js-decode .ph-glint ellipse { animation: ph-glint 3s ease-in-out infinite alternate; }
.js-decode .ph-glint ellipse:nth-child(2) { animation-delay: -1s; } .js-decode .ph-glint ellipse:nth-child(3) { animation-delay: -2s; }
@keyframes ph-glint { from { opacity: .25; } to { opacity: .75; } }
.js-decode .ph-lily path, .js-decode .ph-lily .ph-flower { animation: ph-float 3.4s ease-in-out infinite alternate; }
.js-decode .ph-lily.l2 path, .js-decode .ph-lily.l2 .ph-flower { animation-duration: 4.2s; animation-delay: -1s; }
.js-decode .ph-lily.l3 path { animation-duration: 3s; animation-delay: -2s; }
.js-decode .ph-lily.l4 path { animation-duration: 3.8s; animation-delay: -.5s; }
@keyframes ph-float { from { transform: translateY(-1.5px); } to { transform: translateY(2px); } }
.js-decode .ph-reeds { animation: ph-sway 5s ease-in-out infinite alternate; }
.js-decode .ph-reeds.right { animation-duration: 6.2s; animation-delay: -2s; }
@keyframes ph-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.js-decode .ph-flies circle { animation: ph-fly 6s ease-in-out infinite alternate, ph-blink 2.4s ease-in-out infinite alternate; }
.js-decode .ph-flies circle:nth-child(2n) { animation-duration: 8s, 3s; animation-delay: -3s, -1s; }
.js-decode .ph-flies circle:nth-child(3n) { animation-duration: 7s, 1.8s; animation-delay: -5s, -.6s; }
@keyframes ph-fly { from { transform: translate(-14px, 8px); } to { transform: translate(16px, -12px); } }
@keyframes ph-blink { from { opacity: .15; } to { opacity: 1; } }
.ph-ripples circle { animation: ph-ripple 1.4s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes ph-ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(3); opacity: 0; } }

/* ── shared section bits ── */
.pd-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 901px) { .pd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pd-split--flip > :first-child { order: 2; } }
.pd-text .h2 { margin-top: 6px; }
.pd-text > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); }
.pd-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.pd-list li { position: relative; padding-left: 26px; }
.pd-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 10px; border-radius: 50%; background: var(--lily-2); box-shadow: inset -4px 0 0 rgba(0, 0, 0, .12); }
.pd-list li b { color: var(--ink); }
.pd-small { margin-top: 18px; color: var(--mute); font-size: .92rem; text-align: center; }
.seg-btn { font: 700 .92rem var(--font); padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.seg-btn:hover { border-color: var(--blue); }
.seg-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .pond-page .seg-btn[aria-pressed="true"] { color: #04201e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pond-page .seg-btn[aria-pressed="true"] { color: #04201e; } }
.art { margin: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.art img { display: block; width: 100%; height: auto; }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; align-items: start; }
@media (max-width: 760px) { .sheets { grid-template-columns: 1fr; } }

/* ── hatch ── */
.hatch { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.hatch__svg { width: 100%; max-width: 300px; height: auto; overflow: visible; margin: 0 auto; display: block; }
.nest-back { fill: #8b6a3e; } .nest-front { fill: #a9834e; }
.straw path { stroke: #d6b26e; stroke-width: 3; stroke-linecap: round; }
.shell { fill: #fffaf0; stroke: #e2d6bd; stroke-width: 2; }
.crack { fill: none; stroke: #8b7a5c; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; }
.shell-top, .chick, .egg, .crumbs circle { transform-box: fill-box; }
.shell-top { transform-origin: center; transform: translate(52px, -58px) rotate(36deg); }
.egg { transform-origin: 50% 100%; }
.chick { transform-origin: 50% 100%; }
.chick-body { fill: #ffd84d; } .chick-bill { fill: #f08a24; } .chick-wing { fill: #f5c232; }
.sp-goose .chick-body { fill: #e6dca0; } .sp-goose .chick-wing { fill: #cfc287; } .sp-goose .chick-bill { fill: #4a4a46; }
.crumbs circle { fill: #e0a95c; opacity: 0; transform-origin: center; }
.hatch__pick { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.hatch__cap { margin-top: 12px; font-weight: 700; color: var(--ink-2); min-height: 1.6em; }
.js-decode .hatch__svg.run .egg { animation: h-wobble 1.1s ease-in-out both; }
.js-decode .hatch__svg.run .crack { animation: ah-crack .35s ease .9s both; }
.js-decode .hatch__svg.run .shell-top { animation: h-pop .6s cubic-bezier(.2, .8, .3, 1.2) 1.3s both; }
.js-decode .hatch__svg.run .chick { animation: h-chick .6s cubic-bezier(.3, 1.5, .5, 1) 1.4s both, h-hop 1.6s ease-in-out 2.4s 2; }
.js-decode .hatch__svg.run .crumbs circle { animation: h-crumb .9s ease-out 1.35s both; }
.js-decode .hatch__svg.run .crumbs circle:nth-child(2n) { animation-delay: 1.45s; }
@keyframes h-wobble { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-7deg); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-5deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
@keyframes ah-crack { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes h-pop { from { transform: none; } }
@keyframes h-chick { from { transform: translateY(48px); } }
@keyframes h-hop { 0%, 100% { transform: none; } 25% { transform: translateY(-8px) rotate(-3deg); } 50% { transform: none; } 75% { transform: translateY(-5px) rotate(3deg); } }
@keyframes h-crumb { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) translateY(10px); } }

/* ── care ── */
.care { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.care__head { position: relative; display: flex; gap: 16px; align-items: center; }
.care__bird { width: 96px; height: auto; flex: none; background: var(--blue-wash); border-radius: 18px; padding: 8px; overflow: visible; }
.care__bob { transform-box: fill-box; transform-origin: 50% 100%; }
.care__bob.is-happy { animation: h-hop .8s ease-in-out; }
.care__name { font: 800 1.2rem var(--round); }
.care__name .muted { font-weight: 600; font-size: .95rem; }
.care__lvl { color: var(--ink-2); font-size: .92rem; }
.xp { display: block; width: 180px; max-width: 100%; height: 8px; border-radius: 6px; background: var(--bg-2); margin-top: 6px; overflow: hidden; }
.xp i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--blue); border-radius: inherit; transition: width .5s cubic-bezier(.3, 1.2, .5, 1); }
.care__pop { position: absolute; left: 60px; top: -8px; font: 800 .95rem var(--round); color: var(--blue-ink); opacity: 0; pointer-events: none; }
.care__pop.is-on { animation: c-pop 1s ease-out; }
@keyframes c-pop { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 20px; }
.meter { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.meter b { display: block; height: 10px; border-radius: 7px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--hp); transition: width .6s cubic-bezier(.3, 1.2, .5, 1), background .3s; }
.meter i.is-low { background: var(--hp-low); }
.care__btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
@media (max-width: 480px) { .care__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.care__btn { font: 700 .92rem var(--font); padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: transform .12s, border-color .15s; }
.care__btn:hover { border-color: var(--blue); }
.care__btn:active { transform: scale(.96); }
.care__msg { margin-top: 12px; min-height: 1.5em; }

/* ── fight ── */
.fight { max-width: 760px; margin: 34px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.fighters { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.fighter { padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); transition: transform .2s; }
.fighter[data-side="b"] { text-align: right; }
.fighter__name { font: 800 1.1rem var(--round); }
.fighter__meta { font-size: .85rem; }
.fight__vs { font: 900 1.1rem var(--round); color: var(--mute); }
.hp { display: block; height: 12px; border-radius: 8px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.hp i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--hp); border-radius: inherit; transition: width .5s ease, background .3s; }
.fighter[data-side="b"] .hp i { margin-left: auto; }
.hp i.is-low { background: var(--hp-low); } .hp i.is-out { background: var(--hp-out); }
.hp__n { font-size: .8rem; color: var(--mute); margin-top: 4px; font-variant-numeric: tabular-nums; }
.fighter.is-hit { animation: f-hit .4s ease; }
.fighter.is-miss { animation: f-miss .5s ease; }
@keyframes f-hit { 20% { transform: translateX(-6px); background: color-mix(in srgb, var(--hp-out) 14%, var(--bg)); } 60% { transform: translateX(5px); } }
@keyframes f-miss { 50% { transform: translateX(10px) rotate(2deg); } }
.fight__log { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: .96rem; color: var(--ink-2); min-height: 12em; }
.fight__log li { padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.fight__log li.is-new { animation: msg-pop .35s ease; }
.fight__log li.is-wait { visibility: hidden; }
@keyframes msg-pop { from { opacity: 0; transform: translateY(6px); } }
.fight__win { background: color-mix(in srgb, var(--duck) 30%, var(--panel)) !important; color: var(--ink) !important; }
.fight__again { margin-top: 14px; }
@media (max-width: 560px) { .fighters { grid-template-columns: 1fr; } .fight__vs { text-align: center; } .fighter[data-side="b"] { text-align: left; } .fighter[data-side="b"] .hp i { margin-left: 0; } }

/* ── roles ── */
.roles { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 901px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-group { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.role-group h3 { font-size: 1.15rem; color: var(--blue-ink); }
.role-group ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.role-group li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.role-group li b { display: block; color: var(--ink); font-family: var(--round); }
.role-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-wash); font-size: 1.25rem; }
.role-group .pd-small { text-align: left; margin-top: 16px; }

/* ── genes ── */
.genes { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.genes__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.genes__who { font-weight: 800; font-size: .82rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.strip i { height: 30px; border-radius: 8px; display: grid; place-items: center; font: 900 1rem var(--round); font-style: normal; color: #fff; }
.g1 { background: #ff8fb1; } .g2 { background: #7cc8ff; } .g3 { background: #ffd23f; } .g4 { background: #9bdf7c; }
.g5 { background: #b49cff; } .g6 { background: #ffb36b; } .g7 { background: #5fd3c4; } .g8 { background: #f27474; }
.g-q { background: linear-gradient(135deg, #6d5bd0, #2bb3c0); box-shadow: 0 0 0 0 rgba(109, 91, 208, .5); }
.genes__mix { display: grid; place-items: center; }
.genes__mix svg { width: 26px; height: 26px; fill: none; stroke: var(--mute); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.genes__row--chick .strip { padding: 6px; margin: -6px; border-radius: 12px; background: var(--blue-wash); }
.js-decode .genes .genes__row:nth-child(1) .strip i { animation: g-in .4s ease both; }
.js-decode .genes .genes__row:nth-child(2) .strip i { animation: g-in .4s ease .3s both; }
.js-decode .genes .genes__row--chick .strip i { animation: g-drop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.js-decode .genes .genes__row--chick .strip i:nth-child(1) { animation-delay: .9s; } .js-decode .genes .genes__row--chick .strip i:nth-child(2) { animation-delay: 1.05s; }
.js-decode .genes .genes__row--chick .strip i:nth-child(3) { animation-delay: 1.2s; } .js-decode .genes .genes__row--chick .strip i:nth-child(4) { animation-delay: 1.35s; }
.js-decode .genes .genes__row--chick .strip i:nth-child(5) { animation-delay: 1.5s; }
.js-decode .genes .genes__row--chick .strip .g-q { animation: g-drop .45s cubic-bezier(.3, 1.5, .5, 1) 1.75s both, g-glow 2s ease-out 2.4s infinite; }
@keyframes g-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes g-drop { from { opacity: 0; transform: translateY(-26px) scale(.8); } }
@keyframes g-glow { 0% { box-shadow: 0 0 0 0 rgba(109, 91, 208, .55); } 100% { box-shadow: 0 0 0 14px rgba(109, 91, 208, 0); } }
.ticker { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 14px; overflow: hidden; }
.ticker__in { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 700 .9rem var(--round); color: var(--ink-2); }
.ticker__in span::before { content: '•'; margin-right: 8px; color: var(--blue); }
.ticker.is-moving { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker.is-moving .ticker__in { flex-wrap: nowrap; width: max-content; animation: g-tick 40s linear infinite; }
.ticker.is-moving:hover .ticker__in { animation-play-state: paused; }
@keyframes g-tick { to { transform: translateX(-50%); } }

/* ── postcard ── */
.postcard { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); transform: rotate(1deg); }
.postcard__svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.postcard { --pc-sky: #a9dcf7; --pc-hill: #9fd38f; --pc-bank: #74c27a; --pc-water: #4fb4c6; --pc-sun: #ffe27a; --pc-tree: #4fa35a; --pc-light: 0; --pc-stars: 0; --pc-snow: 0; }
.postcard[data-look="dusk"] { --pc-sky: #f6a37a; --pc-hill: #b88a6a; --pc-bank: #8f6f58; --pc-water: #b0708a; --pc-sun: #ffcf6e; --pc-tree: #6b5a4c; --pc-light: .7; }
.postcard[data-look="night"] { --pc-sky: #0c1f3a; --pc-hill: #1a3540; --pc-bank: #142a2c; --pc-water: #173f58; --pc-sun: #f4f1de; --pc-tree: #12322c; --pc-light: 1; --pc-stars: 1; }
.postcard[data-look="snow"] { --pc-sky: #dfe9f3; --pc-hill: #f4f8fb; --pc-bank: #e8eef4; --pc-water: #9cc3d6; --pc-sun: #fff6d8; --pc-tree: #3f6f5c; --pc-snow: 1; }
.pc-sky { fill: var(--pc-sky); } .pc-hill { fill: var(--pc-hill); } .pc-bank { fill: var(--pc-bank); } .pc-water { fill: var(--pc-water); }
.pc-sun { fill: var(--pc-sun); } .pc-tree circle { fill: var(--pc-tree); } .pc-tree rect { fill: #7a5a3a; }
.pc-lantern path { fill: none; stroke: #5b4b3a; stroke-width: 3; } .pc-lantern rect { fill: #ffcf5c; } .pc-light { fill: #ffd76a; opacity: calc(var(--pc-light) * .45); filter: blur(4px); }
.pc-ring ellipse { fill: #ff6b6b; } .pc-ring .pc-ring-in { fill: var(--pc-water); }
.pc-frog ellipse, .pc-frog circle { fill: #4caf50; } .pc-frog .pc-pad { fill: #2e7d32; }
.pc-stars circle { fill: #fff; opacity: var(--pc-stars); } .pc-snow circle { fill: #fff; opacity: var(--pc-snow); stroke: #9fb6cc; stroke-width: .8; }
.pc-hat { fill: #222; }
.postcard__svg * { transition: fill .6s ease, opacity .6s ease; }
.js-decode .pc-snow circle { animation: pc-fall 5s linear infinite; }
.js-decode .pc-snow circle:nth-child(2n) { animation-duration: 7s; animation-delay: -3s; }
.js-decode .pc-snow circle:nth-child(3n) { animation-duration: 6s; animation-delay: -1.5s; }
@keyframes pc-fall { from { transform: translateY(-20px); } to { transform: translateY(220px); } }
.js-decode .pc-duck { animation: ph-bob 1.8s ease-in-out infinite alternate; }
.postcard__ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.postcard__lbl { font-weight: 800; font-size: .86rem; color: var(--mute); }
.postcard .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.postcard .seg-btn { padding: 7px 11px; font-size: .86rem; }

/* ── owners + finale ── */
.owner-grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 821px) { .owner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pond-page main .card { background: var(--panel); border-color: var(--line); border-radius: 20px; }
.pd-finale { position: relative; text-align: center; padding: 56px 24px 40px; border-radius: 26px; color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--w-1) 30%, var(--panel)), var(--panel)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pd-finale h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pd-steps { list-style: none; counter-reset: st; padding: 0; margin: 22px auto 0; max-width: 720px; display: grid; gap: 10px; text-align: left; }
@media (min-width: 821px) { .pd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pd-steps li { counter-increment: st; position: relative; padding: 14px 14px 14px 52px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.pd-steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--duck); color: var(--on-duck); font: 900 .9rem/26px var(--round); text-align: center; }
.pd-steps b { color: var(--ink); }
.pd-finale .btn-row { justify-content: center; margin-top: 24px; }
.ducklings { position: absolute; left: 0; right: 0; top: -24px; height: 30px; overflow: hidden; pointer-events: none; }
.ducklings i { position: absolute; bottom: 0; left: 50%; width: 30px; height: 26px; margin-left: -60px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -46 90 72'%3E%3Cpath fill='%23ffd23f' d='M-36 4 C-36 -14 -14 -20 6 -16 C 22 -14 30 -6 32 4 C 30 18 10 22 -10 22 C -28 22 -36 16 -36 4 Z'/%3E%3Ccircle fill='%23ffd23f' cx='22' cy='-24' r='15'/%3E%3Cpath fill='%23f08a24' d='M34 -27 C 44 -28 48 -24 47 -21 C 42 -18 37 -19 33 -21 Z'/%3E%3Ccircle fill='%231b1b1b' cx='26' cy='-28' r='2.6'/%3E%3C/svg%3E"); }
.ducklings i:nth-child(1) { margin-left: 30px; } .ducklings i:nth-child(2) { margin-left: -6px; width: 24px; } .ducklings i:nth-child(3) { margin-left: -36px; width: 24px; } .ducklings i:nth-child(4) { margin-left: -66px; width: 24px; }
.js-decode .ducklings i { left: 0; margin-left: 0; animation: dk-walk 22s linear infinite, dk-waddle .4s ease-in-out infinite alternate; }
.js-decode .ducklings i:nth-child(2) { animation-delay: -.5s, -.1s; } .js-decode .ducklings i:nth-child(3) { animation-delay: -1s, -.2s; } .js-decode .ducklings i:nth-child(4) { animation-delay: -1.5s, -.3s; }
@keyframes dk-walk { from { translate: -60px 0; } to { translate: calc(100cqw + 60px) 0; } }
.ducklings { container-type: inline-size; }
@keyframes dk-waddle { from { rotate: -7deg; } to { rotate: 7deg; } }

@media (max-width: 900px) {
  .ph-text { padding-top: 40px; }
  .ph-sun { top: 20px; right: 6%; width: 64px; height: 64px; }
  .ph-scene { margin-top: 0; }
}
@media (max-width: 560px) {
  .pond-page main .section { padding-top: 56px; padding-bottom: 56px; }
  .hatch, .care, .fight, .genes, .role-group { padding: 18px; }
}

/* chapter demos wait on frame one until they scroll in (pond.js adds .is-on) */
html.pond-ready [data-play]:not(.is-on), html.pond-ready [data-play]:not(.is-on) * { animation-play-state: paused !important; }
