:root {
    --cream: #FFF7E8;
    --strawberry: #FFB7CF;
    --butter: #FFE779;
    --mint: #9EF2D1;
    --lavender: #B99CFF;
    --blue: #7EDBFF;
    --cocoa: #4A2C3B;
    --cherry: #FF4F7B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--cocoa);
    font-family: "Gowun Dodum", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 231, 121, .7), transparent 18rem),
        radial-gradient(circle at 86% 22%, rgba(126, 219, 255, .55), transparent 20rem),
        linear-gradient(135deg, #ffd8e6 0%, #fff2c6 45%, #c9f8e7 100%);
    overflow-x: hidden;
}

.desk-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(90deg, rgba(74,44,59,.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1.5px);
    background-size: 42px 42px, 42px 42px, 18px 18px;
    z-index: 0;
}

.scene {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 7vh 7vw;
    isolation: isolate;
}

.paper {
    position: relative;
    width: min(760px, 84vw);
    min-height: 430px;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: var(--cream);
    border: 4px solid rgba(255,255,255,.9);
    border-radius: 38px;
    box-shadow: 0 34px 0 rgba(185,156,255,.18), 0 42px 70px rgba(74,44,59,.22), inset 0 5px 18px rgba(255,255,255,.95);
    transform: rotate(-3deg);
    z-index: 2;
}

.paper::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px dashed rgba(74,44,59,.18);
    border-radius: 28px;
    pointer-events: none;
}

.label-small, .scene-tag, .tray-title, .side-tabs a, .sticker-moods button, .press-stamp, .label-stack span, .memo-tab, .stamp {
    font-family: "Jua", sans-serif;
    letter-spacing: .03em;
}

.label-small {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .55rem 1rem;
    background: var(--butter);
    border-radius: 999px;
    box-shadow: 0 7px 0 rgba(74,44,59,.12);
}

.wordmark, h1, h2 {
    font-family: "Bagel Fat One", system-ui;
    font-weight: 400;
    line-height: .9;
    margin: 0;
}

.wordmark {
    font-size: clamp(4.1rem, 13vw, 10.5rem);
    color: var(--cocoa);
    text-shadow: 0 8px 0 #ffffff, 0 16px 0 rgba(255,79,123,.22);
    transition: color .45s ease, text-shadow .45s ease, transform .45s cubic-bezier(.2,1.5,.4,1);
}

.wordmark.decorated {
    color: var(--cherry);
    transform: rotate(1deg) scale(1.03);
    text-shadow: 0 5px 0 var(--butter), 0 10px 0 var(--blue), 0 18px 18px rgba(74,44,59,.22);
}

h2 {
    font-size: clamp(3.3rem, 9vw, 7.5rem);
    color: var(--cherry);
    text-shadow: 0 6px 0 var(--butter);
}

p {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.65;
    max-width: 58ch;
}

.ritual-copy { margin-top: 2rem; }

