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

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    background: #000;
    user-select: none;
}

.title-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 50%, #000000 100%);
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.title-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.title-screen.exiting {
    animation: exitTitleScreen 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes exitTitleScreen {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(15deg) translateY(-100px);
        filter: blur(20px);
        visibility: hidden;
    }
}

/* Gamemode Selection Screen */
.gamemode-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 50%, #000000 100%);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
}

.gamemode-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: enterGamemodeScreen 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.gamemode-screen.exiting {
    animation: exitGamemodeScreen 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes exitGamemodeScreen {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(-5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg) translateX(100px);
        filter: blur(20px);
        visibility: hidden;
    }
}

@keyframes enterGamemodeScreen {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg) translateY(100px);
        filter: blur(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(2deg) translateY(-10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
        filter: blur(0px);
    }
}

.gamemode-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.gamemode-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        6px 6px 0px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(157, 0, 255, 0.3);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    position: relative;
    animation: gamemodeTitlePulse 2s ease-in-out infinite;
}

@keyframes gamemodeTitlePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

.gamemode-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.gamemode-button-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.gamemode-button-wrapper .gamemode-button {
    flex: 1;
}

.gamemode-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    width: 100%;
}

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

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

.gamemode-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 6px 0 #ffaa00,
        0 15px 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(2px) scale(1.03);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.gamemode-button:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Game Selection Screen */
.game-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 50%, #000000 100%);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 200;
}

.game-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: enterGameScreen 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.game-screen.exiting {
    animation: exitGameScreen 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes exitGameScreen {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(15deg) translateY(100px);
        filter: blur(20px);
        visibility: hidden;
    }
}

@keyframes enterGameScreen {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(10deg) translateX(-100px);
        filter: blur(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-2deg) translateX(10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateX(0);
        filter: blur(0px);
    }
}

.game-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        6px 6px 0px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(157, 0, 255, 0.3);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    position: relative;
    animation: gamemodeTitlePulse 2s ease-in-out infinite;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.game-button-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.game-button-wrapper .game-button {
    flex: 1;
}

.info-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 3px solid #ff6b00;
    border-radius: 50%;
    color: #ffd700;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 4px 0 #cc5500,
        0 6px 10px rgba(255, 107, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

.info-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 3px 0 #ffaa00,
        0 8px 15px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(1px) scale(1.1);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6);
}

.info-button:active {
    transform: translateY(3px) scale(0.95);
    box-shadow: 
        0 1px 0 #cc5500,
        0 3px 8px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.game-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    width: 100%;
}

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

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

.game-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 6px 0 #ffaa00,
        0 15px 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(2px) scale(1.03);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.game-button:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Select One Screen */
.select-one-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 50%, #000000 100%);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
}

.select-one-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: enterSelectOneScreen 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes enterSelectOneScreen {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg) translateY(-100px);
        filter: blur(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(2deg) translateY(10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
        filter: blur(0px);
    }
}

.select-one-screen.exiting {
    animation: exitSelectOneScreen 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes exitSelectOneScreen {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(-5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg) translateX(-100px);
        filter: blur(20px);
        visibility: hidden;
    }
}

.select-one-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.select-one-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        6px 6px 0px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(157, 0, 255, 0.3);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    position: relative;
    animation: gamemodeTitlePulse 2s ease-in-out infinite;
}

.select-one-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.select-one-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    width: 100%;
}

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

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

.select-one-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 6px 0 #ffaa00,
        0 15px 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(2px) scale(1.03);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.select-one-button:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Lobby Screen */
.lobby-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 50%, #000000 100%);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 400;
}

.lobby-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: enterLobbyScreen 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes enterLobbyScreen {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(10deg);
        filter: blur(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-2deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

.lobby-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.lobby-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        6px 6px 0px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(157, 0, 255, 0.3);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    position: relative;
    animation: gamemodeTitlePulse 2s ease-in-out infinite;
}

.lobby-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    min-height: 50px;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 107, 0, 0.4);
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-transform: uppercase;
}

