:root {
    --lavender: #ead8f6;
    --lavender-dark: #b88bd1;
    --pink: #f8dce8;
    --pink-dark: #e7a5c2;
    --cream: #fffaf0;
    --paper: #fffdf8;
    --purple: #554064;
    --purple-soft: #806b8d;
    --ink: #493b50;
    --muted: #8d7d94;
    --line: #eadbed;
    --shadow: 0 12px 30px rgba(98, 65, 113, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Nunito", sans-serif;
    background:
        radial-gradient(ellipse at 12% 12%, #f9e4ed 0, transparent 32%),
        radial-gradient(ellipse at 90% 28%, #e1d6f6 0, transparent 35%),
        radial-gradient(ellipse at 48% 75%, #fff1dc 0, transparent 38%),
        #f8f0fb;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.watercolor {
    position: fixed;
    z-index: -2;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}

.watercolor-one {
    top: 8%;
    left: -180px;
    background: #e9c8f8;
}

.watercolor-two {
    top: 48%;
    right: -190px;
    background: #f6cddd;
}

.background-stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    color: #bd9bcf;
    opacity: 0.18;
    font-size: 24px;
    letter-spacing: 32px;
    line-height: 100px;
    pointer-events: none;
}

.universe {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.hero-header {
    padding: 27px 0 12px;
    text-align: center;
}

.brand {
    display: inline-block;
    font-family: "Patrick Hand", cursive;
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand span {
    color: #e38bb0;
}

.brand-subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    min-height: 420px;
    padding: 35px 42px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 36px;
    background: linear-gradient(125deg, rgba(255, 251, 248, 0.95), rgba(249, 231, 247, 0.94));
    box-shadow: var(--shadow);
    position: relative;
}

.hero::before,
.hero::after {
    content: "✧";
    position: absolute;
    color: #c19bd7;
    font-size: 38px;
}

.hero::before {
    top: 24px;
    right: 28px;
}

.hero::after {
    bottom: 25px;
    left: 25px;
    font-size: 24px;
}

.little-label,
.section-kicker,
.card-label,
.destination-label {
    color: #9d78b0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.hero h1 {
    max-width: 540px;
    margin: 17px 0;
    font-family: "Patrick Hand", cursive;
    font-size: clamp(42px, 5.2vw, 65px);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    color: #c76e9a;
}

.hero-copy > p {
    max-width: 420px;
    color: #82738a;
    font-size: 15px;
    line-height: 1.9;
}

.hero-copy > p b {
    color: #ac6d97;
}

.hero-hearts {
    margin-top: 24px;
    color: #d982a8;
    font-size: 22px;
    letter-spacing: 9px;
}

.hero-hearts span {
    color: #bca0d6;
    font-size: 17px;
}

.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    isolation: isolate;
}

.hero-cloud {
    position: absolute;
    z-index: -1;
    bottom: 29px;
    width: 280px;
    height: 110px;
    border: 2px solid #fff;
    border-radius: 60% 48% 35% 38%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 15px 30px rgba(141, 104, 164, 0.12);
}

.hero-character {
    position: absolute;
    width: clamp(135px, 17vw, 200px);
    max-height: 255px;
    object-fit: contain;
    filter: drop-shadow(0 9px 6px rgba(100, 70, 110, 0.12));
    animation: float-gently 4s ease-in-out infinite;
}

.hero-girl {
    left: 3%;
    bottom: 43px;
    transform: rotate(-5deg);
}

.hero-boy {
    right: 1%;
    bottom: 42px;
    animation-delay: -1.8s;
}

.hero-floating-heart,
.hero-floating-star,
.hero-floating-sparkle {
    position: absolute;
    color: #d782a8;
    font-size: 30px;
    animation: float-gently 3s ease-in-out infinite;
}

.hero-floating-heart {
    top: 23px;
    left: 15%;
}

.hero-floating-star {
    top: 48px;
    right: 12%;
    color: #b49ad5;
}

.hero-floating-sparkle {
    bottom: 102px;
    left: 4%;
    font-size: 22px;
    animation-delay: -1s;
}

.hero-art-caption {
    position: absolute;
    bottom: 3px;
    padding: 7px 15px;
    border: 1px dashed #d5b4d8;
    border-radius: 20px;
    background: #fffaf5;
    color: #9876a1;
    font-family: "Patrick Hand", cursive;
    font-size: 17px;
    transform: rotate(-2deg);
}

/* Character playground */

.character-playground {
    margin-top: 62px;
}

.playground-heading,
.destinations-heading {
    margin-bottom: 21px;
    text-align: center;
}

.playground-heading h2,
.destinations-heading h2,
.memories-heading h2 {
    margin: 7px 0;
    font-family: "Patrick Hand", cursive;
    font-size: clamp(30px, 4vw, 42px);
}

.playground-heading p,
.destinations-heading p,
.memories-heading p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
}

.character-playground-area {
    position: relative;
    height: 310px;
    overflow: hidden;
    border: 2px dashed #dfc8e7;
    border-radius: 30px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.56), rgba(245, 224, 249, 0.65));
}

