/* Puchky website: shared base styles. Page layout is in inline styles on each page. */
body { margin: 0; }
a { color: #2b2a2e; }
a:hover { color: #7a5200; }

/* Phones: the big Buda tile on the home page takes too much of the screen,
   so phones get a small tile beside the buttons instead (Tal, 2026-11-12). */
.hero-mini { display: none; }
@media (max-width: 600px) { .hero-art { display: none !important; } .hero-mini { display: flex; } }

/* Stink lines rising behind Buda's gifts card (2026-11-12). Decorative only. */
.gift-card > :not(.stink) { position: relative; z-index: 1; }
.stink { position: absolute; inset-inline-end: 28px; bottom: 0; width: 64px; height: 100%; pointer-events: none; color: #9bb84a; }
.stink svg { position: absolute; bottom: -40px; opacity: 0; animation: stink-rise 3.6s ease-in infinite; }
.stink svg:nth-child(1) { inset-inline-start: 0; }
.stink svg:nth-child(2) { inset-inline-start: 22px; animation-delay: 1.2s; }
.stink svg:nth-child(3) { inset-inline-start: 44px; animation-delay: 2.4s; }
@keyframes stink-rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  25% { opacity: .75; }
  100% { transform: translateY(-150px) scaleX(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stink svg { animation: none; opacity: .45; transform: translateY(-60px); }
}

/* Buda peeks into the "Shows up outside the app" card from a different edge or corner each time (Tal 2026-11-12). Decorative only. */
.peek-card { padding-bottom: 104px !important; }
.peek-card > :not(.peek) { position: relative; z-index: 1; }
.peek { position: absolute; width: 92px; height: 92px; }
.peek-a { bottom: -4px; right: 22px; transform: translateY(100%); animation: peek-a 24s ease-in-out infinite; }
.peek-b { bottom: 4px; left: -4px; transform: translateX(-100%) rotate(90deg); animation: peek-b 24s ease-in-out infinite; }
.peek-c { bottom: -4px; left: 50%; margin-left: -46px; transform: translateY(100%); animation: peek-c 24s ease-in-out infinite; }
.peek-d { bottom: 4px; right: -4px; transform: translateX(100%) rotate(-90deg); animation: peek-d 24s ease-in-out infinite; }
@keyframes peek-a {
  0%, 1% { transform: translateY(100%); }
  5%, 10% { transform: translateY(30%); }
  12%, 16% { transform: translateY(26%) rotate(-8deg); }
  18% { transform: translateY(30%); }
  22%, 100% { transform: translateY(100%); }
}
@keyframes peek-b {
  0%, 26% { transform: translateX(-100%) rotate(90deg); }
  30%, 35% { transform: translateX(-30%) rotate(90deg); }
  37%, 41% { transform: translateX(-26%) rotate(98deg); }
  43% { transform: translateX(-30%) rotate(90deg); }
  47%, 100% { transform: translateX(-100%) rotate(90deg); }
}
@keyframes peek-c {
  0%, 51% { transform: translateY(100%); }
  55%, 60% { transform: translateY(30%); }
  62%, 66% { transform: translateY(26%) rotate(8deg); }
  68% { transform: translateY(30%); }
  72%, 100% { transform: translateY(100%); }
}
@keyframes peek-d {
  0%, 76% { transform: translateX(100%) rotate(-90deg); }
  80%, 85% { transform: translateX(30%) rotate(-90deg); }
  87%, 91% { transform: translateX(26%) rotate(-98deg); }
  93% { transform: translateX(30%) rotate(-90deg); }
  97%, 100% { transform: translateX(100%) rotate(-90deg); }
}

/* A list being written and ticked off, on the "Lists" card (2026-11-12). Decorative only. */
.lst { list-style: none; margin: 0 0 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fbfaf8; border: 1px dashed #d9d5ce; border-radius: 16px; font-family: Fredoka, sans-serif; font-weight: 500; font-size: 17px; color: #2b2a2e; }
.lst-r { display: flex; align-items: center; gap: 10px; height: 22px; }
.lst-box { width: 18px; height: 18px; flex: none; border: 2px solid #2b2a2e; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #2b2a2e; }
.lst-box svg { opacity: 0; }
.lst-t { white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); }
[dir="rtl"] .lst-t { clip-path: inset(0 0 0 100%); }
.lst-r1 .lst-t { animation: lst-w1 9s steps(8) infinite; }
.lst-r2 .lst-t { animation: lst-w2 9s steps(8) infinite; }
.lst-r3 .lst-t { animation: lst-w3 9s steps(10) infinite; }
[dir="rtl"] .lst-r1 .lst-t { animation-name: lst-w1r; }
[dir="rtl"] .lst-r2 .lst-t { animation-name: lst-w2r; }
[dir="rtl"] .lst-r3 .lst-t { animation-name: lst-w3r; }
.lst-r1 .lst-box svg { animation: lst-c1 9s infinite; }
.lst-r2 .lst-box svg { animation: lst-c2 9s infinite; }
.lst-r3 .lst-box svg { animation: lst-c3 9s infinite; }
.lst-r1 .lst-box { animation: lst-b1 9s infinite; }
.lst-r2 .lst-box { animation: lst-b2 9s infinite; }
.lst-r3 .lst-box { animation: lst-b3 9s infinite; }
@keyframes lst-w1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 14%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes lst-w2 { 0%, 16% { clip-path: inset(0 100% 0 0); } 26%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes lst-w3 { 0%, 28% { clip-path: inset(0 100% 0 0); } 40%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes lst-w1r { 0%, 4% { clip-path: inset(0 0 0 100%); } 14%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes lst-w2r { 0%, 16% { clip-path: inset(0 0 0 100%); } 26%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes lst-w3r { 0%, 28% { clip-path: inset(0 0 0 100%); } 40%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes lst-c1 { 0%, 50% { opacity: 0; } 53%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lst-c2 { 0%, 60% { opacity: 0; } 63%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lst-c3 { 0%, 70% { opacity: 0; } 73%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lst-b1 { 0%, 50% { background: transparent; } 53%, 92% { background: #f2b300; } 96%, 100% { background: transparent; } }
@keyframes lst-b2 { 0%, 60% { background: transparent; } 63%, 92% { background: #f2b300; } 96%, 100% { background: transparent; } }
@keyframes lst-b3 { 0%, 70% { background: transparent; } 73%, 92% { background: #f2b300; } 96%, 100% { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .peek { animation: none !important; }
  .peek-a { transform: translateY(30%); }
  .peek-b, .peek-c, .peek-d { display: none; }
  .lst-t, .lst-box, .lst-box svg { animation: none !important; }
  .lst-t, [dir="rtl"] .lst-t { clip-path: none; }
}

/* A task splits into subtasks and gets a date, on the "Tasks, subtasks, dates" card (2026-11-12). Decorative only. */
.tsk { margin: 0 0 14px; padding: 12px 14px; background: #fbfaf8; border: 1px solid #e8e5e0; border-radius: 16px; font-family: Fredoka, sans-serif; font-size: 16px; color: #2b2a2e; }
.tsk-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.tsk-check { width: 16px; height: 16px; border: 2px solid #2b2a2e; border-radius: 50%; flex: none; }
.tsk-chip { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; padding: 2px 10px; border-radius: 999px; background: #fff3cc; color: #6b4a00; font-size: 13px; font-weight: 600; opacity: 0; transform: scale(.6); animation: tsk-chip 9s infinite; }
.tsk-bell { display: inline-flex; transform-origin: 50% 10%; animation: tsk-bell 9s infinite; }
.tsk-subs { list-style: none; margin: 0; padding: 0; padding-inline-start: 24px; display: flex; flex-direction: column; }
.tsk-s { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #4a4850; max-height: 0; opacity: 0; overflow: hidden; }
.tsk-dot { width: 10px; height: 10px; border: 2px solid #8a868f; border-radius: 4px; flex: none; }
.tsk-s1 { animation: tsk-s1 9s infinite; }
.tsk-s2 { animation: tsk-s2 9s infinite; }
.tsk-s3 { animation: tsk-s3 9s infinite; }
@keyframes tsk-s1 { 0%, 8% { max-height: 0; opacity: 0; margin-top: 0; } 13%, 92% { max-height: 24px; opacity: 1; margin-top: 6px; } 97%, 100% { max-height: 0; opacity: 0; margin-top: 0; } }
@keyframes tsk-s2 { 0%, 16% { max-height: 0; opacity: 0; margin-top: 0; } 21%, 92% { max-height: 24px; opacity: 1; margin-top: 6px; } 97%, 100% { max-height: 0; opacity: 0; margin-top: 0; } }
@keyframes tsk-s3 { 0%, 24% { max-height: 0; opacity: 0; margin-top: 0; } 29%, 92% { max-height: 24px; opacity: 1; margin-top: 6px; } 97%, 100% { max-height: 0; opacity: 0; margin-top: 0; } }
@keyframes tsk-chip { 0%, 38% { opacity: 0; transform: scale(.6); } 43% { opacity: 1; transform: scale(1.12); } 46%, 92% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes tsk-bell {
  0%, 55%, 70%, 100% { transform: rotate(0); }
  57%, 61%, 65% { transform: rotate(18deg); }
  59%, 63%, 67% { transform: rotate(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tsk-chip, .tsk-bell, .tsk-s { animation: none !important; }
  .tsk-chip { opacity: 1; transform: none; }
  .tsk-s { max-height: 24px; opacity: 1; margin-top: 6px; }
}

/* Card animations sit at the bottom of their card, so every title stays at the top (Tal 2026-11-12). */
.anim-card { display: flex; flex-direction: column; position: relative; }
.anim-card > .anim-bottom { margin-top: auto !important; margin-bottom: 0 !important; }
.anim-card > p:has(+ .anim-bottom) { margin-bottom: 18px !important; }
.tsk.anim-bottom, .lst.anim-bottom { border: none; background: #f7f5f1; }
.pcat.anim-bottom { align-self: flex-end; }

/* Rendered loops (2026-11-12): Buda's six moods drawn by the app's own art code, and cats from the Plus collection. */
.esc-pic, .pcat-pic { display: block; }
.esc-pic img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 22px; }
.pcat-pic { align-self: flex-end; }
.pcat-pic img { display: block; width: 150px; height: auto; }

/* Rotating tasks and lists (Tal 2026-11-12): items stack in one grid cell, each shown for one 9 s round of its inner animation. Built by tools/anim/rotators.py. */
.rot { display: grid; }
.rot > .rot-i { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.rot-box { padding: 12px 14px; background: #f7f5f1; border-radius: 16px; }
.rot .tsk, .rot .lst { margin: 0; padding: 0; border: none; background: none; }
.lst-h { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 15px; color: #8a6400; margin-bottom: 8px; }
.rot4-0 { animation: rot4-0 36s infinite; }
@keyframes rot4-0 { 0.00%, 24.99% { visibility: visible; } 25.00%, 100% { visibility: hidden; } }
.rot4-1 { animation: rot4-1 36s infinite; }
@keyframes rot4-1 { 0%, 24.99% { visibility: hidden; } 25.00%, 49.99% { visibility: visible; } 50.00%, 100% { visibility: hidden; } }
.rot4-2 { animation: rot4-2 36s infinite; }
@keyframes rot4-2 { 0%, 49.99% { visibility: hidden; } 50.00%, 74.99% { visibility: visible; } 75.00%, 100% { visibility: hidden; } }
.rot4-3 { animation: rot4-3 36s infinite; }
@keyframes rot4-3 { 0%, 74.99% { visibility: hidden; } 75.00%, 99.99% { visibility: visible; } }
.rot5-0 { animation: rot5-0 45s infinite; }
@keyframes rot5-0 { 0.00%, 19.99% { visibility: visible; } 20.00%, 100% { visibility: hidden; } }
.rot5-1 { animation: rot5-1 45s infinite; }
@keyframes rot5-1 { 0%, 19.99% { visibility: hidden; } 20.00%, 39.99% { visibility: visible; } 40.00%, 100% { visibility: hidden; } }
.rot5-2 { animation: rot5-2 45s infinite; }
@keyframes rot5-2 { 0%, 39.99% { visibility: hidden; } 40.00%, 59.99% { visibility: visible; } 60.00%, 100% { visibility: hidden; } }
.rot5-3 { animation: rot5-3 45s infinite; }
@keyframes rot5-3 { 0%, 59.99% { visibility: hidden; } 60.00%, 79.99% { visibility: visible; } 80.00%, 100% { visibility: hidden; } }
.rot5-4 { animation: rot5-4 45s infinite; }
@keyframes rot5-4 { 0%, 79.99% { visibility: hidden; } 80.00%, 99.99% { visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .rot > .rot-i { animation: none; } .rot > .rot-i:first-child { visibility: visible; } }

/* Plus card: collection cats walk in, sit and walk out, one after another (2026-11-12). */
.pcat-pic { align-self: stretch; }
.pcat-pic img { width: 100%; max-width: 320px; margin: 0 auto; border-bottom: 2px dashed #e8e5e0; }

/* Real cats next to the PeskyPet cat made from their photo (Tal 2026-11-12). Built by tools/anim/realcats.py. */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.rc-card { margin: 0; background: #ffffff; border: 1px solid #e8e5e0; border-radius: 28px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.rc-row { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.rc-arrow { width: 44px; height: auto; }
.rc-photo { width: 104px; height: 104px; flex: none; object-fit: cover; border: 7px solid #ffffff; border-bottom-width: 22px; border-radius: 6px; box-shadow: 0 6px 16px rgba(43, 42, 46, .18); transform: rotate(-5deg); transition: transform .3s ease; background: #f1efeb; }
[dir="rtl"] .rc-photo { transform: rotate(5deg); }
.rc-card:hover .rc-photo { transform: rotate(0) scale(1.04); }
.rc-arrow { flex: none; }
[dir="rtl"] .rc-arrow { transform: scaleX(-1); }
.rc-pet { flex: none; display: block; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff3cc 0 58%, #fbf6e8 59% 100%); }
.rc-pet img { display: block; width: 128px; height: 128px; }
.rc-card figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 15px; color: #4a4850; }
.rc-card figcaption b { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 19px; color: #2b2a2e; }
.rc-credit { margin: 16px 0 0; font-size: 13px; color: #6e6a73; }
.rc-credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .rc-photo, [dir="rtl"] .rc-photo { transition: none; } }
.rc-card figcaption .rc-by { margin-top: 6px; font-size: 12px; color: #6e6a73; }
.rc-by a { color: inherit; }
.rc-by a:last-child { white-space: nowrap; }

/* Dog waitlist (Tal 2026-11-12): plain POST form to /api/dogs, no script. */
.sg-box { background: #2b2a2e; color: #f3f1ec; border-radius: 40px; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; overflow: hidden; }
.sg-text { flex: 1 1 360px; min-width: 0; }
.sg-pic { flex: 0 1 290px; display: block; margin-inline-start: auto; }
.sg-pic img { display: block; width: 100%; max-width: 290px; height: auto; }
.sg-form { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-form input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px; padding: 12px 18px; border-radius: 999px; border: 2px solid #4a4850; background: #1c1b1f; color: #f3f1ec; }
[dir="rtl"] .sg-form input[type="email"] { text-align: right; }
.sg-form input[type="email"]::placeholder { color: #8a868f; }
.sg-form input[type="email"]:focus { outline: none; border-color: #f5c443; }
.sg-form button { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px; padding: 12px 24px; border-radius: 999px; border: none; background: #f5c443; color: #2b2a2e; cursor: pointer; }
.sg-form button:hover { background: #f2b300; }
.sg-form button:focus-visible { outline: 3px solid #fff3cc; outline-offset: 2px; }
.sg-small { margin: 12px 0 0; font-size: 14px; color: #b5b1ab; }
.sg-small a { color: inherit; }
.sg-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) { .sg-box { padding: 28px 24px; border-radius: 28px; } .sg-pic { margin: 0 auto; } }
.sg-p { margin: 0 0 18px; color: #dcd8d2; }
.sg-light { background: #fff3cc; color: #2b2a2e; }
.sg-light .sg-p { color: #4a4850; }
.sg-light .sg-form input[type="email"] { background: #ffffff; border-color: #ecd68f; color: #2b2a2e; }
.sg-light .sg-form input[type="email"]:focus { border-color: #c98a00; }
.sg-light .sg-form button { background: #2b2a2e; color: #f3f1ec; }
.sg-light .sg-form button:hover { background: #1c1b1f; }
.sg-light .sg-form button:focus-visible { outline-color: #c98a00; }
.sg-light .sg-small { color: #6b4a00; }
/* Buda next to the news form. */
.sg-buda { position: relative; flex: none; width: 120px; height: 120px; margin-inline-start: auto; border-radius: 32px; overflow: hidden; background: #2b2a2e; }
.sg-buda img { display: block; width: 100%; height: 100%; transform: translateY(18%); }
@media (max-width: 600px) { .sg-buda { margin: 0 auto; } }





/* PAUSE:start (made by tools/anim/pause.py; do not edit by hand) */
body:not(:has(#anim-off:checked)) .a-still { display: none !important; }
body:has(#anim-off:checked) .a-anim { display: none !important; }
body:has(#anim-off:checked) .stink svg { animation: none; opacity: .45; transform: translateY(-60px); }
body:has(#anim-off:checked) .peek { animation: none !important; }
body:has(#anim-off:checked) .peek-a { transform: translateY(30%); }
body:has(#anim-off:checked) .peek-b, body:has(#anim-off:checked) .peek-c, body:has(#anim-off:checked) .peek-d { display: none; }
body:has(#anim-off:checked) .lst-t, body:has(#anim-off:checked) .lst-box, body:has(#anim-off:checked) .lst-box svg { animation: none !important; }
body:has(#anim-off:checked) .lst-t, body:has(#anim-off:checked) [dir="rtl"] .lst-t { clip-path: none; }
body:has(#anim-off:checked) .tsk-chip, body:has(#anim-off:checked) .tsk-bell, body:has(#anim-off:checked) .tsk-s { animation: none !important; }
body:has(#anim-off:checked) .tsk-chip { opacity: 1; transform: none; }
body:has(#anim-off:checked) .tsk-s { max-height: 24px; opacity: 1; margin-top: 6px; }
body:has(#anim-off:checked) .rot > .rot-i { animation: none; }
body:has(#anim-off:checked) .rot > .rot-i:first-child { visibility: visible; }
body:has(#anim-off:checked) .rc-photo, body:has(#anim-off:checked) [dir="rtl"] .rc-photo { transition: none; }
.a-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 20px; }
.a-head h2 { margin: 0 !important; }
.a-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #4a4850; cursor: pointer; padding: 6px 0; min-height: 32px; }
.a-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-knob { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #ffffff; border: 2px solid #2b2a2e; box-sizing: border-box; position: relative; }
.a-knob::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #2b2a2e; transition: inset-inline-start .15s; }
.a-switch input:checked + .a-knob { background: #f2b300; }
.a-switch input:checked + .a-knob::after { inset-inline-start: 19px; }
.a-switch input:focus-visible + .a-knob { outline: 3px solid #2b2a2e; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .a-switch { display: none; } }
.gift-card { padding-bottom: 96px !important; }
.gift-card > .gift-box { position: absolute; bottom: 20px; inset-inline-end: 28px; }
.stink { bottom: 72px; }
/* PAUSE:end */
