:root {
    --primary-color: #3a7bd5;
    --secondary-color: #FF6B6B;
    --tertiary-color: #6A0572;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --light-gray: #e9ecef;
    --dragon-color: #00bcd4;
    --phoenix-color: #ff9800;
    --tiger-color: #7cb342;
    --turtle-color: #5d4037;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.game-container {
    max-width: 600px;
    height: 100vh;
    margin: 0 auto;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Splash Screen */
#splash-screen {
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    color: white;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
}

.luna-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.by-line {
    position: absolute;
    bottom: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.usual-next {
    font-weight: 700;
}

/* Intro Screen */
.character-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.character {
    width: 200px;
    height: auto;
}

.dialogue-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character-name {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.dialogue {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Question Screen */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

#question-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.question-content {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.choices-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-button {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.choice-button.selected {
    border-color: var(--primary-color);
    background-color: rgba(58, 123, 213, 0.1);
}

/* Mini Game Screen */
.mini-game-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Result Screen */
.result-container {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
}

.archetype-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid;
}

.dragon .archetype-image {
    border-color: var(--dragon-color);
}

.phoenix .archetype-image {
    border-color: var(--phoenix-color);
}

.tiger .archetype-image {
    border-color: var(--tiger-color);
}

.turtle .archetype-image {
    border-color: var(--turtle-color);
}

.archetype-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.archetype-description {
    font-size: 1rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

/* Buttons */
.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
    background-color: #2a6ab4;
    transform: translateY(-2px);
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background-color: rgba(58, 123, 213, 0.1);
    transform: translateY(-2px);
}

.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-button:hover {
    opacity: 0.8;
}

/* Reattività per dispositivi mobili */
@media (max-width: 600px) {
    .game-container {
        height: 100%;
        min-height: 100vh;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .character {
        width: 150px;
    }
    
    .dialogue-box {
        padding: 15px;
    }
    
    .primary-button, .secondary-button {
        padding: 12px 25px;
    }
}

/* Mini-giochi specifici */
.emoji-game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.emoji-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    font-size: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.emoji-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(58, 123, 213, 0.1);
}

.scene-creator {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.scene-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.scene-element {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scene-element:hover {
    border-color: var(--primary-color);
}

.scene-element.selected {
    border-color: var(--primary-color);
    background-color: rgba(58, 123, 213, 0.1);
}

.scene-result {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
}