
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    /* Soft pastel palette */
    --bg-cream: #F5EFE7;
    --bg-white: #FFFFFF;
    --bg-soft: #FAF8F5;
    /* Pastel colors */
    --pastel-blue: #B8D4F1;
    --pastel-yellow: #F9E2AF;
    --pastel-green: #C3E9D0;
    --pastel-pink: #F5C99B;
    --pastel-purple: #D4B5DD;
    --pastel-coral: #FDB49E;
    /* Text colors */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #A8B2B9;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.10);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-cream);
    min-height: 100vh;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Soft background blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--pastel-blue);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--pastel-yellow);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--pastel-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 30px) scale(0.9);
    }
}

.container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Score section */
.score-section {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.score-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.best-score {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

    .best-score span {
        color: var(--pastel-purple);
        font-weight: 600;
    }

/* Main card */
.main-card {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

    .main-card.info-expanded {
        overflow: visible;
    }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card actions */
.card-actions {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-cream);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

    .action-btn:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-md);
    }

    .action-btn.know-btn {
        background: var(--pastel-green);
        color: white;
    }

    .action-btn.info-btn {
        background: var(--pastel-blue);
        color: white;
    }

/* Info overlay */
.info-popup {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 32px;
    padding: 16px;
    z-index: 30;
    overflow-y: auto;
    animation: fadeInOverlay 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .info-popup.show {
        display: block;
    }

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.info-word {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.info-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    margin-left: 12px;
}

    .info-close:hover {
        transform: scale(1.1);
        background: var(--pastel-coral);
        color: white;
        box-shadow: var(--shadow-md);
    }

.info-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: center;
    padding: 5px 0;
}

.info-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: left;
    margin-top: 4px;
}

.info-content {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
    padding: 0 10px;
}

.info-example {
    font-style: italic;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 4px solid var(--pastel-blue);
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}

/* Word section */
.word-section {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.word-category {
/*    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-block;*/
    padding: 6px 12px;
    background: var(--pastel-purple);
    color: white;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.word {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.word-pronunciation {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 12px;
}

/* Options grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-tile {
    background: var(--bg-white);
    border: 2px solid #E8E8E8;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.option-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.option-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--pastel-blue);
    background: var(--bg-soft);
}

.option-tile:active {
    transform: translateY(0) scale(0.98);
}

.option-tile.correct {
    animation: correctPulse 0.6s ease;
    border-color: #4ADE80;
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7) !important;
}

    .option-tile.correct .option-text {
        color: #15803D;
        font-weight: 700;
    }

.option-tile.incorrect {
    animation: shake 0.5s ease;
    border-color: #FDA4AF;
    background: linear-gradient(135deg, #FFF1F2, #FFE4E6) !important;
    opacity: 0.8;
}

    .option-tile.incorrect .option-text {
        color: #BE123C;
    }

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Game over modal */
.game-over-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .game-over-modal.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.game-over-content {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-over-emoji {
    font-size: 64px;
    margin-bottom: 16px;
}

.game-over-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.game-over-score {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
}

.game-over-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.play-again-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

    .play-again-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
        background: #34495E;
    }

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }

    .main-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .header {
        padding: 8px 10px;
        margin-top: 5px;
    }

    .word {
        font-size: 28px;
    }

    .score-number {
        font-size: 36px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .option-tile {
        padding: 16px;
        min-height: 60px;
    }

    .info-popup {
        padding: 12px;
    }

    .info-header {
        margin-bottom: 8px;
    }

    .info-word {
        font-size: 20px;
    }

    .info-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 440px;
    }

    .main-card {
        padding: 40px;
    }
}

/* Loading state */
.loading {
    animation: pulse 1s ease-in-out infinite;
}

/* Streak fire */
.streak-indicator {
    position: absolute;
    top: -40px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    border-radius: 100px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    animation: slideDown 0.5s ease;
}

    .streak-indicator.show {
        display: flex;
    }

.streak-fire {
    font-size: 20px;
    animation: fire 0.5s ease-in-out infinite alternate;
}

.welcome-emoji {
    display: inline-block;
    font-size: 32px;
    margin-left: 8px;
    animation: wave 2s ease-in-out infinite;
}

.greeting {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Header styles */
.header {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 50px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    text-align: right;
    margin-right: 30px;
}

    .user-greeting .greeting-line {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .user-greeting #userName {
        font-size: 14px;
        font-weight: 900;
        margin-top: -7px;
    }

    .user-greeting .welcome-emoji {
        font-size: 14px;
    }

.settings-menu {
    position: relative;
}

/* Welcome screen */
.welcome-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-cream);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .welcome-screen.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.welcome-content {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 40px;
    /* text-align: center; */
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-xl);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.name-input-group {
    margin-bottom: 24px;
    text-align: left;
}

.level-select-group {
    margin-bottom: 24px;
    text-align: left;
}

.level-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.level-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E8E8E8;
    border-radius: 100px;
    font-size: 16px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

    .level-select:focus {
        outline: none;
        border-color: var(--pastel-blue);
        box-shadow: 0 0 0 3px rgba(184, 212, 241, 0.3);
    }

.name-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.name-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E8E8E8;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-soft);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .name-input:focus {
        outline: none;
        border-color: var(--pastel-blue);
        background: var(--bg-white);
        box-shadow: 0 0 0 4px rgba(184, 212, 241, 0.2);
    }

