@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.screen {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === LANDING PAGE === */
#landingPage {
    background: url('landing.jpg') no-repeat center center;
    background-size: cover;
    z-index: 20;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 50px;
}

.landing-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #ff9900;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.5);
    text-align: center;
}

.ai-selection-title {
    font-family: 'Bangers', cursive;
    font-size: 40px;
    color: #00ffff;
    text-shadow: 2px 2px 0px #000;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.ai-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ai-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 24px;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 2px 2px 0 #000;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ai-btn img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.ai-btn:hover {
    border-color: #00ffcc;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.ai-btn[data-brain="Ollama"] { background: #e67e22; border-color: #d35400; box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); }
.ai-btn[data-brain="ChatGPT"] { background: #2ecc71; border-color: #27ae60; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); }
.ai-btn[data-brain="Claude"] { background: #9b59b6; border-color: #8e44ad; box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4); }
.ai-btn[data-brain="Gemini"] { background: #3498db; border-color: #2980b9; box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4); }

.ai-btn:hover {
    transform: translateY(-10px) scale(1.1);
}

/* === LOBBY === */
#lobby {
    background: rgba(17, 17, 17, 0.95);
    flex-direction: column;
}

.lobby-header-info {
    text-align: center;
    margin-bottom: 20px;
}

#lobbyStatus {
    font-size: 30px;
    color: #f1c40f;
    margin-bottom: 5px;
}

.online-counter {
    font-size: 18px;
    color: #00ffff;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.cancel-button {
    width: 100%;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    background: #e74c3c;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    color: white;
    margin-top: 10px;
}
.cancel-button:hover { background: #c0392b; }

.team-badge {
    font-size: 24px;
    background: #444;
    padding: 5px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #666;
}

.lobby-panels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 800px;
}

.panel {
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    border: 2px solid #444;
}
.my-panel { border-color: #00ff00; }
.enemy-panel { border-color: #ff0000; }

#aiPrompt {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    height: 100px;
    resize: none;
}

#readyBtn {
    width: 100%;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    background: #555;
    cursor: not-allowed;
    border-radius: 5px;
    border: none;
    color: white;
}
#readyBtn.enabled { background: #2ecc71; cursor: pointer; }
#readyBtn.ready { background: #e74c3c; cursor: pointer; }

.status-text {
    font-size: 18px;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
}

.enemy-quote {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-style: italic;
    font-weight: bold;
}

.avatar-preview {
    margin-top: 20px;
    padding: 10px;
    background: #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.avatar-icon { font-size: 40px; }
.avatar-text { font-size: 20px; font-weight: bold; }

.invite-button {
    margin-top: 30px;
    background: #3498db;
    padding: 10px 30px;
    font-size: 20px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

/* === OUTRO === */
#outroScreen {
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    z-index: 100;
}
.outro-content {
    text-align: center;
}
#outroTitle {
    font-family: 'Bangers', cursive;
    font-size: 60px;
    color: #e74c3c;
    text-shadow: 0 0 20px #e74c3c;
    margin-bottom: 10px;
}
#outroSub {
    font-size: 24px;
    margin-bottom: 30px;
}
#outroImage {
    max-width: 800px;
    border: 5px solid #fff;
    border-radius: 10px;
}

/* === GAME UI === */
#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #444;
}

canvas {
    background-color: #000;
    width: 100%;
    max-width: 1800px;
    max-height: 100vh;
    object-fit: contain;
}
