:root {
    --text-color: #5a4648; /* Elegant deep taupe */
    --card-bg: rgba(255, 255, 255, 0.6); /* Frosted glass */
    --shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --accent: #ff8da1;
    color-scheme: light; /* Force light mode - prevents mobile dark mode from inverting colors */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden; /* Prevent ANY horizontal scroll */
    width: 100%;
}

body {
    font-family: 'Gowun Dodum', 'Quicksand', 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    /* Fascinating Liquid Gradient Background */
    background: linear-gradient(-45deg, #ffe4e1, #fff0f5, #fdfbf7, #ffd1dc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle Sakura Canvas */
#sakura-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Soft Floating Gradient Orbs for Liquid Feel */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatOrbs 20s infinite alternate ease-in-out;
}
body::before {
    width: 60vw; height: 60vw;
    background: rgba(255, 182, 193, 0.6);
    top: -10vw; left: -10vw;
}
body::after {
    width: 70vw; height: 70vw;
    background: rgba(255, 228, 225, 0.7);
    bottom: -10vw; right: -10vw;
    animation-delay: -10s;
}
@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 10vh) scale(1.3); }
}

/* Compressed Header & Title Glow */
.gallery-header {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    position: relative;
    z-index: 20;
}

.title-crop-container {
    position: relative;
    display: inline-block;
}

/* Fix: Massive Explicit Glow on Header */
.gallery-header::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw; 
    max-width: 1200px; /* Perfect sweet spot: not too huge, not too small */
    height: 600px; /* Moderate vertical glow */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: gentlePulse 3s ease-in-out infinite alternate;
}

.title-glow {
    display: none; /* Hide the old one that wasn't working */
}

@keyframes gentlePulse {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.title-image {
    display: block;
    width: 100%;
    max-width: 700px; /* Increased significantly per request */
    height: auto;
    margin: 0 auto;
    /* Massive glowing aura */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(255, 182, 193, 0.8));
    animation: floatingTitle 3s ease-in-out infinite;
}

@keyframes floatingTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Character Profile Section --- */
.character-profile {
    max-width: 1300px; /* Increased width */
    margin: 3rem auto 6rem auto;
    padding: 4rem; /* Increased padding */
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px; /* Softer radius */
    box-shadow: 0 30px 60px rgba(255, 182, 193, 0.3);
    display: flex;
    gap: 5rem; /* Increased gap */
    align-items: center;
    position: relative;
    z-index: 10;
}

.profile-image {
    flex: 0 0 45%;
    max-width: 550px; /* Increased image size */
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.profile-info {
    flex: 1;
    color: var(--text-color);
}

.profile-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
    letter-spacing: -1px;
}

.profile-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 182, 193, 0.2);
    color: #d85c75;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.profile-style {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(255, 182, 193, 0.5);
}