.player-you {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(0, 255, 200, 0.9);
    text-shadow: 
        0 0 5px rgba(0, 255, 200, 0.6),
        0 0 10px rgba(0, 255, 200, 0.4);
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 0.05em;
}

.player-name:first-child .player-you {
    color: rgba(255, 215, 0, 0.9);
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.6),
        0 0 10px rgba(255, 107, 0, 0.4);
}

.lobby-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.lobby-code-label {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 215, 0, 0.8);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 107, 0, 0.4);
}

.lobby-code {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #ffd700;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 107, 0, 0.6),
        0 0 60px rgba(157, 0, 255, 0.4);
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    background: linear-gradient(145deg, rgba(26, 0, 51, 0.8) 0%, rgba(51, 0, 102, 0.8) 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    padding: 20px 40px;
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 30px rgba(255, 107, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    animation: codePulse 2s ease-in-out infinite;
}

@keyframes codePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 0 #cc5500,
            0 12px 30px rgba(255, 107, 0, 0.5),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 8px 0 #ffaa00,
            0 15px 40px rgba(255, 107, 0, 0.7),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

.lobby-info {
    margin-top: 20px;
}

.lobby-status {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(0, 255, 200, 0.8);
    text-shadow: 
        0 0 5px rgba(0, 255, 200, 0.6),
        0 0 10px rgba(0, 255, 200, 0.4);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    animation: subtitleGlow 3s ease-in-out infinite;
}

.begin-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 60px;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    margin-top: 20px;
}

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

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

.begin-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 6px 0 #ffaa00,
        0 15px 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(2px) scale(1.05);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.begin-button:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Join Modal */
.join-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.join-modal.active {
    opacity: 1;
    visibility: visible;
}

.join-modal-content {
    background: linear-gradient(145deg, #1a0033 0%, #330066 100%);
    border: 4px solid #ff6b00;
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 8px 0 #cc5500,
        0 20px 40px rgba(255, 107, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.join-modal.active .join-modal-content {
    transform: scale(1);
}

.join-modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ff6b00;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 40px rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 30px;
}

.join-input-container {
    margin-bottom: 30px;
}

.join-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 15px;
}

.join-input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-align: center;
    color: #ffd700;
    background: linear-gradient(145deg, rgba(26, 0, 51, 0.8) 0%, rgba(51, 0, 102, 0.8) 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.join-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 
        0 6px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.join-input::placeholder {
    color: rgba(255, 215, 0, 0.4);
}

.join-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.join-submit-button,
.join-cancel-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
}

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

.join-submit-button:hover::before,
.join-cancel-button:hover::before {
    left: 100%;
}

.join-submit-button:hover,
.join-cancel-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 4px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(2px) scale(1.05);
}

.join-submit-button:active,
.join-cancel-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3);
}

.join-error {
    color: #ff6b00;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    min-height: 25px;
    display: none;
    text-shadow: 
        0 0 10px rgba(255, 107, 0, 0.6),
        0 0 20px rgba(255, 107, 0, 0.4);
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-modal-content {
    background: linear-gradient(145deg, #1a0033 0%, #330066 100%);
    border: 4px solid #ff6b00;
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 
        0 8px 0 #cc5500,
        0 20px 40px rgba(255, 107, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-modal.active .info-modal-content {
    transform: scale(1);
}

.info-modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ff6b00;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 40px rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 30px;
}

.info-modal-text {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.info-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.info-close-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
}

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

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

.info-close-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 4px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(2px) scale(1.05);
}

.info-close-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Stats Modal */
.stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.stats-modal.active {
    opacity: 1;
    visibility: visible;
}

.stats-modal-content {
    background: linear-gradient(145deg, #1a0033 0%, #330066 100%);
    border: 4px solid #ff6b00;
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 8px 0 #cc5500,
        0 20px 40px rgba(255, 107, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stats-modal.active .stats-modal-content {
    transform: scale(1);
}

.stats-modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ff6b00;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 40px rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 30px;
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(145deg, rgba(26, 0, 51, 0.6) 0%, rgba(51, 0, 102, 0.6) 100%);
    border: 2px solid #ff6b00;
    border-radius: 10px;
    padding: 15px;
}

.stats-game-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #ffd700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 10px;
}

.stats-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    text-align: left;
    padding-left: 20px;
}

.stats-value span {
    color: #ffd700;
    font-weight: 900;
}

.stats-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stats-close-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
}

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

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

.stats-close-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 4px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(2px) scale(1.05);
}

