/* meowfee — brand: the logo and wordmark, the loading splash, little cat drawings
   (empty states, the Home table's fallback) and the café table. Everything uses
   theme variables, so it follows Muji light/dark and every other palette.
   Animations run only at full effects and never with Reduce motion. */

/* ── wordmark: "Meow" in ink, "fee" in wood ──────────────────────────────── */
.wordmark { font-family: var(--display); letter-spacing: .03em; }
.wordmark em { font-style: normal; color: var(--me-strong); }
[data-look="calm"] .logo { margin-bottom: 14px; }
[data-look="calm"] .logo span { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; animation: none; font-weight: 500; letter-spacing: .04em; font-size: clamp(2.1rem, 9vw, 2.7rem); }
[data-look="calm"] .logo.logo-compact span { font-size: clamp(1.6rem, 7vw, 2rem); -webkit-text-stroke-width: 0; }
[data-look="calm"] .logo-icon { border-radius: 26px; animation: none; border: 1px solid var(--rule); box-shadow: var(--shadow); margin-bottom: 10px; }
[data-look="calm"] .logo::before { content: "🐾"; left: calc(50% - 118px); top: 40px; font-size: 1.2rem; opacity: .35; animation: none; filter: grayscale(1) sepia(.5); }
[data-look="calm"] .logo::after { content: "🐾"; right: calc(50% - 118px); top: 20px; font-size: 1.2rem; opacity: .35; animation: none; transform: scaleX(-1) rotate(-12deg); filter: grayscale(1) sepia(.5); }
[data-look="calm"] .logo.logo-compact::before, [data-look="calm"] .logo.logo-compact::after { display: none; }
.side-logo .wordmark { color: var(--ink); font-weight: 500; }
.side-icon { border-radius: 9px; }

/* the Home top bar carries the mark beside the name */
.topbar .title.brand { display: flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.topbar .title.brand::before { content: ""; flex: none; width: 1.5em; height: 1.5em; border-radius: .42em; background: url(/static/icon.svg) center / cover; box-shadow: 0 0 0 1px var(--rule); }

/* ── loading splash (index.html), replaced when the app draws ─────────────── */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--paper); color: var(--ink); }
.splash-mark { width: 96px; height: 96px; border-radius: 27px; box-shadow: var(--shadow, 0 6px 18px rgb(0 0 0 / .08)); border: 1px solid var(--rule); }
.splash-word { font: 500 clamp(2rem, 9vw, 2.6rem)/1.1 var(--display); letter-spacing: .04em; }
.splash-word em { font-style: normal; color: var(--me-strong); }
.splash-paws { display: flex; gap: 10px; color: var(--me-strong); margin-top: 6px; }
.splash-paws i, .paw-load i { width: 18px; height: 18px; background: currentColor; opacity: .2;
  -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
:root { --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cellipse cx='6.2' cy='10.2' rx='2.2' ry='2.9'/%3E%3Cellipse cx='10.4' cy='5.8' rx='2.2' ry='2.9'/%3E%3Cellipse cx='15.6' cy='5.8' rx='2.2' ry='2.9'/%3E%3Cellipse cx='19.8' cy='10.2' rx='2.2' ry='2.9'/%3E%3Cpath d='M12.9 11c-3 0-6.1 3.4-6.1 6.2 0 2 1.7 2.8 3.3 2.5 1-.2 1.8-.6 2.8-.6s1.8.4 2.8.6c1.6.3 3.3-.5 3.3-2.5 0-2.8-3.1-6.2-6.1-6.2z'/%3E%3C/g%3E%3C/svg%3E"); }
.paw { width: 1em; height: 1em; }
:root:not([data-motion="reduce"]) .splash-paws i { animation: pawStep 1.5s infinite; }
.splash-paws i:nth-child(2) { animation-delay: .25s; margin-top: -8px; }
.splash-paws i:nth-child(3) { animation-delay: .5s; }
@keyframes pawStep { 0%, 100% { opacity: .2; } 35% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .splash-paws i { animation: none; opacity: .5; } }

/* ── cat drawings ─────────────────────────────────────────────────────────── */
.cat-art { display: block; width: 118px; margin: 0 auto 6px; color: var(--ink); }
.cat-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.cat-art .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cat-art .fl { fill: var(--raised); }
.cat-art .ac { fill: var(--me); }
.cat-art .ac2 { stroke: var(--me-strong); }
.cat-art .whisk { stroke: var(--ink-soft); stroke-width: 2; }
.cat-art .coffee { fill: var(--me-strong); }
.cat-art .steam { stroke: var(--ink-soft); stroke-width: 2.4; }
.cat-art .heart { fill: var(--muji-red, var(--me)); }
.k-empty.has-cat { padding-top: 20px; }
.k-empty.has-cat .cat-art { opacity: .95; }
:root[data-fx="full"]:not([data-motion="reduce"]) .cat-sleep .zz { animation: zzFloat 3.2s ease-in-out infinite; }
:root[data-fx="full"]:not([data-motion="reduce"]) .cat-cup .steam { stroke-dasharray: 3 5; animation: steamRise 2.4s linear infinite; }
:root[data-fx="full"]:not([data-motion="reduce"]) .cat-peek .fl:first-child { transform-origin: 60px 66px; animation: peekBob 4s ease-in-out infinite; }
@keyframes zzFloat { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-4px); opacity: .55; } }
@keyframes steamRise { to { stroke-dashoffset: -16; } }
@keyframes peekBob { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.03); } }

/* ── the Home table ───────────────────────────────────────────────────────── */
.cafe::before { content: ""; position: absolute; left: 50%; bottom: 22px; width: min(92%, 440px); height: 96px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--wood, var(--me)) 20%, transparent), transparent); }
.cafe .fallback .cat-art { width: 200px; margin: 0; }
.cafe-mew { position: absolute; transform: translate(-50%, -140%); padding: 3px 11px; border-radius: 99px; background: var(--raised); color: var(--ink); border: 1px solid var(--rule);
  font: 700 .82rem/1.4 var(--text); pointer-events: none; animation: mewUp 1.1s ease-out forwards; box-shadow: var(--shadow, none); }
@keyframes mewUp { 0% { opacity: 0; transform: translate(-50%, -100%) scale(.7); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.empty.has-cat { padding-top: 22px; }
.empty .cat-art { margin-bottom: 8px; }
