:root{color-scheme:dark;--cream:#f7ead4;--muted:#b3a28f;--gold:#d3ae77;--line:rgba(233,206,165,.16);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;background:#17100e;color:var(--cream)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;height:100svh;overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,canvas:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #e6bf7d;outline-offset:6px}button:disabled{cursor:default}button,select{touch-action:manipulation}button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.4}button{border:0;background:none}button:hover:not(:disabled){color:#fff3db}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}#scene{position:fixed;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;outline:0}#scene:active{cursor:grabbing}.vignette{pointer-events:none;position:fixed;inset:0;background:linear-gradient(90deg,rgba(17,11,9,.47),transparent 49%),linear-gradient(0deg,rgba(11,7,6,.45),transparent 22%)}.frame{position:fixed;inset:23px;border:1px solid rgba(239,213,175,.09);pointer-events:none;z-index:2}.masthead{position:fixed;z-index:5;left:4.5%;right:4.5%;top:43px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{display:flex;gap:13px;align-items:center;font-size:13px;letter-spacing:.20em;font-weight:450}.brand-mark{font-family:Georgia,serif;color:var(--gold);font-size:36px;font-weight:100;line-height:1}.brand-sub{display:block;font-size:8px;letter-spacing:.20em;color:var(--muted);margin-top:6px}.header-actions{display:flex;gap:7px;pointer-events:auto}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:#c4b19c;transition:background .2s}.icon-button:hover{background:rgba(255,237,207,.07)}.icon-button svg{width:17px;height:17px}.sound-wave{display:none}#sound[aria-pressed=true] .sound-wave{display:block}#sound[aria-pressed=true] .sound-muted{display:none}#sound[aria-pressed=true]{color:var(--gold);background:rgba(211,174,119,.09)}
.story{position:fixed;left:7.5%;top:20%;width:30%;z-index:3;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:.20em;color:var(--gold);display:flex;align-items:center;gap:10px;margin:0 0 18px;font-weight:500}.eyebrow>span:first-child:empty{width:24px;height:1px;background:var(--gold);opacity:.7}.story h1{font-weight:400;margin:0}.age{font-family:Georgia,"Times New Roman",serif;font-size:clamp(132px,14.3vw,216px);line-height:.86;letter-spacing:-.075em;display:block;margin-left:-7px;color:#f6e8d0;font-weight:400;text-shadow:0 0 60px rgba(255,200,118,.035)}.age-dot{font-size:.38em;color:#d5a66d;letter-spacing:0;margin-left:5px}.age-caption{font-size:8px;letter-spacing:.185em;display:block;color:var(--muted);margin-top:21px;font-weight:400}.greeting{margin-top:34px}.greeting h2{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;font-size:clamp(22px,2.3vw,35px);line-height:1.65;font-weight:400;letter-spacing:.10em;margin:0;color:#f4e6d0}.greeting p{margin:15px 0 0;font-size:11px;line-height:1.9;letter-spacing:.06em;color:var(--muted);max-width:280px}.story-rule{height:1px;background:var(--line);width:34px;margin:27px 0 20px}.story-note{font-size:10px;color:#9b8b7b;line-height:2.1;letter-spacing:.05em;margin:0}.candle-status{position:fixed;top:153px;right:6%;z-index:4;text-align:right}.status-top{font-size:8px;letter-spacing:.19em;color:#c0aa8d;display:flex;align-items:center;justify-content:flex-end;gap:7px}.status-dot{width:4px;height:4px;border-radius:50%;background:#f6c581;box-shadow:0 0 7px #ffb550}.counter{display:flex;align-items:baseline;justify-content:flex-end;gap:10px;margin-top:9px}.counter>span:first-child{font-family:Georgia,serif;font-size:43px;line-height:1;min-width:46px;font-variant-numeric:tabular-nums}.counter-divider{font-size:15px;color:#7d6a59;font-weight:200}.counter-total{font-size:16px;font-family:Georgia,serif;color:#a8957e}
.ritual{position:fixed;left:66%;transform:translateX(-50%);bottom:81px;z-index:5;width:360px;text-align:center}.ritual-hint{font-size:8px;letter-spacing:.17em;color:#c8b49a;margin-bottom:14px;white-space:nowrap}.tiny-star{margin-right:7px;font-size:13px;color:var(--gold)}.blow-button{position:relative;width:100%;min-height:61px;padding:0 23px;display:flex;align-items:center;justify-content:center;gap:16px;overflow:hidden;border-radius:4px;color:#443125;background:linear-gradient(120deg,#f6e9d1,#ecdbbb);box-shadow:0 7px 40px rgba(12,7,2,.30),0 0 40px rgba(239,181,100,.065);transition:box-shadow .25s,background .25s,transform .25s;font-size:12px;letter-spacing:.07em;font-weight:500}.blow-button:hover:not(:disabled){color:#3d281b;background:#fff0d2;box-shadow:0 8px 45px #10090480,0 0 46px #e2b97b22;transform:translateY(-2px)}.blow-button:active:not(:disabled){transform:translateY(1px)}.blow-button:disabled{opacity:.78}.wind-icon{width:27px;height:26px;flex-shrink:0;stroke-width:1.35}.button-arrow{margin-left:auto;font-size:20px;font-weight:300;line-height:1}.button-shine{position:absolute;inset:0;transform:translateX(-110%);background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);pointer-events:none}.blow-button:hover .button-shine{animation:shine 1.4s ease}.ritual>p{font-size:9px;letter-spacing:.05em;color:#998572;margin:12px 0 0;min-height:14px}.footer{position:fixed;left:4.5%;right:4.5%;bottom:40px;z-index:4;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.explore-hint{display:flex;align-items:center;gap:9px;font-size:7px;letter-spacing:.13em;color:#917b66}.explore-hint>svg{width:13px;height:17px;stroke:#9d866c;stroke-width:1;fill:none}.view-controls{display:flex;align-items:center;gap:12px;pointer-events:auto}.view-controls button{font-size:9px;color:#b29d84;display:flex;align-items:center;gap:7px;padding:6px 0;letter-spacing:.03em}.view-controls button[aria-pressed=true]{color:#f1d4a4}.view-controls svg{width:14px;height:14px;stroke-width:1}.control-divider{width:1px;height:12px;background:var(--line)}
.loading{position:fixed;inset:0;z-index:30;background:#17100e;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .8s,visibility .8s}.loading.ready{opacity:0;visibility:hidden;pointer-events:none}.loading p{font-family:"Yu Mincho",serif;letter-spacing:.12em;font-size:16px;font-weight:400;margin:29px 0 15px}.loading>span{font-size:7px;letter-spacing:.20em;color:#9f886e}.loader-flame{width:12px;height:23px;border-radius:70% 30% 65% 35%;transform:rotate(20deg);background:linear-gradient(0deg,#d69b48,#ffe8b4);box-shadow:0 0 32px #f3b65b44;animation:flicker 1s infinite alternate}.error-screen{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:35;background:#17100e;text-align:center;padding:30px}.error-screen h2{font-family:Georgia,"Yu Mincho",serif;font-size:26px;font-weight:400;line-height:1.8}.error-screen p{max-width:470px;font-size:12px;line-height:1.9;color:#b3a28f}.error-screen button{background:var(--cream);color:#312218;padding:16px 24px;border-radius:4px;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
dialog{width:min(430px,calc(100% - 36px));padding:28px;background:#211814;border:1px solid #67503a;color:var(--cream);border-radius:15px;box-shadow:0 15px 100px #0009;max-height:calc(100svh - 45px);overflow:auto}dialog::backdrop{background:#0a060680;backdrop-filter:blur(7px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:24px}.dialog-header .eyebrow{font-size:7px;letter-spacing:.1em;margin-bottom:12px}.dialog-header h2{font-size:18px;font-weight:400;letter-spacing:.06em;margin:0}.dialog-header .icon-button{font-size:25px;width:32px;height:32px;color:#b59c7d;flex-shrink:0}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}select{background:#30241d;color:var(--cream);border:1px solid #69513b;border-radius:4px;padding:6px 11px}input[type=checkbox]{accent-color:#d2ad75;width:17px;height:17px}input[type=range]{width:130px;accent-color:#d2ad75}.instructions{margin-top:23px}.instructions p{display:grid;grid-template-columns:86px 1fr;gap:12px;font-size:10px;line-height:1.95;color:#b8a18a;margin:17px 0}.instructions strong{font-weight:400;color:#e8d9c0}.instructions kbd{font-family:inherit;background:#413126;border:1px solid #69523d;padding:0 4px;border-radius:3px;font-size:9px}.privacy-note{font-size:9px;line-height:1.9;color:#8e7762;border-top:1px solid var(--line);padding-top:20px;margin-bottom:0}
body[data-state=blowing] .wind-icon{animation:breathe .5s ease infinite alternate}body[data-state=celebrating] .status-dot{background:#d0c1a8;box-shadow:0 0 7px #e4d4b855}body[data-state=celebrating] .greeting{animation:reveal 1.6s ease both}body[data-state=celebrating] .eyebrow{color:#eac998}body[data-state=celebrating] .blow-button{background:linear-gradient(120deg,#ecdabe,#ddc399)}body[data-paused=true] *{animation-play-state:paused!important}
@keyframes flicker{to{transform:rotate(12deg) scale(.95,1.07);opacity:.75}}@keyframes shine{to{transform:translateX(110%)}}@keyframes breathe{to{transform:translateX(3px);opacity:.65}}@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.story{top:23%}.ritual{bottom:95px}.candle-status{top:170px}}
@media(max-height:730px) and (min-width:801px){.masthead{top:32px}.story{top:19%}.age{font-size:135px}.greeting{margin-top:24px}.greeting h2{font-size:25px}.story-rule{margin:20px 0 14px}.story-note{font-size:9px}.candle-status{top:130px}.ritual{bottom:64px}.blow-button{min-height:54px}.footer{bottom:28px}}
@media(max-width:800px){.frame{inset:12px}.masthead{left:25px;right:24px;top:calc(27px + env(safe-area-inset-top,0px))}.brand{gap:9px;font-size:10px;letter-spacing:.17em}.brand-mark{font-size:29px}.brand-sub{font-size:6px;margin-top:5px;letter-spacing:.15em}.icon-button{width:34px;height:34px}.icon-button svg{width:15px;height:15px}.header-actions{gap:6px}.story{left:29px;top:calc(108px + env(safe-area-inset-top,0px));width:calc(100% - 58px);display:grid;grid-template-columns:125px 1fr;column-gap:17px;align-items:start}.story .eyebrow{grid-column:1/-1;font-size:7px;letter-spacing:.18em;margin-bottom:17px;gap:7px}.story .eyebrow>span:first-child:empty{width:17px}.age{font-size:112px;line-height:.85;margin-left:-5px}.age-caption{font-size:5px;letter-spacing:.13em;margin-top:13px;white-space:nowrap}.greeting{margin-top:0px}.greeting h2{font-size:21px;line-height:1.65;letter-spacing:.10em}.greeting p{font-size:9px;line-height:1.8;letter-spacing:.035em;margin-top:10px;max-width:190px}.story-rule,.story-note{display:none}.candle-status{top:calc(280px + env(safe-area-inset-top,0px));right:28px}.status-top{font-size:6px;letter-spacing:.10em;gap:6px}.status-dot{width:3px;height:3px}.counter{gap:7px;margin-top:6px}.counter>span:first-child{font-size:26px;min-width:28px}.counter-total{font-size:12px}.counter-divider{font-size:10px}.ritual{left:50%;width:calc(100% - 58px);max-width:365px;bottom:calc(86px + env(safe-area-inset-bottom,0px))}.ritual-hint{font-size:6.5px;letter-spacing:.14em;margin-bottom:13px}.tiny-star{font-size:12px}.blow-button{min-height:59px;font-size:11px;gap:13px;padding:0 20px}.ritual>p{font-size:8px;margin-top:12px}.footer{left:29px;right:29px;bottom:calc(35px + env(safe-area-inset-bottom,0px))}.explore-hint{font-size:6px;gap:6px;letter-spacing:.06em}.explore-hint>svg{height:14px;width:11px}.desktop-hint{display:none}.view-controls{gap:11px}.view-controls button{font-size:8px;gap:4px}.view-controls svg{width:12px;height:12px}.vignette{background:linear-gradient(0deg,rgba(12,8,6,.50),transparent 27%,transparent 62%,rgba(14,9,7,.28))}}
@media(max-width:380px){.story{grid-template-columns:111px 1fr;column-gap:12px;left:25px;width:calc(100% - 50px)}.age{font-size:101px}.greeting h2{font-size:19px}.greeting p{font-size:8px}.brand-sub{font-size:5px}.view-controls{gap:8px}.view-controls button{font-size:7px}.footer{left:25px;right:25px}.ritual{width:calc(100% - 50px)}}
@media(max-width:800px) and (max-height:720px){.masthead{top:23px}.story{top:95px}.story .eyebrow{margin-bottom:13px}.age{font-size:88px}.story{grid-template-columns:101px 1fr}.greeting h2{font-size:18px;line-height:1.5}.greeting p{font-size:8px;margin-top:7px}.age-caption{font-size:4.5px;margin-top:11px}.candle-status{top:230px}.ritual{bottom:70px}.blow-button{min-height:51px}.ritual-hint{margin-bottom:9px}.footer{bottom:26px}}
@media(max-height:500px) and (orientation:landscape){.frame{inset:10px}.masthead{top:20px;left:26px;right:26px}.story{top:92px;left:34px;width:28%;display:block}.story .eyebrow{font-size:6px;margin-bottom:12px}.age{font-size:95px}.age-caption{font-size:5px}.greeting{margin-top:15px}.greeting h2{font-size:18px;line-height:1.5}.greeting p,.story-rule,.story-note{display:none}.candle-status{top:90px;right:32px}.ritual{left:66%;width:290px;bottom:55px}.ritual-hint{display:none}.blow-button{min-height:46px;font-size:10px}.ritual>p{font-size:7px;margin-top:8px}.footer{bottom:22px;left:30px;right:30px}.brand-sub{display:none}.view-controls button{font-size:8px}.explore-hint{font-size:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* The live counter sits above the cake, never on top of its flames. */
@media(max-width:800px) and (min-height:501px){
 .candle-status{top:calc(253px + env(safe-area-inset-top,0px))}
 .counter{margin-top:6px;gap:6px}
 .counter>span:first-child{font-size:23px;min-width:25px}
}
@media(max-width:800px) and (min-height:501px) and (max-height:720px){.candle-status{top:216px}}
