* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    overflow: hidden;
    background-color: #000;
    color: #0f0;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#gameScene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#gameInfo {
    position: fixed; 
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 200;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    max-width: 250px;
    overflow: hidden;
}

#gameInfo.collapsed {
    max-width: 250px; 
    max-height: 40px;
    overflow: hidden;
}

#gameInfo.expanded {
    max-width: 300px;
    max-height: 400px;
    overflow: auto;
}

#gameInfo h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ff00ff;
    animation: colorShift 8s infinite;
    transform: skew(-5deg);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-info-content {
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    display: none;
}

#gameInfo.expanded .game-info-content {
    display: block;
}

#gameInfo.collapsed .game-info-content {
    display: none;
}

#toggleInstructions {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    cursor: pointer;
    display: block;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

#playerList {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #0f0;
    min-width: 200px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(5px);
}

#playerList::before {
    content: "OTHER ENTITIES IN THIS DIMENSION:";
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f0f;
    text-shadow: 0 0 5px #f0f;
    letter-spacing: 1px;
    border-bottom: 1px solid #f0f;
    padding-bottom: 5px;
}

.player-item {
    margin: 5px 0;
    color: #ff00ff;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(255, 0, 255, 0.1);
}

.player-item:hover {
    transform: scale(1.1) rotate(2deg);
    background-color: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

#connectionStatus {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

#statusIndicator {
    display: inline-block;
    padding: 0 5px;
    border-radius: 5px;
    animation: blink 1.5s infinite;
    font-weight: bold;
    letter-spacing: 1px;
}

#statusIndicator.connected {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

#statusIndicator.disconnected {
    color: #f00;
    text-shadow: 0 0 10px #f00;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

#loadingScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: radial-gradient(circle at center, #200020, #000000);
}

.loader {
    width: 80px;
    height: 80px;
    border: 8px solid #0f0;
    border-radius: 50%;
    border-top: 8px solid #f0f;
    animation: spin 1.5s linear infinite, distort 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(255, 0, 255, 0.5);
}

.loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,255,0.2), transparent);
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite alternate;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    background: radial-gradient(circle at center, rgba(32, 0, 32, 0.8), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #0f0;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px #0f0, inset 0 0 15px rgba(0, 255, 0, 0.3);
    animation: float 4s ease-in-out infinite;
    background: linear-gradient(135deg, #111, #1a0a1a);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #f0f;
    transform: skew(-5deg);
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px #f0f;
}

#playerNameInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #222;
    border: 2px solid #0f0;
    color: #0f0;
    font-size: 1rem;
    outline: none;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
    transition: all 0.3s;
}

#playerNameInput:focus {
    border-color: #f0f;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), inset 0 0 10px rgba(255, 0, 255, 0.3);
}

#enterButton {
    padding: 10px 20px;
    background-color: #0f0;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#enterButton::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle, transparent, rgba(0, 255, 0, 0.2), transparent);
    animation: pulse 2s infinite;
    pointer-events: none;
}

#enterButton:hover {
    background-color: #f0f;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.hidden {
    display: none !important;
}

#debugPanel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #0f0;
    max-width: 300px;
    max-height: 200px;
    overflow: auto;
    font-size: 0.8rem;
    z-index: 20;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

#debugPanel h3 {
    color: #f0f;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #0f0;
    padding-bottom: 5px;
}

#debugInfo {
    color: #0f0;
    line-height: 1.4;
}

.warped-text {
    display: inline-block;
    animation: warp 2s ease-in-out infinite;
    color: #ff00aa;
    text-shadow: 0 0 5px #ff00aa;
    font-weight: bold;
}

.melting-text {
    display: inline-block;
    animation: melt 4s ease-in-out infinite;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    font-weight: bold;
}

