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

body {
    background-color: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

/* Authentication Styles - EverQuest Kunark Theme */
.auth-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(circle at 30% 20%, rgba(58, 142, 142, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(46, 27, 19, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #02030A 0%, #0A1A2E 50%, #1B2A3A 100%);
    background-attachment: fixed;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(58, 142, 142, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 27, 19, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.auth-box {
    background: linear-gradient(145deg, #1B2330 0%, #0F1419 50%, #1B2330 100%);
    border: 4px solid #000;
    box-shadow: 
        0 0 0 2px #A88B4A,
        0 0 0 6px #000,
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 -2px 4px rgba(168, 139, 74, 0.2);
    padding: 40px;
    width: 450px;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #0F1419, #1B2330, #0F1419);
    z-index: -1;
    border-radius: 2px;
}

.auth-box h1 {
    color: #E4CFA3;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 #000,
        -1px -1px 0 #000,
        0 0 10px rgba(228, 207, 163, 0.4);
    letter-spacing: 2px;
}

.auth-box h2 {
    color: #E4CFA3;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
    text-shadow: 
        2px 2px 0 #000,
        -1px -1px 0 #000,
        0 0 8px rgba(228, 207, 163, 0.4);
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form input,
.auth-form select {
    padding: 14px 16px;
    background: linear-gradient(145deg, #394654 0%, #2A3441 100%);
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #A88B4A,
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(168, 139, 74, 0.1);
    color: #C6D4E6;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #3A8E8E;
    box-shadow: 
        0 0 0 1px #3A8E8E,
        0 0 8px rgba(58, 142, 142, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-form input::placeholder {
    color: #8A9BA8;
    text-shadow: 1px 1px 0 #000;
}

.auth-form button {
    padding: 14px 20px;
    background: linear-gradient(145deg, #A88B4A 0%, #8B6F3A 50%, #A88B4A 100%);
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #C1A35E,
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    color: #E4CFA3;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    transition: all 0.2s ease;
}

.auth-form button:hover {
    background: linear-gradient(145deg, #C1A35E 0%, #A88B4A 50%, #C1A35E 100%);
    box-shadow: 
        0 0 0 1px #E4CFA3,
        0 0 12px rgba(228, 207, 163, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.auth-form button:disabled {
    background: linear-gradient(145deg, #5A5A5A 0%, #4A4A4A 50%, #5A5A5A 100%);
    color: #8A8A8A;
    cursor: not-allowed;
    box-shadow: 
        0 0 0 1px #6A6A6A,
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#createNewCharacter {
    margin: 20px auto 0 auto;
    display: block;
}

.auth-form p {
    color: #C6D4E6;
    text-align: center;
    margin-top: 20px;
    text-shadow: 1px 1px 0 #000;
}

.auth-form a {
    color: #3A8E8E;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    transition: all 0.2s ease;
}

.auth-form a:hover {
    color: #E4CFA3;
    text-shadow: 
        1px 1px 0 #000,
        0 0 8px rgba(58, 142, 142, 0.5);
}

.character-item {
    background: linear-gradient(145deg, #394654 0%, #2A3441 100%);
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #A88B4A,
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.character-item:hover {
    background: linear-gradient(145deg, #3A8E8E 0%, #2A6B6B 100%);
    box-shadow: 
        0 0 0 1px #E4CFA3,
        0 0 12px rgba(58, 142, 142, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.character-item h3 {
    color: #E4CFA3;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 #000;
    font-size: 16px;
    text-align: center;
}

.character-item p {
    color: #C6D4E6;
    font-size: 12px;
    margin: 3px 0;
    text-shadow: 1px 1px 0 #000;
    text-align: center;
}

.character-item.empty-slot {
    opacity: 0.6;
    border-style: dashed;
}

.character-item.empty-slot h3 {
    color: #8A9BA8;
}

.character-item.empty-slot p {
    color: #8A9BA8;
}

.error-message {
    color: #9E3E2F;
    background: linear-gradient(145deg, rgba(158, 62, 47, 0.2) 0%, rgba(139, 43, 32, 0.1) 100%);
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #9E3E2F,
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 12px;
    margin-bottom: 18px;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
}

.success-message {
    color: #3A8E8E;
    background: linear-gradient(145deg, rgba(58, 142, 142, 0.2) 0%, rgba(42, 107, 107, 0.1) 100%);
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #3A8E8E,
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 12px;
    margin-bottom: 18px;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
}

/* Game Styles */
#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    background-color: #000;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#debug-info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #E4CFA3;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: linear-gradient(145deg, #1B2330 0%, #0F1419 50%, #1B2330 100%);
    padding: 12px;
    border: 2px solid #000;
    box-shadow: 
        0 0 0 1px #A88B4A,
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}

