* {
    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;
    padding: 20px;
    margin: 0;
    overflow-x: hidden;
    cursor: none !important; /* Hide default cursor */
}

/* Hide all cursor types */
*, *::before, *::after {
    cursor: none !important;
}

/* Emoji Cursor */
.emoji-cursor {
    position: fixed;
    pointer-events: none;
    font-size: 2em;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Sparkle Trail */
.sparkle-trail {
    position: fixed;
    pointer-events: none;
    font-size: 1em;
    z-index: 99998;
    opacity: 0.8;
    animation: sparkle-fade 0.5s ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
}

/* Screen System */
.screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Title Screen */
.title-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 768px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Logo Rotator */
.logo-rotator {
    width: 100%;
    max-width: 700px;
    height: 200px;
    position: relative;
    margin: 0 auto 20px;
    overflow: hidden;
    background: transparent;
}

.logo-rotator img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background: transparent;
}

.logo-rotator img.active {
    opacity: 1;
    z-index: 2;
}

.logo-rotator img.fading {
    opacity: 0;
    z-index: 1;
}

.how-to-play, .special-emojis {
    text-align: left;
    margin: 15px 0;
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.how-to-play h2, .special-emojis h2 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.instruction-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.instruction-item p {
    margin: 0;
    font-size: 0.95em;
    color: #333;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.special-emoji-item {
    background: white;
    padding: 12px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.special-emoji-item:hover {
    transform: translateY(-5px);
}

.emoji-large {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.special-emoji-item p {
    margin: 0;
    color: #333;
    font-size: 0.85em;
}

.btn-large {
    font-size: 1.5em;
    padding: 15px 40px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    animation: button-glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.6);
    animation: button-pulse 0.5s ease-in-out infinite;
}

@keyframes button-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.6);
    }
}

@keyframes button-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 1), 0 0 80px rgba(102, 126, 234, 0.8);
    }
}

/* Credits Screen */
.credits-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    max-width: 768px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.credits-content h1 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 20px;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.credits-section {
    margin: 20px 0;
    text-align: center;
}

.credits-section h2 {
    font-size: 1.4em;
    color: #667eea;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.credits-item {
    padding: 8px 0;
    font-size: 0.95em;
    color: #333;
    line-height: 1.5;
}

.credits-item strong {
    color: #667eea;
    font-weight: 600;
}

/* Character Showcase Screen */
.showcase-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    max-width: 768px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.showcase-content h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 15px;
    margin-top: 0;
}

.character-showcase-rotator {
    width: 100%;
    max-width: 500px;
    height: 400px;
    position: relative;
    margin: 0 auto 15px;
    overflow: hidden;
    background: transparent;
}

.character-showcase-rotator img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.character-showcase-rotator img.active {
    opacity: 1;
    z-index: 2;
}

.showcase-subtitle {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

/* High Scores Screen */
.scores-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 768px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.scores-content h2 {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 30px;
}

.scores-list {
    min-height: 300px;
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.score-rank {
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 15px;
}

.score-name {
    flex: 1;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
}

.loading-scores {
    color: #666;
    font-size: 1.2em;
}

.auto-progress {
    color: #666;
    font-size: 1.1em;
    margin-top: 20px;
}

#countdown {
    font-weight: bold;
    color: #667eea;
    font-size: 1.3em;
}

/* Game Over Screen */
.game-over-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.game-over-content h2 {
    font-size: 3em;
    color: #ff6b6b;
    margin-bottom: 30px;
}

.final-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 1.2em;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
}

/* High Score Input Screen */
.input-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 768px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.input-content h2 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 20px;
}

.score-display {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 30px;
}

.input-group {
    margin: 30px 0;
}

.input-group label {
    display: block;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: 3px solid #667eea;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.input-group input:focus {
    outline: none;
    border-color: #f9ca24;
    box-shadow: 0 0 20px rgba(249, 202, 36, 0.5);
}

.input-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 768px;
    width: 100%;
    position: relative;
    z-index: 5;
    margin: 0 auto;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.5em;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-icon {
    font-size: 1.5em;
}

.stat-value {
    font-size: 1.2em;
}

/* Character Panel */
.character-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.character-avatar {
    font-size: 4em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.character-info {
    flex: 1;
}

.character-info h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.xp-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 25px;
    position: relative;
    overflow: hidden;
}

.xp-fill {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Game Board */
.game-board-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 768px;
    width: 100%;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 15px;
    max-width: 480px;
    margin: 0 auto;
}

.emoji-cell {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.emoji-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.emoji-cell.selected {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    border: 3px solid #ff6b6b;
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 1); }
}