.glitch-text {
    display: inline-block;
    animation: glitch 0.5s infinite;
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
    font-weight: bold;
    position: relative;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.glitch-text::before {
    color: #ff00ff;
    transform: translateX(-2px);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: #00ffff;
    transform: translateX(2px);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.warning-text {
    color: #ff0000;
    animation: pulse 1s infinite;
    text-shadow: 0 0 10px #ff0000;
    font-weight: bold;
    letter-spacing: 1px;
}

#dimensionStatus {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
    transform: skew(-2deg);
}

#virtualJoystick {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 0, 255, 0.3);
    border-radius: 50%;
    display: none;
    z-index: 100;
    pointer-events: none;
    border: 2px solid rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), inset 0 0 15px rgba(0, 255, 255, 0.3);
}

#joystickKnob {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 255, 255, 0.7);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

#touchControls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    pointer-events: none;
}

#jumpButton, #dimensionButton, #perspectiveButton {
    background-color: rgba(255, 255, 0, 0.5);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#dimensionButton {
    background-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

#perspectiveButton {
    background-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.player-trail {
    filter: blur(2px);
    mix-blend-mode: screen;
}

#returnInstructions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 199;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

.return-container {
    background-color: rgba(0, 20, 40, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #0f0;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 20px #0f0, inset 0 0 15px rgba(0, 255, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.return-container h2 {
    color: #f0f;
    margin-bottom: 20px;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #f0f;
}

.return-container p {
    color: #0ff;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.5;
    text-shadow: 0 0 5px #0ff;
}

.return-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0f0;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.return-button:hover {
    transform: scale(1.1);
    background-color: #f0f;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

#volume-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    border: 1px solid #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    backdrop-filter: blur(5px);
}

#volume-control:hover {
    opacity: 0.9;
}

.volume-slider-container {
    margin-right: 10px;
    width: 100px;
}

#volume-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #333;
    outline: none;
    border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0f0;
    cursor: pointer;
    box-shadow: 0 0 5px #0f0;
    transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #0f0;
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0f0;
    cursor: pointer;
    box-shadow: 0 0 5px #0f0;
    transition: all 0.2s ease;
    border: none;
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #0f0;
}

.mute-button {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 50, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid #0f0;
}

.mute-button:hover {
    background: rgba(0, 80, 0, 0.7);
    transform: scale(1.1);
}

#volume-icon {
    font-size: 16px;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

