/* sw0rdgirl.com - cozy neopets aesthetic */

:root {
    /* Vibrant cozy purple palette */
    --primary-purple: #9B7FD1;
    --light-purple: #C8B5E8;
    --soft-purple: #F0E8FF;
    --deep-purple: #7B5BA5;
    --accent-pink: #FF9FB2;
    --cream: #FFFAF5;
    --soft-gray: #F8F5FF;
    --text-dark: #2D1B3D;
    --text-light: #5A4A6B;
    --vibrant-text: #6B4C93;
    --vibrant-header: #9B59B6;

    /* Fonts */
    --pixel-font: 'Press Start 2P', monospace;
    --mono-font: 'DM Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--mono-font);
    background: linear-gradient(135deg, var(--soft-purple) 0%, var(--cream) 50%, #F5E8FF 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    width: 100%;
    overflow-x: hidden;
}

/* Header & Shopkeeper */
.shop-header {
    text-align: center;
    padding: var(--space-xl) 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 126, 200, 0.2);
}

.shopkeeper-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.shopkeeper-sprite {
    width: 150px;
    height: 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shopkeeper-sprite:hover {
    transform: scale(1.1);
}

/* Custom Pixel Character Image */
.pixel-character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all 0.3s ease;
    border-radius: 10px;
}



/* Character Sparkles */
.char-sparkles {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    animation: sparkle 3s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

.speech-bubble {
    background: white;
    padding: var(--space-sm);
    border-radius: 15px;
    border: 3px solid var(--primary-purple);
    position: relative;
    max-width: 300px;
    font-size: 16px;
    min-height: 60px;
    max-height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.speech-bubble p {
    margin: 0;
    border-right: 2px solid var(--primary-purple);
    white-space: normal;
    word-wrap: break-word;
    animation: blink-caret 0.75s step-end infinite;
    width: 100%;
    line-height: 1.3;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-purple); }
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid var(--primary-purple);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid white;
}

.site-title {
    font-family: var(--pixel-font);
    font-size: 2.5rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-shadow: 3px 3px 0px var(--light-purple), 1px 1px 0px var(--primary-purple);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--vibrant-text);
    font-style: italic;
    font-weight: 500;
}

/* Scrolling Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
}

.marquee-text {
    display: inline-block;
    font-family: var(--mono-font);
    font-size: 16px;
    font-weight: 500;
    animation: marquee 35s linear infinite;
    padding-left: 50%;
    letter-spacing: 0.5px;
    color: var(--vibrant-text);
    opacity: 0.8;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Music Control */
.music-control {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    max-width: 120px;
}

.music-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--light-purple);
    border-radius: 15px;
    padding: 8px;
    width: 120px;
    height: 120px;
}

.music-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.piano-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.music-text {
    font-family: var(--mono-font);
    font-size: 10px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    max-width: 120px;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Mobile: Horizontal music control */
@media (max-width: 768px) {
    .music-control {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
        max-width: 180px;
        top: 60px;
        right: 20px;
        left: auto !important;
        background: white;
        padding: 8px 12px;
        border-radius: 20px;
        border: 2px solid var(--light-purple);
        box-shadow: 0 4px 15px rgba(139, 126, 200, 0.3);
        cursor: pointer;
    }

    .music-btn {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        background: transparent;
        border: none;
        padding: 0;
        pointer-events: auto;
    }

    .music-text {
        font-size: 10px;
        max-width: 100px;
        text-align: left;
        flex: 0 1 auto;
        color: var(--vibrant-text);
        font-weight: 500;
        line-height: 1.2;
        white-space: normal;
        pointer-events: auto;
    }
}

.music-btn.music-off .piano-icon {
    filter: grayscale(100%);
}

.music-btn.playing {
    animation: pulse 2s infinite;
}

.piano-song-text {
    background: none;
    border: none;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    color: var(--vibrant-text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0.8;
}

.piano-song-text:hover {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transform: translateY(-1px);
}

.piano-song-text.music-off {
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navigation */
.pixel-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.contact-text {
    font-family: var(--mono-font);
    font-size: 1.1rem;
    color: var(--vibrant-text);
    font-weight: 500;
}

.email-link {
    color: var(--vibrant-header);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    color: var(--primary-purple);
    border-bottom: 2px solid var(--primary-purple);
    transform: translateY(-1px);
}

.nav-btn {
    font-family: var(--retro-font);
    font-size: 1.3rem;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 3px solid var(--primary-purple);
    border-radius: 25px;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.nav-btn:hover {
    background: rgba(155, 127, 209, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 126, 200, 0.3);
}

.nav-btn.active {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 126, 200, 0.3);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-family: var(--pixel-font);
    font-size: 1.8rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 0px var(--light-purple);
}

.section-header p {
    color: var(--vibrant-text);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Bio Section */
.bio-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-top: var(--space-lg);
}

.bio-photo {
    text-align: center;
    position: sticky;
    top: 20px;
    z-index: 10;
    align-self: start;
}

.bio-content-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.bio-section {
    margin-bottom: var(--space-lg);
}

.bio-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-xl);
    position: relative;
}

.portrait-photo {
    width: 100%;
    max-width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--light-purple);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.3);
    transition: transform 0.3s ease;
}

