:root {
  --pink-50: #fff5f9;
  --pink-100: #ffe4ef;
  --pink-200: #ffcade;
  --pink-300: #ffa8c9;
  --pink-400: #ff85b3;
  --pink-500: #f7609a;
  --berry: #d63f7c;
  --ink: #5a3b4b;
  --ink-soft: #9a7487;
  --white: #ffffff;
  --mint: #b8f0dc;
  --lilac: #e6d6ff;
  --shadow: 0 8px 24px rgba(240, 96, 150, .18);
  --radius: 26px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #ffe9f3 0, transparent 40%),
    radial-gradient(circle at 90% 30%, #f3e6ff 0, transparent 35%),
    radial-gradient(circle at 20% 80%, #ffe2ee 0, transparent 40%),
    linear-gradient(180deg, #ffeef6 0%, #ffe0ed 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* polka dots */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(#ffffff 2.5px, transparent 2.6px);
  background-size: 28px 28px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* floating stickers */
#sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#sparkles span {
  position: absolute;
  bottom: -40px;
  animation: floatUp linear infinite;
  opacity: .7;
  filter: drop-shadow(0 2px 3px rgba(255, 120, 170, .3));
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .75; }
  90%  { opacity: .6; }
  100% { transform: translateY(-115vh) rotate(40deg); opacity: 0; }
}

/* hero */
.hero { text-align: center; padding: 6px 0 4px; }
.kitty { width: 112px; height: auto; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(240, 96, 150, .25)); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
h1, h2, h3 { font-family: "Comfortaa", "Nunito", sans-serif; margin: 0; }
h1 { font-size: 26px; color: var(--berry); margin-top: 6px; }
.sub { margin: 6px 0 0; color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.wiggle { display: inline-block; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(14deg) scale(1.1); } }

/* polaroids */
.polaroids {
  overflow: hidden;
  padding: 18px 0 22px;
  margin: 0 -16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.polaroids:active .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.polaroid {
  position: relative;
  flex: 0 0 auto;
  background: var(--white);
  padding: 8px 8px 30px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  transition: transform .25s;
}
.polaroids .polaroid { width: 128px; margin-right: 16px; padding-bottom: 18px; }
.polaroids .polaroid:nth-child(odd)  { transform: rotate(-4deg); }
.polaroids .polaroid:nth-child(even) { transform: rotate(3.5deg) translateY(6px); }
.polaroids .polaroid:active { transform: scale(1.05) rotate(0); }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid .cap {
  position: absolute; left: 0; right: 0; bottom: 6px;
  text-align: center; font-family: "Comfortaa"; font-size: 12px; font-weight: 700; color: var(--pink-500);
}
.polaroid .tape {
  position: absolute; top: -10px; left: 50%;
  width: 54px; height: 20px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 168, 201, .7);
  border-radius: 3px;
}
.polaroid .sticker { position: absolute; font-size: 22px; right: -8px; top: -8px; transform: rotate(14deg); }

/* cards */
.card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  border: 2px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 18px;
  position: relative;
}
.card h2 { font-size: 18px; color: var(--berry); margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* today slots */
.slot {
  display: flex; align-items: center; gap: 12px;
  background: var(--pink-50);
  border: 2px dashed var(--pink-200);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 10px;
  transition: background .3s, border-color .3s;
}
.slot.done { background: #effcf6; border-color: var(--mint); border-style: solid; }
.slot.late { border-color: var(--pink-400); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 133, 179, .18); } }
.slot .time {
  font-family: "Comfortaa"; font-weight: 700; font-size: 17px; color: var(--pink-500);
  background: var(--white); border-radius: 14px; padding: 8px 10px; min-width: 64px; text-align: center;
}
.slot.done .time { color: #3aa57d; }
.slot .what { flex: 1; font-size: 14px; line-height: 1.4; }
.slot .what b { font-weight: 800; }
.slot .what .st { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-top: 2px; }
.slot .tick {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--pink-300); background: var(--white);
  font-size: 20px; cursor: pointer; flex: 0 0 auto;
}
.slot.done .tick { background: var(--mint); border-color: #7fdcb9; }

/* buttons */
.btn {
  font-family: "Nunito"; font-weight: 800; font-size: 16px;
  color: var(--white);
  background: linear-gradient(180deg, var(--pink-400), var(--pink-500));
  border: none; border-radius: 999px;
  padding: 13px 22px;
  box-shadow: 0 5px 0 var(--berry), 0 10px 18px rgba(247, 96, 154, .3);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--berry), 0 4px 10px rgba(247, 96, 154, .3); }
.btn:disabled { opacity: .55; }
.btn-big { width: 100%; font-size: 18px; padding: 16px; margin-top: 6px; }
.btn-soft { background: var(--pink-100); color: var(--pink-500); box-shadow: 0 4px 0 var(--pink-200); }
.btn-soft:active { box-shadow: 0 1px 0 var(--pink-200); }
.btn-danger { background: #fff0f3; color: #e0476f; box-shadow: 0 4px 0 #ffd0dc; }
.btn.small { font-size: 14px; padding: 9px 14px; }
.icon-btn {
  min-width: 40px; height: 40px; border-radius: 14px;
  border: none; background: var(--pink-100); color: var(--pink-500);
  font-weight: 800; font-size: 18px; cursor: pointer; padding: 0 10px;
  box-shadow: 0 3px 0 var(--pink-200);
}
.icon-btn:active { transform: translateY(2px); box-shadow: none; }
.link { background: none; border: none; color: var(--ink-soft); font-weight: 700; margin-top: 12px; width: 100%; font-family: inherit; font-size: 14px; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip {
  font-family: "Nunito"; font-weight: 800; font-size: 14px;
  background: var(--white); color: var(--pink-500);
  border: 2px solid var(--pink-200); border-radius: 16px;
  padding: 11px 4px; cursor: pointer;
}
.chip:active { background: var(--pink-100); transform: scale(.96); }
.alarm { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.alarm input {
  flex: 1; font-family: "Comfortaa"; font-weight: 700; font-size: 18px; color: var(--pink-500);
  border: 2px solid var(--pink-200); border-radius: 16px; padding: 8px 10px; background: var(--white);
  min-width: 0;
}
.hint { color: var(--ink-soft); font-size: 13px; font-weight: 700; margin: 10px 0 0; }
.hint:empty { display: none; }

/* meds */
.med {
  background: linear-gradient(135deg, var(--pink-50), #fbf3ff);
  border: 2px solid var(--pink-100);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
}
.med-top { display: flex; align-items: center; gap: 12px; }
.pill-ico {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: var(--white); box-shadow: 0 3px 0 var(--pink-200);
}
.med-name { flex: 1; }
.med-name b { font-family: "Comfortaa"; font-size: 16px; display: block; }
.med-name small { color: var(--ink-soft); font-weight: 700; font-size: 12px; }
.med-stock { text-align: right; }
.med-stock b { font-family: "Comfortaa"; font-size: 26px; color: var(--pink-500); display: block; line-height: 1; }
.med-stock small { color: var(--ink-soft); font-weight: 700; font-size: 11px; }
.bar { height: 10px; border-radius: 99px; background: var(--white); margin: 12px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink-300), var(--pink-500)); transition: width .6s; }
.med.low .bar i { background: linear-gradient(90deg, #ffb199, #ff6b8b); }
.forecast { font-size: 13px; font-weight: 700; color: var(--ink); }
.med.low .forecast { color: #e0476f; }
.med-actions { display: flex; gap: 8px; margin-top: 12px; }
.med-actions .btn { flex: 1; font-size: 14px; padding: 10px; }

.foot { text-align: center; color: var(--ink-soft); font-weight: 700; font-size: 13px; margin-top: 8px; }

/* music button */
.music-btn {
  position: fixed; top: 12px; right: 12px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--white); background: rgba(255, 255, 255, .85);
  font-size: 20px; box-shadow: var(--shadow); cursor: pointer;
}
.music-btn.on { animation: spin 4s linear infinite; }
.music-btn.off { opacity: .55; filter: grayscale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* modals */
.modal {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(255, 210, 228, .6);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet, .reward {
  width: 100%; max-width: 380px;
  background: var(--white);
  border-radius: 30px;
  padding: 22px 18px;
  box-shadow: 0 20px 50px rgba(214, 63, 124, .25);
  animation: pop .35s cubic-bezier(.2, 1.6, .4, 1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.sheet h3 { color: var(--berry); font-size: 20px; text-align: center; }
.sheet .hint { text-align: center; }
.reward { text-align: center; background: linear-gradient(180deg, #fff, var(--pink-50)); }
.reward .polaroid.big { width: 78%; margin: 6px auto 16px; transform: rotate(-3deg); padding-bottom: 12px; }
.reward .polaroid.big img { aspect-ratio: auto; max-height: 46vh; object-fit: cover; }
.reward p { font-family: "Comfortaa"; font-weight: 700; font-size: 17px; line-height: 1.45; margin: 0 4px 18px; }

.stepper { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 16px 0 10px; }
.stepper input {
  width: 84px; text-align: center; font-family: "Comfortaa"; font-weight: 700; font-size: 24px; color: var(--pink-500);
  border: 2px solid var(--pink-200); border-radius: 16px; padding: 6px; background: var(--pink-50);
}
.check { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 16px; }
.check input { accent-color: var(--pink-500); width: 18px; height: 18px; }
.row { display: flex; gap: 10px; margin-top: 16px; }
.row .btn { flex: 1; }
.field { display: block; font-weight: 800; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.field input, .sched-row input {
  display: block; width: 100%; margin-top: 6px;
  font-family: "Nunito"; font-weight: 700; font-size: 16px; color: var(--ink);
  border: 2px solid var(--pink-200); border-radius: 14px; padding: 10px 12px; background: var(--pink-50);
}
.label { font-weight: 800; font-size: 13px; color: var(--ink-soft); margin: 14px 0 6px; }
.sched-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sched-row input { margin: 0; }
.sched-row input[type=time] { flex: 1.3; }
.sched-row input[type=number] { flex: 1; }
.sched-row span { font-weight: 800; color: var(--ink-soft); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 20;
  background: var(--ink); color: var(--white);
  font-weight: 800; font-size: 14px;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(90, 59, 75, .3);
  animation: pop .3s;
  max-width: 90vw; text-align: center;
}

/* confetti */
.confetti { position: fixed; top: -30px; z-index: 30; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* until auth is checked nothing personal is shown; strangers get the lock screen */
body.booting .wrap, body.booting .music-btn { visibility: hidden; }
.lock {
  position: fixed; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.lock[hidden] { display: none; }
.lock-ico { font-size: 64px; animation: bob 3s ease-in-out infinite; }
.lock h2 { color: var(--berry); font-size: 22px; margin-top: 12px; }
.lock p { color: var(--ink-soft); font-weight: 700; margin-top: 8px; }

/* calendar */
.card-head h2#calTitle { flex: 1; text-align: center; text-transform: capitalize; }
.cal-week, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; }
.day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  position: relative;
  border: none; border-radius: 14px;
  font-family: "Comfortaa"; font-weight: 700; font-size: 14px;
  color: var(--ink-soft);
  background: var(--pink-50);
  cursor: pointer; padding: 0;
  transition: transform .1s;
}
.day:active { transform: scale(.9); }
.day.blank { visibility: hidden; }
.day.future, .day.none { opacity: .5; }
.day.done {
  color: var(--white);
  background: linear-gradient(160deg, var(--pink-300), var(--pink-500));
  box-shadow: 0 3px 0 var(--berry);
}
.day.ok { color: var(--pink-500); background: var(--pink-100); box-shadow: inset 0 0 0 2px var(--pink-300); }
.day.partial { color: #a24b00; background: linear-gradient(160deg, #ffd59e, #ffb067); box-shadow: 0 3px 0 #e58a3a; }
.day.missed {
  color: var(--white);
  background: linear-gradient(160deg, #ff6b6b, #e5262f);
  box-shadow: 0 3px 0 #a3121a;
}
.day.missed::after { content: "!"; position: absolute; top: 0; right: 5px; font-size: 11px; font-weight: 800; }
.day.is-today { outline: 3px solid var(--ink); outline-offset: 1px; }
.day.missed.is-today { animation: alarm 1s ease-in-out infinite; }
@keyframes alarm { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(229, 38, 47, .25); } }
.cal-legend { display: flex; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink-soft); flex-wrap: wrap; }
.cal-legend span { display: flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.done { background: var(--pink-500); }
.lg.partial { background: #ffb067; }
.lg.missed { background: #e5262f; }

.day-mood { text-align: center; font-weight: 800; color: var(--ink-soft); margin: 6px 0 14px; }
.dose-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; margin-bottom: 8px; background: var(--pink-50); }
.dose-row.taken { background: #fff0f6; }
.dose-row.missed { background: #ffecec; }
.dose-row .t { font-family: "Comfortaa"; font-weight: 700; color: var(--pink-500); min-width: 48px; }
.dose-row.missed .t { color: #e5262f; }
.dose-row .w { flex: 1; font-size: 14px; line-height: 1.45; }
.dose-row .w small { display: block; font-weight: 800; font-size: 12px; margin-top: 2px; color: var(--ink-soft); }
.dose-row.taken .w small { color: var(--pink-500); }
.dose-row.missed .w small { color: #e5262f; }

/* interactive kitty */
.kitty-wrap { position: relative; display: block; }
.kitty { cursor: pointer; touch-action: manipulation; }
.kitty .eyes-happy, .kitty .eyes-sad, .kitty .mouth-sad { display: none; }
.kitty.happy .eyes-normal, .kitty.sad .eyes-normal { display: none; }
.kitty.happy .eyes-happy { display: inline; }
.kitty.sad .eyes-sad, .kitty.sad .mouth-sad { display: inline; }
.kitty.sad .mouth { display: none; }
.kitty.sad { animation: droop 3.5s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(120, 140, 200, .3)) saturate(.8); }
@keyframes droop { 50% { transform: translateY(3px) rotate(4deg); } }
.kitty .tear { animation: tear 1.8s ease-in infinite; }
@keyframes tear { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.kitty .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.kitty .blush { transform-box: fill-box; transform-origin: center; transition: transform .25s, opacity .25s; }
.kitty.boop { animation: boop .45s cubic-bezier(.3, 1.8, .5, 1) !important; }
.kitty.boop .blush { transform: scale(1.6); opacity: 1; }
@keyframes boop { 0% { transform: scale(1); } 30% { transform: scale(1.15, .85); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1); } }
.bubble {
  /* centred under the kitty, over the title: there is no room above or to the side on a phone */
  position: absolute; top: 88%; left: 0; right: 0; margin: 0 auto; z-index: 3;
  width: max-content; max-width: 80vw;
  background: var(--white); color: var(--ink);
  font-weight: 800; font-size: 14px; text-align: center;
  padding: 9px 14px; border-radius: 18px;
  box-shadow: var(--shadow);
  animation: pop .3s cubic-bezier(.2, 1.6, .4, 1);
}
.bubble[hidden] { display: none; }
.kitty-heart { position: absolute; pointer-events: none; animation: heartUp 1.1s ease-out forwards; }
@keyframes heartUp { to { transform: translate(var(--dx), -90px) scale(1.4); opacity: 0; } }

/* streak */
.streak-top { display: flex; align-items: center; gap: 14px; }
.flame { font-size: 44px; animation: flicker 1.4s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(255, 120, 60, .35)); }
.flame.cold { filter: grayscale(1); opacity: .5; animation: none; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-4deg); } }
.streak-text b { font-family: "Comfortaa"; font-size: 34px; color: var(--berry); }
.streak-text span { font-weight: 800; color: var(--ink); }
.streak-text small { display: block; font-weight: 700; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.streak-text small.risk { color: #e5262f; }
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 14px; }
.badge { text-align: center; background: var(--pink-50); border-radius: 14px; padding: 8px 2px 6px; font-size: 22px; }
.badge small { display: block; font-size: 10px; font-weight: 800; color: var(--ink-soft); margin-top: 2px; }
.badge.locked { filter: grayscale(1); opacity: .4; }
.badge.got { background: linear-gradient(160deg, #fff, var(--pink-100)); box-shadow: 0 3px 0 var(--pink-200); }
.hint.center { text-align: center; }
.milestone { font-family: "Comfortaa"; font-weight: 700; font-size: 20px; color: var(--berry); margin: 0 0 8px; }
.milestone[hidden] { display: none; }

/* calendar lives in a popup behind the 📅 button (top-left, mirrors the music button) */
.cal-btn { right: auto; left: 12px; }
body.booting .cal-btn { visibility: hidden; }
.cal-sheet { max-width: 420px; }
.cal-sheet .card-head { margin-bottom: 14px; }
.cal-sheet h2 { color: var(--berry); font-size: 19px; }

/* ---------- Venya the chihuahua ---------- */
.venya-mood {
  font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px;
  background: var(--pink-100); color: var(--pink-500);
}
.venya-mood.cry { background: #e3f3ff; color: #2d8bd6; }
.venya-mood.offended { background: #fff1dd; color: #c26a00; }
.venya-mood.happy { background: #ffe1ef; color: var(--berry); }
.venya-stage { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.venya { width: 210px; height: auto; cursor: pointer; touch-action: manipulation; overflow: visible; }
.venya * { transform-box: fill-box; }
.venya .v-body { transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02, .98); } }
.venya .v-head { transform-origin: 50% 90%; animation: headTilt 6s ease-in-out infinite; }
@keyframes headTilt { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg); } 85% { transform: rotate(5deg); } }
.venya .v-tail { transform-origin: 0% 90%; animation: wag 1s ease-in-out infinite; }
@keyframes wag { 50% { transform: rotate(-14deg); } }
.venya .v-ear-l { transform-origin: 90% 100%; animation: earL 5s ease-in-out infinite; }
.venya .v-ear-r { transform-origin: 10% 100%; animation: earR 5s ease-in-out infinite 1.3s; }
@keyframes earL { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-9deg); } }
@keyframes earR { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(9deg); } }
.venya .v-eye { transform-origin: center; animation: vblink 5s infinite; }
@keyframes vblink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }
.venya .v-eyes-happy, .venya .v-brows, .venya .v-tears, .venya .v-mouth-sad, .venya .v-tongue { display: none; }
.venya .v-puddle { transform-origin: center; transform: scale(0); transition: transform 1.2s; }

/* happy: tongue out, squinty eyes, fast wag, little hops */
.venya.happy .v-eyes-open { display: none; }
.venya.happy .v-eyes-happy, .venya.happy .v-tongue { display: inline; }
.venya.happy .v-mouth { display: none; }
.venya.happy .v-tail { animation-duration: .35s; }
.venya.happy { animation: hop 2.6s ease-in-out infinite; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-14px); } 86% { transform: translateY(0); } 92% { transform: translateY(-6px); } }

/* offended about yesterday: ears back, sulky brows, slow tail, head turned away */
.venya.offended .v-brows, .venya.offended .v-mouth-sad { display: inline; }
.venya.offended .v-mouth { display: none; }
.venya.offended .v-tail { animation: none; transform: rotate(18deg); }
.venya.offended .v-ear-l { animation: none; transform: rotate(-28deg); }
.venya.offended .v-ear-r { animation: none; transform: rotate(28deg); }
.venya.offended .v-head { animation: none; transform: rotate(-10deg); }

/* crying: tears streaming, droopy ears, shivering like a real chihuahua, puddle grows */
.venya.cry .v-brows, .venya.cry .v-tears, .venya.cry .v-mouth-sad { display: inline; }
.venya.cry .v-mouth { display: none; }
.venya.cry .v-ear-l { animation: none; transform: rotate(-38deg); }
.venya.cry .v-ear-r { animation: none; transform: rotate(38deg); }
.venya.cry .v-tail { animation: none; transform: rotate(40deg); }
.venya.cry .v-body, .venya.cry .v-head { animation: shiver .12s linear infinite; }
@keyframes shiver { 0% { transform: translateX(-1px); } 50% { transform: translateX(1px); } 100% { transform: translateX(-1px); } }
.venya .v-stream { stroke-dasharray: 8 10; animation: stream .6s linear infinite; }
@keyframes stream { to { stroke-dashoffset: -18; } }
.venya .v-drop { animation: drip 1s ease-in infinite; }
.venya .v-drop2 { animation-delay: .5s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* reactions */
.venya.pet { animation: petBounce .5s cubic-bezier(.3, 1.8, .5, 1) !important; }
@keyframes petBounce { 30% { transform: scale(1.08, .92); } 60% { transform: scale(.95, 1.06) translateY(-8px); } }
.venya.eat .v-head { animation: chomp .18s ease-in-out 6 !important; }
@keyframes chomp { 50% { transform: translateY(4px) rotate(2deg); } }
.venya.party { animation: spinJump 1s cubic-bezier(.3, 1.4, .5, 1) !important; }
@keyframes spinJump { 40% { transform: translateY(-36px) rotate(180deg); } 80% { transform: translateY(0) rotate(360deg); } 100% { transform: rotate(360deg); } }

.venya-bubble { top: -2px; }
.venya-bone { position: absolute; font-size: 30px; left: 50%; top: 0; animation: boneFly .9s ease-in forwards; }
.venya-bone[hidden] { display: none; }
@keyframes boneFly { 0% { transform: translate(90px, 140px) rotate(0); } 100% { transform: translate(-14px, 92px) rotate(-540deg) scale(.6); opacity: 0; } }
.venya-status { text-align: center; font-weight: 800; color: var(--ink); margin: 6px 0 12px; line-height: 1.4; }
.venya-status.cry { color: #2d8bd6; }
.venya-treat { width: 100%; }
.venya3d { width: 100%; max-width: 320px; height: 300px; cursor: grab; touch-action: pan-y; }
.venya3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* Venya + him: two speech bubbles, one over each */
.venya-bubble, .boy-bubble { top: 0; margin: 0; max-width: 48%; font-size: 13px; }
.venya-bubble { left: auto; right: 2%; }
.boy-bubble { left: 2%; right: auto; background: #eef4ff; }
.venya3d { height: 320px; max-width: 360px; }