.press-stamp, .sticker-moods button {
    border: 0;
    color: var(--cocoa);
    background: var(--strawberry);
    border-radius: 999px;
    padding: .85rem 1.25rem;
    box-shadow: 0 8px 0 rgba(74,44,59,.18), inset 0 3px 0 rgba(255,255,255,.8);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.press-stamp:hover, .sticker-moods button:hover { transform: translateY(-4px) rotate(-2deg); }
.press-stamp:active, .sticker-moods button:active { transform: translateY(4px); box-shadow: 0 3px 0 rgba(74,44,59,.18); }

.side-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.side-tabs a {
    color: var(--cocoa);
    text-decoration: none;
    background: var(--cream);
    padding: .75rem .65rem .75rem 1rem;
    border: 2px solid white;
    border-right: 0;
    border-radius: 18px 0 0 18px;
    box-shadow: -6px 8px 0 rgba(185,156,255,.22);
}

.sticker-tray {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .7rem;
    border-radius: 24px;
    background: rgba(255,247,232,.78);
    border: 2px solid white;
    box-shadow: 0 16px 30px rgba(74,44,59,.16);
    backdrop-filter: blur(6px);
}

.tray-title { font-size: .85rem; }
.tray-charm {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(185,156,255,.25);
    opacity: .35;
    transform: scale(.8);
    transition: transform .55s cubic-bezier(.2,1.7,.4,1), opacity .35s ease, background .35s ease;
}
.tray-charm.active { opacity: 1; transform: scale(1) rotate(-8deg); background: var(--butter); }

.memo-holes { position: absolute; left: 44px; top: 22px; display: flex; gap: 14px; }
.memo-holes i { width: 14px; height: 14px; border-radius: 50%; background: #f0dfc4; box-shadow: inset 0 3px 4px rgba(74,44,59,.15); }
.mimi-eyes { display: flex; gap: 18px; margin: 1.5rem 0 0 .7rem; }
.mimi-eyes b { width: 28px; height: 28px; border-radius: 50%; background: var(--cocoa); box-shadow: inset 6px 6px 0 rgba(255,255,255,.35), 0 9px 0 rgba(185,156,255,.22); animation: blink 4s infinite; }

.floating, .puffy, .rhinestone, .washi, .bow, .pearl-chain, .memo-tab, .charm-ring, .phone-charm, .drawer, .bead, .diary-lock, .leftover, .scissors { position: absolute; z-index: 3; }
.sheet { width: 190px; height: 260px; border-radius: 28px; background: rgba(126,219,255,.38); border: 3px solid rgba(255,255,255,.75); box-shadow: 0 22px 40px rgba(74,44,59,.16); display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; padding: 30px; }
.sheet span { border-radius: 50%; background: radial-gradient(circle at 35% 30%, white 0 18%, var(--strawberry) 19% 100%); box-shadow: 0 6px 0 rgba(74,44,59,.12); }
.sheet-blue { right: 7vw; top: 9vh; transform: rotate(12deg); animation: floaty 5s ease-in-out infinite; }
.tape { top: 13vh; left: 8vw; padding: .8rem 3.5rem; background: rgba(255,183,207,.65); border: 2px dashed rgba(74,44,59,.16); transform: rotate(-18deg); font-family: "Nunito Sans", sans-serif; }
.scissors { left: 9vw; bottom: 10vh; width: 120px; height: 36px; border-radius: 999px; background: var(--lavender); transform: rotate(24deg); }
.scissors::before, .scissors::after { content: ""; position: absolute; width: 48px; height: 48px; border: 10px solid var(--blue); border-radius: 50%; left: -30px; top: -34px; }
.scissors::after { top: 18px; }
.leftover { font-family: "Bagel Fat One"; font-size: 3rem; color: var(--lavender); text-shadow: 0 4px 0 white; }
.glyph-a { top: 21vh; left: 20vw; animation: pop 3s infinite; }
.glyph-b { right: 22vw; bottom: 15vh; color: var(--cherry); animation: pop 3.7s infinite; }

.sticker-peel { background: linear-gradient(160deg, rgba(255,183,207,.25), rgba(255,231,121,.24)); }
.tilted-card { transform: rotate(4deg); }
.peel-sticker { position: absolute; right: -42px; top: -42px; width: 170px; height: 170px; border-radius: 36px; background: linear-gradient(135deg, white 0 16%, var(--strawberry) 17% 100%); box-shadow: 0 18px 0 rgba(74,44,59,.13); display: grid; place-items: center; font-family: "Jua"; font-size: 1.5rem; transition: transform .6s cubic-bezier(.2,1.8,.35,1), border-radius .5s ease; }
.peel-sticker::before { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 58px 58px 0; border-color: transparent var(--cream) transparent transparent; filter: drop-shadow(-8px 8px 7px rgba(74,44,59,.18)); transition: transform .5s ease; transform-origin: top right; }
.peel-sticker.lifted { transform: rotate(12deg) translateY(-18px) scale(1.05); border-radius: 50px; }
.peel-sticker.lifted::before { transform: rotate(-26deg) translate(-10px, 10px); }
.sticker-moods { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.puffy { font-family: "Bagel Fat One"; font-size: clamp(5rem, 12vw, 11rem); color: var(--butter); text-shadow: 0 10px 0 var(--strawberry), 0 20px 25px rgba(74,44,59,.2); animation: bounceIn 1.3s both; }
.puffy-ko { left: 8vw; top: 18vh; transform: rotate(-18deg); }
.puffy-mi { right: 10vw; bottom: 16vh; color: var(--blue); animation-delay: .15s; }
.heart-one { right: 24vw; top: 16vh; color: var(--cherry); font-size: 4rem; filter: drop-shadow(0 8px 0 rgba(74,44,59,.13)); }
.washi-yellow { left: 17vw; bottom: 12vh; width: 290px; height: 52px; background: rgba(255,231,121,.75); transform: rotate(-9deg); border: 2px dashed rgba(74,44,59,.18); }

.ribbon-map { background: linear-gradient(20deg, rgba(158,242,209,.25), rgba(185,156,255,.25)); }
.ribbon-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ribbon-svg path { fill: none; stroke: var(--cherry); stroke-width: 28; stroke-linecap: round; stroke-dasharray: 1800; stroke-dashoffset: var(--ribbon-offset, 1800); filter: drop-shadow(0 12px 0 rgba(74,44,59,.12)); transition: stroke-dashoffset .2s linear; }
.scallop-card { border-radius: 50px; transform: rotate(-2deg); clip-path: polygon(3% 6%, 96% 2%, 100% 91%, 92% 100%, 4% 96%, 0 14%); }
.scene-tag { display: inline-block; background: var(--mint); padding: .55rem 1rem; border-radius: 999px; box-shadow: 0 7px 0 rgba(74,44,59,.12); margin-bottom: 1rem; }
.label-stack { display: flex; flex-wrap: wrap; gap: .7rem; }
.label-stack span { background: white; padding: .65rem 1rem; border-radius: 12px; box-shadow: 0 6px 0 rgba(74,44,59,.12); transform: rotate(var(--tilt, -2deg)); }
.label-stack span:nth-child(2) { --tilt: 2deg; background: var(--blue); }
.label-stack span:nth-child(3) { --tilt: -4deg; background: var(--strawberry); }
.bow-main { right: 12vw; top: 18vh; width: 160px; height: 100px; background: var(--strawberry); border-radius: 50% 10% 50% 10%; transform: rotate(20deg); box-shadow: 0 12px 0 rgba(74,44,59,.13); }
.bow-main::before { content: ""; position: absolute; left: -88px; top: 0; width: 160px; height: 100px; background: var(--strawberry); border-radius: 10% 50% 10% 50%; }
.bow-main i { position: absolute; width: 54px; height: 76px; background: var(--cherry); border-radius: 22px; left: 52px; top: 12px; z-index: 2; }
.pearl-chain { left: 7vw; top: 22vh; display: flex; gap: 7px; transform: rotate(-28deg); }
.pearl-chain i { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, white 0 26%, var(--cream) 27% 100%); box-shadow: 0 5px 0 rgba(74,44,59,.12); }
.memo-tab { right: 10vw; bottom: 12vh; background: var(--butter); padding: 2rem 1.3rem; border-radius: 20px 20px 6px 6px; transform: rotate(-9deg); }

.charm-cloud { background: linear-gradient(145deg, rgba(126,219,255,.3), rgba(255,183,207,.28)); }
.cloud-copy { position: relative; z-index: 5; max-width: 680px; padding: 3rem; border-radius: 48px; background: rgba(255,247,232,.78); border: 3px solid white; box-shadow: 0 24px 50px rgba(74,44,59,.16); transform: rotate(2deg); }
.charm-ring { width: clamp(94px, 12vw, 150px); height: clamp(94px, 12vw, 150px); border-radius: 50%; display: grid; place-items: center; font-family: "Bagel Fat One"; font-size: 4rem; background: var(--cream); border: 13px solid var(--lavender); box-shadow: 0 18px 0 rgba(74,44,59,.13), inset 0 5px 0 white; animation: floaty 4.4s ease-in-out infinite; }
.ring-one { left: 12vw; top: 18vh; color: var(--cherry); }
.ring-two { right: 15vw; top: 12vh; border-color: var(--mint); animation-delay: .4s; }
.ring-three { right: 22vw; bottom: 12vh; border-color: var(--butter); color: var(--blue); animation-delay: .8s; }
.phone-charm { left: 19vw; bottom: 15vh; width: 90px; height: 150px; border-radius: 34px; background: var(--strawberry); border: 6px solid white; box-shadow: 0 18px 0 rgba(74,44,59,.13); }
.phone-charm span { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 8px solid var(--blue); left: 22px; top: -38px; }
.phone-charm b { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--cherry); left: 21px; bottom: 23px; }
.drawer { right: 8vw; bottom: 25vh; padding: 2.2rem 2.8rem; background: var(--mint); border-radius: 26px; box-shadow: inset 0 8px 0 rgba(255,255,255,.65), 0 16px 0 rgba(74,44,59,.13); font-family: "Jua"; transform: rotate(7deg); }
.bead { width: 30px; height: 30px; border-radius: 50%; background: var(--cherry); box-shadow: inset 7px 7px 0 rgba(255,255,255,.5), 0 8px 0 rgba(74,44,59,.13); transition: transform .2s ease-out; }
.bead-a { left: 31vw; top: 26vh; }
.bead-b { right: 34vw; bottom: 30vh; background: var(--blue); }
.bead-c { left: 44vw; bottom: 18vh; background: var(--butter); }

.finished-mimi-shrine { background: radial-gradient(circle at center, rgba(255,231,121,.55), transparent 42%), linear-gradient(155deg, rgba(255,183,207,.28), rgba(158,242,209,.28)); }
.shrine-paper { transform: rotate(1deg); text-align: center; overflow: hidden; }
.shrine-paper h2 { font-size: clamp(4rem, 11vw, 10rem); color: var(--cherry); text-shadow: 0 7px 0 var(--butter), 0 14px 0 var(--blue); }
.stamp { position: absolute; right: 2rem; top: 2rem; color: var(--cream); background: var(--cherry); padding: 1rem 1.2rem; border-radius: 18px; transform: rotate(12deg); box-shadow: 0 8px 0 rgba(74,44,59,.16); }
.gloss { position: absolute; width: 260px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.62); transform: rotate(-28deg); }
.gloss-one { left: 7%; top: 16%; }
.gloss-two { right: 8%; bottom: 20%; width: 190px; }
.final-charms { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.final-charms span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--butter); font-family: "Bagel Fat One"; font-size: 1.8rem; box-shadow: 0 9px 0 rgba(74,44,59,.13); animation: pop 2.8s infinite; }
.halo-stars i { position: absolute; width: 22px; height: 22px; background: var(--butter); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%); animation: twinkle 1.9s infinite; }
.halo-stars i:nth-child(1) { left: 17vw; top: 20vh; }
.halo-stars i:nth-child(2) { right: 18vw; top: 24vh; animation-delay: .2s; background: var(--blue); }
.halo-stars i:nth-child(3) { left: 23vw; bottom: 22vh; animation-delay: .4s; background: var(--strawberry); }
.halo-stars i:nth-child(4) { right: 25vw; bottom: 18vh; animation-delay: .6s; }
.halo-stars i:nth-child(5) { left: 50vw; top: 12vh; animation-delay: .8s; background: var(--mint); }
.diary-lock { right: 11vw; bottom: 10vh; width: 90px; height: 80px; border-radius: 18px; background: var(--lavender); box-shadow: 0 12px 0 rgba(74,44,59,.13); }
.diary-lock::before { content: ""; position: absolute; left: 17px; top: -50px; width: 56px; height: 64px; border: 10px solid var(--lavender); border-bottom: 0; border-radius: 50px 50px 0 0; }