.portrait-photo:hover {
    transform: scale(1.05);
}

.portrait-placeholder {
    width: 100%;
    max-width: 280px;
    height: 350px;
    border-radius: 15px;
    border: 3px solid var(--light-purple);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.3);
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.placeholder-content {
    text-align: center;
    color: white;
}

.placeholder-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    margin: 0;
}

.design-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    border: 3px solid var(--light-purple);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.3);
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.design-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.design-placeholder p {
    font-family: var(--pixel-font);
    font-size: 1rem;
    margin: 0;
}

.yuan-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.yuan-placeholder:hover {
    transform: scale(1.1);
}

.offering-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 3px solid var(--light-purple);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.3);
}

.photo-caption {
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--space-sm);
    line-height: 1.4;
}

.bio-text {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
}

.bio-text h3 {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-md);
    text-transform: lowercase;
    text-shadow: 1px 1px 0px var(--light-purple);
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Hover Details */
.hover-detail {
    color: var(--vibrant-header);
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: help;
    position: relative;
    transition: all 0.3s ease;
}

.hover-detail:hover {
    color: var(--primary-purple);
}

.hover-detail::after {
    content: attr(data-detail);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: var(--space-sm);
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: normal;
    width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    font-weight: 400;
}

.hover-detail:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.story-card {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.2);
}

.story-card h3 {
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-transform: lowercase;
    text-shadow: 1px 1px 0px var(--light-purple);
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

/* Lore Container */
.lore-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.lore-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    border: 2px solid var(--soft-purple);
    transition: all 0.3s ease;
}

.lore-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.2);
}

.lore-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.lore-item p {
    margin: 0;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.lore-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    transition: all 0.3s ease;
}

.lore-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.lore-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.lore-item p {
    margin: 0;
    line-height: 1.6;
}

/* Lore Links */
.music-link, .coop-link {
    color: var(--vibrant-header);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.music-link:hover, .coop-link:hover {
    color: var(--primary-purple);
}

.value-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    border: 2px solid var(--soft-purple);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.pixel-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.value-item h4 {
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    color: var(--deep-purple);
    margin-bottom: var(--space-xs);
    text-transform: lowercase;
}

/* Shop Section */
.shop-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: var(--space-xl);
    margin-top: var(--space-lg);
}

.shop-coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.potion-container {
    text-align: center;
    padding: var(--space-xl);
    max-width: 500px;
}

.potion-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    display: block;
    animation: float 3s ease-in-out infinite;
}

.design-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: var(--space-md);
}

.design-image.floating {
    animation: float 3s ease-in-out infinite;
}

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

.potion-container h3 {
    font-family: var(--pixel-font);
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: var(--space-sm);
}

.potion-container p {
    font-family: var(--mono-font);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.suggestion-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.suggestion-btn:hover {
    background: var(--deep-purple);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 126, 200, 0.4);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.shop-item {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.shop-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 126, 200, 0.3);
    border-color: var(--primary-purple);
}

.item-image {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.shop-item h3 {
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-transform: lowercase;
}

.shop-item p {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.6;
}

.shop-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.feature {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--vibrant-text);
    text-align: left;
}

.offering-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--light-purple);
}

.shop-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.shop-item-link:hover {
    transform: translateY(-5px);
}

.shop-item-link .shop-item {
    cursor: pointer;
}

.shop-item-link .price {
    color: var(--vibrant-header);
    font-weight: 600;
}

.price {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    color: var(--primary-purple);
    background: var(--soft-purple);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    display: inline-block;
}

/* Journal Section */
.journal-entries {
    display: grid;
    gap: var(--space-lg);
}

.journal-entry {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
}

.entry-date {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    color: var(--primary-purple);
    margin-bottom: var(--space-sm);
}

.journal-entry h3 {
    font-family: var(--pixel-font);
    font-size: 1.1rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-transform: lowercase;
}

/* Love Notes Section */
.love-note-form {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(5px);
}

.love-note-form textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    border: 2px solid var(--light-purple);
    border-radius: 10px;
    font-family: var(--mono-font);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    resize: vertical;
    margin-bottom: var(--space-md);
}

.love-note-form input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--light-purple);
    border-radius: 10px;
    font-family: var(--mono-font);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--deep-purple) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
    font-family: var(--mono-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 91, 165, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 91, 165, 0.4);
}

