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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.language-dropdown:focus {
    outline: none;
    border-color: #f39c12;
}

.container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
}

.left-section {
    flex: 0 0 auto;
}

.right-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

h1 {
    font-size: 3em;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    text-align: center;
}

/* Slot Machine Container */
.slot-machine {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    border: 8px solid #f39c12;
    display: flex;
    gap: 20px;
}

/* Individual Slot Boxes */
.slot-box {
    width: 120px;
    height: 120px;
    background: white;
    border: 4px solid #2c3e50;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

.slot-box.landed {
    transform: scale(1.1);
    animation: pulse 0.2s ease;
}

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

.slot-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Emotion Images */
.emotion-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Blank Circles */
.blank-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #a0a0a0, #707070);
    border: 3px solid #555555;
    box-shadow:
        inset 0 4px 10px rgba(255, 255, 255, 0.3),
        inset 0 -4px 10px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Spin Button */
.spin-button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.spin-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Display */
.result {
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-emotion {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.result-emotion.show {
    opacity: 1;
    transform: scale(1);
}

/* Version Indicator */
.version {
    position: fixed;
    bottom: 10px;
    right: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    font-family: monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    h1 {
        font-size: 2em;
    }

    .slot-machine {
        padding: 20px;
        gap: 15px;
    }

    .slot-box {
        width: 90px;
        height: 90px;
    }

    .blank-circle {
        width: 55px;
        height: 55px;
    }

    .spin-button {
        padding: 15px 40px;
        font-size: 1.2em;
    }

    .result-emotion {
        font-size: 1.8em;
        padding: 15px 30px;
    }
}