.profile-likes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.like-group, .dislike-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.like-label, .dislike-label {
    font-weight: 800;
    min-width: 90px;
}
.like-label { color: #5bc0be; }
.dislike-label { color: #f07167; }

.like-item, .dislike-item {
    font-size: 1.15rem; /* Larger font */
    font-weight: 800; /* Cuter, bolder feel */
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.like-item {
    color: #ff8da1; /* Soft pink instead of black */
    background: rgba(255, 182, 193, 0.15); /* Soft background block instead of just text */
}

.dislike-item {
    color: #8fa8a8; /* Soft dusty blue/grey instead of black */
    background: rgba(143, 168, 168, 0.15);
}

.profile-story {
    background: rgba(255, 255, 255, 0.7); /* Slightly more opaque for readability */
    padding: 2.5rem 2.5rem; /* Reduced padding to make the box shorter */
    border-radius: 20px;
    font-size: 1.15rem; /* Slightly reduced */
    line-height: 1.4; /* Further reduced line height */
    position: relative;
    border-left: 6px solid var(--accent); /* Elegant left border */
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(0,0,0,0.02);
}

/* Giant Decorative Quote Mark */
.profile-story::before {
    content: '❝';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(255, 182, 193, 0.4);
    font-family: Georgia, serif;
    pointer-events: none;
    line-height: 1;
}

.profile-story strong {
    color: #d85c75;
    font-weight: 800;
    font-size: 1.25rem; /* Make bold text pop more */
}

.profile-story .dim {
    opacity: 0.5;
    text-decoration: line-through;
}

.profile-story .highlight {
    background: linear-gradient(120deg, rgba(255,182,193, 0.6) 0%, rgba(255,182,193, 0.6) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 85%;
    font-weight: 800;
    color: #d85c75;
    padding: 0 0.3rem;
}

.profile-story p {
    margin-bottom: 1rem;
}
.profile-story p:last-child {
    margin-bottom: 0;
}

.profile-story .quote {
    font-style: italic;
    font-weight: 700;
    color: var(--accent);
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
}

/* --- Gallery Header & Unlock Button --- */
.gallery-header-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 15;
}

.gallery-title {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(255, 182, 193, 0.5);
    font-weight: 800;
}

.unlock-btn {
    background: linear-gradient(135deg, #ff9eb1, #ffb7c5);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: inherit;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 182, 193, 0.4);
    transition: var(--transition);
}

.unlock-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 182, 193, 0.6);
}

.unlock-btn:active {
    transform: translateY(0) scale(0.95);
}

/* 2 Column Large Exhibition Layout */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Prevents containers from stretching to the same height, fixing empty space */
    gap: 4rem; /* Increased from 2rem to make images further apart */
    padding: 1rem 3% 5rem 3%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Gallery Items */
.gallery-item {
    width: calc(50% - 4rem); /* Huge images, 2 columns on desktop */
    min-width: 350px;
    background: var(--card-bg);
    backdrop-filter: blur(15px); /* Elegant glass effect */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Crisp white edge */
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px) scale(0.95) rotate(var(--rotation, 0deg));
}

/* Stagger every even item to break boring alignment */
.gallery-item:nth-child(even) {
    margin-top: 6rem; /* Increased stagger distance */
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rotation, 0deg));
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg); /* Straightens on hover */
    box-shadow: 0 25px 50px rgba(255, 182, 193, 0.5);
    border-color: #fff;
    z-index: 30;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    display: block;
    opacity: 1;
    transition: all 0.8s ease; /* Slower transition for mosaic reveal */
}

/* Eye-Friendly Soft Blur Mosaic Effect */
.gallery-item.locked img {
    /* Stronger blur and lower opacity to obscure the image more completely without harsh edges */
    filter: blur(30px) grayscale(0.3) brightness(1.2);
    opacity: 0.4; /* Blends strongly with the background */
    transform: scale(1.08); /* Slight zoom so blurry edges don't show background */
}

.gallery-item.locked:hover::after {
    opacity: 0; /* Do not show hover text when locked */
}

/* Elegant Hover Overlay */
.gallery-item::after {
    content: '애교 보기'; /* Changed from VIEW */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem; /* Made cuter and larger */
    letter-spacing: 1px;
    padding: 15px 40px;
    border-radius: 40px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.4);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hide hover overlay on touch devices (prevents flash on tap) */
@media (hover: none) {
    .gallery-item::after {
        display: none !important;
    }
}

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(253, 251, 247, 0.9); 
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.visible { opacity: 1; pointer-events: auto; }

.modal-content {
    max-width: 90%; max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.4);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
    border: 8px solid #fff;
}
.modal.visible .modal-content { transform: scale(1); }

.close-btn {
    position: absolute; top: 30px; right: 40px;
    font-size: 3.5rem; color: var(--accent); cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}
.close-btn:hover { color: var(--text-color); transform: scale(1.1); }

/* ================================
   MOBILE RESPONSIVE (max 768px)
   ================================ */
@media (max-width: 768px) {

    /* --- Header & Title --- */
    .gallery-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }
    .gallery-header::before {
        width: 100vw;
        height: 300px;
    }
    .title-image {
        max-width: 88vw;
    }

    /* --- Character Profile --- */
    .character-profile {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 1rem 0.8rem 3rem 0.8rem;
        border-radius: 20px;
    }
    .profile-image {
        flex: 1;
        max-width: 85%;
        margin: 0 auto;
    }
    .profile-name {
        text-align: center;
        font-size: 2.2rem;
    }
    .profile-tags {
        justify-content: center;
    }
    .profile-story {
        font-size: 1rem;
        padding: 1.5rem 1.2rem;
        line-height: 1.5;
    }
    .profile-story::before {
        font-size: 4rem;
    }
    .profile-story strong {
        font-size: 1.05rem;
    }
    .like-label, .dislike-label {
        min-width: 70px;
        font-size: 0.9rem;
    }
    .like-item, .dislike-item {
        font-size: 0.95rem;
    }

    /* --- Gallery Title & Unlock Button --- */
    .gallery-title {
        font-size: 1.8rem;
    }
    .unlock-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    /* --- Gallery Grid: 2 COLUMNS on mobile --- */
    .gallery-container {
        gap: 1rem;
        padding: 0 0.8rem 3rem 0.8rem;
        justify-content: center;
    }
    .gallery-item {
        width: calc(50% - 0.5rem); /* 2 column grid */
        min-width: unset;
        padding: 0.4rem;
        border-radius: 10px;
    }
    .gallery-item:nth-child(even) {
        margin-top: 0;
    }

    /* --- Strategy Button & Tip --- */
    .strategy-section {
        padding: 2rem 1rem 6rem 1rem; /* More bottom space */
    }
    .strategy-btn {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
    }
    .strategy-tip {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin: 1rem 0.5rem 0 0.5rem;
        display: block; /* Full width on mobile */
    }
}


