/* Gaming-themed mobile-first responsive design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00ffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffff00, transparent),
        radial-gradient(1px 1px at 130px 80px, #00ff00, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    opacity: 0.1;
    z-index: 0;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-200px); }
}

/* Container for main content */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate, glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    margin-bottom: 1rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6)); }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content area */
main {
    text-align: center;
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

main h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game buttons */
.game-section {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    margin-top: 2rem;
}

.game-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-button:hover::before {
    left: 100%;
}

.game-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ff5252, #d63031);
}

.game-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Gaming console style decorations */
.console-border {
    border: 3px solid #00ffff;
    border-radius: 20px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    .game-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-button {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .console-border {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        margin-bottom: 0.5rem;
    }
    
    main h2 {
        margin-bottom: 1.5rem;
    }
    
    .game-button {
        padding: 1rem 1.2rem;
        border-radius: 12px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #ffffff;
    }
    
    .game-button {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
}

/* Hangman Game Specific Styles */
.hangman-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.hangman-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hangman-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(45deg, #ff6b6b, #ffa500, #ffff00, #32cd32);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 0.5rem;
}

.game-area {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.word-display {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
    letter-spacing: 0.8rem;
    margin: 1.5rem 0;
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    min-height: 3rem;
}

.tries-display {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    font-weight: bold;
}

.alphabet-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 0.6rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.letter-button {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #00ffff;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.letter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.letter-button:hover::before {
    left: 100%;
}

.letter-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
    border-color: #ff00ff;
}

.letter-button:active {
    transform: translateY(-1px) scale(1.05);
}

.letter-button:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.letter-button.correct {
    background: linear-gradient(135deg, #00ff00, #32cd32) !important;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.letter-button.incorrect {
    background: linear-gradient(135deg, #ff4444, #cc0000) !important;
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.game-status {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    margin: 1.5rem 0;
    min-height: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.status-win {
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-lose {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.word-definition {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 1rem;
    color: #ffa500;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.reset-button {
    background: linear-gradient(135deg, #32cd32, #228b22);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem auto;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.reset-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.5);
    background: linear-gradient(135deg, #00ff00, #32cd32);
}

.session-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.session-summary h2 {
    color: #ff00ff;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.session-summary h3 {
    color: #00ffff;
    margin: 1rem 0 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

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

.stat-item {
    text-align: center;
    padding: 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.word-history {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.word-history::-webkit-scrollbar {
    width: 6px;
}

.word-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.word-history::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.word-list {
    list-style: none;
    padding: 0;
}

.word-list-item {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.word-list-item:hover {
    background: rgba(0, 255, 255, 0.1);
}

.word-list-item:last-child {
    border-bottom: none;
}

.word-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.word-name {
    font-weight: bold;
    color: #ffffff;
}

.word-status {
    font-size: 1.2rem;
}

.word-status.win {
    color: #00ff00;
}

.word-status.lose {
    color: #ff4444;
}

.word-tries {
    color: #ffa500;
    font-size: 0.9rem;
}

/* Mobile responsiveness for hangman */
@media (max-width: 768px) {
    .hangman-container {
        padding: 15px;
    }
    
    .game-area {
        padding: 1.5rem;
    }
    
    .alphabet-container {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 0.4rem;
        padding: 0.8rem;
    }
    
    .letter-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .word-display {
        letter-spacing: 0.4rem;
    }
    
    .session-summary {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .alphabet-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.3rem;
    }
    
    .letter-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .word-display {
        letter-spacing: 0.2rem;
        font-size: 1.5rem;
    }
}

/* Charades Game Specific Styles */
.charades-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.charades-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.charades-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 0.5rem;
}

.game-screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.game-screen.active {
    display: block;
}

/* Category Selection */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    border-color: #ff00ff;
}

.category-desc {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Setup Screen */
.setup-content {
    max-width: 600px;
    margin: 0 auto;
}

.setup-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.setup-section h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.instructions {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
}

.instructions li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0.8rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.instructions {
    counter-reset: step-counter;
}

.time-selector {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    font-size: 1rem;
    margin-left: 1rem;
    cursor: pointer;
}

.time-selector:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.start-button {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.3);
}

.start-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 0, 0.5);
}

.orientation-button {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    border: 2px solid #ffa500;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.orientation-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5);
}

/* Countdown Screen */
.countdown-display {
    text-align: center;
    padding: 3rem 0;
}

.countdown-number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    animation: pulse 1s ease-in-out infinite;
}

.countdown-text {
    font-size: 1.2rem;
    color: #ffa500;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Game Play Screen */
.game-play-area {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 2rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.timer-section {
    text-align: center;
    margin-bottom: 1rem;
}

.timer-display {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
    font-family: 'Courier New', monospace;
}

.timer-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 1rem auto;
    overflow: hidden;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

.score-section {
    text-align: center;
    margin-bottom: 2rem;
}

.score-display {
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.word-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.current-word {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.category-label {
    font-size: 1rem;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.controls-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.control-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
}

.correct-button {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    border-color: #00ff00;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.correct-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
}

.skip-button {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    border-color: #ffa500;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.skip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5);
}

.tilt-instructions {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    opacity: 0.7;
}

.tilt-instruction {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.tilt-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pause-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #ff00ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.pause-button:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.1);
}

/* Feedback Popup */
.feedback-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 15px;
    z-index: 10;
    animation: feedbackPop 0.8s ease-out;
}

.feedback-popup.correct {
    background: rgba(0, 255, 0, 0.9);
    color: white;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.feedback-popup.skip {
    background: rgba(255, 165, 0, 0.9);
    color: white;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.6);
}

@keyframes feedbackPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Results Screen */
.results-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-score {
    text-align: center;
    margin: 2rem 0;
}

.score-circle {
    display: inline-block;
    width: 150px;
    height: 150px;
    border: 4px solid #00ffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.final-score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.performance-message {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.results-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.stat-row:last-child {
    border-bottom: none;
}

.word-review {
    margin: 2rem 0;
}

.word-review h3 {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    margin-bottom: 1rem;
}

.words-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.word-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.word-review-item:last-child {
    border-bottom: none;
}

.word-review-item.correct {
    background: rgba(0, 255, 0, 0.1);
}

.word-review-item.skipped {
    background: rgba(255, 165, 0, 0.1);
}

.word-text {
    color: #ffffff;
    font-weight: bold;
}

.word-result {
    font-size: 1.2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.play-again-button,
.change-category-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-again-button {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    border-color: #00ff00;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.play-again-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
}

.change-category-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.change-category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Fullscreen landscape mode */
body.fullscreen-game {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.fullscreen-game #game-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

body.fullscreen-game .game-play-area {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.fullscreen-game .current-word {
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 1;
    text-align: center;
}

body.fullscreen-game .timer-section {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
}

body.fullscreen-game .score-section {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-bottom: 0;
}

body.fullscreen-game .controls-section {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 2rem;
}

body.fullscreen-game .tilt-instructions {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
}

body.fullscreen-game .pause-button {
    top: 20px;
    right: 20px;
}

/* Landscape optimization for charades */
@media screen and (orientation: landscape) {
    .charades-container {
        padding: 15px 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .setup-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .start-button, .orientation-button {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 300px;
    }
}

/* Portrait mode handling for charades - handled in template CSS */

/* Mobile responsiveness for charades */
@media (max-width: 768px) {
    .charades-container {
        padding: 10px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-button {
        padding: 1.5rem;
    }
    
    .game-play-area {
        padding: 1.5rem;
        min-height: 60vh;
    }
    
    .current-word {
        font-size: clamp(1.5rem, 6vw, 4rem);
    }
    
    .controls-section {
        flex-direction: column;
        align-items: center;
    }
    
    .control-button {
        width: 100%;
        max-width: 200px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .play-again-button,
    .change-category-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .setup-section {
        padding: 1rem;
    }
    
    .instructions li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .timer-display {
        font-size: 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .final-score-number {
        font-size: 2.5rem;
    }
}