.scene.in-view .paper { animation: paperLand .9s cubic-bezier(.2,1.6,.4,1) both; }
.scene.in-view .puffy, .scene.in-view .charm-ring, .scene.in-view .bow { animation-play-state: running; }
body.mood-strawberry { --active-mood: #FFB7CF; }
body.mood-butter { --active-mood: #FFE779; }
body.mood-mint { --active-mood: #9EF2D1; }
body[class*="mood-"] .wordmark { text-shadow: 0 6px 0 var(--active-mood), 0 13px 0 var(--blue), 0 18px 18px rgba(74,44,59,.2); }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r, 12deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--r, 12deg) + 4deg)); } }
@keyframes pop { 0%,100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.16) rotate(7deg); } }
@keyframes bounceIn { 0% { opacity: 0; transform: translateY(80px) scale(.5) rotate(-22deg); } 70% { opacity: 1; transform: translateY(-18px) scale(1.08) rotate(8deg); } 100% { opacity: 1; } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes twinkle { 0%,100% { transform: scale(.8) rotate(0); opacity: .55; } 50% { transform: scale(1.35) rotate(20deg); opacity: 1; } }
@keyframes paperLand { from { opacity: .45; transform: translateY(45px) rotate(-7deg) scale(.96); } to { opacity: 1; } }

@media (max-width: 760px) {
    .scene { padding: 7vh 4vw; }
    .paper, .cloud-copy { width: 91vw; padding: 2rem; }
    .side-tabs { display: none; }
    .sticker-tray { left: .5rem; right: .5rem; justify-content: center; }
    .sheet, .scissors, .drawer { opacity: .5; }
    .bow-main { right: -8vw; }
}
