:root {
    --coloring-lilac: #b9a3df;
    --coloring-lilac-deep: #7456a7;
    --coloring-cream: #fff8e9;
    --coloring-ink: #2d2933;
    --coloring-orange: #ff7a1a;
    --coloring-yellow: #ffd95f;
    --coloring-pink: #ff709b;
    --coloring-green: #78b83e;
    --coloring-blue: #48aee8;
}

body.coloring-page {
    background: var(--coloring-lilac);
    color: var(--coloring-ink);
}

.coloring-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 235, 164, 0.38), transparent 26rem),
        radial-gradient(circle at 88% 20%, rgba(255, 121, 153, 0.22), transparent 24rem),
        linear-gradient(150deg, #c4b4e4 0%, #b39bdb 46%, #c2b0e0 100%);
}

.coloring-navbar {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
}

.coloring-navbar .nav-dropdown-menu a[aria-current="page"] {
    background: var(--coloring-yellow);
}

.color-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 5rem);
    padding: clamp(8rem, 12vw, 10rem) 6% 5rem;
    overflow: hidden;
    isolation: isolate;
}

.color-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -6rem;
    height: 10rem;
    z-index: -1;
    background: var(--coloring-cream);
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}

.color-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.color-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
    font-size: clamp(0.72rem, 1vw, 0.84rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.09em;
    color: rgba(45, 41, 51, 0.72);
}

.color-kicker::before {
    content: "";
    width: 2.6rem;
    height: 0.25rem;
    border-radius: 999px;
    background: var(--coloring-yellow);
    box-shadow: 1.05rem 0 0 var(--coloring-orange), 2.1rem 0 0 var(--coloring-pink);
    margin-right: 2rem;
}

