:root{--bg:#f8f4eb;--paper:#fffcf6;--ink:#322d27;--muted:#756b5d;--edge:#ded5c5;--accent:#765a40;--soft:#f3e7d6;--dot:#c5a178;color-scheme:light;font:16px/1.45 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 20% 0%,#fffdf7 0%,transparent 58%),var(--bg);color:var(--ink);transition:background .6s ease}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #846845;outline-offset:4px}button:disabled{cursor:wait;opacity:.7}[hidden]{display:none!important}header{max-width:1080px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:19px 26px 14px;gap:12px}.brand{font:700 29px/1 Georgia,serif;letter-spacing:-1.4px;text-decoration:none;color:#573e2b}.brand i{font:normal 16px Georgia;color:#b28e56;vertical-align:super;margin-left:2px}.sound,.quiet{background:transparent;border:0;color:var(--muted);font-size:13px;padding:9px 6px;border-radius:6px}.sound{display:flex;align-items:center;gap:6px}.sound svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.wrap{max-width:950px;margin:0 auto;padding:14px 25px 22px;display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);align-items:center;gap:clamp(34px,6vw,76px)}.stage{position:relative;justify-self:center;height:min(74svh,665px);max-height:665px;max-width:100%;aspect-ratio:9/16;border-radius:24px;background:#e2d1b7;overflow:hidden;box-shadow:0 18px 55px #61472a26;isolation:isolate}.stage img,.stage video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;display:block}.stage video{z-index:1;background:#1b1916}.stage .shade{position:absolute;inset:0;pointer-events:none;z-index:2;background:linear-gradient(transparent 87%,#38220e16)}.progress{height:3px;position:absolute;bottom:0;left:0;right:0;z-index:3;background:#ffffff48}.progress span{display:block;width:0;height:100%;background:#fff6db;transition:width .2s linear}.panel{max-width:470px;width:100%;justify-self:center;min-width:0}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700;text-transform:uppercase;color:var(--muted);margin:0 0 12px}.heading{font:400 clamp(40px,5vw,62px)/1.06 Georgia,'Times New Roman',serif;letter-spacing:-2px;margin:0 0 16px}.intro{font-size:18px;color:var(--muted);margin:0 0 27px;max-width:29ch}.primary{display:flex;justify-content:center;align-items:center;gap:9px;min-height:54px;padding:14px 20px;border:1px solid transparent;border-radius:100px;background:#614a33;color:#fff;font-weight:650;letter-spacing:.005em;box-shadow:0 7px 18px #5b41261a;width:100%;max-width:360px;transition:background .2s,transform .2s}.primary:hover{filter:brightness(.95)}.primary:active{transform:scale(.98)}.small-note{font-size:12px;color:var(--muted);margin:13px 0 0}.play-copy{margin:0;font:400 34px/1.15 Georgia,serif}.play-sub{font-size:15px;color:var(--muted);margin:12px 0}.play-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.result{width:100%}.theme-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;color:var(--accent);font-weight:650;letter-spacing:.06em;margin-bottom:7px}.dot{width:15px;height:15px;border-radius:50%;background:var(--dot);border:1px solid #00000010;box-shadow:0 0 0 4px var(--soft)}.theme-word{font:400 clamp(43px,6vw,66px)/1.03 Georgia,serif;letter-spacing:-1.7px;color:var(--accent);margin:0 0 5px}.meaning{font-size:14px;color:var(--accent);margin:0 0 23px}.message{margin:0 0 17px}.message label{display:block;text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--muted);margin-bottom:6px}.wish{font:400 clamp(23px,3.2vw,31px)/1.23 Georgia,serif;letter-spacing:-.35px;margin:0}.reminder{font-size:17px;font-weight:550;line-height:1.42;margin:0}.self{border-top:1px solid var(--edge);padding-top:15px}.shareline{font-size:13px;color:var(--muted);margin:21px 0 7px}.result .primary{background:var(--accent);max-width:100%}.secondary-row{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:5px 0 0}.text-link{font-size:12px;color:var(--muted);background:none;border:0;text-decoration:underline;text-underline-offset:3px;padding:9px 3px}.return-note{font-size:12px;color:var(--muted);text-align:center;margin:6px 0 0}.status{font-size:13px;color:var(--accent);margin-top:9px;overflow-wrap:anywhere}.gift-input{width:100%;font:inherit;padding:10px;border:1px solid var(--edge);border-radius:7px}.gift .theme-label{margin-top:4px}.testflag{font-size:12px;background:#efe6d6;padding:7px 12px;text-align:center;border-bottom:1px solid #ddcdb2}.testflag a{font-weight:700}footer{max-width:950px;text-align:center;margin:8px auto 20px;padding:0 20px;font-size:12px;color:var(--muted)}.reveal .message,.reveal .theme-word,.reveal .meaning,.reveal .theme-label,.reveal .shareline,.reveal .share-area{animation:rise .48s ease both}.reveal .message:nth-of-type(1){animation-delay:.12s}.reveal .self{animation-delay:.25s}.reveal .shareline,.reveal .share-area{animation-delay:.38s}@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:700px){header{padding:13px 18px 10px}.brand{font-size:26px}.wrap{display:flex;flex-direction:column;padding:5px 20px 14px;gap:18px;max-width:440px}.stage{height:min(49svh,430px);border-radius:20px}.panel{text-align:center;max-width:390px}.eyebrow{margin-bottom:7px;font-size:10px}.heading{font-size:39px;letter-spacing:-1.2px;margin-bottom:8px}.intro{font-size:15px;margin:0 auto 17px;max-width:33ch}.primary{margin:0 auto;min-height:50px}.small-note{margin-top:8px}.playing .stage{height:min(62svh,520px)}.play-copy{font-size:27px}.play-sub{margin:6px 0}.play-actions{justify-content:center}.revealed .wrap{gap:11px;padding-top:2px}.revealed .stage{height:min(34svh,284px);border-radius:17px;box-shadow:0 8px 25px #61472a20}.theme-label{justify-content:center;font-size:11px;margin:0 0 4px}.theme-word{font-size:42px;letter-spacing:-1px;margin:0 0 3px}.meaning{font-size:13px;margin:0 0 13px}.message{margin-bottom:12px}.message label{font-size:9px;margin-bottom:4px}.wish{font-size:25px;line-height:1.2;max-width:27ch;margin:auto}.self{padding-top:11px}.reminder{font-size:16px}.shareline{margin:11px 0 6px;font-size:12px}.secondary-row{gap:13px;margin:1px 0}.return-note{margin-top:2px;font-size:11px}footer{margin-top:0;margin-bottom:12px}.revealed footer{display:none}}
@media(max-height:700px) and (max-width:700px){.revealed .stage{height:27svh}.wrap{gap:12px}.heading{font-size:34px}.intro{margin-bottom:12px}.wish{font-size:23px}.meaning{margin-bottom:10px}.message{margin-bottom:9px}.shareline{margin-top:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V0.5.2: unobtrusive morning companion */
.header-tools{display:flex;align-items:center;gap:12px}.weather-chip,.today-chip{border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer;padding:8px 4px;white-space:nowrap}.weather-chip{border:1px solid #d8cdbb;border-radius:50px;padding:6px 10px}.day-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:950px;margin:auto;padding:0 25px;font-size:12px;color:var(--muted)}#dayGreeting{max-width:68%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daily-nav{display:flex;max-width:430px;justify-content:space-around;margin:5px auto 10px;border-top:1px solid var(--edge);padding:7px 12px 2px;gap:4px}.daily-nav button{background:none;border:none;color:var(--muted);font-size:11px;padding:6px 8px;min-width:82px;display:grid;justify-items:center;gap:2px}.daily-nav button span{font-size:21px;line-height:1.2;color:var(--accent)}.playing .daily-nav,.playing .day-strip{display:none}.revealed .day-strip{display:none}dialog{background:#fffcf6;border:1px solid #ded5c5;border-radius:23px;color:var(--ink);width:min(92vw,460px);max-height:85svh;overflow:auto;padding:24px;box-shadow:0 15px 80px #49351f40}dialog::backdrop{background:#342b2080;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.dialog-head .eyebrow{margin-bottom:4px}.dialog-head h2{font:400 31px/1.08 Georgia,serif;margin:0;color:#573e2b}.close-dialog{border:1px solid var(--edge);border-radius:50%;background:transparent;color:var(--ink);width:36px;height:36px;font-size:24px;line-height:1}.dialog-note{font-size:13px;color:var(--muted);margin:8px 0 15px}.dialog-content h3,#dialogContent h3{font-size:15px;margin:20px 0 8px}.mini-btn{font:600 13px/1.3 system-ui,sans-serif;padding:10px 13px;border:1px solid var(--edge);border-radius:10px;background:#fffdf8;color:var(--ink)}.mini-btn.accent{background:#6b513a;color:#fff;border-color:#6b513a}.mini-btn:disabled{opacity:.55}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.field{display:grid;gap:5px;margin:10px 0;font-size:12px;color:var(--muted)}.field input,.field select{font:inherit;font-size:16px;color:var(--ink);border:1px solid var(--edge);border-radius:9px;padding:10px;background:#fff;max-width:100%;min-width:0;width:100%}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.journal-list{display:grid;gap:8px}.journal-entry{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:center;text-decoration:none;background:#f8f3ea;border-radius:12px;padding:9px;text-align:left}.journal-entry img{width:54px;height:68px;object-fit:cover;border-radius:8px}.journal-entry small{display:block;color:var(--muted);font-size:11px}.journal-entry strong{font-size:14px}.journal-entry p{font-size:13px;margin:3px 0;line-height:1.4}.week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:14px 0}.week-day{text-align:center;font-size:10px;color:var(--muted)}.week-day span{display:grid;place-items:center;height:32px;border-radius:9px;background:#f1ece2;margin-top:4px;font-size:16px}.week-day a{text-decoration:none}.pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.pet-tile{background:#f3eee6;border-radius:12px;overflow:hidden;text-align:center;font-size:11px;color:var(--muted);padding-bottom:7px}.pet-tile a{text-decoration:none}.pet-tile img,.pet-placeholder{width:100%;aspect-ratio:4/5;object-fit:cover;display:grid;place-items:center;background:#ede7dc;margin-bottom:6px}.pet-placeholder{font:400 26px Georgia,serif;color:#998b79}.pet-tile strong{display:block;color:var(--ink);font-size:12px}.reminder-list{display:grid;gap:6px}.reminder-item{padding:10px;background:#f8f3ea;border-radius:10px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;overflow-wrap:anywhere}.reminder-item strong{font-size:14px;display:block}.reminder-item small{font-size:11px;color:var(--muted)}.reminder-item.done strong{text-decoration:line-through;color:var(--muted)}.reminder-item button{font-size:12px;padding:6px}.city-results{display:grid;gap:7px;margin:8px 0}.city-results button{text-align:left}.weather-card{background:#f3ecdf;border-radius:12px;padding:13px;margin:8px 0}.weather-card strong{font-size:26px;color:#573e2b}.attribution{font-size:11px;color:var(--muted);margin:10px 0}.attribution a{color:inherit}.local-note{font-size:11px;color:var(--muted);margin-top:14px}.dialog-status{font-size:13px;color:#765a40;min-height:20px}.date-tag{color:var(--muted);font-size:11px}.empty-state{padding:14px;background:#f5efe5;border-radius:12px;color:var(--muted);font-size:14px}.form-error{color:#924e45;font-size:13px}.gift .day-strip,.gift .daily-nav,.gift .weather-chip{display:none}.testflag:not([hidden])~header .weather-chip{display:none}
@media(max-width:700px){header{padding:12px 17px 6px}.header-tools{gap:6px}.sound{font-size:12px}.weather-chip{font-size:11px;padding:5px 8px}.day-strip{padding:0 20px;max-width:440px;min-height:28px}.today-chip{font-size:11px;padding:5px 0}.wrap{gap:13px;padding-top:4px}.stage{height:min(41svh,355px)}.intro{max-width:31ch;margin-bottom:14px}.heading{font-size:36px}.daily-nav{max-width:390px;margin:0 20px 5px}.revealed .daily-nav{margin:5px 20px 13px}.playing .stage{height:min(62svh,520px)}.revealed .stage{height:min(32svh,270px)}dialog{padding:20px}.day-strip #dayGreeting{max-width:49%}.revealed footer{display:none}}
@media(max-width:360px){header{gap:6px}.brand{font-size:24px}.sound svg{display:none}.header-tools{gap:3px}.daily-nav button{min-width:70px}.heading{font-size:32px}.dialog-head h2{font-size:28px}}

/* A real reminder stays visible after opening; empty reminders never crowd the result. */
.today-chip{min-width:0;max-width:65%;display:flex;align-items:center;gap:5px;justify-content:flex-end}.today-chip #todaySummary{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.revealed.has-reminders .day-strip{display:flex}.playing .day-strip{display:none!important}.day-strip #dayGreeting{min-width:0}.revealed footer:has(#weatherCredit:not([hidden])){display:block}.revealed .day-strip #dayGreeting{max-width:38%}#weatherCredit a{text-underline-offset:2px}

/* V0.5.5: the wish is the star, not the color. */
.new-wish .theme-word{font-size:clamp(33px,4.5vw,49px);letter-spacing:-1px;line-height:1.08}.new-wish .meaning{font-size:12px;margin-bottom:14px}.wish-feedback:has(button[hidden]){display:none}.wish-feedback{margin:-3px 0 0}.wish-like{color:var(--accent);font-size:12px;padding:8px 0;min-height:36px}.wish-like[aria-pressed=true]{font-weight:650}.new-wish .shareline{margin-top:7px}.new-wish .wish{font-size:clamp(23px,3.2vw,29px)}@media(max-width:700px){.new-wish .theme-word{font-size:31px;letter-spacing:-.7px}.new-wish .meaning{margin-bottom:9px}.new-wish .wish{font-size:23px}.new-wish .reminder{font-size:15px}.new-wish .stage{height:min(28svh,240px)}.new-wish .message{margin-bottom:8px}.wish-feedback{margin-top:-4px}.wish-like{min-height:32px;padding:6px 2px}.new-wish .shareline{margin-top:4px}}

/* V0.5.6: optional home screen access, never interrupt the daily reveal. */
.install-area{width:min(100% - 40px,440px);margin:2px auto 10px;text-align:center}.install-link{background:none;border:0;color:var(--muted);font-size:12px;padding:10px 12px;min-height:40px;text-decoration:underline;text-underline-offset:3px}.install-invite{display:flex;align-items:flex-start;gap:11px;text-align:left;border:1px solid var(--edge);border-radius:15px;background:#fffcf6;padding:13px;box-shadow:0 4px 14px #61472a0b}.install-invite img,.install-dialog-brand img{flex:none;border-radius:12px}.install-invite-copy{flex:1;min-width:0}.install-invite-copy strong{font:400 18px/1.2 Georgia,serif;color:#573e2b;display:block}.install-invite-copy>span{font-size:12px;color:var(--muted);display:block;margin:4px 0 0;line-height:1.4}.install-action{font-size:13px;font-weight:650;color:#654a35;background:none;border:0;text-decoration:underline;text-underline-offset:3px;padding:10px 0 3px;min-height:36px}.install-dismiss{flex:none;width:32px;height:32px;border:0;background:none;color:var(--muted);font-size:22px;line-height:1}.install-dialog-brand{display:flex;gap:13px;align-items:center;background:#f5ecdf;border-radius:13px;padding:12px;margin:5px 0 18px}.install-dialog-brand strong{font:700 21px Georgia,serif;color:#573e2b}.install-dialog-brand p{font-size:12px;color:var(--muted);margin:3px 0}.install-instructions p,.install-instructions li{font-size:14px;line-height:1.5}.install-instructions ol{padding-left:24px;margin:9px 0 12px}.install-instructions li{padding:4px 0}.install-instructions .share-symbol{display:inline-block;vertical-align:middle;width:18px;height:20px;stroke:#765a40;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.playing .install-area,.gift .install-area{display:none!important}@media(max-width:700px){.install-area{margin:2px auto 7px;width:min(100% - 40px,390px)}}@media(display-mode:standalone){header{padding-top:max(12px,env(safe-area-inset-top))}body{padding-bottom:env(safe-area-inset-bottom)}}

/* V0.5.7: a single quiet entry, no interrupting prompt. */
.push-area{text-align:center;margin:4px auto 0;padding:0 16px;max-width:480px}.push-area[hidden],#pushDialog [hidden]{display:none!important}.push-label{display:block;font-weight:600;margin:12px 0 7px}#pushTime,#pushFrequency{font:inherit;color:inherit;background:#fffaf3;border:1px solid #d9cbb7;border-radius:12px;padding:10px 14px;width:100%;box-sizing:border-box}#pushSetup .mini-btn{width:100%;margin-top:6px}.push-controls{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin-top:12px}#pushStatus{min-height:2em;margin-top:14px}#pushDialog a,footer a{color:inherit;text-decoration:underline}#pushDialog button:disabled{opacity:.5;cursor:not-allowed}
