:root{font-family:'Noto Serif SC','Songti SC',serif;color:#fae9d4;background:#4a263b;font-synthesis:none;font-optical-sizing:auto;--gold:#efd19a;--gold-dim:#d2ae78;--rose:#f4b7c0;--ink:#4a263b;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{min-height:100dvh}button{font:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #fff0c5;outline-offset:5px}.gift{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:540px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#8e3e68 0%,#672d52 37%,#4a263b 78%);}
.gift:before,.gift:after{content:"";position:absolute;z-index:-1;pointer-events:none}.gift:before{inset:13px;border:1px solid #f1d39744;border-radius:4px}.gift:after{inset:20px;border:1px solid #f1d3971a;border-radius:3px}
.ambient{position:absolute;z-index:-1;width:46vw;height:46vw;max-width:390px;max-height:390px;border-radius:50%;filter:blur(70px);opacity:.25;pointer-events:none}.ambient-one{top:14%;left:-18%;background:#e16e9d}.ambient-two{right:-20%;bottom:11%;background:#e4aa68;opacity:.15}
.topline{position:absolute;z-index:3;top:max(35px,calc(var(--safe-top) + 24px));left:0;right:0;display:flex;align-items:center;justify-content:center;gap:11px;color:#f4dfc6b8}.brand-mark{font-size:17px;color:var(--gold);text-shadow:0 0 12px #f6ce91aa}.topline p{margin:0;font-size:11px;letter-spacing:.28em}.topline-rule{width:22px;height:1px;background:#efd19a66}
.stage{position:absolute;inset:0;overflow:hidden;touch-action:pan-y}.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}.scene-copy{position:absolute;z-index:2;left:16px;right:16px;bottom:max(64px,calc(var(--safe-bottom) + 57px));text-align:center;pointer-events:none;transition:transform .7s ease,opacity .7s ease}.eyebrow{margin:0 0 11px;color:#f6dcae;font-size:10px;letter-spacing:.25em;text-shadow:0 1px 12px #35142699}h1{margin:0;color:#fff0d7;font-family:'Bodoni MT','Didot','Noto Serif SC',serif;font-size:clamp(31px,9vw,45px);font-weight:400;letter-spacing:.04em;text-shadow:0 2px 22px #3c142d88}.subtitle{margin:9px 0 20px;color:#f2dcccbb;font-size:11px;letter-spacing:.13em}.open-button{height:46px;min-width:166px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:12px;color:#592743;background:linear-gradient(135deg,#f6dfad,#d9b477);border:1px solid #f9e6bd;border-radius:999px;box-shadow:0 7px 25px #2f122644,inset 0 1px #fff5d6;pointer-events:auto;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,opacity .25s ease;font-size:12px;letter-spacing:.12em}.open-button:hover{transform:translateY(-2px);box-shadow:0 10px 31px #2f122666,inset 0 1px #fff5d6}.open-button:active{transform:scale(.97)}.open-button:disabled{opacity:.5;cursor:wait}.button-flower{color:#a74166;font-size:15px}.button-arrow{font-family:Georgia,serif;font-size:15px;color:#80543c;transform:rotate(45deg)}
.gift[data-open="opening"] .scene-copy{transform:translateY(18px);opacity:.55}.gift[data-open="ready"] .scene-copy{bottom:max(54px,calc(var(--safe-bottom) + 49px));}.gift[data-open="ready"] .subtitle{display:none}.gift[data-open="ready"] h1{font-size:clamp(26px,7vw,34px)}.gift[data-open="ready"] .eyebrow{margin-bottom:7px}.gift[data-open="ready"] .open-button{height:39px;min-width:146px;background:#6a3556e8;color:#f7e4c7;border-color:#efcf9566;box-shadow:0 5px 18px #2f122644}.gift[data-open="ready"] .button-flower{color:#f3c691}.gift[data-open="ready"] .button-arrow{color:#f3d7ab}
.progress{position:absolute;left:50%;bottom:max(34px,calc(var(--safe-bottom) + 27px));z-index:3;width:80px;height:1px;transform:translateX(-50%);background:#f4ddc433;opacity:0;transition:opacity .3s}.progress span{display:block;width:0;height:100%;background:#f0ce91;box-shadow:0 0 8px #f3d39e;transition:width .12s linear}.gift[data-open="opening"] .progress{opacity:1}
.bottomline{position:absolute;z-index:3;left:0;right:0;bottom:max(17px,calc(var(--safe-bottom) + 10px));display:flex;justify-content:center;align-items:center;gap:12px;color:#f1d9bd88}.bottomline p{margin:0;font-size:9px;letter-spacing:.15em}.ornament{font-size:8px;color:#e8c68d99}
.loading{position:absolute;z-index:4;inset:0;display:grid;place-items:center;background:#4a263b;color:#f4dfc6;font-size:12px;letter-spacing:.18em;transition:opacity .5s}.loading:after{content:"";position:absolute;width:26px;height:26px;border:1px solid #f0d196;border-radius:50%;border-right-color:transparent;animation:spin 1.1s linear infinite;transform:translateY(35px)}.loading.is-gone{opacity:0;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes spin{to{transform:translateY(35px) rotate(360deg)}}@media(max-height:650px){.scene-copy{bottom:max(46px,calc(var(--safe-bottom) + 42px))}.subtitle{margin:6px 0 12px}.topline{top:max(27px,calc(var(--safe-top) + 18px))}.bottomline{bottom:max(10px,calc(var(--safe-bottom) + 5px))}.progress{bottom:max(24px,calc(var(--safe-bottom) + 17px))}}
@media(min-width:700px){.gift{width:min(100vw,520px);height:min(96dvh,980px);min-height:640px;border:1px solid #efd19a44;box-shadow:0 25px 100px #21121d88}.gift:before{inset:11px}.gift:after{inset:17px}body{display:grid;place-items:center;background:#241820}.scene-copy{bottom:75px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
[hidden]{display:none!important}
.gift-actions{display:flex;align-items:center;justify-content:center;gap:10px}
.gift-actions .open-button{min-width:0}
.candle-toggle{pointer-events:auto}
.garden-destinations{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:min(350px,100%);margin:10px auto 0;pointer-events:auto}
.garden-link{min-height:48px;padding:7px 10px;display:flex;flex-direction:column;justify-content:center;gap:3px;text-decoration:none;color:#f8e7cc;border:1px solid #efd19a88;border-radius:12px;background:linear-gradient(145deg,#49235ddf,#321346eF);box-shadow:0 5px 18px #18092166;transition:transform .2s,border-color .2s,background .2s}
.garden-link:hover{transform:translateY(-2px);border-color:#f6dcae;background:linear-gradient(145deg,#63357b,#421957)}
.garden-link span{font:8px 'DM Sans','Noto Serif SC',serif;letter-spacing:.12em;color:#e5c691b8}
.garden-link b{font-size:12px;font-weight:500;letter-spacing:.05em}
.garden-link i{font:normal 13px Georgia,serif;color:#f0ce91;margin-left:4px}
.garden-link:focus-visible{outline:2px solid #fff0c5;outline-offset:3px}
.gift[data-open="ready"] .candle-toggle{background:linear-gradient(135deg,#f6dfad,#d9b477);color:#592743;border-color:#f9e6bd}
@media(max-width:380px){.gift-actions{gap:8px}.gift-actions .open-button{padding:0 13px;font-size:11px;letter-spacing:.04em}}
@media(max-height:700px){.gift[data-open="ready"] .scene-copy{bottom:max(42px,calc(var(--safe-bottom) + 38px))}.garden-destinations{margin-top:7px}.garden-link{min-height:42px;padding:5px 8px}}
/* Desktop review uses the same portrait canvas as a 390 by 844 phone. */
@media(min-width:700px){
 .gift{width:min(100vw,calc(100dvh * 390 / 844));height:100dvh;min-height:0;border:0}
}
/* Approved deeper purple twilight theme. */
:root{background:#230734}
.gift,.loading{background:radial-gradient(ellipse at 50% 50%,#704288,#431257 60%,#230734)}
.gift[data-open="ready"] .open-button{background:#49205d;color:#ffe7bc}
.gift[data-open="ready"] .candle-toggle{background:linear-gradient(135deg,#f6dfad,#d9b477);color:#592743}
/* Keep opening controls visually secondary to the upcoming garden entrances. */
.scene-copy .eyebrow{
 font-size:9px;
 letter-spacing:.06em;
 margin-bottom:8px;
}
.gift[data-open="ready"] .gift-actions{
 gap:8px;
}
.gift[data-open="ready"] .gift-actions .open-button{
 height:32px;
 min-width:0;
 padding:0 13px;
 font-size:10px;
 letter-spacing:.04em;
 background:#2e1740aa;
 color:#d9c9dc;
 border-color:#ffffff2b;
 box-shadow:none;
 opacity:.82;
}
.gift[data-open="ready"] .gift-actions .open-button:hover{opacity:1;border-color:#efd19a80}
.gift[data-open="ready"] .gift-actions .candle-toggle[aria-pressed="true"]{color:#f2d6a4;border-color:#efd19a77}

/* One continuous rendered background; preserve the approved portrait composition. */
html,body{background:#230734}
body{display:grid;place-items:center}
.gift{width:100vw;height:100dvh;min-height:0;border:0;background:#230734;box-shadow:none}
.gift:before,.gift:after{display:none}
.stage canvas{-webkit-mask-image:none;mask-image:none}
.scene-copy{left:50%;right:auto;width:calc(min(100vw,100dvh * 390 / 844) - 32px);transform:translateX(-50%)}
.gift[data-open="opening"] .scene-copy{transform:translate(-50%,18px)}
@media(max-width:699px) and (orientation:portrait){.scene-copy{width:calc(100vw - 32px)}}
