/** @format */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    letter-spacing: -0.5px;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

/* =========================
   FOND PLATEAU TV
========================= */
body {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    background-color: #081a3a;
    background-image: url("./img/image\ copy.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;

    backdrop-filter: blur(5px);

    overflow: hidden;
}

/* =========================
   COLONNES DE PRIX
========================= */
.colonne {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================
   PRIX (RATIO 4.8)
========================= */
.prize {
    height: 40px;
    width: calc(40px * 4.8);

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("./img/prix.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 16px;

    font-weight: 800;
    color: #000000;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: 0.08s;
}

/* =========================
   CONTAINER DES BOÎTES
========================= */
.boxesContainer {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 18px;
    margin: 0 40px;
}

/* =========================
   BOÎTES
========================= */
.box {
    height: 90px;
    width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-image: url("./img/cadeaux/cadeau1.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

/* =========================
   SURVOL
========================= */
.box:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 18px rgb(255, 204, 0));
}

/* =========================
   CONTENU DES BOÎTES
========================= */
.box-number {
    position: absolute;
    font-size: 1rem;
    top: 46%;
    left: 27%;
    rotate: 335deg;
    font-weight: 700;
    color: #1a1a1a;
}

.box-selected-icon {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 65%;
    background-image: url("./img/image\ copy\ 2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;

    display: none;
}
/* =========================
   OVERLAY BANQUIER
========================= */
/* =========================
   OVERLAY BANQUIER
========================= */

.overlay {
    position: fixed;
    inset: 0;
    height: 100%;
    z-index: 10000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);

    background-image: url("./img/image\ copy.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.overlay-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

.overlay-amount {
    height: 70px;
    width: calc(70px * 4.8);

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("./img/prix.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 16px;

    font-weight: 800;
    color: #000000;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.overlay-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.overlay-actions button {
    padding: 14px 26px;
    font-size: 1.1rem;
    font-weight: 900;
    border: none;
    border-radius: 14px;
    cursor: pointer;
}

#btnValidate {
    background: #3ad07a;
    color: #081a3a;
}

#btnRefuse {
    background: #d03a4a;
    color: white;
}

.afficheurIdSocket {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 16px;
    z-index: 10000;

    font-weight: 700;
}
.afficheurCanPlay {
    position: fixed;
    bottom: 16px;
    left: 60px;
    height: 16px;
    width: 16px;
    z-index: 10000;

    font-weight: 700;
    background-color: #ff3939;
    border-radius: 50%;
}

/* =========================
   ÉCRAN FINAL
========================= */

.final {
    position: fixed;
    inset: 0;
    z-index: 20000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(
        circle at center,
        #1b2c5a,
        #020814 70%
    );

    background-image: url("./img/image\ copy.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.final.hidden {
    display: none;
}

.final-card {
    text-align: center;
    padding: 40px 50px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.final-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.final-amount {
    font-size: 4rem;
    font-weight: 900;
    padding: 18px 36px;
    border-radius: 18px;

    background: #ffffff;
    color: #081a3a;

    margin-bottom: 20px;
}

.final-sub {
    font-size: 1rem;
    opacity: 0.85;
}

#trainPapiEtMami {
    position: fixed;

    height: 200px;
    aspect-ratio: 2.37;

    bottom: 30px;
    left: -500px;

    background-image: url("./img/trainPapiEtMami.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1000000;
}

#grinch {
    height: 300px;
    width: 300px;

    background-image: url("./img/grinch.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: fixed;

    bottom: 0px;
    bottom: -300px;
    right: 300px;
    z-index: 1000000;
}