.stats-close-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Animated particles background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 15% 25%, rgba(255, 0, 150, 0.4), transparent),
        radial-gradient(2px 2px at 65% 75%, rgba(0, 255, 200, 0.4), transparent),
        radial-gradient(2px 2px at 45% 45%, rgba(150, 0, 255, 0.4), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 100, 0, 0.4), transparent),
        radial-gradient(3px 3px at 25% 85%, rgba(0, 200, 255, 0.4), transparent),
        radial-gradient(2px 2px at 75% 35%, rgba(255, 0, 100, 0.4), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(100, 255, 0, 0.4), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(200, 0, 255, 0.4), transparent);
    background-size: 200% 200%;
    animation: particleMove 25s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes particleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 20% 90%, 70% 30%, 30% 70%, 90% 60%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%, 20% 90%, 80% 10%, 30% 70%, 70% 30%, 10% 40%;
    }
}

/* Grid overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 150, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 150, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* Main content container */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Title decorations */
.title-decoration {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.top-decoration {
    margin-bottom: -20px;
}

.bottom-decoration {
    margin-top: -20px;
}

.dice-icon {
    font-size: 2.5rem;
    animation: diceRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 150, 0.8));
}

@keyframes diceRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

.decorative-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0096, #00ffc8, #ff0096, transparent);
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.6);
    animation: lineFlow 3s ease-in-out infinite;
}

@keyframes lineFlow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

/* Main title - Gaming/Arcade Style */
.title {
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        8px 8px 0px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(255, 107, 0, 0.3),
        0 0 80px rgba(157, 0, 255, 0.2);
    animation: titleShake 0.2s ease-in-out infinite;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08em;
    line-height: 1.1;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.title-letter {
    display: inline-block;
    transform: rotateX(0deg);
    animation: letter3D 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        8px 8px 0px rgba(0, 0, 0, 0.6);
}

.title-letter:nth-child(1) { --i: 0; }
.title-letter:nth-child(2) { --i: 1; }
.title-letter:nth-child(3) { --i: 2; }
.title-letter:nth-child(5) { --i: 3; }
.title-letter:nth-child(6) { --i: 4; }
.title-letter:nth-child(7) { --i: 5; }
.title-letter:nth-child(8) { --i: 6; }
.title-letter:nth-child(9) { --i: 7; }
.title-letter:nth-child(10) { --i: 8; }

.title-spacer {
    width: 0.3em;
    display: inline-block;
}

@keyframes letter3D {
    0%, 100% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0);
    }
    25% {
        transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
    }
    50% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0);
    }
    75% {
        transform: rotateX(-5deg) rotateY(5deg) translateZ(10px);
    }
}

@keyframes titleShake {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-0.3px) translateY(0.3px);
    }
    50% {
        transform: translateX(0.3px) translateY(-0.3px);
    }
    75% {
        transform: translateX(-0.3px) translateY(-0.3px);
    }
}

/* Subtitle */
.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(0, 255, 200, 0.8);
    text-shadow: 
        0 0 5px rgba(0, 255, 200, 0.6),
        0 0 10px rgba(0, 255, 200, 0.4);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    margin-top: 10px;
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 
            0 0 5px rgba(0, 255, 200, 0.6),
            0 0 10px rgba(0, 255, 200, 0.4);
    }
    50% {
        opacity: 1;
        text-shadow: 
            0 0 8px rgba(0, 255, 200, 0.8),
            0 0 15px rgba(0, 255, 200, 0.6),
            0 0 20px rgba(0, 255, 200, 0.4);
    }
}