.playground-cloud {
    position: absolute;
    color: #fff;
    opacity: 0.85;
    font-size: 65px;
    pointer-events: none;
}

.cloud-a {
    top: 17px;
    left: 12%;
}

.cloud-b {
    top: 68px;
    right: 14%;
    font-size: 44px;
}

.cloud-c {
    bottom: 30px;
    left: 46%;
    font-size: 54px;
}

.floating-character {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 92px;
    height: 108px;
    padding: 3px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        left 850ms cubic-bezier(0.22, 1, 0.36, 1),
        top 850ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 250ms ease;
    animation: character-bob 3.2s ease-in-out infinite;
}

.floating-character:hover {
    z-index: 5;
    filter: drop-shadow(0 7px 8px rgba(184, 128, 202, 0.3));
}

.floating-character:focus-visible {
    outline: 2px dashed #9b6db2;
    outline-offset: 3px;
    border-radius: 20px;
}

.floating-character img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 5px 4px rgba(90, 65, 100, 0.12));
}

.floating-character .character-emoji {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 2px solid white;
    border-radius: 50%;
    background: #fff7fb;
    font-size: 40px;
    box-shadow: 0 6px 16px rgba(104, 71, 120, 0.1);
}

.playground-hint {
    position: absolute;
    right: 18px;
    bottom: 13px;
    color: #a48bb0;
    font-family: "Patrick Hand", cursive;
    font-size: 17px;
    transform: rotate(-3deg);
}

.sparkle-trail {
    position: absolute;
    z-index: 4;
    color: #d58db4;
    font-size: 18px;
    pointer-events: none;
    animation: sparkle-pop 900ms ease-out forwards;
}

.sparkle-trail:nth-child(2n) {
    color: #a68dd2;
}

.sparkle-trail:nth-child(3n) {
    color: #edbb68;
}

/* Love notes and countdown */

.love-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 26px;
}

.paper-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 27px 28px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.daily-card {
    transform: rotate(-0.5deg);
}

