/* GladArena - Micro-Stakes Battle Royale Styles */

:root {
    --neon-green: #00ff88;
    --neon-purple: #bf00ff;
    --dark-bg: #0a0a0f;
    --card-bg: #12121a;
    --text-dim: #888;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--dark-bg);
    color: white;
    overflow: hidden;
}

/* Screen System */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--dark-bg);
    z-index: 100;
}

.screen.active {
    display: flex;
}

/* Payment Gate */
.gate-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.neon-text {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    color: white;
}

.neon-text .accent {
    color: var(--neon-green);
}

.tagline {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin: 10px 0 30px;
}

.prize-pool {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-purple));
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.pool-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pool-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.entry-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .value {
    color: var(--neon-green);
    font-weight: 600;
}

.pay-btn {
    background: linear-gradient(135deg, var(--neon-green), #00cc6a);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.pay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-green);
}

.pay-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(0, 255, 136, 0); }
}

.disclaimer {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Lobby Screen */
.lobby-content {
    text-align: center;
    padding: 40px;
}

.player-slots {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.slot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slot.filled {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
}

.slot-inner {
    font-size: 2rem;
    color: #444;
}

.slot.filled .slot-inner {
    color: var(--neon-green);
}

.lobby-info {
    font-size: 1.5rem;
    margin: 20px 0;
}

.pot-display {
    font-size: 1.2rem;
    margin: 20px 0;
}

.pot-amount {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1.5rem;
}

.waiting-text {
    color: var(--text-dim);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Game Timer */
.timer-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 30px;
    border-radius: 30px;
    border: 2px solid var(--neon-green);
    z-index: 1000;
}

#timerValue {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: monospace;
}

.timer-display.warning #timerValue {
    color: #ff6600;
    animation: timerPulse 0.5s infinite;
}

.timer-display.critical #timerValue {
    color: #ff0000;
    animation: timerPulse 0.25s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Name Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--neon-green);
}

.modal-content input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--dark-bg);
    color: white;
    margin: 15px 0;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--neon-green);
}

.modal-content button {
    background: var(--neon-green);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    border-radius: 10px;
    cursor: pointer;
}

/* Winner Screen */
.winner-content {
    text-align: center;
    padding: 40px;
}

.winner-name {
    font-size: 3rem;
    font-weight: 900;
    color: gold;
    margin: 20px 0;
    text-shadow: 0 0 20px gold;
}

.winner-prize {
    font-size: 2rem;
    color: var(--neon-green);
    margin: 20px 0;
}

.your-result {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin: 30px 0;
}

/* Override game area styles */
#gameAreaWrapper {
    opacity: 1 !important;
    max-height: none !important;
}

#gameAreaWrapper.screen.active {
    display: block;
}

#status {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-green);
}
