/* LeafPulse website, version B: everything below the hero and the inner pages.
   Compact type, soft cards, drawn garden strips; day = meadow paper, night = Night Garden navy. */

:root {
  --bg: #F3F6EC; --bg-soft: #E9F0DF; --card: #FFFFFF; --card-line: rgba(30, 60, 36, .08);
  --leaf-soft: #DDEFD0; --wood1: #EBC394; --wood2: #B8854F;
  --deep: #1E4A2E; --deep-ink: #F2F8EA;
  --lawn: #4F8F45; --foot: #3E7A3C; --foot-ink: #F2F8EA;
  --shadow: 0 12px 34px rgba(36, 60, 32, .1);
}
:root[data-theme="dark"] {
  --bg: #111A31; --bg-soft: #16213D; --card: #1C2848; --card-line: rgba(255, 255, 255, .07);
  --leaf-soft: #22385A; --deep: #2A3F6E; --deep-ink: #F0F4FF;
  --lawn: #233A33; --foot: #1C2E2A; --foot-ink: #E6EEE2;
  --shadow: 0 12px 34px rgba(0, 0, 0, .3);
}
body { background: var(--bg); transition: background-color 1.2s var(--ease); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ---------- header links + mobile menu ---------- */
.nav { position: relative; gap: 16px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: background-color .4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--glass); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 64px; right: 16px; flex-direction: column; min-width: 180px; padding: 8px; margin: 0;
    background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---------- reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- shared blocks ---------- */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-soft { background: var(--bg-soft); transition: background-color 1.2s var(--ease); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-family: Fredoka, Manrope, sans-serif; font-weight: 600; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; margin: 10px 0 10px; color: var(--ink); text-wrap: balance; }
h3 { font-size: 16px; font-weight: 800; margin: 12px 0 4px; color: var(--ink); }
.section-head p, .lead { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); transition: background-color 1.2s var(--ease); }
.card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.chip { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--leaf-soft); color: var(--accent); flex: none; }
.chip svg { width: 20px; height: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-decoration: none; margin-top: 18px; }
.text-link svg, .pill svg.inline { width: 16px; height: 16px; }
.pill > svg:last-child:not(:first-child) { width: 16px; height: 16px; }
.badge-premium { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6B4A12; background: linear-gradient(135deg, #FFE59A, #F2B33D); padding: 4px 9px; border-radius: 999px; }
.badge-premium.sm { font-size: 9.5px; padding: 3px 7px; margin-left: 4px; }

/* phone screenshots */
.phone { position: relative; width: 100%; max-width: 230px; margin: 0 auto; padding: 6px; border-radius: 36px; background: #1A1F1B; box-shadow: 0 18px 40px rgba(25, 45, 30, .25), inset 0 0 0 1.5px #3C443D; }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.phone.big { max-width: 270px; }
.on-dark { display: none !important; }
[data-theme="dark"] .on-dark { display: block !important; }
[data-theme="dark"] .on-light { display: none !important; }

/* hand-written doodle notes */
.doodle { position: absolute; font-family: Caveat, cursive; font-weight: 700; font-size: 24px; color: var(--ink); white-space: nowrap; }
.doodle::after { content: ""; position: absolute; width: 44px; height: 30px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30' fill='none' stroke='%232F6A34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4c10 2 22 8 30 20'/%3E%3Cpath d='M26 22l8 3 1-8'/%3E%3C/svg%3E"); }
[data-theme="dark"] .doodle::after { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
.split-art .d1 { top: 18%; left: calc(50% + 120px); transform: rotate(-6deg); }
.split-art .d1::after { left: -36px; top: 26px; transform: scaleX(-1); }
.split-art .d2 { bottom: 16%; right: calc(50% + 128px); transform: rotate(5deg); }
.split-art .d2::after { left: calc(100% + 4px); top: -20px; transform: rotate(-20deg); }

/* ---------- home: steps ---------- */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--card-line); border-radius: 26px; padding: 18px 16px 20px; box-shadow: var(--shadow); text-align: center; transition: background-color 1.2s var(--ease); }
.step .phone { max-width: 190px; margin-top: 14px; }
.step h3 { margin-top: 16px; }
.step p { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.marker { display: inline-flex; align-items: center; gap: 6px; font-family: Caveat, cursive; font-weight: 700; font-size: 22px; color: #4A2E16; padding: 2px 14px 2px 12px; border-radius: 8px; background: linear-gradient(180deg, var(--wood1), var(--wood2)); box-shadow: 0 3px 0 #8A5A35, 0 6px 14px rgba(70, 40, 10, .18); transform: rotate(-3deg); }
.step:nth-child(2n) .marker { transform: rotate(2.5deg); }
.marker b { font-family: Fredoka, sans-serif; font-size: 13px; background: rgba(255, 255, 255, .55); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { gap: 12px; } .step { padding: 14px 10px 16px; border-radius: 20px; } .step .phone { max-width: 150px; } .step p { font-size: 12.5px; } .marker { font-size: 19px; } }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.flip .split-art { order: 2; }
.split-art { position: relative; padding: 10px 0; }
.split-art::before { content: ""; position: absolute; inset: 8% 12%; border-radius: 50%; background: radial-gradient(closest-side, var(--leaf-soft), transparent); z-index: -1; }
.split-copy .eyebrow { margin-bottom: 4px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.tick { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--accent); flex: none; }
.tick svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-art { order: 0; }
  .split-art { padding-top: 40px; padding-bottom: 40px; }
  .split-art .d1 { top: 0; left: auto; right: 6px; }
  .split-art .d1::after { left: -40px; top: 14px; }
  .split-art .d2 { bottom: 0; right: auto; left: 6px; }
  .split-art .d2::after { left: calc(100% - 6px); top: -30px; transform: rotate(-75deg); }
  .doodle { font-size: 20px; }
}

/* ---------- premium teaser ---------- */
.premium-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: linear-gradient(135deg, #DDEFD0, #F6EFCF); box-shadow: var(--shadow); }
[data-theme="dark"] .premium-strip { background: linear-gradient(135deg, #1F3354, #2C2A4E); }
.premium-strip p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 8px; background: var(--card); border-radius: 18px; font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--card-line); }
.tiles svg { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 820px) { .premium-strip { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .tiles li { font-size: 12px; padding: 12px 6px; } }

/* ---------- trio / mini grid ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .trio, .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trio, .mini-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 6vw, 72px) 0; }
.cta-card { text-align: center; padding: clamp(28px, 5vw, 56px) 20px; border-radius: 34px; background: linear-gradient(180deg, var(--sky1), var(--sky3)); box-shadow: var(--shadow); transition: background .8s var(--ease); }
.cta-card p { color: var(--ink-soft); font-size: 15px; margin: 0 auto 20px; max-width: 32em; }
.cta-card .store-row { justify-content: center; }

/* ---------- premium page ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare h2 { font-size: clamp(22px, 2.4vw, 28px); }
.plain { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.plain li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plain li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--leaf-soft) no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6A34' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plan-premium { background: var(--deep); border-color: transparent; }
.plan-premium .eyebrow { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #FFE59A; }
.plan-premium h2, .plan-premium .plain li { color: var(--deep-ink); }
.plan-premium .plain li::before { background-color: #FFE59A; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.how { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow); transition: background-color 1.2s var(--ease); }
.how summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 800; font-size: 15px; color: var(--ink); }
.how summary::-webkit-details-marker { display: none; }
.how-t { flex: 1; }
.how-i { color: var(--ink-soft); display: grid; transition: transform .5s var(--ease), color .5s var(--ease); }
.how-i svg { width: 20px; height: 20px; }
.how[open] .how-i { color: var(--accent); transform: rotate(180deg); }
.how p { margin: 0; padding: 0 16px 16px 66px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.plan { position: relative; text-align: center; padding-top: 26px; }
.plan h3 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.plan-hl { border: 2px solid #F2B33D; }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 800; color: #6B4A12; background: linear-gradient(135deg, #FFE59A, #F2B33D); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.callout { display: flex; align-items: center; gap: 14px; }
.band .callout { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.callout p { margin: 0; font-size: 14px; color: var(--ink); }
.fine { font-size: 12px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; }
@media (max-width: 720px) { .compare, .how-grid { grid-template-columns: 1fr; } .plans { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- inner page top: sky + little garden ---------- */
.page-top { position: relative; background: linear-gradient(180deg, var(--sky1), var(--sky2) 70%, var(--sky3)); }
.page-top .site-header { position: relative; }
.page-intro { width: min(760px, 100% - 32px); margin: 0 auto; text-align: center; padding: clamp(18px, 4vw, 40px) 0 0; }
.page-intro h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 14px 0 10px; }
.page-intro .lede { margin: 0 auto; max-width: 34em; }
.mini-garden { position: relative; height: clamp(84px, 11vw, 130px); margin-top: 18px; }
.mini-garden svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[data-theme="dark"] .mini-garden .mg-land { filter: brightness(.45) saturate(.85); }
.mg-land { transition: filter 1.4s var(--ease); }
.mg-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s var(--ease) infinite alternate; }
.mg-head { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.8s var(--ease), filter 1.8s var(--ease); }
[data-theme="dark"] .mg-head { transform: rotate(48deg) scale(.82); filter: brightness(.7); }
[data-theme="dark"] .mg-head.r { transform: rotate(-48deg) scale(.82); }
.mg-face, .mg-z { opacity: 0; transition: opacity 1.4s var(--ease); }
[data-theme="dark"] .mg-face, [data-theme="dark"] .mg-z { opacity: 1; }
.mg-z { font-family: Caveat, cursive; font-weight: 700; font-size: 16px; fill: #EEF0FF; }
.mg-fly { animation: mgfly 34s linear infinite; }
.mg-bee { animation: mgbee 26s linear infinite; animation-delay: -9s; }
@keyframes mgfly { 0% { transform: translate(-60px, 62px); } 50% { transform: translate(600px, 34px); } 100% { transform: translate(1260px, 60px); } }
@keyframes mgbee { 0% { transform: translate(-40px, 84px); } 50% { transform: translate(620px, 70px); } 100% { transform: translate(1260px, 90px); } }
.mg-bob { animation: bob 1.6s var(--ease) infinite alternate; }
.mg-bob.b { animation-duration: .9s; }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.mg-ff { animation: ff 2.6s var(--ease) infinite alternate; }
@keyframes ff { from { opacity: .2; } to { opacity: 1; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 20px; }
.foot-garden { margin-top: 0; }
.foot-inner { background: linear-gradient(180deg, var(--lawn), var(--foot) 60px); color: var(--foot-ink); padding: 18px 0 28px; transition: background 1.2s var(--ease); }
.foot-inner > * { width: min(1120px, 100% - 32px); margin-left: auto; margin-right: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-top: 10px; }
.site-footer .brand { color: var(--foot-ink); font-size: 20px; }
.site-footer .brand svg { color: #CDEBA8; }
.footer-tag, .made-by { font-size: 13px; line-height: 1.5; opacity: .85; margin: 8px 0 0; }
.site-footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 10px; opacity: .75; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--foot-ink); text-decoration: none; font-size: 13.5px; }
.site-footer a:hover { text-decoration: underline; }
.fineprint { font-size: 11.5px; line-height: 1.55; opacity: .7; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- legal + help documents (content kept word for word from the main site) ---------- */
.doc { padding: clamp(28px, 5vw, 56px) 0 24px; }
.doc .wrap { width: min(780px, 100% - 32px); }
.doc h1 { font-family: Fredoka, Manrope, sans-serif; font-weight: 600; font-size: clamp(32px, 4.2vw, 48px); margin: 12px 0 8px; }
.doc h2 { font-size: clamp(21px, 2.3vw, 26px); margin: 34px 0 10px; }
.doc h3 { margin-top: 8px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.updated { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.doc .card { margin: 18px 0; }
.doc .card.summary { background: var(--leaf-soft); border-color: transparent; box-shadow: none; }
.doc .card.summary ul { margin: 8px 0 0; padding-left: 20px; }
.doc-table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--card-line); color: var(--ink-soft); min-width: 130px; }
.doc-table th { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); }
.doc .callout { display: block; margin: 28px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); font-size: 14px; color: var(--ink-soft); box-shadow: var(--shadow); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.support-grid .card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.support-grid .card p { flex: 1; }
.support-grid .pill { margin-top: 8px; }
.icon-chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--accent); }
.icon-chip svg { width: 20px; height: 20px; }
.chip-feed { background: #F6EBCB; color: #9A7428; }
[data-theme="dark"] .chip-feed { background: #3A3420; color: #E9C76E; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 0 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 14.5px; padding: 14px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; }
.steps { padding-left: 22px; }
.credit-list { padding-left: 20px; }
@media (max-width: 600px) { .support-grid { grid-template-columns: 1fr; } }
.card .pill-ghost { background: var(--bg-soft); border-color: var(--card-line); }

/* ---------- roaming creatures (behind the content, in the empty margins) ---------- */
.roam { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.hero, .page-top { z-index: 3; }
main > .band > .wrap, main > .wrap, .doc, .site-footer { position: relative; z-index: 2; }
.roam .rush .wing { animation-duration: .12s; }

/* plant nooks beside the screenshots: daisies + ladybug by day, glowing mushrooms + moonflower by night */
.nook { position: absolute; width: 140px; height: auto; bottom: 6%; left: calc(50% + 146px); pointer-events: none; }
.split.flip .nook { left: auto; right: calc(50% + 146px); }
.nk-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: swaySlow 6.5s var(--ease) infinite alternate; }
.nk-pulse { animation: nkPulse 3.2s var(--ease) infinite alternate; }
@keyframes nkPulse { from { opacity: .45; } to { opacity: 1; } }
.nk-ff { animation: ff 1.8s var(--ease) infinite alternate; }
@media (max-width: 1000px) { .nook { display: none; } }

/* ---------- real balconies: photo (day/night) with app labels pinned to the plants ---------- */
.balcony-stage { position: relative; margin-bottom: 40px; }
.balcony-photo { position: relative; aspect-ratio: 3 / 2; border-radius: 30px; box-shadow: 0 24px 60px rgba(25, 45, 30, .22); }
.balcony-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; transition: opacity 1.4s var(--ease); }
.bp-night { opacity: 0; }
[data-theme="dark"] .bp-night { opacity: 1; }
[data-theme="dark"] .bp-day { opacity: 0; }
.tag, .tag-chip { position: absolute; z-index: 2; }
.tag { display: flex; align-items: center; gap: 8px; transform: translate(-7px, -7px); }
.tag.left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
.dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(47, 106, 52, .55), 0 2px 8px rgba(0, 0, 0, .3); flex: none; }
.dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.tag-card, .tag-chip {
  display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border-radius: 14px;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9); color: #163222;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(20, 35, 26, .2);
}
.tag-card b, .tag-chip b { font-size: 12.5px; font-weight: 800; }
.tag-card small { display: block; font-size: 11.5px; font-weight: 600; color: #3F5A48; }
.tag-card > span:last-child { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.tag-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #DDEFD0; color: #2F6A34; flex: none; }
.tag-ic svg, .tag-chip svg { width: 16px; height: 16px; }
.tag-ic.warn { background: #FBE3D9; color: #B0503D; }
.tag-ic.sun { background: #FFF1C4; color: #9A7428; }
.tag-chip { padding: 8px 13px; font-size: 12.5px; white-space: nowrap; }
.tag-chip svg { color: #2F6A34; }
[data-theme="dark"] .tag-card, [data-theme="dark"] .tag-chip { background: rgba(18, 28, 50, .72); border-color: rgba(255, 255, 255, .14); color: #EEF4E8; }
[data-theme="dark"] .tag-card small { color: #C5D2C2; }
[data-theme="dark"] .tag-ic { background: rgba(166, 222, 134, .18); color: #A6DE86; }
[data-theme="dark"] .tag-chip svg { color: #FFD98A; }
[data-theme="dark"] .dot { background: #FFF6D0; box-shadow: 0 0 0 3px rgba(255, 217, 138, .45), 0 0 14px rgba(255, 217, 138, .8); }
/* pin positions on the photos (percent of the photo) */
.t-dc, .t-nc { left: 3%; top: 5%; }
.t-d1 { left: 40%; top: 31%; } .t-d2 { left: 9%; top: 41%; } .t-d3 { left: 37%; top: 54%; } .t-d4 { left: 74%; top: 27%; }
.t-n1 { left: 58%; top: 27%; } .t-n2 { left: 84%; top: 11%; } .t-n3 { left: 26%; top: 60%; }
/* labels pop in one after another once the photo scrolls into view */
.js-reveal .balcony-stage .tag, .js-reveal .balcony-stage .tag-chip { opacity: 0; translate: 0 8px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js-reveal .balcony-stage.in .tag, .js-reveal .balcony-stage.in .tag-chip { opacity: 1; translate: 0 0; }
.balcony-stage.in .t-d1, .balcony-stage.in .t-n1 { transition-delay: .5s; }
.balcony-stage.in .t-d2, .balcony-stage.in .t-n2 { transition-delay: .9s; }
.balcony-stage.in .t-d3, .balcony-stage.in .t-n3 { transition-delay: 1.3s; }
.balcony-stage.in .t-d4 { transition-delay: 1.7s; }
[data-theme="dark"] .balcony-stage .day-only, :root:not([data-theme="dark"]) .balcony-stage .night-only { opacity: 0 !important; pointer-events: none; }
.photo-credit { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 10.5px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 2; }
.photo-credit a { color: inherit; }
.balcony-phone { position: absolute; right: 4%; bottom: -46px; width: 22%; max-width: 210px; z-index: 3; }
.balcony-stage .d3 { right: calc(4% + min(22%, 210px) + 14px); bottom: -34px; transform: rotate(-3deg); }
.balcony-stage .d3::after { left: calc(100% + 2px); top: -18px; transform: rotate(-30deg); }
@media (max-width: 760px) {
  .balcony-photo, .balcony-photo img { border-radius: 20px; }
  .t-d3, .t-d4, .t-n2 { display: none; }
  .tag-card { padding: 5px 9px 5px 5px; gap: 6px; border-radius: 11px; }
  .tag-ic { width: 22px; height: 22px; border-radius: 7px; }
  .tag-card b, .tag-chip b { font-size: 11px; } .tag-card small { font-size: 10px; }
  .tag-chip { font-size: 11px; padding: 6px 10px; }
  .t-d2 { top: 52%; } .t-n1 { left: 46%; top: 30%; }
  .balcony-phone { width: 26%; right: 3%; bottom: -96px; }
  .balcony-stage { margin-bottom: 110px; }
  .balcony-stage .d3 { display: none; }
  .photo-credit { font-size: 9.5px; left: 10px; bottom: 7px; max-width: 60%; }
}

/* ---------- real gardens carousel: centred slide, neighbours peeking either side ---------- */
.cs { position: relative; width: min(1380px, calc(100vw - 16px)); margin-left: 50%; transform: translateX(-50%); --gap: 150px; --sw: min(780px, calc(100% - 340px)); --soft: cubic-bezier(.22, .7, .2, 1); }
[data-theme="dark"] .cs-day, :root:not([data-theme="dark"]) .cs-night { display: none; }
.cs { animation: csIn 1.2s var(--ease); }
@keyframes csIn { from { opacity: 0; } to { opacity: 1; } }
.cs-viewport { overflow: hidden; outline: none; touch-action: pan-y; padding: 26px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cs-viewport:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.cs-track { display: grid; }
.cs-slide { position: relative; grid-area: 1 / 1; width: var(--sw); justify-self: center; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  transform: translateX(calc(var(--rel, 0) * (100% + var(--gap)))) scale(var(--sc, 1)); transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
[data-ready] .cs-slide { --sc: .88; opacity: .45; filter: saturate(.75); }
[data-ready] .cs-slide.is-active { --sc: 1; opacity: 1; filter: none; z-index: 2; }
[data-ready] .cs-slide.is-near { cursor: pointer; }
[data-ready] .cs-slide.is-near:hover { opacity: .62; }
[data-ready] .cs-slide.is-far { opacity: 0; visibility: hidden; transition: transform 1s var(--ease), opacity .5s var(--ease), visibility 0s 1s; }
.cs-photo { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 28px; overflow: hidden; box-shadow: 0 22px 54px rgba(25, 45, 30, .22); }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-ready] .cs-photo img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
[data-ready] .cs-slide.is-active .cs-photo img { transform: scale(1); }
.cs-photo.dusk img { filter: brightness(.5) saturate(.75) hue-rotate(-12deg) contrast(1.05); }
.cs-photo.dusk::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 72% 30%, rgba(255, 196, 110, .28), transparent 70%), linear-gradient(180deg, rgba(26, 36, 80, .45), rgba(10, 16, 40, .25)); pointer-events: none; }
.photo-credit { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 10.5px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); z-index: 2; }
.photo-credit a { color: inherit; }
.cs-side { display: contents; }
.cs-side > .cs-num { margin-top: 18px; }
.cs-side > h3 { margin: 2px 0 6px; overflow: hidden; padding-bottom: 2px; }
.cs-side > h3 > span { display: inline-block; }
.cs-side > p { max-width: calc(100% - 250px); }
.cs-side > .am-phone { position: absolute; right: -78px; top: 64px; z-index: 3; }
.cs-num { display: inline-flex; align-items: baseline; gap: 4px; font-family: Caveat, cursive; font-weight: 700; font-size: 22px; color: var(--accent); }
.cs-n { display: inline-block; overflow: hidden; line-height: 1.1; height: 1.1em; }
.cs-n > span { display: inline-block; }
.cs-side > h3 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 27px; line-height: 1.12; }
.cs-side > p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 0; margin-bottom: 0; }
.cs .am-phone { width: 276px; }
.cs .am-screen { zoom: 1.13; }

/* neighbours show only their photo; the current slide plays its entrance */
[data-ready] .cs-slide:not(.is-active) .cs-side > * { opacity: 0; transition: opacity .35s var(--ease); }
[data-ready] .cs-slide.is-active .cs-n > span { animation: rollUp .8s var(--soft) .35s both; }
[data-ready] .cs-slide.is-active .cs-num { animation: fadeIn .6s var(--ease) .3s both; }
[data-ready] .cs-slide.is-active h3 > span { animation: riseIn .95s var(--soft) .45s both; }
[data-ready] .cs-slide.is-active .cs-side > p { animation: blurIn 1s var(--soft) .62s both; }
[data-ready] .cs-slide.is-active .cs-side > .am-phone { animation: phoneIn 1.25s var(--soft) .5s both; }
@keyframes rollUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { transform: translateY(110%); } to { transform: none; } }
@keyframes blurIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translate(70px, 36px) rotate(6deg) scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* vine arrows in the gaps beside the current slide: a stem with a leaf for a head */
.cs { --gap: 190px; --sw: min(770px, calc(100% - 380px)); }
.cs-arrow { position: absolute; z-index: 4; top: calc(26px + var(--sw) / 3); translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.cs-prev { left: calc(50% - var(--sw) / 2 - var(--gap) / 2); }
.cs-next { left: calc(50% + var(--sw) / 2 + 142px); }
.vine-arrow { width: 124px; height: 58px; overflow: visible; filter: drop-shadow(0 3px 6px rgba(20, 40, 20, .18)); transition: transform .6s var(--ease); }
.cs-prev .vine-arrow { transform: scaleX(-1); }
.va-stem, .va-curl { fill: none; stroke: currentColor; stroke-linecap: round; }
.va-stem { stroke-width: 3.4; stroke-dasharray: 80; stroke-dashoffset: 0; }
.va-curl { stroke-width: 2; opacity: .75; }
.va-leaf path:first-child { fill: #7DBE58; stroke: #2F6A34; stroke-width: 1.2; }
.va-head path:first-child { fill: url(#vaGrad); fill: #5DA84A; stroke: #2F6A34; stroke-width: 1.4; }
.va-vein { fill: none; stroke: #CDEBA8; stroke-width: 1.4; stroke-linecap: round; }
[data-theme="dark"] .va-leaf path:first-child, [data-theme="dark"] .va-head path:first-child { fill: #8CD27A; stroke: #CDEBA8; }
[data-theme="dark"] .va-vein { stroke: #1F3324; }
.va-head, .va-leaf { transform-box: fill-box; transition: transform .6s var(--ease); }
.va-head { transform-origin: 0% 50%; }
.va-leaf { transform-origin: 20% 0%; }
.va-label { font-family: Caveat, cursive; font-weight: 700; font-size: 17px; line-height: 1.1; color: var(--ink-soft); max-width: 150px; text-align: center; opacity: .8; transition: opacity .5s var(--ease), color .5s var(--ease); }
.cs-arrow:hover .va-label, .cs-arrow:focus-visible .va-label { opacity: 1; color: var(--accent); }
.cs-arrow:hover .va-stem, .cs-arrow:focus-visible .va-stem { animation: vineGrow .9s var(--ease); }
.cs-arrow:hover .va-head, .cs-arrow:focus-visible .va-head { transform: translateX(5px) rotate(-4deg); }
.cs-arrow:hover .va-leaf, .cs-arrow:focus-visible .va-leaf { transform: rotate(-14deg); }
.cs-arrow:active .vine-arrow { transform: translateX(4px); }
.cs-prev:active .vine-arrow { transform: scaleX(-1) translateX(4px); }
@keyframes vineGrow { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.cs-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.cs-nav { display: flex; justify-content: center; margin-top: 4px; position: relative; z-index: 3; }
.cs-dots { display: flex; gap: 7px; padding: 8px; }
.cs-dot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--ink-soft); opacity: .3; cursor: pointer; transition: width .6s var(--ease), opacity .6s var(--ease), background-color .6s var(--ease); }
.cs-dot[aria-current="true"] { width: 28px; opacity: 1; background: var(--accent); }

/* app screen inside each slide (Sage Studio look; Night Garden at night) */
.am-phone { width: 244px; border-radius: 36px; padding: 7px; background: #161A17; box-shadow: 0 26px 50px rgba(20, 35, 26, .35), inset 0 0 0 1.5px #3C443D; font-family: Manrope, sans-serif; }
.am-screen { --s-bg: #E8EEE3; --s-card: #FFFFFF; --s-ink: #171A16; --s-soft: #5E675B; --s-line: rgba(23, 26, 22, .07); --s-leaf: #2F6A34; --s-leafbg: #DDEFD0; --s-pill: #171A16; --s-pill-ink: #fff;
  height: 452px; overflow: hidden; border-radius: 30px; background: linear-gradient(180deg, #DCE6D5, var(--s-bg) 40%); color: var(--s-ink); padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.am-dark .am-screen { --s-bg: #0F1813; --s-card: #1A261F; --s-ink: #EEF3EC; --s-soft: #A7B3A5; --s-line: rgba(238, 243, 236, .08); --s-leaf: #8CD27A; --s-leafbg: #1F3324; --s-pill: #EEF3EC; --s-pill-ink: #101712; background: linear-gradient(180deg, #13201A, var(--s-bg) 40%); }
.am-status { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; padding: 0 6px; height: 22px; }
.am-isl { width: 62px; height: 18px; border-radius: 10px; background: #0B0D0B; }
.am-batt { width: 18px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .8; }
.am-head { display: flex; align-items: center; justify-content: space-between; }
.am-brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px; color: var(--s-leaf); }
.am-brand svg, .am-bell svg { width: 14px; height: 14px; }
.am-bell { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s-card); }
.am-body { display: flex; flex-direction: column; gap: 7px; }
.am-hi { margin: 2px 0 0; font-size: 14px; line-height: 1.25; }
.am-hi small, .am-note { font-size: 10px; color: var(--s-soft); font-weight: 600; }
.am-hi.center, .am-card.center { text-align: center; }
.am-prog { height: 6px; border-radius: 6px; background: var(--s-line); overflow: hidden; } .am-prog i { display: block; height: 100%; background: var(--s-leaf); border-radius: 6px; } .am-prog .w25 { width: 25%; }
.am-row { display: flex; align-items: center; gap: 8px; background: var(--s-card); border-radius: 14px; padding: 6px 8px 6px 6px; }
.am-row.done { opacity: .75; }
.am-th { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; }
.am-th.wide { width: 100%; height: 66px; border-radius: 10px; margin-bottom: 6px; }
.am-th.tall { height: 96px; }
.am-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s-leafbg); color: var(--s-leaf); flex: none; }
.am-ic svg { width: 16px; height: 16px; }
.am-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.am-rt b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-rt small { font-size: 9.5px; color: var(--s-soft); font-weight: 600; }
.am-pill { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; padding: 6px 11px; border-radius: 99px; background: var(--s-pill); color: var(--s-pill-ink); white-space: nowrap; align-self: flex-start; }
.am-pill.ghost { background: transparent; color: var(--s-ink); box-shadow: inset 0 0 0 1.4px var(--s-line), inset 0 0 0 1.4px currentColor; }
.am-chip { display: inline-flex; font-size: 9.5px; font-weight: 800; padding: 4px 8px; border-radius: 99px; background: var(--s-line); color: var(--s-soft); white-space: nowrap; }
.am-chip.on, .am-chip.hl { background: var(--s-leafbg); color: var(--s-leaf); }
.am-chip.prem { background: linear-gradient(135deg, #FFE59A, #F2B33D); color: #6B4A12; vertical-align: middle; }
.am-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.am-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; color: #B0503D; background: #F6E0D8; border-radius: 99px; padding: 4px 9px 4px 6px; align-self: flex-start; margin: -3px 0 0 6px; }
.am-flag.safe { color: #2F6A34; background: #DDEFD0; }
.am-dark .am-flag { background: #3A2520; color: #E08A77; } .am-dark .am-flag.safe { background: #1F3324; color: #8CD27A; }
.am-flag svg { width: 12px; height: 12px; }
.am-card { background: var(--s-card); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.am-big { font-size: 13px; font-weight: 800; }
.am-p { margin: 0; font-size: 10.5px; line-height: 1.45; color: var(--s-soft); }
.am-ul { margin: 2px 0 0; padding-left: 14px; font-size: 10.5px; line-height: 1.45; color: var(--s-soft); }
.am-ok, .am-go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--s-leafbg); color: var(--s-leaf); }
.am-ok svg, .am-go svg { width: 14px; height: 14px; }
.am-week { display: flex; gap: 4px; margin-top: 4px; } .am-week i { flex: 1; text-align: center; font-style: normal; font-size: 9px; font-weight: 800; padding: 5px 0; border-radius: 8px; background: var(--s-line); color: var(--s-soft); }
.am-week i.on { background: var(--s-leaf); color: var(--s-pill-ink); }
.am-week.wide { background: var(--s-card); padding: 6px; border-radius: 14px; }
.am-snack { margin-top: auto; display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; padding: 9px 12px; border-radius: 12px; background: var(--s-pill); color: var(--s-pill-ink); }
.am-snack b { color: #A6DE86; } .am-dark .am-snack b { color: #2F6A34; }
.am-seg { display: flex; gap: 4px; background: var(--s-line); padding: 3px; border-radius: 99px; margin-top: 4px; }
.am-seg span { flex: 1; text-align: center; font-size: 10px; font-weight: 800; padding: 6px 0; border-radius: 99px; color: var(--s-soft); }
.am-seg span.on { background: var(--s-pill); color: var(--s-pill-ink); }
.am-res { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: 10.5px; font-weight: 700; color: var(--s-leaf); }
.am-res svg { width: 13px; height: 13px; }
.am-tip { display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; line-height: 1.4; padding: 9px 10px; border-radius: 14px; background: var(--s-leafbg); color: var(--s-ink); }
.am-tip svg { width: 14px; height: 14px; color: var(--s-leaf); flex: none; margin-top: 1px; }
.am-gauge { position: relative; display: flex; flex-direction: column; align-items: center; background: var(--s-card); border-radius: 16px; padding: 10px 10px 8px; color: var(--s-ink); }
.am-gauge svg { width: 130px; height: 76px; }
.am-gauge b { font-size: 15px; margin-top: -10px; } .am-gauge small { font-size: 9.5px; color: var(--s-soft); }
.am-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 4px; }
.am-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--s-leafbg); } .am-bars i:last-child { background: var(--s-leaf); }
.am-bars .h3 { height: 30%; } .am-bars .h4 { height: 42%; } .am-bars .h5 { height: 55%; } .am-bars .h6 { height: 68%; } .am-bars .h8 { height: 92%; }
.am-wx { flex-direction: row; align-items: center; gap: 10px; } .am-wx > svg { width: 30px; height: 30px; color: #F2B33D; flex: none; }
.am-dark .am-wx > svg { color: #A9C1FF; }
.am-src { text-align: right; }
.am-lock { text-align: center; padding: 16px 0 10px; } .am-lock small { display: block; font-size: 10px; font-weight: 700; color: var(--s-soft); } .am-lock b { font-size: 46px; font-weight: 300; letter-spacing: -.02em; }
.am-notif { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 18px; background: var(--s-card); }
.am-notif .am-ic { width: 28px; height: 28px; border-radius: 8px; }
.am-notif b { font-size: 11px; } .am-notif small { font-size: 9.5px; color: var(--s-soft); } .am-notif p { margin: 2px 0 0; font-size: 10.5px; line-height: 1.4; }
.am-ring { position: relative; width: 96px; height: 96px; margin: 26px auto 4px; color: var(--s-ink); } .am-ring svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); }
.am-ring > svg:last-child { position: absolute; inset: 30px; width: 36px; height: 36px; color: #A6DE86; }
.am-set { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; padding: 4px 0; }
.am-tg { width: 30px; height: 18px; border-radius: 99px; background: var(--s-line); position: relative; } .am-tg.on { background: var(--s-leaf); }
.am-tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; } .am-tg.on::after { left: 14px; }

@media (max-width: 860px) {
  .cs { --gap: 12px; --sw: calc(100% - 76px); }
  .cs-viewport { padding: 14px 0 20px; -webkit-mask-image: none; mask-image: none; }
  [data-ready] .cs-slide { --sc: .95; }
  .cs-arrow { display: none; }
  .cs-slide { grid-template-columns: 153px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 12px; }
  .cs-photo { grid-column: 1 / 3; border-radius: 20px; }
  .cs .cs-side > .am-phone { position: relative; right: auto; top: auto; grid-column: 1; grid-row: 2 / 5; justify-self: start; align-self: start; margin: -86px 0 0; width: 153px; padding: 5px; border-radius: 26px; }
  .cs .cs-side .am-screen { zoom: .62; width: 230px; height: 470px; }
  .cs-side > .cs-num { grid-column: 2; grid-row: 2; margin-top: 10px; }
  .cs-side > h3 { grid-column: 2; grid-row: 3; font-size: 18px; }
  .cs-side > p { grid-column: 2; grid-row: 4; font-size: 12.5px; max-width: none; }
  .cs .photo-credit { font-size: 9.5px; left: auto; right: 10px; top: 8px; bottom: auto; max-width: 70%; text-align: right; }
}
.am-notifyonly .am-head { display: none; }
.am-wx > div { display: flex; flex-direction: column; }

/* ---------- mini game: Pest Patrol ---------- */
.gm-toast { position: absolute; left: 50%; top: 16px; translate: -50% -8px; z-index: 3; padding: 8px 14px; border-radius: 99px; background: var(--pill); color: var(--pill-ink); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), translate .4s var(--ease); white-space: nowrap; }
.gm-toast.on { opacity: 1; translate: -50% 0; }
.gm-card { position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: min(360px, calc(100% - 32px)); text-align: center; padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); animation: csIn .7s var(--ease); }
.gm-card[hidden] { display: none; }
.gm-card h3 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 22px; margin: 2px 0 6px; }
.gm-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; }
.gm-kicker { font-family: Caveat, cursive !important; font-weight: 700; font-size: 20px !important; color: var(--accent) !important; margin: 0 !important; }
.gm-end-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gm-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.gm-sound .s-off { display: none; } .gm-sound[aria-pressed="false"] .s-on { display: none; } .gm-sound[aria-pressed="false"] .s-off { display: block; }
.gm-sound { border-color: var(--card-line); background: var(--bg-soft); }
.pt { padding: 14px; overflow: hidden; }
.pt-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.pt-drops { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 14px; background: #DCEFF7; color: #1E5A74; font-weight: 800; font-size: 20px; min-width: 96px; }
.pt-drops svg { width: 22px; height: 22px; fill: #5EB3DA; stroke: #2E7EA3; stroke-width: 1.4; }
[data-theme="dark"] .pt-drops { background: #1E3550; color: #CFE9F7; }
.pt-tray { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.pt-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 38px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; padding: 5px 16px 5px 5px; border-radius: 14px; border: 1.5px solid var(--card-line); background: var(--bg-soft); color: var(--ink); cursor: pointer; font-family: Manrope, sans-serif; transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
.pt-card:hover { transform: translateY(-2px); }
.pt-card.on { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pt-ic { grid-row: 1 / 3; width: 38px; height: 46px; display: block; }
.pt-ic svg { width: 100%; height: 100%; display: block; }
.pt-nm { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pt-cost { font-size: 11.5px; font-weight: 800; color: #2E7EA3; }
[data-theme="dark"] .pt-cost { color: #8FD0F0; }
.pt-cost::before { content: ""; display: inline-block; width: 8px; height: 10px; margin-right: 3px; vertical-align: -1px; background: #5EB3DA; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.pt-trowel .pt-cost::before { display: none; }
.pt-trowel .pt-cost { color: var(--ink-soft); }
.pt-card kbd { position: absolute; top: 3px; right: 5px; font: 700 9.5px Manrope, sans-serif; opacity: .45; }
.pt-cd { position: absolute; inset: 0; background: rgba(20, 35, 26, .16); transform-origin: bottom; transform: scaleY(0); pointer-events: none; }
.pt-card.poor .pt-ic, .pt-card.poor .pt-nm { opacity: .45; }
.pt-stats { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.pt-wave b { color: var(--ink); font-size: 17px; }
.pt-leaves { display: inline-flex; gap: 3px; }
.pt-leaves i { width: 16px; height: 16px; display: block; opacity: .22; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z' fill='%235DA84A' stroke='%232F6A34' stroke-width='1.6'/%3E%3C/svg%3E"); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pt-leaves i.on { opacity: 1; }
.pt-field { position: relative; border-radius: 20px; overflow: hidden; }
.pt-scene { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
.pt-wall { fill: #E3ECD8; } [data-theme="dark"] .pt-wall { fill: #18233F; }
.pt-s1 { stop-color: #A9D8EE; } .pt-s2 { stop-color: #E6F4F2; }
[data-theme="dark"] .pt-s1 { stop-color: #0E1630; } [data-theme="dark"] .pt-s2 { stop-color: #2A3766; }
.pt-shelf { fill: #CFE0C2; } [data-theme="dark"] .pt-shelf { fill: #22304F; }
.pt-hname { font: 700 13px Caveat, cursive; fill: #FFF3E6; }
.pt-ghost { opacity: .55; pointer-events: none; }
.pt-ghost.bad { opacity: .3; filter: grayscale(1); }
/* units */
.pt-in { animation: ptIn .5s var(--ease) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ptIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pt-unit.bitten .pt-in { animation: ptShake .35s linear infinite; }
@keyframes ptShake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
.pt-bottle { transform-box: fill-box; transform-origin: 50% 100%; }
.pt-unit.fire .pt-bottle { animation: ptFire .3s var(--ease); }
@keyframes ptFire { 40% { transform: scale(1.06, .92); } }
.pt-unit.fill { animation: ptFill .6s var(--ease); }
@keyframes ptFill { 40% { filter: brightness(1.25); } }
.pt-jaw { transform-box: view-box; transition: transform .18s ease-out; }
.pt-jaw.up { transform: rotate(-8deg); } .pt-jaw.dn { transform: rotate(8deg); }
.pt-unit.chew .pt-jaw { transform: none; }
.pt-unit.chew .pt-jaw { animation: ptChew .45s var(--ease) infinite alternate; }
@keyframes ptChew { to { transform: scale(1.06, .88); } }
.pt-bush { transform-box: fill-box; transform-origin: 50% 100%; filter: saturate(calc(1 - var(--wilt, 0) * .7)); transform: scaleY(calc(1 - var(--wilt, 0) * .25)); }
/* pests */
.pt-pest .pt-walk { animation: ptWalk .4s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ptWalk { to { transform: translateY(-2px) rotate(-3deg); } }
.pt-seg { animation: ptInch .7s var(--ease) infinite alternate; }
@keyframes ptInch { to { transform: translateY(-4px); } }
.pt-slide { animation: ptSlide 1.6s var(--ease) infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ptSlide { to { transform: scaleX(1.05); } }
.pt-pest.eating .pt-walk, .pt-pest.eating .pt-slide { animation: ptNom .25s linear infinite alternate; }
@keyframes ptNom { to { transform: translateX(-3px); } }
.pt-pest.hurt > g, .pt-pest.hurt > .pt-seg { animation: ptHurt .3s var(--ease); }
@keyframes ptHurt { 30% { filter: brightness(1.8); } }
.pt-hp { fill: #E35B4A; opacity: .85; }
.pt-shot { filter: drop-shadow(0 0 4px rgba(150, 215, 245, .9)); }
.pt-hbody { transform-box: fill-box; transform-origin: 50% 100%; }
.pt-homeplant.nibbled .pt-hbody { animation: ptNib .7s var(--ease); }
@keyframes ptNib { 25% { transform: rotate(-8deg); filter: brightness(.8) saturate(.6); } 60% { transform: rotate(5deg); } }
/* effects */
.pt-float { font: 800 16px Manrope, sans-serif; animation: ptFloat 1.1s var(--ease) forwards; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.pt-float.gain { fill: #2E7EA3; } .pt-float.loss { fill: #C2453A; }
@keyframes ptFloat { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-26px); } }
.pt-puff circle { animation: ptPuff .7s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes ptPuff { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.pt-banner { position: absolute; left: 50%; top: 14px; translate: -50% -8px; z-index: 3; padding: 9px 16px; border-radius: 99px; background: var(--pill); color: var(--pill-ink); font-size: 14px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), translate .4s var(--ease); white-space: nowrap; }
.pt-banner.on { opacity: 1; translate: -50% 0; }
.pt-pausebtn { border-color: var(--card-line); background: var(--bg-soft); }
.pt-pausebtn svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .pt { padding: 10px; }
  .pt-tray { order: 3; flex-basis: 100%; gap: 6px; }
  .pt-card { grid-template-columns: 30px auto; padding: 4px 8px 4px 3px; }
  .pt-ic { width: 30px; height: 38px; } .pt-nm { font-size: 11.5px; } .pt-card kbd { display: none; }
  .pt-drops { font-size: 17px; min-width: 0; }
  .pt-stats { margin-left: auto; }
  .pt-hname { font-size: 16px; }
}

.pt-turn { display: none; }
@media (max-width: 560px) and (orientation: portrait) {
  .pt-turn { display: block; position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; font: 700 15px Caveat, cursive; color: #FFF3E6; pointer-events: none; opacity: .9; }
  .is-playing .pt-turn { animation: ptHint 4s var(--ease) 2s forwards; }
  @keyframes ptHint { to { opacity: 0; } }
}
/* Pest Patrol: rounds, combos, stars, ads */
.pt-score { color: var(--ink); } .pt-score b { font-size: 17px; }
.is-daily .pt-wave::before { content: "Daily · "; color: var(--accent); }
.pt-float.combo { fill: #D9741E; font-size: 18px; }
.pt-bests { font-size: 12.5px !important; margin: 12px 0 0 !important; color: var(--accent) !important; font-weight: 700; }
.pt-bests:empty { display: none; }
.pt-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.pt-stars i { width: 30px; height: 30px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.2 6.8.8-5 4.7 1.3 6.7L12 17.6l-6 3.3 1.3-6.7-5-4.7 6.8-.8z' fill='%23D8DDD2' stroke='%23B8BFB2' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pt-stars i.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.2 6.8.8-5 4.7 1.3 6.7L12 17.6l-6 3.3 1.3-6.7-5-4.7 6.8-.8z' fill='%23F2B33D' stroke='%23C98A2A' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: ptStar .6s var(--ease) both; }
.pt-stars i.on:nth-child(2) { animation-delay: .2s; } .pt-stars i.on:nth-child(3) { animation-delay: .4s; }
@keyframes ptStar { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.pt-save { width: 100%; justify-content: center; margin: 0 0 10px; background: linear-gradient(135deg, #FFE59A, #F2B33D); color: #4A3208; }
.pt-save svg { width: 16px; height: 16px; }
.pt-save[hidden] { display: none; }
.pt-getapp { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; }
/* local-only preview of an ad break (?adsdemo) */
.ad-demo { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 16, 30, .82); animation: csIn .4s var(--ease); }
.ad-demo div { width: min(380px, calc(100% - 40px)); padding: 26px; border-radius: 22px; background: #fff; color: #163222; text-align: center; font-family: Manrope, sans-serif; display: grid; gap: 6px; }
.ad-demo small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A6A20; }
.ad-demo b { font-family: Fredoka, sans-serif; font-size: 22px; } .ad-demo span { font-size: 13px; color: #4A5E50; }
.ad-demo i { display: block; height: 4px; border-radius: 4px; background: #F2B33D; transform-origin: left; animation: adBar 2.4s linear forwards; margin-top: 8px; }
@keyframes adBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