.start-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

    .start-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
        background: #34495E;
    }

    .start-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Game over modal buttons */
.game-over-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.change-user-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-cream);
    color: var(--text-primary);
    border: 2px solid #E8E8E8;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .change-user-btn:hover {
        transform: translateY(-2px);
        border-color: var(--pastel-blue);
        background: var(--bg-white);
    }

.level-change-btn {
    position: absolute;
    top: 20px;
    right: 70px; /* Reset butonunun solunda */
    background: var(--pastel-green);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: none; /* Gizle, artık kullanmayacağız */
}

/* Ayarlar menüsü */
.settings-menu {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.settings-btn {
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .settings-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: var(--pastel-purple);
        color: white;
    }

.settings-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    border: 2px solid #F0F0F0;
}

    .settings-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.settings-option {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .settings-option:last-child {
        border-bottom: none;
    }

    .settings-option:hover {
        background: var(--bg-soft);
    }

    .settings-option:first-child {
        border-radius: 16px 16px 0 0;
    }

    .settings-option:last-child {
        border-radius: 0 0 16px 16px;
    }

.settings-option-icon {
    font-size: 18px;
}

.settings-option-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Kategori değiştirme modalı */
.level-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .level-change-modal.show {
        opacity: 1;
        visibility: visible;
    }

.level-change-content {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.level-change-modal.show .level-change-content {
    transform: scale(1);
}

.level-change-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.level-change-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.level-change-cancel {
    flex: 1;
    padding: 12px;
    background: var(--bg-cream);
    color: var(--text-primary);
    border: 2px solid #E8E8E8;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-change-confirm {
    flex: 1;
    padding: 12px;
    background: var(--pastel-green);
    color: var(--text-primary);
    border: 2px solid var(--pastel-green);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


.bottom-actions { 
    position: absolute;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
}

.word-category, .word-pronounce {
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-card {
    padding-bottom: 50px;
}

/* (existing content kept) */
...
.main-card {
    padding-bottom: 50px;
}

/* ========== GLOBAL LOADER ========== */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(245, 239, 231, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    transition: opacity .25s ease;
}

    .global-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loader-content {
    background: var(--bg-white);
    padding: 28px 36px 30px;
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    min-width: 260px;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

    .loader-content:before,
    .loader-content:after {
        content: "";
        position: absolute;
        width: 140%;
        height: 140%;
        top: -20%;
        left: -20%;
        background: radial-gradient(circle at 30% 30%, rgba(184,212,241,0.25), transparent 60%), radial-gradient(circle at 70% 70%, rgba(212,181,221,0.25), transparent 65%);
        opacity: 0.6;
        animation: loaderBg 8s linear infinite;
        mix-blend-mode: multiply;
    }

@keyframes loaderBg {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.loader-spinner {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: 4px;
}

    .loader-spinner .bubble {
        width: 14px;
        height: 14px;
        background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
        border-radius: 50%;
        animation: bubble 1.2s ease-in-out infinite;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    .loader-spinner .b2 {
        animation-delay: .2s;
    }

    .loader-spinner .b3 {
        animation-delay: .4s;
    }

@keyframes bubble {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }

    40% {
        transform: translateY(-14px) scale(1.15);
        opacity: 1;
    }
}

.loader-message {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.loader-tip {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 16px;
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton styles for next question */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #f2f2f2 !important;
    color: transparent !important;
    border-color: #e6e6e6 !important;
}

    .skeleton:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
        animation: shimmer 1.4s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.word.skeleton,
.word-pronunciation.skeleton,
.word-category.skeleton {
    border-radius: 12px;
}

.option-tile.skeleton .option-text {
    visibility: hidden;
}