.emoji-cell.matched {
    animation: explode 0.5s ease forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.emoji-cell.falling {
    animation: fall 0.5s ease forwards;
}

.emoji-cell.hint-highlight {
    animation: hint-pulse 0.5s ease infinite;
    box-shadow: 0 0 25px #f9ca24, 0 0 50px #f9ca24 !important;
    border: 3px solid #f9ca24 !important;
    z-index: 100;
}

@keyframes hint-pulse {
    0%, 100% {
        box-shadow: 0 0 25px #f9ca24, 0 0 50px #f9ca24;
        transform: scale(1.1);
    }
    50% {
        box-shadow: 0 0 35px #f9ca24, 0 0 70px #f9ca24;
        transform: scale(1.15);
    }
}

@keyframes fall {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Controls */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.moves-counter {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Power-ups */
.powerups-panel {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.powerups-panel h4 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.3em;
}

.powerups {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.powerup-btn {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 100px;
}

.powerup-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.powerup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.powerup-btn small {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* Story Intro */
.story-intro-content {
    max-width: 768px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-character-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: contain;
    margin-bottom: 20px;
}

.story-intro-content h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.story-text {
    text-align: center;
    font-size: 0.85em;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    width: 100%;
}

.story-text p {
    margin: 8px 0;
}

.story-intro-content button {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .story-intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .story-intro-content h2 {
        grid-column: 1;
    }
    
    .story-intro-content button {
        grid-column: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cross fade between character select and story */
#character-select-modal {
    transition: opacity 0.5s ease;
}

#story-intro-modal {
    transition: opacity 0.5s ease;
}

#character-select-modal.fading-out {
    opacity: 0;
}

#story-intro-modal.fading-in {
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 768px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Particle Effects */
.particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.5em;
    z-index: 10000;
    animation: particle-float 1s ease-out forwards;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@keyframes particle-explode {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--explode-x, 0), var(--explode-y, 0)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes particle-rainbow {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(0, -50px) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--rainbow-x, 0), -150px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Character Select */
.character-select-content {
    max-width: 768px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
    margin-top: 0;
}

.character-select-content h2 {
    display: none; /* Remove title */
}

.select-subtitle {
    display: none; /* Remove subtitle - function is obvious */
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.character-card {
    padding: 12px;
}

.character-badge {
    width: 100px;
    height: 100px;
}

.character-card h3 {
    font-size: 1.2em;
    margin-bottom: 6px;
}

.character-tagline {
    font-size: 0.75em;
    min-height: 30px;
    margin-bottom: 5px;
}

.character-description {
    font-size: 0.7em;
    margin-bottom: 8px;
}

.character-stats {
    padding: 6px;
    margin-top: 6px;
}

.character-stats span {
    font-size: 0.75em;
}

.character-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 3px solid transparent;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border-color: #f9ca24;
}

.character-card.selected {
    border-color: #f9ca24;
    box-shadow: 0 0 30px rgba(249, 202, 36, 0.8);
    animation: card-pulse 1s ease infinite;
}

@keyframes card-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(249, 202, 36, 0.8); }
    50% { box-shadow: 0 0 40px rgba(249, 202, 36, 1); }
}

.character-badge {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.character-card:hover .character-badge {
    transform: rotate(5deg) scale(1.1);
}

.character-card h3 {
    color: white;
    font-size: 1.3em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.character-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 8px;
    min-height: 40px;
}

.character-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    margin-bottom: 15px;
    font-weight: bold;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.character-stats span {
    color: white;
    font-size: 0.9em;
    font-weight: bold;
}

/* Character-specific colors */
.character-card[data-class="warrior"] {
    background: linear-gradient(135deg, #c94b4b 0%, #4b134f 100%);
}

.character-card[data-class="mage"] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.character-card[data-class="rogue"] {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.character-card[data-class="healer"] {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.audio-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.audio-btn:hover {
    transform: scale(1.2);
}

.audio-btn.muted {
    opacity: 0.5;
}

.audio-controls input[type="range"] {
    width: 80px;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.audio-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.audio-controls input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive */
@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .emoji-cell {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .character-select-content {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .character-card {
        padding: 8px;
    }
    
    .character-badge {
        width: 80px;
        height: 80px;
    }
    
    .character-card h3 {
        font-size: 1em;
    }
    
    .character-tagline {
        font-size: 0.65em;
    }
    
    .character-description {
        font-size: 0.6em;
    }
    
    .character-stats {
        padding: 4px;
        font-size: 0.7em;
    }
    
    .logo-rotator {
        height: 150px;
        margin-bottom: 15px;
    }
    
    .title-content {
        padding: 20px;
    }
    
    .emoji-grid {
        grid-template-columns: 1fr;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
}

