/* Artist handoff v0.0.37. Decorative layers never intercept controls.
   Original layout, IDs, Live2D portal and data-driven components stay live. */
:root {
  --art-paper:#f6f8f2;
  --art-card:#fffffc;
  --art-mint:#dff2e9;
  --art-edge:#c4e4d5;
  --art-focus:#4f9e78;
  --art-shadow:0 3px 15px #6da58e29,0 0 3px #9bd9c259;
  --art-inset:inset 0 0 12px #ffffffc9;
  --art-cream:#f9f2e6;
  --art-sage:#e5e9da;
  --art-coral:#f59f91;
}
@supports (overflow:clip) { body{overflow-x:clip} }
#main-content{position:relative;isolation:isolate;overflow-x:clip}
.hero,.content-section {position:relative;isolation:auto}
.hero-petal-mint{width:469px;left:calc(50% - 637px);top:242px}
.hero-petal-cream{width:455px;left:calc(50% - 631px);top:232px}
.hero-clover{width:305px;left:calc(50% - 357px);top:613px;opacity:.82}
.hero-orb{position:absolute;border-radius:50%;background:#fffdf5;width:64px;height:64px;right:8%;top:152px;box-shadow:-12px 22px 0 -9px #def0e4}
.hero-gem{position:absolute;width:104px;height:115px;left:5%;bottom:160px;background:linear-gradient(150deg,#e8f2df,#cbe0d755);clip-path:polygon(28% 0,90% 16%,100% 65%,50% 100%,0 71%,5% 22%);opacity:.75}
.hero-visual .sky-curves{opacity:.13}
.hero-visual .portrait-garden{background:radial-gradient(ellipse at 50% 55%,#e2edce5c,transparent 65%)}
.hero .hero-copy{position:relative;z-index:1}
#about .section-heading>.eyebrow{width:fit-content;padding:4px 12px;border:1px solid #82c5bb;border-radius:30px;background:#d5ebdfad;margin-left:-12px}
#about .profile-grid{grid-template-columns:1.12fr .92fr}
#about :is(.profile-card,.fact-card,.profile-live-card,.story-card){
  border:2px solid #fffffff2;border-radius:26px;
  background:linear-gradient(112deg,#fbfbf4b3,#e3f4eed6);
  box-shadow:inset 0 0 18px #ffffffb0,0 8px 25px #638b7410;
}
#about .profile-card{position:relative;overflow:hidden}
#about .profile-card::after{content:"";position:absolute;right:17px;top:10px;width:94px;height:155px;background:url('../assets/design37/botanical-sprig.png') center top/92px auto no-repeat;opacity:.48;pointer-events:none}
#about .profile-card>div{position:relative;z-index:1}
#about .profile-card .muted{max-width:290px}
#about .fact-card dl div{position:relative;border-bottom:0;padding-bottom:11px}
#about .fact-card dl div:not(:last-child)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#c3f0b9,#e4ecc4,#f9b3bb)}
#about .fact-card dl div:nth-child(2)::after{background:linear-gradient(90deg,#c4f0e7,#f3ecbb)}
#about .fact-card dl div:nth-child(3)::after{background:linear-gradient(90deg,#8ed0d2,#c9c5ea)}
#about .fact-card dl div:nth-child(2) dd,#about .support-color{width:fit-content;margin-left:auto;border:1px solid #d9b583;border-radius:20px;padding:2px 10px;background:#fff8ec;color:#4b614e}
#about .support-color i{border:1px solid #d9b583;background:#edf8ec}
#about .profile-live-card{background:linear-gradient(110deg,#fcfbef,#d6f1e9)}
#about .profile-live-card .profile-live-link{display:inline-flex;padding:7px 12px;border:2px solid #fffefa;border-radius:22px;background:#cde9dd;box-shadow:0 2px 6px #567e641a;color:#42624d}
#about .profile-countdown>div{border:2px solid #fffefa;border-radius:26px;background:linear-gradient(135deg,#fffffff2,#e2f4ee);box-shadow:0 0 16px #75c2a64d;min-width:68px;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#about .profile-stats{border:0;border-radius:26px;background:var(--art-card);box-shadow:none}
#about .profile-stats>div+div{border-left:3px solid #e7ddcb}
#about .story-card{border-radius:26px}
#history :is(.stat-card,.random-stream,.stream-calendar,.history-toolbar,.stream-card,.empty-state){border:1px solid var(--art-edge);background:var(--art-card);border-radius:22px;box-shadow:var(--art-shadow)}
#history .archive-status{border:1px solid var(--art-edge);border-radius:18px;background:linear-gradient(115deg,#f7fbf4,#dff2e9);box-shadow:inset 0 0 10px #fff8}
#history .archive-status :is(a,button){border:1px solid var(--art-edge);border-radius:20px;padding:6px 12px;background:#fffefa;color:#496651}
#history .archive-status button{background:#ceebd9}
#history .history-toolbar{padding:18px 22px 20px;gap:12px}
#history .history-toolbar :is(input,select,.btn){border:1px solid #c8e6d7;border-radius:22px;background:#fff;box-shadow:0 0 7px #81bda42b;color:#4c6756}
#history .history-toolbar .btn[aria-pressed=true]{background:#d3edde;color:#345c45;border-color:#73b58d}
#history .calendar-track{padding:0 9px;gap:10px;height:96px}
#history .month-bar{--month-tint:#ecf4e6;border-radius:24px;background:var(--month-tint);border:1px solid transparent;transition:transform .2s,box-shadow .2s}
#history .month-bar:nth-child(1){--month-tint:#ebf7f1}#history .month-bar:nth-child(2){--month-tint:#f0f5e7}#history .month-bar:nth-child(3){--month-tint:#edf3df}#history .month-bar:nth-child(4){--month-tint:#e9f2dc}
#history .month-bar:nth-child(5){--month-tint:#d9ead7}#history .month-bar:nth-child(6){--month-tint:#d2e9dd}#history .month-bar:nth-child(7){--month-tint:#c2e3d7}#history .month-bar:nth-child(8){--month-tint:#b7dcd0}
#history .month-bar:nth-child(9){--month-tint:#a5d1c1}#history .month-bar:nth-child(10){--month-tint:#92c2ad}#history .month-bar:nth-child(11){--month-tint:#7db49e}#history .month-bar:nth-child(12){--month-tint:#4b967d}
#history .month-bar i{border-radius:20px;background:linear-gradient(transparent,#326f532e);min-height:4px}
#history .month-bar b{bottom:10px;color:#365e49}
#history .month-bar:nth-child(n+10) b{color:#fff}
#history .month-bar.active{box-shadow:inset 0 0 0 2px #396e58,0 0 0 2px #fff;border-color:#fff;transform:translateY(-3px)}
#history .stream-card{padding:6px;overflow:hidden}
#history .stream-cover{border:1px solid #d3ddc8;border-radius:21px 21px 12px 12px;overflow:hidden}
#history .stream-body{padding:21px 19px 22px}
#memories .sync-panel{border:1px solid #d4d5bc;border-radius:24px;background:linear-gradient(105deg,#c2d0c1,#eee7cd);box-shadow:var(--art-shadow);padding:18px 24px}
#memories .sync-badge{display:grid;place-items:center;width:70px;min-height:70px;border-radius:24px;background:#fff;border:0;color:#426248}
#memories .sync-actions .btn.primary{border:3px solid #b4ad90;border-radius:34px;background:linear-gradient(120deg,#52624e,#84917c);color:#fff6dc;box-shadow:0 2px 7px #7e78552e;padding:12px 30px}
#memories .memory-card{border:1px solid #ecf7ef;border-radius:190px 190px 25px 25px;box-shadow:var(--art-shadow);background:#f8faf5;overflow:hidden}
#memories .memory-art.image-art{display:block;width:calc(100% - 48px);height:300px!important;min-height:0;margin:22px 24px 0;border:6px solid #fffef1;border-radius:69% 30% 67% 28%;background:#c4cfb8!important;box-shadow:-9px 3px 0 -7px #b59b5b;overflow:hidden;isolation:isolate}
#memories .memory-art.image-art::after{display:none}
#memories .memory-art.image-art img{width:100%!important;height:100%!important;max-height:none;object-fit:cover!important;object-position:center 22%!important;mask-image:none!important;-webkit-mask-image:none!important;transform:scale(1.05)!important;filter:none}
#memories .memory-card.affection-card .affection-art-wrap img{transform:translate(5%,16%) scale(-1.5,1.5)!important;transform-origin:50% 18%;object-position:center 26%!important}
#memories .memory-copy{padding:0 30px 30px}
#memories .yearring-panel{position:relative;overflow:hidden;border:3px solid #fff;border-radius:26px;background:linear-gradient(110deg,#f7d9ce,#fcf5e9 47%,#f9e5d5);box-shadow:var(--art-inset),var(--art-shadow);min-height:238px}
#memories .yearring-panel::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('../assets/design37/companion-rings.png') 68% center/420px auto no-repeat}
#memories .yearring-copy,#memories .rings{position:relative;z-index:1}
#memories .rings{background:none}
#memories .rings>i{opacity:.16}
#memories .ring-days{background:transparent;box-shadow:none;border:0}
#mailbox .mailbox-picker{border:1px solid #c5e3d4;border-radius:26px;background:#d9efe4;box-shadow:var(--art-shadow);padding:28px 22px}
#mailbox .mailbox-choice{border:1px solid #8bbb94;border-radius:23px;background:var(--art-card);box-shadow:0 2px 8px #72a58c1a;padding:18px 20px;transition:background .2s,border-color .2s,box-shadow .2s}
#mailbox .mailbox-choice.selected{border-color:#65a976;background:#fff;box-shadow:0 0 0 2px #81bc9540}
#mailbox .mailbox-choice:disabled{opacity:.58}
#mailbox .mailbox-choice-icon{background:transparent}
#mailbox .letter-compose{border:0;border-radius:26px;background:#fffef7;box-shadow:none;overflow:hidden}
#mailbox .letter-compose::before,#mailbox .letter-compose::after{display:none}
#mailbox .compose-stamp{width:145px;height:164px;top:18px;right:22px;border:0;background:url('../assets/design37/mail-stamp.png') center/contain no-repeat;box-shadow:none;font-size:0;transform:none;pointer-events:none;opacity:.8}
#mailbox .compose-stamp::after{content:"YOBU\a POST";white-space:pre;text-align:center;position:absolute;right:3px;top:7px;width:66px;font:9px/32px "Noto Sans SC",sans-serif;letter-spacing:1.6px;color:#7f8d6b;transform:rotate(6deg)}
#mailbox .compose-head{padding-right:132px}
#mailbox .letter-form :is(input,textarea){border:1px solid #85b990;border-radius:24px;background:#fff;box-shadow:0 2px 12px #90bea22b;color:#354f40;padding:14px 20px;transition:border-color .18s,box-shadow .18s}
#mailbox .letter-form :is(input,textarea):focus{outline:none;border-color:#438d63;box-shadow:0 0 0 3px #84bd982e,0 2px 12px #90bea230}
#mailbox .letter-form :is(input,textarea):disabled{background:#fafcf8;opacity:.65}
#mailbox #letter-submit{border-radius:30px;border:1px solid #f2a597;background:#f59f91;color:#fff;padding:14px 23px;box-shadow:none}
#mailbox #letter-submit:hover:not(:disabled){background:#e78878;transform:translateY(-2px)}
#mailbox #letter-submit:disabled{opacity:.55}
#mailbox #mailbox-expand{border-radius:22px;border-color:#a8d4bd;background:#e3f2e9;box-shadow:var(--art-shadow)}
#shop .shop-summary{background:transparent;border:0;box-shadow:none;overflow:visible;gap:22px}
#shop .shop-summary>div{border:1px solid #bcdfcd;border-radius:24px;background:var(--art-card);box-shadow:var(--art-shadow);padding:24px 26px}
#shop :is(.shop-rules,.magic-lottery,.lottery-history){background:var(--art-card);border:1px solid #9dcaa9;border-radius:22px;box-shadow:0 1px 9px #78b88f17}
#shop .magic-lottery{overflow:hidden}
#shop .magic-lottery.is-drawing{box-shadow:0 0 32px #8fbf9459}
#shop .ritual-emblem{max-width:350px;filter:drop-shadow(0 0 18px #e9debd38)}
#shop .ritual-visual .ritual-ring{opacity:.18}
#shop .ritual-visual .ritual-star{opacity:.25}
#shop .lottery-actions .btn{border:0;border-radius:28px;background:linear-gradient(115deg,#9fddc9,#e8eccd);color:#3d654c;box-shadow:inset 0 1px 4px #ffffffb3;padding:13px 22px}
#shop .lottery-actions .btn:disabled{opacity:.64}
#shop .lottery-actions .btn:hover:not(:disabled){background:linear-gradient(115deg,#86ceb5,#dce5b8);box-shadow:0 4px 12px #63a1822b}
#shop .lottery-odds{border-top:2px solid #cbe4b0;padding-top:13px}
#shop .shop-product{border:1px solid #9dc99e;border-radius:24px;background:var(--art-card);box-shadow:var(--art-shadow);padding:7px;overflow:hidden}
#shop .shop-product-image{border:1px solid #d8d4c0;border-radius:22px 22px 16px 16px;overflow:hidden}
#shop .shop-product-foot{border-top:1px solid #e6dbc0;padding-top:14px}
#shop .shop-redeem{border:1px solid #8dca96;border-radius:22px;background:#fff;color:#436a4d;box-shadow:0 1px 5px #84b19622}
#shop .shop-redeem:hover:not(:disabled){background:#e6f3e6}

/* Night colors retain the illustration's mint, cream and warm coral relationships. */
html[data-theme=dark]{--art-paper:#101b18;--art-card:#1c3028;--art-mint:#203e32;--art-edge:#476554;--art-cream:#2b3028;--art-shadow:0 4px 18px #020b083b,0 0 2px #95b98b24;--art-inset:inset 0 0 12px #acc3a90a}
html[data-theme=dark] #home .hero-petal-mint,html[data-theme=dark] #home .hero-petal-cream{opacity:.17}
html[data-theme=dark] #home .hero-clover{opacity:.2}
html[data-theme=dark] #home :is(.hero-orb,.hero-gem){opacity:.14}
html[data-theme=dark] #hero-title-default .hero-title-question{color:#b6c6a7!important}
html[data-theme=dark] .hero-visual .sky-curves{opacity:.22}
html[data-theme=dark] #about .section-heading>.eyebrow{background:#264437;border-color:#5f927a}
html[data-theme=dark] #about :is(.profile-card,.fact-card,.profile-live-card,.story-card){background:linear-gradient(112deg,#27382b,#1d3c30);border-color:#69887566;box-shadow:var(--art-inset)}
html[data-theme=dark] #about .profile-stats{background:var(--art-card)}
html[data-theme=dark] #about .profile-stats>div+div{border-color:#797052}
html[data-theme=dark] #about .fact-card dl div:nth-child(2) dd,html[data-theme=dark] #about .support-color{background:#303829;border-color:#998058;color:#dce5cc}
html[data-theme=dark] #about .fact-card dl div::after{opacity:.5}
html[data-theme=dark] #about .profile-countdown>div{background:linear-gradient(130deg,#294437,#234d3c);border-color:#759b8666;box-shadow:0 0 13px #17392f80}
html[data-theme=dark] #about .profile-live-card .profile-live-link{background:#315441;color:#d1e4c5;border-color:#6b8e725e}
html[data-theme=dark] #history .archive-status{background:linear-gradient(115deg,#24392a,#294935);border-color:var(--art-edge)}
html[data-theme=dark] #history .archive-status :is(a,button),html[data-theme=dark] #history .history-toolbar :is(input,select,.btn){background:#21392d;border-color:#536e57;color:#d0dfc1;box-shadow:none}
html[data-theme=dark] #history .month-bar{background:color-mix(in srgb,var(--month-tint) 33%,#142e24)}
html[data-theme=dark] #history .month-bar b{color:#edf2dc}
html[data-theme=dark] #history .month-bar.active{box-shadow:inset 0 0 0 2px #e0d8a1,0 0 0 2px #324b3a}
html[data-theme=dark] #memories .sync-panel{background:linear-gradient(110deg,#3f5745,#4b4832);border-color:#718163}
html[data-theme=dark] #memories .sync-badge{background:#263d2d;color:#dce6ce}
html[data-theme=dark] #memories .sync-actions .btn.primary{background:linear-gradient(120deg,#6a795a,#899273);border-color:#a79b6f;color:#101b18}
html[data-theme=dark] #memories .memory-card{background:#1c3028;border-color:#557560}
html[data-theme=dark] #memories .memory-art.image-art{background:#405640!important;border-color:#afbaa0}
html[data-theme=dark] #memories .yearring-panel{background:linear-gradient(110deg,#49392e,#34382b 47%,#423e2c);border-color:#6b715951}
html[data-theme=dark] #memories .yearring-panel::before{opacity:.65}
html[data-theme=dark] #mailbox .mailbox-picker{background:#214333;border-color:#577560}
html[data-theme=dark] #mailbox .mailbox-choice{background:#20372c;border-color:#709376}
html[data-theme=dark] #mailbox .mailbox-choice.selected{background:#2c4936;border-color:#a9c694;box-shadow:0 0 0 2px #8ba77826}
html[data-theme=dark] #mailbox .letter-compose{background:#22352a}
html[data-theme=dark] #mailbox .letter-form :is(input,textarea){background:#15271f;border-color:#618263;color:#e1ead9;box-shadow:none}
html[data-theme=dark] #mailbox #letter-submit{background:#dcaa91;border-color:#dcaa91;color:#30231d}
html[data-theme=dark] #mailbox #letter-submit:hover:not(:disabled){background:#ebbaa1}
html[data-theme=dark] #mailbox #mailbox-expand{background:#294b39;border-color:#6c997c;color:#d5e4c7}
html[data-theme=dark] #shop .lottery-actions .btn{background:linear-gradient(115deg,#82b89b,#bbc397);color:#173325}
html[data-theme=dark] #shop .lottery-actions .btn:hover:not(:disabled){background:linear-gradient(115deg,#9ac9a9,#d2d4a8)}
html[data-theme=dark] #shop .lottery-odds{border-color:#748360}
html[data-theme=dark] #shop .shop-product-foot{border-color:#817451}
html[data-theme=dark] #shop .shop-redeem{background:#294a34;border-color:#729c71;color:#d9e7c3}
html[data-theme=dark] #shop .shop-redeem:hover:not(:disabled){background:#3b5c42}
html[data-theme=dark] :is(.ritual-emblem,.draw-seal){filter:brightness(1.65) drop-shadow(0 0 12px #dbc89128)}

@media(max-width:1100px){
  .hero-petal-mint,.hero-petal-cream{left:-4%;width:42vw}
  .hero-clover{left:17%;top:63%;width:25vw}
  #memories .memory-art.image-art{width:calc(100% - 30px);height:260px!important;margin:18px 15px 0;border-width:5px}
  #memories .memory-copy{padding:3px 24px 25px}
  #shop .shop-summary{gap:16px}
  #shop .shop-summary>div{padding:22px}
}
@media(max-width:900px){
  #about .profile-grid{grid-template-columns:1.12fr .92fr}
  #about .profile-countdown>div{min-width:58px;min-height:92px;border-radius:22px}
  #about .profile-card::after{opacity:.24;right:8px;width:66px;background-size:66px}
  #about .profile-stats,#about .story-card{grid-column:1/-1}
  #memories .memory-art.image-art{height:205px!important}
  #memories .sync-badge{min-height:54px;width:54px;border-radius:19px}
}
@media(max-width:600px){
  .hero-petal-mint,.hero-petal-cream{left:-6%;top:74px;width:86vw;max-width:430px}
  .hero-clover{left:auto;right:0;top:31%;width:130px;opacity:.55}
  .hero-orb{width:35px;height:35px;top:41%;right:9%}
  .hero-gem{width:65px;height:76px;bottom:160px;left:3%}
  #about .profile-grid{grid-template-columns:1fr}
  #about .section-heading>.eyebrow{margin-left:0}
  #about .profile-card{padding:23px;gap:20px}
  #about .profile-card::after{opacity:.28;width:64px}
  #about :is(.profile-card,.fact-card,.profile-live-card,.profile-stats,.story-card){border-radius:23px}
  #about .profile-live-card{padding:25px}
  #about .profile-countdown>div{min-width:0;min-height:87px;border-radius:20px}
  #about .profile-countdown{width:100%;grid-template-columns:repeat(4,1fr);gap:10px}
  #history .history-toolbar{padding:18px 15px;gap:10px}
  #history .history-toolbar :is(input,select,.btn){padding-inline:10px}
  #history .calendar-track{padding:0;gap:4px;height:92px}
  #history .month-bar{border-radius:13px;min-width:0}
  #history .month-bar b{font-size:8px;bottom:10px}
  #history .stream-body{padding:18px 16px 22px}
  #memories .sync-panel{padding:18px;border-radius:23px}
  #memories .sync-actions .btn.primary{padding:11px 19px;font-size:12px}
  #memories .memory-card{border-radius:24px;grid-template-columns:42% 1fr;min-height:206px;align-items:center}
  #memories .memory-art.image-art{width:calc(100% - 14px);height:178px!important;min-height:0;margin:14px 0 14px 14px;border-width:4px;border-radius:68% 27% 65% 27%}
  #memories .memory-art.image-art img{max-height:none;object-position:center 17%!important}
  #memories .memory-copy{padding:20px 17px}
  #memories .memory-copy h3{font-size:16px;line-height:1.55}
  #memories .yearring-panel{min-height:214px;padding:22px 18px}
  #memories .yearring-panel::before{background-position:60% center;background-size:290px;opacity:.7}
  #mailbox .section-heading h2{max-width:85%}
  #mailbox .mailbox-picker{padding:24px 18px}
  #mailbox .mailbox-choice{padding:17px;border-radius:20px}
  #mailbox .compose-stamp{width:94px;height:108px;right:10px;top:15px;opacity:.64}
  #mailbox .compose-stamp::after{right:2px;top:3px;width:43px;font-size:6px;line-height:21px;letter-spacing:1px}
  #mailbox .compose-head{padding-right:73px}
  #mailbox .letter-compose{padding:28px 21px;border-radius:24px}
  #mailbox .letter-form :is(input,textarea){padding:13px 15px;border-radius:20px}
  #mailbox .letter-form :is(input,textarea){font-size:16px}
  #mailbox #letter-submit{padding:12px 20px}
  #shop .shop-summary{gap:14px;grid-template-columns:1fr 1fr}
  #shop .shop-summary>div{padding:21px 18px;border-radius:22px;grid-column:auto!important}
  #shop .shop-summary>div:first-child{grid-column:1/-1!important}
  #shop .shop-summary>div:last-child{grid-column:1/-1!important}
  #shop .magic-lottery{border-radius:23px}
  #shop .lottery-actions .btn{padding:13px 12px;border-radius:23px}
  #shop .ritual-emblem{width:255px;max-width:100%}
}

@media(prefers-reduced-motion:reduce){#history .month-bar,#mailbox .mailbox-choice{transition:none}}

/* v0.0.38: adjacent backgrounds crossfade directly; artwork is never masked.
   Every color is opaque, so joins cannot fade through a third paper-colored band. */
:root {
  --scene-home-left:#f5f8ed;--scene-home-right:#f4f3e4;
  --scene-about-left:#fcf4e7;--scene-about-right:#dcf3eb;
  --scene-history-left:#edf8f2;--scene-history-right:#e2f2ec;
  --scene-memories-left:#fbfdfb;--scene-memories-right:#e1e6d7;
  --scene-mailbox-left:#f4f5ea;--scene-mailbox-right:#e0f3f7;
  --scene-shop-left:#e7f0e1;--scene-shop-right:#ccebdd;
  --scene-voice-left:var(--art-paper);--scene-voice-right:var(--art-paper);
  --scene-fortune-left:var(--art-paper);--scene-fortune-right:var(--art-paper);
}
html[data-theme=dark] {
  --scene-home-left:#101b18;--scene-home-right:#19251e;
  --scene-about-left:#252d23;--scene-about-right:#143b2e;
  --scene-history-left:#162c24;--scene-history-right:#1c3b2e;
  --scene-memories-left:#15291f;--scene-memories-right:#343a2a;
  --scene-mailbox-left:#242e25;--scene-mailbox-right:#193940;
  --scene-shop-left:#1d3529;--scene-shop-right:#204533;
}
.section-atmosphere {
  position:absolute;z-index:-1;pointer-events:none;user-select:none;
  width:100vw;left:50%;transform:translateX(-50%);top:0;bottom:0;
  background:linear-gradient(90deg,var(--wash-left),var(--wash-right));
}
.section-atmosphere::before {
  content:"";position:absolute;inset:0 0 auto;height:min(100%,clamp(280px,29vw,440px));
  background:linear-gradient(90deg,var(--previous-left),var(--previous-right));
  --join-fade:linear-gradient(#000 0%,rgb(0 0 0/.9914) 10%,rgb(0 0 0/.9421) 20%,rgb(0 0 0/.8369) 30%,rgb(0 0 0/.6826) 40%,rgb(0 0 0/.5) 50%,rgb(0 0 0/.3174) 60%,rgb(0 0 0/.1631) 70%,rgb(0 0 0/.0579) 80%,rgb(0 0 0/.0086) 90%,transparent 100%);
  -webkit-mask-image:var(--join-fade);mask-image:var(--join-fade);
}
#home>.section-atmosphere::before{content:none}
#home>.section-atmosphere{--wash-left:var(--scene-home-left);--wash-right:var(--scene-home-right);--previous-left:var(--scene-home-left);--previous-right:var(--scene-home-right)}
#about>.section-atmosphere{--wash-left:var(--scene-about-left);--wash-right:var(--scene-about-right);--previous-left:var(--scene-home-left);--previous-right:var(--scene-home-right)}
#history>.section-atmosphere{--wash-left:var(--scene-history-left);--wash-right:var(--scene-history-right);--previous-left:var(--scene-about-left);--previous-right:var(--scene-about-right)}
#memories>.section-atmosphere{--wash-left:var(--scene-memories-left);--wash-right:var(--scene-memories-right);--previous-left:var(--scene-history-left);--previous-right:var(--scene-history-right)}
#mailbox>.section-atmosphere{--wash-left:var(--scene-mailbox-left);--wash-right:var(--scene-mailbox-right);--previous-left:var(--scene-memories-left);--previous-right:var(--scene-memories-right)}
#shop>.section-atmosphere{--wash-left:var(--scene-shop-left);--wash-right:var(--scene-shop-right);--previous-left:var(--scene-mailbox-left);--previous-right:var(--scene-mailbox-right)}
#voice>.section-atmosphere{--wash-left:var(--scene-voice-left);--wash-right:var(--scene-voice-right);--previous-left:var(--scene-shop-left);--previous-right:var(--scene-shop-right)}
#fortune>.section-atmosphere{--wash-left:var(--scene-fortune-left);--wash-right:var(--scene-fortune-right);--previous-left:var(--scene-voice-left);--previous-right:var(--scene-voice-right)}

/* Artwork uses the content containers as its coordinate system. */
.art-element{position:absolute;display:block;max-width:none;height:auto;pointer-events:none;user-select:none;filter:none}
.hero-art{position:absolute;inset:0;z-index:0;pointer-events:none;user-select:none}
.hero-art .hero-horizon{width:max(100vw,1440px);left:50%;transform:translateX(-50%);bottom:0;opacity:1}
#about .profile-grid{position:relative;isolation:isolate}
.profile-art{position:absolute;inset:0;z-index:5;pointer-events:none;user-select:none}
.about-sprig{width:167px;right:-22px;top:-240px;opacity:.85}
.about-sprig-small{width:74px;left:clamp(-94px,calc((100% - 100vw)/2 + 12px),-8px);top:43%;opacity:.4;transform:rotate(-30deg)}
.about-leaf-a{width:65px;right:-16px;top:-40px;opacity:1;transform:rotate(12deg)}
.about-leaf-b{width:54px;right:168px;top:-88px;opacity:.62;transform:rotate(-35deg)}
.about-leaf-c{width:72px;left:clamp(-104px,calc((100% - 100vw)/2 + 12px),-8px);bottom:14px;opacity:.85;transform:rotate(28deg)}
.about-leaf-e{width:46px;right:242px;top:-210px;opacity:.25;transform:rotate(20deg)}
#about .story-card{position:relative;overflow:visible}
.about-leaf-d{width:48px;right:-16px;top:-16px;opacity:.8;z-index:5;transform:rotate(-34deg)}
#memories .sync-panel{position:relative;overflow:visible}
.memories-branch{width:min(44%,530px);right:-1px;bottom:calc(100% + 38px);z-index:1}
#mailbox .mailbox-layout,#mailbox .mailbox-picker{position:relative}
#mailbox .mailbox-picker{overflow:visible}
#mailbox .mailbox-picker,#mailbox .letter-compose{min-width:0}
#mailbox .mailbox-list{min-width:0;max-width:100%}
.mail-clouds-right{width:min(25%,265px);right:0;bottom:calc(100% + 40px);z-index:2}
.mail-clouds-left{width:269px;left:-61px;top:calc(100% - 44px);z-index:2}
.hero-visual .portrait-garden{z-index:0;pointer-events:none}
.hero-visual .portrait-foreground{z-index:5;filter:none;pointer-events:none;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
html[data-theme=dark] .profile-art .about-sprig{opacity:.48}
html[data-theme=dark] .profile-art .about-leaf-a{opacity:.84}
html[data-theme=dark] .profile-art .about-leaf-c{opacity:.7}
@media(max-width:1400px){.mail-clouds-left{left:-24px}}
@media(max-width:1100px){
  .about-sprig{width:130px;right:-8px;top:-202px}
  .about-leaf-a{right:-12px;width:58px;top:-36px}
  .about-leaf-b{right:136px;top:-70px}
  .about-leaf-e{right:200px;top:-176px}
}
@media(max-width:900px){
  .mail-clouds-left{display:none}
  .about-sprig-small{display:none}
  .about-sprig{width:112px;top:-185px}
  .about-leaf-c{width:54px;bottom:12px}
  .memories-branch{width:40%;bottom:calc(100% + 48px)}
  .mail-clouds-right{width:min(30%,200px)}
}
@media(max-width:600px){
  .section-atmosphere::before{height:min(100%,300px)}
  .hero-art .hero-horizon{width:950px}
  .about-sprig,.about-leaf-b,.about-leaf-e{display:none}
  .about-leaf-a{display:block;width:42px;right:-7px;top:-26px}
  .about-leaf-c{width:40px;bottom:12px;left:-8px}
  .about-leaf-d{width:34px;right:-7px;top:-14px}
  .memories-branch{width:min(40%,160px);bottom:calc(100% + 60px)}
  .mail-clouds-right{width:clamp(100px,32%,135px);bottom:calc(100% + 30px)}
}
@media(prefers-reduced-motion:reduce){.hero-visual .portrait-foreground{transition:none}}

/* Three independent depths share one pointer source, including every constellation. */
.hero-visual .portrait-garden{transform:translate(calc(var(--sky-x,0px)*.3),calc(var(--sky-y,0px)*.3))}
.portrait-midground{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible;pointer-events:none;transform:translate(calc(var(--sky-x,0px)*.72),calc(var(--sky-y,0px)*.72));transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.hero-visual .portrait-foreground{transform:translate(calc(var(--sky-x,0px)*-1.1),calc(var(--sky-y,0px)*-1.1));transition-duration:.4s}
.mid-stars{animation:star-breathe 6s ease-in-out infinite alternate}

/* Artist's exact lemon contours and already-cropped RGBA portraits are separate layers.
   The head can cross the frame; no blur or gradient mask touches any portrait. */
#memories .memory-grid{padding-top:6px}
#memories .memory-card{overflow:visible}
#memories .memory-art.image-art{position:relative;width:calc(100% - 40px);height:auto!important;aspect-ratio:350/347;min-height:0;margin:-5px 20px 0;border:0;border-radius:0;background:transparent!important;box-shadow:none;overflow:visible;isolation:isolate}
#memories .memory-art.image-art::before,#memories .memory-art.image-art::after{display:none!important}
.memory-lemon-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:0;pointer-events:none}
.lemon-outline{fill:none;stroke:#a69558;stroke-width:.0029}
.lemon-leaf{fill:#c4cfb8;stroke:#fffef1;stroke-width:.021;stroke-linejoin:round}
#memories .memory-art.image-art img{position:absolute;display:block;z-index:1;max-height:none;object-fit:fill!important;object-position:center!important;transform:none!important;filter:none!important;mask-image:none!important;-webkit-mask-image:none!important;margin:0;animation:none!important}
#memories .first-meet-card .memory-art img{left:12.5714%;top:2.8818%;width:80.2857%!important;height:93.3718%!important}
#memories .supporter-card .memory-art img{left:5.7143%;top:5.1873%;width:89.1429%!important;height:91.0663%!important}
#memories .memory-card.affection-card .affection-art-wrap img{left:8.2857%;top:0;width:72.8571%!important;height:96.2536%!important;transform:none!important}
#memories .memory-copy{padding-top:0;margin-top:0;min-height:142px;background:transparent}
@media(max-width:1100px){#memories .memory-art.image-art{width:calc(100% - 26px);margin:-4px 13px 0}}
@media(max-width:600px){
  #memories .memory-grid{padding-top:0}
  #memories .memory-art.image-art{width:calc(100% - 10px);height:auto!important;min-height:0;margin:0 0 0 10px}
  #memories .memory-copy{padding-top:20px}
}

/* Light stays confined to the active ritual; reward requests are unchanged. */
.lottery-dialog{--ritual-light:#ccf4c5;--ritual-gold:#ffefae;--ritual-white:#fffef1}
.lottery-dialog.is-conjuring{background:radial-gradient(ellipse at 50% 42%,#eff7dc 0%,#fffdf4 58%,#fffef8 100%);border-color:#aebd8d;box-shadow:0 22px 85px #2537234d,0 0 40px #c8e1ab4d,inset 0 0 30px #e4edca4d}
.draw-ceremony{overflow:visible}
.draw-seal-stage::before{inset:-8%;background:radial-gradient(circle,#fffce3d9 0%,#dbf3bfa6 20%,#a9d6a557 43%,transparent 69%);filter:blur(10px);animation:ritual-aura 2.4s ease-in-out infinite alternate}
.draw-seal-stage::after{content:"";position:absolute;inset:-3%;z-index:0;border-radius:50%;pointer-events:none;background:repeating-conic-gradient(from 8deg,transparent 0deg 18deg,#b9d89c52 20deg,transparent 23deg 40deg);mask-image:radial-gradient(transparent 25%,#0008 44%,transparent 71%);-webkit-mask-image:radial-gradient(transparent 25%,#0008 44%,transparent 71%);animation:seal-turn 24s linear infinite}
.lottery-dialog .draw-seal{z-index:2;animation:seal-turn 9s linear infinite,ritual-line-light 2.4s ease-in-out infinite alternate}
.lottery-dialog .draw-halo{z-index:1;border-color:#d2e9b3;box-shadow:0 0 3px #fffbe4,0 0 12px #b4dc92b3,inset 0 0 12px #d2eda880}
.lottery-dialog .halo-two{border-color:#e2ca83;box-shadow:0 0 3px #fff1bb,0 0 20px #d7c78773}
.lottery-dialog .draw-motes{z-index:3}
.lottery-dialog .draw-motes i{width:3px;height:3px;background:#fffad5;box-shadow:0 0 3px #fffbe7,0 0 9px #cfe3a0,0 0 16px #c7d694}
#shop .magic-lottery.is-drawing .ritual-emblem{animation:seal-turn 9s linear infinite,ritual-line-light 2.4s ease-in-out infinite alternate}
.draw-results .draw-reward.gift{box-shadow:inset 0 0 0 1px #dfc78466,0 0 20px #dcc4842b}
@keyframes ritual-line-light{from{filter:brightness(1.1) drop-shadow(0 0 2px #fffbe7) drop-shadow(0 0 7px #c6eaa3) drop-shadow(0 0 16px #b9d7a170)}to{filter:brightness(1.38) drop-shadow(0 0 3px #fff8cd) drop-shadow(0 0 12px #c7efa4) drop-shadow(0 0 28px #a6cc7a9c)}}
@keyframes ritual-aura{from{opacity:.55;transform:scale(.94)}to{opacity:.95;transform:scale(1.06)}}

/* Night mode has a coherent green/teal palette with warm ivory accents. */
html[data-theme=dark]{--paper:#111f1b;--art-paper:#111f1b;--art-card:#1d322a;--art-edge:#536e5e;--muted:#b1c0ac;--scene-home-left:#111f1b;--scene-home-right:#1a2a21;--scene-about-left:#1b3026;--scene-about-right:#1c3a30;--scene-history-left:#192e27;--scene-history-right:#20392f;--scene-memories-left:#1c3028;--scene-memories-right:#29382d;--scene-mailbox-left:#1d312b;--scene-mailbox-right:#20373b;--scene-shop-left:#1c352b;--scene-shop-right:#234638}
html[data-theme=dark] #about :is(.profile-card,.fact-card,.profile-live-card,.story-card){background:linear-gradient(112deg,#243b2edb,#214033e6);border-color:#65857585}
html[data-theme=dark] #about .profile-countdown>div{border-color:#759b8685;background:linear-gradient(135deg,#2e4a3b,#284e3d);box-shadow:0 0 14px #0a24194d}
html[data-theme=dark] #memories .memory-art.image-art{background:transparent!important}
html[data-theme=dark] #memories .memory-card{background:#1f342b;border-color:#607c66;box-shadow:0 4px 15px #08170f52}
html[data-theme=dark] .lemon-leaf{fill:#405a43;stroke:#d3d9b8}
html[data-theme=dark] .lemon-outline{stroke:#b5a16e}
html[data-theme=dark] #memories .sync-panel{background:linear-gradient(110deg,#354e3e,#454b35);border-color:#798668}
html[data-theme=dark] #memories .yearring-panel{background:linear-gradient(110deg,#473d32,#333e30 48%,#3c4534);border-color:#86816b70}
html[data-theme=dark] #memories .yearring-panel::before{opacity:.8}
html[data-theme=dark] #mailbox .privacy-note{opacity:1;color:#adbda6}
html[data-theme=dark] #mailbox :is(.field-hint,.field-count){color:#b0c0aa}
html[data-theme=dark] #mailbox .compose-stamp{opacity:.9}
html[data-theme=dark] .hero-visual .portrait-foreground>g:first-child{fill:#c8b578;stroke:#f7f0d6}
html[data-theme=dark] .portrait-midground>g:nth-child(2){stroke:#90ad87}
html[data-theme=dark] .mid-stars{fill:#b3bd8c}
html[data-theme=dark] .lottery-dialog.is-conjuring{background:radial-gradient(ellipse at 50% 42%,#344a30 0%,#20362b 57%,#192d25 100%);border-color:#85976c;box-shadow:0 24px 90px #020e0ab3,0 0 40px #9ac58038,inset 0 0 32px #b9d68c12}
html[data-theme=dark] .lottery-dialog.is-conjuring #lottery-dialog-title{color:#e0e9c1}
html[data-theme=dark] .draw-ceremony>p{color:#c3d3ac}
html[data-theme=dark] .draw-seal-stage::before{background:radial-gradient(circle,#ddeeb173 0%,#acd88052 24%,#7ab38b33 46%,transparent 70%)}
html[data-theme=dark] .draw-seal-stage::after{opacity:.8}
html[data-theme=dark] .draw-results .draw-reward.gift{background:#303e2b;border-color:#a19463;box-shadow:inset 0 0 0 1px #c8b07138,0 0 18px #c3b8761f}
@media(prefers-reduced-motion:reduce){
  .hero-visual :is(.portrait-garden,.portrait-midground,.portrait-foreground){transform:none;transition:none;animation:none}
  .mid-stars,.lottery-dialog .draw-seal,.lottery-dialog .draw-halo,.draw-seal-stage::before,.draw-seal-stage::after,#shop .magic-lottery.is-drawing .ritual-emblem{animation:none}
  .lottery-dialog .draw-seal{filter:brightness(1.18) drop-shadow(0 0 8px #c6eaa3)}
}

/* v0.0.39: illustration placement follows its neighbouring content.
   Clover stem and horizon share a coordinate system; the gem follows NEXT LIVE. */
.hero-art{--horizon-width:max(100vw,1440px);--clover-width:clamp(205px,21.2vw,305px)}
.hero-art .hero-horizon{width:var(--horizon-width)}
.hero-art .hero-clover{
  width:var(--clover-width);top:auto;right:auto;bottom:40px;
  left:calc(50% - var(--horizon-width)*.16 - var(--clover-width)*.14 - 55px);
}
.hero .live-chip{position:relative}
.hero-live-art{position:absolute;left:-46px;top:calc(100% + 46px);width:285px;height:165px;pointer-events:none;user-select:none}
.hero-live-art .hero-gem{left:0;top:24px;bottom:auto;width:122px;height:132px;opacity:.8;
  clip-path:polygon(8% 15%,74% 4%,100% 61%,53% 100%,0 76%);
  background:linear-gradient(135deg,#dceadf 0%,#cee1d3 60%,#d7e7d6 100%)}
.hero-gem-halo,.hero-gem-light{position:absolute;display:block;border-radius:50%;pointer-events:none}
.hero-gem-halo{left:-6px;top:-10px;width:112px;height:112px;background:radial-gradient(circle,#ffffff4d 0 44%,#f1fff326 52%,transparent 72%)}
.hero-gem-light{background:#fffffbc9;box-shadow:0 0 14px #fffff82e}
.hero-gem-light-small{left:174px;top:96px;width:19px;height:19px;opacity:.82}
.hero-gem-light-large{left:236px;top:114px;width:36px;height:36px;opacity:.86}
.about-sprig-small{opacity:.6}
.about-leaf-d{transform:scaleX(-1) rotate(-12deg)}
.about-leaf-f{width:84px;right:-110px;top:-98px;opacity:.54;transform:scaleX(-1) rotate(-10deg)}
.about-leaf-g{width:60px;right:-108px;top:40px;opacity:.27;transform:rotate(-28deg)}
.about-leaf-h{width:66px;right:-94px;top:113px;opacity:.3;transform:rotate(82deg)}
#memories :is(.sync-panel,.yearring-panel)::after{content:none;display:none}

/* Satin mint-to-ivory buttons: highlights belong to the surface, not the text. */
#shop .lottery-actions{gap:16px}
#shop .lottery-actions .btn{
  min-height:80px;padding:15px 22px;gap:5px;border:1px solid #b2d8be;border-radius:28px;
  color:#2e5843;font-size:14px;font-weight:600;letter-spacing:.08em;
  background:radial-gradient(ellipse at 90% 100%,#fff9e3c9,transparent 62%),linear-gradient(112deg,#a3ddc7 0%,#91cdb3 38%,#c6e4ca 76%,#f6f2db 100%);
  box-shadow:0 5px 13px #4c93601c,0 1px 2px #46674a1f,inset 0 1px 2px #ffffffed,inset 0 -3px 6px #5c966b2e,inset 3px 0 10px #e0fff273;
  text-shadow:0 1px 0 #fffff866;
  transition:box-shadow .2s,transform .2s,border-color .2s;
}
#shop .lottery-actions .btn span{font-size:10px;letter-spacing:.05em;font-weight:400;opacity:.85}
#shop .lottery-actions .btn:hover:not(:disabled){
  background:radial-gradient(ellipse at 90% 100%,#fffbead9,transparent 62%),linear-gradient(112deg,#aee6d1,#9cd7bd 38%,#d3eacf 76%,#faf5df);
  border-color:#8dbb9b;transform:translateY(-2px);
  box-shadow:0 7px 17px #4c936029,0 1px 3px #46674a26,inset 0 1px 3px #fff,inset 0 -3px 6px #5c966b26;
}
#shop .lottery-actions .btn:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 4px #4c936017,inset 0 2px 5px #3c785e29,inset 0 -1px 2px #fff9}
#shop .lottery-actions .btn:focus-visible{outline:2px solid #3e785c;outline-offset:4px}
#shop .lottery-actions .btn:disabled{opacity:.6;transform:none;box-shadow:inset 0 1px 2px #fff9,inset 0 -2px 5px #5c966b1f}
html[data-theme=dark] .hero-live-art{opacity:.5}
html[data-theme=dark] #home .hero-live-art .hero-gem{opacity:.8;background:linear-gradient(135deg,#436d54,#365a46 60%,#526747)}
html[data-theme=dark] .hero-gem-halo{background:radial-gradient(circle,#b4d5b52b 0 44%,#b4d5b514 52%,transparent 72%)}
html[data-theme=dark] .hero-gem-light{background:#d4dfb67d;box-shadow:0 0 14px #c0d89d24}
html[data-theme=dark] .about-sprig-small{opacity:.7}
html[data-theme=dark] .about-leaf-f{opacity:.55}
html[data-theme=dark] :is(.about-leaf-g,.about-leaf-h){opacity:.38}
html[data-theme=dark] #shop .lottery-actions .btn{
  color:#193827;border-color:#8db697;text-shadow:0 1px 0 #ecf6d833;
  background:radial-gradient(ellipse at 90% 100%,#e5dfb68c,transparent 62%),linear-gradient(112deg,#91c5a8,#80b598 38%,#b6c496 76%,#d4d4af);
  box-shadow:0 5px 14px #06150d40,inset 0 1px 2px #ecf6d9b3,inset 0 -3px 6px #2d583b3b;
}
html[data-theme=dark] #shop .lottery-actions .btn:hover:not(:disabled){background:radial-gradient(ellipse at 90% 100%,#efe8c296,transparent 62%),linear-gradient(112deg,#a0d2b6,#90c3a5 38%,#c3cea6 76%,#e1dfbe);box-shadow:0 6px 18px #06150d59,inset 0 1px 3px #ecf6d9cc,inset 0 -3px 6px #2d583b30}
html[data-theme=dark] #shop .lottery-actions .btn:focus-visible{outline-color:#c0d8a7}
@media(max-width:1300px){
  .about-leaf-f{width:58px;right:-34px;top:-82px}
  .about-leaf-g{width:40px;right:-36px;top:42px}
  .about-leaf-h{width:44px;right:-32px;top:111px}
}
@media(min-width:601px) and (max-width:900px){.hero-live-art{left:-15px;top:calc(100% + 24px);transform:scale(.75);transform-origin:top left}}
@media(max-width:600px){
  .hero-art{--horizon-width:950px;--clover-width:clamp(106px,32vw,145px)}
  .hero-art .hero-clover{bottom:25px;left:calc(50% - var(--horizon-width)*.16 - var(--clover-width)*.14 - 22px)}
  .hero-live-art{left:6px;top:calc(100% + 16px);transform:scale(.58);transform-origin:top left}
  .about-leaf-f{width:32px;right:-12px;top:-57px}
  .about-leaf-g{width:24px;right:-12px;top:43px}
  .about-leaf-h{width:27px;right:-11px;top:91px}
  #shop .lottery-actions{gap:11px}
  #shop .lottery-actions .btn{min-height:72px;padding:13px 10px;border-radius:23px;font-size:12px;letter-spacing:.04em}
  #shop .lottery-actions .btn span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#shop .lottery-actions .btn{transition:none}}

/* v0.0.40: crisp responsive line and compositor-only parallax.
   hero-art.js owns the three transforms; no retargeted CSS transition competes. */
.hero-art .hero-horizon{width:100vw;height:72px;overflow:visible}
.hero-horizon path{fill:none;stroke:#b7d6ad;stroke-width:1.2;vector-effect:non-scaling-stroke}
.hero-visual :is(.portrait-garden,.portrait-midground,.portrait-foreground){transition:none;will-change:transform;backface-visibility:hidden}
html[data-theme=dark] .hero-horizon path{stroke:#718e68;stroke-opacity:.75}
@media(prefers-reduced-motion:reduce){.hero-visual :is(.portrait-garden,.portrait-midground,.portrait-foreground){will-change:auto}}
