* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow-x: hidden;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

/* Game header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* Home button */
.home-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.home-button:active {
    transform: translateY(0);
}

.home-icon {
    font-size: 16px;
}

.home-text {
    font-size: 12px;
}

.title-container {
    position: relative;
    display: inline-block;
}

.game-title-image {
    height: 60px;
    width: auto;
    max-width: 400px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.title-container h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pop-decoration {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 40px;
    height: 40px;
    background-image: url('images/pop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.tetris-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    position: relative;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tetris-title span {
    display: inline-block;
    position: relative;
}

.game-header h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.score-board {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.score-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.score-item .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.score-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

.game-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.game-area {
    position: relative;
}

#gameCanvas {
    border: 3px solid #4ecdc4;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
    max-width: 100%;
    height: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.overlay-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 200px;
}

.next-piece {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.piece-display-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .piece-display-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .piece-display-item {
        width: 100%;
    }
    
    .piece-display-item canvas {
        width: 100%;
        height: auto;
        max-width: 120px;
        margin: 0 auto;
    }
}

.piece-display-item {
    text-align: center;
}

.piece-display-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #4ecdc4;
}

#nextCanvas, #heldCanvas {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: #000;
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #4ecdc4;
    text-align: center;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.key {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.action {
    font-size: 0.9rem;
    opacity: 0.8;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #45b7d1, #4ecdc4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.leaderboard-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
}

.leaderboard-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b) !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important;
}

