body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #050505;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas { display: block; position: absolute; top: 0; left: 0; z-index: 1; }

/* --- Minimalist & Amazing Ready Screen --- */
#ready-screen {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(16, 20, 28, 0.95) 0%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lobby-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    text-align: center;
    width: 400px;
}

#ready-screen h1 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
}

#winner-text {
    font-size: 1.2rem;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    margin-bottom: 10px;
    min-height: 25px;
}

#ready-screen p { color: #8892b0; margin-bottom: 20px; }

#players-list {
    margin: 20px 0;
    font-size: 1.1rem;
    min-height: 150px;
    text-align: left;
}

.player-row {
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.kick-btn {
    background: transparent;
    color: #ff3366;
    border: 1px solid #ff3366;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.kick-btn:hover {
    background: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

#ready-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

#ready-btn.is-ready {
    background: rgba(0, 255, 102, 0.1);
    color: #00ff66;
    border-color: #00ff66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

#ready-btn:hover:not(.is-ready) {
    background: #ffffff;
    color: #000;
}

/* --- Existing UI Adjustments --- */
#ui-layer {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); pointer-events: none;
    text-transform: uppercase; letter-spacing: 2px;
    z-index: 10; text-align: center;
    background: rgba(10, 10, 15, 0.8);
    padding: 15px 30px; border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
#titanium-display { color: #fff; margin: 0 0 10px 0; font-size: 1.2rem; }
#buy-btn {
    background: transparent; color: #ffffff; border: 2px solid #ffffff;
    padding: 8px 16px; font-weight: bold; cursor: pointer; text-transform: uppercase;
    border-radius: 5px; transition: all 0.3s ease; margin: 0 auto 10px auto; pointer-events: auto;
}
#buy-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
#buy-btn:disabled { border-color: #555 !important; color: #555 !important; cursor: not-allowed; box-shadow: none; background: transparent; }
#fleet-controls { pointer-events: auto; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.pct-btn { background: transparent; color: #aaa; border: 1px solid #555; padding: 5px 10px; margin-right: 5px; cursor: pointer; border-radius: 3px; font-weight: bold; transition: all 0.2s; }
.pct-btn.active { background: rgba(0, 210, 255, 0.2); color: #00d2ff; border-color: #00d2ff; box-shadow: 0 0 10px rgba(0, 210, 255, 0.5); }
.pct-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.1); }
#labels-container { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.floating-label { position: absolute; transform: translate(-50%, -50%); font-size: 14px; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,1); text-align: center; transition: color 0.2s; }
.fleet-label { font-size: 12px; font-family: 'Courier New', Courier, monospace; }
