* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    background-color: #000000;
    background-image: url('chaosbackground.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff00;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    text-align: center;
    max-width: 900px;
    padding: 40px;
    background: linear-gradient(180deg, #1a0033 0%, #330066 100%);
    border: 6px outset #ff00ff;
    border-radius: 0;
    box-shadow: 
        0 0 30px #ff00ff,
        0 0 60px #00ffff,
        inset 0 0 30px rgba(255, 0, 255, 0.2);
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff0080, #00ff00);
    background-size: 400% 400%;
    animation: borderGlow 6s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-container {
    margin-bottom: 60px;
    animation: floatIn 1.5s ease-out;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.title {
    font-size: 72px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 8px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff0080, #ffff00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, textGlow 2s ease-in-out infinite;
    text-shadow: 
        3px 3px 0 #ff00ff,
        -3px -3px 0 #00ffff,
        0 0 20px rgba(255, 0, 255, 0.5);
    filter: drop-shadow(0 0 10px #ff00ff);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px #ff00ff) drop-shadow(0 0 20px #00ffff);
    }
    50% { 
        filter: drop-shadow(0 0 20px #ff00ff) drop-shadow(0 0 40px #00ffff);
    }
}

.subtitle {
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: #00ffff;
    letter-spacing: 4px;
    text-shadow: 0 0 10px #00ffff, 2px 2px 0 #ff00ff;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.5; }
}

.card-types {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    gap: 20px;
}

.type-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(51,0,102,0.8) 100%);
    border: 4px outset rgba(255,255,255,0.5);
    border-radius: 0;
    padding: 30px 20px;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
}

.type-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.type-card:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 30px currentColor;
}

.type-card.schizo {
    border-color: #ff00ff;
    border-style: outset;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.type-card.schizo:hover {
    box-shadow: 0 0 40px #ff00ff;
}

.type-card.autist {
    border-color: #00ffff;
    border-style: outset;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.type-card.autist:hover {
    box-shadow: 0 0 40px #00ffff;
}

.type-card.based {
    border-color: #ffff00;
    border-style: outset;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
}

.type-card.based:hover {
    box-shadow: 0 0 40px #ffff00;
}

.type-card h3 {
    font-size: 28px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 #000;
    position: relative;
    z-index: 1;
}

.type-card.schizo h3 {
    color: #ff00ff;
}

.type-card.autist h3 {
    color: #00ffff;
}

.type-card.based h3 {
    color: #ffff00;
}

.type-card p {
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
    position: relative;
    z-index: 1;
}

.start-button {
    display: inline-block;
    margin: 40px 0;
    padding: 20px 60px;
    font-size: 32px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: #000;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff0080);
    background-size: 200% 200%;
    border: 5px outset #ffff00;
    border-radius: 0;
    text-decoration: none;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px #ff00ff,
        0 0 40px #00ffff,
        inset 0 0 20px rgba(255,255,255,0.3);
    animation: buttonPulse 2s ease-in-out infinite;
    cursor: pointer;
    text-transform: uppercase;
}

@keyframes buttonPulse {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

.start-button:hover {
    animation: buttonShake 0.5s ease infinite, buttonPulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 40px #ff00ff,
        0 0 80px #00ffff,
        inset 0 0 30px rgba(255,255,255,0.5);
    border-style: outset;
}

@keyframes buttonShake {
    0%, 100% { transform: rotate(-1deg) scale(1.05); }
    25% { transform: rotate(1deg) scale(1.05); }
    75% { transform: rotate(-1deg) scale(1.05); }
}

.info {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border: 4px inset #00ff00;
    border-radius: 0;
}

.info p {
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    margin: 10px 0;
    letter-spacing: 2px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 1px 1px 0 #000;
    animation: textFlicker 3s linear infinite;
}

/* Menu Options */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 50px auto;
    max-width: 600px;
    width: 100%;
    align-items: center;
}

.menu-btn {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(51,0,102,0.9) 100%);
    border: 4px outset #ff00ff;
    border-radius: 0;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.menu-btn.locked {
    border-color: #555555;
    opacity: 0.6;
    filter: grayscale(0.4);
}

.menu-btn.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #555555;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

.menu-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px currentColor;
    border-color: #00ffff;
}

.menu-btn:active {
    transform: scale(0.98);
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.btn-content h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
}

.btn-content p {
    width: 100%;
    text-align: center;
}

.btn-content p {
    font-size: 16px;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    opacity: 0.9;
}

.multiplayer-btn {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.multiplayer-btn:hover {
    box-shadow: 0 0 40px #ff4444;
}

.ai-btn {
    border-color: #4444ff;
    box-shadow: 0 0 15px rgba(68, 68, 255, 0.5);
}

.ai-btn:hover {
    box-shadow: 0 0 40px #4444ff;
}

.auth-btn {
    border-color: #ffff44;
    box-shadow: 0 0 15px rgba(255, 255, 68, 0.5);
}

.auth-btn:hover {
    box-shadow: 0 0 40px #ffff44;
}

.auth-btn .btn-content h3 {
    color: #ffff44;
    text-shadow: 0 0 10px #ffff44;
}

/* Auth Options */
.auth-options {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    justify-content: center;
}

.auth-btn {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(51,0,102,0.9) 100%);
    border: 4px outset #ffff44;
    border-radius: 0;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    min-width: 200px;
    text-align: center;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

.auth-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.auth-btn h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #ffff44;
    text-shadow: 0 0 10px #ffff44;
}

.auth-btn p {
    font-size: 14px;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    opacity: 0.9;
}

.signin-btn {
    border-color: #4444ff;
}

.signin-btn h3 {
    color: #4444ff;
    text-shadow: 0 0 10px #4444ff;
}

.signin-btn:hover {
    box-shadow: 0 0 40px #4444ff;
}

.signup-btn {
    border-color: #44ff44;
}

.signup-btn h3 {
    color: #44ff44;
    text-shadow: 0 0 10px #44ff44;
}

.signup-btn:hover {
    box-shadow: 0 0 40px #44ff44;
}

.wallet-btn {
    border-color: #ff6600;
}

.wallet-btn h3 {
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
}

.wallet-btn:hover {
    box-shadow: 0 0 40px #ff6600;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Retro scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 3px inset #ff00ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    border: 3px outset #ffff00;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
}
