/* =========================================================
   yongzoon.com — McBling charm-strap shrine
   Palette: #ffd7e8 #ff5ca8 #c8e6ff #fff5c4 #9a6bff #d4d0e3
            #e8e8ee #ffffff #f4eaff #1a1422 #f7b84a #6a6880
   Fonts:   Rubik Glitch, Monoton, Gloock, Black Han Sans, Cherry Bomb One, Inter
   ========================================================= */

:root {
    --pink-base: #ffd7e8;
    --pink-hot: #ff5ca8;
    --blue-vinyl: #c8e6ff;
    --cream: #fff5c4;
    --violet: #9a6bff;
    --chrome-mid: #d4d0e3;
    --chrome-hi: #e8e8ee;
    --chrome-hi2: #ffffff;
    --chrome-lav: #f4eaff;
    --chrome-sh: #6a6880;
    --ink: #1a1422;
    --gold: #f7b84a;

    --chrome-conic: conic-gradient(from 210deg at 50% 50%,
        #e8e8ee 0deg, #d4d0e3 40deg, #6a6880 110deg, #d4d0e3 180deg,
        #f7b84a 230deg, #e8e8ee 290deg, #9a6bff 340deg, #e8e8ee 360deg);

    --font-display: 'Rubik Glitch', 'Inter', system-ui, sans-serif;
    --font-mono-chrome: 'Monoton', 'Inter', sans-serif;
    --font-body: 'Gloock', 'Inter', Georgia, serif;
    --font-cjk: 'Black Han Sans', 'Inter', sans-serif;
    --font-jelly: 'Cherry Bomb One', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--pink-base);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100%;
}

body {
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,0.35) 0, transparent 40%),
        radial-gradient(circle at 82% 78%, rgba(154,107,255,0.14) 0, transparent 50%),
        linear-gradient(180deg, #ffd7e8 0%, #ffe1ec 40%, #ffd1e4 100%);
    background-attachment: fixed;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: repeating-conic-gradient(from 0deg, rgba(0,0,0,0.3) 0deg 1deg, transparent 1deg 3deg);
    mix-blend-mode: overlay;
}

/* ====== Chrome rotate global animation ====== */
@keyframes chrome-rotate {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}
@keyframes chrome-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes twinkle {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.35); opacity: 1; }
}
@keyframes pendulum {
    0%, 100% { transform: rotate(-2deg); }
    50%      { transform: rotate(2deg); }
}
@keyframes swing-active {
    0%   { transform: rotate(0deg); }
    18%  { transform: rotate(16deg); }
    36%  { transform: rotate(-10deg); }
    54%  { transform: rotate(6deg); }
    72%  { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}
@keyframes phone-open {
    0%   { transform: rotate(8deg) scale(0.98); }
    100% { transform: rotate(8deg) scale(1); }
}
@keyframes upper-fold {
    0%   { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
@keyframes antenna-wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(2deg); }
}
@keyframes tassel-sway {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(2px) rotate(2deg); }
}
@keyframes lcd-flicker {
    0%, 97%, 100% { opacity: 0.72; }
    98% { opacity: 0.5; }
    99% { opacity: 0.85; }
}
@keyframes pulse-grow {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes fade-out {
    0%   { opacity: 0.45; }
    100% { opacity: 0; }
}
@keyframes mirror-phrase-in {
    0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================================
   Cursor Glow
   ========================================================= */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 160px; height: 160px;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,92,168,0.45) 0%, rgba(255,92,168,0.18) 35%, transparent 70%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* =========================================================
   Rhinestone field (twinkle constellation)
   ========================================================= */
.rhinestone-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.rhinestone-field .rs-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f4eaff 45%, rgba(154,107,255,0) 100%);
    box-shadow: 0 0 6px rgba(255,255,255,0.6), 0 0 2px rgba(154,107,255,0.5);
    animation: twinkle 3.2s ease-in-out infinite;
    opacity: 0.75;
}
.rhinestone-field .rs-dot::after {
    content: '';
    position: absolute;
    top: 20%; left: 22%;
    width: 22%; height: 22%;
    border-radius: 50%;
    background: #fff;
}

/* Rhinestone ripple (click effect) */
.rs-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f4eaff 45%, rgba(154,107,255,0) 100%);
    border: 1px solid rgba(154,107,255,0.5);
    transform: translate(-50%, -50%);
    animation: pulse-grow 0.9s ease-out forwards;
}

