/* Screen Overlays: Menu, Shop, Game Over, etc. */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow-y: auto;
}

.menu-options { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }

.mode-selector { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; justify-content: center; }

.mode-btn {
    padding: 10px 20px;
    font-size: 1em;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #0ff;
    color: #0ff;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn.active { background: #0ff; color: #000; }

.controls-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    max-width: 500px;
}

.controls-info h3 { color: #0ff; margin-bottom: 15px; }
.controls-info p { margin: 8px 0; color: #aaa; }

/* Shop Screen */
.shop-container {
    max-width: 700px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 20, 40, 0.95);
    border: 3px solid #0ff;
}

.shop-header { text-align: center; margin-bottom: 30px; }

.shop-currency {
    font-size: 1.5em;
    color: #ff0;
    text-shadow: 0 0 10px #ff0;
    margin: 10px 0;
}

.shop-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.shop-item {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-item:hover:not(.locked):not(.owned) {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.shop-item.locked { opacity: 0.4; cursor: not-allowed; }
.shop-item.owned { border-color: #0f0; background: rgba(0, 255, 0, 0.2); }

.item-name { font-size: 1.2em; color: #0ff; margin-bottom: 5px; }
.item-price { color: #ff0; font-size: 1.1em; margin: 5px 0; }
.item-desc { color: #aaa; font-size: 0.9em; }

.item-tier {
    display: inline-block;
    padding: 2px 8px;
    margin-top: 5px;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.1);
}

.tier-common { color: #999; }
.tier-rare { color: #0ff; }
.tier-epic { color: #a0f; }
.tier-legendary { color: #ff0; }

/* Round Transition Screen */
.round-transition { text-align: center; padding: 20px; }

.round-number {
    font-size: 3em;
    color: #ff0;
    text-shadow: 0 0 20px #ff0;
    margin: 20px 0;
}

.ai-info { font-size: 1.3em; color: #f66; margin: 10px 0; }

/* Results Screen */
.results-container { text-align: center; padding: 30px; }
.results-title { font-size: 3em; margin-bottom: 30px; }

.results-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 20px auto;
}

.stat-box {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    padding: 20px;
}

.stat-label { color: #0ff; font-size: 0.9em; margin-bottom: 5px; }
.stat-value { font-size: 2em; color: #fff; }

.final-score {
    font-size: 3em;
    color: #ff0;
    text-shadow: 0 0 20px #ff0;
    margin: 30px 0;
}

.winner-text {
    font-size: 2.5em;
    color: #0f0;
    text-shadow: 0 0 20px #0f0;
    margin: 20px 0;
    animation: pulse 1s ease-in-out infinite;
}

.loser-text {
    font-size: 2.5em;
    color: #f00;
    text-shadow: 0 0 20px #f00;
    margin: 20px 0;
}

/* Manual Screen */
.manual-screen {
    max-width: 90vw;
    max-height: 70vh;
    padding: 30px;
    background: rgba(0, 20, 40, 0.98);
    border: 3px solid #0ff;
    overflow-y: auto;
    text-align: left;
}

.manual-screen h2 { color: #0ff; text-align: center; margin-bottom: 30px; }

.manual-content {
    color: #aaa;
    line-height: 1.8;
    font-size: 1em;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

.back-button-container { margin-top: 30px; text-align: center; }

/* Leaderboard Screen */
.leaderboard-container {
    max-width: 700px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 20, 40, 0.95);
    border: 3px solid #0ff;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
    color: #0ff;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.leaderboard-table th {
    background: rgba(0, 255, 255, 0.2);
    color: #0ff;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #0ff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    color: #aaa;
}

.leaderboard-table tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

.rank-1 { color: #ffd700 !important; font-weight: bold; }
.rank-2 { color: #c0c0c0 !important; font-weight: bold; }
.rank-3 { color: #cd7f32 !important; font-weight: bold; }

/* Name Entry Screen */
.name-input-container {
    text-align: center;
    padding: 20px;
}

.name-input {
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid #0ff;
    color: #0ff;
    font-size: 1.5em;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

.name-input::placeholder {
    text-transform: uppercase;
}

.name-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
