/* V10 immersive explore surface; activity scenes retain their cream palette. */
:root{--lele-gift-ui:10}
/* The staged bilingual preview label must not shift the immersive scene. */
.team-preview-note{display:none!important}
html[data-calendar-boot=ready][data-gift-phase=unfolded] .team-preview-note{display:block!important;position:fixed;inset:auto 12px 4px;z-index:10;margin:0;padding:3px 6px;text-align:center;font:11px/1.3 sans-serif;color:#f4e7c9;background:#141717;pointer-events:none}
.team-preview-note strong{font-weight:400}
html,body{margin:0;min-height:100%;background:#141717;color:#f4e7c9}
html[data-gift-phase] body{overflow:hidden}
.page-wrap{max-width:none!important;width:100%;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.site-header{position:fixed;inset:14px 16px auto auto;z-index:20;display:block!important;padding:0!important;margin:0!important;border:0!important;width:auto}
.site-header .wordmark,.site-header .preferences,.hero,.reading-note,footer{display:none!important}
#gift-name-edit{background:#242d29;color:#fff4db;border-color:#d0aa65;min-height:44px;min-width:88px}
#gift-v7{margin:0!important;padding:0!important;width:100%;max-width:none!important;height:100dvh;color:#f4e7c9}
#gift-title,#gift-activity-count,#gift-note,#gift-open,.gift-rotation{display:none!important}
#gift-storage-note,#gift-drag-hint{position:absolute!important;top:0;left:0;margin:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#gift-stage{height:100dvh!important;width:100%;display:grid!important;grid-template-columns:1fr!important;place-items:center;padding:0!important;outline-offset:-6px;isolation:auto;perspective:1600px}
#gift-stage::after{display:none!important}
#gift-rotate-surface{--gift-scale:1.65;position:absolute;inset:50% auto auto 50%;width:280px;height:330px;margin:0;transform:translate(-50%,-50%) scale(var(--gift-scale));transform-origin:center;perspective:1500px}
#gift-house{scale:1!important}
#gift-stage:focus-visible{outline:3px solid #d0aa65}
#gift-name-dialog{color:#302d26;background:#fff8e9;z-index:50;box-sizing:border-box}
#gift-name-dialog select{width:100%;min-height:44px;margin:8px 0 16px;padding:8px;color:#203f35;background:#fffaf0;border:1px solid #203f35;font:inherit}
#gift-preferences{border:1px solid #ac8a53;border-radius:6px;margin:12px 0;padding:12px}
#gift-preferences legend{font-size:14px}
#gift-reading-resources summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline}
#gift-reading-resources .promo-visual{display:none}
#gift-reading-resources section{display:block!important;color:#203f35;background:#fff8e9;padding:12px;margin:12px 0;border:1px solid #ac8a53;box-shadow:none;outline:0}
#gift-reading-resources h2{font-size:18px}#gift-reading-resources .primary-button{min-height:44px;display:flex;align-items:center}
#gift-reading-resources[hidden]{display:none!important}
#gift-name-dialog :focus-visible{outline:3px solid #a83c32;outline-offset:2px}
#task-dialog .editor-header-actions .ui-switch{display:none!important}
#gift-task-settings{min-width:64px;min-height:44px;border:1px solid #806b44;background:#fff8e9;color:#203f35;border-radius:6px;padding:8px;font:inherit}
@media(max-width:750px){#gift-rotate-surface{--gift-scale:1.05}.site-header{inset:12px 12px auto auto}}
@media(max-width:360px){#gift-rotate-surface{--gift-scale:.9}}
@media(max-height:500px){#gift-rotate-surface{--gift-scale:.72}}
/* Physical wrapping is separate from the immutable printed cover. */
/* Face-local coordinates share the physical 240 × 277 × 48 box edges.
   Two closed rings, not decals: front/right/back/left and front/top/back/bottom. */
#gift-house>.gift-front{overflow:visible}
.gift-wrap-segment{position:absolute;display:block;pointer-events:none;backface-visibility:hidden;transform:translateZ(.6px);clip-path:inset(0);background:linear-gradient(90deg,#762c26,#b94e40 20%,#a83c32 63%,#782c26);border:2px solid #d0aa65;box-shadow:inset 2px 0 3px #f7d38a66,0 1px 2px #0007}
.wrap-horizontal{left:-2px;right:-2px;top:98px;height:26px;background:linear-gradient(#762c26,#b94e40 20%,#a83c32 63%,#782c26)}
.wrap-vertical{top:-2px;bottom:-2px;left:105px;width:26px}
#gift-ribbon{position:absolute;left:50px;top:57px;width:136px;height:115px;transform:translateZ(32px);pointer-events:none;backface-visibility:hidden;transform-style:preserve-3d;filter:drop-shadow(0 13px 7px #0008)}
#gift-ribbon i{position:absolute;display:block;background:linear-gradient(130deg,#dc8b65,#b4493a 25%,#8c3029 70%,#c5674d);border:2px solid #d0aa65;box-shadow:inset 2px 2px 4px #f7d38a88,2px 4px 4px #0008}
.bow-loop{width:60px;height:42px;top:19px;border-radius:70% 70% 45% 45%}
.bow-left{left:7px;transform:rotate(28deg)}.bow-right{left:67px;transform:rotate(-28deg)}
.bow-tail{width:27px;height:61px;top:50px;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%)}
.tail-left{left:41px;transform:rotate(25deg)}.tail-right{left:72px;transform:rotate(-23deg)}
.bow-knot{width:27px;height:29px;left:55px;top:39px;border-radius:8px;animation:gift-sheen 6s ease-in-out infinite alternate}
@keyframes gift-sheen{from{box-shadow:inset 1px 1px 3px #f7d38a55,0 0 4px #d0aa6510}to{box-shadow:inset 1px 1px 5px #f7d38a99,0 0 9px #d0aa6540}}
#gift-close{position:fixed;left:16px;top:14px;z-index:20;min-height:44px!important;min-width:88px!important;background:#242d29!important;color:#fff4db!important;border:1px solid #d0aa65!important}
#gift-close[hidden]{display:none!important}
#gift-lights{position:fixed;inset:0 0 auto;height:85px;pointer-events:none;opacity:0;transition:opacity 1s;z-index:1}
#gift-lights svg{position:absolute;inset:0;width:100%;height:65px;fill:none;stroke:#796744;stroke-width:2}
#gift-lights i{position:absolute;left:var(--x);top:var(--drop);width:8px;height:13px;border-radius:40% 40% 50% 50%;background:#f8d590;box-shadow:0 0 15px 4px #e9c16d55;animation:gift-twinkle 5s ease-in-out var(--delay) infinite alternate}
#gift-lights i:nth-child(3n){background:#d47b65}#gift-lights i:nth-child(3n + 1){background:#9ebc9b}
html:not([data-gift-phase=closed]) #gift-lights{opacity:1}
#gift-v7::before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 28% 35%,#b1995a0d,transparent 45%),radial-gradient(ellipse at 75% 68%,#6497840b,transparent 40%);animation:gift-glow 13s ease-in-out infinite alternate}
@keyframes gift-twinkle{from{opacity:.68}to{opacity:1}}@keyframes gift-glow{from{opacity:.4}to{opacity:1}}
html[data-gift-phase=closed] #gift-house{filter:none}
html[data-gift-phase=closed] .gift-front{box-shadow:inset 0 0 0 2px #d0aa65,0 0 16px #d0aa651a}
html[data-gift-phase=unfolding] #gift-rotate-surface,html[data-gift-phase=unfolded] #gift-rotate-surface,html[data-gift-phase=closing] #gift-rotate-surface{display:none!important}
#gift-stage #gift-book-spread{height:auto!important;align-self:center;justify-self:center;position:relative;width:min(1080px,calc(100vw - 56px),calc((100dvh - 150px)*1.8));margin:0;max-height:none;transform-origin:75% 50%;border-width:6px;z-index:2}
html[data-gift-phase=unfolding] #gift-book-spread,html[data-gift-phase=unfolded] #gift-book-spread,html[data-gift-phase=closing] #gift-book-spread{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[data-gift-phase=closing] #gift-book-spread{background:var(--book-red);border:6px solid var(--book-red);border-radius:5px;box-shadow:3px 8px 0 #792c25,6px 12px 0 #b08d60,0 20px 30px #52342029;transform-style:preserve-3d;align-items:stretch;gap:0}
html[data-gift-phase=closing] #gift-book-spread .calendar-section{display:block!important}
html[data-gift-phase=closing] #doors{display:grid!important}
html[data-gift-phase=unfolding] #gift-stage,html[data-gift-phase=unfolded] #gift-stage,html[data-gift-phase=closing] #gift-stage{padding:64px 0 24px!important;perspective:1800px;background:transparent;box-shadow:none;border:0}
#gift-stage .calendar-heading{padding:0 0 8px}#gift-stage .calendar-heading .kicker,#gift-stage .calendar-heading h2,#gift-stage .calendar-heading p:not(.release-status),#gift-stage .calendar-bottom{display:none}
#gift-stage .calendar-heading .release-status{font-size:11px;line-height:1.4;margin:0 0 4px}
#gift-stage .progress-wrap{font-size:11px;margin:0}
#gift-stage .calendar-section{padding:10px 8px}
#gift-stage #doors .door-lock{font-size:11px;line-height:1.2;padding:1px 2px}
html[data-gift-phase=closing] .gift-calendar-lid{display:block;position:relative;inset:auto;width:100%;height:auto;min-width:0;border:0;border-radius:0;box-shadow:inset -4px 0 8px #0004;transform-origin:right center;transform-style:preserve-3d;background:var(--book-green);z-index:2}
@media(max-width:750px) and (min-height:501px){
 #gift-stage #gift-book-spread{width:min(440px,calc(100vw - 20px));transform-origin:50% 50%;padding-top:58px}
 html[data-gift-phase=unfolded] .gift-calendar-lid{position:absolute;inset:0 0 auto;width:100%;height:58px;overflow:hidden}
 html[data-gift-phase=unfolding] #gift-book-spread,html[data-gift-phase=unfolded] #gift-book-spread,html[data-gift-phase=closing] #gift-book-spread{display:block!important}
 html[data-gift-phase=unfolded] .gift-calendar-lid{height:58px;overflow:hidden}
 html[data-gift-phase=unfolding] .gift-calendar-lid,html[data-gift-phase=closing] .gift-calendar-lid{position:absolute;left:0;top:0;width:100%;height:58px;transform-origin:center center;overflow:visible}
 #gift-stage .calendar-section{padding:8px 6px}
 #gift-stage #doors{gap:4px}
 #gift-stage .calendar-heading .release-status{max-height:32px;overflow:hidden}
}
@media(max-height:500px){
 #gift-stage #gift-book-spread{width:580px;max-width:calc(100vw - 40px)}
 #gift-stage #doors{gap:4px;grid-template-rows:repeat(5,44px)}
 #gift-stage #doors .door{aspect-ratio:auto;height:44px}
 #gift-stage .calendar-heading{display:none}
 #gift-stage .calendar-section{padding:8px 6px}
 html[data-gift-phase=unfolded] .gift-calendar-lid,html[data-gift-phase=unfolding] .gift-calendar-lid{position:relative;inset:auto;height:auto;overflow:visible;width:100%}
}
@media(prefers-reduced-motion:reduce){#gift-v7::before,#gift-lights i,#gift-ribbon .bow-knot{animation:none!important}#gift-lights{transition:none}#gift-stage *{transition-duration:0s!important}}
html[data-gift-motion=paused] #gift-v7::before,html[data-gift-motion=paused] #gift-lights i,html[data-gift-motion=paused] #gift-ribbon .bow-knot{animation-play-state:paused}
/* V11 coastal physical packaging; original printed door/worksheet images stay unfiltered. */
#gift-v7{--book-green:#77C5C0;--book-red:#F2B39F;--book-cream:#F9F1DE;--book-gold:#bf9956}
.gift-face{border-color:#F2B39F;background:#77C5C0;color:#244b47}
.gift-left,.gift-right,.gift-top,.gift-bottom{background:#F2B39F;color:#244b47;border-color:#F2B39F}
.gift-back{color:#244b47;background:#77C5C0}.gift-back::after{background:#B8D9C4}
.gift-wrap-segment{background:linear-gradient(90deg,#d49380,#F2B39F 22%,#f7c5b4 58%,#d99c89);border-color:#F9F1DE;box-shadow:inset 2px 0 3px #fff6df88,0 2px 3px #244b4744}
.wrap-horizontal{background:linear-gradient(#d49380,#F2B39F 22%,#f7c5b4 58%,#d99c89)}
#gift-ribbon i{background:linear-gradient(130deg,#e0efe0,#B8D9C4 30%,#77C5C0 73%,#b8d9c4);border-color:#356b65;box-shadow:inset 2px 2px 4px #F9F1DEbb,2px 4px 4px #244b4766}
#gift-stage .calendar-section,#gift-stage .release-status,#gift-stage .progress-wrap,#gift-stage .calendar-heading p:not(.kicker){color:#244b47}
/* V11 five quiet gold stars are background decoration, never input targets. */
#gift-stars{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
#gift-stars i{position:absolute;left:var(--star-x);top:-12px;width:var(--star-size);height:var(--star-size);background:#d0aa65;opacity:.72;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 96%,50% 73%,21% 96%,32% 57%,2% 35%,39% 35%);animation:gift-star-fall var(--star-time) linear var(--star-delay) infinite;pointer-events:none}
@keyframes gift-star-fall{from{transform:translate3d(-8px,-5vh,0) rotate(-12deg)}to{transform:translate3d(12px,108vh,0) rotate(35deg)}}
html:not([data-gift-motion=running]) #gift-stars i{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#gift-stars i{animation:none!important;top:calc(14% + var(--star-x)*.65)}}
/* V11 hanging paper tag; reuse the existing safe profile text node. */
#gift-tag{position:absolute;left:150px;top:145px;width:95px;min-height:51px;box-sizing:border-box;padding:8px 6px 8px 15px;background:#F9F1DE;color:#244b47;border:1.5px solid #bf9956;border-radius:5px 3px 3px 5px;transform:translateZ(22px) rotate(14deg);transform-origin:10px 9px;box-shadow:3px 9px 7px #0005;pointer-events:none;backface-visibility:hidden;z-index:5}
#gift-tag::before{content:'';position:absolute;left:-30px;top:-37px;width:39px;height:45px;border:1px solid #d0aa65;border-right-color:transparent;border-bottom-color:transparent;border-radius:65% 30% 0 0;transform:rotate(-17deg)}
#gift-tag::after{content:'';position:absolute;left:6px;top:8px;width:4px;height:4px;border-radius:50%;background:#244b47;box-shadow:0 0 0 1px #d0aa65}
#gift-tag #gift-personal{position:static;width:auto;height:auto;min-height:31px;padding:0;display:flex;font-size:11px;line-height:1.25;font-weight:700;overflow-wrap:anywhere;background:none;border:0;border-radius:0;text-shadow:none;color:inherit;max-width:100%}
/* V13 restores approved V11 coastal packaging; retains V12 structure and font. */
@font-face{font-family:'LeLe Huninn';src:url('assets/v12/jf-openhuninn-2.1.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
body,button,input,select,textarea,#gift-stage #doors .door-date{font-family:'LeLe Huninn','Arial Rounded MT Bold','Microsoft JhengHei',sans-serif}
#gift-v7{--book-green:#77C5C0;--book-red:#F2B39F;--book-cream:#F9F1DE;--book-gold:#bf9956}
.gift-face{background:#77C5C0;border-color:#F2B39F;box-shadow:inset 0 0 0 1px #F9F1DE}
.gift-left,.gift-right,.gift-top,.gift-bottom{background:#F2B39F;border-color:#F2B39F;box-shadow:inset 0 0 0 1px #F9F1DE66}
.gift-back{background:#77C5C0}.gift-face::after,.gift-face::before{display:none!important;content:none!important}
html[data-gift-phase=closed] .gift-front{box-shadow:inset 0 0 0 1px #F9F1DE,0 12px 24px #0005}
.gift-cover-art{inset:auto 4% 11%;width:92%;height:43%;object-fit:contain;filter:none}
.gift-wrap-segment{background:linear-gradient(90deg,#d49380,#F2B39F 22%,#f7c5b4 58%,#d99c89);border-color:#F9F1DE;box-shadow:inset 2px 0 3px #fff6df88,0 2px 3px #244b4744}
.wrap-horizontal{background:linear-gradient(#d49380,#F2B39F 22%,#f7c5b4 58%,#d99c89)}
#gift-ribbon i{background:linear-gradient(130deg,#e0efe0,#B8D9C4 30%,#77C5C0 73%,#b8d9c4);border-color:#356b65;box-shadow:inset 2px 2px 4px #F9F1DEbb,2px 4px 4px #244b4766}
#gift-tag{background:#F9F1DE;color:#244b47;border-color:#bf9956}
#gift-tag::before{border-color:#d0aa65;border-right-color:transparent;border-bottom-color:transparent}
#gift-tag::after{background:#244b47;box-shadow:0 0 0 1px #d0aa65}
#gift-stage .calendar-section{background:#F2B39F}
#gift-stage .calendar-section,#gift-stage .release-status,#gift-stage .progress-wrap,#gift-stage .calendar-heading p:not(.kicker){color:#244b47}
.gift-calendar-lid,.gift-unfold-back{background:#77C5C0}
#gift-name-dialog,#gift-name-dialog select{background:#F9F1DE;color:#222}
#gift-name-dialog input,#gift-name-dialog button{font-family:inherit}
#gift-lights{display:none}
#gift-ribbon .bow-knot{animation:none}
/* Shared 68px × 54px knot anchors: scaling cannot detach a loop or tail. */
#gift-ribbon i{box-sizing:border-box}
#gift-ribbon .bow-loop{width:64px;height:44px;top:10px;background:transparent;border:10px solid #B8D9C4;border-radius:70% 65% 38% 42%;box-shadow:inset 0 2px 3px #0004,0 3px 4px #0005}
#gift-ribbon .bow-left{left:4px;transform-origin:100% 100%;transform:rotate(20deg)}
#gift-ribbon .bow-right{left:68px;transform-origin:0 100%;transform:rotate(-20deg)}
#gift-ribbon .bow-tail{left:54px;top:54px;width:28px;height:65px;transform-origin:50% 0}
#gift-ribbon .tail-left{transform:rotate(25deg)}#gift-ribbon .tail-right{transform:rotate(-25deg)}
#gift-ribbon .bow-knot{left:56px;top:40px;width:24px;height:28px;transform-origin:50% 50%;z-index:2}
#gift-name-edit,#gift-close{background:#141717!important;color:#F9F1DE!important;border-color:#77C5C0!important}
/* A quiet angled quarter-lid; height constrains the calendar, not two equal pages. */
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) body{overflow-x:hidden;overflow-y:auto}
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-v7{height:auto;min-height:100dvh}
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage{height:auto!important;min-height:100dvh;box-sizing:border-box;padding:64px 0 24px!important}
#gift-stage #gift-book-spread{width:min(1800px,calc(100vw - 96px),calc((100dvh - 145px)*1.30));border:0;background:transparent;box-shadow:none;transform-origin:62.5% 50%;perspective:3000px;perspective-origin:25% 50%}
/* One shared camera, not a detached lid-local projection. */
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage{perspective:none}
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage #gift-book-spread{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:0}
html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage .gift-calendar-lid{position:relative;inset:auto;width:100%;height:auto;min-height:0;align-self:stretch;transform:rotateY(45deg);transform-origin:100% 50%;border:5px solid #F2B39F;box-sizing:border-box;border-radius:6px 0 0 6px;background:#77C5C0;box-shadow:inset -8px 0 14px #0003,-5px 8px 0 #0004;overflow:visible}
#gift-stage .calendar-section{padding:14px 12px;border:6px solid #F2B39F!important;border-radius:0 5px 5px 0;box-shadow:6px 9px 0 #0005}
#gift-stage #doors{gap:7px;grid-template-rows:repeat(5,minmax(44px,1fr))}
#gift-stage #doors .door{height:auto;aspect-ratio:1}
#gift-stage .calendar-heading .release-status,#gift-stage .progress-wrap{font-size:12px}
#gift-stage #doors .door-date{font-size:14px;background:#F9F1DE;color:#222;border-color:#77C5C0}
@media(max-width:750px){
 #gift-stage #gift-book-spread{width:min(480px,calc(100vw - 20px));padding-top:42px}
 html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage #gift-book-spread{display:block!important}
 html:is([data-gift-phase=unfolding],[data-gift-phase=unfolded],[data-gift-phase=closing]) #gift-stage .gift-calendar-lid{position:absolute;left:0;top:0;width:40%;height:42px;border-width:4px;transform:rotateX(-45deg);transform-origin:50% 100%;overflow:visible}
 #gift-stage .calendar-section{padding:8px 5px;border-width:5px!important;border-radius:4px}
 #gift-stage #doors{gap:4px}
 #gift-stage #doors .door-date{font-size:12px}
}
@media(max-height:500px) and (min-width:751px){
 #gift-stage #gift-book-spread{width:min(740px,calc(100vw - 48px));padding-top:0}
 #gift-stage #doors{grid-template-rows:repeat(5,minmax(64px,1fr))}
 #gift-stage #doors .door{height:auto;aspect-ratio:1}
 #gift-stage .calendar-heading{display:block}
}