/* ==============================
   Price List / Papyrus Section
   ============================== */
.price-section {
    padding: 4rem 2rem 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.price-board {
    position: relative;
    width: 100%;
    max-width: 2250px; /* 1.5x from 1500px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.papyrus-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 8px;
}

.price-content {
    position: absolute;
    top: 55%; /* Shifted further down to clear decorative header */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    text-align: center;
    font-family: 'Nanum Pen Script', cursive;
}

.price-title {
    font-size: 3.2rem; /* Increased */
    font-weight: 400;
    color: #5a3e28;
    margin-bottom: 0.6rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(200, 160, 100, 0.5);
}

.price-divider {
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, #a07850, transparent);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.price-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9rem;
    padding: 0.15rem 0; /* Tighter row spacing */
    font-size: 2.6rem; /* Bigger font for bigger image */
    color: #5a3e28;
    border-bottom: none; /* Remove divider lines between items */
    transition: all 0.2s ease;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li:hover {
    background: rgba(255, 200, 150, 0.2);
    padding-left: 4px;
    border-radius: 4px;
}

.price-item-name {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.price-dots {
    display: none; /* Removed per user request */
}

.price-value {
    font-weight: 400;
    text-align: left;
    color: #8b5a2b;
    white-space: nowrap;
    font-size: 2.6rem; /* Bigger font for bigger image */
}

/* Highlighted tiers */
.price-highlight .price-item-name,
.price-highlight .price-value {
    color: #c0392b;
}

.price-vip {
    background: rgba(255, 215, 0, 0.12);
    border-radius: 6px;
    padding: 0.35rem 4px !important;
}

.price-vip .price-item-name,
.price-vip .price-value {
    color: #8b0000;
    font-size: 2.9rem;
}

.price-note {
    margin-top: 0.8rem;
    font-size: 2.2rem; /* Bigger */
    color: #7a5a3a;
    font-style: italic;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .price-section {
        padding: 6rem 0 3rem 0; /* Large top padding to move well below gallery */
        overflow: visible;
    }
    .price-board {
        /* Scale up the entire price board 2.5x using transform */
        transform: scale(2.5);
        transform-origin: center top;
        margin-bottom: 60vw; /* Compensate for the extra space the scale creates */
    }
    .price-content {
        width: 58%;
        top: 53%;
        color: #ffffff !important;
    }
    .price-title {
        font-size: 0.6rem;
        letter-spacing: 0;
        margin-bottom: 0.05rem;
        color: #ffffff !important;
    }
    .price-list li {
        font-size: 0.5rem;
        gap: 1rem;
        padding: 0;
        margin: -0.05rem 0;
        color: #ffffff !important;
    }
    .price-item-name {
        color: #ffffff !important;
    }
    .price-value {
        font-size: 0.5rem;
        color: #ffffff !important;
    }
    .price-highlight .price-item-name,
    .price-highlight .price-value {
        font-size: 0.5rem;
        color: #ffffff !important;
    }
    .price-note {
        font-size: 0.42rem;
        margin-top: 0.1rem;
        color: #ffffff !important;
    }
    .price-divider {
        width: 30%;
        margin: 0.1rem auto;
    }
}

/* Strategy Button Section */
.strategy-section {
    text-align: center;
    padding: 2rem 1rem 5rem 1rem;
    position: relative;
    z-index: 10;
}

.strategy-btn {
    background: rgba(255, 255, 255, 0.95); /* White glass - contrasts with pink bg */
    color: #c0395a;
    border: 3px solid #ff9eb1;
    padding: 1.2rem 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 6px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.strategy-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.7);
    background: white;
    border-color: #ff7096;
    color: #a0203f;
}

.strategy-btn:active {
    transform: translateY(0) scale(0.96);
}

.strategy-tip {
    margin-top: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 182, 193, 0.5);
    color: #8b3a52;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
    animation: tipPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.strategy-tip.hidden {
    display: none;
}

@keyframes tipPop {
    0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
