/* style.css - usado tanto pelo install.html quanto pelo index.html */
body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #000;
    color: white;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('assets/city.png');
    background-size: cover;
    background-position: center;
    filter: none;
    z-index: 0;
}

/* Containers centrais */
.installContainer,
.container {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-30%);
    color: white;
    z-index: 1;
}

/* Títulos */
.title,
.install-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0,0,0,0.8);
    margin: 0;
    padding: 0 20px;
}

/* Texto */
.installContainer p {
    font-size: 18px;
    text-shadow: 1px 1px 4px black;
}

/* Campo Nick antigo (central) */
.nickInput {
    padding: 15px;
    width: 350px;
    margin-top: 20px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    text-align: center;
    outline: none;
}

/* ★★★★★ BARRA SUPERIOR — Nick + Minimizar + Fechar ★★★★★ */
.top-right-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9999;
}

/* Campo de Nick no topo */
.nickInputTop {
    padding: 10px 15px;
    width: 220px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    outline: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Botões da janela */
.window-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    transition: 130ms ease;
}

.window-btn:hover {
    background: rgba(255, 120, 0, 0.9);
    box-shadow: 0 4px 18px rgba(255,120,0,0.7);
    transform: translateY(-2px);
}

.window-btn.close:hover {
    background: #ff3300 !important;
}

/* 🔥 NOVOS BOTÕES DE ÍCONES (Instagram + Discord) */
.icon-btn {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: scale(1.10);
}

.icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px #000);
}

/* INSTALAR — Laranja neon */
.install-btn {
    background: linear-gradient(90deg, #ff8a00, #ff6a00);
    box-shadow: 0 4px 12px rgba(255, 100, 0, 0.4);
    transition: 150ms;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 100, 0, 0.5);
    opacity: 0.95;
}

/* INSTALAR flutuante */
.install-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 45px;
    font-size: 22px;
    border-radius: 10px;
    z-index: 10;
}

/* JOGAR — Laranja */
.play {
    background: linear-gradient(90deg, #ff8a00, #ff6a00);
    box-shadow: 0 4px 12px rgba(255, 100, 0, 0.4);
    transition: 150ms;
}

.play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 100, 0, 0.5);
    opacity: 0.95;
}

/* JOGAR flutuante */
.play-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 45px;
    font-size: 22px;
    border-radius: 10px;
    z-index: 10;
}

/* Status */
#status,
#installStatus {
    margin-top: 15px;
    font-size: 16px;
    text-shadow: 1px 1px 4px black;
}

/* Barra de progresso (instalador) */
.progressBar {
    width: 60%;
    height: 30px;
    margin: 20px auto;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

#installProgress {
    width: 0%;
    height: 100%;
    background: #ff7200;
    box-shadow: 0 0 10px rgba(255, 114, 0, 0.6);
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    border-radius: 10px;
    transition: width 0.2s ease;
}

/* ---------------------------------------------------------- */
/* CONTADOR DE JOGADORES (SEM BARRA) */
#playerCountBox {
    position: fixed;
    bottom: 110px; /* acima do botão JOGAR */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid #ff8a00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
    text-align: center;
    max-width: 300px;
    z-index: 5;
    transition: all 0.3s ease;
}

#playerCountBox:hover {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.8);
}

#playerCount {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 8px black;
}

/* Responsividade */
@media (max-width: 480px) {
    .title,
    .install-title {
        font-size: 42px;
    }
    .nickInput {
        width: 80%;
    }
    .buttons button,
    .installContainer button {
        padding: 12px 18px;
        font-size: 16px;
    }
    .progressBar {
        width: 85%;
    }
    #playerCountBox {
        bottom: 90px;
        padding: 12px 20px;
        max-width: 80%;
    }
    #playerCount {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------- */
/* 🎧 MINI PLAYER — agora no canto superior esquerdo */
#miniPlayer {
    position: fixed;
    top: 25px;          /* antes era bottom */
    left: 25px;         /* continua no canto esquerdo */
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.45);
    padding: 12px 18px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.13);
    z-index: 15;
}

.mp-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    padding: 4px;
}

.mp-btn:hover {
    transform: scale(1.15);
    color: #ff8a00;
}

.mp-info {
    display: flex;
    flex-direction: column;
    width: 160px;
}

#mpTitle {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #fff;
}

#mpBar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

#mpProgress {
    height: 100%;
    width: 0%;
    background: #ff8a00;
    transition: width 0.1s linear;
    border-radius: 3px;
}
audio#audioPlayer {
    display: none;
}
