* {
    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;
    color: #333;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.screen.active {
    display: block;
}

/* Main Menu */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.title {
    font-size: 4rem;
    text-align: center;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mode-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.mode-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.mode-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.mode-card p {
    color: #666;
    line-height: 1.6;
}

/* Common Elements */
.back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 5px;
}

button:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* Game Mode */
.game-container {
    display: flex;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.game-sidebar {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 380px;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.sidebar-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #333;
    font-size: 0.95rem;
}

.stat-item {
    font-weight: bold;
    padding: 5px 8px;
    background: white;
    border-radius: 4px;
}

.game-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #333;
    font-weight: bold;
}

.game-settings label {
    font-size: 1rem;
    margin-bottom: 5px;
}

.game-settings select {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    width: 100%;
}

.game-arena.frozen {
    animation: freeze-pulse 0.5s ease-in-out;
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.8), inset 0 0 50px rgba(0, 188, 212, 0.3);
    border-color: #00bcd4;
}

@keyframes freeze-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 188, 212, 0.6), inset 0 0 30px rgba(0, 188, 212, 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 188, 212, 1), inset 0 0 60px rgba(0, 188, 212, 0.4);
    }
}

.game-arena {
    position: relative;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    width: 1000px;
    height: 1000px;
    flex-shrink: 0;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 30px rgba(255,255,255,0.2), inset 0 0 50px rgba(255,255,255,0.1);
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: #ffd700;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.progress-ring-fill.wizard-theme {
    stroke: #9b59b6;
    filter: drop-shadow(0 0 8px rgba(155, 89, 182, 0.8));
}

.progress-ring-fill.ape-theme {
    stroke: #f39c12;
    filter: drop-shadow(0 0 8px rgba(243, 156, 18, 0.8));
}

.progress-ring-fill.grandma-theme {
    stroke: #e91e63;
    filter: drop-shadow(0 0 8px rgba(233, 30, 99, 0.8));
}

.progress-ring-fill.unicorn-theme {
    stroke: #ff69b4;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.8));
}

.progress-ring-fill.dragon-theme {
    stroke: #ff5722;
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.8));
}

.progress-ring-fill.ninja-theme {
    stroke: #424242;
    filter: drop-shadow(0 0 8px rgba(66, 66, 66, 0.8));
}

.progress-ring-fill.robot-theme {
    stroke: #607d8b;
    filter: drop-shadow(0 0 8px rgba(96, 125, 139, 0.8));
}

.progress-ring-fill.chef-theme {
    stroke: #ff9800;
    filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.8));
}

.progress-ring-fill.vampire-theme {
    stroke: #8b0000;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.8));
}

.progress-ring-fill.alien-theme {
    stroke: #00e676;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8));
}

.game-wizard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wizard-character {
    font-size: 4rem;
    animation: wizardFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

@keyframes wizardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wizard-staff {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.magic-projectiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.magic-bolt {
    position: absolute;
    width: 20px;
    height: 20px;
    font-size: 1.5rem;
    animation: magicTrail 0.5s ease-out forwards;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.8));
    z-index: 5;
}

@keyframes magicTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.enemies-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.enemy {
    position: absolute;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: default;
    white-space: nowrap;
    z-index: 3;
    transition: transform 0.1s linear;
}

.enemy.chain {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.4);
}

.enemy.chain-locked {
    background: linear-gradient(135deg, #999 0%, #666 100%);
    opacity: 0.5;
    filter: grayscale(100%);
    border: 3px solid #888;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.chain-link {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
    animation: chainGlow 1.5s ease-in-out infinite;
}

@keyframes chainGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes enemySpawn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Multiple defeat animations */
.enemy.explode {
    animation: explode 0.6s ease forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        filter: blur(10px);
    }
}

.enemy.crumble {
    animation: crumble 0.7s ease forwards;
}

@keyframes crumble {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(0.9) rotate(5deg);
    }
    50% {
        transform: scale(0.7) rotate(-5deg);
    }
    75% {
        transform: scale(0.4) rotate(10deg) translateY(20px);
        opacity: 0.5;
    }
    100% {
        transform: scale(0) rotate(45deg) translateY(50px);
        opacity: 0;
    }
}

