:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f7f9fc;
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
}

.game-container {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playfair-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card {
    background: #fff;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mode-selection {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-mode {
    padding: 0.8rem 2rem;
    border: 2px solid #eee;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-mode.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-start {
    background: var(--primary-color);
    color: #fff;
    padding: 1.2rem 4rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    transition: 0.3s;
}

.btn-start:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Game Area */
.game-area {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.instruction h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.hindi-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.timer-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.timer-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.timer-fill {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
}

.image-box {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mic-status-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.mic-status-box.listening i {
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.silence-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

.pulse-text {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 107, 107, 0.8);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: zoomPulse 1.5s infinite;
}

@keyframes zoomPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.countdown {
    font-size: 10rem;
    font-weight: 800;
    color: var(--primary-color);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-next {
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .game-container {
        padding-top: 60px;
    }

    .card {
        padding: 1.5rem;
        margin-top: 3rem !important;
    }

    .image-box {
        height: 300px;
        margin-bottom: 1.5rem;
    }

    .playfair-title {
        font-size: 1.8rem;
    }

    .top-bar {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1rem;
    }

    .instruction h2 {
        font-size: 1.2rem;
    }

    .mode-selection {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-mode {
        width: 100%;
    }

    .btn-start {
        width: 100%;
        padding: 1rem;
    }

    .pulse-text {
        font-size: 2.5rem;
    }
}