:root {
    --primary-color: #ff69b4;
    --primary-color-light: #ffb6d9;
    --primary-color-dark: #ff1493;
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #000000 0%, #1a0a1a 50%, #2d0a2d 100%);
    --glass-bg: rgba(255, 105, 180, 0.1);
    --glass-border: rgba(255, 105, 180, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 0;
    touch-action: pan-y;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.15), rgba(0, 0, 0, 0.8) 60%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.container {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

.story-text {
    margin: 25px 0;
    line-height: 1.8;
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--text-color);
}

.story-text p {
    margin-bottom: 15px;
}

.story-btn {
    margin-top: 20px;
    padding: 14px 35px;
    font-size: 1.1rem;
}

.question-text {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.question-hint {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #aaa;
    margin-bottom: 20px;
    font-style: italic;
}

.schedule-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.schedule-link:hover {
    color: var(--primary-color-light);
    border-bottom-color: var(--primary-color-light);
}

/* Schedule Items */
.schedule-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.schedule-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.schedule-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

.schedule-item.completed {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.schedule-header .time {
    font-weight: bold;
    color: var(--primary-color);
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.schedule-header .activity {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    color: #ddd;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-top: 20px;
}

.upload-instruction {
    text-align: center;
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 105, 180, 0.05);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
}

.upload-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.photo-input {
    display: none;
}

.photo-preview {
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin-bottom: 15px;
    object-fit: contain;
}

.photo-confirm-check {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    color: var(--text-color);
    user-select: none;
}

.confirm-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.confirm-checkbox:checked {
    accent-color: var(--primary-color);
}

.confirm-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    touch-action: manipulation;
}

.confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.confirm-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.confirm-btn:not(:disabled):active {
    transform: translateY(0);
}

/* Photo Upload Item */
.photo-upload-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.photo-upload-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.photo-upload-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

.photo-upload-item.completed {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

@media (max-width: 480px) {
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .photo-preview img {
        max-height: 300px;
    }
    
    .photo-upload-item {
        padding: 20px;
    }
}

.card.large {
    padding: 40px 25px;
    animation: none;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: keep-all;
}

.subtitle {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    margin-bottom: 30px;
    opacity: 0.8;
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

input {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 18px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

#error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    animation: shake 0.5s ease-in-out;
}

/* Event Page Styles */
.celebration-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 5px;
    background: linear-gradient(to right, #ff69b4, #ffb6d9, #ff1493, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s infinite linear;
    background-size: 200% 100%;
}

.date {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: #a8a8a8;
    margin-bottom: 30px;
}

.message-box {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: clamp(0.9rem, 3vw, 1rem);
    word-break: keep-all;
}

.message-box p {
    margin-bottom: 10px;
}

.section {
    margin-top: 35px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
    width: 100%;
}

.section h2 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Plan Timeline */
.timeline {
    list-style: none;
    text-align: left;
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
    margin: 0 auto;
    max-width: 320px;
}

.timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.time {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity {
    font-size: 0.95rem;
    color: #ddd;
}

/* Mini Game Styles */
.game-instructions {
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    margin-bottom: 20px;
    color: #ccc;
    word-break: keep-all;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 20px;
    touch-action: none;
}

.heart {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    animation: fall linear;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.heart.black-heart {
    filter: grayscale(100%) brightness(0);
    animation: fall-fast linear;
}

.heart:active {
    transform: scale(1.2);
}

.heart.collected {
    animation: none;
    transform: scale(1.5);
    opacity: 0;
}

.heart.penalty {
    animation: shake 0.5s ease-in-out;
}

@keyframes fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(450px) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes fall-fast {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(450px) rotate(360deg);
        opacity: 0.8;
    }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.game-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Gift Section */
.gift-message {
    text-align: center;
    padding: 20px;
    background: rgba(255, 105, 180, 0.15);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    margin-bottom: 20px;
}

.gift-message p {
    margin-bottom: 15px;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.6;
}

.location-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.location-address {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    word-break: keep-all;
}

.location-room {
    font-size: clamp(0.95rem, 3vw, 1rem);
    color: #ddd;
    margin-bottom: 10px;
    word-break: keep-all;
}

/* Map Container */
.map-container {
    margin-top: 20px;
    width: 100%;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link-container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.map-link-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.map-link-btn:active {
    transform: translateY(0);
}

.map-hint {
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    color: #aaa;
    margin-top: 15px;
    word-break: keep-all;
}

/* Photo Gallery */
.photo-gallery {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
}

.photo-gallery h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--glass-border);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.photo-modal-close:hover {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* Mission Modal */
.mission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.mission-modal-content {
    background: var(--bg-gradient);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    animation: slideUp 0.3s ease;
}

.mission-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
}

.mission-modal-header h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--primary-color);
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.mission-modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mission-modal-close:hover {
    color: var(--primary-color);
}

.mission-modal-body {
    padding: 25px;
    text-align: center;
}

.mission-modal-body p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    word-break: keep-all;
}

.mission-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.mission-modal-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.mission-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.mission-modal-btn:active {
    transform: translateY(0);
}

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

@media (max-width: 480px) {
    .mission-modal-content {
        max-width: 90%;
    }
    
    .mission-modal-header,
    .mission-modal-body,
    .mission-modal-footer {
        padding: 15px 20px;
    }
}

/* Secret Message Section */
.secret-message-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.secret-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#secret-keyword-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 18px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#secret-keyword-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

.secret-hint {
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
}

/* Special Message */
.special-message {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 105, 180, 0.15);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.special-message-content h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.message-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.8;
    color: #fff;
}

.message-text p {
    margin-bottom: 10px;
}

/* Milestone Message Animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

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

@media (max-width: 480px) {
    .secret-input-container {
        flex-direction: column;
    }
    
    #secret-keyword-input {
        width: 100%;
        max-width: 100%;
    }
    
    .special-message {
        padding: 20px;
    }
}

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

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .container {
        width: 95%;
        margin: 10px auto;
    }

    .card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .card.large {
        padding: 30px 20px;
    }

    .input-group {
        flex-direction: column;
    }

    button {
        width: 100%;
        padding: 14px;
    }

    .game-area {
        height: 350px;
    }

    .heart {
        font-size: 2rem;
    }

    .stat-item {
        padding: 12px 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .card {
        padding: 20px 15px;
    }

    .game-area {
        height: 300px;
    }

    .heart {
        font-size: 1.8rem;
    }

    .game-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .game-area {
        height: 250px;
    }

    .card {
        padding: 20px 15px;
    }
}

/* Prevent text selection on game elements */
.game-area, .heart {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

