/* Nunito (SIL Open Font License), bundled so the app works offline and makes no third-party requests */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Bearly - pastel winter, living plush. Rounded sans, soft depth, snow light. */
:root {
  --snow: #fbf8ff;
  --paper: #ffffff;
  --mist: #f3edf9;
  --lav: #b9a7e8;
  --lav-deep: #7d68c4;
  --dusk: #f4c6d6;
  --cocoa: #6b4029;
  --cocoa-soft: #a2714f;
  --honey: #e9a93e;
  --honey-soft: #fbe7c1;
  --scarf: #c8322f;
  --pine: #4f8a6e;
  --pine-soft: #dcefe4;
  --ink: #33253a;
  --ink-2: #5e5068;
  --ink-3: #766882;
  --line: #ece4f3;
  --shadow: 0 1px 2px rgba(24, 18, 30, .06), 0 8px 24px rgba(24, 18, 30, .08);
  --shadow-lg: 0 2px 6px rgba(24, 18, 30, .08), 0 24px 60px rgba(24, 18, 30, .18);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f6edf3 0%, #efeaf8 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
svg { display: block; }

/* ---------- stage: desktop shows a phone, phones show the app ---------- */
.stage { height: 100vh; overflow: clip; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 32px; }
.aside { max-width: 300px; }
.aside-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.aside h1 { font-size: 44px; font-weight: 900; letter-spacing: -.02em; margin: 18px 0 6px; }
.aside p { color: var(--ink-2); font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.aside-hint { font-size: 14px !important; color: var(--ink-2) !important; }
.phone {
  position: relative; width: 390px; height: 844px; border-radius: 54px; overflow: hidden;
  background: var(--snow); box-shadow: 0 0 0 11px #1d1622, 0 0 0 13px #3a3040, 0 30px 80px rgba(20, 16, 24, .22);
  isolation: isolate; flex: none; transform-origin: center;
}
.notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #0d0a10; z-index: 90; pointer-events: none; }
@media (max-width: 760px) {
  .stage { padding: 0; display: block; height: auto; overflow: visible; }
  .aside, .notch { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  :root { --safe-top: max(env(safe-area-inset-top, 0px), 12px); }
}
@media (min-width: 761px) { :root { --safe-top: 50px; --safe-bot: 18px; } }

.app { position: absolute; inset: 0; overflow: hidden; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.layer { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.layer > * { pointer-events: auto; }

/* ---------- generic ---------- */
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.pad { padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bot) + 110px); }
.enter { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.stagger > * { animation: enter .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(7) { animation-delay: .3s; }
.stagger > *:nth-child(n+8) { animation-delay: .35s; }

h2.title { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.1; }
.sub { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 0 0 18px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-deep); }
.card { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); font-weight: 700; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 18px;
  font-weight: 800; font-size: 17px; background: var(--cocoa); color: #fff; box-shadow: 0 6px 0 #4a2a19, 0 10px 20px rgba(24, 18, 30, .16);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .2s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #4a2a19, 0 4px 10px rgba(24, 18, 30, .14); }
.btn.honey { background: var(--honey); box-shadow: 0 6px 0 #b97d1d, 0 10px 20px rgba(24, 18, 30, .14); color: #3b2508; }
.btn.honey:active { box-shadow: 0 2px 0 #b97d1d; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.btn.ghost:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link { font-weight: 800; color: var(--ink-2); font-size: 15px; padding: 14px; width: 100%; text-align: center; }

.ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.ic svg, .i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i { display: inline-grid; place-items: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); font-weight: 900; font-size: 15px; }
.pill .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.pill .dot svg { width: 15px; height: 15px; }
.honey-dot { background: var(--honey-soft); color: #b27212; }
.flame-dot { background: #ffe1dc; color: #d9543b; }

/* ---------- onboarding ---------- */
.ob { display: flex; flex-direction: column; min-height: 100%; padding: calc(var(--safe-top) + 10px) 24px calc(var(--safe-bot) + 20px); }
.ob-top { display: flex; align-items: center; gap: 12px; height: 40px; margin-bottom: 8px; }
.ob-back { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.ob-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100% !important; background: linear-gradient(90deg, var(--honey), #f3c46f); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0 round 99px); transition: clip-path .6s var(--ease); }
.ob-body { flex: 1; display: flex; flex-direction: column; }
.ob-art { width: 100%; max-width: 280px; margin: 0 auto 8px; aspect-ratio: 1; object-fit: contain; }
.ob-art.sm { max-width: 190px; }
.ob h2 { font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; margin: 8px 0 8px; text-align: center; }
.ob p.lead { text-align: center; color: var(--ink-2); font-size: 16px; line-height: 1.45; margin: 0 0 20px; }
.ob-foot { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; }
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.splash { background: linear-gradient(180deg, #efe4f8 0%, #fbeff3 45%, var(--snow) 100%); }
.brand { text-align: center; margin-top: 8px; }
.brand b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.03em; color: var(--cocoa); }
.brand span { font-size: 17px; color: var(--ink-2); font-weight: 700; }
.snowfield { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.den-wrap { position: relative; width: 100%; max-width: 330px; margin: 6px auto 0; aspect-ratio: 1; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); background: #e9e8f6; }
.den-wrap img, .den-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.den-wrap video { opacity: 0; transition: opacity .35s; }
.den-wrap.waking video { opacity: 1; }
.den-wrap.shake img { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: rotate(-2deg) scale(1.02); } 40% { transform: rotate(2deg) scale(1.03); } 60% { transform: rotate(-1deg); } 80% { transform: rotate(1deg); } }
.taps { display: flex; gap: 10px; justify-content: center; margin: 16px 0 0; }
.taps i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s var(--spring); }
.taps i.on { background: var(--honey); transform: scale(1.25); }
.zzz { position: absolute; top: 16%; right: 22%; font-weight: 900; color: #fff; font-size: 22px; text-shadow: 0 2px 6px rgba(24, 18, 30, .35); animation: zzz 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 10px) scale(.7); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -30px) scale(1.2); } }

.field { width: 100%; height: 60px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); padding: 0 18px; font-size: 20px; font-weight: 800; outline: none; text-align: center; transition: border-color .2s; }
.field:focus { border-color: var(--lav); }
textarea.field { height: 140px; padding: 16px; text-align: left; font-size: 17px; font-weight: 600; resize: none; line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); font-weight: 800; font-size: 15px; transition: all .2s var(--ease); }
.chip .i svg { width: 18px; height: 18px; }
.chip.on { background: #f3eefe; box-shadow: 0 0 0 2px var(--lav-deep); color: var(--lav-deep); transform: scale(1.03); }

.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); text-align: left; transition: all .2s var(--ease); }
.choice img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: var(--mist); }
.choice b { display: block; font-size: 17px; font-weight: 900; }
.choice span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.choice.on { box-shadow: 0 0 0 3px var(--honey); background: #fffaf0; }
.choice .face { width: 64px; height: 64px; border-radius: 14px; background-size: 200% auto; background-repeat: no-repeat; }

.plan { display: grid; gap: 10px; }
.plan .goal { animation: pop .5s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

.commit-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.commit-days button { height: 76px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); font-weight: 900; font-size: 24px; display: grid; place-content: center; line-height: 1; }
.commit-days button small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; font-weight: 800; }
.commit-days button.on { box-shadow: 0 0 0 3px var(--honey); background: #fffaf0; color: #9a5f06; }
.hold { position: relative; width: 132px; height: 132px; margin: 6px auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold svg.ring circle { fill: none; stroke-width: 8; }
.hold .paw { width: 64px; height: 64px; color: var(--cocoa); transition: transform .2s var(--spring); }
.hold.pressing .paw { transform: scale(.88); }
.hold.done { background: var(--honey-soft); }

.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time { padding: 18px 14px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); text-align: left; }
.time b { display: block; font-size: 22px; font-weight: 900; margin-top: 6px; }
.time span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.time .i { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--lav-deep); }
.time.on { box-shadow: 0 0 0 3px var(--honey); background: #fffaf0; }

/* paywall */
.paywall { background: linear-gradient(180deg, #fbe9d2 0%, #fdf5ea 38%, var(--snow) 100%); }
.pw-badge { align-self: center; font-size: 13px; font-weight: 900; color: #fff; background: var(--scarf); padding: 6px 12px; border-radius: 99px; letter-spacing: .02em; }
.timeline { position: relative; display: grid; gap: 14px; margin: 14px 0 16px; padding-left: 4px; }
.timeline::before { content: ''; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 8px; border-radius: 8px; background: linear-gradient(180deg, var(--honey), #f7d9a3 60%, var(--line)); }
.tl { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.tl .i { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--honey); color: #fff; box-shadow: 0 0 0 4px #fdf5ea; }
.tl:nth-child(2) .i { background: #f0c16f; } .tl:nth-child(3) .i { background: #d8cde4; color: var(--ink-2); }
.tl b { display: block; font-size: 17px; font-weight: 900; margin-top: 2px; }
.tl span { font-size: 14px; color: var(--ink-2); line-height: 1.4; font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan-opt { position: relative; padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); text-align: left; }
.plan-opt b { display: block; font-weight: 900; font-size: 16px; }
.plan-opt span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.plan-opt em { position: absolute; top: -10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--pine); padding: 3px 8px; border-radius: 99px; }
.plan-opt.on { box-shadow: 0 0 0 3px var(--honey); background: #fffaf0; }

/* ---------- home ---------- */
.home { background: var(--snow); }
.scene { position: relative; height: 500px; overflow: hidden; background: #e8dcef; }
.scene video, .scene .still { position: absolute; left: 0; top: -66px; width: 100%; height: auto; min-height: calc(100% + 66px); object-fit: cover; object-position: 50% 0; }
.scene .react { opacity: 0; transition: opacity .25s; }
.scene .react.on { opacity: 1; }
.scene-tint { position: absolute; inset: 0; pointer-events: none; transition: background 1s; mix-blend-mode: multiply; }
.scene[data-tod="dawn"] .scene-tint { background: linear-gradient(180deg, rgba(255, 190, 170, .25), transparent 60%); }
.scene[data-tod="day"] .scene-tint { background: linear-gradient(180deg, rgba(190, 220, 255, .18), transparent 60%); }
.scene[data-tod="night"] .scene-tint { mix-blend-mode: normal; background: linear-gradient(180deg, rgba(22, 18, 70, .72) 0%, rgba(38, 30, 96, .5) 45%, rgba(46, 38, 110, .32) 75%, rgba(46, 38, 110, .2)); }
.scene[data-tod="night"] .frost { box-shadow: inset 0 0 80px 22px rgba(150, 160, 230, .35); }
.scene[data-tod="night"] .aurora { inset: -10% -10% 50% -10%; }
.scene[data-tod="night"] .aurora.on { opacity: 1; }
.scene[data-tod="dusk"] .scene-tint { background: linear-gradient(180deg, rgba(255, 170, 190, .22), transparent 60%); }
.frost { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 22px rgba(235, 245, 255, .85); transition: opacity 1.2s var(--ease); }
.aurora { position: absolute; inset: -20% -10% 55% -10%; pointer-events: none; opacity: 0; filter: blur(22px); mix-blend-mode: screen; transition: opacity 1.4s;
  background: radial-gradient(40% 60% at 30% 60%, rgba(120, 255, 190, .8), transparent 70%), radial-gradient(40% 50% at 70% 50%, rgba(255, 130, 220, .6), transparent 70%), radial-gradient(35% 50% at 50% 30%, rgba(140, 180, 255, .7), transparent 70%);
  animation: aurora 12s ease-in-out infinite alternate; }
.aurora.on { opacity: .85; }
@keyframes aurora { 50% { transform: translateX(8%) skewX(-8deg) scaleY(1.15); } 100% { transform: translateX(-6%) skewX(6deg); } }
.lights { position: absolute; z-index: 2; left: -10px; right: -10px; top: calc(var(--safe-top) + 40px); height: 70px; pointer-events: none; opacity: 0; transition: opacity 1s; }
.lights.on { opacity: 1; }
.lights .bulb { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { opacity: .35; } }
.lantern { position: absolute; z-index: 2; width: 38px; bottom: 110px; pointer-events: none; opacity: 0; transition: opacity 1s; filter: drop-shadow(0 0 14px rgba(255, 190, 90, .9)); animation: sway 5s ease-in-out infinite; transform-origin: top center; }
.lantern.on { opacity: 1; }
@keyframes sway { 50% { transform: rotate(4deg); } }
.hearts-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hearts-fx i { position: absolute; bottom: 30%; font-style: normal; color: #ff8fb1; opacity: 0; animation: rise 6s ease-in infinite; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-220px) translateX(20px) scale(1.1); } }
.scene-top { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 4px); display: flex; align-items: center; gap: 8px; padding: 0 16px; z-index: 3; }
.scene-top .spacer { flex: 1; }
.tapzone { position: absolute; left: 10%; right: 10%; top: 40%; height: 48%; z-index: 2; border-radius: 40%; }
.bubble {
  position: absolute; left: 50%; top: calc(var(--safe-top) + 58px); transform: translateX(-50%) scale(.9); z-index: 4; max-width: 290px; width: max-content;
  padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); font-weight: 800; font-size: 15px; line-height: 1.35; text-align: center;
  opacity: 0; transition: opacity .3s, transform .35s var(--spring); pointer-events: none;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.bubble.on { opacity: 1; transform: translateX(-50%) scale(1); }
.bubble b { color: var(--cocoa); }
.bubble b.bella { color: var(--scarf); }

.away { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(245, 240, 252, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: center; padding: 30px; }
.away .card { max-width: 280px; }
.away h3 { margin: 10px 0 4px; font-size: 20px; font-weight: 900; }
.sled { font-size: 0; width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; background: var(--honey-soft); color: #b27212; animation: float 2.4s ease-in-out infinite; }
.sled svg { width: 40px; height: 40px; }
.countdown { font-size: 34px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.sheet-body { position: relative; margin-top: -34px; border-radius: 30px 30px 0 0; background: var(--snow); padding: 18px 18px calc(var(--safe-bot) + 110px); z-index: 5; }
.warm { padding: 14px 16px; }
.warm-top { display: flex; align-items: center; gap: 10px; }
.warm-top .i { width: 36px; height: 36px; border-radius: 12px; background: #ffe7d6; color: #e2702f; flex: none; }
.warm-top b { font-weight: 900; font-size: 15px; }
.warm-top span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.bar { position: relative; height: 14px; margin-top: 10px; border-radius: 99px; background: #f4ebf6; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #f7b267, #f79d84, #e993c6); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0 round 99px); transition: clip-path .9s var(--ease); }
.bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); background-size: 60% 100%; background-repeat: no-repeat; animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { from { background-position: -80% 0; } to { background-position: 180% 0; } }
.bar-label { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 900; color: rgba(60, 30, 50, .6); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.quick button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; color: var(--ink-2); transition: transform .15s var(--ease); }
.quick button:active { transform: scale(.94); }
.quick .i { width: 40px; height: 40px; border-radius: 14px; }
.q-mood .i { background: #e6f1ff; color: #4f7fd6; } .q-breathe .i { background: var(--pine-soft); color: var(--pine); }
.q-note .i { background: #fdeaf1; color: #cf4f7e; } .q-night .i { background: #ece8ff; color: var(--lav-deep); }

.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.sec-h h3 { margin: 0; font-size: 18px; font-weight: 900; }
.sec-h .tiny { font-size: 13px; }
.add { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; color: var(--lav-deep); padding: 6px 10px; border-radius: 12px; background: #f1ecfd; }
.add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.slot { font-size: 12px; font-weight: 900; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin: 14px 4px 8px; display: flex; align-items: center; gap: 6px; }
.slot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.goals { display: grid; gap: 10px; }
.goal { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); text-align: left; width: 100%; transition: transform .2s var(--ease), opacity .3s; }
.goal:active { transform: scale(.985); }
.goal .gi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.goal .gi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.goal b { display: block; font-weight: 800; font-size: 16px; }
.goal small { font-size: 12px; font-weight: 800; color: var(--ink-3); display: flex; gap: 8px; margin-top: 2px; }
.goal small span { display: inline-flex; align-items: center; gap: 3px; }
.goal small svg { width: 12px; height: 12px; }
.check { width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); color: transparent; transition: all .3s var(--spring); }
.check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.goal.done { opacity: .62; }
.goal.done b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--ink-3); }
.goal.done .check { background: var(--pine); box-shadow: none; color: #fff; transform: scale(1.02); }
.goal.skip .check, .goal.snooze .check { box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-3); }
.goal.skip { opacity: .5; }
.c-sun { background: #fff3d6; color: #d68a12; } .c-water { background: #e2f0ff; color: #3d82d8; } .c-tooth { background: #eaf7f2; color: #3f9a7a; }
.c-move { background: #ffe8e1; color: #de6a4b; } .c-mind { background: #efe9ff; color: #7a60d0; } .c-heart { background: #ffe7f0; color: #d24f82; }
.c-sleep { background: #e7e9ff; color: #5b62c9; } .c-leaf { background: #e5f5e7; color: #4e9a58; }
.all-done { text-align: center; padding: 18px; }
.all-done img { width: 150px; margin: 0 auto; }
.all-done b { display: block; font-size: 18px; font-weight: 900; }

.buddy { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, #eef7f1, #e7f0ff); }
.buddy img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.buddy b { font-weight: 900; font-size: 16px; display: block; }
.buddy p { margin: 2px 0 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.buddy button { height: 34px; padding: 0 14px; border-radius: 12px; background: #fff; font-weight: 900; font-size: 13px; box-shadow: var(--shadow); }

/* ---------- tab bar ---------- */
.tabs { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bot) + 10px); height: 70px; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-lg); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 20px; font-size: 11px; font-weight: 900; color: var(--ink-3); transition: color .2s, background .25s; position: relative; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.tab.on { color: var(--cocoa); background: #f6eef4; }
.tab.on svg { transform: translateY(-1px) scale(1.08); }
.tab .badge { position: absolute; top: 6px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--scarf); box-shadow: 0 0 0 2px #fff; }

/* ---------- sheets & modals ---------- */
.scrim { position: absolute; inset: 0; background: rgba(40, 25, 50, .38); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; background: var(--snow); border-radius: 30px 30px 0 0; padding: 10px 20px calc(var(--safe-bot) + 24px); transform: translateY(105%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); scrollbar-width: none; }
.sheet.on { transform: translateY(0); }
.grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { margin: 4px 0 4px; font-size: 22px; font-weight: 900; text-align: center; letter-spacing: -.01em; }
.sheet .sub { text-align: center; }
.act-goal { text-align: center; }
.act-goal .gi { width: 64px; height: 64px; border-radius: 20px; margin: 4px auto 10px; }
.act-goal .gi svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; margin-top: 18px; }
.acts button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); font-weight: 900; font-size: 13px; color: var(--ink-2); }
.acts button .i { width: 44px; height: 44px; border-radius: 14px; background: var(--mist); }
.acts button.main { background: var(--pine); color: #fff; box-shadow: 0 6px 0 #386650, 0 10px 20px rgba(24, 18, 30, .14); }
.acts button.main .i { background: rgba(255, 255, 255, .2); }
.acts button.main svg { width: 28px; height: 28px; stroke-width: 3; }

.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; }
.mood { display: grid; justify-items: center; gap: 6px; padding: 12px 2px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); font-size: 12px; font-weight: 900; color: var(--ink-2); transition: all .2s var(--spring); }
.mood svg { width: 34px; height: 34px; }
.mood.on { box-shadow: 0 0 0 3px var(--lav-deep); transform: translateY(-3px); color: var(--lav-deep); background: #f6f2ff; }
.reply { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); margin: 6px 0 14px; animation: pop .45s var(--spring) both; }
.reply img { width: 86px; height: 86px; object-fit: contain; flex: none; }
.reply p { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.reply p b { color: var(--cocoa); }
.reply p b.bella { color: var(--scarf); }

.breathe { position: absolute; inset: 0; background: linear-gradient(180deg, #2f2a5c 0%, #4a3f7e 50%, #6b5c9c 100%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-top) + 16px) 24px calc(var(--safe-bot) + 26px); opacity: 0; transition: opacity .5s; overflow: hidden; }
.breathe.on { opacity: 1; }
.breathe .close { align-self: flex-end; background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.breathe .orb { position: relative; width: 280px; height: 280px; margin: auto 0 18px; display: grid; place-items: center; }
.breathe .orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 170, .55), rgba(255, 170, 200, .15) 60%, transparent 70%); transform: scale(var(--s, .7)); transition: transform var(--d, 4s) ease-in-out; }
.breathe .orb img { position: relative; width: 210px; transform: scale(var(--s2, .92)); transition: transform var(--d, 4s) ease-in-out; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
.breathe h3 { font-size: 28px; font-weight: 900; margin: 0; letter-spacing: -.01em; min-height: 36px; }
.breathe p { opacity: .75; font-weight: 700; margin: 6px 0 auto; }
.breathe .count { font-size: 64px; font-weight: 900; opacity: .9; font-variant-numeric: tabular-nums; }
.stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 45%, #fff, transparent); opacity: .6; }

.full { position: absolute; inset: 0; background: var(--snow); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .45s var(--ease); overflow-y: auto; }
.full.on { opacity: 1; transform: none; }

/* postcard reveal */
.reveal { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 236, 200, .95), rgba(240, 225, 250, .97) 70%); opacity: 0; transition: opacity .4s; padding: 24px; }
.reveal.on { opacity: 1; }
.reveal-inner { width: 100%; max-width: 330px; text-align: center; }
.flip { perspective: 1200px; width: 100%; aspect-ratio: 3 / 4; margin: 10px auto 18px; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip.back .flip-in { transform: rotateY(180deg); }
.face-f, .face-b { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-lg); }
.face-f { background: #fff; padding: 10px 10px 40px; }
.face-f img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.face-f span { position: absolute; left: 0; right: 0; bottom: 10px; font-weight: 900; font-size: 15px; }
.face-b { transform: rotateY(180deg); background: #fffdf8 repeating-linear-gradient(180deg, transparent 0 31px, #efe3d4 31px 32px); padding: 32px 22px 22px; text-align: left; font-size: 16px; line-height: 32px; font-weight: 700; color: #4b3a2e; }
.face-b .stamp { float: right; width: 62px; height: 74px; margin: 0 0 8px 10px; border: 3px dashed #e3c9a8; border-radius: 6px; overflow: hidden; }
.face-b .stamp img { width: 100%; height: 100%; object-fit: cover; }
.face-b .sig { font-weight: 900; color: var(--cocoa); }
.seal { animation: seal 1s var(--spring) both .2s; }
@keyframes seal { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }

/* ---------- journey ---------- */
.adv-now { position: relative; overflow: hidden; border-radius: 26px; padding: 18px; color: #fff; background: linear-gradient(135deg, #6c5bb4, #b27fc9 60%, #f0a3b8); box-shadow: var(--shadow-lg); }
.adv-now h3 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; max-width: 62%; line-height: 1.15; position: relative; z-index: 1; }
.adv-now p { margin: 0 0 12px; opacity: .85; font-weight: 700; font-size: 14px; }
.adv-now .bar { background: rgba(255, 255, 255, .25); }
.adv-now img { position: absolute; right: -22px; bottom: -14px; width: 138px; opacity: .95; }
.adv-now .eyebrow { color: rgba(255, 255, 255, .8); }
.trail { position: relative; margin: 26px 0 8px; display: grid; gap: 18px; }
.trail::before { content: ''; position: absolute; left: 35px; top: 30px; bottom: 30px; width: 0; border-left: 4px dashed var(--lav); }
.stop { position: relative; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; }
.stop .thumb { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 22px; overflow: hidden; flex: none; box-shadow: 0 0 0 4px var(--snow), var(--shadow); background: var(--mist); display: grid; place-items: center; color: var(--ink-3); }
.stop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.stop .thumb svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.stop.locked .thumb img { filter: blur(8px) grayscale(.6) brightness(1.1); transform: scale(1.2); }
.stop b { display: block; font-weight: 900; font-size: 16px; }
.stop span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.stop.next .thumb { box-shadow: 0 0 0 4px var(--snow), 0 0 0 7px var(--honey); }
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 99px; background: var(--pine-soft); color: var(--pine); margin-top: 4px; }
.tag.next { background: var(--honey-soft); color: #9a5f06; }
.tag.lock { background: var(--mist); color: var(--ink-3); }

/* ---------- shop ---------- */
.shop-hero { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, #fff6e4, #fde7ee); margin-bottom: 16px; }
.shop-hero img { width: 90px; flex: none; }
.shop-hero b { display: block; font-size: 17px; font-weight: 900; }
.shop-hero p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--mist); margin-bottom: 14px; }
.seg button { height: 38px; border-radius: 12px; font-weight: 900; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { position: relative; padding: 14px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 6px; transition: transform .2s var(--ease); }
.item:active { transform: scale(.97); }
.item .art { height: 86px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.item .art svg { width: 66px; height: 66px; }
.item b { font-weight: 900; font-size: 15px; }
.item span { font-size: 12px; color: var(--ink-2); font-weight: 700; line-height: 1.35; }
.price { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; border-radius: 12px; background: var(--honey-soft); color: #8a560a; font-weight: 900; font-size: 14px; }
.price svg { width: 15px; height: 15px; }
.price.own { background: var(--pine-soft); color: var(--pine); }
.price.on { background: var(--pine); color: #fff; }
.item .plus-tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 900; color: #fff; background: var(--scarf); padding: 3px 7px; border-radius: 99px; }

/* ---------- pals ---------- */
.pal-hero { position: relative; overflow: hidden; padding: 18px; border-radius: 26px; background: linear-gradient(160deg, #dff0e6, #e5ecff); margin-bottom: 16px; }
.pal-hero img { position: absolute; right: -10px; bottom: -8px; width: 140px; }
.pal-hero h3 { margin: 4px 0 4px; font-size: 21px; font-weight: 900; max-width: 200px; }
.pal-hero p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); font-weight: 700; max-width: 190px; line-height: 1.4; }
.code { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px; background: #fff; font-weight: 900; letter-spacing: .08em; box-shadow: var(--shadow); }
.code svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pals { display: grid; gap: 10px; }
.pal { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.ava { position: relative; width: 50px; height: 50px; flex: none; }
.ava svg.r { position: absolute; inset: -4px; width: 58px; height: 58px; transform: rotate(-90deg); }
.ava svg.r circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ava .face { position: absolute; inset: 3px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 18px; }
.pal b { display: block; font-weight: 900; font-size: 15px; }
.pal span { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.paw-btn { height: 38px; padding: 0 12px; border-radius: 13px; background: #fff3e3; color: #a3610a; font-weight: 900; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .25s var(--spring); }
.paw-btn svg { width: 18px; height: 18px; }
.paw-btn.sent { background: var(--pine-soft); color: var(--pine); }
.feed { display: grid; gap: 8px; }
.feed div { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 10px 12px; border-radius: 16px; background: var(--paper); }
.feed div b { color: var(--ink); }
.feed .t { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 800; white-space: nowrap; }

/* ---------- me ---------- */
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.me-head img { width: 76px; height: 76px; border-radius: 24px; box-shadow: var(--shadow); }
.me-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.me-head span { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.me-head .plus-badge, .plus-badge { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 900; color: #fff; background: var(--scarf); padding: 2px 8px; border-radius: 99px; vertical-align: 5px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px 10px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.stat span { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.week div { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 900; color: var(--ink-3); }
.week i { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); }
.week i svg { width: 20px; height: 20px; }
.week i.fire { background: #ffe6de; color: #e06a3c; }
.week .today { color: var(--ink); }
.notes { display: grid; gap: 10px; }
.note { padding: 14px; border-radius: 18px; background: #fffdf6; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; line-height: 1.45; }
.note small { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-3); font-weight: 800; }
.set { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 800; }
.set:last-child { border-bottom: 0; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 99px; background: var(--line); transition: background .25s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .3s var(--spring); }
.switch.on { background: var(--pine); }
.switch.on::after { transform: translateX(20px); }
.danger { color: var(--scarf); font-weight: 900; }

/* ---------- add goal ---------- */
.lib { display: grid; gap: 8px; margin-top: 10px; }
.lib button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); text-align: left; font-weight: 800; }
.lib .gi { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.lib .gi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib .plus { margin-left: auto; color: var(--lav-deep); }
.lib .plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.slots button { height: 42px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); font-weight: 900; font-size: 13px; }
.slots button.on { box-shadow: 0 0 0 3px var(--lav-deep); color: var(--lav-deep); }

/* ---------- toast & honey fly ---------- */
.toast { position: absolute; left: 50%; bottom: calc(var(--safe-bot) + 96px); transform: translate(-50%, 20px); z-index: 95; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 800; font-size: 14px; opacity: 0; transition: all .35s var(--spring); pointer-events: none; max-width: 86%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fly { position: absolute; z-index: 96; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--honey); color: #fff; box-shadow: 0 3px 8px rgba(24, 18, 30, .2); pointer-events: none; }
.fly svg { width: 15px; height: 15px; }
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* falling snow (splash + "Fresh snowfall") */
.flake { position: absolute; top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(30px, 110vh, 0); } }
.scene .snowfield { z-index: 2; }

/* ---------- store, legal and support ---------- */
.fine { font-size: 12px; line-height: 1.5; color: var(--ink-2); font-weight: 600; margin: 10px 0 0; }
.fine.center { text-align: center; }
.fine a, .fine-link { color: var(--lav-deep); font-weight: 800; text-decoration: none; font-size: 12px; }
.fine-link { display: inline; padding: 0; }
.full.paywall { background: linear-gradient(180deg, #fbe9d2 0%, #fdf5ea 38%, var(--snow) 100%); }
.full .ob { min-height: 100%; }
#pwBody h2 { font-size: 26px; }
#pwBody .btn[disabled] { opacity: .6; }

.paw-card { position: relative; text-align: center; padding: 20px 20px 18px; border-radius: 26px; background: linear-gradient(160deg, #fff6ea, #fde9f0); box-shadow: var(--shadow); }
.paw-card img { width: 150px; margin: 0 auto 6px; }
.paw-card b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.paw-card p { margin: 6px 0 10px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.paw-card span { font-size: 12px; font-weight: 900; color: var(--cocoa); letter-spacing: .02em; }

.plus-card { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 16px; border-radius: 22px; background: linear-gradient(135deg, #fff3de, #fde7ee); }
.plus-card img { width: 78px; flex: none; }
.plus-card b { display: block; font-weight: 900; font-size: 16px; }
.plus-card p { margin: 2px 0 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.plus-card.is-plus { background: linear-gradient(135deg, #e7f5ec, #eef0ff); }
.mini { height: 34px; padding: 0 12px; border-radius: 12px; background: #fff; font-weight: 900; font-size: 13px; box-shadow: var(--shadow); }
.mini.dark { background: var(--cocoa); color: #fff; }
.support p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); font-weight: 600; }
a.btn { text-decoration: none; }
.set > span:first-child { font-weight: 800; }

.perks::before { display: none; }
.perks .tl .i { background: var(--honey-soft) !important; color: #b27212 !important; box-shadow: none !important; }

/* keep the clock readable: scrolled content fades out under the status bar (the home scene is full-bleed) */
.app::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: calc(var(--safe-top) + 6px); z-index: 45; pointer-events: none;
  background: linear-gradient(180deg, var(--snow) 55%, rgba(251, 248, 255, 0)); }
.app.is-home::after, .app.is-splash::after { display: none; }

/* Pocket aurora must read in daylight too: plain blend by day, light-on-dark screen blend at night */
.aurora.on { opacity: .62; mix-blend-mode: normal; filter: blur(18px) saturate(1.3); }
.scene[data-tod="night"] .aurora.on { opacity: 1; mix-blend-mode: screen; filter: blur(22px); }