.color-hero h1 {
    max-width: 680px;
    font-size: clamp(4.2rem, 8.4vw, 8.7rem);
    line-height: 0.82;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.color-hero h1 em {
    position: relative;
    display: inline-block;
    color: var(--coloring-cream);
    font-style: normal;
    text-shadow: 0 8px 0 rgba(92, 66, 128, 0.16);
}

.color-hero h1 em::after {
    content: "";
    position: absolute;
    left: 0.04em;
    right: -0.08em;
    bottom: -0.1em;
    height: 0.11em;
    background: var(--coloring-orange);
    border-radius: 999px 40% 999px 50%;
    transform: rotate(-1deg) scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.coloring-page.is-ready .color-hero h1 em::after {
    transform: rotate(-1deg) scaleX(1);
}

.color-hero-copy > p {
    max-width: 590px;
    margin-top: 2rem;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: rgba(45, 41, 51, 0.76);
}

.color-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.55rem;
    padding: 0.9rem 1.65rem;
    border-radius: 999px;
    background: var(--coloring-yellow);
    color: var(--coloring-ink);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 5px 6px 0 rgba(73, 52, 102, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.color-primary-action:hover,
.color-primary-action:focus-visible {
    transform: translate(-2px, -3px);
    box-shadow: 8px 10px 0 rgba(73, 52, 102, 0.14);
    outline: none;
}

.color-text-action {
    color: var(--coloring-ink);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 3px solid rgba(45, 41, 51, 0.22);
    padding: 0.4rem 0;
}

.color-hero-art {
    position: relative;
    min-height: min(76vh, 800px);
    z-index: 2;
    transform-style: preserve-3d;
}

.character-float {
    position: absolute;
    z-index: 4;
    right: -2%;
    bottom: -2%;
    width: min(79%, 620px);
    transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
    transition: transform 0.24s ease-out;
    animation: none;
    transform-origin: 50% 88%;
}

.color-hero.is-hero-active .character-float {
    animation: character-breathe 5.8s ease-in-out infinite, hero-draw-nudge 8s ease-in-out infinite;
}

.character-float img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2rem 1.3rem rgba(57, 36, 78, 0.24));
}

.paper-sketch {
    position: absolute;
    left: 1%;
    top: 5%;
    width: min(68%, 500px);
    aspect-ratio: 0.82;
    padding: 1.2rem;
    background: #fffdf6;
    border-radius: 1.2rem 2.6rem 1.4rem 2rem;
    box-shadow: 0 2.3rem 4rem rgba(65, 43, 91, 0.16);
    transform: rotate(-7deg) translate3d(calc(var(--hero-x, 0) * -0.28), calc(var(--hero-y, 0) * -0.28), 0);
    transition: transform 0.24s ease-out;
}

.paper-sketch::before {
    content: "";
    position: absolute;
    inset: 0.65rem;
    border: 2px dashed rgba(45, 41, 51, 0.13);
    border-radius: 0.9rem 2rem 1rem 1.6rem;
}

.paper-sketch svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.paper-sketch > span {
    position: absolute;
    left: 2.5rem;
    bottom: 2rem;
    z-index: 2;
    color: rgba(45, 41, 51, 0.62);
    font-weight: 900;
    font-size: 1rem;
}

.sketch-line {
    fill: transparent;
    stroke: #343139;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.coloring-page.is-ready .sketch-line {
    stroke-dashoffset: 0;
}

.hero-crayon-stroke {
    fill: none;
    stroke: var(--coloring-orange);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    opacity: 0;
}

.color-hero.is-hero-active .hero-crayon-stroke {
    animation: hero-draw-stroke 8s ease-in-out infinite;
}

.paint-dot {
    opacity: 0;
    transform: scale(0.25);
    transform-origin: center;
    transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot-one { fill: var(--coloring-pink); transition-delay: 0.75s; }
.dot-two { fill: var(--coloring-blue); transition-delay: 1s; }
.dot-three { fill: var(--coloring-yellow); transition-delay: 1.25s; }

.coloring-page.is-ready .paint-dot {
    opacity: 0.8;
    transform: scale(1);
}

.clay-shape {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0.7rem 0.5rem rgba(57, 36, 78, 0.18));
    animation: clay-float 5s ease-in-out infinite;
}

.clay-star {
    top: 9%;
    right: 2%;
    color: var(--coloring-yellow);
    font-size: clamp(3rem, 5vw, 5.5rem);
    -webkit-text-stroke: 4px rgba(222, 150, 24, 0.32);
    transform: rotate(12deg);
}

.clay-dot {
    width: clamp(1.5rem, 2vw, 2.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
}

.clay-dot-one {
    left: -2%;
    bottom: 24%;
    background: var(--coloring-green);
    animation-delay: -1.8s;
}

.clay-dot-two {
    right: 5%;
    top: 38%;
    background: var(--coloring-blue);
    animation-delay: -3.1s;
}

.clay-squiggle {
    left: 9%;
    top: 8%;
    width: 4rem;
    height: 1.2rem;
    border: 0.5rem solid var(--coloring-orange);
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(24deg);
}

.hero-scroll-note {
    display: none;
}

.hero-scroll-note span {
    width: 3rem;
    height: 2px;
    background: currentColor;
}

.coloring-flow {
    position: relative;
    overflow: hidden;
    padding: 9rem 6% 10rem;
    background: var(--coloring-cream);
}

.flow-heading {
    max-width: 830px;
    margin: 0 auto 6rem;
    text-align: center;
}

.flow-heading h2,
.collection-heading h2,
.coloring-finale h2 {
    font-size: clamp(3rem, 6vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.crayon-route {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 58%;
    transform: translateY(-50%);
    pointer-events: none;
}

.crayon-route svg {
    width: 100%;
    height: 13rem;
}

.crayon-route path {
    fill: none;
    stroke: rgba(255, 122, 26, 0.22);
    stroke-width: 18;
    stroke-linecap: round;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    transition: stroke-dashoffset 1.5s ease;
}

.coloring-flow.is-visible .crayon-route path {
    stroke-dashoffset: 0;
}

.flow-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 5rem);
    max-width: 1240px;
    margin: 0 auto;
    list-style: none;
}

.flow-step {
    min-width: 0;
    text-align: center;
}

.flow-step:nth-child(even) {
    margin-top: 5rem;
}

.step-number {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(45, 41, 51, 0.45);
}

.step-clay-icon {
    display: grid;
    place-items: center;
    width: 5.4rem;
    aspect-ratio: 1;
    margin: 0 auto 1.25rem;
    border-radius: 42% 58% 48% 52%;
    background: var(--coloring-blue);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: inset -0.45rem -0.5rem 0 rgba(0, 0, 0, 0.08), 0 1.1rem 1.4rem rgba(73, 55, 91, 0.14);
    transform: rotate(-5deg);
}

.step-icon-orange { background: var(--coloring-orange); transform: rotate(6deg); }
.step-icon-pink { background: var(--coloring-pink); transform: rotate(-8deg); }
.step-icon-green { background: var(--coloring-green); transform: rotate(5deg); }

.flow-step h3 {
    margin-bottom: 0.55rem;
    font-size: 1.55rem;
    font-weight: 900;
}

.flow-step p {
    color: rgba(45, 41, 51, 0.67);
    font-size: 1rem;
    line-height: 1.55;
}

.peek-inside {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    min-height: 880px;
    padding: 8.5rem max(6%, calc((100vw - 1320px) / 2));
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 24%, rgba(72, 174, 232, 0.16), transparent 23rem),
        radial-gradient(circle at 12% 78%, rgba(255, 112, 155, 0.14), transparent 20rem),
        var(--coloring-cream);
}

.peek-inside::before,
.peek-inside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.peek-inside::before {
    top: 11%;
    right: 6%;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--coloring-yellow);
    box-shadow: -7rem 3rem 0 -0.45rem var(--coloring-blue), 3rem 10rem 0 -0.7rem var(--coloring-pink);
}

