/* Runmate motion & polish layer. Transform/opacity only; gated for hover devices and reduced motion. */
:root{--spring:cubic-bezier(.22,1,.36,1);--snap:cubic-bezier(.2,0,0,1)}

/* Headings: one serif on every platform (Windows otherwise falls back to PMingLiU). */
.brand,h1,.hero h1,.section-head h2,.how-intro h2,.order-guide h2,.contact-panel h2,.how-step h3,.detail-copy h1,.guide-num{font-family:"Noto Serif TC",Georgia,"PMingLiU",serif}
.hero h1,.how-intro h2,.order-guide h2,.section-head h2,.contact-panel h2,.detail-copy h1{font-weight:500}
.guide-num{font-style:normal;font-weight:500}

/* Login status: lives under the hero copy instead of colliding with the floating header. */
.auth-status{width:fit-content;max-width:90%;margin:18px auto 6px;padding:9px 18px;border-radius:30px;background:#eee5f3;color:#49345f;font-size:12px;text-align:center;line-height:1.7}
.hero+.auth-status{margin:-10px auto 26px}
.brand{white-space:nowrap}
@media(max-width:750px){body:has(.hero:not([hidden])) header{flex-wrap:nowrap}}

/* Buttons: quick lift on hover, snap on press. */
.primary,.secondary,.add,.bag,.tabs button,.levels button,.discord-contact,.mobile-cart,.quick-offer,.detail-levels a,button.clean,.close,.remove,.back-link{transition:transform .18s var(--spring),background-color .18s var(--snap),color .18s var(--snap),border-color .18s var(--snap),box-shadow .22s var(--snap),opacity .18s var(--snap)}
.primary:active,.secondary:active,.add:active,.bag:active,.tabs button:active,.levels button:active,.discord-contact:active,.mobile-cart:active,.quick-offer:active,.detail-levels a:active{transform:scale(.97);transition-duration:.08s}
.add span:last-child{display:inline-block;transition:transform .25s var(--spring)}
@media(hover:hover) and (pointer:fine){
.primary:hover,.discord-contact:hover,#services .card .add:hover{transform:translateY(-1px);box-shadow:0 8px 20px #49345f2e}
.bag:hover,.secondary:hover{background:#eee5f3}
.tabs button:not(.active):hover{background:#ffffff90}
.levels button:not([aria-pressed="true"]):hover{border-color:#b79acb}
.add:hover span:last-child{transform:rotate(90deg)}
.detail-levels a:not([aria-current]):hover{border-color:var(--ink)}
button.clean:hover,.close:hover,.remove:hover{opacity:.65}
.back-link:hover{transform:translateX(-3px)}
}

/* Cart count pop when it changes. */
#cartCount{display:inline-block}
#cartCount.pop{animation:pop .36s var(--spring)}
@keyframes pop{0%{transform:scale(1)}35%{transform:scale(1.45)}100%{transform:scale(1)}}

/* Toast slides up and is interruptible. */
.toast{transition:opacity .22s var(--snap),transform .32s var(--spring)}
.toast.hidden{display:block;opacity:0;transform:translate(-50%,14px);pointer-events:none}

/* Dialogs settle in from slightly below. */
dialog[open]{animation:dialogIn .26s var(--spring)}
dialog[open]::backdrop{animation:fadeIn .26s var(--snap)}
@keyframes dialogIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* Service cards. */
.card{transition:transform .28s var(--spring),box-shadow .28s var(--snap)}
.card .service-image{transition:transform .55s var(--spring)}
@media(hover:hover) and (pointer:fine){.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px #49345f14}.card:hover .service-image{transform:scale(1.045)}}

/* Hero on wide screens: the artwork is capped at 1350px, so extend its sky across the full width
   in the image's own edge colours; the masked edges then dissolve into matching colour, not paper. */
.hero-characters{max-width:none;aspect-ratio:auto;height:auto;background:linear-gradient(180deg,#d7c1ea 0%,#dfc8e8 25%,#e2d2e9 40%,#eee3e8 55%,#f6edea 70%,#f8f0e8 85%,var(--paper) 100%)}
.character-photo{position:relative;max-width:1350px;margin:0 auto;height:auto;aspect-ratio:1843/853}
.character-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 78%,var(--paper));pointer-events:none}
.hero:after{display:none}
@media(max-width:750px){.hero-characters{aspect-ratio:auto;height:auto}}

/* Hero: the starting-line sweep used by the entrance timeline. */
.motion-on .hero-characters{transition:none}
.hero-sweep{position:absolute;top:0;bottom:0;left:0;width:34%;z-index:2;background:linear-gradient(100deg,transparent,#ffffffb8 50%,transparent);mix-blend-mode:soft-light;pointer-events:none;opacity:0;z-index:2}
.character-photo{overflow:hidden}

/* Ordering steps: vertical timeline whose line fills and dots light up as you scroll. */
.how{grid-template-columns:.9fr 1.4fr;gap:40px 60px;align-items:start;padding:60px 0 70px}
.how-intro{position:sticky;top:40px}
.how-intro h2{font-size:34px;line-height:1.3}
.how-timeline{position:relative;padding-left:46px}
.how-line{position:absolute;left:9px;top:10px;bottom:10px;width:2px;border-radius:2px;background:#e4d8ec;overflow:hidden}
.how-line i{position:absolute;inset:0;transform:scaleY(0);transform-origin:top;background:linear-gradient(#b79acb,#76508d 45%,#49345f);box-shadow:0 0 16px #9965bb99}
.how-step{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:26px;align-items:baseline;padding:30px 0;border-bottom:1px solid var(--line)}
.how-step:last-child{border-bottom:0}
.how-step::before{content:'';position:absolute;left:-46px;top:38px;width:16px;height:16px;border-radius:50%;background:var(--paper);border:2px solid #d6c6e2;transition:background-color .4s,border-color .4s,box-shadow .4s}
.how-step.on::before{background:#76508d;border-color:#b79acb;box-shadow:0 0 18px #9965bb99}
.how-step small{grid-row:1;min-width:56px;font-family:"JetBrains Mono",Menlo,monospace;font-size:12px;letter-spacing:.08em;color:#9a7fb0}
.how-step h3{grid-column:2;font-family:Georgia,"PMingLiU",serif;font-weight:400;font-size:clamp(24px,2.6vw,34px);line-height:1.2;margin:0 0 10px}
.how-step p{grid-column:2;font-size:14px;max-width:48ch;line-height:1.75;margin:0}
.motion-static .how-line i{transform:none}.motion-static .how-step::before{background:#76508d;border-color:#b79acb}
@media(max-width:850px){.how{grid-template-columns:1fr;gap:10px;padding:44px 0 50px}.how-intro{position:static}.how-intro h2{font-size:28px}.how-step{grid-template-columns:1fr;row-gap:6px}.how-step h3,.how-step p{grid-column:1}}

/* FAQ: numbered 01–04 with a rotating marker. */
.order-guide details{padding:6px 0}
.order-guide summary{position:relative;display:flex;align-items:center;gap:14px;padding:14px 0 14px 64px;font-size:15px;list-style:none}
.order-guide summary::-webkit-details-marker{display:none}
.guide-num{position:absolute;left:0;top:50%;transform:translateY(-50%);width:48px;font-family:Georgia,serif;font-style:italic;font-size:28px;line-height:1;color:#b79acb}
.guide-marker{margin-left:auto;flex-shrink:0;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;color:var(--green);transition:transform .3s var(--spring),background-color .2s var(--snap)}
.order-guide details[open] .guide-marker{transform:rotate(45deg);background:#eee5f3}
.order-guide details>p{margin:0 0 14px;padding-left:64px}
.order-guide details[open]>p{animation:faqIn .28s var(--spring)}
@keyframes faqIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:750px){.order-guide summary{padding-left:44px;font-size:14px}.guide-num{font-size:22px;width:36px}.order-guide details>p{padding-left:44px}}

.privacy p{font-size:13px;margin:0 0 14px;line-height:1.8}.privacy strong{color:var(--ink);font-weight:500}

/* Discord login prompt. */
#loginPrompt{max-width:440px;padding:0;overflow:hidden;border-radius:16px}
#loginPrompt .lp-art{position:relative;padding:28px 28px 22px;color:#fff;background:linear-gradient(135deg,#684484,#bd83d9)}
#loginPrompt .lp-art .eyebrow{color:#ffffffb0}
#loginPrompt .lp-art svg{position:absolute;right:24px;top:22px;width:44px;height:44px;opacity:.9}
#loginPrompt h2{margin:8px 0 0;font-size:22px;font-weight:500;color:#fff}
#loginPrompt .lp-body{padding:22px 28px 26px}
#loginPrompt .lp-body p{margin:0;font-size:13px}
#loginPrompt .lp-body .hint{margin-top:14px}
#loginPrompt .primary{margin-top:18px}
#loginPrompt .secondary{margin-top:10px}

@media(prefers-reduced-motion:reduce){*{animation:none!important}.toast.hidden{transform:translate(-50%,0)}}


/* Hero photo corner accents: a few soft clouds, a heart and sparkles tucked into the plain background at the very left/right edges of the character artwork itself (the ~5% strip where no character stands), fading toward the characters so there is no visible seam. A faint pastel rainbow corner sits top-right. */
.character-photo{position:relative}
.character-photo:before,.character-photo:after{content:'';position:absolute;top:0;bottom:0;width:4.9%;z-index:2;pointer-events:none;opacity:.85;background-repeat:no-repeat;background-size:100% 100%}
.character-photo:before{left:0;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 18%,#000 55%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,#000 18%,#000 55%,transparent 100%);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 853'%3E%3Cdefs%3E%3Cfilter id='s' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='2.6'/%3E%3C/filter%3E%3Cfilter id='b' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23fff' filter='url(%23s)'%3E%3Cg opacity='.6'%3E%3Cellipse cx='30' cy='210' rx='26' ry='10'/%3E%3Cellipse cx='16' cy='204' rx='14' ry='8'/%3E%3Cellipse cx='42' cy='203' rx='13' ry='7'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Cellipse cx='22' cy='430' rx='24' ry='9'/%3E%3Cellipse cx='10' cy='425' rx='13' ry='7'/%3E%3Cellipse cx='34' cy='424' rx='12' ry='6'/%3E%3C/g%3E%3Cg opacity='.6'%3E%3Cellipse cx='34' cy='620' rx='22' ry='8'/%3E%3Cellipse cx='22' cy='616' rx='12' ry='6'/%3E%3C/g%3E%3C/g%3E%3Cg filter='url(%23b)'%3E%3Cpath transform='translate(52 320) scale(.62)' d='M0-5C-2-11-11-10-11-3c0 5 5 9 11 14 6-5 11-9 11-14 0-7-9-8-11-3z' fill='%23f3cbe6' opacity='.65'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.85'%3E%3Cpath d='M44 118l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M20 520l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Ccircle cx='58' cy='280' r='1.4'/%3E%3Ccircle cx='16' cy='360' r='1.6'/%3E%3Ccircle cx='46' cy='700' r='1.4'/%3E%3C/g%3E%3C/svg%3E")}
.character-photo:after{right:0;-webkit-mask-image:linear-gradient(to left,transparent 0%,#000 18%,#000 55%,transparent 100%);mask-image:linear-gradient(to left,transparent 0%,#000 18%,#000 55%,transparent 100%);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 853'%3E%3Cdefs%3E%3Cfilter id='s' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='2.6'/%3E%3C/filter%3E%3Cfilter id='b' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='90' height='150' fill='%23fff'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='none' stroke-width='6' stroke-linecap='round' opacity='.4' filter='url(%23b)' mask='url(%23m)'%3E%3Cpath d='M90 92a92 92 0 0 0-92-92' stroke='%23f4b9cc'/%3E%3Cpath d='M90 100a100 100 0 0 0-100-100' stroke='%23f8d4b6'/%3E%3Cpath d='M90 108a108 108 0 0 0-108-108' stroke='%23f7ecbd'/%3E%3Cpath d='M90 116a116 116 0 0 0-116-116' stroke='%23c4e6d2'/%3E%3Cpath d='M90 124a124 124 0 0 0-124-124' stroke='%23bcd8f2'/%3E%3C/g%3E%3Cg fill='%23fff' filter='url(%23s)'%3E%3Cg opacity='.6'%3E%3Cellipse cx='60' cy='250' rx='26' ry='10'/%3E%3Cellipse cx='74' cy='244' rx='14' ry='8'/%3E%3Cellipse cx='48' cy='243' rx='13' ry='7'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Cellipse cx='68' cy='460' rx='24' ry='9'/%3E%3Cellipse cx='80' cy='455' rx='13' ry='7'/%3E%3Cellipse cx='56' cy='454' rx='12' ry='6'/%3E%3C/g%3E%3Cg opacity='.6'%3E%3Cellipse cx='56' cy='640' rx='22' ry='8'/%3E%3Cellipse cx='68' cy='636' rx='12' ry='6'/%3E%3C/g%3E%3C/g%3E%3Cg filter='url(%23b)'%3E%3Cpath transform='translate(38 360) scale(.62)' d='M0-5C-2-11-11-10-11-3c0 5 5 9 11 14 6-5 11-9 11-14 0-7-9-8-11-3z' fill='%23dcc6ef' opacity='.65'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.85'%3E%3Cpath d='M46 150l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M70 540l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Ccircle cx='32' cy='300' r='1.4'/%3E%3Ccircle cx='74' cy='400' r='1.6'/%3E%3Ccircle cx='44' cy='720' r='1.4'/%3E%3C/g%3E%3C/svg%3E")}
.character-photo:before{animation:heroDrift 12s ease-in-out infinite alternate}
.character-photo:after{animation:heroDrift 12s ease-in-out -6s infinite alternate}
@keyframes heroDrift{from{translate:0 0}to{translate:0 -6px}}
