/* ============================================================
   Under the Tree — design system + app shell
   ============================================================ */
:root{
  --bg:#060d1f; --surface:#0f1b33; --surface2:#172848; --surface3:#1f3359;
  --line:rgba(255,255,255,.10); --line2:rgba(255,255,255,.2);
  --text:#f5f0e4; --muted:#bccadf; --dim:#93a6c2;
  --gold:#e9c46a; --gold2:#c99a2e; --gold-ink:#2a1f05;
  --red:#d7263d; --red2:#a3162a; --green:#1f9d6b; --green2:#147150; --blue:#3b82f6;
  --r:18px; --r-sm:12px; --r-xs:8px;
  --font:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --display:"Fraunces",Georgia,"Times New Roman",serif;
  --script:"Playfair Display","Fraunces",Georgia,serif;
  --tap:44px;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg)}
body{font-family:var(--font);font-size:15px;line-height:1.45;color:var(--text);-webkit-font-smoothing:antialiased;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
input,textarea{user-select:text;-webkit-user-select:text;font:inherit;color:inherit}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-appearance:none}
a{color:inherit;text-decoration:none}
img{-webkit-user-drag:none;user-drag:none;display:block}
svg.ic{flex:none;display:block}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:8px}

/* ---------------- scene (static layers, no per-frame repaint) ---------------- */
#scene{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
#scene .sky{position:absolute;inset:0;background:linear-gradient(180deg,#030713 0%,#071330 30%,#0b2348 58%,#11375c 80%,#1b5072 100%)}
#stars{position:absolute;inset:0;width:100%;height:100%}
.tw{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;animation:tw 3.4s ease-in-out infinite;will-change:opacity}
@keyframes tw{0%,100%{opacity:.1}50%{opacity:1}}
.aur{position:absolute;border-radius:50%;opacity:.55;will-change:transform}
.aur.a{left:-10vw;top:4vh;width:74vw;height:30vh;background:radial-gradient(ellipse at center,rgba(70,255,180,.34),rgba(70,255,180,0) 66%);animation:aur1 28s ease-in-out infinite alternate}
.aur.b{left:26vw;top:13vh;width:70vw;height:26vh;background:radial-gradient(ellipse at center,rgba(90,190,255,.28),rgba(90,190,255,0) 66%);animation:aur2 36s ease-in-out infinite alternate}
.aur.c{left:4vw;top:0;width:54vw;height:22vh;background:radial-gradient(ellipse at center,rgba(190,120,255,.2),rgba(190,120,255,0) 66%);animation:aur3 24s ease-in-out infinite alternate}
@keyframes aur1{from{transform:translate3d(0,0,0) scale(1) skewX(-8deg)}to{transform:translate3d(9vw,3vh,0) scale(1.16,.84) skewX(10deg)}}
@keyframes aur2{from{transform:translate3d(0,0,0) scale(1.1,.9) skewX(12deg)}to{transform:translate3d(-12vw,-2vh,0) scale(.92,1.14) skewX(-9deg)}}
@keyframes aur3{from{transform:translate3d(0,0,0) scale(.9,1.1)}to{transform:translate3d(16vw,4vh,0) scale(1.2,.8) skewX(14deg)}}
.moon{position:absolute;right:5vw;top:9vh;width:clamp(72px,11vw,160px);aspect-ratio:1;border-radius:50%;will-change:transform;
  background:radial-gradient(circle at 38% 34%,#fffef6 0,#f8eecb 46%,#e6d4a4 74%,#cfb985 100%);
  box-shadow:0 0 0 12px rgba(255,236,180,.05),0 0 90px 26px rgba(255,232,170,.2),inset -14px -10px 30px rgba(120,100,60,.3)}
.moon i{position:absolute;border-radius:50%;background:rgba(150,130,90,.26)}
.shoot{position:absolute;width:160px;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.95));opacity:0}
.shoot.go{animation:shoot 1.1s ease-out}
@keyframes shoot{0%{opacity:0;transform:translate(0,0) rotate(18deg)}12%{opacity:1}100%{opacity:0;transform:translate(360px,117px) rotate(18deg)}}
.land{position:absolute;left:-3%;top:-2%;width:106%;height:104%;will-change:transform}
#back{position:fixed;inset:0;z-index:1;pointer-events:none}
#scrim{position:fixed;inset:0;z-index:2;background:#040a18;opacity:0;transition:opacity .4s;pointer-events:none}
body:not([data-page="home"]) #scrim{opacity:.8}
#santa{position:fixed;left:0;top:0;z-index:20;width:clamp(190px,26vw,420px);display:none;cursor:pointer;will-change:transform}
#santa svg{display:block;width:100%;height:auto;overflow:visible}
.bob{animation:bob .46s ease-in-out infinite alternate}
@keyframes bob{from{transform:translateY(-1.6px)}to{transform:translateY(1.6px)}}
.la{animation:legA .46s steps(1) infinite}.lb{animation:legB .46s steps(1) infinite}
@keyframes legA{0%,49.9%{opacity:1}50%,100%{opacity:0}}
@keyframes legB{0%,49.9%{opacity:0}50%,100%{opacity:1}}
#front{position:fixed;inset:0;z-index:90;pointer-events:none}
body.low .aur{animation-play-state:paused}
body.low .tw{animation:none;opacity:.7}