.peek-inside::after {
    left: 9%;
    bottom: 12%;
    width: 1.25rem;
    aspect-ratio: 1;
    background: var(--coloring-green);
    box-shadow: 4rem 2rem 0 -0.25rem var(--coloring-orange);
}

.peek-copy {
    position: relative;
    z-index: 4;
    max-width: 520px;
}

.peek-copy h2 {
    max-width: 620px;
    margin-top: 1.3rem;
    font-size: clamp(3.2rem, 5.4vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.peek-copy > p:not(.peek-source) {
    max-width: 500px;
    margin-top: 2rem;
    color: rgba(45, 41, 51, 0.72);
    font-size: 1.08rem;
    line-height: 1.65;
}

.peek-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.35rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.peek-facts li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.peek-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--coloring-orange);
}

.peek-source {
    margin-top: 1.5rem;
    color: rgba(45, 41, 51, 0.5);
    font-size: 0.78rem;
    line-height: 1.4;
}

.peek-paper-shell {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.peek-paper-stage {
    position: relative;
    z-index: 1;
    min-height: 690px;
    perspective: 1400px;
}

.preview-sheet {
    position: absolute;
    width: min(42%, 310px);
    margin: 0;
    transform-origin: 50% 88%;
    transition:
        left 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        right 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        top 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.35rem;
    background: white;
    box-shadow: 0 2.2rem 3.5rem rgba(67, 49, 84, 0.2);
}

.preview-sheet img {
    display: block;
    width: 100%;
    aspect-ratio: 0.707;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.preview-sheet figcaption {
    margin-top: 1rem;
    color: rgba(45, 41, 51, 0.66);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.preview-watermark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 145%;
    padding: 0.45rem 0;
    background: rgba(255, 255, 255, 0.58);
    color: rgba(45, 41, 51, 0.42);
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-34deg);
    pointer-events: none;
}

.preview-sheet-color {
    z-index: 1;
    left: 2%;
    top: 12%;
    transform: rotate(-8deg) translateY(1.5rem);
}

.preview-sheet-line-primary {
    z-index: 3;
    left: 31%;
    top: 1%;
    width: min(47%, 350px);
    transform: rotate(1.5deg);
}

.preview-sheet-line-secondary {
    z-index: 2;
    right: 0;
    top: 15%;
    transform: rotate(8deg) translateY(1.25rem);
}

.peek-paper-stage .preview-sheet[data-preview-position="left"] {
    z-index: 1;
    left: 2%;
    right: auto;
    top: 12%;
    width: min(42%, 310px);
    transform: rotate(-8deg) translateY(1.5rem);
}

.peek-paper-stage .preview-sheet[data-preview-position="center"] {
    z-index: 3;
    left: 31%;
    right: auto;
    top: 1%;
    width: min(47%, 350px);
    transform: rotate(1.5deg);
}

.peek-paper-stage .preview-sheet[data-preview-position="right"] {
    z-index: 2;
    left: auto;
    right: 0;
    top: 15%;
    width: min(42%, 310px);
    transform: rotate(8deg) translateY(1.25rem);
}

.peek-paper-arrow {
    position: absolute;
    z-index: 7;
    top: 43%;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 248, 233, 0.46);
    box-shadow: 0 0.7rem 1.6rem rgba(54, 35, 77, 0.18);
    color: var(--coloring-ink);
    cursor: pointer;
    opacity: 0.1;
    transform: translateY(-50%) scale(0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.peek-paper-arrow span {
    margin-top: -0.13em;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1;
}

.peek-paper-arrow-left {
    left: 0.65rem;
}

.peek-paper-arrow-right {
    right: 0.65rem;
}

.peek-paper-shell:hover .peek-paper-arrow:not(:disabled),
.peek-paper-arrow:focus-visible {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
}

.peek-paper-arrow:hover:not(:disabled) {
    background: rgba(255, 248, 233, 0.86);
}

.peek-paper-arrow:focus-visible {
    outline: 3px solid var(--coloring-yellow);
    outline-offset: 3px;
}

.peek-paper-arrow:disabled {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.84);
}

.peek-paper-stage:hover .preview-sheet-color {
    transform: rotate(-10deg) translate(-1rem, 0.4rem);
}

.peek-paper-stage:hover .preview-sheet-line-primary {
    transform: rotate(0deg) translateY(-0.7rem);
}

.peek-paper-stage:hover .preview-sheet-line-secondary {
    transform: rotate(10deg) translate(1rem, 0.2rem);
}

.coloring-collection {
    position: relative;
    padding: 10rem 0 8rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 8%, rgba(255, 217, 95, 0.35), transparent 24rem),
        linear-gradient(180deg, #ae95d7, #c6b4e5);
}

.coloring-collection::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    left: -5%;
    width: 110%;
    height: 8rem;
    background: var(--coloring-cream);
    border-radius: 0 0 50% 50% / 0 0 65% 65%;
}