.countdown-card {
    background: linear-gradient(140deg, #fffaf4, #f9e8f5);
    transform: rotate(0.5deg);
    transition: transform 200ms ease;
}

.countdown-card:hover {
    transform: translateY(-3px) rotate(0deg);
}

.paper-card h2 {
    position: relative;
    margin: 9px 0 12px;
    font-family: "Patrick Hand", cursive;
    font-size: 30px;
}

.daily-message {
    position: relative;
    min-height: 52px;
    margin: 0;
    color: #786780;
    font-size: 14px;
    line-height: 1.8;
}

.text-button {
    margin-top: 13px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #b16f9c;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.text-button:hover {
    color: #7f568f;
}

.card-decoration {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 44px;
    opacity: 0.55;
}

.decoration-heart {
    color: #e8a0bd;
}

.decoration-star {
    color: #b69bd4;
}

.event-date {
    margin: -3px 0 15px;
    color: #907e99;
    font-size: 12px;
}

.countdown-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.countdown-number strong {
    color: #c16e9b;
    font-family: "Patrick Hand", cursive;
    font-size: 57px;
    line-height: 1;
}

.countdown-number span {
    color: #927a9b;
    font-size: 12px;
    font-weight: 800;
}

.countdown-footer {
    display: block;
    margin-top: 13px;
    color: #a38aa9;
    font-family: "Patrick Hand", cursive;
    font-size: 17px;
}

/* Large scrapbook navigation cards */

.universe-destinations {
    margin-top: 76px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.destination-card {
    position: relative;
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    gap: 15px;
    min-height: 215px;
    padding: 22px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.destination-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 0 18px 36px rgba(98, 65, 113, 0.16);
}

.destination-card:focus-visible {
    outline: 3px solid #9f79ba;
    outline-offset: 4px;
}

.destination-memories {
    background: linear-gradient(130deg, #fff8ed, #f9e3ec);
}

.destination-rules {
    background: linear-gradient(130deg, #f7efff, #fffaf4);
}

.destination-activities {
    background: linear-gradient(130deg, #eaf6f7, #fffaf0);
}

.destination-jokes {
    background: linear-gradient(130deg, #fff1d9, #fbe9f5);
}

.destination-number {
    position: absolute;
    top: 13px;
    right: 17px;
    color: rgba(100, 72, 110, 0.25);
    font-family: "Patrick Hand", cursive;
    font-size: 19px;
}

.destination-illustration {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 140px;
    border: 1px dashed rgba(151, 119, 164, 0.3);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.5);
}

.illustration-cloud {
    position: absolute;
    top: 11px;
    left: 12px;
    color: white;
    font-size: 37px;
}

.illustration-main {
    z-index: 1;
    font-size: 63px;
    filter: drop-shadow(0 7px 4px rgba(100, 70, 100, 0.12));
    transition: transform 250ms ease;
}

.destination-card:hover .illustration-main {
    transform: rotate(-8deg) scale(1.1);
}

.illustration-sparkle {
    position: absolute;
    right: 15px;
    bottom: 15px;
    color: #bf8bc1;
    font-size: 25px;
}

.destination-copy {
    min-width: 0;
}

.destination-copy h3 {
    margin: 7px 0 8px;
    font-family: "Patrick Hand", cursive;
    font-size: clamp(25px, 2.8vw, 32px);
    line-height: 1;
}

.destination-copy p {
    margin: 0;
    color: #86768c;
    font-size: 12px;
    line-height: 1.7;
}

.destination-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: #a36794;
    font-size: 11px;
    font-weight: 900;
}

.destination-cta span {
    transition: transform 200ms ease;
}

.destination-card:hover .destination-cta span {
    transform: translate(3px, -3px);
}

/* Random memory carousel */

.random-memories {
    margin-top: 76px;
    padding: 29px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: rgba(255, 251, 248, 0.8);
    box-shadow: var(--shadow);
}

.memories-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.carousel-controls {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

.carousel-controls button {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid #e6d4eb;
    border-radius: 50%;
    background: #fff;
    color: #8e6ca2;
    font-size: 20px;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.carousel-controls button:hover {
    background: #f6e8f8;
    transform: scale(1.06);
}

.memory-carousel {
    position: relative;
    min-height: 250px;
}

.memory-slide {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    animation: slide-appear 450ms ease both;
}

.memory-photo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 235px;
    padding: 13px 13px 36px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(91, 63, 105, 0.12);
    transform: rotate(-1.3deg);
}

.memory-photo-wrap::after {
    content: "♡";
    position: absolute;
    right: 13px;
    bottom: 3px;
    color: #d38caf;
    font-family: "Patrick Hand", cursive;
    font-size: 25px;
}

.memory-photo {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #f3e8f4;
}

.memory-caption {
    padding: 15px 10px;
}

.memory-caption .memory-date {
    color: #b184bc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.memory-caption h3 {
    margin: 10px 0;
    font-family: "Patrick Hand", cursive;
    font-size: 34px;
}

.memory-caption p {
    color: #85768a;
    font-size: 14px;
    line-height: 1.9;
}

.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
}

.carousel-dots {
    display: flex;
    gap: 7px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dbc7e5;
    cursor: pointer;
}

.carousel-dot.active {
    width: 23px;
    border-radius: 10px;
    background: #b58bc9;
}

.view-all-link {
    color: #a16c9b;
    font-size: 12px;
    font-weight: 900;
}

/* Footer and toast */

.universe-footer {
    padding: 46px 12px 35px;
    text-align: center;
}

.footer-hearts {
    color: #d58db4;
    font-size: 23px;
    letter-spacing: 7px;
}

.universe-footer p {
    margin: 13px 0 6px;
    color: #87758f;
    font-size: 12px;
}

.universe-footer > span {
    color: #ad8eb9;
    font-family: "Patrick Hand", cursive;
    font-size: 18px;
}

.toast {
    position: fixed;
    z-index: 20;
    right: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    padding: 12px 18px;
    border: 1px solid #f5d9e9;
    border-radius: 18px;
    background: #fffafc;
    color: #8c5c8e;
    box-shadow: var(--shadow);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */

@keyframes float-gently {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

@keyframes character-bob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -7px; }
}

@keyframes sparkle-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -65%) scale(1.15) rotate(35deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -130%) scale(0.5) rotate(90deg);
    }
}

@keyframes slide-appear {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive layout */

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr 0.8fr;
        padding: 30px 25px;
    }

    .hero-art {
        min-height: 260px;
    }

    .destination-card {
        grid-template-columns: 110px 1fr;
        padding: 17px;
    }

    .destination-illustration {
        min-height: 130px;
    }

    .illustration-main {
        font-size: 49px;
    }

    .destination-copy h3 {
        font-size: 27px;
    }
}