.status-message {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    border-radius: 8px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    text-align: center;
}

.status-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.love-notes-display h3 {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-lg);
    text-align: center;
    text-transform: lowercase;
}

.love-notes-list {
    display: grid;
    gap: var(--space-md);
}

.love-note-item {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-md);
    border-radius: 12px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.love-note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.2);
}

.love-note-item.featured {
    border-color: var(--accent-pink);
    background: rgba(255, 159, 178, 0.1);
}

.love-note-message {
    font-family: var(--mono-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.love-note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--text-light);
}

.love-note-author {
    font-weight: 600;
    color: var(--vibrant-text);
}

.loading {
    text-align: center;
    color: var(--text-light);
    font-family: var(--mono-font);
    font-style: italic;
}

/* Footer */
.site-footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 2px solid var(--soft-purple);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link {
    color: var(--vibrant-header);
    text-decoration: underline;
    text-decoration-style: dotted;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-link:hover {
    color: var(--primary-purple);
    text-decoration-style: solid;
}

.copy-btn {
    background: var(--light-purple);
    border: 2px solid var(--vibrant-header);
    border-radius: 12px;
    color: var(--vibrant-header);
    font-family: var(--mono-font);
    font-size: 0.9rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--vibrant-header);
    color: white;
    transform: translateY(-1px);
}

.footer-content p {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.social-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--deep-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }

    /* Remove target="_blank" on mobile for better UX */
    .desktop-new-tab {
        target: _self !important;
    }

    .site-title {
        font-size: 1.8rem;
    }

    /* Bigger nav buttons on mobile */
    .nav-btn {
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-lg);
    }

    .shopkeeper-area {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .shopkeeper-sprite {
        width: 120px;
        height: 160px;
    }

    .speech-bubble {
        max-width: 280px;
    }

    .speech-bubble::before,
    .speech-bubble::after {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 15px solid var(--primary-purple);
        border-top: none;
    }

    .speech-bubble::after {
        top: -10px;
        border-bottom: 12px solid white;
    }

    /* Email copy button mobile fix */
    .email-field {
        padding-right: 12px;
    }

    .copy-btn-attached {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    /* Bio Mobile Layout */
    .bio-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    /* Make images not sticky on mobile */
    .bio-content-left {
        position: static;
        top: auto;
        height: auto;
    }

    .portrait-photo {
        position: static;
        top: auto;
    }

    .portrait-photo {
        height: 300px;
        max-width: 250px;
        margin: 0 auto;
    }

    .bio-text {
        text-align: left;
    }

    .hover-detail::after {
        width: 200px;
        font-size: 0.8rem;
    }

    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-method {
        padding: var(--space-md);
    }

    .contact-info p {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        font-size: 1.1rem;
        padding: var(--space-sm) var(--space-md);
    }

    .pixel-nav {
        gap: var(--space-xs);
    }

    .yuan-img {
        width: 120px;
        height: 120px;
    }

    .yuan-speech-bubble {
        max-width: 200px;
        font-size: 14px;
    }

    /* Mobile: Bio image above story */
    #bio .bio-content {
        flex-direction: column !important;
        display: flex !important;
    }

    #bio .bio-photo {
        position: static !important;
        order: -1 !important;
        margin-bottom: var(--space-lg) !important;
        align-self: center !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    #bio .portrait-photo {
        position: static !important;
        max-width: 280px !important;
        height: 300px !important;
        margin: 0 auto !important;
    }

    /* Center footer content on mobile */
    .footer-content {
        padding-left: 0;
        text-align: center;
    }

    .footer-content p {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Yuan Character in Lower Left */
.yuan-character {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
}

.yuan-sprite {
    position: relative;
}

.yuan-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yuan-img:hover {
    transform: scale(1.1);
}

.yuan-speech-bubble {
    background: white;
    padding: var(--space-sm);
    border-radius: 15px;
    border: 3px solid var(--primary-purple);
    position: relative;
    max-width: 280px;
    min-width: 150px;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.2);
    transition: all 0.3s ease;
}

.yuan-speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 20px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid var(--primary-purple);
}

.yuan-speech-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 23px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 12px solid white;
}

.yuan-speech-bubble p {
    margin: 0;
    border-right: 1px solid var(--primary-purple);
    animation: blink-caret 0.75s step-end infinite;
    line-height: 1.4;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
    padding-right: 2px;
}

/* Offering Pages */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 2px solid var(--light-purple);
    margin-bottom: var(--space-xl);
}

.home-link {
    font-family: var(--pixel-font);
    font-size: 1.5rem;
    color: var(--vibrant-header);
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: var(--primary-purple);
}