.focus-text {
    color: #8040ff;
    text-shadow: 0 0 8px #8040ff, 0 0 12px #40e0ff;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes focusPulse {
    0% { text-shadow: 0 0 8px #8040ff, 0 0 12px #40e0ff; }
    50% { text-shadow: 0 0 15px #8040ff, 0 0 20px #40e0ff; }
    100% { text-shadow: 0 0 8px #8040ff, 0 0 12px #40e0ff; }
}

#focusButton {
    background-color: rgba(128, 64, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(128, 64, 255, 0.5);
    animation: pulse 2s infinite;
}

.neon-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    animation: colorNeonPulse 4s infinite;
}

.wireframe-text {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
    font-weight: normal;
    letter-spacing: 2px;
}

.glitch-style {
    animation: glitchText 0.5s infinite;
    position: relative;
}

.void-text {
    color: #550055;
    text-shadow: 0 0 10px #550055;
    letter-spacing: 3px;
}

.quantum-text {
    color: #00aaff;
    text-shadow: 0 0 10px #00aaff;
    animation: quantumShift 2s infinite;
}

@keyframes colorNeonPulse {
    0%, 100% { color: #00ffff; text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    33% { color: #ff00ff; text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
    66% { color: #ffff00; text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
}

@keyframes glitchText {
    0% { transform: skew(0deg); }
    10% { transform: skew(2deg); }
    20% { transform: skew(-2deg); text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
    30% { transform: skew(0deg); }
    40% { transform: skew(-1deg); text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    50% { transform: skew(1deg); }
    60% { transform: skew(0deg); text-shadow: none; }
    100% { transform: skew(0deg); }
}

@keyframes quantumShift {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-2px); }
}

@keyframes tardisFlash {
    0%, 90%, 100% { opacity: 1; text-shadow: 0 0 10px #1d4e9b, 0 0 20px #1d4e9b; }
    95% { opacity: 0.7; text-shadow: 0 0 15px #ffffff, 0 0 25px #ffffff; }
}

@keyframes improbabilityShift {
    0% { color: #ffd700; text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
    25% { color: #ff00ff; text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
    50% { color: #00ffff; text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    75% { color: #00ff00; text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    100% { color: #ffd700; text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
}

#creditLine {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', monospace;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 3px #0f0;
}

#creditLine a {
    color: rgba(255, 0, 255, 0.9);
    text-decoration: none;
    text-shadow: 0 0 4px #f0f;
    transition: all 0.3s ease;
}

#creditLine a:hover {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
    transform: scale(1.1);
}

.start-screen {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.start-instructions {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.start-instructions h3 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 0 0 10px #00ffff;
}

.start-instructions h4 {
    color: #ff00ff;
    margin: 12px 0 8px 0;
    font-size: 1rem;
    text-shadow: 0 0 5px #ff00ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instruction-section {
    margin-bottom: 15px;
    padding: 8px;
    border-left: 3px solid rgba(0, 255, 0, 0.5);
}

.instruction-section ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.instruction-section li {
    margin: 5px 0;
    color: #0f0;
    line-height: 1.4;
}

.key-highlight {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffff00;
    font-weight: bold;
    text-shadow: 0 0 5px #ffff00;
    font-family: 'Courier New', monospace;
}

.cursor-control {
    border-left-color: #ff0000;
    background: rgba(50, 0, 0, 0.3);
    border-radius: 5px;
}

.cursor-warning {
    color: #ff0000 !important;
    text-shadow: 0 0 8px #ff0000 !important;
    animation: warningPulse 2s infinite;
}

.cursor-instructions {
    margin: 10px 0;
}

.cursor-instructions p {
    margin: 6px 0;
    color: #ffaa00;
    font-size: 0.95rem;
}

.cursor-instructions strong {
    color: #ff0000;
    text-shadow: 0 0 3px #ff0000;
}

.escape-highlight {
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.escape-key {
    background: rgba(255, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-color: #ff0000 !important;
    text-shadow: 0 0 5px #ff0000 !important;
    font-size: 1.1em;
    padding: 3px 8px !important;
}

.reality-warning {
    color: #ff8800;
    text-align: center;
    font-style: italic;
    text-shadow: 0 0 5px #ff8800;
    font-size: 0.9rem;
}

.name-input-section {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 255, 0, 0.3);
}

.name-input-section h4 {
    color: #f0f;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #f0f;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes warningPulse {
    0%, 100% { 
        text-shadow: 0 0 8px #ff0000; 
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px #ff0000, 0 0 20px #ff0000; 
        transform: scale(1.05);
    }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

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

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

@keyframes glitchScanlines {
    0% { background-size: 100% 4px; opacity: 0.2; }
    10% { background-size: 100% 3px; opacity: 0.3; }
    20% { background-size: 100% 5px; opacity: 0.2; }
    30% { background-size: 100% 2px; opacity: 0.4; }
    40% { background-size: 100% 4px; opacity: 0.2; }
    50% { background-size: 100% 3px; opacity: 0.3; }
    100% { background-size: 100% 4px; opacity: 0.2; }
}

@keyframes quantumFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(0, -100px) scale(0); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#styleStatus {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
    transform: skew(-2deg);
}

#styleButton {
    background-color: rgba(255, 0, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    #gameInfo {
        padding: 6px;
        max-width: 200px;
        font-size: 0.8rem;
    }
    
    #gameInfo h1 {
        font-size: 1rem;
    }
    
    #playerList {
        padding: 10px;
        min-width: 150px;
        font-size: 0.9rem;
    }
    
    #connectionStatus {
        padding: 5px;
        font-size: 0.8rem;
    }
    
    #jumpButton, #dimensionButton, #perspectiveButton {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }
    
    #creditLine {
        font-size: 10px;
        bottom: 5px;
        left: 5px;
    }
    
    .start-screen {
        width: 98%;
        max-height: 95vh;
        font-size: 0.9rem;
    }
    
    .start-instructions {
        padding: 12px;
    }
    
    .start-instructions h3 {
        font-size: 1.1rem;
    }
    
    .start-instructions h4 {
        font-size: 0.9rem;
    }
    
    .key-highlight {
        padding: 1px 4px;
        font-size: 0.85rem;
    }
}