.subtitle-line {
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffc8, #ff0096, #00ffc8, transparent);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
    animation: lineGlow 2.5s ease-in-out infinite;
    margin: 10px 0;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.6;
        width: 400px;
    }
    50% {
        opacity: 1;
        width: 500px;
    }
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.stats-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Gaming/Arcade button style */
.sci-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 60px;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 8px 0 #cc5500,
        0 12px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
}

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

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

.sci-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 6px 0 #ffaa00,
        0 15px 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(2px) scale(1.05);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.sci-button:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

.button-text {
    position: relative;
    z-index: 2;
    display: block;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}

.sci-button:hover .button-glow {
    width: 400px;
    height: 400px;
}

/* Scan lines effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 200, 0.03) 2px,
        rgba(0, 255, 200, 0.03) 4px
    );
    pointer-events: none;
    animation: scanMove 8s linear infinite;
    z-index: 5;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

/* Corner decorations */
.corner-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 0, 150, 0.5);
    pointer-events: none;
    z-index: 8;
}

.corner-decoration.top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
    box-shadow: 
        -5px -5px 10px rgba(255, 0, 150, 0.3),
        inset -5px -5px 10px rgba(255, 0, 150, 0.1);
    animation: cornerPulse 3s ease-in-out infinite;
}

.corner-decoration.top-right {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
    box-shadow: 
        5px -5px 10px rgba(0, 255, 200, 0.3),
        inset 5px -5px 10px rgba(0, 255, 200, 0.1);
    animation: cornerPulse 3s ease-in-out infinite 0.5s;
}

.corner-decoration.bottom-left {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
    box-shadow: 
        -5px 5px 10px rgba(0, 255, 200, 0.3),
        inset -5px 5px 10px rgba(0, 255, 200, 0.1);
    animation: cornerPulse 3s ease-in-out infinite 1s;
}