/* Mobile Touch Controls */
.mobile-controls {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-control-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    min-height: 80px;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.mobile-btn:active {
    transform: scale(0.95);
    background: linear-gradient(45deg, #45b7d1, #4ecdc4);
}

.mobile-btn .btn-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.mobile-btn .btn-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.rotate-btn {
    background: linear-gradient(45deg, #a000f0, #8a2be2);
}

.rotate-btn:active {
    background: linear-gradient(45deg, #8a2be2, #a000f0);
}

.drop-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    min-width: 120px;
}

.drop-btn:active {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
}

.left-btn, .right-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

.down-btn {
    background: linear-gradient(45deg, #f0a000, #ffa500);
}

.down-btn:active {
    background: linear-gradient(45deg, #ffa500, #f0a000);
}

.pause-btn {
    background: linear-gradient(45deg, #00f000, #32cd32);
}

.pause-btn:active {
    background: linear-gradient(45deg, #32cd32, #00f000);
}

/* Mobile elements - hidden by default on desktop */
.mobile-next-piece,
.mobile-held-piece,
.mobile-score,
.mobile-hold-btn,
.mobile-down-btn {
    display: none; /* Hidden by default, shown only on mobile */
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
        min-height: 100vh;
    }
    
    .game-container {
        padding: 15px;
        margin: 0;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .game-header {
        display: none;
    }
    
    .title-container {
        display: none;
    }
    
    .game-title-image {
        display: none;
    }
    
    .game-main {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .score-board {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .score-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .score-item .value {
        font-size: 1.2rem;
    }
    
    .game-sidebar {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        order: 2;
        display: none;
    }
    
    .mobile-next-piece {
        display: block;
        position: absolute;
        top: 0;
        right: -80px;
        background: rgba(255, 255, 255, 0.1);
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 10;
    }
    
    .mobile-held-piece {
        display: block;
        position: absolute;
        top: 140px;
        right: -80px;
        background: rgba(255, 255, 255, 0.1);
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 10;
    }
    
    .mobile-next-piece h3,
    .mobile-held-piece h3 {
        margin: 0 0 8px 0;
        font-size: 0.9rem;
        color: #4ecdc4;
        text-align: center;
    }
    
    .mobile-next-piece canvas,
    .mobile-held-piece canvas {
        width: 60px;
        height: 60px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 5px;
        background: #000;
    }
    
    .mobile-score {
        display: block;
        position: absolute;
        top: 260px;
        right: -85px;
        text-align: center;
        font-size: 1.2rem;
        font-weight: bold;
        color: #4ecdc4;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 80px;
    }
    
    .mobile-hold-btn {
        display: block;
        position: absolute;
        bottom: 90px;
        right: -85px;
        background: linear-gradient(45deg, rgba(160, 0, 240, 0.1), rgba(138, 43, 226, 0.1));
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 12px 16px;
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 70px;
        min-height: 70px;
        justify-content: center;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        z-index: 10;
    }
    
    .mobile-hold-btn:active {
        transform: scale(0.95);
        background: linear-gradient(45deg, rgba(160, 0, 240, 0.2), rgba(138, 43, 226, 0.2));
    }
    
    .mobile-hold-btn .btn-icon {
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    .mobile-hold-btn .btn-label {
        font-size: 0.7rem;
        opacity: 0.9;
    }
    
    .mobile-down-btn {
        display: block;
        position: absolute;
        bottom: 10px;
        right: -85px;
        background: linear-gradient(45deg, rgba(240, 160, 0, 0.1), rgba(255, 165, 0, 0.1));
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 12px 16px;
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 70px;
        min-height: 70px;
        justify-content: center;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        z-index: 10;
    }
    
    .mobile-down-btn:active {
        transform: scale(0.95);
        background: linear-gradient(45deg, rgba(255, 165, 0, 0.2), rgba(240, 160, 0, 0.2));
    }
    
    .mobile-down-btn .btn-icon {
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    .mobile-down-btn .btn-label {
        font-size: 0.7rem;
        opacity: 0.9;
    }
    
    .game-area {
        order: 1;
        position: relative;
        margin-right: 90px; /* Make room for next piece box */
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    #nextCanvas {
        width: 100%;
        max-width: 120px;
        height: auto;
    }
    
    .controls {
        display: none;
    }
    
    .score-board {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
        width: 100%;
        max-width: 400px;
        margin: 10px auto 0 auto;
        padding: 12px 16px;
    }
    
    .mobile-control-row {
        gap: 10px;
    }
    
    .mobile-btn {
        min-width: 70px;
        min-height: 70px;
        padding: 12px 15px;
    }
    
    .mobile-btn .btn-icon {
        font-size: 1.3rem;
    }
    
    .mobile-btn .btn-label {
        font-size: 0.7rem;
    }
    
    .drop-btn {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header {
        display: none;
    }
    
    .title-container {
        display: none;
    }
    
    .game-title-image {
        display: none;
    }
    
    .score-item {
        min-width: 60px;
        padding: 8px;
    }
    
    .score-item .value {
        font-size: 1rem;
    }
    
    .game-area {
        margin-right: 70px; /* Less room on smaller screens */
    }
    
    .mobile-next-piece {
        right: -70px;
        padding: 8px;
    }
    
    .mobile-next-piece canvas {
        width: 50px;
        height: 50px;
    }
    
    .mobile-score {
        top: 100px;
        right: -75px;
        font-size: 1rem;
        padding: 6px 10px;
        min-width: 70px;
    }
    
    .mobile-down-btn {
        bottom: 8px;
        right: -75px;
        padding: 10px 14px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .mobile-down-btn .btn-icon {
        font-size: 1.1rem;
    }
    
    .mobile-down-btn .btn-label {
        font-size: 0.6rem;
    }
    
    .mobile-controls {
        max-width: 350px;
        padding: 10px 14px;
    }
    
    .mobile-btn {
        min-width: 60px;
        min-height: 60px;
        padding: 10px 12px;
    }
    
    .mobile-btn .btn-icon {
        font-size: 1.1rem;
    }
    
    .mobile-btn .btn-label {
        font-size: 0.6rem;
    }
    
    .drop-btn {
        min-width: 90px;
    }
}

/* Prevent text selection on mobile */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animation for piece movement */
@keyframes pieceDrop {
    0% { transform: translateY(-10px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}

.piece-drop {
    animation: pieceDrop 0.1s ease-out;
}

/* Line clear animation */
@keyframes lineClear {
    0% { background-color: #fff; }
    50% { background-color: #ff6b6b; }
    100% { background-color: transparent; }
}

.line-clear {
    animation: lineClear 0.3s ease-in-out;
}

/* Touch feedback animation */
@keyframes touchFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.touch-feedback {
    animation: touchFeedback 0.1s ease-out;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.loading-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 10px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#startCanvas {
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto 20px auto;
}

.start-title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin: 0 0 30px 0;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.pop-decoration-start {
    position: absolute;
    top: -30px;
    right: -40px;
    width: 50px;
    height: 50px;
    background-image: url('images/pop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 3s ease-in-out infinite;
}

.start-instructions {
    margin: 30px 0;
}

.start-instructions h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.instruction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instruction-item .key {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.instruction-item .action {
    color: #fff;
    font-size: 0.9rem;
}

.start-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff5252, #d32f2f);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes titleGlow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.5); }
}

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

/* Hide start screen when game starts */
.start-screen.hidden {
    display: none;
}

/* Space Prompt */
.space-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.space-prompt.show {
    display: flex;
}

.prompt-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prompt-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.prompt-content p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

.space-key {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin: 0 5px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mute Control */
.mute-control {
    text-align: center;
    margin-top: 15px;
}

.mute-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mute-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #357abd, #4a90e2);
}

.mute-btn:active {
    transform: translateY(0);
}

.mute-btn.muted {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.mute-btn.muted:hover {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
}

.mute-icon {
    font-size: 1.1rem;
}

.mute-text {
    font-weight: 500;
}

/* Force hide title and mute on mobile */
@media (max-width: 768px) {
    .game-header,
    .game-header .title-container,
    .game-header .title-container .game-title-image,
    .title-container,
    .game-title-image,
    .mute-control,
    .mute-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .game-header,
    .game-header .title-container,
    .game-header .title-container .game-title-image,
    .title-container,
    .game-title-image,
    .mute-control,
    .mute-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
}