.enemy.dissolve {
    animation: dissolve 0.8s ease forwards;
}

@keyframes dissolve {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(15px);
        transform: scale(1.3);
    }
}

.enemy.spin-out {
    animation: spinOut 0.6s ease forwards;
}

@keyframes spinOut {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(720deg);
        opacity: 0;
    }
}

.enemy.implode {
    animation: implode 0.5s ease forwards;
}

@keyframes implode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.enemy.shatter {
    animation: shatter 0.7s ease forwards;
}

@keyframes shatter {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        transform: scale(1.1);
        filter: blur(2px);
    }
    100% {
        transform: scale(0.2);
        opacity: 0;
        filter: blur(8px);
    }
}

.enemy.bounce-out {
    animation: bounceOut 0.8s ease forwards;
}

@keyframes bounceOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) scale(1.1);
    }
    50% {
        transform: translateY(0) scale(0.9);
    }
    75% {
        transform: translateY(-60px) scale(0.7);
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

.typing-area h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.target-word {
    font-size: 1rem;
    color: #999;
    text-align: center;
    margin-bottom: 15px;
    min-height: 30px;
    font-style: italic;
}

.typing-input {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    border: 3px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.typing-input:focus {
    outline: none;
    border-color: #667eea;
}

.typing-input.matching {
    border-color: #4caf50;
    background: #e8f5e9;
}

.typing-input.no-match {
    border-color: #f44336;
    background: #ffebee;
}

/* Countdown */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 50%;
}

.countdown-number {
    font-size: 15rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(102,126,234,0.8);
    animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-go {
    font-size: 12rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdownGo 0.8s ease-out;
}

@keyframes countdownGo {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Word highlighting */
.enemy.potential-match {
    animation: wordPulse 0.5s ease-in-out infinite;
}

@keyframes wordPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 25px rgba(76,175,80,0.6);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
}

.modal-content h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-score, .final-level {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #333;
}

/* Pro Mode */
.pro-header {
    margin-bottom: 30px;
}

.pro-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.stat-box {
    background: white;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 150px;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: #667eea;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.pro-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.text-display {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.char-correct {
    color: #4caf50;
    background: #e8f5e9;
}

.char-incorrect {
    color: #f44336;
    background: #ffebee;
    text-decoration: underline;
}

.char-current {
    background: #667eea;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}

.pro-typing-area, .assessment-typing-area {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    border: 3px solid #ddd;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    line-height: 2;
}

.pro-typing-area:focus, .assessment-typing-area:focus {
    outline: none;
    border-color: #667eea;
}

.pro-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pro-settings {
    margin-bottom: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

/* Practice Type Selector (Radio Cards) */
.practice-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    padding: 20px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.radio-card:hover .radio-card-content {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.radio-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.radio-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.radio-card-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-card-desc {
    opacity: 0.95;
}

/* Settings Row */
.settings-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.practice-options {
    display: contents;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.setting-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.setting-group select {
    width: 100%;
}

.setting-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hints-toggle label {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}

.hints-toggle {
    flex: 0 0 auto;
    min-width: auto;
}

.pro-hints {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pro-hints.hidden {
    display: none;
}

#pro-hint-text {
    margin: 0;
}

select {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Pro Mode Results Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pro-results-content {
    padding: 0;
}

.modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

.result-stat {
    text-align: center;
}

.result-label {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.results-section {
    padding: 30px;
}

.results-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

.insights-container,
.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.insight-observation {
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.insight-issue {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95rem;
}

.insight-action {
    padding: 10px;
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    color: #0c5460;
    font-size: 0.95rem;
}

.no-insights {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1rem;
}

.recommendation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.rec-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rec-description {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* Assessment Mode */
.assessment-header {
    text-align: center;
    margin-bottom: 30px;
}

.assessment-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-top: 20px;
}

.assessment-container {
    max-width: 900px;
    margin: 0 auto;
}

.assessment-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
}

.assessment-section.active {
    display: block;
}

.instruction {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;
}

.assessment-section h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin: 30px 0 15px 0;
}

.subtext {
    color: #999;
    margin-bottom: 20px;
}

.improvement-list {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.improvement-item {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.improvement-priority {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.improvement-priority.high {
    background: #f44336;
}

.improvement-priority.medium {
    background: #ff9800;
}

.improvement-priority.low {
    background: #4caf50;
}

.improvement-item h4 {
    color: #333;
    margin-bottom: 8px;
}

.improvement-item p {
    color: #666;
    line-height: 1.6;
}

.improvement-impact {
    color: #667eea;
    font-weight: bold;
    margin-top: 10px;
}

.problem-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.char-stat {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.char-stat.problem {
    border-color: #f44336;
    background: #ffebee;
}

.char-display {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.char-accuracy {
    color: #666;
    font-size: 0.9rem;
}

.retry-btn {
    display: block;
    margin: 30px auto;
}

/* Exercise Transition Styles */
.exercise-transition {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transition-header {
    margin-bottom: 30px;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: checkPop 0.5s ease-out;
}

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

.transition-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.transition-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.transition-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transition-stats .stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.transition-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-exercise-info {
    margin: 30px 0;
    padding: 20px;
    background: #edf2f7;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.next-exercise-info h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.next-exercise-info p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.transition-progress {
    margin: 30px 0;
}

.progress-text {
    margin-bottom: 12px;
    font-weight: 600;
    color: #4a5568;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Comprehensive Analysis Styles */
.comprehensive-analysis {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.comprehensive-analysis h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.exercise-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.exercise-result-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.exercise-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.exercise-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.exercise-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.exercise-result-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-mini .stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-mini .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.weak-chars-mini {
    font-size: 0.85rem;
    color: #718096;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.weak-char-list {
    color: #e53e3e;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Weaknesses Detected */
.weaknesses-detected {
    margin-top: 30px;
}

.weaknesses-detected h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.weakness-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #718096;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.weakness-card.high-priority {
    border-left-color: #e53e3e;
    background: linear-gradient(90deg, rgba(229, 62, 62, 0.05) 0%, white 100%);
}

.weakness-card.medium-priority {
    border-left-color: #ed8936;
    background: linear-gradient(90deg, rgba(237, 137, 54, 0.05) 0%, white 100%);
}

.weakness-card.low-priority {
    border-left-color: #48bb78;
}

.weakness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.weakness-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.severity-badge.high {
    background: #fed7d7;
    color: #c53030;
}

.severity-badge.medium {
    background: #feebc8;
    color: #c05621;
}

.severity-badge.low {
    background: #c6f6d5;
    color: #22543d;
}

.weakness-details {
    color: #4a5568;
    line-height: 1.6;
    margin: 10px 0;
}

.weakness-recommendation {
    background: #edf2f7;
    padding: 12px;
    border-radius: 8px;
    color: #2d3748;
    line-height: 1.5;
    margin: 10px 0;
}

.btn-practice-focus {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-practice-focus:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.no-weaknesses {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.no-weaknesses h4 {
    margin: 0 0 10px 0;
    color: #22543d;
    font-size: 1.5rem;
}

.no-weaknesses p {
    margin: 0;
    color: #276749;
    font-size: 1.1rem;
}

.recommended-focus {
    margin-top: 30px;
}

.recommended-focus h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.focus-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.focus-card h5 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.focus-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Deep Analytics Locked */
.deep-analytics-locked {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    border: 2px dashed #cbd5e0;
}

.deep-analytics-locked .lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.deep-analytics-locked h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.deep-analytics-locked p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.locked-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.locked-features li {
    padding: 12px 0;
    color: #4a5568;
    font-size: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
}

.locked-features li:last-child {
    border-bottom: none;
}

/* Progress Tracking Reminder */
.progress-tracking-reminder {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border-left: 4px solid #4299e1;
}

.progress-tracking-reminder h4 {
    margin: 0 0 15px 0;
    color: #2c5282;
    font-size: 1.2rem;
}

.progress-tracking-reminder p {
    color: #2d3748;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.progress-tracking-reminder p:last-child {
    margin-bottom: 0;
}

/* TODO: Payment Integration - Premium Badge & Upgrade Modal */
.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.badge-icon {
    font-size: 0.9rem;
}

.mode-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.mode-card.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.mode-card.locked:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.upgrade-modal-content {
    max-width: 600px;
}

.upgrade-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.upgrade-body {
    padding: 40px 30px;
    text-align: center;
}

.locked-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upgrade-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.premium-features-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.premium-features-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.premium-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features-list li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.pricing-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-period {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.price-note {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

.upgrade-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upgrade {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.upgrade-footer .btn-secondary {
    width: 100%;
}

/* Exercise Mode */
.exercise-header {
    text-align: center;
    margin-bottom: 30px;
}

.exercise-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-top: 20px;
}

.exercise-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.exercise-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.exercise-info h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.8rem;
}

.exercise-desc {
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

.exercise-goal {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.exercise-stats-bar {
    display: flex;
    justify-content: space-around;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.mini-stat {
    text-align: center;
}

.mini-label {
    display: block;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.mini-value {
    display: block;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
}

.exercise-content {
    margin-bottom: 30px;
}

.exercise-typing-area {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    border: 3px solid #ddd;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    line-height: 2;
}

.exercise-typing-area:focus {
    outline: none;
    border-color: #667eea;
}

.exercise-complete-panel {
    text-align: center;
    background: #f5f5f5;
    padding: 40px;
    border-radius: 10px;
}

.exercise-complete-panel h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 30px;
}

.complete-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.complete-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.complete-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.complete-value {
    color: #667eea;
    font-size: 2rem;
    font-weight: bold;
}

.improvement-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.improvement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.improvement-item button {
    margin-top: 15px;
    background: #667eea;
}

.hidden {
    display: none;
}

/* Statistics Button */
.stats-button-container {
    text-align: center;
    margin-top: 40px;
}

.view-stats-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-stats-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Statistics Screen */
.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-top: 20px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-section h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.stats-section h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    color: #667eea;
    font-size: 2rem;
    font-weight: bold;
}

.recent-games, .assessment-history, .weakness-tracking {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.game-entry, .assessment-entry {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.entry-date {
    color: #999;
    font-size: 0.85rem;
}

.entry-stats {
    display: flex;
    gap: 20px;
}

.entry-stat {
    text-align: center;
}

.entry-stat-label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.entry-stat-value {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.progress-chart {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

#wpm-chart {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

.weakness-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #f44336;
}

.weakness-char {
    display: inline-block;
    background: #ffebee;
    color: #f44336;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-right: 10px;
}

.weakness-count {
    color: #999;
    font-size: 0.9rem;
}

/* Coin Indicator */
.coin-indicator {
    z-index: 10;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    animation: coin-spin 2s infinite linear;
    filter: drop-shadow(0 0 3px gold);
}

@keyframes coin-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.shield-indicator {
    z-index: 10;
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.2rem;
    animation: shield-pulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 3px #2196f3);
}

@keyframes shield-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes shield-break {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(2) rotate(180deg);
        opacity: 0;
    }
}

/* Blast Effect */
.blast-effect {    position: absolute;    border-radius: 50%;    background: radial-gradient(circle, rgba(255,150,0,0.9) 0%, rgba(255,100,0,0.6) 40%, rgba(255,50,0,0.3) 70%, transparent 100%);    pointer-events: none;    animation: blast-expand 0.6s ease-out;    z-index: 10;    border: 3px solid rgba(255,200,0,0.8);    box-shadow: 0 0 30px rgba(255,150,0,0.8), inset 0 0 30px rgba(255,200,0,0.4);}@keyframes blast-expand {    0% {        transform: scale(0.3);        opacity: 1;    }    50% {        transform: scale(1);        opacity: 0.8;    }    100% {        transform: scale(1.2);        opacity: 0;    }}

/* Word Wall */
.freeze-activate-btn {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
}

.freeze-activate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
}

.freeze-activate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-shop-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.upgrade-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

/* Case Conversion Controls - Compact */
.sidebar-section.compact {
    padding: 12px;
}

.sidebar-section.typing-area-top {
    padding: 10px 10px 5px 10px;
    background: rgba(102, 126, 234, 0.05);
}

.typing-area-top h3 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1rem;
}

.case-controls-compact {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.case-btn-small {
    padding: 6px 10px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.case-btn-small:hover {
    background: #e0e0e0;
    border-color: #bbb;
    transform: translateY(-2px);
}

.case-btn-small.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
}

.case-matching-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.case-matching-toggle:hover {
    background: #e8e8e8;
}

.case-matching-toggle input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.case-matching-toggle span {
    font-weight: 500;
    color: #333;
}

/* Shop Preferences */
.shop-preferences {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-pref-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.shop-pref-option:hover {
    background: #e8e8e8;
}

.shop-pref-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.shop-pref-option span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.shop-settings {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Upgrade Shop Modal */
.modal-content.upgrade-shop-content {
    max-width: 1200px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.coin-display {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #f39c12;
    margin: 20px 0;
    padding: 10px;
    background: #fff9e6;
    border-radius: 8px;
}

.upgrade-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .upgrade-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .upgrade-list {
        grid-template-columns: 1fr;
    }
}

.upgrade-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    max-width: 240px;
    min-width: 220px;
}

.upgrade-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.upgrade-card p {
    font-size: 0.8rem;
    margin: 4px 0;
}

.upgrade-card button {
    font-size: 0.85rem;
    padding: 8px 12px;
}

.upgrade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.upgrade-card h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.2rem;
}

.upgrade-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.upgrade-level {
    font-weight: bold;
    color: #333;
}

.upgrade-effect {
    color: #f39c12;
    font-weight: bold;
    font-size: 0.95rem;
}

.upgrade-card button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-card button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.upgrade-card button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.close-shop-btn {
    width: 100%;
    padding: 12px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.close-shop-btn:hover {
    background: #555;
    transform: translateY(-2px);
}


/* Character Card Styling */
.character-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid #ffd700;
}

.character-card h3 {
    color: white;
}

.character-card p {
    color: rgba(255,255,255,0.9);
}

.character-card .upgrade-effect {
    color: #ffd700;
}

.select-char-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.select-char-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.select-char-btn.selected {
    background: #666;
    cursor: not-allowed;
}

/* Grade Selection Modal */
.modal-content.grade-select-content {
    max-width: 900px;
    width: 85vw;
}

.grade-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Difficulty Selector */
.difficulty-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.difficulty-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.difficulty-btn {
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.difficulty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.difficulty-btn.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.difficulty-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.difficulty-name {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
}

.difficulty-desc {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.super-easy-btn.selected { border-color: #FF69B4; background: rgba(255, 105, 180, 0.1); }
.easy-btn.selected { border-color: #4CAF50; background: rgba(76, 175, 80, 0.1); }
.normal-btn.selected { border-color: #2196F3; background: rgba(33, 150, 243, 0.1); }
.difficult-btn.selected { border-color: #FF9800; background: rgba(255, 152, 0, 0.1); }
.impossible-btn.selected { border-color: #F44336; background: rgba(244, 67, 54, 0.1); }

.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.grade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.grade-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.grade-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.grade-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

.current-grade-display {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Arena Cooldown Indicators - Canvas Arcs */
.cooldown-arcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.arc-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 16;
    pointer-events: none;
}

.arc-label-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.arc-icon {
    position: absolute;
    font-size: 2rem;
    color: white;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    text-align: center;
}

.arc-icon-small {
    position: absolute;
    font-size: 1.5rem;
    color: white;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    text-align: center;
}

.arc-text {
    position: absolute;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    text-align: center;
    white-space: nowrap;
}

.arc-text-small {
    position: absolute;
    font-size: 0.65rem;
    color: white;
    font-weight: bold;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    text-align: center;
    white-space: nowrap;
}

.arc-icon-smaller {
    position: absolute;
    font-size: 1.2rem;
    color: white;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    text-align: center;
}

.arc-text-smaller {
    position: absolute;
    font-size: 0.55rem;
    color: white;
    font-weight: bold;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    text-align: center;
    white-space: nowrap;
}

/* Banana Slick - Slippery Ground Effect */
.banana-slick {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.4) 0%, rgba(255, 255, 150, 0.2) 50%, transparent 100%);
    border: 2px dashed rgba(255, 220, 0, 0.6);
    pointer-events: none;
    z-index: 3;
    animation: slick-pulse 1s ease-in-out infinite;
}

@keyframes slick-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Yarn Zone - Grandma's slow zone */
.yarn-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.3) 0%, rgba(150, 180, 255, 0.15) 50%, transparent 100%);
    border: 3px solid rgba(100, 150, 255, 0.6);
    border-style: dashed;
    pointer-events: none;
    z-index: 3;
    animation: yarn-squiggle 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.yarn-zone::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(100, 150, 255, 0.4);
    border-style: wavy;
    animation: yarn-rotate 3s linear infinite;
}

@keyframes yarn-squiggle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
        opacity: 0.9;
    }
}

@keyframes yarn-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Heart Zone - Grandma's attraction zone */
.heart-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 100, 150, 0.4) 0%, rgba(255, 150, 180, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(255, 100, 150, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: heart-pulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.heart-zone::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid rgba(255, 100, 150, 0.3);
    animation: heart-expand 2s ease-in-out infinite;
}

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

@keyframes heart-expand {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Wizard Repel Wave */
.repel-wave {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(150, 100, 255, 0.8);
    background: radial-gradient(circle, rgba(150, 100, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    animation: repel-expand 0.5s ease-out forwards;
}

@keyframes repel-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Unicorn Coin Bonus */
.coin-bonus {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
    animation: coin-float 1.5s ease-out forwards;
}

@keyframes coin-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(1.3);
        opacity: 0;
    }
}

/* Unicorn Flower Wall - Soft Wall */
.flower-wall {
    position: absolute;
    background: radial-gradient(ellipse, rgba(255, 182, 193, 0.5) 0%, rgba(255, 192, 203, 0.3) 50%, transparent 100%);
    border: 3px solid rgba(255, 105, 180, 0.6);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: flower-sway 3s ease-in-out infinite;
}

.flower-wall::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dotted rgba(255, 105, 180, 0.4);
    border-radius: 50% 50% 0 0;
    animation: flower-shimmer 2s ease-in-out infinite;
}

@keyframes flower-sway {
    0%, 100% {
        transform: rotate(-2deg);
        opacity: 0.8;
    }
    50% {
        transform: rotate(2deg);
        opacity: 1;
    }
}

@keyframes flower-shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Dragon 🔥 Burn Zone */
.burn-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.4) 0%, rgba(255, 150, 0, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(255, 69, 0, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: burn-shimmer 1s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes burn-shimmer {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Dragon 💥 Blast Wave */
.blast-wave {
    position: absolute;
    border-radius: 50%;
    border: 4px solid rgba(255, 69, 0, 0.9);
    background: radial-gradient(circle, rgba(255, 100, 0, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    animation: blast-expand 0.6s ease-out forwards;
}

@keyframes blast-expand {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Ninja 🌀 Vortex Zone */
.vortex-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3) 0%, rgba(150, 220, 255, 0.15) 50%, transparent 100%);
    border: 3px dashed rgba(100, 200, 255, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: vortex-spin 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes vortex-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ninja 🗡️ Slash Freeze */
.slash-freeze {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 200, 255, 0.6) 50%, transparent 100%);
    border: 2px solid rgba(150, 150, 255, 0.9);
    pointer-events: none;
    z-index: 4;
    animation: slash-glow 0.5s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

@keyframes slash-glow {
    0% {
        box-shadow: 0 0 5px rgba(150, 150, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(200, 200, 255, 0.9);
    }
}

/* Robot 🧲 Magnetic Clump */
.magnetic-clump {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 180, 220, 0.4) 0%, rgba(200, 200, 240, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(150, 150, 200, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: magnetic-pulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes magnetic-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(150, 150, 200, 0.4), inset 0 0 10px rgba(200, 200, 240, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(180, 180, 220, 0.6), inset 0 0 15px rgba(220, 220, 255, 0.5);
    }
}

/* Robot ⚙️ Machinery Zone */
.machinery-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 120, 120, 0.3) 0%, rgba(150, 150, 150, 0.15) 50%, transparent 100%);
    border: 3px solid rgba(100, 100, 100, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: machinery-rotate 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes machinery-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Chef 🍕 Cheese Stick */
.cheese-stick {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.4) 0%, rgba(255, 230, 150, 0.2) 50%, transparent 100%);
    border: 3px dotted rgba(255, 200, 50, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: cheese-stretch 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes cheese-stretch {
    0%, 100% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.1, 0.9);
    }
}

/* Chef 🍔 Grease Slick */
.grease-slick {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 120, 80, 0.4) 0%, rgba(180, 140, 100, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(140, 100, 60, 0.6);
    pointer-events: none;
    z-index: 3;
    animation: grease-wobble 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes grease-wobble {
    0%, 100% {
        border-radius: 50% 45% 48% 52%;
    }
    25% {
        border-radius: 48% 52% 50% 46%;
    }
    50% {
        border-radius: 52% 48% 46% 50%;
    }
    75% {
        border-radius: 46% 50% 52% 48%;
    }
}

/* Chef 🍰 Sugar Spin */
.sugar-spin {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 255, 0.4) 0%, rgba(255, 220, 255, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(255, 150, 255, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: sugar-rotate 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes sugar-rotate {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Chef 🍪 Crumb Trail */
.crumb-trail {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 160, 120, 0.4) 0%, rgba(220, 180, 140, 0.2) 50%, transparent 100%);
    border: 3px dotted rgba(180, 140, 100, 0.6);
    pointer-events: none;
    z-index: 3;
    animation: crumb-expand 8s ease-out forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes crumb-expand {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.4;
    }
}

/* Chef 🥐 Butter Barrier */
.butter-barrier {
    position: absolute;
    background: radial-gradient(ellipse, rgba(255, 220, 150, 0.5) 0%, rgba(255, 230, 180, 0.3) 50%, transparent 100%);
    border: 3px solid rgba(255, 200, 100, 0.7);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 3;
    animation: butter-shimmer 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes butter-shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Vampire 🦇 Bat Swarm */
.bat-swarm {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 60, 100, 0.4) 0%, rgba(100, 80, 120, 0.2) 50%, transparent 100%);
    border: 3px dashed rgba(60, 40, 80, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: bat-circle 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

@keyframes bat-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Vampire 🩸 Drain Pool */
.drain-pool {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 0, 0, 0.5) 0%, rgba(180, 0, 0, 0.3) 50%, transparent 100%);
    border: 3px solid rgba(120, 0, 0, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: drain-pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes drain-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(150, 0, 0, 0.5), inset 0 0 10px rgba(180, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(180, 0, 0, 0.7), inset 0 0 15px rgba(200, 0, 0, 0.6);
    }
}

/* Alien 👾 Abduction Beam */
.abduction-beam {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(100, 255, 100, 0.5) 0%, rgba(150, 255, 150, 0.3) 50%, transparent 100%);
    border: 3px solid rgba(0, 255, 0, 0.7);
    pointer-events: none;
    z-index: 3;
    animation: abduction-lift 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes abduction-lift {
    0%, 100% {
        box-shadow: 0 -10px 20px rgba(100, 255, 100, 0.3);
    }
    50% {
        box-shadow: 0 -20px 40px rgba(150, 255, 150, 0.5);
    }
}

/* Alien 💚 Pacify Beam */
.pacify-beam {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 150, 0.4) 0%, rgba(150, 255, 180, 0.2) 50%, transparent 100%);
    border: 3px solid rgba(50, 255, 100, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: pacify-glow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@keyframes pacify-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(100, 255, 150, 0.5);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 30px rgba(150, 255, 180, 0.8);
        opacity: 1;
    }
}

/* Word Wall - Brick Pattern */
.word-wall {
    position: absolute;
    height: 50px;
    background: 
        repeating-linear-gradient(
            0deg,
            #8B4513 0px,
            #8B4513 2px,
            transparent 2px,
            transparent 10px
        ),
        repeating-linear-gradient(
            90deg,
            #A0522D 0px,
            #A0522D 30px,
            #654321 30px,
            #654321 32px,
            #8B4513 32px,
            #8B4513 62px,
            #654321 62px,
            #654321 64px
        ),
        linear-gradient(
            180deg,
            #D2691E 0%,
            #A0522D 50%,
            #8B4513 100%
        );
    border: 3px solid #654321;
    border-radius: 4px;
    box-shadow: 
        0 0 20px rgba(139, 69, 19, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
    animation: wall-appear 0.3s ease-out;
}

@keyframes wall-appear {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}