.page-nav a {
    color: var(--vibrant-text);
    text-decoration: none;
    font-family: var(--mono-font);
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-nav a:hover {
    color: var(--primary-purple);
}

.offering-page {
    max-width: 800px;
    margin: 0 auto;
}

.offering-hero {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 2px solid var(--light-purple);
}

.offering-hero-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--light-purple);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.3);
}

.offering-hero-content h2 {
    font-family: var(--pixel-font);
    font-size: 2rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-sm);
    text-transform: lowercase;
}

.offering-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.offering-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.offering-content section {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl);
    border-radius: 20px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
}

.offering-content h3 {
    font-family: var(--pixel-font);
    font-size: 1.3rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-md);
    text-transform: lowercase;
}

.offering-content h4 {
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--primary-purple);
    margin-bottom: var(--space-sm);
    text-transform: lowercase;
}

.offering-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.offering-content ul {
    list-style: none;
    padding: 0;
}

.offering-content li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.offering-content li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--vibrant-header);
}

.process-steps, .pricing-tiers, .philosophy-points, .process-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.step, .tier, .point, .timeline-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
}

.step-number {
    background: var(--vibrant-header);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pixel-font);
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content, .tier, .point {
    flex: 1;
}

.tier.featured {
    border-color: var(--primary-purple);
    background: rgba(155, 127, 209, 0.1);
}

.tier h4 {
    color: var(--vibrant-header);
    margin-bottom: var(--space-md);
}

.cta-button {
    display: inline-block;
    background: var(--vibrant-header);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--mono-font);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--vibrant-header);
    text-align: center;
    margin-top: var(--space-md);
}

.cta-button:hover {
    background: transparent;
    color: var(--vibrant-header);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.3);
}

.offering-cta {
    text-align: center;
}

/* Mobile styles for offering pages */
@media (max-width: 768px) {
    .offering-hero {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .offering-hero-image {
        width: 150px;
        height: 150px;
    }

    .offering-hero-content h2 {
        font-size: 1.5rem;
    }

    .process-steps, .pricing-tiers, .philosophy-points, .process-timeline {
        gap: var(--space-md);
    }

    .step, .tier, .point, .timeline-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }
}

/* Snackbar */
.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--vibrant-header);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 16px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 1001;
    font-family: var(--mono-font);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.4);
}

.snackbar.show {
    visibility: visible;
    animation: snackbar-fadein 0.5s, snackbar-fadeout 0.5s 2.5s;
}

@keyframes snackbar-fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes snackbar-fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.contact-method {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--light-purple);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 126, 200, 0.2);
}

.contact-method h3 {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--vibrant-header);
    margin-bottom: var(--space-md);
    text-transform: lowercase;
    text-shadow: 1px 1px 0px var(--light-purple);
}

.email-section {
    text-align: center;
}

.email-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.email-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--light-purple);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    padding-right: 8px;
}

.email-field:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.email-link-large {
    font-family: var(--mono-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vibrant-header);
    text-decoration: none;
    padding: var(--space-md);
    flex: 1;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.email-link-large:hover {
    color: var(--primary-purple);
}

.copy-btn-attached {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--light-purple);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.copy-btn-attached:hover {
    background: var(--primary-purple);
    color: white;
}

.email-helper {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

.email-note {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.arrow {
    color: var(--vibrant-header);
    font-size: 1.2rem;
}

.note-text {
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--vibrant-text);
    font-weight: 600;
    text-transform: capitalize;
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--light-purple);
    border-radius: 10px;
    font-family: var(--mono-font);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vibrant-header);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--deep-purple) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
    font-family: var(--mono-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 91, 165, 0.3);
    text-transform: lowercase;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 91, 165, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #f5f0ff 0%, #e6d5f5 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(139, 126, 200, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 2px solid var(--soft-purple);
}

.modal-header h3 {
    font-family: var(--pixel-font);
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-purple);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--soft-purple);
    transform: scale(1.1);
}

.suggestion-form {
    padding: var(--space-md) var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    color: var(--deep-purple);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--soft-purple);
    border-radius: 10px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(139, 126, 200, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-suggestion {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 25px;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    width: 100%;
}

.submit-suggestion:hover {
    background: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 126, 200, 0.4);
}

/* Confirmation Modal Styles */
.modal-body {
    padding: var(--space-lg);
    text-align: center;
}

.confirmation-yuan {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    display: block;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.close-btn {
    font-family: var(--pixel-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--light-purple);
    border: 2px solid var(--primary-purple);
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 91, 165, 0.4);
}


/* Hide Yuan when scrolled to footer on mobile only */
@media (max-width: 768px) {
    .yuan-character.hide-on-footer {
        pointer-events: none !important;
        opacity: 0;
        pointer-events: none;
    }
}