.corner-decoration.bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
    box-shadow: 
        5px 5px 10px rgba(255, 0, 150, 0.3),
        inset 5px 5px 10px rgba(255, 0, 150, 0.1);
    animation: cornerPulse 3s ease-in-out infinite 1.5s;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 4rem;
        letter-spacing: 0.1em;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
    
    .dice-icon {
        font-size: 1.8rem;
    }
    
    .subtitle-line {
        width: 300px;
    }
    
    .corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .corner-decoration.top-left,
    .corner-decoration.top-right {
        top: 20px;
    }
    
    .corner-decoration.top-left,
    .corner-decoration.bottom-left {
        left: 20px;
    }
    
    .corner-decoration.top-right,
    .corner-decoration.bottom-right {
        right: 20px;
    }
    
    .corner-decoration.bottom-left,
    .corner-decoration.bottom-right {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .title-letter {
        font-size: 0.8em;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .sci-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.error-modal.active {
    opacity: 1;
    visibility: visible;
}

.error-modal-content {
    background: linear-gradient(145deg, #1a0033 0%, #330066 100%);
    border: 4px solid #ff6b00;
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 8px 0 #cc5500,
        0 20px 40px rgba(255, 107, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-modal.active .error-modal-content {
    transform: scale(1);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ff6b00;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 40px rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    margin-bottom: 15px;
}

.error-submessage {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
}

.error-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
}

.error-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 4px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(2px) scale(1.05);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
}

.error-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Game Play Screen */
.game-play-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 500;
}

.game-play-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: enterGamePlayScreen 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes enterGamePlayScreen {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
        filter: blur(30px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(90deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* RNG Game Container */
.rng-game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.rng-game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hide rarest-roll in iframe */
.rng-game-container iframe {
    pointer-events: auto;
}

/* Score Display (Top Left) */
.score-display {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1002;
    min-width: 150px;
}

.score-title {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin-bottom: 8px;
    text-align: left;
}

.score-players {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.score-player-name {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

.score-player-name::after {
    content: ":";
}

.score-value {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

/* Current Roll Display (Below Score) */
.current-roll-display {
    position: fixed;
    top: 120px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1002;
    min-width: 150px;
}

.current-roll-title {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin-bottom: 8px;
    text-align: left;
}

.current-roll-players {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-roll-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.current-roll-player-name {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

.current-roll-value {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

/* RNG Fade-in Text */
.rng-fade-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: #000000;
    z-index: 10000;
    opacity: 1;
    pointer-events: none;
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: rngFadeOut 2s ease-out forwards;
}

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

/* Turn Status Display (Right Side) */
.turn-status-display {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1002;
    text-align: center;
    min-width: 200px;
    display: none;
}

.turn-status-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.turn-timer {
    font-size: 3rem;
    font-weight: 900;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

/* Round Counter (Bottom Right) */
.round-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 2rem;
    font-weight: 900;
    color: #000000;
    z-index: 1002;
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Opponent Display (Top Right) */
.opponent-display {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1002;
}

.opponent-vs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.opponent-name {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

.vs-text {
    font-size: 14px;
    font-weight: normal;
    color: white;
}

/* Overlay to hide rarest-roll in iframe */
.rarest-roll-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    height: 50px;
    background-color: #ffffff;
    z-index: 1000;
    pointer-events: none;
    border-radius: 5px;
}

/* Round Winner Display */
.round-winner-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    text-align: center;
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
    max-width: 400px;
}

.round-winner-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.continue-button {
    position: relative;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(128, 128, 128, 0.3);
    border: 2px solid rgba(128, 128, 128, 0.6);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.continue-button:hover {
    background: rgba(128, 128, 128, 0.4);
    border-color: rgba(128, 128, 128, 0.8);
    transform: scale(1.05);
}

.continue-button:active {
    transform: scale(0.95);
}

.continue-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    transform: none;
}

.continue-button:disabled:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    transform: none;
}

/* Round actions container */
.round-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

/* Rematch and Return to Lobby buttons */
.rematch-button,
.return-lobby-button {
    position: relative;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(128, 128, 128, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    min-width: 200px;
    overflow: hidden;
}

.rematch-button:hover:not(:disabled),
.return-lobby-button:hover:not(:disabled) {
    background: rgba(128, 128, 128, 0.4);
    border-color: rgba(128, 128, 128, 0.8);
    transform: scale(1.05);
}

.rematch-button:active:not(:disabled),
.return-lobby-button:active:not(:disabled) {
    transform: scale(0.95);
}

.rematch-button:disabled,
.return-lobby-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    transform: none;
}

.rematch-button:disabled:hover,
.return-lobby-button:disabled:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    transform: none;
}

.sci-button:disabled,
.gamemode-button:disabled,
.game-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sci-button:disabled:hover,
.gamemode-button:disabled:hover,
.game-button:disabled:hover {
    background: transparent;
    box-shadow: none;
}

/* Locked gamemode button */
.gamemode-button.gamemode-locked {
    position: relative;
    opacity: 0.7;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.3) 0%, rgba(40, 40, 40, 0.5) 100%);
    border-color: rgba(100, 100, 100, 0.5);
}

.gamemode-button.gamemode-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    border-radius: inherit;
    pointer-events: none;
}

.gamemode-button.gamemode-locked .lock-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(255, 165, 0, 0.5));
}

.gamemode-button.gamemode-locked .button-text {
    opacity: 0.8;
}

.gamemode-button.gamemode-locked:hover {
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.4) 0%, rgba(60, 60, 60, 0.6) 100%);
    border-color: rgba(150, 150, 150, 0.6);
    cursor: pointer;
}

.gamemode-button.gamemode-locked .button-glow {
    display: none;
}

/* Hide lock icon when unlocked */
.gamemode-button:not(.gamemode-locked) .lock-icon {
    display: none;
}

/* Survival Roll Display (Double Luck Mode) */
.survival-roll-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2500;
    text-align: center;
    background: linear-gradient(145deg, rgba(25, 0, 50, 0.95) 0%, rgba(50, 0, 100, 0.95) 50%, rgba(25, 0, 50, 0.95) 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid #ff6b00;
    box-shadow: 
        0 0 30px rgba(255, 107, 0, 0.5),
        0 0 60px rgba(255, 107, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 450px;
    animation: survivalAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.survival-header {
    margin-bottom: 20px;
}

.survival-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-shadow: 
        0 0 10px rgba(255, 107, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.5);
    animation: survivalTitlePulse 1.5s infinite ease-in-out;
}

@keyframes survivalTitlePulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 107, 0, 0.8),
            0 0 20px rgba(255, 107, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 107, 0, 1),
            0 0 40px rgba(255, 107, 0, 0.7),
            0 0 60px rgba(255, 107, 0, 0.4);
    }
}

