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

/* Prevent double-tap zoom on mobile */
html {
    touch-action: manipulation;
}

button, input, a {
    touch-action: manipulation;
}

/* Password Screen */
#password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1f4e 50%, #1a0f2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#password-screen.hidden {
    display: none;
}

.password-content {
    text-align: center;
    padding: 40px;
}

.password-heart {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

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

.password-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.password-content p {
    color: #d4a5c9;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#password-input {
    padding: 15px 25px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #9b59b6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 200px;
    letter-spacing: 5px;
    font-family: 'Quicksand', sans-serif;
}

#password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

#password-input:focus {
    outline: none;
    border-color: #d4a5c9;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

#password-submit {
    display: block;
    margin: 20px auto 0;
    padding: 12px 40px;
}

.password-hint {
    color: #e74c8c;
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

#password-input.shake {
    animation: shake 0.5s ease;
    border-color: #e74c8c;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

body {
    background: linear-gradient(135deg, #0f0a1a 0%, #1f1a2e 50%, #0f0a1a 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS fix */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    overflow: hidden;
}

html {
    height: -webkit-fill-available; /* iOS fix for keyboard */
    background: #0f0a1a; /* Dark background to prevent white bars */
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.4);
}

#game-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Input blocker - covers canvas when modals are open */
#input-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
    /* transparent but captures all touch/click events */
}

#input-blocker.active {
    display: block;
}

/* Mute Button */
#mute-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mute-button:hover,
#achievements-button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Achievements Button */
#achievements-button {
    position: fixed;
    top: 10px;
    right: 60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keyboard Button (for mobile secret words) */
#keyboard-button {
    position: fixed;
    top: 10px;
    right: 110px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#keyboard-button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Hidden input for mobile keyboard - shows as overlay when active */
#secret-input {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 12px 16px;
    border-radius: 25px;
    border: 2px solid #9b59b6;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#secret-input:focus {
    outline: none;
    border-color: #d4a5c9;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

#secret-input.active {
    opacity: 1;
    pointer-events: auto;
}

#secret-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Achievements Panel */
#achievements-panel {
    touch-action: none; /* Prevent touch pass-through */
}

.achievements-content {
    background: linear-gradient(145deg, #2d1f4e, #1a0f2e);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #9b59b6;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    touch-action: pan-y; /* Only allow vertical scroll */
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.achievements-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d4a5c9;
    margin-bottom: 20px;
    text-align: center;
}

#achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    touch-action: pan-y; /* Only allow vertical scroll */
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    transition: all 0.2s ease;
}

.achievement-item.unlocked {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.achievement-item.locked .achievement-item-icon {
    filter: grayscale(1);
}

.achievement-item-info {
    flex: 1;
}

.achievement-item-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.achievement-item.locked .achievement-item-name {
    color: #888;
}

.achievement-item-desc {
    font-size: 0.85rem;
    color: #d4a5c9;
}

.achievement-item.locked .achievement-item-desc {
    color: #666;
}

.achievement-item-status {
    font-size: 1.2rem;
}

#achievements-close {
    display: block;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    pointer-events: auto; /* Capture all clicks */
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, #fffef5, #f5f4e8);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s ease-out;
    /* Nier-inspired border */
    border: 2px solid #454138;
    position: relative;
}

/* Nier-style corner accents */
.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #454138;
}

.modal-content::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.modal-content::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#modal-photo {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#modal-caption {
    font-size: 1.3rem;
    color: #454138;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#modal-date {
    font-size: 1rem;
    color: #7a6f5d;
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 1px;
}

button {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

button:active {
    transform: translateY(0);
}

/* Gallery Styles */
.gallery-content {
    background: linear-gradient(145deg, #fff5f5, #fff);
    padding: 30px;
    border-radius: 20px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.gallery-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #e74c8c;
    margin-bottom: 20px;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Final Question Styles */
.final-content {
    text-align: center;
    animation: modalPop 0.5s ease-out;
}

.final-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.8);
}

#yes-button {
    font-size: 1.5rem;
    padding: 20px 60px;
    animation: pulse 1.5s infinite;
}

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

/* Celebration Styles */
#celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1f4e 50%, #1a0f2e 100%);
}

#celebration.hidden {
    display: none;
}

.celebration-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1010;
    animation: celebrationPop 0.8s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.celebration-message::-webkit-scrollbar {
    display: none;
}

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

.celebration-message h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(155, 89, 182, 0.8);
    margin-bottom: 20px;
}

.celebration-message p {
    font-size: 1.5rem;
    color: #d4a5c9;
}

.celebration-message .heart-emoji {
    font-size: 5rem;
    margin-top: 20px;
    animation: heartBeat 1s infinite;
}

.celebration-message .pets-celebration {
    font-size: 1.2rem;
    color: #d4a574;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pets-sprites {
    display: flex;
    gap: 10px;
    align-items: center;
}

.celebration-message .pets-celebration span {
    animation: petsBounce 0.5s infinite;
}

.riley-sprite {
    width: 80px;
    height: 80px;
    background: url('../assets/sprites/riley-walk-fixed.png') 0 0;
    background-size: 400px 300px;
    animation: petsBounce 0.5s infinite;
}

.dexter-sprite {
    width: 80px;
    height: 80px;
    background: url('../assets/sprites/dexter-walk-fixed.png') 0 0;
    background-size: 400px 300px;
    animation: petsBounce 0.5s infinite;
    animation-delay: 0.25s;
}

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

