/* =========================================
   RESET & FONTS
========================================= */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

@font-face {
    font-family: "Love Diary Regular";
    src: local("Love Diary-Regular");
}
@font-face {
    font-family: "Love Diary";   
    src: url("Love\ Diary.otf") format("truetype"); 
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #ffffff;
    font-family: "Love Diary";
    overflow-x: hidden;
}

/* ============================================================ */
/* ===== 📱 MOBILE SCREEN (YOUR ORIGINAL DESIGN) 📱 ===== */
/* ============================================================ */
.mobile-only.story-page {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: block;
}

.mobile-only .float-decor {
    position: absolute;
    font-size: 20px;
    color: #ffd2e7;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}
.mobile-only .d1 { top: 5%; left: 10%; animation: floatA 5s ease-in-out infinite; }
.mobile-only .d2 { top: 20%; right: 8%; animation: floatB 7s ease-in-out infinite; }
.mobile-only .d3 { bottom: 40%; left: 5%; animation: floatA 6s ease-in-out infinite; }

@keyframes floatA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-10deg); }
}

.mobile-only .story-hero {
    position: relative;
    height: 300px;
    background-image: url(pic1.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    z-index: 2;
}

.mobile-only .back-btn {
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 17px;
    color: #ffd2e7;
    -webkit-text-stroke: 0.5px #000000;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 10;
}
.mobile-only .back-btn:hover { transform: scale(1.1); }

.mobile-only .hero-text { text-align: center; z-index: 2; margin-bottom: 40px; }
.mobile-only .hero-text h1 {
    font-size: 34px;
    color: #ffd2e7;
    -webkit-text-stroke: 0.71px #000000;
    margin-bottom: 10px;
}
.mobile-only .hero-text p {
    font-size: 10px;
    color: #ffffff;
    -webkit-text-stroke: 0.4px #000000;
    width: 80%;
    margin: 0 auto;
}

.mobile-only .story-section {
    padding: 20px 15px;
    position: relative;
    z-index: 2;
}

.mobile-only .story-card {
    border-radius: 39.29px;
    border: 1.43px solid #000000;
    padding: 25px 20px;
    text-align: center;
}

.mobile-only .bg-soft-pink { background-color: #ffeef6; }
.mobile-only .bg-white { background-color: #ffffff; }

.mobile-only .card-img {
    width: 100%;
    height: 180px;
    border-radius: 29px;
    border: 1.43px solid #000000;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.mobile-only .story-card h2 {
    font-size: 22px;
    color: #ffd2e7;
    -webkit-text-stroke: 0.5px #000000;
    margin-bottom: 10px;
}
.mobile-only .story-card p {
    font-size: 11px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 12px;
}

.mobile-only .material-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
}
.mobile-only .mat-item {
    background-color: #ffffff;
    border: 1px solid #ffd2e7;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mobile-only .mat-icon { font-size: 24px; }
.mobile-only .mat-item span { font-size: 10px; color: #666666; }

.mobile-only .review-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #ffd2e7;
}
.mobile-only .review-box p { font-size: 10px; color: #555555; margin-bottom: 5px; }
.mobile-only .review-name { font-size: 10px; color: #999999; display: block; text-align: right; }

.mobile-only .quote-text {
    font-size: 13px !important;
    color: #444444 !important;
    line-height: 2 !important;
    font-style: italic;
}
.mobile-only .signature {
    font-size: 14px;
    color: #ffd2e7;
    -webkit-text-stroke: 0.3px #000000;
    margin-top: 10px;
}

.mobile-only .cute-divider {
    text-align: center;
    font-size: 16px;
    color: #ffd2e7;
    letter-spacing: 6px;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.mobile-only .join-box {
    text-align: center;
    background-color: #ffffff;
    border-radius: 39.29px;
    border: 1.43px solid #000000;
    padding: 17px 20px;
    border-color: #ffd2e7;
}
.mobile-only .join-box h2 { font-size: 20px; color: #ffd2e7; -webkit-text-stroke: 0.5px #000000; margin-bottom: 8px; }
.mobile-only .join-box p { font-size: 10px; color: #666666; margin-bottom: 9px; }

.mobile-only .footer-wrapper {
    text-align: center;
    padding: 40px 15px 30px;
    background-color: #ffffff;
}
.mobile-only .footer-title {
    font-size: 30px;
    color: #ffd2e7;
    -webkit-text-stroke: 0.71px #000000;
    margin-bottom: 20px;
}
.mobile-only .footer-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.mobile-only .footer-icons img {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.mobile-only .footer-icons img:hover { transform: scale(1.2) rotate(5deg); }
.mobile-only .footer-text {
    font-size: 9.3px;
    color: #ffffff;
    -webkit-text-stroke: 0.71px #000000;
    line-height: 1.8;
    max-width: 242px;
    margin: 0 auto;
}

.mobile-only .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-only .fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================ */
/* ===== 🖥️ BRAND NEW LAPTOP/TABLET DESIGN 🖥️ ===== */
/* ============================================================ */

/* Hide laptop version on phones */
@media (max-width: 767px) {
    .desktop-wrapper { display: none !important; }
}

/* Show laptop version on tablets and laptops */
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    
    body {
        background: #fff0f6;
        display: flex;
        justify-content: center;
        padding: 40px;
    }

    .desktop-wrapper {
        max-width: 1200px;
        width: 100%;
        background: #ffffff;
        border-radius: 40px;
        box-shadow: 0 20px 60px rgba(255, 210, 231, 0.1);
        overflow: hidden;
        padding: 40px 50px 50px 50px;
        font-family: "Love Diary", "Single Day", sans-serif;
        color: #5b1133;
    }

    /* ===== HEADER ===== */
    .d-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #ffd2e7;
        margin-bottom: 40px;
    }
    .d-logo {
        font-family: "Love Diary";
        font-size: 28px;
        color: #ffd2e7;
        -webkit-text-stroke: 0.5px #000000;
    }
    .d-back-btn {
        font-family: "Love Diary";
        font-size: 16px;
        color: #5b1133;
        border: 1.5px solid #000000;
        padding: 8px 20px;
        border-radius: 30px;
        background: #ffffff;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    .d-back-btn:hover { background: #ffd2e7; color: #ffffff; transform: scale(1.05); }

    /* ===== HERO ===== */
    .d-hero {
        text-align: center;
        margin-bottom: 40px;
    }
    .d-hero-content h1 {
        font-family: "Love Diary";
        font-size: 48px;
        color: #ffd2e7;
        -webkit-text-stroke: 1px #000000;
        margin: 0 0 10px 0;
        line-height: 1.2;
    }
    .d-hero-content p {
        font-family: "Love Diary";
        font-size: 18px;
        color: #5b1133;
        margin-bottom: 20px;
    }
    .d-sparkle {
        font-size: 40px;
        color: #ffd2e7;
        animation: floatA 3s ease-in-out infinite;
        display: inline-block;
    }

    /* ===== SECTIONS ===== */
    .d-section { margin-bottom: 50px; }
    .d-alt {
        background: #ffeef6;
        border-radius: 30px;
        padding: 40px 30px;
        border: 1px solid #ffd2e7;
    }

    /* ===== GRID ===== */
    .d-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    .d-reverse .d-image-block { order: 2; }
    .d-reverse .d-text-block { order: 1; }

    .d-text-block { padding: 0 10px; }
    .d-title {
        font-family: "Love Diary";
        font-size: 32px;
        color: #ffd2e7;
        -webkit-text-stroke: 0.5px #000000;
        margin-bottom: 15px;
    }
    .d-text-block p {
        font-family: "Love Diary";
        font-size: 16px;
        color: #444444;
        line-height: 1.8;
        margin-bottom: 15px;
    }
    .d-image-block {
        border-radius: 39px;
        border: 1.5px solid #000000;
        overflow: hidden;
        height: 280px;
    }
    .d-image-block img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ===== MATERIALS GRID ===== */
    .d-mat-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin: 15px 0;
    }
    .d-mat-item {
        background-color: #ffffff;
        border: 1px solid #ffd2e7;
        border-radius: 20px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .d-mat-icon { font-size: 28px; }
    .d-mat-item span { font-size: 12px; color: #666666; }

    /* ===== REVIEWS ===== */
    .d-review-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .d-review-box {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 25px;
        border: 1px solid #ffd2e7;
        text-align: center;
        transition: all 0.3s ease;
    }
    .d-review-box:hover { transform: translateY(-5px); }
    .d-review-box p {
        font-family: "Love Diary";
        font-size: 14px;
        color: #555555;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    .d-review-name {
        font-size: 12px;
        color: #999999;
        display: block;
        text-align: right;
    }

    /* ===== DREAMY NOTE ===== */
    .d-note-box {
        text-align: center;
        background-color: #ffffff;
        border-radius: 39px;
        border: 1.5px solid #ffd2e7;
        padding: 40px;
    }
    .d-quote {
        font-size: 18px !important;
        color: #444444 !important;
        line-height: 2 !important;
        font-style: italic;
        max-width: 600px;
        margin: 0 auto;
    }
    .d-signature {
        font-size: 18px;
        color: #ffd2e7;
        -webkit-text-stroke: 0.3px #000000;
        margin-top: 15px;
    }

    /* ===== JOIN ===== */
    .d-join-box {
        text-align: center;
        background-color: #ffffff;
        border-radius: 39px;
        border: 1.5px solid #ffd2e7;
        padding: 40px;
    }
    .d-join-box h2 {
        font-family: "Love Diary";
        font-size: 28px;
        color: #ffd2e7;
        -webkit-text-stroke: 0.5px #000000;
        margin-bottom: 10px;
    }
    .d-join-box p {
        font-family: "Love Diary";
        font-size: 16px;
        color: #666666;
        line-height: 1.6;
    }

    /* ===== DIVIDER ===== */
    .d-divider {
        text-align: center;
        font-size: 20px;
        color: #ffd2e7;
        letter-spacing: 8px;
        padding: 10px 0;
    }

    /* ===== FOOTER ===== */
    .d-footer {
        text-align: center;
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid #ffd2e7;
    }
    .d-footer-title {
        font-family: "Love Diary";
        font-size: 32px;
        color: #ffd2e7;
        -webkit-text-stroke: 0.5px #000000;
        margin-bottom: 20px;
    }
    .d-footer-icons {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-bottom: 20px;
    }
    .d-icon {
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
        cursor: pointer;
    }
    .d-icon:hover { transform: scale(1.2) rotate(5deg); }
    .d-footer-text {
        font-family: "Love Diary";
        font-size: 14px;
        color: #5b1133;
        line-height: 1.8;
        max-width: 500px;
        margin: 0 auto;
    }
}