* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px;
    min-height: 100vh;

    background:
        radial-gradient(circle at top, #182033 0%, #090b12 45%, #050609 100%);

    color: #f4f7ff;
    font-family: Arial, sans-serif;
}

h1 {
    margin-bottom: 5px;
    font-size: 36px;
}

body > p {
    color: #8992a8;
    margin-top: 0;
}


/* =========================
   JOUEURS
   ========================= */

.players {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    margin-bottom: 45px;
}

.player-card {
    position: relative;
    overflow: hidden;

    width: 300px;
    padding: 25px;

    background: rgba(18, 23, 36, 0.85);

    border: 1px solid rgba(105, 145, 255, 0.25);
    border-radius: 20px;

    box-shadow:
        0 0 25px rgba(50, 100, 255, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.player-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #6f8cff,
        transparent
    );
}

.avatar {
    font-size: 55px;
    margin-bottom: 10px;
}

.player-card h2 {
    margin: 5px 0 15px 0;
}

.player-card p {
    color: #aeb7cc;
}


/* =========================
   TÂCHES
   ========================= */

button {
    padding: 12px 18px;
    margin: 5px;

    background: rgba(27, 34, 53, 0.9);

    color: #e9edff;

    border: 1px solid rgba(111, 140, 255, 0.35);
    border-radius: 10px;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: rgba(68, 88, 150, 0.35);

    border-color: #7b94ff;

    box-shadow: 0 0 15px rgba(90, 120, 255, 0.25);

    transform: translateY(-2px);
}


/* =========================
   HISTORIQUE
   ========================= */

#history {
    max-width: 625px;

    padding: 20px;

    background: rgba(18, 23, 36, 0.65);

    border: 1px solid rgba(105, 145, 255, 0.15);
    border-radius: 15px;
}

#history p {
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    color: #aeb7cc;
}
/* =========================
   BARRES XP
   ========================= */

.xp-bar {
    width: 100%;
    height: 10px;

    margin-top: 15px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    overflow: hidden;
}

.xp-progress {
    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #536dfe,
        #8fa4ff
    );

    border-radius: 20px;

    box-shadow:
        0 0 10px rgba(111, 140, 255, 0.8),
        0 0 20px rgba(111, 140, 255, 0.4);

    transition: width 0.5s ease;
}
/* =========================
   ONGLETS HISTORIQUE
   ========================= */

.history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.history-tab.active {
    background: rgba(90, 120, 255, 0.35);
    border-color: #7b94ff;
    box-shadow: 0 0 15px rgba(90, 120, 255, 0.25);
}

#history-summary {
    max-width: 625px;
    margin-bottom: 15px;
    color: #aeb7cc;
}
.hidden {
    display: none;
}
/* =========================
   CALENDRIER
   ========================= */

#calendar {
    max-width: 625px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    text-align: center;
    color: #8992a8;
    font-size: 13px;
    padding: 5px;
}

.calendar-day {
    min-height: 55px;
    padding: 8px;

    background: rgba(18, 23, 36, 0.75);

    color: #f4f7ff;

    border: 1px solid rgba(105, 145, 255, 0.15);
    border-radius: 10px;

    cursor: pointer;
}

.calendar-day:hover {
    border-color: #7b94ff;
}

.calendar-day.has-activity {
    box-shadow: inset 0 0 12px rgba(90, 120, 255, 0.22);
    border-color: rgba(123, 148, 255, 0.6);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}
/* =========================
   AVATARS
   ========================= */

.avatar-container {
    width: 100%;
    height: 320px;

    margin-bottom: 15px;

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

    overflow: hidden;

    border-radius: 15px;

    background:
        radial-gradient(
            circle at center,
            rgba(70, 100, 255, 0.18),
            transparent 65%
        );
}

.player-avatar {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(0 0 14px rgba(80, 120, 255, 0.45));

    transition: transform 0.3s ease;
}

.player-avatar:hover {
    transform: scale(1.03);
}
/* =========================
   ÉCRAN DE CONNEXION
   ========================= */

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 340px;
    padding: 35px;
    background: rgba(18, 23, 36, 0.92);
    border: 1px solid rgba(105, 145, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(80, 110, 255, 0.12);
}

.login-card h1 {
    margin-top: 0;
}

.login-card input {
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255,255, 0.06);
    color: white;
    border: 1px solid rgba(105, 145, 255, 0.25);
    border-radius: 10px;
}

.login-card button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    cursor: pointer;
}

#login-error {
    color: #ff7b8a;
    min-height: 20px;
}

.hidden {
    display: none !important;
}
