* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 2rem 0;
}

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

.app-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.15);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

#round-display {
    color: #8e44ad;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 600;
}

.clues-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.clue-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    border: 2px solid transparent;
}

.clue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #a18cd1;
    background: #fdfbfb;
}

.clue-card .emoji {
    font-size: 3rem;
}

.clue-card .text {
    display: flex;
    align-items: center;
    gap: 5px;
}
.clue-card .text::before {
    content: "🔊";
    font-size: 1.2rem;
}

.options-title {
    font-size: 1.4rem;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.option-wrapper {
    display: flex;
    gap: 0.8rem;
}

.listen-btn {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 0 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
}

.listen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #a18cd1;
    background: #fdfbfb;
}

.option-btn {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #34495e;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 3px solid transparent;
}

.option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.option-btn.correct {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    transform: scale(1.05);
}

.option-btn.wrong {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 600;
}

#next-btn, #restart-btn {
    background: #8e44ad;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

#next-btn:hover, #restart-btn:hover {
    background: #732d91;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.6);
}

@media (max-width: 650px) {
    .app-container {
        width: 100%; height: 100vh; max-width: none; max-height: none; border-radius: 0; padding: 1.2rem; padding-top: 60px; overflow-y: hidden; border: none;
        display: flex; flex-direction: column; justify-content: space-evenly;
    }
    header h1 { font-size: 1.8rem; margin-bottom: 0.2rem; }
    header p { font-size: 1rem; margin-bottom: 0; }
    #round-display { font-size: 1.3rem; margin-bottom: 0; }
    .clues-container { gap: 0.8rem; margin-bottom: 0; justify-content: center; }
    .clue-card { min-width: 80px; padding: 0.8rem; border-radius: 12px; border-width: 2px; }
    .clue-card .emoji { font-size: 2rem; }
    .clue-card .text { font-size: 1rem; }
    .options-title { font-size: 1.2rem; margin-bottom: 0.5rem; padding-left: 0.5rem; text-align: center; }
    .options-grid { grid-template-columns: 1fr; gap: 0.8rem; padding-bottom: 0; }
    .option-btn { font-size: 1.2rem; padding: 0.8rem; border-radius: 16px; gap: 15px; border-width: 2px; }
    .listen-btn { padding: 0 1rem; font-size: 1.3rem; border-radius: 16px; border-width: 2px; }
}
