/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fce7f3;
    color: #831843;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Container */
.container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Flat container for game screen */
#game-screen .container {
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    max-width: 700px;
}

/* Typography */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #be185d;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.1rem;
    color: #a21caf;
    margin-bottom: 32px;
}

.gameover-title {
    font-size: 2rem;
    color: #be185d;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #ec4899;
    color: white;
}

.btn-primary:hover {
    background-color: #db2777;
}

.btn-submit {
    background-color: #f472b6;
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background-color: #ec4899;
}

/* Game Screen Elements */
.score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.score-label {
    font-size: 1.1rem;
    color: #a21caf;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #be185d;
}

.message-container {
    background-color: rgba(251, 207, 232, 0.4);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(236, 72, 153, 0.2);
}

.message {
    font-size: 1.25rem;
    color: #831843;
    font-style: italic;
    line-height: 1.8;
}

.options-container {
    margin-bottom: 24px;
}

.select-label {
    display: block;
    font-size: 0.95rem;
    color: #a21caf;
    margin-bottom: 12px;
    text-align: left;
}

.name-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #f9a8d4;
    border-radius: 8px;
    background-color: white;
    color: #831843;
    cursor: pointer;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.name-select:focus {
    border-color: #ec4899;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#gameover-screen .button-group {
    flex-direction: column;
}

#gameover-screen .button-group .btn {
    width: 100%;
}

.progress {
    font-size: 0.9rem;
    color: #a21caf;
}

/* Game Over Screen */
.final-score {
    font-size: 1.5rem;
    color: #831843;
    margin-bottom: 16px;
}

.score-message {
    font-size: 1.1rem;
    color: #a21caf;
    margin-bottom: 32px;
}

/* Spoiler Styles */
.spoiler {
    background-color: #831843;
    color: #831843;
    padding: 0px 2px;
    border-radius: 2px;
    display: inline-block;
    user-select: none;
}

/* Gallery Screens */
.gallery-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
}

.gallery-title {
    font-size: 2rem;
    color: #be185d;
    margin-bottom: 30px;
}

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
    max-width: none;
}

.image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .images-grid {
        max-width: 600px;
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 24px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .message {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .images-grid {
        max-width: 100%;
        gap: 20px;
        padding: 0 10px;
    }
    
    .image-card img {
        height: auto;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-card {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
}

/* Quotes Grid */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.quote-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    border-left: 4px solid #ec4899;
    min-height: 140px;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quote-text {
    font-size: 1.15rem;
    color: #831843;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.quote-author {
    font-size: 1rem;
    color: #be185d;
    font-weight: 600;
    text-align: right;
}

.quote-author::before {
    content: "— ";
    color: #a21caf;
}

/* Quotes screen button group */
#quotes-screen .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#quotes-screen .button-group .btn {
    flex: 0 0 auto;
    min-width: 150px;
}

/* Responsive for quotes */
@media (max-width: 1024px) {
    .quotes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        max-width: 96vw;
        padding: 0 15px;
    }
    
    .quote-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        max-width: 95vw;
        padding: 0 10px;
    }
}

 