.peony-decoration {
    font-size: 3rem;
    margin-top: 20px;
    animation: peonyFloat 3s ease-in-out infinite;
    filter: hue-rotate(280deg); /* Make it more purple/peony colored */
}

@keyframes peonyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Dedication message */
.dedication {
    max-width: 500px;
    margin: 25px auto;
    padding: 20px 25px;
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.4);
    border-radius: 10px;
    font-size: 1rem;
    color: #e8d5f0;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

/* Replay button */
.replay-btn {
    margin-top: 30px;
    background: transparent;
    border: 2px solid rgba(155, 89, 182, 0.6);
    color: #d4a5c9;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.replay-btn:hover {
    background: rgba(155, 89, 182, 0.3);
    border-color: #9b59b6;
    color: #fff;
    transform: scale(1.05);
}

/* Message button */
.message-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.message-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

/* Message Modal */
.message-content {
    background: linear-gradient(145deg, #2d1f4e, #1a0f2e);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #9b59b6;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.message-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #d4a5c9;
    margin-bottom: 20px;
}

.message-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(155, 89, 182, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.message-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.message-content textarea:focus {
    outline: none;
    border-color: #9b59b6;
}

.message-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.send-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.send-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: scale(1.05);
}

.cancel-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #d4a5c9;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#message-success {
    padding: 20px;
}

#message-success p {
    font-size: 1.2rem;
    color: #d4a5c9;
    margin-bottom: 20px;
}

/* Chinese subtitle (Eternal Love reference) */
.subtitle-chinese {
    font-size: 1.1rem;
    color: #e8b5d6;
    margin-top: 5px;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Floating lanterns container */
#floating-lanterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-lantern {
    position: absolute;
    font-size: 2rem;
    animation: lanternFloat 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes lanternFloat {
    0% {
        transform: translateY(100vh) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(5deg);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#floating-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-photo {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: floatDown 15s linear forwards;
}

@keyframes floatDown {
    0% {
        transform: translateY(-120px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 120px)) rotate(360deg);
        opacity: 0.8;
    }
}

/* Mobile Styles - Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    #game-container {
        max-width: 100%;
        border-radius: 0;
        aspect-ratio: 9/16;
    }

    .modal-content {
        padding: 20px;
    }

    #modal-caption {
        font-size: 1.1rem;
    }

    .final-content h1 {
        font-size: 2rem;
    }

    .celebration-message h1 {
        font-size: 2.5rem;
    }

    .celebration-message p {
        font-size: 1.2rem;
    }
}

/* Mobile Styles - Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
    }

    #game-container {
        max-width: 100%;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        aspect-ratio: auto;
    }

    #game-container canvas {
        width: 100% !important;
        height: 100% !important;
    }

    /* Reposition buttons for landscape */
    #mute-button {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    #achievements-button {
        top: 5px;
        right: 42px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    #keyboard-button {
        top: 5px;
        right: 79px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Secret input in landscape */
    #secret-input {
        top: 5px;
        right: 120px;
        left: auto;
        transform: none;
        width: 150px;
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Compact modal for landscape */
    .modal-content {
        padding: 15px;
        max-width: 70%;
        max-height: 90vh;
    }

    #modal-photo {
        max-height: 50vh;
    }

    #modal-caption {
        font-size: 0.9rem;
        margin: 8px 0;
    }

    #modal-date {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    #modal-close {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Compact final modal */
    .final-content {
        padding: 15px;
    }

    .final-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    #yes-button {
        padding: 10px 30px;
        font-size: 1rem;
    }

    /* Compact celebration */
    .celebration-message h1 {
        font-size: 1.8rem;
    }

    .celebration-message p {
        font-size: 1rem;
    }

    .celebration-message .heart-emoji {
        font-size: 2rem;
    }

    .pets-celebration {
        transform: scale(0.7);
        margin: 10px 0;
    }

    .dedication {
        font-size: 0.85rem;
        padding: 10px 15px;
        max-width: 80%;
    }

    /* Compact achievements panel */
    .achievements-content {
        padding: 15px;
        max-height: 90vh;
        max-width: 60%;
        display: flex;
        flex-direction: column;
    }

    .achievements-content h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    #achievements-list {
        max-height: 40vh;
        overflow-y: auto;
        flex: 1;
        margin-bottom: 10px;
    }

    .achievement-item {
        padding: 8px;
    }

    #achievements-close {
        flex-shrink: 0;
        margin-top: auto;
        padding: 8px 20px;
    }

    /* Message button and modal in landscape */
    .message-btn {
        margin-top: 10px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .message-content {
        padding: 20px;
        max-width: 50%;
    }

    .message-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .message-content textarea {
        min-height: 80px;
        font-size: 0.9rem;
    }
}

/* Touch Controls UI */
#touch-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 50;
}

.touch-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    touch-action: manipulation;
}

.touch-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #2d1f4e 0%, #1a0f2e 100%);
    border: 2px solid #9b59b6;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(155, 89, 182, 0.5);
}

.achievement-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.achievement-icon {
    font-size: 2.5rem;
    animation: achievementBounce 0.5s ease;
}

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

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

.achievement-title {
    font-size: 0.75rem;
    color: #d4a5c9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
}