/* =========================================================
   Charm Strap (right-edge navigation)
   ========================================================= */
.charm-strap {
    position: fixed;
    top: 0; right: 0;
    width: 3.2vw;
    min-width: 52px;
    height: 100vh;
    z-index: 100;
    pointer-events: none;
}
.strap-rope {
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.75;
}
.strap-charms {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    pointer-events: auto;
}
.strap-charm {
    position: relative;
    width: 46px; height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform-origin: top center;
    animation: pendulum 4.5s ease-in-out infinite;
    transition: filter 0.3s;
}
.strap-charm:nth-child(1) { animation-delay: -0.8s; }
.strap-charm:nth-child(2) { animation-delay: -1.6s; }
.strap-charm:nth-child(3) { animation-delay: -2.4s; }
.strap-charm:nth-child(4) { animation-delay: -3.2s; }

.strap-charm.active {
    animation: swing-active 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 10px rgba(255,92,168,0.8));
}
.strap-charm.inactive {
    opacity: 0.78;
}
.strap-charm .chain {
    width: 2px;
    height: 20px;
    background:
      linear-gradient(180deg, #e8e8ee 0%, #d4d0e3 40%, #6a6880 60%, #d4d0e3 100%);
    background-size: 100% 8px;
    background-repeat: repeat-y;
}
.strap-charm .charm-face {
    position: relative;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--chrome-conic);
    animation: chrome-rotate 18s linear infinite;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.6),
        inset 0 -1px 3px rgba(0,0,0,0.3),
        0 2px 4px rgba(26,20,34,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid var(--ink);
}
.strap-charm .charm-svg {
    width: 28px; height: 28px;
    position: relative;
    z-index: 2;
}
.strap-charm .charm-label {
    margin-top: 2px;
    font-family: var(--font-jelly);
    font-size: 9px;
    color: var(--pink-hot);
    text-shadow: 0 1px 0 var(--cream);
    letter-spacing: 0.04em;
}

/* =========================================================
   Sections common
   ========================================================= */
main { position: relative; z-index: 5; }

.section {
    position: relative;
    min-height: 100vh;
    padding: 8vh 9vw 8vh 6vw;
    overflow: hidden;
}

.scene-tag {
    font-family: var(--font-jelly);
    color: var(--pink-hot);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 0 var(--cream);
    padding: 6px 12px;
    border: 2px dashed var(--violet);
    border-radius: 22px;
    display: inline-block;
    background: rgba(255,245,196,0.55);
    transform: rotate(-3deg);
    margin-bottom: 2rem;
}

.section-mega {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 13rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
    margin: 0 0 1.6rem -1vw;
    color: var(--ink);
    background: var(--chrome-conic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0 rgba(255,92,168,0.35);
    animation: chrome-rotate 24s linear infinite;
}

.section-prose {
    font-family: var(--font-body);
    font-size: 17.5px;
    line-height: 1.55;
    color: var(--ink);
    max-width: 560px;
    margin: 0 0 2rem;
    font-style: italic;
    font-feature-settings: "ss01" on;
}

/* =========================================================
   SECTION 1 — Clamshell
   ========================================================= */
.clamshell-section {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    perspective: 1400px;
}
.clamshell-section .scene-tag {
    position: absolute;
    top: 4vh; left: 6vw;
}

.clamshell {
    position: relative;
    width: min(420px, 78vw);
    height: min(720px, 84vh);
    transform: rotate(8deg);
    transform-style: preserve-3d;
    will-change: transform;
    animation: phone-open 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.phone-antenna {
    position: absolute;
    top: -60px; right: 20px;
    width: 6px; height: 70px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--ink) 90%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom center;
    animation: antenna-wiggle 3s ease-in-out infinite;
}
.phone-antenna::after {
    content: '';
    position: absolute;
    top: -10px; left: -4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, var(--gold) 50%, var(--ink) 100%);
    box-shadow: 0 0 8px rgba(247,184,74,0.7);
}

