:root{--navy:#16213A;--green:#2F5139;--red:#A8322B;--mustard:#E0A52F;--kraft:#C69C6D;--cream:#F4E9D2;--tomato:#C72318;--sky:#7FD0F2;
--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
--torn:polygon(0 8px,6% 3px,13% 9px,21% 2px,30% 7px,39% 1px,48% 8px,57% 3px,66% 9px,75% 2px,84% 7px,92% 1px,100% 6px,100% calc(100% - 7px),93% calc(100% - 1px),85% calc(100% - 8px),76% calc(100% - 2px),67% calc(100% - 9px),58% calc(100% - 3px),49% calc(100% - 8px),40% calc(100% - 1px),31% calc(100% - 7px),22% calc(100% - 2px),14% calc(100% - 9px),7% calc(100% - 3px),0 calc(100% - 7px))}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{background:var(--cream) var(--grain);color:var(--navy);font:17px/1.8 "Gowun Dodum","Malgun Gothic",sans-serif;word-break:keep-all;overflow-x:clip}
img{max-width:100%;display:block}
h1,h2,h3{font-family:Jua,"Malgun Gothic",sans-serif;font-weight:400;line-height:1.35}
h1{font-size:clamp(34px,5.4vw,58px)}h2{font-size:clamp(28px,4vw,42px);margin-bottom:16px}h3{font-size:22px;margin-bottom:8px}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--mustard);outline-offset:3px}
.hand{font:700 24px/1.5 Gaegu,cursive}
.small{font-size:14px;opacity:.8;margin:10px 0}
.no{font:700 14px "Zilla Slab",serif;letter-spacing:3px;color:var(--red);margin-bottom:8px}
.wrap{width:min(1080px,100% - 40px);margin-inline:auto}
section.wrap,#look,#shift{padding-block:88px}
.paper{background:#fbf4e3 var(--grain);padding:34px 28px;clip-path:var(--torn);color:var(--navy)}
.btn{display:inline-block;border:0;padding:13px 28px;font:400 18px/1.5 Jua,sans-serif;background:var(--red) var(--grain);color:#fff;text-decoration:none;clip-path:var(--torn);cursor:pointer}
.btn.kraft{background-color:var(--kraft);color:var(--navy)}
.btn:hover{filter:brightness(1.08)}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.art{width:100%;aspect-ratio:1;background-repeat:no-repeat;background-size:400% 200%;mix-blend-mode:multiply}

.notice-top{background:#0e1629;color:#e9ddc2;text-align:center;font-size:13px;padding:6px 12px}
.bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;padding:8px 20px;background:var(--cream) var(--grain);border-bottom:2px dashed var(--red)}
.brand{display:flex;align-items:center;gap:8px;font:400 20px Jua,sans-serif;color:var(--navy);text-decoration:none;white-space:nowrap}
.brand img{border-radius:50%;mix-blend-mode:multiply}
.bar nav{display:flex;gap:20px;margin-left:auto;overflow-x:auto;white-space:nowrap}
.bar nav a{color:var(--navy);text-decoration:none;padding:6px 0}
#mute{border:2px solid var(--navy);background:transparent;border-radius:30px;padding:2px 14px;font-size:14px;white-space:nowrap}

.hero{position:relative;overflow:hidden;background:var(--tomato);color:#fff6e6}
.hero-in{position:relative;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:24px;width:min(1080px,100% - 40px);margin-inline:auto;padding-top:40px}
.hero h1{font-size:clamp(44px,7vw,84px);line-height:1.12;margin:8px 0 18px;color:#14100f}
.hero-kicker{font:700 15px "Zilla Slab","Gowun Dodum",serif;letter-spacing:2px}
.hero-art img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;max-height:620px;object-position:center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8% 92%,transparent),linear-gradient(transparent,#000 6% 94%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect;mask-image:linear-gradient(90deg,transparent,#000 8% 92%,transparent),linear-gradient(transparent,#000 6% 94%,transparent)}
.ribbon{display:block;width:100%;height:150px;fill:none;stroke:#fbeed8;stroke-width:1.8;opacity:.92}
.btn.cream{background-color:#fbf4e3;color:var(--tomato)}
.btn.ink{background-color:#14100f;color:#fbf4e3}
.spark{display:block;position:absolute;width:56px;height:56px;pointer-events:none;background:var(--sky);clip-path:polygon(50% 0,54% 39%,78% 22%,61% 46%,100% 50%,61% 54%,78% 78%,54% 61%,50% 100%,46% 61%,22% 78%,39% 54%,0 50%,39% 46%,22% 22%,46% 39%);animation:twinkle 2.4s ease-in-out infinite}
@keyframes twinkle{50%{scale:.7;rotate:12deg}}
.s1{left:46%;top:28px;width:84px;height:84px}.s2{right:4%;top:22%;animation-delay:.6s}.s3{left:3%;bottom:36px;animation-delay:1.1s}.s4{right:12%;bottom:28px;width:76px;height:76px;animation-delay:1.7s}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}
.cards small{font:700 14px "Zilla Slab","Gowun Dodum",serif;color:var(--red)}

#look{background:var(--navy);color:var(--cream)}
#look .no,#shift .no{color:var(--mustard)}
#pano{position:relative;overflow:hidden;height:min(68vh,560px);margin:28px 0 20px;cursor:grab;touch-action:pan-y;user-select:none}
#pano:active{cursor:grabbing}
#panoInner{position:absolute;top:0;left:0;height:100%;aspect-ratio:3/1;will-change:transform}
#panoInner img{width:100%;height:100%;max-width:none;object-fit:cover;pointer-events:none}
.spot{position:absolute;translate:-50% -50%;width:30px;height:30px;border-radius:50%;border:3px solid #fff;background:var(--mustard);font-size:0;animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 #ffd27acc}100%{box-shadow:0 0 0 18px #ffd27a00}}
.pano-ctrl{display:flex;gap:12px}
#memo{margin-top:12px;min-height:2.5em}

#goods{background:var(--cream) var(--grain);padding-block:88px}
.house{margin-top:32px;background:var(--tomato) var(--grain);padding:clamp(90px,12vw,150px) clamp(12px,3vw,40px) 36px;clip-path:polygon(50% 0,100% 130px,100% 100%,0 100%,0 130px)}
#shelf{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
#shelf li{position:relative;height:300px;perspective:900px}
#shelf .inside{position:absolute;inset:0 0 34px;display:grid;grid-template-rows:repeat(3,1fr);gap:4px;padding:10px 12px;background:#fbf4e3;color:var(--navy);border-radius:4px;overflow:hidden}
#shelf .inside span{display:flex;align-items:center;gap:10px;min-height:0;font:400 17px Jua,sans-serif}
#shelf .inside .art{width:70px;flex:none}
.door{position:absolute;inset:0 0 34px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid #fbf4e3;border-radius:4px;background:#a81f15;color:#fff6e6;transform-origin:left;transition:transform .7s cubic-bezier(.3,.8,.3,1);padding:10px}
.door::after{content:"";position:absolute;right:-2px;top:50%;translate:0 -50%;width:13px;height:26px;border-radius:26px 0 0 26px;background:var(--tomato);border:2px solid #fbf4e3;border-right:0}
.door em{position:absolute;left:12px;top:6px;font:700 20px "Zilla Slab",serif}
.door .art{width:min(140px,80%);filter:grayscale(1) contrast(1.8) invert(1);mix-blend-mode:screen}
.door b{font:400 20px Jua,sans-serif}.door small{font-size:14px}
#shelf li.open .door{transform:rotateY(-94deg)}
#shelf .price{position:absolute;inset:auto 0 0;text-align:center;color:#fff6e6;font:700 17px "Zilla Slab","Gowun Dodum",serif}

.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.tile{position:relative;border-radius:22px;overflow:hidden;background:#fbf4e3;color:var(--navy)}
.tile.ink{background:#14100f;color:#fbf4e3}
.title{grid-column:span 2;padding:32px}
.title h3{font-size:clamp(32px,4.4vw,52px);line-height:1.2}
.title p{max-width:270px;font-size:15px}
.title .spark{right:28px;top:30px;background:var(--mustard)}
.photo{grid-column:span 2;display:flex;flex-direction:column}
.photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:0;flex:1}
.photo figcaption{margin:0;padding:8px 18px;font-size:19px}
.ticket{grid-column:span 2;padding:24px 36px;background:var(--tomato);color:#fff6e6;-webkit-mask:radial-gradient(circle 18px at left,transparent 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 18px at right,transparent 98%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 18px at left,transparent 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 18px at right,transparent 98%,#000) right/51% 100% no-repeat}
.ticket b{font:400 24px Jua,sans-serif}.ticket ol{margin-top:6px;list-style-position:inside}
.ticket li{border-bottom:1px dashed #fff6e688;padding:4px 0}
.logo{grid-column:span 2;background:var(--navy)}
.logo img,.dog img{width:100%;height:100%;object-fit:cover;border-radius:0}
.dog{grid-column:span 2;background:var(--tomato);aspect-ratio:16/9}
.dog img{object-fit:contain}

#shift{background:var(--green) var(--grain);color:var(--cream)}
.stitched{display:flex;flex-wrap:wrap;gap:8px 28px;list-style-position:inside;border-block:3px dashed var(--cream);padding:12px 0;margin-bottom:32px}
#setup{max-width:560px;margin-inline:auto}
#setup label{display:block;margin-top:14px;font-size:15px}
#setup input{display:block;width:100%;border:0;border-bottom:2px dashed var(--navy);background:transparent;font:700 24px Gaegu,cursive;padding:4px}
fieldset{border:0;margin-top:18px}
#counts{display:flex;gap:10px;margin-top:6px}
#counts button{width:46px;height:46px;border-radius:50%;border:2px solid var(--navy);background:transparent}
#counts button[aria-pressed="true"]{background:var(--navy);color:var(--cream)}
#setup .btn{width:100%;margin-top:24px}

#game,#delivery,#links{text-align:center}
#shift #game,#shift #reveal,#shift #delivery,#shift #links,#setup{scroll-margin-top:84px}
#bench{display:flex;justify-content:center;gap:10px;margin:8px 0}
#bench div{width:76px;height:76px;background:#fbf4e3;border-radius:6px;padding:4px}
#stage{position:relative;height:clamp(420px,100vh - 270px,580px);overflow:hidden;border-radius:8px;border:4px solid var(--kraft)}
#room{position:absolute;inset:0;overflow:hidden;background:#3a2417;cursor:grab;touch-action:pan-y}
#curve{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
#curve i{position:absolute;left:50%;top:0;height:100%;background:url(assets/room-elves.jpg) no-repeat;backface-visibility:hidden}
#tying{position:absolute;inset:0;z-index:3;background:url(assets/room-hands.jpg) center/cover;animation:tie 1.8s ease-out both}
#tying p{position:absolute;left:50%;translate:-50%;top:12px;white-space:nowrap;background:#16213ad9;color:var(--mustard);padding:2px 18px;border-radius:20px}
@keyframes tie{from{opacity:0;transform:scale(1.15)}30%{opacity:1}}
#speed{position:absolute;left:50%;translate:-50%;top:10px;max-width:calc(100% - 140px);width:max-content;background:#16213ad9;color:var(--mustard);padding:2px 14px;border-radius:20px;pointer-events:none;font-size:20px}
#belt{position:absolute;inset:auto 0 0;height:168px;overflow:hidden;touch-action:manipulation}
#belt::after{content:"";position:absolute;inset:auto 0 0;height:34px;background:repeating-linear-gradient(90deg,#151a24 0 26px,#2b3242 26px 52px);background-position-x:var(--roll,0);border-block:5px solid var(--mustard)}
.item{position:absolute;left:0;bottom:38px;width:124px;height:126px;border:0;background:#fbf4e3 var(--grain);color:var(--navy);padding:10px 12px;border-radius:5px;user-select:none}
.item .art{width:84px;margin:0 auto}
.item span:last-child{display:block;white-space:nowrap;font:400 13px/1.5 Jua,sans-serif}
#reveal{max-width:480px;margin:0 auto;text-align:center}
#reveal .art{max-width:240px;margin:0 auto;animation:pop .7s}
#reveal .actions{justify-content:center}
@keyframes pop{from{transform:scale(.2) rotate(-20deg);opacity:0}70%{transform:scale(1.1)}}

.sky{position:relative;max-width:520px;margin:20px auto;overflow:hidden;border-radius:8px;aspect-ratio:4/5}
#sleigh{width:100%;height:100%;object-fit:cover;animation:fly 4.5s ease-in-out both}
@keyframes fly{0%{transform:scale(1.3) translate(-12%,8%)}100%{transform:scale(1.05) translate(2%,-2%)}}
.stamp{position:absolute;right:24px;bottom:24px;width:120px;height:120px;border:4px double #fff;border-radius:50%;display:grid;place-content:center;font:700 17px/1.4 "Zilla Slab",serif;background:#a8322bdd;color:#fff;animation:stamp .4s 3.2s both}
@keyframes stamp{from{transform:scale(2.4) rotate(10deg);opacity:0}to{transform:rotate(-12deg)}}
#linkList{list-style:none;display:grid;gap:16px;max-width:620px;margin:22px auto;text-align:left}
#linkList li{background:#fbf4e3 var(--grain);color:var(--navy);padding:20px;border-radius:5px}
#linkList input{width:100%;margin:8px 0;padding:8px;font-size:13px;border:1px dashed var(--navy);background:transparent}
#linkList .actions{margin-top:4px}
#linkList .btn{font-size:15px;padding:8px 16px}

#album{background:var(--tomato) var(--grain);color:#fff6e6;width:100%;padding-inline:max(20px,(100% - 1080px)/2)}
#album .no{color:#fff6e6}
.tree{position:relative;padding-top:96px;margin-top:12px}
.tree .star{left:50%;margin-left:-40px;top:6px;width:80px;height:80px;background:var(--mustard)}
.row{display:flex;justify-content:center;align-items:flex-start}
.row+.row{margin-top:8px}
.row figure{width:25%;background:#fbf7ee;color:var(--navy);padding:10px 10px 6px;rotate:var(--r);box-shadow:0 8px 18px #0004;margin-inline:-4px}
.row figure img{aspect-ratio:1;object-fit:cover;border-radius:0}
.row figcaption{text-align:center;margin-top:4px;font-size:19px}
.row.wide figure{width:50%}.row.wide figure img{aspect-ratio:16/9}
figure img{width:100%;height:auto;border-radius:4px}
figcaption{font:700 21px Gaegu,cursive;margin-top:8px}


#receive{min-height:80vh;display:grid;place-items:center;padding:48px 20px;background:var(--navy);color:var(--cream);text-align:center}
#open{border:0;background:#fbf4e3;border-radius:50%;width:min(280px,70vw);padding:34px;margin:28px auto;display:block;animation:wiggle 1.4s infinite}
@keyframes wiggle{20%{rotate:-6deg}40%{rotate:6deg}60%{rotate:0deg}}
#opened{width:min(480px,100%)}
#giftArt{max-width:250px;margin:0 auto;animation:pop .7s}
#card{margin:18px 0;border-block:3px dashed var(--red);padding:14px 0}

footer{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;font-size:14px;padding:48px 20px}
footer img{border-radius:50%;mix-blend-mode:multiply}

@media (max-width:820px){
  .hero-in{grid-template-columns:1fr;padding-top:28px}
  .hero-art img{max-height:none}
  .s1{left:auto;right:16px;width:52px;height:52px}.s2,.s3{display:none}
  .ribbon{height:110px}
  .cards{grid-template-columns:1fr}
  #shelf{grid-template-columns:repeat(2,1fr);gap:12px}
  #shelf li{height:250px}
  #shelf .inside{padding:8px}
  #shelf .inside span{gap:6px;font-size:14px;line-height:1.3}
  #shelf .inside .art{width:48px}
  #goods{padding-block:60px}
  .title,.photo,.ticket,.logo,.dog{grid-column:1/-1}
  .row figure{padding:5px 5px 3px}
  .row figcaption{font-size:13px;line-height:1.3}
  .bar{flex-wrap:wrap;gap:4px 12px;padding-inline:14px}
  #mute{margin-left:auto}
  .bar nav{order:3;width:100%;margin:0;justify-content:space-between;gap:12px;font-size:15px}
  html{scroll-padding-top:110px}
  section.wrap,#look,#shift{padding-block:60px}
  #bench div{width:64px;height:64px}
  #stage{height:420px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

#album{overflow:clip}
.camrow{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.camrow .btn{font-size:15px;padding:9px 14px}

.title,.ticket{display:flex;flex-direction:column;justify-content:center}
.title{padding:40px}
.title h3{font-size:clamp(36px,5.6vw,68px)}
.title p{max-width:340px;font-size:17px;margin-top:10px}
.ticket{padding:28px 48px}
.ticket b{font-size:clamp(26px,3.4vw,40px)}
.ticket li{font:400 clamp(17px,2vw,24px)/1.6 Jua,sans-serif;padding:10px 0}
@media (max-width:820px){.title,.ticket{padding:28px 32px}.ticket li{padding:6px 0}}
/* 체크 원단: 가로·세로 같은 줄무늬를 겹쳐 CSS로 짠 타탄 */
:root{
--weave:repeating-linear-gradient(45deg,#0000 0 2px,#00000026 2px 4px);
--tartan-x:repeating-linear-gradient(90deg,#0000 0 22px,#e3b061cc 22px 25px,#0000 25px 62px,#7c1624cc 62px 70px,#0000 70px 100px,#8fb3a699 100px 138px,#0000 138px 150px,#9a8b5280 150px 180px,#0000 180px 196px,#e3b061cc 196px 199px,#0000 199px 220px);
--tartan-y:repeating-linear-gradient(0deg,#0000 0 22px,#e3b061cc 22px 25px,#0000 25px 62px,#7c1624cc 62px 70px,#0000 70px 100px,#8fb3a699 100px 138px,#0000 138px 150px,#9a8b5280 150px 180px,#0000 180px 196px,#e3b061cc 196px 199px,#0000 199px 220px)}
#shift{background:linear-gradient(#0f1f1770,#0f1f1770),var(--weave),var(--tartan-x),var(--tartan-y),#263b30}
footer{position:relative;padding-top:92px}
footer::before{content:"";position:absolute;inset:0 0 auto;height:44px;background:var(--weave),var(--tartan-x),var(--tartan-y),#263b30;border-bottom:3px dashed var(--red)}
#shift h2,#shift #game h3,#shift #game p,#shift #delivery h3,#shift #links>h3,.stitched{text-shadow:0 1px 4px #000c}

/* 빨간 배경: 한 붓 라인 드로잉과 레이스 */
.hero-art,.house{position:relative}
.garland{display:block;width:100%;height:clamp(90px,12.5vw,170px);object-fit:cover;pointer-events:none}
.hero>.garland{padding-top:6px}
.hero-art img.doily{position:absolute;left:0;top:50%;width:100%;height:auto;aspect-ratio:1;max-height:none;translate:0 -50%;z-index:1;-webkit-mask:none;mask:none;pointer-events:none}
.lace{display:block;height:46px;background:url(assets/lace-edge.svg?v=2) repeat-x center top/55px 46px}
.house{padding-top:150px;padding-bottom:0}
.house>.roofline{position:absolute;left:50%;translate:-50%;top:46px;width:min(380px,56%);height:auto}
.house>.garland{margin-top:20px}
.house>.lace{margin-inline:calc(-1 * clamp(12px,3vw,40px))}
.ticket>.roofline{display:block;width:100%;height:auto;margin-top:18px}
#album{padding-top:0}
#album>.lace{margin-inline:calc(-1 * max(20px,(100% - 1080px)/2));width:100vw;margin-left:calc(50% - 50vw);margin-bottom:56px}
#album .tree{padding-top:84px}
@media (max-width:820px){
  .house{padding-top:90px;clip-path:polygon(50% 0,100% 70px,100% 100%,0 100%,0 70px)}
  .house>.roofline{top:36px;width:56%}
  .lace{height:34px;background-size:41px 34px}
}
.hero-art img.elf{animation:bob 3.2s ease-in-out infinite;transform-origin:50% 81%;cursor:pointer}
.hero-art img.elf.hop{animation:hop .8s ease-out}
@keyframes bob{0%,100%{translate:0 0;rotate:-2.5deg}25%{translate:0 -9px}50%{translate:0 0;rotate:2.5deg}75%{translate:0 -9px}}
@keyframes hop{15%{scale:1.06 .92}45%{translate:0 -46px;scale:.97 1.05;rotate:6deg}75%{scale:1.05 .94}}
.s1{top:200px}
#album>.lace{margin-top:0}
.ribbon{stroke:#f6e6c8;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:10 6;filter:drop-shadow(1px 1.8px 0 #4d0a0699)}

/* 스톱모션: 부드럽게 흐르지 않고 한 컷씩 끊어서 움직입니다 */
.hero-art img.elf{animation:bob 1.6s steps(1) infinite}
@keyframes bob{0%{translate:0 0;rotate:-3deg}12.5%{translate:0 -6px;rotate:-1.5deg}25%{translate:0 -11px;rotate:0deg}37.5%{translate:0 -5px;rotate:2deg}50%{translate:0 0;rotate:3deg}62.5%{translate:0 -6px;rotate:1.5deg}75%{translate:0 -11px;rotate:0deg}87.5%,100%{translate:0 -5px;rotate:-2deg}}
.hero-art img.elf.hop{animation:hop .8s steps(2) forwards}
.hero-art img.doily{animation:turn 6s steps(24) infinite}
@keyframes turn{to{rotate:60deg}}
.spark{animation:twinkle 1.2s steps(3) infinite}
.garland,.roofline,.ribbon{animation:boil .6s steps(1) infinite}
@keyframes boil{0%{transform:translate(0,0)}33%{transform:translate(1.5px,-1px) rotate(.12deg)}66%{transform:translate(-1px,1px) rotate(-.12deg)}}
.door{transition:transform .8s steps(5)}
#shelf .door:hover .art{animation:shake .5s steps(1) infinite}
@keyframes shake{0%{rotate:-4deg}50%{rotate:4deg}}
#reveal .art,#giftArt{animation:pop .8s steps(6)}
.stamp{animation:stamp .5s steps(3) 3.2s both}
#sleigh{animation:fly 4.5s steps(27) both}
#tying{animation:tie 1.8s steps(7) both}
.row figure{transition:rotate .3s steps(3),translate .3s steps(3)}
.row figure:hover{rotate:0deg;translate:0 -10px}
.film{height:clamp(240px,42vw,430px);aspect-ratio:1;max-width:100%;margin-inline:auto;background:url(assets/sm-wrap.jpg) 0 0/400% 200%;border:12px solid #fbf7ee;box-shadow:0 10px 24px #0004;rotate:-1.5deg}
.interlude{padding-block:56px;text-align:center}
.interlude p{margin-top:18px}
.walk{position:relative;height:190px;overflow:hidden;background:#f2e6ce;border-block:3px dashed var(--red)}
.walk i{position:absolute;bottom:4px;left:0;width:180px;height:180px;background:url(assets/sm-walk.jpg) 0 0/400% 200%;animation:cross 16s steps(96) infinite}
@keyframes cross{from{left:-180px}to{left:100%}}
@media (max-width:820px){.walk{height:140px}.walk i{width:130px;height:130px}.film{height:auto;width:min(320px,100% - 40px)}}

/* 게임 스톱모션 */
#curve.alt i{background-image:url(assets/room-elves-b.jpg)}
#bench .art{animation:drop .5s steps(4)}
@keyframes drop{from{translate:0 46px;scale:1.5;rotate:-14deg}}
#tying{background:#5a3217;animation:none;display:grid;place-items:center}
#tyingFilm{height:100%;aspect-ratio:1;max-width:100%;background:url(assets/sm-wrap.jpg) 0 0/400% 200%}
.walk{background:#F3E3C7}
/* 천 리본 한 줄 */
.ribbon{fill:none;stroke-linecap:round;stroke-dasharray:none;filter:none;opacity:1}
.ribbon g{stroke-dasharray:none}
.ribbon .shade{stroke:#4d0a0666;stroke-width:28}
.ribbon .cloth{stroke:#f6e6c8;stroke-width:28}
.ribbon .thread{stroke:var(--tomato);stroke-width:2.2;stroke-dasharray:9 7}
.ribbon ellipse{fill:#f6e6c8;stroke:#4d0a0666;stroke-width:3}
.logo{grid-column:1/-1;aspect-ratio:16/5}
/* 룩북: 하룻밤 순서대로 */
.night{list-style:none;position:relative;display:grid;gap:56px;margin-top:40px}
.night::before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:4px dashed #f6e6c8}
.night li{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.night li::after{content:"";position:absolute;left:50%;top:50%;translate:-50% -50%;width:22px;height:22px;border-radius:50%;background:var(--mustard);border:4px solid #f6e6c8}
.night figure{background:#fbf7ee;padding:10px;box-shadow:0 8px 18px #0004;rotate:-2deg}
.night figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:0}
.night time{font:700 15px "Zilla Slab","Gowun Dodum",serif;letter-spacing:2px;color:var(--mustard)}
.night li:nth-child(even) figure{order:2;rotate:2deg}
.night li:nth-child(even) .say{text-align:right}
@media (max-width:820px){
  .logo{aspect-ratio:16/9}
  .night::before{left:7px}
  .night li{grid-template-columns:1fr;gap:12px;padding-left:34px}
  .night li::after{left:9px;top:22px;width:18px;height:18px}
  .night li:nth-child(even) figure{order:0}
  .night li:nth-child(even) .say{text-align:left}
}
.garland,.roofline,.ribbon,.hero-art img.doily{animation:none}
#closedBox.unwrap{mix-blend-mode:normal;border-radius:50%}
.boxfilm{margin-top:28px;text-align:center}.boxfilm figcaption{margin-top:14px}
.film.big{height:auto;width:min(640px,100%);background-image:url(assets/sm-box.jpg);rotate:0deg}
/* 누르면: 아래로 웅크려 잠깐 머문 뒤 튀어오름 (컷 단위) */
.hero-art img.elf.hop{animation:hop 1.2s steps(1) forwards}
@keyframes hop{0%{translate:0 18px;scale:1.04 .94}10%{translate:0 40px;scale:1.1 .86}46%{translate:0 -14px;scale:.95 1.08}56%{translate:0 -52px;scale:.96 1.05;rotate:5deg}72%{translate:0 -30px;rotate:3deg}84%{translate:0 10px;scale:1.06 .93}93%,100%{translate:0 0;scale:1}}
/* 요정이 뛰어도 흰 실과 별이 가려지지 않게 위 레이어로 */
.hero>.garland{position:relative;z-index:3}
.hero>.spark{z-index:3}

/* 반짝이는 리본이 아닌 배경 위에만 */
.hero>.s1{left:43%;top:200px;bottom:auto}
.hero>.s2{right:4%;top:230px;bottom:auto}
.hero>.s3{left:41%;top:auto;bottom:190px}
.hero>.s4{right:6%;left:auto;top:auto;bottom:200px;width:60px;height:60px}
@media (max-width:820px){.hero>.s1{left:auto;right:18px;top:240px}.hero>.s4{right:14px;bottom:130px;width:40px;height:40px}}
/* 캘린더 제품 설명창 */
#shelf .inside button{display:flex;align-items:center;gap:10px;min-height:0;border:0;background:transparent;border-radius:6px;font:400 17px Jua,sans-serif;color:var(--navy);text-align:left}
#shelf .inside button:hover,#shelf .inside button:focus-visible{background:#f0dfba}
#shelf .inside button .art{width:70px;flex:none}
#peek{position:fixed;z-index:50;width:min(300px,calc(100vw - 24px));background:#fbf4e3 var(--grain);color:var(--navy);border:3px solid var(--tomato);outline:2px dashed #f6e6c8;outline-offset:-9px;border-radius:14px;box-shadow:0 18px 40px #0006;padding:20px 22px;text-align:center;pointer-events:none;animation:peek .35s steps(4)}
#peek .art{width:190px;margin:0 auto}
#peek h3{font-size:26px;margin:4px 0}
#peek p{font-size:15px;line-height:1.7}
#peek small{display:block;margin-top:8px;color:var(--red);font:700 15px "Zilla Slab","Gowun Dodum",serif}
@keyframes peek{from{scale:.6;opacity:0;rotate:-6deg}}
@media (max-width:820px){#shelf .inside button{gap:6px;font-size:14px;line-height:1.3}#shelf .inside button .art{width:48px}}

/* 중간중간 요정 모션 */
.cameo{display:flex;align-items:center;justify-content:center;gap:clamp(16px,4vw,56px);padding:20px;border-block:3px dashed var(--red)}
.cameo.flip{flex-direction:row-reverse}
.cameo-art{flex:none;width:clamp(220px,30vw,340px);aspect-ratio:1;background-repeat:no-repeat;background-size:400% 200%}
.cameo p{max-width:380px;color:var(--navy)}
.cameo.nap{background:#F4DCBD}.nap .cameo-art{background-image:url(assets/sm-nap.jpg)}
.cameo.snow{background:#F8DFBA}.snow .cameo-art{background-image:url(assets/sm-snow.jpg)}
.walk.sled{background:#F6E2C2;height:230px}
.walk.sled i{width:230px;height:230px;background-image:url(assets/sm-sled.jpg);animation:sled 20s steps(120) infinite}
@keyframes sled{from{left:-230px}to{left:100%}}
.boxfilm figcaption{min-height:3em}
@media (max-width:820px){.cameo,.cameo.flip{flex-direction:column;gap:6px;text-align:center}.walk.sled{height:160px}.walk.sled i{width:160px;height:160px}}

/* 메인 요정: 더 크게, 가운데 쪽으로 */
@media (min-width:821px){.hero-art{width:116%;margin-left:-21%}.hero-art img.elf{max-height:700px}.hero-copy{position:relative;z-index:2}}

/* 말풍선 */
.say-bubble{position:absolute;z-index:6;margin:0;width:max-content;max-width:min(260px,80vw);padding:12px 16px;background:#fbf7ee;color:var(--navy);border:3px solid var(--red);border-radius:16px;box-shadow:0 8px 18px #0004;line-height:1.5;cursor:default;pointer-events:none;animation:peek .3s steps(3)}
.say-bubble[hidden]{display:none}
#panoInner .say-bubble::after{content:"";position:absolute;left:var(--tail);bottom:-10px;width:14px;height:14px;background:#fbf7ee;border:solid var(--red);border-width:0 3px 3px 0;translate:-50% 0;rotate:45deg}
#panoInner .say-bubble.below::after{bottom:auto;top:-10px;border-width:3px 0 0 3px}

/* 요정 반응 */
.cameo,.walk{position:relative}
.cameo-art,.walk i{cursor:pointer}
.cameo-art{-webkit-mask-image:linear-gradient(90deg,transparent,#000 6% 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6% 94%,transparent)}
.cameo-art.startle,.walk i.startle{animation:startle .7s steps(1)}
.cameo-art.jump,.walk i.jump{animation:jump .9s steps(1)}
.cameo-art.tilt,.walk i.tilt{rotate:11deg;transition:rotate .4s steps(3)}
.walk i.startle{animation:cross 16s steps(96) infinite,startle .7s steps(1)}
.walk i.jump{animation:cross 16s steps(96) infinite,jump .9s steps(1)}
.walk.sled i.startle{animation:sled 20s steps(120) infinite,startle .7s steps(1)}
.walk.sled i.jump{animation:sled 20s steps(120) infinite,jump .9s steps(1)}
@keyframes startle{0%{translate:0 0;scale:1}15%{translate:0 -26px;scale:1.08}40%{translate:-6px -14px}55%{translate:6px -8px}70%{translate:-3px 0}85%,100%{translate:0 0;scale:1}}
@keyframes jump{0%,50%{translate:0 0}20%,70%{translate:0 -22px}35%,85%,100%{translate:0 0}}

/* 룩북 사진 살랑살랑 */
@media (prefers-reduced-motion:no-preference){
  .night figure{animation:sway 2.8s steps(7) infinite alternate}
  .night li:nth-child(even) figure{animation-direction:alternate-reverse}
  @keyframes sway{from{rotate:-3.5deg}to{rotate:2deg}}
}

[hidden]{display:none!important}
html{scroll-behavior:auto}
.bar nav a[aria-current]{color:var(--red);border-bottom:3px solid var(--red)}
#site>*:not([hidden]){animation:page .4s steps(4)}
#site>.walk:not([hidden]),#site>.cameo:not([hidden]){animation:none}
@keyframes page{from{opacity:0;translate:0 14px}}
body[data-view=home] .hero{min-height:calc(100vh - 130px)}
body[data-view=album] #album{margin-top:0}

/* 게임: 옆에서 본 작업실, 좌우로 지나가는 벨트 */
.art{mix-blend-mode:normal}
.door .art{mix-blend-mode:normal}
#curve i{background-image:url(assets/room-side-a.jpg)}
#curve.alt i{background-image:url(assets/room-side-b.jpg)}
#belt{height:230px}
#belt::before{content:"";position:absolute;inset:auto 0 0;height:22px;background:radial-gradient(circle,#c9a25a 0 4px,#5a4320 5px 9px,transparent 10px) var(--roll,0) 50%/52px 22px repeat-x #2a1a10}
#belt::after{bottom:22px;height:38px;background-color:#1c2230;border-block:5px solid var(--mustard)}
.item{bottom:44px;width:164px;height:182px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;padding:0;background:none;border-radius:0}
.item .art{width:calc(112px * var(--s,1));flex:none;margin:0;filter:drop-shadow(0 6px 4px #0008)}
.item.shadow .art{filter:invert(1) drop-shadow(0 0 6px #ffd87a)}
.item span:last-child{background:#16213acc;color:#fff6e6;border-radius:20px;padding:0 10px}
.item:active .art{scale:1.12}
#bench div{background:#fff6e61f;border:2px dashed #fff6e6aa}
#bench .art{width:100%}

/* 결제(예시) */
#pay{max-width:520px;margin:0 auto;text-align:center}
#shift #pay h3,#shift #pay p{text-shadow:none}
#payList{list-style:none;padding:0;margin:14px 0}
#payList li{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:2px dashed #b9a27c;text-align:left}
#payList .art{width:64px;flex:none}
#payList span{flex:1}
#pay .total{display:flex;justify-content:space-between;font-size:20px;margin:0 0 16px}

/* 말풍선: 반투명 + 요정을 가리키는 꼬리 */
.say-bubble,.cameo p{background:#fffaeeb8;backdrop-filter:blur(3px);border:2px solid #c4261d99;box-shadow:0 6px 14px #0002}
#panoInner .say-bubble{background:#fffaeed9}
#panoInner .say-bubble::after{background:#fffaeed9}
.cameo{overflow:hidden}
.cameo p{position:relative;margin:0;padding:18px 22px;border-radius:22px;color:var(--navy);width:min(360px,100%);min-height:5.2em;display:grid;align-items:center}
.cameo p::before,.say-bubble.react::before{content:"";position:absolute;left:-10px;top:50%;width:16px;height:16px;background:#fbf0dc;border:solid #c4261d99;border-width:0 0 2px 2px;translate:0 -50%;rotate:45deg}
.cameo.flip p::before,.say-bubble.react.flip::before{left:auto;right:-10px;border-width:2px 2px 0 0}
.cameo-art{-webkit-mask-image:linear-gradient(90deg,transparent,#000 8% 92%,transparent),linear-gradient(transparent,#000 8% 94%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 8% 92%,transparent),linear-gradient(transparent,#000 8% 94%,transparent);mask-composite:intersect}
@keyframes startle{0%{translate:0 0}15%{translate:0 -14px}40%{translate:-6px -8px}55%{translate:6px -4px}70%{translate:-3px 0}85%,100%{translate:0 0}}
@media (max-width:820px){.cameo p,.cameo.flip p{text-align:center}.cameo p::before,.cameo.flip p::before{left:50%;right:auto;top:-9px;translate:-50% 0;border-width:2px 0 0 2px}}
#stage{height:clamp(400px,100vh - 360px,560px)}
.item{z-index:1;bottom:36px}
#payList span:not(.art){flex:1}
@media (max-width:820px){#stage{height:420px}}
/* 눈은 구역 배경 위, 글과 그림 뒤 */
html{overflow-x:clip}
.snowy{position:relative;isolation:isolate}
.snowfall{position:absolute;top:0;left:50%;translate:-50%;height:100%;width:100vw;max-width:none;z-index:-1;pointer-events:none}
.bar{z-index:20}

/* 배경을 딴 요정: 눈송이가 뒤로 지나갑니다 */
.walk i{background-image:url(assets/sm-walk-cut.png)}
.walk.sled i{background-image:url(assets/sm-sled-cut.png)}
.nap .cameo-art{background-image:url(assets/sm-nap-cut.png)}
.snow .cameo-art{background-image:url(assets/sm-snow-cut.png)}
.cameo-art{-webkit-mask-image:none;mask-image:none}
.interlude.snowy,.cameo.snowy,.walk.snowy{position:relative}

/* 말풍선: 요정과 같은 구겨 찢은 종이 */
.say-bubble,.cameo p,#panoInner .say-bubble{background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;isolation:isolate;filter:drop-shadow(0 1px 0 #fff8) drop-shadow(0 6px 5px #5a32173d);color:#33211a}
.say-bubble,.cameo p{padding:20px 26px}
.say-bubble::before,.cameo p::before,.say-bubble.react::before,.say-bubble.react.flip::before,.cameo.flip p::before{content:"";position:absolute;inset:0;left:0;right:0;top:0;bottom:0;width:auto;height:auto;translate:none;rotate:none;border:0;z-index:-1;opacity:.95;background:url(assets/paper-cream.jpg) center/cover;
  clip-path:polygon(2% 9%,9% 4%,17% 7%,27% 1%,38% 5%,49% 2%,60% 6%,71% 1%,82% 5%,91% 2%,98% 8%,96% 20%,100% 33%,97% 47%,99% 60%,96% 73%,99% 90%,91% 96%,81% 93%,70% 99%,59% 95%,48% 98%,37% 94%,26% 99%,15% 95%,6% 98%,1% 90%,4% 76%,0 63%,3% 49%,1% 36%,4% 22%)}
/* 찢어 붙인 꼬리 */
.cameo p::after,.say-bubble.react::after{content:"";position:absolute;z-index:-1;left:-17px;top:50%;width:22px;height:26px;translate:0 -50%;background:url(assets/paper-cream.jpg) 30% 60%/300px;clip-path:polygon(0 52%,38% 36%,52% 20%,100% 0,94% 34%,100% 66%,96% 100%,56% 80%,34% 68%)}
.cameo.flip p::after,.say-bubble.react.flip::after{left:auto;right:-17px;scale:-1 1}
#panoInner .say-bubble::after{content:"";position:absolute;z-index:-1;left:var(--tail);top:auto;bottom:-14px;width:24px;height:20px;translate:-50% 0;rotate:none;border:0;background:url(assets/paper-cream.jpg) 30% 60%/300px;clip-path:polygon(0 0,34% 8%,66% 0,100% 6%,70% 52%,48% 100%,32% 56%)}
#panoInner .say-bubble.below::after{bottom:auto;top:-14px;scale:1 -1}
@media (max-width:820px){.cameo p::after,.cameo.flip p::after{left:50%;right:auto;top:-17px;translate:-50% 0;rotate:90deg;scale:1}}
/* 워드마크는 잘리지 않게 원본 비율 그대로 */
.bento .logo{aspect-ratio:16/9;width:min(780px,100%);justify-self:center;margin:0;overflow:hidden}
.bento .logo img{width:100%;height:100%;object-fit:contain}
/* 누가 말하는지 보이도록 꼬리를 크게 */
.cameo p::after,.say-bubble.react::after{width:46px;height:40px;left:-36px;clip-path:polygon(0 62%,36% 40%,56% 18%,100% 0,92% 50%,100% 100%,62% 84%,34% 72%)}
.cameo.flip p::after,.say-bubble.react.flip::after{left:auto;right:-36px}
#panoInner .say-bubble::after{width:38px;height:30px;bottom:-24px}
#panoInner .say-bubble.below::after{bottom:auto;top:-24px}
@media (max-width:820px){.cameo p::after,.cameo.flip p::after{left:50%;right:auto;top:-30px}}

/* 꼬리까지 한 장으로 찢은 종이 */
.cameo p::after,.say-bubble.react::after,#panoInner .say-bubble::after,#panoInner .say-bubble.below::after{display:none}
.cameo p::before,.say-bubble.react::before{left:-34px;right:0;top:0;bottom:0;clip-path:polygon(calc((100% - 34px) * 0.02 + 34px) calc((100% - 0px) * 0.09 + 0px),calc((100% - 34px) * 0.09 + 34px) calc((100% - 0px) * 0.04 + 0px),calc((100% - 34px) * 0.17 + 34px) calc((100% - 0px) * 0.07 + 0px),calc((100% - 34px) * 0.27 + 34px) calc((100% - 0px) * 0.01 + 0px),calc((100% - 34px) * 0.38 + 34px) calc((100% - 0px) * 0.05 + 0px),calc((100% - 34px) * 0.49 + 34px) calc((100% - 0px) * 0.02 + 0px),calc((100% - 34px) * 0.6 + 34px) calc((100% - 0px) * 0.06 + 0px),calc((100% - 34px) * 0.71 + 34px) calc((100% - 0px) * 0.01 + 0px),calc((100% - 34px) * 0.82 + 34px) calc((100% - 0px) * 0.05 + 0px),calc((100% - 34px) * 0.91 + 34px) calc((100% - 0px) * 0.02 + 0px),calc((100% - 34px) * 0.98 + 34px) calc((100% - 0px) * 0.08 + 0px),calc((100% - 34px) * 0.96 + 34px) calc((100% - 0px) * 0.2 + 0px),calc((100% - 34px) * 1 + 34px) calc((100% - 0px) * 0.33 + 0px),calc((100% - 34px) * 0.97 + 34px) calc((100% - 0px) * 0.47 + 0px),calc((100% - 34px) * 0.99 + 34px) calc((100% - 0px) * 0.6 + 0px),calc((100% - 34px) * 0.96 + 34px) calc((100% - 0px) * 0.73 + 0px),calc((100% - 34px) * 0.99 + 34px) calc((100% - 0px) * 0.9 + 0px),calc((100% - 34px) * 0.91 + 34px) calc((100% - 0px) * 0.96 + 0px),calc((100% - 34px) * 0.81 + 34px) calc((100% - 0px) * 0.93 + 0px),calc((100% - 34px) * 0.7 + 34px) calc((100% - 0px) * 0.99 + 0px),calc((100% - 34px) * 0.59 + 34px) calc((100% - 0px) * 0.95 + 0px),calc((100% - 34px) * 0.48 + 34px) calc((100% - 0px) * 0.98 + 0px),calc((100% - 34px) * 0.37 + 34px) calc((100% - 0px) * 0.94 + 0px),calc((100% - 34px) * 0.26 + 34px) calc((100% - 0px) * 0.99 + 0px),calc((100% - 34px) * 0.15 + 34px) calc((100% - 0px) * 0.95 + 0px),calc((100% - 34px) * 0.06 + 34px) calc((100% - 0px) * 0.98 + 0px),calc((100% - 34px) * 0.01 + 34px) calc((100% - 0px) * 0.9 + 0px),calc((100% - 34px) * 0.04 + 34px) calc((100% - 0px) * 0.76 + 0px),calc((100% - 34px) * 0 + 34px) calc((100% - 0px) * 0.63 + 0px),37px 66%,0px 56%,36px 42%,calc((100% - 34px) * 0.01 + 34px) calc((100% - 0px) * 0.36 + 0px),calc((100% - 34px) * 0.04 + 34px) calc((100% - 0px) * 0.22 + 0px))}
.cameo.flip p::before,.say-bubble.react.flip::before{left:0;right:-34px;top:0;bottom:0;clip-path:polygon(calc((100% - 34px) * 0.02 + 0px) calc((100% - 0px) * 0.09 + 0px),calc((100% - 34px) * 0.09 + 0px) calc((100% - 0px) * 0.04 + 0px),calc((100% - 34px) * 0.17 + 0px) calc((100% - 0px) * 0.07 + 0px),calc((100% - 34px) * 0.27 + 0px) calc((100% - 0px) * 0.01 + 0px),calc((100% - 34px) * 0.38 + 0px) calc((100% - 0px) * 0.05 + 0px),calc((100% - 34px) * 0.49 + 0px) calc((100% - 0px) * 0.02 + 0px),calc((100% - 34px) * 0.6 + 0px) calc((100% - 0px) * 0.06 + 0px),calc((100% - 34px) * 0.71 + 0px) calc((100% - 0px) * 0.01 + 0px),calc((100% - 34px) * 0.82 + 0px) calc((100% - 0px) * 0.05 + 0px),calc((100% - 34px) * 0.91 + 0px) calc((100% - 0px) * 0.02 + 0px),calc((100% - 34px) * 0.98 + 0px) calc((100% - 0px) * 0.08 + 0px),calc((100% - 34px) * 0.96 + 0px) calc((100% - 0px) * 0.2 + 0px),calc((100% - 34px) * 1 + 0px) calc((100% - 0px) * 0.33 + 0px),calc(100% - 36px) 42%,100% 56%,calc(100% - 37px) 66%,calc((100% - 34px) * 0.96 + 0px) calc((100% - 0px) * 0.73 + 0px),calc((100% - 34px) * 0.99 + 0px) calc((100% - 0px) * 0.9 + 0px),calc((100% - 34px) * 0.91 + 0px) calc((100% - 0px) * 0.96 + 0px),calc((100% - 34px) * 0.81 + 0px) calc((100% - 0px) * 0.93 + 0px),calc((100% - 34px) * 0.7 + 0px) calc((100% - 0px) * 0.99 + 0px),calc((100% - 34px) * 0.59 + 0px) calc((100% - 0px) * 0.95 + 0px),calc((100% - 34px) * 0.48 + 0px) calc((100% - 0px) * 0.98 + 0px),calc((100% - 34px) * 0.37 + 0px) calc((100% - 0px) * 0.94 + 0px),calc((100% - 34px) * 0.26 + 0px) calc((100% - 0px) * 0.99 + 0px),calc((100% - 34px) * 0.15 + 0px) calc((100% - 0px) * 0.95 + 0px),calc((100% - 34px) * 0.06 + 0px) calc((100% - 0px) * 0.98 + 0px),calc((100% - 34px) * 0.01 + 0px) calc((100% - 0px) * 0.9 + 0px),calc((100% - 34px) * 0.04 + 0px) calc((100% - 0px) * 0.76 + 0px),calc((100% - 34px) * 0 + 0px) calc((100% - 0px) * 0.63 + 0px),calc((100% - 34px) * 0.03 + 0px) calc((100% - 0px) * 0.49 + 0px),calc((100% - 34px) * 0.01 + 0px) calc((100% - 0px) * 0.36 + 0px),calc((100% - 34px) * 0.04 + 0px) calc((100% - 0px) * 0.22 + 0px))}
#panoInner .say-bubble::before{left:0;right:0;top:0;bottom:-34px;clip-path:polygon(calc((100% - 0px) * 0.02 + 0px) calc((100% - 34px) * 0.09 + 0px),calc((100% - 0px) * 0.09 + 0px) calc((100% - 34px) * 0.04 + 0px),calc((100% - 0px) * 0.17 + 0px) calc((100% - 34px) * 0.07 + 0px),calc((100% - 0px) * 0.27 + 0px) calc((100% - 34px) * 0.01 + 0px),calc((100% - 0px) * 0.38 + 0px) calc((100% - 34px) * 0.05 + 0px),calc((100% - 0px) * 0.49 + 0px) calc((100% - 34px) * 0.02 + 0px),calc((100% - 0px) * 0.6 + 0px) calc((100% - 34px) * 0.06 + 0px),calc((100% - 0px) * 0.71 + 0px) calc((100% - 34px) * 0.01 + 0px),calc((100% - 0px) * 0.82 + 0px) calc((100% - 34px) * 0.05 + 0px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.02 + 0px),calc((100% - 0px) * 0.98 + 0px) calc((100% - 34px) * 0.08 + 0px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.2 + 0px),calc((100% - 0px) * 1 + 0px) calc((100% - 34px) * 0.33 + 0px),calc((100% - 0px) * 0.97 + 0px) calc((100% - 34px) * 0.47 + 0px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.6 + 0px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.73 + 0px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.9 + 0px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.96 + 0px),calc((100% - 0px) * 0.81 + 0px) calc((100% - 34px) * 0.93 + 0px),calc((100% - 0px) * 0.7 + 0px) calc((100% - 34px) * 0.99 + 0px),calc((100% - 0px) * 0.59 + 0px) calc((100% - 34px) * 0.95 + 0px),calc(var(--tail, 50%) + 14px) calc(100% - 37px),var(--tail, 50%) 100%,calc(var(--tail, 50%) - 16px) calc(100% - 37px),calc((100% - 0px) * 0.26 + 0px) calc((100% - 34px) * 0.99 + 0px),calc((100% - 0px) * 0.15 + 0px) calc((100% - 34px) * 0.95 + 0px),calc((100% - 0px) * 0.06 + 0px) calc((100% - 34px) * 0.98 + 0px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.9 + 0px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.76 + 0px),calc((100% - 0px) * 0 + 0px) calc((100% - 34px) * 0.63 + 0px),calc((100% - 0px) * 0.03 + 0px) calc((100% - 34px) * 0.49 + 0px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.36 + 0px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.22 + 0px))}
#panoInner .say-bubble.below::before{left:0;right:0;top:-34px;bottom:0;clip-path:polygon(calc((100% - 0px) * 0.02 + 0px) calc((100% - 34px) * 0.09 + 34px),calc((100% - 0px) * 0.09 + 0px) calc((100% - 34px) * 0.04 + 34px),calc((100% - 0px) * 0.17 + 0px) calc((100% - 34px) * 0.07 + 34px),calc((100% - 0px) * 0.27 + 0px) calc((100% - 34px) * 0.01 + 34px),calc(var(--tail, 50%) - 14px) 37px,var(--tail, 50%) 0px,calc(var(--tail, 50%) + 16px) 37px,calc((100% - 0px) * 0.71 + 0px) calc((100% - 34px) * 0.01 + 34px),calc((100% - 0px) * 0.82 + 0px) calc((100% - 34px) * 0.05 + 34px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.02 + 34px),calc((100% - 0px) * 0.98 + 0px) calc((100% - 34px) * 0.08 + 34px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.2 + 34px),calc((100% - 0px) * 1 + 0px) calc((100% - 34px) * 0.33 + 34px),calc((100% - 0px) * 0.97 + 0px) calc((100% - 34px) * 0.47 + 34px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.6 + 34px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.73 + 34px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.9 + 34px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.96 + 34px),calc((100% - 0px) * 0.81 + 0px) calc((100% - 34px) * 0.93 + 34px),calc((100% - 0px) * 0.7 + 0px) calc((100% - 34px) * 0.99 + 34px),calc((100% - 0px) * 0.59 + 0px) calc((100% - 34px) * 0.95 + 34px),calc((100% - 0px) * 0.48 + 0px) calc((100% - 34px) * 0.98 + 34px),calc((100% - 0px) * 0.37 + 0px) calc((100% - 34px) * 0.94 + 34px),calc((100% - 0px) * 0.26 + 0px) calc((100% - 34px) * 0.99 + 34px),calc((100% - 0px) * 0.15 + 0px) calc((100% - 34px) * 0.95 + 34px),calc((100% - 0px) * 0.06 + 0px) calc((100% - 34px) * 0.98 + 34px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.9 + 34px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.76 + 34px),calc((100% - 0px) * 0 + 0px) calc((100% - 34px) * 0.63 + 34px),calc((100% - 0px) * 0.03 + 0px) calc((100% - 34px) * 0.49 + 34px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.36 + 34px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.22 + 34px))}
@media (max-width:820px){.cameo p::before,.cameo.flip p::before{left:0;right:0;top:-34px;bottom:0;clip-path:polygon(calc((100% - 0px) * 0.02 + 0px) calc((100% - 34px) * 0.09 + 34px),calc((100% - 0px) * 0.09 + 0px) calc((100% - 34px) * 0.04 + 34px),calc((100% - 0px) * 0.17 + 0px) calc((100% - 34px) * 0.07 + 34px),calc((100% - 0px) * 0.27 + 0px) calc((100% - 34px) * 0.01 + 34px),calc(var(--tail, 50%) - 14px) 37px,var(--tail, 50%) 0px,calc(var(--tail, 50%) + 16px) 37px,calc((100% - 0px) * 0.71 + 0px) calc((100% - 34px) * 0.01 + 34px),calc((100% - 0px) * 0.82 + 0px) calc((100% - 34px) * 0.05 + 34px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.02 + 34px),calc((100% - 0px) * 0.98 + 0px) calc((100% - 34px) * 0.08 + 34px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.2 + 34px),calc((100% - 0px) * 1 + 0px) calc((100% - 34px) * 0.33 + 34px),calc((100% - 0px) * 0.97 + 0px) calc((100% - 34px) * 0.47 + 34px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.6 + 34px),calc((100% - 0px) * 0.96 + 0px) calc((100% - 34px) * 0.73 + 34px),calc((100% - 0px) * 0.99 + 0px) calc((100% - 34px) * 0.9 + 34px),calc((100% - 0px) * 0.91 + 0px) calc((100% - 34px) * 0.96 + 34px),calc((100% - 0px) * 0.81 + 0px) calc((100% - 34px) * 0.93 + 34px),calc((100% - 0px) * 0.7 + 0px) calc((100% - 34px) * 0.99 + 34px),calc((100% - 0px) * 0.59 + 0px) calc((100% - 34px) * 0.95 + 34px),calc((100% - 0px) * 0.48 + 0px) calc((100% - 34px) * 0.98 + 34px),calc((100% - 0px) * 0.37 + 0px) calc((100% - 34px) * 0.94 + 34px),calc((100% - 0px) * 0.26 + 0px) calc((100% - 34px) * 0.99 + 34px),calc((100% - 0px) * 0.15 + 0px) calc((100% - 34px) * 0.95 + 34px),calc((100% - 0px) * 0.06 + 0px) calc((100% - 34px) * 0.98 + 34px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.9 + 34px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.76 + 34px),calc((100% - 0px) * 0 + 0px) calc((100% - 34px) * 0.63 + 34px),calc((100% - 0px) * 0.03 + 0px) calc((100% - 34px) * 0.49 + 34px),calc((100% - 0px) * 0.01 + 0px) calc((100% - 34px) * 0.36 + 34px),calc((100% - 0px) * 0.04 + 0px) calc((100% - 34px) * 0.22 + 34px))}}
.flurry{position:absolute;top:-20px;border-radius:45% 55% 50% 50%;background:#fff;opacity:.9;pointer-events:none;z-index:5}

/* 작업실: 화면 안 양옆의 반투명 화살표 */
.pano-wrap{position:relative;margin-top:28px}
.pano-wrap #pano{margin:0}
.pano-arrow{position:absolute;top:50%;translate:0 -50%;z-index:6;width:52px;height:52px;padding:0 0 6px;border:2px solid #fff9;border-radius:50%;background:#16213a73;backdrop-filter:blur(3px);color:#fff;font:400 38px/1 sans-serif;display:grid;place-items:center;cursor:pointer;opacity:.85}
.pano-arrow:hover,.pano-arrow:focus-visible{background:#16213ab8;opacity:1}
.pano-arrow.left{left:16px}.pano-arrow.right{right:16px}
@media (max-width:820px){.pano-arrow{width:42px;height:42px;font-size:30px}.pano-arrow.left{left:8px}.pano-arrow.right{right:8px}}
#look{padding-bottom:28px}

/* 룩북 크게 보기 */
.night figure{cursor:zoom-in}
#zoom{position:fixed;inset:0;z-index:100;background:#16213a00;cursor:zoom-out;outline:none}
#zoom img{position:fixed;max-width:none;object-fit:cover;border:8px solid #fbf7ee;border-radius:2px;box-shadow:0 20px 50px #0008;box-sizing:border-box}

/* 벨트: 찢은 크라프트 종이 + 짝짝이 단추 바퀴 */
#belt::before{height:32px;background:url(assets/belt-buttons.svg) var(--roll,0) 100%/104px 34px repeat-x;filter:drop-shadow(0 -2px 2px #0005)}
#belt::after{bottom:24px;height:44px;border:0;background:url(assets/belt-paper.svg) var(--roll,0) 0/104px 44px repeat-x;filter:drop-shadow(0 4px 3px #0007)}
#belt .item span:last-child{background:#f6e8cd;color:#3a2414;border-radius:0;padding:2px 12px;clip-path:polygon(3% 8%,30% 0,62% 7%,97% 2%,100% 50%,96% 96%,66% 90%,34% 100%,2% 92%,0 48%)}
/* 리본 꼬리가 잘리지 않게: 비율 고정, 가로줄만 화면 밖으로 이어짐 */
.ribbon{height:150px;width:882px;max-width:none;margin-left:calc(50% - 441px);overflow:visible}
@media (max-width:820px){.ribbon{height:110px;width:647px;margin-left:calc(50% - 323.5px)}}
/* 베이지 구역은 선·색 차이 없이 한 장의 종이처럼 */
#goods,.cameo.nap,.cameo.snow,.walk,.walk.sled{background:transparent;border-block:0}
/* 걷는 요정 둘은 반대 방향으로: 위는 오른쪽으로, 아래 썰매는 왼쪽으로 (시간도 어긋나게) */
.walk:not(.sled) i{animation-duration:18s}
.walk.sled i{animation:sled-back 18s steps(120) -9s infinite;scale:-1 1}
.walk.sled i.startle{animation:sled-back 18s steps(120) -9s infinite,startle .7s steps(1)}
.walk.sled i.jump{animation:sled-back 18s steps(120) -9s infinite,jump .9s steps(1)}
.walk:not(.sled) i.startle{animation-duration:18s,.7s}
.walk:not(.sled) i.jump{animation-duration:18s,.9s}
@keyframes sled-back{from{left:100%}to{left:-230px}}
/* 선물 여러 개 + 합체 */
#bench div{width:70px;height:70px}
#bench div:first-child,#bench div:last-child{border-color:var(--mustard)}
@media (max-width:820px){#bench{gap:6px}#bench div{width:58px;height:58px}}
#giftArt{display:flex;justify-content:center;align-items:center;gap:8px;max-width:420px;margin:0 auto;animation:pop .8s steps(6)}
#giftArt .art{flex:1;min-width:0;max-width:220px;aspect-ratio:1;background-size:400% 200%;background-repeat:no-repeat}
#shift #game .camrow #more{animation:pop .5s steps(4)}
/* 메인 제목 크게 */
.hero h1{font-size:clamp(50px,9vw,112px)}
@media (max-width:820px){.hero h1{font-size:clamp(46px,13.5vw,84px)}}
@media (min-width:821px){.hero .spark.s1{left:52%}}

/* 광각 작업실: 난쟁이 눈높이 */
#curve i{background-image:url(assets/room-wide-a.jpg)}
#curve.alt i{background-image:url(assets/room-wide-b.jpg)}

/* 한 장: 왼쪽 선물과 교환권, 오른쪽 편지 */
#reveal,#opened{max-width:880px;width:min(880px,100%)}
.sheet{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;margin:8px 0 18px;text-align:center}
.sheet .side{min-width:0;display:flex;flex-direction:column;justify-content:center}
.sheet .letter{border-left:3px dashed var(--red);padding-left:24px;gap:8px;text-align:left;font-weight:700}
#reveal #letter{flex:1;width:100%;min-height:220px;resize:vertical;border:0;padding:4px 6px;background:repeating-linear-gradient(transparent 0 35px,#b9a27c 35px 36px);background-attachment:local;font:400 21px/36px Gaegu,cursive;color:var(--navy)}
.letter small{font-weight:400;font-size:13px;opacity:.75}
#opened #card{margin:0;border:0;padding:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:22px;line-height:1.9;font-weight:400}
.coupon{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:12px;border:2px dashed var(--navy);background:#fffaee;line-height:1.5}
.coupon small{font-size:12px;opacity:.75}
.coupon i{height:34px;margin:4px auto;width:min(200px,100%);background:repeating-linear-gradient(90deg,#16213a 0 2px,transparent 2px 5px,#16213a 5px 9px,transparent 9px 11px)}
@media (max-width:820px){.sheet{grid-template-columns:1fr}.sheet .letter{border-left:0;border-top:3px dashed var(--red);padding:16px 0 0}}#opened #giftArt{width:100%;max-width:420px}
#opened #giftArt .art{max-width:180px}

/* 엽서: 선물 그림은 크게, 교환권은 작게 + 스티커 */
.sheet .side{position:relative}
.sheet .coupon{align-self:center;width:min(250px,100%);padding:8px 10px;gap:0;font-size:14px;margin-top:10px}
.sheet .coupon small{font-size:11px}
.sheet .coupon i{height:20px;width:130px}
.sticker{position:absolute;z-index:2;width:58px;padding:0;border:0;background:none;translate:0 0;margin:-29px 0 0 -29px;filter:drop-shadow(0 3px 3px #0005)}
button.sticker{cursor:grab;touch-action:none}
.sticker .art,#tray .art{width:100%;margin:0;animation:none}
#reveal .sticker .art,#revealList + * .sticker .art{max-width:none}
.decobar{border-top:3px dashed var(--red);padding:12px 0;margin-bottom:14px}
.decobar p{margin:0 0 8px;font-weight:700}
.decobar small{display:block;font-weight:400;font-size:13px;opacity:.75}
#tray,#papers{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
#tray button{width:52px;height:52px;padding:3px;border:2px dashed #b9a27c;border-radius:6px;background:#fffaee;cursor:pointer}
#papers{margin-top:10px}
#papers button{width:34px;height:34px;border-radius:50%;border:2px solid #b9a27c;cursor:pointer}
#papers button[aria-pressed=true]{border:3px solid var(--red)}
@media (max-width:820px){.sticker{width:46px;margin:-23px 0 0 -23px}}#reveal .sticker .art{animation:none;max-width:none}

/* 언어 선택 */
#lang{flex:none;font:inherit;font-size:14px;color:var(--navy);background:transparent;border:2px solid var(--navy);border-radius:999px;padding:4px 8px;cursor:pointer}
html:lang(en) .hero h1{font-size:clamp(44px,7vw,88px)}
@media (max-width:820px){html:lang(en) .hero h1{font-size:clamp(38px,11vw,72px)}.bar{flex-wrap:wrap}#lang{font-size:13px}}@media (max-width:820px){html:lang(en) .bar,html:lang(zh-CN) .bar{column-gap:6px;padding-inline:12px}html:lang(en) .bar>a:first-child{font-size:14px;gap:6px}html:lang(en) .bar #mute,html:lang(en) #lang{font-size:12px;padding:3px 6px;min-width:0}}
/* 교환권: 옆으로 길고 낮게 */
.sheet .coupon{display:grid;grid-template-columns:1fr 112px;align-items:center;column-gap:10px;row-gap:2px;width:min(380px,100%);padding:8px 12px;text-align:left}
.sheet .coupon>*{grid-column:1}
.sheet .coupon i{grid-column:2;grid-row:1/4;width:100%;height:40px;margin:0}
.sheet .coupon small:last-child{grid-column:1/-1}

/* 그림 칸 (마우스가 있는 기기에서만) */
.drawbox{margin-top:16px}
#tools,#inks,.padrow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:8px}
#tools button,.padrow button{font:inherit;font-size:14px;padding:3px 14px;border:2px solid #b9a27c;border-radius:999px;background:#fffaee;color:var(--navy);cursor:pointer}
#tools button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff6e6}
#inks button{width:28px;height:28px;border-radius:50%;border:3px solid #fffaee;box-shadow:0 0 0 1px #b9a27c;cursor:pointer}
#inks button[aria-pressed=true]{box-shadow:0 0 0 3px var(--mustard)}
@media (hover:none) and (pointer:coarse){.drawbox{display:none}}
/* 엽서 위에 바로 꾸미기: 선물 칸(4:3) 위에 그림 층 */
.artcard{position:relative;width:min(420px,100%);aspect-ratio:4/3;margin:0 auto;container-type:inline-size}
.artcard .goods{position:absolute;inset:0;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:2cqw;margin:0;padding:0;list-style:none}
.artcard .goods li{display:flex;flex-direction:column;align-items:center;width:31cqw;line-height:1.3}
.artcard .goods[data-n="1"] li{width:60cqw}
.artcard .goods[data-n="2"] li{width:45cqw}
.artcard .goods .art{display:block;width:100%;max-width:none;aspect-ratio:1;margin:0;background-size:400% 200%;background-repeat:no-repeat}
.artcard .goods .fused .art{filter:drop-shadow(0 0 12px #e8b53c)}
.artcard .goods b{font-size:max(12px,4.2cqw);text-align:center;word-break:keep-all}
.artcard canvas{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;aspect-ratio:auto;margin:0;background:none;border:0;touch-action:auto}
.artcard canvas[hidden]{display:none}
#pad{cursor:crosshair}
@media (hover:none) and (pointer:coarse){#pad{cursor:default}}
/* 꾸미기 옵션: 왼쪽 스티커·종이색, 오른쪽 크레용 */
.decobar{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.decobar>.drawbox{margin:0;padding-left:20px;border-left:3px dashed var(--red)}
.decobar #tray{max-width:240px;margin:0 auto 8px}
@media (max-width:420px){.decobar{grid-template-columns:1fr;gap:10px}.decobar>.drawbox{padding:10px 0 0;border-left:0;border-top:3px dashed var(--red)}}
@media (hover:none) and (pointer:coarse){.decobar{grid-template-columns:1fr}.decobar>.drawbox{display:none}.decobar #tray{max-width:none}}
/* 요정이 폴짝 뛰어도 글자와 버튼 뒤로 지나가게 */
.hero-copy{position:relative;z-index:2}
@media (max-width:700px){.decobar{gap:10px}.decobar>.drawbox{padding-left:10px}.decobar #tray{gap:5px;max-width:200px}.decobar #tray button{width:44px;height:44px}.decobar #inks{gap:4px}}
@media (max-width:560px){.decobar #tray{max-width:170px}.decobar #tray button{width:38px;height:38px;padding:2px}.decobar #inks button{width:30px;height:30px;min-width:0}}

/* 이미지 저장 창 */
#saveBox{width:min(440px,100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:14px;border:3px solid var(--red);border-radius:8px;background:#fbf4e3;color:#16213a;text-align:center}
#saveBox::backdrop{background:#0b1020cc}
#saveBox img{display:block;max-width:100%;max-height:56dvh;margin:0 auto;-webkit-touch-callout:default;user-select:auto}
#saveBox p{margin:10px 0;font-size:14px;line-height:1.6;word-break:keep-all}
#saveBox .actions{justify-content:center;margin:0}
/* 크레용 켜기/끄기: 켠 동안에만 선물 칸에 그려집니다 */
#crayon{display:block;margin:0 auto 10px;padding:6px 16px;border:2px solid var(--navy);border-radius:999px;background:#fffaee;color:var(--navy);font:inherit;font-weight:700;cursor:pointer}
#crayon[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff6e6}
#pad{cursor:default}
#pad.on{cursor:crosshair;outline:3px dashed var(--red)}#saveBox{position:fixed;inset:0;margin:auto;height:fit-content}

/* 태블릿 세로(600~820px): 첫 화면 요정은 작게, 엽서는 두 칸 */
@media (min-width:600px) and (max-width:820px){
  .hero-art{width:min(440px,100%);margin-inline:auto}
  .sheet{grid-template-columns:1fr 1fr;gap:18px}
  .sheet .letter{border-left:3px dashed var(--red);border-top:0;padding:0 0 0 18px}
  .sheet .coupon{grid-template-columns:1fr 80px}
}
@media (max-width:420px){.sheet .coupon{grid-template-columns:1fr 84px}}
/* PC: 요정은 오른쪽으로, 제목은 줄 그대로 */
@media (min-width:821px){.hero-art{translate:clamp(0px,11vw,200px) 0}html:lang(ko) .hero h1{white-space:nowrap}}
/* PC(마우스, 넓은 화면): 작업실 사진을 한눈에, 가운데 정렬. 좌우 버튼 없음 */
@media (min-width:1025px) and (hover:hover) and (pointer:fine){
  .pano-wrap #pano{width:min(100%,calc((100vh - 120px) * 3));height:auto;aspect-ratio:3/1;margin-inline:auto;cursor:default}
  .pano-wrap #panoInner{width:100%;height:100%}
  .pano-arrow,.swipe{display:none}
}