* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
    color: #f1f5f9;
} */

/* ========== LANDING PAGE STYLES ========== */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.icon-badge {
    font-size: 40px;
    margin-bottom: 16px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-section p {
    color: #94a3b8;
    font-size: 1rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.lang-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1e293b;
    color: #94a3b8;
    font-family: inherit;
}

.lang-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.lang-btn:hover:not(.active) {
    background: #334155;
    color: #cbd5e1;
}

/* Categories Section */
.categories-section h2 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #cbd5e1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.category-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    background: rgba(51, 65, 85, 0.9);
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.3);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.word-count {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 6px;
}

.landing-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.8rem;
}

/* ========== GAME PAGE STYLES ========== */
.game-container {
    max-width: 850px;
    margin: .5rem auto;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

.game-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.back-btn {
    background: #1e293b;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.85rem;
}

.back-btn:hover {
    background: #334155;
    color: white;
}

.game-stats {
    display: flex;
    gap: 12px;
}

.score-card, .progress-card {
    background: #1e293b;
    padding: 8px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-info {
    text-align: center;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
}

.category-badge {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.category-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #facc15;
}

.lang-indicator {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

.question-header {
    text-align: center;
    margin-bottom: 20px;
}

.question-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hint-box {
    background: rgba(250, 204, 21, 0.1);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #facc15;
}

.scrambled-display {
    text-align: center;
    margin-bottom: 28px;
}

.scrambled-word {
    font-size: 1.8rem;
    letter-spacing: 8px;
    font-weight: 700;
    font-family: monospace;
    background: #0f172a;
    padding: 14px 20px;
    border-radius: 12px;
    display: inline-block;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.drop-zones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
    min-height: 80px;
}

.drop-zone {
    width: 65px;
    height: 65px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px dashed #475569;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.drop-zone.drag-over {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.drop-zone.filled {
    border-style: solid;
    border-color: #10b981;
}

.drag-letters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
    min-height: 80px;
}

.letter {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: grab;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    user-select: none;
}

.letter:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.letter:active {
    cursor: grabbing;
}

.letter.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 16px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.control-btn.check {
    background: #10b981;
    color: white;
}

.control-btn.reset {
    background: #f97316;
    color: white;
}

.control-btn.next {
    background: #6366f1;
    color: white;
}

.control-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.result-message {
    text-align: center;
    font-weight: 600;
    padding: 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.result-message.correct {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.result-message.wrong {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.voice-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn.active {
    background: #dc2626;
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .drop-zone, .letter { width: 52px; height: 52px; font-size: 1.3rem; }
    .scrambled-word { font-size: 1.3rem; letter-spacing: 5px; }
    .game-container { padding: 16px; }
}

@media (max-width: 480px) {
    .drop-zone, .letter { width: 48px; height: 48px; font-size: 1.2rem; }
    .control-btn { padding: 10px 20px; }
    .game-stats { gap: 8px; }
    .score-card, .progress-card { padding: 6px 14px; font-size: 0.8rem; }
}

.hidden {
    display: none;
}