.phone-upper {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48%;
    background:
      linear-gradient(180deg, #ff8bc0 0%, #ff5ca8 60%, #cd3f80 100%);
    border-radius: 28px 28px 12px 12px;
    border: 3px solid var(--ink);
    box-shadow:
      inset 0 2px 8px rgba(255,255,255,0.45),
      inset 0 -4px 10px rgba(0,0,0,0.3),
      0 10px 24px rgba(26,20,34,0.35);
    transform-origin: bottom center;
    animation: upper-fold 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    overflow: hidden;
    padding: 22px 18px 14px;
}

.phone-top-speaker {
    width: 70px; height: 6px;
    background: var(--ink);
    border-radius: 4px;
    margin: 0 auto 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.lcd {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.8;
    background: linear-gradient(180deg, #c8e6ff 0%, #a2d2f8 100%);
    border-radius: 8px;
    border: 2px solid var(--ink);
    padding: 14px 12px;
    color: var(--ink);
    overflow: hidden;
    animation: lcd-flicker 5s steps(20, end) infinite;
    font-family: var(--font-display);
}
.lcd-bleed {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(200,230,255,0.8) 0%, transparent 65%);
    pointer-events: none;
}
.lcd-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.2vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-shadow:
      0 0 8px rgba(200,230,255,0.9),
      0 0 2px rgba(154,107,255,0.5);
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    word-break: break-word;
}
.lcd-subtext {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    position: relative;
    z-index: 2;
    color: var(--ink);
    opacity: 0.88;
}
.lcd-signal {
    position: absolute;
    top: 8px; right: 10px;
    display: flex;
    gap: 1.5px;
    align-items: flex-end;
    z-index: 3;
}
.lcd-signal span {
    display: block;
    width: 3px;
    background: var(--ink);
}
.lcd-signal span:nth-child(1){ height: 3px; }
.lcd-signal span:nth-child(2){ height: 5px; }
.lcd-signal span:nth-child(3){ height: 7px; }
.lcd-signal span:nth-child(4){ height: 9px; opacity: 0.4; }
.lcd-signal span:nth-child(5){ height: 11px; opacity: 0.2; }
.lcd-battery {
    position: absolute;
    bottom: 6px; right: 10px;
    font-family: var(--font-jelly);
    font-size: 10px;
    color: var(--ink);
    z-index: 3;
}

.phone-hinge {
    position: absolute;
    top: 47%; left: 6%; right: 6%;
    height: 5%;
    background: linear-gradient(180deg, #a888a0 0%, #1a1422 60%, #a888a0 100%);
    border-radius: 4px;
    border-top: 1.5px solid rgba(255,255,255,0.2);
    border-bottom: 1.5px solid rgba(0,0,0,0.5);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.4);
}
.phone-hinge::before, .phone-hinge::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--chrome-conic);
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    animation: chrome-rotate 14s linear infinite;
}
.phone-hinge::before { left: -6px; }
.phone-hinge::after  { right: -6px; }