@media (max-width: 620px) {
    .universe {
        width: min(100% - 22px, 500px);
    }

    .hero-header {
        padding-top: 21px;
    }

    .brand {
        font-size: 31px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 29px 22px 20px;
        border-radius: 28px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero h1 {
        margin: 14px auto;
        font-size: clamp(43px, 12vw, 58px);
    }

    .hero-copy > p {
        margin: 0 auto;
        font-size: 13px;
    }

    .hero-hearts {
        margin-top: 13px;
    }

    .hero-art {
        min-height: 245px;
        margin-top: 2px;
    }

    .hero-character {
        width: 160px;
        max-height: 200px;
    }

    .hero-cloud {
        bottom: 29px;
        width: 235px;
        height: 90px;
    }

    .hero-girl {
        left: 4%;
        bottom: 38px;
    }

    .hero-boy {
        right: 2%;
        bottom: 37px;
    }

    .hero-art-caption {
        bottom: 0;
        font-size: 15px;
    }

    .character-playground {
        margin-top: 47px;
    }

    .character-playground-area {
        height: 290px;
    }

    .floating-character {
        width: 75px;
        height: 90px;
    }

    .love-widgets {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 20px;
    }

    .paper-card {
        padding: 24px;
    }

    .universe-destinations,
    .random-memories {
        margin-top: 53px;
    }

    .destination-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .destination-card {
        grid-template-columns: 110px 1fr;
        min-height: 180px;
        padding: 17px;
    }

    .destination-illustration {
        min-height: 130px;
    }

    .destination-copy h3 {
        font-size: 28px;
    }

    .random-memories {
        padding: 20px 15px;
    }

    .memories-heading {
        align-items: flex-end;
        gap: 8px;
    }

    .memories-heading h2 {
        font-size: 29px;
    }

    .memories-heading p {
        max-width: 235px;
        font-size: 11px;
        line-height: 1.6;
    }

    .carousel-controls {
        gap: 5px;
    }

    .carousel-controls button {
        width: 35px;
        height: 35px;
    }

    .memory-carousel {
        min-height: auto;
    }

    .memory-slide {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .memory-photo-wrap {
        min-height: 190px;
    }

    .memory-photo {
        height: 260px;
    }

    .memory-caption {
        padding: 6px 5px;
    }

    .memory-caption h3 {
        margin: 7px 0;
        font-size: 29px;
    }

    .memory-caption p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .carousel-footer {
        margin-top: 17px;
    }

    .view-all-link {
        font-size: 11px;
    }

    .universe-footer {
        padding-top: 37px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}





/* =========================================
   HOME PAGE — UPDATED JSON / JS COMPATIBILITY
   Append at the bottom of home.css
========================================= */

/* Use the background image only when configured in JSON */
body {
    background-image:
        var(--home-background-image, none),
        radial-gradient(ellipse at 12% 12%, #f9e4ed 0, transparent 32%),
        radial-gradient(ellipse at 90% 28%, #e1d6f6 0, transparent 35%),
        radial-gradient(ellipse at 48% 75%, #fff1dc 0, transparent 38%);
    background-position: center, center, center, center;
    background-size: cover, auto, auto, auto;
    background-attachment: fixed;
}

/* -----------------------------------------
   JSON-DRIVEN NAVIGATION
----------------------------------------- */

.destination-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.destination-card {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 175px;
    padding: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    color: var(--ink);
    box-shadow: var(--shadow);
    animation: home-card-entrance 450ms ease both;
    animation-delay: var(--card-delay, 0ms);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(98, 65, 113, 0.16);
}

.destination-card:focus-visible {
    outline: 3px dashed var(--lavender-dark);
    outline-offset: 4px;
}

.destination-card.theme-pink {
    background: linear-gradient(130deg, #fff8ed, #f9e3ec);
}

.destination-card.theme-lavender {
    background: linear-gradient(130deg, #f7efff, #fffaf4);
}

.destination-card.theme-mint {
    background: linear-gradient(130deg, #eaf6f2, #fffaf0);
}

.destination-card.theme-peach {
    background: linear-gradient(130deg, #fff1d9, #fbe9f5);
}

.destination-card.theme-blue {
    background: linear-gradient(130deg, #edf1ff, #fffaf4);
}

.destination-card.theme-yellow {
    background: linear-gradient(130deg, #fff7dc, #f9e9f5);
}

.destination-icon {
    display: block;
    width: 94px;
    height: 94px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 7px 5px rgba(90, 65, 100, 0.10));
    transition: transform 250ms ease;
}

.destination-card:hover .destination-icon {
    transform: translateY(-4px) rotate(-5deg) scale(1.05);
}

.destination-content {
    min-width: 0;
}

.destination-label {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.destination-title {
    margin: 0 0 8px;
    font-family: "Patrick Hand", cursive;
    font-size: clamp(23px, 2.5vw, 31px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.destination-subtitle {
    margin: 0;
    color: #86768c;
    font-size: 12px;
    line-height: 1.7;
}

.destination-action {
    display: inline-block;
    margin-top: 14px;
    color: #a36794;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
}

.destination-action::after {
    content: " ↗";
    display: inline-block;
    transition: transform 180ms ease;
}

.destination-card:hover .destination-action::after {
    transform: translate(3px, -2px);
}

@keyframes home-card-entrance {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------
   JSON-DRIVEN CHARACTER PLAYGROUND
----------------------------------------- */

/* The outer section remains styled by .character-playground.
   The inner area is the positioning container. */

.character-playground-area {
    position: relative;
    height: 310px;
    overflow: hidden;
    isolation: isolate;
    border: 2px dashed #dfc8e7;
    border-radius: 30px;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255, 255, 255, 0.9),
            transparent 55%
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.56),
            rgba(245, 224, 249, 0.65)
        );
}

.playground-character {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
       width: 328px;
    height: 400px;
    padding: 3px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        left 850ms cubic-bezier(0.22, 1, 0.36, 1),
        top 850ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 250ms ease;
    animation: character-bob 3.2s ease-in-out infinite;
}

.playground-character:hover {
    z-index: 5;
    filter: drop-shadow(0 7px 8px rgba(184, 128, 202, 0.3));
}

.playground-character:focus-visible {
    outline: 2px dashed #9b6db2;
    outline-offset: 3px;
    border-radius: 20px;
}

.playground-character img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 5px 4px rgba(90, 65, 100, 0.12));
}

/* Sparkles created by home.js */
.character-sparkle {
    position: absolute;
    z-index: 4;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e7b8ff;
    box-shadow: 0 0 12px #d9a4ff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: character-sparkle-fade 1.2s ease-out forwards;
}

@keyframes character-sparkle-fade {
    0% {
        opacity: 0.95;
        scale: 0.3;
    }

    45% {
        opacity: 0.8;
        scale: 1.2;
    }

    100% {
        opacity: 0;
        scale: 0.2;
    }
}

@keyframes character-bob {
    0%, 100% {
        margin-top: 0;
    }

    50% {
        margin-top: -6px;
    }
}

/* -----------------------------------------
   JSON-DRIVEN MEMORIES
----------------------------------------- */

.memory-card {
    min-width: 0;
    padding: 13px 13px 18px;
    border: 1px solid #f0e2f1;
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(91, 63, 105, 0.08);
    animation: home-card-entrance 350ms ease both;
}

.memory-card[hidden] {
    display: none !important;
}

.memory-image {
    display: block;
    width: 100%;
    height: 200px;
    margin-bottom: 14px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3e8f4;
}

.memory-title {
    margin: 0 0 7px;
    font-family: "Patrick Hand", cursive;
    font-size: 25px;
}

.memory-description {
    margin: 0;
    color: #85768a;
    font-size: 12px;
    line-height: 1.8;
}

/* A memories container can display all cards as a responsive grid */
#memories-container,
#memories-carousel,
#memory-carousel,
#memories-track,
#memory-track,
[data-memories] {
    min-width: 0;
}

.memories-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* -----------------------------------------
   COUNTDOWN IMAGE
----------------------------------------- */

#countdown-image,
[data-countdown-image] {
    display: block;
    width: 100%;
    max-width: 180px;
    max-height: 150px;
    margin: 12px auto;
    object-fit: contain;
}

#countdown-section[hidden],
#countdown-container[hidden],
[data-countdown][hidden] {
    display: none !important;
}

/* -----------------------------------------
   SHOOTING STARS
----------------------------------------- */

.shooting-star-layer {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.shooting-star {
    position: absolute;
    display: block;
    width: 125px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 166, 239, 0.2) 35%,
        rgba(255, 218, 242, 0.9) 80%,
        #fffaff
    );
    box-shadow: 0 0 8px rgba(226, 185, 255, 0.45);
    transform-origin: center;
    animation: shooting-star-flight
        var(--flight-duration, 1800ms)
        ease-out forwards;
}

.shooting-star::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fffaff;
    box-shadow:
        0 0 5px 2px #f8dcff,
        0 0 14px 5px rgba(222, 176, 255, 0.7);
    transform: translateY(-50%);
}

@keyframes shooting-star-flight {
    0% {
        opacity: 0;
        translate: 0 0;
        rotate: var(--star-angle);
    }

    12% {
        opacity: 1;
    }

    75% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        translate: var(--travel-x) var(--travel-y);
        rotate: var(--star-angle);
    }
}

/* -----------------------------------------
   TOAST MESSAGES
----------------------------------------- */

#toast-message,
.toast-message,
#toast,
.toast {
    position: fixed;
    z-index: 1000;
    right: auto;
    bottom: 24px;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    border: 1px solid #e8d4ee;
    border-radius: 16px;
    background: #fff9ff;
    color: #49345e;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 6px 24px rgba(73, 52, 94, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 250ms ease;
}

#toast-message.show,
.toast-message.show,
#toast.show,
.toast.show,
.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* -----------------------------------------
   DYNAMIC BACKGROUND / SITE INFO
----------------------------------------- */

[data-home-background] {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#site-title,
#hero-title,
[data-site-title] {
    overflow-wrap: anywhere;
}

/* -----------------------------------------
   MOBILE RESPONSIVENESS
----------------------------------------- */

@media (max-width: 850px) {
    .destination-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        min-height: 160px;
        padding: 18px;
    }

    .destination-icon {
        width: 76px;
        height: 76px;
    }

    .destination-title {
        font-size: 26px;
    }

    .memories-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .destination-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .destination-card {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 150px;
        padding: 17px;
    }

    .destination-icon {
        width: 76px;
        height: 76px;
    }

    .destination-title {
        font-size: 27px;
    }

    .destination-subtitle {
        font-size: 12px;
    }

    .character-playground-area {
        height: 290px;
    }

    .playground-character {
        width: 70px;
        height: 86px;
    }

    .memories-track {
        grid-template-columns: minmax(0, 1fr);
    }

    .memory-image {
        height: 230px;
    }
}

/* -----------------------------------------
   ACCESSIBILITY
----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .shooting-star,
    .character-sparkle {
        display: none !important;
        animation: none !important;
    }

    .destination-card,
    .playground-character,
    .destination-icon {
        animation: none !important;
        transition: none !important;
    }
}