/* ---------------- shell ---------------- */
#shell{position:fixed;inset:0;z-index:10;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;
  grid-template-areas:"top" "page" "player" "tabs";
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#top{grid-area:top;display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:0 14px}
.wordmark{font-family:var(--display);font-weight:600;font-size:19px;letter-spacing:.01em;display:flex;align-items:center;gap:8px;color:#fff}
.wordmark svg{color:var(--gold)}
.me-btn{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px 0 4px;border-radius:999px;background:rgba(10,20,42,.82);border:1px solid var(--line);font-weight:500;font-size:14px}
.me-btn:active{transform:scale(.97)}
#page{grid-area:page;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0 14px;container-type:size}
#page.enter>*{animation:rise .32s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

#player{grid-area:player;display:flex;align-items:center;gap:10px;height:54px;margin:6px 10px 0;padding:0 8px 0 8px;border-radius:14px;
  background:rgba(12,22,44,.94);border:1px solid var(--line);position:relative;min-width:0}
.p-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;height:100%;text-align:left}
.p-art{width:38px;height:38px;border-radius:9px;flex:none;display:grid;place-items:center;color:var(--gold-ink);
  background:linear-gradient(135deg,#f3d98b,#c99a2e)}
.p-meta{min-width:0;display:block}
.p-title,.p-sub{display:block}
.p-title{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-sub{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff}
.p-btn.main{background:var(--gold);color:var(--gold-ink)}
.p-btn:active{transform:scale(.92)}
.p-bar{position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px;background:rgba(255,255,255,.1);overflow:hidden}
.p-bar b{display:block;height:100%;width:0;background:var(--gold)}

#tabs{grid-area:tabs;display:flex;justify-content:space-around;align-items:stretch;height:60px;margin-top:6px;
  background:rgba(8,16,34,.96);border-top:1px solid var(--line)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:500;color:var(--dim);position:relative}
.tab.on{color:var(--gold)}
.tab.on::before{content:"";position:absolute;top:0;left:50%;width:28px;height:3px;border-radius:0 0 3px 3px;background:var(--gold);transform:translateX(-50%)}
.tab:active{transform:scale(.95)}

/* landscape phones, tablets, desktop: tabs become a side rail */
@media (orientation:landscape) and (min-width:560px){
  #shell{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"tabs top" "tabs page"}
  #tabs{flex-direction:column;justify-content:center;gap:6px;height:auto;width:76px;margin:0;border-top:0;border-right:1px solid var(--line)}
  .tab{flex:none;height:62px}
  .tab.on::before{top:50%;left:0;width:3px;height:28px;border-radius:0 3px 3px 0;transform:translateY(-50%)}
  #player{grid-area:top;justify-self:end;align-self:center;margin:0 132px 0 0;height:40px;width:min(300px,34vw);border-radius:999px;padding:0 4px 0 4px}
  .p-art{width:30px;height:30px;border-radius:50%}
  .p-btn{width:32px;height:32px}
  .p-sub{display:none}
  #page{padding:0 18px 12px}
}
@media (orientation:landscape) and (min-width:560px) and (max-height:480px){
  #top{height:44px}
  #tabs{width:62px}
  .tab{height:52px;font-size:10px}
  .wordmark{font-size:16px}
  #player{height:36px;margin-right:118px}
  .me-btn{height:34px}
  #page{padding:0 14px 8px}
}

/* ---------------- components ---------------- */
.h1{font-family:var(--display);font-weight:600;font-size:clamp(22px,5cqh + 8px,34px);line-height:1.08;color:#fff}
.h2{font-family:var(--display);font-weight:600;font-size:19px;line-height:1.15;color:#fff}
.muted{color:var(--muted)} .small{font-size:13px} .center{text-align:center}
.row{display:flex;align-items:center} .col{display:flex;flex-direction:column}
.gap{gap:10px} .gap-s{gap:6px} .grow{flex:1;min-width:0;min-height:0} .end{justify-content:flex-end} .between{justify-content:space-between} .wrap{flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:0 18px;border-radius:12px;font-weight:600;font-size:15px;
  background:var(--surface2);border:1px solid var(--line2);color:#fff;transition:transform .1s,filter .15s;white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--gold);border-color:transparent;color:var(--gold-ink)}
.btn.red{background:var(--red);border-color:transparent}
.btn.green{background:var(--green);border-color:transparent}
.btn.danger{background:transparent;border-color:rgba(215,38,61,.6);color:#ff8a98}
.btn.ghost{background:transparent}
.btn.sm{min-height:36px;padding:0 13px;font-size:13.5px;border-radius:10px}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;pointer-events:none}
@media(hover:hover){.btn:hover{filter:brightness(1.1)}}
.icon-btn{width:var(--tap);height:var(--tap);border-radius:50%;display:grid;place-items:center;flex:none;color:#fff}
.icon-btn.solid{background:rgba(10,20,42,.82);border:1px solid var(--line)}
.icon-btn:active{transform:scale(.92)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--surface2);border:1px solid var(--line);white-space:nowrap}
.chip.gold{background:var(--gold);color:var(--gold-ink);border-color:transparent}
.chip.red{background:var(--red);color:#fff;border-color:transparent}
.chip.green{background:var(--green);color:#fff;border-color:transparent}
.chip svg{width:14px;height:14px}

.avatar{width:var(--size);height:var(--size);border-radius:50%;display:inline-grid;place-items:center;flex:none;
  background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.9) 0,rgba(255,255,255,.35) 7%,rgba(255,255,255,0) 22%),radial-gradient(circle at 38% 32%,var(--c1),var(--c2) 58%,var(--c3));
  box-shadow:inset -3px -4px 8px rgba(0,0,0,.35)}
.avatar b{font-family:var(--display);font-weight:600;font-size:calc(var(--size)*.44);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);line-height:1}

.field{display:block;margin-bottom:14px}
.field>span,.label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}
.input{width:100%;min-height:46px;padding:11px 13px;border-radius:12px;background:#0a1429;border:1px solid var(--line2);font-size:16px;color:#fff}
textarea.input{min-height:96px;resize:none;line-height:1.45}
.input::placeholder{color:var(--dim)}
.input:focus{outline:2px solid var(--gold);outline-offset:0;border-color:transparent}
.switch{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:8px 0;cursor:pointer}
.switch .s-text b{display:block;font-weight:600}.switch .s-text small{color:var(--muted);font-size:12.5px}
.switch input{appearance:none;-webkit-appearance:none;width:48px;height:28px;border-radius:999px;background:#2a3b5e;position:relative;flex:none;transition:background .2s;cursor:pointer}
.switch input::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s}
.switch input:checked{background:var(--gold)}
.switch input:checked::after{transform:translateX(20px)}
.divider{height:1px;background:var(--line);margin:8px 0}
.empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--muted);padding:20px}
.empty svg{color:var(--gold);opacity:.9}
.empty p{max-width:34ch}

/* sheets */
#sheets{position:fixed;inset:0;z-index:60;pointer-events:none}
.sheet-back{position:absolute;inset:0;background:rgba(2,6,16,0);display:flex;align-items:flex-end;justify-content:center;pointer-events:auto;transition:background .22s}
.sheet-back.in{background:rgba(2,6,16,.66)}
.sheet-back.out{background:rgba(2,6,16,0)}
.sheet{width:100%;max-width:560px;max-height:calc(100% - 28px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line2);border-bottom:0;
  border-radius:22px 22px 0 0;transform:translateY(102%);transition:transform .26s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom)}
.sheet.wide{max-width:760px}
.sheet-back.in .sheet{transform:none}
.sheet-back.out .sheet{transform:translateY(102%)}
.sheet-head{touch-action:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 10px 6px 20px;flex:none}
.sheet-head h2{font-family:var(--display);font-weight:600;font-size:21px;line-height:1.15;color:#fff}
.sheet-body{padding:6px 20px 20px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0}
.sheet.confirm .sheet-head{padding-bottom:14px}
@media (min-width:700px) and (min-height:520px){
  .sheet-back{align-items:center}
  .sheet{border-radius:22px;border-bottom:1px solid var(--line2);transform:translateY(16px) scale(.98);opacity:0;transition:transform .2s,opacity .2s}
  .sheet-back.in .sheet{opacity:1}
  .sheet-back.out .sheet{transform:translateY(16px) scale(.98);opacity:0}
}
.who-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.who-btn{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border-radius:16px;background:var(--surface2);border:1px solid var(--line);font-weight:600}
.who-btn:active{transform:scale(.96)}
@media (orientation:landscape) and (max-height:480px){.who-grid{grid-template-columns:repeat(6,1fr)}.who-btn .avatar{--size:44px!important}}

#toasts{position:fixed;left:0;right:0;top:calc(env(safe-area-inset-top) + 58px);z-index:95;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;padding:0 16px}
.toast{background:#fff;color:#111a2e;border-radius:999px;padding:9px 18px;font-size:14px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.45);animation:rise .25s ease both;transition:opacity .4s,transform .4s;text-align:center}
.toast.out{opacity:0;transform:translateY(-8px)}

/* ---------------- home ---------------- */
.page-home{justify-content:space-between}
.count{flex:none;text-align:center;padding-top:1cqh;text-shadow:0 2px 14px rgba(4,9,22,.85),0 0 2px rgba(4,9,22,.6)}
.count-num{font-family:var(--display);font-weight:600;font-size:min(19cqh,30cqw,150px);line-height:.9;color:#fff;font-variant-numeric:tabular-nums lining-nums;display:block}
.count-unit{font-size:clamp(13px,2.6cqh,18px);font-weight:500;color:#e6ecf6;display:block;margin-top:.6cqh}
.count-sub{display:inline-flex;gap:14px;margin-top:1cqh;font-size:clamp(12px,2.3cqh,15px);color:var(--muted);font-variant-numeric:tabular-nums}
.count-sub b{color:#fff;font-weight:600}
.count.merry .count-num{font-size:min(11cqh,13cqw,90px);line-height:1}
.tree-area{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:space-evenly}
.g-row{position:relative}
.garland{display:block;width:100%;height:auto}
.g-bulbs{position:absolute;left:0;top:0;width:100%;pointer-events:none}
.gb{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--c);box-shadow:0 0 10px 3px var(--c);animation:gb 2.6s ease-in-out infinite;will-change:opacity}
@keyframes gb{0%,100%{opacity:1}50%{opacity:.3}}
.orns{display:flex;justify-content:space-around;align-items:flex-start;position:relative}
.orn{--size:min(24cqw,17cqh);display:block;position:relative}
.hang{display:flex;flex-direction:column;align-items:center;transform-origin:50% 0;animation:sway var(--dur,5s) ease-in-out var(--del,0s) infinite alternate;will-change:transform}
@keyframes sway{from{transform:rotate(-2.2deg)}to{transform:rotate(2.2deg)}}
.orn:active .ball{transform:scale(.96)}
.thread{width:1.5px;height:var(--len,20px);background:linear-gradient(var(--gold2),var(--gold))}
.cap{width:calc(var(--size)*.2);height:calc(var(--size)*.11);border-radius:3px 3px 2px 2px;position:relative;margin-bottom:-2px;z-index:1;
  background:linear-gradient(90deg,#7c5d1c,#f7e3a1 42%,#c79a3c 66%,#6a4f17)}
.cap::before{content:"";position:absolute;left:50%;top:calc(var(--size)*-.07);width:calc(var(--size)*.08);height:calc(var(--size)*.08);border:1.5px solid var(--gold);border-radius:50%;transform:translateX(-50%)}
.ball{width:var(--size);height:var(--size);border-radius:50%;position:relative;display:grid;place-items:center;transition:transform .12s;
  background:
    radial-gradient(circle at 30% 26%,rgba(255,255,255,.95) 0,rgba(255,255,255,.5) 5%,rgba(255,255,255,0) 20%),
    radial-gradient(circle at 72% 80%,rgba(255,255,255,.18) 0,rgba(255,255,255,0) 34%),
    radial-gradient(circle at 38% 32%,var(--c1) 0,var(--c2) 56%,var(--c3) 100%);
  box-shadow:inset calc(var(--size)*-.08) calc(var(--size)*-.1) calc(var(--size)*.22) rgba(0,0,0,.42),0 calc(var(--size)*.1) calc(var(--size)*.24) rgba(0,0,0,.45)}
.ball::before,.ball::after{content:"";position:absolute;border-radius:50%;border-bottom:1.4px solid rgba(255,238,180,.6)}
.ball::before{left:7%;right:7%;top:10%;height:28%}
.ball::after{left:2%;right:2%;top:44%;height:28%}
.bname{font-family:var(--script);font-size:calc(var(--size)*.19);color:#fffdf2;line-height:1;position:relative;z-index:1;text-shadow:0 2px 5px rgba(0,0,0,.55)}
.orn.me .ball{box-shadow:inset calc(var(--size)*-.08) calc(var(--size)*-.1) calc(var(--size)*.22) rgba(0,0,0,.42),0 0 0 2.5px var(--gold),0 calc(var(--size)*.1) calc(var(--size)*.24) rgba(0,0,0,.45)}
.olabel{margin-top:max(5px,1cqh);font-size:clamp(10.5px,2cqh,12.5px);font-weight:600;color:#e9f0fb;background:rgba(6,14,30,.8);border-radius:999px;padding:2px 9px;white-space:nowrap}
.orn.me .olabel{background:var(--gold);color:var(--gold-ink)}
@media (orientation:landscape) and (min-width:560px){
  .page-home{flex-direction:column}
  .count{display:flex;align-items:baseline;justify-content:center;gap:14px;flex-wrap:wrap;padding-top:0}
  .count-num{font-size:min(22cqh,9cqw,120px);display:inline}
  .count-unit{display:inline;margin:0;font-size:clamp(14px,4cqh,22px)}
  .count-sub{margin-top:0}
  .orn{--size:min(12.4cqw,36cqh,170px)}
}

/* ---------------- wishlists ---------------- */
.phead{flex:none;display:flex;align-items:center;gap:10px;padding:2px 0 10px;min-height:52px}
.phead .ttl{min-width:0;flex:1}
.phead .ttl .h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phead .ttl p{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reel{flex:1;min-height:0;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  margin:0 -14px;padding:0 14px;scroll-padding:0 14px}
.reel::-webkit-scrollbar{display:none}
.wcard{flex:0 0 min(78cqw,340px);height:100%;scroll-snap-align:start;display:flex;flex-direction:column;overflow:hidden;position:relative;text-align:left;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.wcard:active{transform:scale(.99)}
.wcard.is-top{border-color:rgba(233,196,106,.7)}
.wpic{flex:1 1 0;min-height:0;position:relative;overflow:hidden;background:linear-gradient(160deg,var(--c2),var(--c3));display:grid;place-items:center;color:rgba(255,255,255,.92)}
.wpic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.wpic .ph{width:38%;max-width:96px;height:auto;aspect-ratio:1;opacity:.9}
.wbadges{position:absolute;left:10px;top:10px;right:10px;display:flex;gap:6px;flex-wrap:wrap;z-index:2}
.wcount{position:absolute;right:10px;bottom:10px;z-index:2;font-size:12px;font-weight:600;background:rgba(0,0,0,.6);border-radius:999px;padding:2px 9px;display:flex;align-items:center;gap:5px}
.wtaken{position:absolute;inset:0;z-index:3;background:rgba(6,14,30,.72);display:grid;place-items:center}
.wtaken span{display:flex;align-items:center;gap:8px;background:var(--green);color:#fff;font-weight:600;border-radius:999px;padding:8px 16px}
.wbody{flex:none;padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.wtitle{font-family:var(--display);font-weight:600;font-size:19px;line-height:1.15;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wprice{font-weight:600;color:var(--gold);font-size:15px}
.wwhy{font-size:13.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wacts{display:flex;gap:8px;margin-top:4px}
.wacts .btn{flex:1}
.addcard{align-items:center;justify-content:center;gap:10px;border-style:dashed;border-color:rgba(233,196,106,.55);background:rgba(15,27,51,.7);color:var(--gold);font-weight:600}
.dots{flex:none;display:flex;justify-content:center;gap:6px;height:22px;align-items:center}
.dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.28);transition:all .2s}
.dots i.on{width:18px;background:var(--gold)}
@container (max-height:340px){.wcard{flex-direction:row}.wpic{flex:0 0 40%}.wbody{flex:1;min-width:0;justify-content:center;padding:10px 14px}.wtitle{font-size:17px}.wacts .btn{min-height:36px;font-size:13.5px}}
@media (orientation:landscape) and (min-width:560px){
  .wcard{flex-basis:min(calc((100cqw - 24px)/3),360px)}
  .reel{margin:0;padding:0;scroll-padding:0}
}
@media (orientation:landscape) and (min-width:560px) and (max-width:900px){.wcard{flex-basis:calc((100cqw - 12px)/2)}}

/* wish detail */
.gal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:16px;background:#0a1429;aspect-ratio:4/3;max-height:42vh;width:100%}
.gal::-webkit-scrollbar{display:none}
.gal>*{flex:0 0 100%;scroll-snap-align:center;position:relative;display:grid;place-items:center}
.gal img{width:100%;height:100%;object-fit:contain}
.gal .ph{width:30%;color:rgba(255,255,255,.85)}
.d-title{font-family:var(--display);font-weight:600;font-size:25px;line-height:1.12;color:#fff;margin-top:14px}
.d-price{font-weight:600;color:var(--gold);font-size:17px;margin-top:4px}
.d-sec{margin-top:18px}
.d-sec h3{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:8px}
.why{list-style:none;display:flex;flex-direction:column;gap:8px}
.why li{display:flex;gap:10px;align-items:flex-start;line-height:1.4}
.why svg{color:var(--green);margin-top:2px;width:18px;height:18px}
.links{display:flex;flex-direction:column;gap:8px}
.backup{padding:14px;border-radius:14px;background:var(--surface2);border:1px solid var(--line)}
.backup b{display:block;font-family:var(--display);font-size:18px;color:#fff}
.d-note{color:#dfe6f2;line-height:1.5;white-space:pre-wrap}
.sticky-acts{position:sticky;bottom:-20px;margin:18px -20px -20px;padding:12px 20px 16px;background:linear-gradient(rgba(15,27,51,0),var(--surface) 22%);display:flex;gap:8px}
.sticky-acts .btn{flex:1}

/* wish form */
.drop{border:1.5px dashed var(--line2);border-radius:14px;padding:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;transition:border-color .15s,background .15s}
.drop.over{border-color:var(--gold);background:rgba(233,196,106,.08)}
.thumb{width:74px;height:74px;border-radius:10px;overflow:hidden;position:relative;background:#0a1429;flex:none}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb button{position:absolute;right:3px;top:3px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.72);display:grid;place-items:center;color:#fff}
.thumb button svg{width:14px;height:14px}
.addphoto{width:74px;height:74px;border-radius:10px;border:1px solid var(--line2);background:var(--surface2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:600;color:var(--gold);flex:none}
.drop-hint{font-size:12.5px;color:var(--muted);flex:1;min-width:120px}
.linkrow{display:flex;gap:8px;margin-bottom:8px}
.linkrow .input{flex:1}
.iconpick{display:flex;gap:6px;flex-wrap:wrap}
.iconpick button{width:42px;height:42px;border-radius:10px;background:var(--surface2);border:1px solid var(--line);display:grid;place-items:center;color:#cfd9ea}
.iconpick button.on{background:var(--gold);color:var(--gold-ink);border-color:transparent}
.fold{border:1px solid var(--line);border-radius:14px;padding:0 14px;margin-bottom:14px}
.fold>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:50px;cursor:pointer;font-weight:600}
.fold>summary::-webkit-details-marker{display:none}
.fold[open]>summary{border-bottom:1px solid var(--line);margin-bottom:14px}
.fold>summary svg{transition:transform .2s}
.fold[open]>summary svg{transform:rotate(90deg)}

/* music sheet */
.tracks{display:flex;flex-direction:column}
.track{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 4px;border-bottom:1px solid var(--line);text-align:left;width:100%}
.track .n{width:26px;text-align:center;color:var(--dim);font-variant-numeric:tabular-nums;font-size:13px;flex:none;display:grid;place-items:center}
.track .t{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track.on .t,.track.on .n{color:var(--gold)}
.track:active{background:rgba(255,255,255,.04)}
.eq{display:flex;gap:2px;align-items:flex-end;height:14px}
.eq i{width:3px;height:14px;border-radius:2px;background:var(--gold);transform-origin:bottom;transform:scaleY(.3)}
.playing .eq i{animation:eq .8s ease-in-out infinite alternate}
.playing .eq i:nth-child(2){animation-delay:-.3s}.playing .eq i:nth-child(3){animation-delay:-.55s}
@keyframes eq{from{transform:scaleY(.25)}to{transform:scaleY(1)}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