.survival-player-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.survival-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
}

.survival-odds-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.survival-odds-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
}

.survival-odds-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.4);
    animation: oddsValuePulse 0.8s infinite ease-in-out;
}

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

.survival-round-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.survival-round-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.survival-round-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b00;
}

.survival-result-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    animation: resultAppear 0.5s ease-out forwards;
}

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

.survival-result-text {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Arial Black', 'Impact', sans-serif;
}

.survival-result-container.survived {
    background: linear-gradient(145deg, rgba(0, 100, 0, 0.6) 0%, rgba(0, 150, 0, 0.6) 100%);
    border: 2px solid #00ff00;
}

.survival-result-container.survived .survival-result-text {
    color: #00ff00;
    text-shadow: 
        0 0 15px rgba(0, 255, 0, 0.8),
        0 0 30px rgba(0, 255, 0, 0.5);
}

.survival-result-container.eliminated {
    background: linear-gradient(145deg, rgba(100, 0, 0, 0.6) 0%, rgba(150, 0, 0, 0.6) 100%);
    border: 2px solid #ff0000;
}

.survival-result-container.eliminated .survival-result-text {
    color: #ff0000;
    text-shadow: 
        0 0 15px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.5);
}

/* Survival Roll Button */
.survival-roll-button-container {
    margin-top: 20px;
    margin-bottom: 15px;
}

.survival-roll-button {
    position: relative;
    background: linear-gradient(145deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid #ff6b00;
    border-radius: 15px;
    color: #ffd700;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Impact', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 0 #cc5500,
        0 10px 20px rgba(255, 107, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6);
    animation: survivalButtonPulse 1.5s infinite ease-in-out;
}

@keyframes survivalButtonPulse {
    0%, 100% {
        box-shadow: 
            0 6px 0 #cc5500,
            0 10px 20px rgba(255, 107, 0, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 0 #cc5500,
            0 15px 30px rgba(255, 107, 0, 0.6),
            0 0 40px rgba(255, 107, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
}

.survival-roll-button:hover {
    color: #fff;
    border-color: #ffd700;
    background: linear-gradient(145deg, #330066 0%, #4d0099 50%, #330066 100%);
    box-shadow: 
        0 4px 0 #ffaa00,
        0 12px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(2px) scale(1.05);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 107, 0, 0.6);
    animation: none;
}

.survival-roll-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #cc5500,
        0 5px 15px rgba(255, 107, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

.survival-roll-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

.survival-waiting-message {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-style: italic;
}

/* Hide score display in Double Luck mode */
.game-play-screen.doubleluck-mode .score-display {
    display: none !important;
}

/* Hide score display in Tic Tac Toe mode */
.game-play-screen.tictactoe-mode .score-display {
    display: none !important;
}

/* Tic Tac Toe Display */
.tic-tac-toe-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1002;
    min-width: 180px;
}

.tic-tac-toe-header {
    text-align: center;
    margin-bottom: 10px;
}

.tic-tac-toe-title {
    color: white;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    margin-bottom: 8px;
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 2px;
    margin: 0 auto;
}

.tic-tac-toe-cell {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
    user-select: none;
}

.tic-tac-toe-cell.selectable {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.tic-tac-toe-cell.selectable:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.tic-tac-toe-cell.x {
    color: white;
}

.tic-tac-toe-cell.o {
    color: white;
}

.tic-tac-toe-info {
    margin-top: 10px;
    text-align: center;
}

.tic-tac-toe-symbols {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tic-tac-toe-symbol-label {
    color: white;
    font-size: 14px;
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tic-tac-toe-symbol {
    color: white;
    font-weight: normal;
    font-size: 14px;
}