.collection-heading {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 4rem;
    max-width: 1240px;
    margin: 0 auto 5rem;
    padding: 0 6%;
}

.collection-heading p {
    max-width: 430px;
    padding-bottom: 0.5rem;
    color: rgba(45, 41, 51, 0.73);
    font-size: 1.08rem;
    line-height: 1.6;
}

.collection-mode-switch {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 1.6rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 248, 233, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.collection-mode-switch button,
.combo-controls button {
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(45, 41, 51, 0.68);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-mode-switch button:hover,
.combo-controls button:hover {
    color: var(--coloring-ink);
}

.collection-mode-switch button.is-active,
.combo-controls button.is-active {
    background: var(--coloring-cream);
    color: var(--coloring-ink);
    box-shadow: 0 0.35rem 0.8rem rgba(54, 35, 77, 0.14);
}

.collection-mode-switch button:focus-visible,
.combo-controls button:focus-visible,
.combo-continue:focus-visible,
.book-select-button:focus-visible {
    outline: 3px solid var(--coloring-yellow);
    outline-offset: 3px;
}

.combo-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: -2.2rem auto 1rem;
    padding: 0 6%;
}

.combo-controls[hidden],
.combo-tray[hidden] {
    display: none;
}

.combo-controls > span {
    margin-right: 0.45rem;
    color: rgba(45, 41, 51, 0.5);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.book-river-shell {
    position: relative;
}

.book-river {
    display: flex;
    align-items: start;
    gap: clamp(1rem, 2.2vw, 2.2rem);
    width: 100%;
    padding: 2rem max(4vw, calc((100vw - 1240px) / 2 + 3%)) 4rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: max(4vw, calc((100vw - 1240px) / 2 + 3%));
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.book-river::-webkit-scrollbar {
    display: none;
}

.book-river-arrow {
    position: absolute;
    z-index: 8;
    top: 43%;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(255, 248, 233, 0.42);
    box-shadow: 0 0.7rem 1.6rem rgba(54, 35, 77, 0.18);
    color: var(--coloring-ink);
    cursor: pointer;
    opacity: 0.12;
    transform: translateY(-50%) scale(0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.book-river-arrow span {
    margin-top: -0.13em;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1;
}

.book-river-arrow-left {
    left: clamp(0.75rem, 2vw, 2rem);
}

.book-river-arrow-right {
    right: clamp(0.75rem, 2vw, 2rem);
}

.book-river-shell:hover .book-river-arrow:not(:disabled),
.book-river-arrow:focus-visible {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
}

.book-river-arrow:hover:not(:disabled) {
    background: rgba(255, 248, 233, 0.82);
}

.book-river-arrow:focus-visible {
    outline: 3px solid var(--coloring-yellow);
    outline-offset: 3px;
}

.book-river-arrow:disabled {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.84);
}

.coloring-book {
    position: relative;
    flex: 0 0 clamp(230px, 25vw, 300px);
    min-width: 0;
    scroll-snap-align: start;
    transform-origin: 50% 80%;
    transition: transform 0.3s ease;
}

.book-select-button {
    position: absolute;
    z-index: 6;
    inset: 0 0 auto;
    width: 100%;
    aspect-ratio: 0.707;
    padding: 0;
    border: 0;
    border-radius: 0.6rem 1.05rem 1.05rem 0.6rem;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.book-select-button span {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 2.8rem;
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(45, 41, 51, 0.34);
    box-shadow: 0 0.45rem 1rem rgba(45, 41, 51, 0.2);
    color: transparent;
    font-size: 1.3rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.coloring-collection.is-combo-mode .book-select-button {
    opacity: 1;
    pointer-events: auto;
}

.coloring-book.is-selected .book-select-button span {
    background: var(--coloring-yellow);
    color: var(--coloring-ink);
    transform: scale(1.07) rotate(-5deg);
}

.coloring-collection.is-combo-mode .coloring-book.is-selected {
    z-index: 4;
    transform: translateY(-0.7rem) rotate(0deg) scale(1.015);
}

.coloring-book.is-selected img {
    box-shadow: -0.45rem 0 0 #fff4d3, 0 0 0 0.35rem var(--coloring-yellow), 0 2rem 2.4rem rgba(54, 35, 77, 0.28);
}

.coloring-book:nth-child(1) { transform: rotate(-5deg) translateY(2.8rem); }
.coloring-book:nth-child(2) { transform: rotate(3deg) translateY(0.5rem); }
.coloring-book:nth-child(3) { transform: rotate(-2deg) translateY(1.6rem); }
.coloring-book:nth-child(4) { transform: rotate(4deg) translateY(0.2rem); }
.coloring-book:nth-child(5) { transform: rotate(-3deg) translateY(2.1rem); }
.coloring-book:nth-child(6) { transform: rotate(5deg) translateY(1rem); }

.coloring-book:hover {
    transform: translateY(-1.2rem) rotate(0deg) scale(1.025);
    z-index: 4;
}

.coloring-book img {
    display: block;
    width: 100%;
    aspect-ratio: 0.707;
    object-fit: cover;
    border-radius: 0.6rem 1.05rem 1.05rem 0.6rem;
    box-shadow: -0.45rem 0 0 #fff4d3, -0.75rem 0.2rem 0 rgba(54, 35, 77, 0.12), 0 2rem 2.4rem rgba(54, 35, 77, 0.25);
}

.book-caption {
    position: relative;
    margin-top: 1.45rem;
    padding-left: 2.2rem;
}

.book-caption > span {
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(45, 41, 51, 0.45);
}

.book-caption h3 {
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 900;
}

.book-caption p {
    margin-top: 0.3rem;
    font-size: 0.88rem;
    color: rgba(45, 41, 51, 0.63);
}

.combo-tray {
    position: sticky;
    z-index: 10;
    bottom: 1rem;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(145px, auto) auto;
    align-items: center;
    gap: 1.1rem;
    width: min(94%, 1040px);
    margin: 0 auto 2.5rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 1.6rem;
    background: rgba(255, 248, 233, 0.88);
    box-shadow: 0 1.2rem 2.8rem rgba(54, 35, 77, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.combo-tray-copy,
.combo-value {
    display: grid;
    gap: 0.15rem;
}

.combo-progress,
.combo-value span {
    color: rgba(45, 41, 51, 0.5);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.combo-title,
.combo-value strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

.combo-thumbnails {
    display: flex;
    min-width: 3rem;
    padding-left: 0.45rem;
}

.combo-thumbnails img {
    width: 2.65rem;
    aspect-ratio: 0.707;
    margin-left: -0.45rem;
    border: 2px solid var(--coloring-cream);
    border-radius: 0.3rem;
    object-fit: cover;
    box-shadow: 0 0.3rem 0.6rem rgba(54, 35, 77, 0.2);
}

.combo-continue {
    min-height: 3.25rem;
    padding: 0.8rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--coloring-orange);
    box-shadow: inset 0 -0.25rem 0 rgba(128, 47, 0, 0.16), 0 0.5rem 1rem rgba(115, 62, 24, 0.18);
    color: white;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.combo-continue:disabled {
    background: rgba(45, 41, 51, 0.16);
    box-shadow: none;
    color: rgba(45, 41, 51, 0.5);
    cursor: default;
}

.combo-status {
    grid-column: 1 / -1;
    min-height: 0;
    margin: -0.25rem 0 0;
    color: rgba(45, 41, 51, 0.66);
    font-size: 0.78rem;
    line-height: 1.3;
}

.combo-status:empty {
    display: none;
}

.collection-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 780px;
    margin: 4rem auto 0;
    padding: 0 6%;
    text-align: center;
}

.collection-footnote p {
    color: rgba(45, 41, 51, 0.76);
    line-height: 1.5;
}

.footnote-orb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--coloring-yellow);
    color: var(--coloring-orange);
    box-shadow: inset -0.3rem -0.35rem 0 rgba(0, 0, 0, 0.08);
}

.coloring-answers {
    padding: clamp(5.5rem, 10vw, 9rem) 6%;
    background: var(--coloring-lilac);
}

.coloring-answers-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 8rem);
    width: min(1180px, 100%);
    margin: 0 auto;
}

.answers-heading h2 {
    margin: 1.1rem 0 1.4rem;
    font-size: clamp(3rem, 5.4vw, 5.6rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.answers-heading > p {
    max-width: 430px;
    margin: 0;
    color: rgba(45, 41, 51, 0.7);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
}

.answers-list {
    border-top: 2px solid rgba(45, 41, 51, 0.2);
}

.answers-list details {
    border-bottom: 2px solid rgba(45, 41, 51, 0.2);
}

.answers-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.55rem 0;
    color: var(--coloring-ink);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.answers-list summary::-webkit-details-marker {
    display: none;
}

.answers-list summary::after {
    display: grid;
    flex: 0 0 auto;
    width: 2.2rem;
    aspect-ratio: 1;
    content: "+";
    place-items: center;
    border-radius: 50%;
    background: var(--coloring-yellow);
    color: var(--coloring-orange);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: inset -0.18rem -0.2rem 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease;
}

.answers-list details[open] summary::after {
    transform: rotate(45deg);
}

.answers-list details p {
    max-width: 690px;
    margin: -0.35rem 3.8rem 1.6rem 0;
    color: rgba(45, 41, 51, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}

.coloring-finale {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 75vh;
    padding: 9rem 6%;
    overflow: hidden;
    text-align: center;
    background: var(--coloring-cream);
}

.coloring-finale h2 {
    margin-bottom: 2.5rem;
}

.finale-doodles span {
    position: absolute;
    font-size: clamp(2rem, 5vw, 5rem);
    filter: drop-shadow(0 0.65rem 0.45rem rgba(73, 55, 91, 0.14));
    animation: clay-float 5.6s ease-in-out infinite;
}

.finale-doodles span:nth-child(1) { left: 8%; top: 25%; color: var(--coloring-yellow); }
.finale-doodles span:nth-child(2) { right: 11%; top: 20%; color: var(--coloring-blue); animation-delay: -1s; }
.finale-doodles span:nth-child(3) { right: 7%; bottom: 18%; color: var(--coloring-pink); animation-delay: -2s; }
.finale-doodles span:nth-child(4) { left: 15%; bottom: 14%; color: var(--coloring-orange); animation-delay: -3s; }
.finale-doodles span:nth-child(5) { left: 34%; top: 11%; color: var(--coloring-green); animation-delay: -4s; }

.coloring-footer {
    background: #2d2933;
    color: white;
}

.coloring-footer a,
.coloring-footer p {
    color: white;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes character-breathe {
    0%, 100% { scale: 1; rotate: -0.35deg; }
    50% { scale: 1.012; rotate: 0.45deg; }
}

@keyframes hero-draw-nudge {
    0%, 9%, 31%, 100% { translate: 0 0; }
    16% { translate: -3px 2px; }
    23% { translate: 2px -1px; }
}

@keyframes hero-draw-stroke {
    0%, 9% { stroke-dashoffset: 180; opacity: 0; }
    12% { opacity: 1; }
    28%, 70% { stroke-dashoffset: 0; opacity: 1; }
    82%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes clay-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -0.7rem; }
}

@media (max-width: 1050px) {
    .color-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    }

    .flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .flow-step:nth-child(even) {
        margin-top: 3rem;
    }

    .crayon-route {
        opacity: 0.45;
    }

    .coloring-book {
        flex-basis: clamp(230px, 27vw, 285px);
    }

    .peek-inside {
        grid-template-columns: minmax(260px, 0.72fr) minmax(450px, 1.28fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .coloring-navbar {
        position: relative;
    }

    .color-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 4.5rem 6% 8rem;
        text-align: center;
    }

    .color-hero-copy {
        margin: 0 auto;
    }

    .color-kicker {
        justify-content: center;
    }

    .color-hero h1 {
        font-size: clamp(3.8rem, 18vw, 6.2rem);
    }

    .color-hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .color-hero-actions {
        justify-content: center;
    }

    .color-hero-art {
        min-height: 620px;
        margin-top: -1rem;
    }

    .paper-sketch {
        left: 0;
        top: 7%;
        width: 72%;
    }

    .character-float {
        right: -5%;
        width: 78%;
    }

    .hero-scroll-note {
        display: none;
    }

    .coloring-flow {
        padding: 7rem 7% 8rem;
    }

    .peek-inside {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 7rem 0 6.5rem;
    }

    .peek-copy {
        max-width: 620px;
        margin: 0 auto;
        padding: 0 7%;
        text-align: center;
    }

    .peek-copy .color-kicker {
        justify-content: center;
    }

    .peek-copy > p:not(.peek-source) {
        margin-left: auto;
        margin-right: auto;
    }

    .peek-facts {
        justify-content: center;
    }

    .peek-paper-shell {
        width: 100%;
        margin-top: 2.5rem;
    }

    .peek-paper-stage {
        display: flex;
        min-height: auto;
        margin-top: 0;
        padding: 2rem 10% 4rem;
        gap: 1.25rem;
        overflow-x: auto;
        scroll-padding-inline: 10%;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .peek-paper-stage::-webkit-scrollbar {
        display: none;
    }

    .preview-sheet,
    .preview-sheet-color,
    .preview-sheet-line-primary,
    .preview-sheet-line-secondary,
    .peek-paper-stage .preview-sheet[data-preview-position] {
        position: relative;
        inset: auto;
        flex: 0 0 min(72vw, 330px);
        width: auto;
        transform: none;
        scroll-snap-align: center;
    }

    .peek-paper-stage:hover .preview-sheet-color,
    .peek-paper-stage:hover .preview-sheet-line-primary,
    .peek-paper-stage:hover .preview-sheet-line-secondary {
        transform: none;
    }

    .flow-heading {
        margin-bottom: 4rem;
    }

    .flow-steps {
        gap: 3.5rem 1.5rem;
    }

    .flow-step:nth-child(even) {
        margin-top: 2rem;
    }

    .collection-heading {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .collection-heading p {
        margin: 0 auto;
    }

    .coloring-answers-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .answers-heading .color-kicker {
        justify-content: center;
    }

    .answers-heading > p {
        margin: 0 auto;
    }

    .answers-list {
        text-align: left;
    }

    .collection-mode-switch {
        margin-top: 1.35rem;
    }

    .combo-controls {
        margin: -0.75rem auto 0.5rem;
    }

    .book-river {
        width: 100%;
        margin: 0;
        padding: 2rem 8% 5rem;
        gap: 1.5rem;
        overflow-x: auto;
        transform: none;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .book-river-arrow,
    .peek-paper-arrow {
        display: grid;
        width: 3rem;
        height: 3rem;
        opacity: 0.16;
    }

    .peek-paper-arrow {
        top: 45%;
    }

    .book-river::-webkit-scrollbar {
        display: none;
    }

    .coloring-book {
        flex: 0 0 min(70vw, 300px);
        scroll-snap-align: center;
    }

    .coloring-book:nth-child(n) {
        transform: rotate(0) translateY(0);
    }

    .combo-tray {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        width: calc(100% - 1rem);
        bottom: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0.8rem 0.85rem;
        border-radius: 1.25rem;
    }

    .combo-thumbnails {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .combo-value {
        display: none;
    }

    .combo-continue {
        grid-column: 2;
        grid-row: 1;
        min-height: 3rem;
        padding-inline: 1rem;
    }

    .combo-status {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (hover: none), (pointer: coarse) {
    .book-river-arrow:not(:disabled),
    .peek-paper-arrow:not(:disabled) {
        display: grid;
        opacity: 0.48;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 520px) {
    .color-hero {
        padding-top: 3rem;
        padding-left: 5%;
        padding-right: 5%;
    }

    .color-hero-copy,
    .color-hero h1,
    .color-hero-copy > p,
    .color-hero-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .color-kicker {
        display: block;
        max-width: 17rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.66rem;
        line-height: 1.4;
        letter-spacing: 0.065em;
        text-align: center;
    }

    .color-kicker::before {
        display: block;
        width: 4.2rem;
        margin: 0 auto 0.85rem;
        background: linear-gradient(90deg, var(--coloring-yellow) 0 33%, var(--coloring-orange) 33% 66%, var(--coloring-pink) 66%);
        box-shadow: none;
    }

    .color-hero h1 {
        font-size: clamp(3rem, 14vw, 3.45rem);
        line-height: 0.9;
        letter-spacing: -0.055em;
    }

    .color-title-lead > span {
        display: block;
    }

    .color-hero h1 em {
        display: block;
        font-size: 0.88em;
    }

    .peek-copy h2 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .peek-facts {
        display: grid;
        justify-content: start;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .peek-paper-arrow-left {
        left: 0.35rem;
    }

    .peek-paper-arrow-right {
        right: 0.35rem;
    }

    .color-hero-copy > p {
        margin-top: 1.6rem;
        font-size: 1rem;
    }

    .color-hero-actions {
        flex-direction: column;
        gap: 0.85rem;
    }

    .color-text-action {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
    }

    .color-primary-action {
        width: min(100%, 18rem);
    }

    .collection-mode-switch {
        display: grid;
        width: min(100%, 18rem);
        margin-left: auto;
        margin-right: auto;
    }

    .combo-controls > span {
        flex-basis: 100%;
        margin: 0 0 0.25rem;
        text-align: center;
    }

    .combo-controls button {
        flex: 1 1 9rem;
    }

    .combo-tray {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .combo-tray-copy {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .combo-continue {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    .combo-thumbnails {
        grid-column: 1;
        grid-row: 3;
    }

    .combo-status {
        grid-column: 1;
        grid-row: 4;
    }

    .combo-thumbnails img {
        width: 2.3rem;
    }

    .color-hero-art {
        min-height: 500px;
    }

    .paper-sketch {
        width: 78%;
        padding: 0.65rem;
    }

    .paper-sketch > span {
        left: 1.4rem;
        bottom: 1.25rem;
        font-size: 0.78rem;
    }

    .character-float {
        right: -5%;
        bottom: 0;
        width: 80%;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .flow-step:nth-child(even) {
        margin-top: 0;
    }

    .crayon-route {
        display: none;
    }

    .coloring-flow,
    .coloring-collection,
    .coloring-finale {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }

    .flow-heading h2,
    .collection-heading h2,
    .coloring-finale h2 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .collection-footnote {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .color-hero.is-hero-active .character-float,
    .clay-shape,
    .finale-doodles span {
        animation: none;
    }

    .book-river {
        scroll-behavior: auto;
    }

    .peek-paper-stage {
        scroll-behavior: auto;
    }

    .color-hero.is-hero-active .hero-crayon-stroke,
    .hero-crayon-stroke {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 0.8;
    }

    .reveal-on-scroll,
    .sketch-line,
    .paint-dot,
    .crayon-route path,
    .color-hero h1 em::after {
        transition: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .sketch-line,
    .crayon-route path {
        stroke-dashoffset: 0;
    }

    .paint-dot {
        opacity: 0.8;
        transform: scale(1);
    }
}
