:root{--bg:#f4efe6;--surface:#fffdf8;--text:#22201c;--muted:#6f685d;--accent:#e2553b;--accent-soft:#f6d9cf;--track:#e8e0d2;--egg:#fbf7ee;--egg-line:#d9cfbd;--spot:#7bc47f;--error:#b3261e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#16181d;--surface:#20232a;--text:#f1ede6;--muted:#a39d93;--accent:#ff7a5c;--accent-soft:#4a2a22;--track:#2f333b;--egg:#ece6da;--egg-line:#bdb3a2;--spot:#6fb874;--error:#ff8a80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,SF Pro Rounded,system-ui,sans-serif}.app{max-width:480px;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);flex-direction:column;gap:16px;margin:0 auto;display:flex}.top{justify-content:space-between;align-items:baseline;gap:12px;display:flex}h1{margin:0;font-size:1.5rem}h2{margin:4px 0 0;font-size:1.25rem}h3{margin:0 0 12px;font-size:.95rem}.date,.muted{color:var(--muted)}.date{font-size:.9rem;display:inline-block}.date:first-letter{text-transform:uppercase}.card{background:var(--surface);border-radius:20px;padding:20px;box-shadow:0 1px 2px #0000000f}.companion{text-align:center;flex-direction:column;align-items:center;gap:4px;display:flex}.companion p{margin:0 0 12px}.egg{transform-origin:50% 90%;width:140px;height:175px}.egg-shell{fill:var(--egg);stroke:var(--egg-line);stroke-width:2px}.egg-spot{fill:var(--spot)}.egg-shadow{fill:#0000001f}.egg-crack{fill:none;stroke:#3a332b;stroke-width:2.5px;stroke-linejoin:round}.egg-close{animation:2.4s ease-in-out infinite wobble}.egg-ready{animation:.9s ease-in-out infinite wobble}@keyframes wobble{0%,60%,to{transform:rotate(0)}70%{transform:rotate(-6deg)}80%{transform:rotate(6deg)}90%{transform:rotate(-3deg)}}@media (prefers-reduced-motion:reduce){.egg-close,.egg-ready{animation:none}}.progress{background:var(--track);border-radius:999px;width:100%;height:12px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:999px;height:100%;transition:width .4s}.stats{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat{background:var(--surface);border-radius:16px;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:14px 10px;display:flex}.stat-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:center;font-size:1.1rem;font-weight:700}.stat-label{color:var(--muted);text-align:center;font-size:.75rem}.sync{text-align:center;margin:0;font-size:.8rem}.error{color:var(--error)}.dev{border:1px dashed var(--muted);box-shadow:none;background:0 0}.dev-buttons{gap:8px;display:flex}.dev-buttons button{font:inherit;background:var(--accent-soft);color:var(--text);cursor:pointer;border:0;border-radius:12px;flex:1;padding:12px 0;font-weight:600}.dev-buttons button:disabled{opacity:.5}.shell{min-height:100dvh}.app{padding-bottom:calc(env(safe-area-inset-bottom) + 96px)}.tabbar{padding:8px 16px calc(env(safe-area-inset-bottom) + 8px);background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--track);justify-content:center;gap:8px;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar button{max-width:200px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 0;font-size:.75rem;font-weight:600;display:flex}.tabbar button span{filter:grayscale();opacity:.6;font-size:1.3rem}.tabbar button.active{color:var(--text)}.tabbar button.active span{filter:none;opacity:1}.primary{font:inherit;background:var(--accent);color:#fff;cursor:pointer;box-shadow:0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);border:0;border-radius:999px;margin-top:8px;padding:14px 32px;font-size:1rem;font-weight:700}.primary:disabled{opacity:.7}.sprite{image-rendering:pixelated;object-fit:contain;width:72px;height:72px}.sprite-large{width:160px;height:160px}.sprite-button{cursor:pointer;background:0 0;border:0;padding:0}.pop-in{animation:.5s cubic-bezier(.2,1.6,.4,1) pop-in}@keyframes pop-in{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}.egg-hatching{animation:.35s ease-in-out infinite wobble-hard}@keyframes wobble-hard{0%,to{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}@media (prefers-reduced-motion:reduce){.pop-in,.egg-hatching{animation:none}}.rarity{letter-spacing:.04em;text-transform:uppercase;border-radius:999px;margin-bottom:8px;padding:3px 10px;font-size:.72rem;font-weight:700}.rarity-common{background:var(--track);color:var(--muted)}.rarity-uncommon{color:#2e6b34;background:#d6ecd8}.rarity-rare{color:#2a4f9c;background:#d7e3fb}.rarity-legendary{color:#85600a;background:#fbe7b5}.evo-line{justify-content:center;gap:12px;margin:16px 0 0;padding:0;list-style:none;display:flex}.evo-line li{color:var(--muted);flex-direction:column;align-items:center;min-width:0;font-size:.72rem;display:flex}.evo-line .sprite{width:56px;height:56px}.evo-line li.current{color:var(--text);font-weight:700}.evo-line li.future .sprite{filter:brightness(0);opacity:.35}.toast{left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 84px);background:var(--text);max-width:448px;color:var(--bg);text-align:center;z-index:10;border-radius:16px;margin:0 auto;padding:14px 16px;font-weight:600;animation:.3s ease-out pop-in;position:fixed;box-shadow:0 8px 24px #0003}.dex-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.dex-cell{background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border:0;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;display:flex}.dex-name{overflow-wrap:anywhere;text-align:center;font-size:.8rem;font-weight:600}.dex-number{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.7rem}.empty{text-align:center}.empty p{margin:4px 0}.sheet-backdrop{z-index:20;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:480px;max-height:88dvh;padding:16px 20px calc(env(safe-area-inset-bottom) + 24px);text-align:center;border-radius:24px 24px 0 0;flex-direction:column;align-items:center;animation:.26s ease-out sheet-up;display:flex;position:relative;overflow-y:auto}@keyframes sheet-up{0%{opacity:0;transform:translateY(40px)}}.sheet-close{background:var(--track);width:36px;height:36px;color:var(--text);cursor:pointer;border:0;border-radius:999px;font-size:1rem;position:absolute;top:12px;right:12px}.sheet h3{text-align:left;align-self:stretch;margin:16px 0 8px}.genus{margin:0 0 8px}.types{gap:6px;display:flex}.type{color:#fff;text-shadow:0 1px 1px #0000004d;border-radius:999px;padding:4px 12px;font-size:.75rem;font-weight:700}.flavor{margin:12px 0 0;line-height:1.45}.facts{gap:24px;margin:12px 0 0;display:flex}.facts div{flex-direction:column;display:flex}.facts dt{color:var(--muted);font-size:.75rem}.facts dd{margin:0;font-weight:700}.stat-bars{flex-direction:column;align-self:stretch;gap:6px;margin:0;padding:0;list-style:none;display:flex}.stat-bars li{text-align:left;grid-template-columns:110px 32px 1fr;align-items:center;gap:8px;font-size:.85rem;display:grid}.stat-name{color:var(--muted)}.stat-num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}.bar{background:var(--track);border-radius:999px;height:8px;overflow:hidden}.bar span{background:var(--accent);border-radius:999px;height:100%;display:block}.abilities{text-align:left;align-self:stretch;margin:0}.bag{align-items:center;gap:12px;padding:14px 16px;display:flex}.item-sprite{width:40px;height:40px;image-rendering:pixelated;flex-shrink:0}.bag-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.bag-text .muted{font-size:.8rem}.secondary{font:inherit;background:var(--accent-soft);color:var(--text);cursor:pointer;border:0;border-radius:999px;flex-shrink:0;padding:10px 16px;font-weight:700}.secondary:disabled{opacity:.45;cursor:default}.goals{flex-direction:column;gap:16px;display:flex}.goal{flex-direction:column;gap:6px;display:flex}.goal-head{justify-content:space-between;gap:8px;font-size:.85rem;display:flex}.goal-done{color:#3fa129;font-weight:700}.goal-value strong{font-variant-numeric:tabular-nums;font-size:1.3rem}.stats-2{grid-template-columns:repeat(2,1fr)}.workouts h3{margin-bottom:8px}.workouts p{margin:0;font-size:.9rem}.workouts ul{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.workouts li{align-items:center;gap:12px;display:flex}.workout-icon{background:var(--track);border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:40px;font-size:1.4rem;display:grid}.workout-text{flex-direction:column;flex:1;min-width:0;display:flex}.workout-text strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workout-text .muted{font-size:.8rem}.workout-xp{color:var(--accent);font-variant-numeric:tabular-nums;font-weight:700}.workouts ul.tiers{flex-flow:wrap;gap:6px;margin:-2px 0 12px}.workouts ul.tiers li{white-space:nowrap;background:var(--track);color:var(--muted);border-radius:999px;padding:3px 8px;font-size:.75rem}.sleep{background:var(--track);border-radius:14px;align-items:center;gap:12px;padding:10px 12px;display:flex}.sleep-boosted{background:color-mix(in srgb, #7c6cf0 22%, var(--surface))}.sleep-icon{font-size:1.4rem}.sleep-text{flex-direction:column;min-width:0;display:flex}.sleep-text .muted{font-size:.8rem}.login{justify-content:center;min-height:100dvh}.login h1{margin-top:8px}.login p{margin:4px 0 8px}.google-button{border:1px solid var(--egg-line);color:#1f1f1f;background:#fff;border-radius:999px;align-items:center;gap:10px;margin-top:12px;padding:12px 22px;font-weight:600;text-decoration:none;display:inline-flex}.google-button svg{width:20px;height:20px}.account{text-align:center;margin:0;font-size:.8rem}.link{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}