.phone-lower {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48%;
    background:
      linear-gradient(180deg, #ff6eb2 0%, #ff5ca8 50%, #c43a7a 100%);
    border-radius: 12px 12px 28px 28px;
    border: 3px solid var(--ink);
    box-shadow:
      inset 0 4px 10px rgba(255,255,255,0.35),
      inset 0 -2px 6px rgba(0,0,0,0.35),
      0 12px 24px rgba(26,20,34,0.4);
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.key {
    position: relative;
    aspect-ratio: 2 / 1.1;
    border-radius: 8px;
    border: 1.5px solid var(--ink);
    background:
      radial-gradient(ellipse at 50% 30%, #fff5c4 0%, #ffd7e8 60%, #ff8bc0 100%);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow:
      inset 0 1px 2px rgba(255,255,255,0.7),
      inset 0 -2px 3px rgba(0,0,0,0.25),
      0 1px 2px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.key small {
    font-family: var(--font-jelly);
    font-size: 7px;
    color: var(--pink-hot);
    margin-top: 1px;
    letter-spacing: 0.08em;
}
.key:active { transform: translateY(2px) scale(0.97); }
.key:hover { filter: brightness(1.08); }

.phone-brand {
    text-align: center;
    font-family: var(--font-mono-chrome);
    font-size: 10px;
    color: var(--cream);
    letter-spacing: 0.3em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
    padding-top: 4px;
}
.phone-brand span {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 0.2em;
}

.welcome-line {
    position: absolute;
    bottom: 6vh; left: 6vw;
    max-width: 420px;
    font-family: var(--font-body);
    font-size: 17.5px;
    line-height: 1.55;
    font-style: italic;
    color: var(--ink);
    font-feature-settings: "ss01" on;
    z-index: 4;
}
.welcome-line em {
    background: var(--cream);
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(154,107,255,0.35);
    display: inline;
}

.corner-stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.corner-sticker {
    position: absolute;
    width: 40px; height: 40px;
    filter: drop-shadow(0 2px 2px rgba(26,20,34,0.3));
}

/* =========================================================
   SECTION 2 — Sticker Page
   ========================================================= */
.sticker-section {
    background:
      radial-gradient(circle at 8% 10%, rgba(200,230,255,0.35) 0%, transparent 40%),
      radial-gradient(circle at 92% 80%, rgba(255,245,196,0.45) 0%, transparent 40%),
      var(--pink-base);
    padding-top: 4vh;
}
.sticker-section .section-mega {
    position: relative;
    z-index: 5;
    margin-left: -2vw;
}

.sticker-field {
    position: relative;
    min-height: 90vh;
    margin-top: -4vh;
}

.sticker {
    position: absolute;
    width: clamp(240px, 28vw, 360px);
    padding: 22px 24px;
    background:
      linear-gradient(135deg, #fff5f9 0%, #ffe1ec 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.52;
    font-feature-settings: "ss01" on;
    clip-path: polygon(
        0% 8%, 4% 4%, 10% 7%, 15% 3%, 22% 6%, 28% 2%, 34% 6%, 40% 3%, 48% 7%, 54% 3%,
        60% 6%, 66% 3%, 72% 6%, 80% 3%, 86% 7%, 92% 3%, 96% 7%, 100% 10%,
        97% 16%, 100% 22%, 96% 28%, 100% 34%, 96% 42%, 100% 48%, 96% 56%, 100% 64%, 96% 72%, 100% 80%, 96% 88%, 100% 94%,
        94% 98%, 88% 94%, 82% 98%, 76% 94%, 70% 98%, 64% 94%, 58% 98%, 52% 94%, 46% 98%, 40% 94%, 34% 98%, 28% 94%, 22% 98%, 16% 94%, 10% 98%, 4% 94%, 0% 90%,
        3% 84%, 0% 76%, 3% 68%, 0% 60%, 3% 52%, 0% 44%, 3% 36%, 0% 28%, 3% 20%, 0% 14%
    );
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    filter: drop-shadow(0 6px 18px rgba(26,20,34,0.18));
    z-index: 5;
}
.sticker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(200,230,255,0.3) 0%, transparent 55%);
    pointer-events: none;
}
.sticker-perf {
    position: absolute;
    inset: 6px;
    border: 2px dashed var(--cream);
    pointer-events: none;
    border-radius: 4px;
}
.sticker:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.02) !important;
    z-index: 20;
    filter: drop-shadow(0 10px 24px rgba(26,20,34,0.25));
}
.sticker h3 {
    font-family: var(--font-mono-chrome);
    font-size: 19px;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
    color: var(--pink-hot);
    text-shadow: 1px 1px 0 var(--cream);
    line-height: 1.1;
}
.sticker p {
    margin: 0;
    color: var(--ink);
}
.rhinestone-corner {
    position: absolute;
    top: 14px; right: 16px;
    display: flex;
    gap: 3px;
    z-index: 3;
}
.rhinestone-corner .rs {
    width: 14px; height: 14px;
    transition: transform 0.2s;
    animation: twinkle 4s ease-in-out infinite;
}
.rhinestone-corner .rs:nth-child(2) { animation-delay: -1s; }
.rhinestone-corner .rs:nth-child(3) { animation-delay: -2s; }
.rhinestone-corner .rs:nth-child(4) { animation-delay: -3s; }

.sticker.twinkle-cascade .rhinestone-corner .rs {
    animation: twinkle 0.6s ease-out;
}
.sticker.twinkle-cascade .rhinestone-corner .rs:nth-child(1) { animation-delay: 0ms; }
.sticker.twinkle-cascade .rhinestone-corner .rs:nth-child(2) { animation-delay: 100ms; }
.sticker.twinkle-cascade .rhinestone-corner .rs:nth-child(3) { animation-delay: 200ms; }
.sticker.twinkle-cascade .rhinestone-corner .rs:nth-child(4) { animation-delay: 300ms; }

.tiny-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.tiny-icons svg {
    width: 30px; height: 30px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Sticker positions (broken grid) */
.sticker-a { top: 2vh;    left: 3vw;   transform: rotate(-6deg); background: #fff5f9; }
.sticker-b { top: 5vh;    left: 32vw;  transform: rotate(8deg);  background: #e8f4ff; }
.sticker-c { top: 36vh;   left: 10vw;  transform: rotate(-10deg); background: #fff5c4; }
.sticker-d { top: 28vh;   left: 38vw;  transform: rotate(5deg);  background: #f4eaff; }
.sticker-e { top: 58vh;   left: 24vw;  transform: rotate(-4deg); background: #ffd7e8; }
.sticker-f { top: 46vh;   left: 52vw;  transform: rotate(11deg); background: #fff5f9; }

/* =========================================================
   SECTION 3 — Charm Inventory Ribbon
   ========================================================= */
.inventory-section {
    background:
      linear-gradient(180deg, #f4eaff 0%, #ffd7e8 100%);
    padding-bottom: 10vh;
    overflow: hidden;
}
.ribbon-wrapper {
    position: relative;
    margin-top: 2vh;
    padding: 20px 0 80px;
    overflow: hidden;
}
.ribbon-wrapper::before {
    content: '';
    position: absolute;
    top: 40px; left: 0; right: 0;
    height: 4px;
    background:
      linear-gradient(90deg, #e8e8ee 0%, #d4d0e3 40%, #6a6880 50%, #d4d0e3 60%, #e8e8ee 100%);
    background-size: 40px 100%;
    background-repeat: repeat-x;
    z-index: 1;
    animation: chrome-shift 24s linear infinite;
}
.ribbon {
    display: flex;
    gap: 80px;
    padding: 0 10vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}
.ribbon::-webkit-scrollbar { display: none; }
.ribbon.grabbing { cursor: grabbing; }

.charm-dangle {
    position: relative;
    flex: 0 0 auto;
    width: 180px;
    min-height: 380px;
    padding-top: 40px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    transition: transform 0.3s;
    will-change: transform;
}
.chain-line {
    width: 10px;
    height: 120px;
}
.charm-object {
    position: relative;
    width: 140px; height: 140px;
    border-radius: 50%;
    padding: 8px;
    background: var(--chrome-conic);
    animation: chrome-rotate 18s linear infinite;
    border: 2.5px solid var(--ink);
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.5),
      inset 0 -3px 8px rgba(0,0,0,0.35),
      0 6px 14px rgba(26,20,34,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -8px;
}
.charm-object svg {
    width: 100%; height: 100%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(26,20,34,0.4));
}
.charm-dangle:hover .charm-object {
    transform: rotate(14deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.charm-tag {
    position: absolute;
    top: 220px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    padding: 12px 14px;
    background:
      linear-gradient(135deg, #9a6bff 0%, #ff5ca8 100%);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
    border: 2px solid var(--ink);
    box-shadow: 0 4px 12px rgba(26,20,34,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    text-align: center;
}
.charm-tag::before {
    content: '';
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px;
    background: inherit;
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
}
.charm-tag strong {
    display: block;
    font-family: var(--font-mono-chrome);
    font-size: 15px;
    letter-spacing: 0.06em;
    color: #fff5c4;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.charm-dangle:hover .charm-tag {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ribbon-hint {
    text-align: center;
    font-family: var(--font-jelly);
    font-size: 13px;
    color: var(--pink-hot);
    margin-top: 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 0 var(--cream);
}

/* =========================================================
   SECTION 4 — Compact Mirror
   ========================================================= */
.mirror-section {
    background:
      radial-gradient(circle at 50% 50%, #ffe1ec 0%, #ffd7e8 60%, #e9bcd0 100%);
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4vh 6vw 14vh;
    position: relative;
}
.mirror-section .scene-tag {
    margin-bottom: 3vh;
}

.compact-mirror {
    position: relative;
    width: 70vmin;
    height: 76vmin;
    max-width: 640px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mirror-hinge {
    width: 30%;
    height: 28px;
    background: linear-gradient(180deg, var(--gold) 0%, #b87f2e 100%);
    border-radius: 6px 6px 0 0;
    border: 2px solid var(--ink);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    z-index: 3;
}
.hinge-pin {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--chrome-conic);
    border: 1.5px solid var(--ink);
    animation: chrome-rotate 12s linear infinite;
}

.mirror-body {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, #ff9ac6 0%, #ff5ca8 60%, #c43a7a 100%);
    border: 6px solid var(--ink);
    box-shadow:
      0 0 0 3px var(--gold),
      0 0 0 6px var(--ink),
      0 24px 60px rgba(26,20,34,0.45);
    overflow: hidden;
    filter: url(#tufted);
}
.mirror-body::before {
    /* tufted-vinyl knots */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3) 0%, transparent 8%),
      radial-gradient(circle at 80% 30%, rgba(255,255,255,0.25) 0%, transparent 8%),
      radial-gradient(circle at 30% 80%, rgba(255,255,255,0.28) 0%, transparent 8%),
      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.22) 0%, transparent 8%),
      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 6%);
    pointer-events: none;
    opacity: 0.9;
}
.mirror-rim {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: var(--chrome-conic);
    animation: chrome-rotate 18s linear infinite;
    box-shadow:
      inset 0 0 20px rgba(0,0,0,0.3),
      inset 0 4px 6px rgba(255,255,255,0.5);
}
.mirror-inside {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 40%, #e8f4ff 0%, #c8e6ff 70%, #9a6bff 100%);
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mirror-reflection {
    position: absolute;
    inset: 0;
    transform: scaleY(-1);
    filter: hue-rotate(15deg) blur(0.4px);
    opacity: 0.55;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.reflection-dragon {
    font-family: var(--font-cjk);
    font-size: clamp(6rem, 18vw, 16rem);
    background: var(--chrome-conic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chrome-rotate 20s linear infinite reverse;
    line-height: 1;
    opacity: 0.45;
}
.mirror-phrase {
    position: relative;
    z-index: 3;
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    line-height: 1.5;
    color: var(--ink);
    padding: 0 2rem;
    text-align: center;
    opacity: 0;
    font-feature-settings: "ss01" on;
}
.mirror-phrase.in {
    animation: mirror-phrase-in 3s ease-out forwards;
}

.fingerprint {
    position: absolute;
    bottom: 12%; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 40px;
    border-radius: 50%;
    background:
      radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.5) 0%, transparent 40%),
      radial-gradient(ellipse at 60% 60%, rgba(154,107,255,0.2) 0%, transparent 50%);
    mix-blend-mode: overlay;
    opacity: 0.45;
    animation: fade-out 4s ease-out 2s forwards;
    pointer-events: none;
}

.mirror-rhinestones {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.mirror-rhinestones .rim-rs {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f4eaff 45%, rgba(154,107,255,0) 100%);
    border: 1px solid rgba(154,107,255,0.5);
    transform: translate(-50%, -50%);
    animation: twinkle 3.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.final-dragon {
    font-family: var(--font-cjk);
    font-size: clamp(5rem, 14vw, 10rem);
    margin-top: 4vh;
    background: var(--chrome-conic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chrome-rotate 20s linear infinite;
    line-height: 1;
    letter-spacing: -0.02em;
    cursor: pointer;
    user-select: none;
}
.final-dragon.tap {
    animation: chrome-rotate 20s linear infinite, swing-active 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .section {
        padding: 6vh 6vw 10vh;
    }
    .section-mega {
        font-size: clamp(3rem, 18vw, 7rem);
    }
    .charm-strap {
        position: fixed;
        top: auto; bottom: 0; left: 0; right: 0;
        width: 100vw; height: 72px;
        min-width: 0;
        padding: 0 20px;
        background: rgba(255,215,232,0.85);
        backdrop-filter: blur(12px);
        border-top: 2px solid var(--ink);
        z-index: 200;
    }
    .strap-rope { display: none; }
    .strap-charms {
        flex-direction: row;
        justify-content: space-around;
        padding: 8px 0;
    }
    .strap-charm {
        width: 48px; height: 64px;
    }
    .strap-charm .chain {
        height: 14px;
    }

    .clamshell {
        transform: rotate(4deg) scale(0.78);
        width: 82vw;
        height: auto;
    }
    .welcome-line {
        position: relative;
        bottom: auto; left: auto;
        margin-top: 2rem;
        max-width: 90%;
    }

    .sticker {
        position: relative;
        width: 92%;
        margin: 12px auto;
        left: auto; top: auto;
    }
    .sticker-a, .sticker-c, .sticker-e { transform: rotate(-3deg); }
    .sticker-b, .sticker-d, .sticker-f { transform: rotate(3deg); }

    .sticker-field {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ribbon { padding: 0 5vw; gap: 40px; }
    .charm-dangle { width: 140px; min-height: 300px; }
    .charm-object { width: 100px; height: 100px; }

    .compact-mirror {
        width: 80vmin;
        height: 86vmin;
    }
    .mirror-section { padding-bottom: 20vh; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}
