/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    color: white;

    background:
        radial-gradient(
            circle at top,
            rgba(98, 0, 255, 0.22),
            transparent 35%
        ),
        #080810;
}

/* =========================
   GENERAL
========================= */

.center-x {
    display: flex;
    justify-content: center;
}

/* =========================
   HEADER / NAVBAR
========================= */

.main-header {
    width: 100%;

    padding: 15px 40px;

    background: rgba(8, 8, 16, 0.85);

    border-bottom: 1px solid rgba(0, 229, 255, 0.15);

    backdrop-filter: blur(12px);

    position: sticky;
    top: 0;
    z-index: 100;
}


.navbar {
    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 40px;
}

/* =========================
   NOTIFICATIONS
========================= */

.notification-wrapper {
    position: relative;
}


/* =========================
   BOUTON CLOCHE
========================= */

.notification-button {
    position: relative;

    width: 40px;
    height: 40px;

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

    background: transparent;
    border: none;
    border-radius: 8px;

    color: #c9c6dc;

    cursor: pointer;

    transition: 0.2s;
}


.notification-button:hover {
    color: #c04cff;
    background: rgba(180, 70, 255, 0.08);
}


.notification-icon {
    width: 22px;
    height: 22px;
}


/* Petit compteur */
.notification-count {
    position: absolute;

    top: 1px;
    right: 0;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

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

    background: #d82cff;
    color: white;

    border: 2px solid #080711;
    border-radius: 50%;

    font-size: 10px;
    font-weight: bold;
}


/* =========================
   MENU
========================= */

.notification-menu {
    position: absolute;

    top: 48px;
    right: 0;

    width: 350px;
    max-height: 420px;

    display: none;

    background: #0b0914;

    border: 1px solid rgba(174, 80, 255, 0.35);
    border-radius: 12px;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(150, 50, 255, 0.08);

    overflow: hidden;

    z-index: 2000;
}


.notification-menu.active {
    display: block;
}


/* =========================
   TITRE DU MENU
========================= */

.notification-header {
    padding: 13px 16px;

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

    color: #f3f0ff;

    font-size: 14px;
    font-weight: bold;

    background: #100d1c;

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


/* Bouton tout effacer */
.notification-clear {
    padding: 4px 7px;

    background: transparent;
    border: none;

    color: #858093;

    font-size: 11px;

    cursor: pointer;

    transition: 0.15s;
}


.notification-clear:hover {
    color: #d8d4e5;
}


/* =========================
   LISTE
========================= */

#notification-list {
    max-height: 350px;

    overflow-y: auto;
}


/* =========================
   UNE NOTIFICATION
========================= */

.notification {
    display: flex;

    gap: 12px;

    padding: 14px 16px;

    background: transparent;

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

    cursor: pointer;

    transition: 0.15s;
}


.notification:last-child {
    border-bottom: none;
}


.notification:hover {
    background:
        rgba(169, 64, 255, 0.08);
}


/* Notification non lue */
.notification.unread {
    background:
        rgba(151, 54, 255, 0.06);
}


/* =========================
   PETIT POINT
========================= */

.notification-dot {
    width: 8px;
    height: 8px;

    margin-top: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #555064;
}


.notification.unread .notification-dot {
    background: #d52cff;

    box-shadow:
        0 0 8px rgba(213, 44, 255, 0.7);
}


/* =========================
   CONTENU
========================= */

.notification-content {
    flex: 1;
    min-width: 0;
}


.notification-title {
    margin-bottom: 4px;

    color: #f4f1ff;

    font-size: 13px;
    font-weight: 700;
}


.notification-text {
    color: #aaa6ba;

    font-size: 13px;
    line-height: 1.4;
}


.notification.unread .notification-text {
    color: #d8d4e5;
}


/* =========================
   BOUTONS DEMANDE D'AMI
========================= */

.notification-actions {
    display: flex;

    gap: 8px;

    margin-top: 10px;
}


.notification-actions button {
    padding: 6px 12px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.15s;
}


/* Accepter */
.notification-accept {
    color: #9cffb0;

    background:
        rgba(40, 180, 80, 0.15);

    border:
        1px solid rgba(40, 200, 90, 0.6);
}


.notification-accept:hover {
    color: white;

    background:
        rgba(40, 200, 90, 0.35);
}


/* Refuser */
.notification-refuse {
    color: #ff9b9b;

    background:
        rgba(220, 50, 50, 0.15);

    border:
        1px solid rgba(230, 60, 60, 0.6);
}


.notification-refuse:hover {
    color: white;

    background:
        rgba(230, 60, 60, 0.35);
}




/* =========================
   AUCUNE NOTIFICATION
========================= */

.no-notification {
    padding: 28px 20px;

    margin: 0;

    text-align: center;

    color: #77738d;

    font-size: 13px;
}
/* =========================
   LOGO
========================= */

.logo-link {
    display: flex;

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

    text-decoration: none;
}


.logo {
    width: 260px;
    max-width: 100%;

    display: block;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.logo:hover {
    transform: scale(1.04);

    filter:
        drop-shadow(0 0 10px rgba(174, 0, 255, 0.5))
        drop-shadow(0 0 15px rgba(0, 225, 255, 0.35));
}

/* =========================
   ONLINE / INVITE
========================= */

#online-options,
#guest-message {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid #2f2f42;
}


/* Message quand le joueur
   n'est pas connecté */
#guest-message {
    color: #a8a8c4;
    font-size: 18px;
    line-height: 1.4;
}


#guest-message p {
    margin: 0;
}


#guest-message a {
    color: #8b5cf6;
    text-decoration: underline;
}


#guest-message a:hover {
    color: #a78bfa;
}


/* Options multijoueur */
#online-options h2 {
    margin-top: 0;
    margin-bottom: 18px;
}


#online-options button {
    margin-right: 10px;
}


/* Important */
.hidden {
    display: none !important;
}


/* =========================
   NAVIGATION
========================= */

.nav-side {
    display: flex;

    align-items: center;

    gap: 15px;
}


.nav-left {
    justify-content: flex-end;
}


.nav-right {
    justify-content: flex-start;
}


.nav-button {
    padding: 10px 18px;

    color: #eeeeff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border: 1px solid transparent;
    border-radius: 10px;

    transition: all 0.25s ease;
}


.nav-button:hover {
    color: #ffffff;

    background: rgba(145, 0, 255, 0.12);

    border-color: rgba(172, 70, 255, 0.4);

    box-shadow:
        0 0 12px rgba(148, 0, 255, 0.15);
}


/* Bouton connexion */

.login-button {
    border: 1px solid #00d9ff;

    background: rgba(0, 217, 255, 0.08);
}


.login-button:hover {
    background: #00d9ff;

    color: #05050b;

    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.6),
        0 0 25px rgba(0, 217, 255, 0.25);
}


.signup-button {
    border: 1px solid #a855f7;

    background: rgba(168, 85, 247, 0.08);
}


.signup-button:hover {
    background: #a855f7;

    color: #05050b;

    box-shadow:
        0 0 10px rgba(168, 85, 247, 0.6),
        0 0 25px rgba(168, 85, 247, 0.25);
}


.logout-button {
    border: 1px solid #ff4d6d;

    background: rgba(255, 77, 109, 0.08);
}


.logout-button:hover {
    background: #ff4d6d;

    color: #05050b;

    box-shadow:
        0 0 10px rgba(255, 77, 109, 0.6),
        0 0 25px rgba(255, 77, 109, 0.25);
}


/* =========================
   HERO
========================= */

.home {
    width: 100%;
}


.hero {
    min-height: 550px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 60px 20px;
}


.hero h1 {
    font-size: clamp(40px, 6vw, 72px);

    margin-bottom: 20px;

    background: linear-gradient(
        90deg,
        #e600ff,
        #8b5cff,
        #00e5ff
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero p {
    max-width: 650px;

    color: #a9a9bd;

    font-size: 20px;

    line-height: 1.5;

    margin-bottom: 30px;
}


/* =========================
   PLAY BUTTON
========================= */

.games-button {
    padding: 15px 30px;

    border-radius: 12px;

    text-decoration: none;

    color: white;

    font-size: 18px;
    font-weight: bold;

    background: linear-gradient(
        135deg,
        #b000ff,
        #6f3cff,
        #00cfff
    );

    box-shadow:
        0 0 20px rgba(139, 68, 255, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.games-button:hover {
    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 0 20px rgba(174, 0, 255, 0.5),
        0 0 35px rgba(0, 217, 255, 0.25);
}


/* =========================
   GAMES
========================= */

.games-section {
    max-width: 1300px;

    margin: 0 auto;

    padding: 80px 30px 120px;
}


.games-section > h2 {
    font-size: 42px;

    margin-bottom: 55px;

    text-align: center;
}


/* =========================
   CATEGORY
========================= */

.game-category {
    margin-bottom: 65px;
}


.category-header {
    display: flex;

    align-items: end;

    gap: 18px;

    margin-bottom: 20px;
}


.category-header h3 {
    font-size: 26px;
}


.category-header span {
    color: #77778c;

    font-size: 14px;

    margin-bottom: 3px;
}


/* =========================
   GAME ROW
========================= */

.games-row {
    display: flex;

    gap: 22px;

    overflow-x: auto;

    padding: 5px 5px 20px;
}


/* scrollbar */

.games-row::-webkit-scrollbar {
    height: 6px;
}


.games-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);

    border-radius: 20px;
}


.games-row::-webkit-scrollbar-thumb {
    background: linear-gradient(
        90deg,
        #9b35ff,
        #00d9ff
    );

    border-radius: 20px;
}


/* =========================
   GAME CARD
========================= */

.game-card {
    flex: 0 0 260px;

    min-height: 230px;
    margin-top: 10px;
    padding: 25px;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: white;

    background:
        linear-gradient(
            145deg,
            rgba(27, 23, 48, 0.95),
            rgba(10, 10, 20, 0.95)
        );

    border: 1px solid rgba(137, 80, 255, 0.2);
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.game-image {
    max-width: 100%;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 255, 0.55);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(119, 54, 255, 0.15);
}

.game-icon {
    width: 55px;
    height: 55px;

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

    margin-bottom: 25px;
    font-size: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(174, 0, 255, 0.18),
            rgba(0, 217, 255, 0.12)
        );

    border: 1px solid rgba(140, 80, 255, 0.25);
    border-radius: 14px;
}

.game-card h4 {
    font-size: 21px;
    margin-bottom: 10px;
}

.game-card p {
    color: #9696aa;
    font-size: 14px;
    line-height: 1.5;
}

.center-x {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.play-button,
.host-button {
    flex: 1;
    height: 36px;

    margin: 0;
    padding: 5px;

    color: white;
    border: 0;
    border-radius: 5px;
}

.play-button {
    background: #4caf50;
}

.host-button {
    background: #2196f3;
}

/* =========================
   COMING SOON
========================= */

.coming-soon {
    opacity: 0.55;

    cursor: default;
}


.coming-soon:hover {
    transform: none;

    border-color: rgba(137, 80, 255, 0.2);

    box-shadow: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .main-header {
        padding: 15px;
    }


    .navbar {
        display: flex;

        flex-direction: column;

        gap: 15px;
    }


    .logo-link {
        order: -1;
    }


    .logo {
        width: 220px;
    }


    .nav-left,
    .nav-right {
        justify-content: center;
    }


    .hero {
        min-height: 450px;
    }

}

/* =========================
   FORM
========================= */

.form-page {
    min-height: calc(100vh - 80px);

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

    padding: 40px 20px;
    position: relative;
}

.error-box {
    position: fixed;
    z-index: 1000;

    top: 130px;
    left: 5%;
    width: 90%;

    padding: 1rem 1.25rem;

    border-radius: 8px;
    color: #f5d0d0;
    background: #4a1717;
    border: 1px solid #7a2929;

    visibility: hidden;
}

.message-box {
    color: #d0f5d0;
    background: #174a17;
    border: 1px solid #297a29;
}

.form {
    width: 100%;
    max-width: 400px;

    padding: 35px;

    background: rgba(15, 15, 28, 0.95);
    border: 1px solid rgba(137, 80, 255, 0.25);
    border-radius: 15px;
}

.form h1 {
    margin-bottom: 30px;

    text-align: center;
    font-size: 32px;
}

.form label {
    display: block;

    margin-bottom: 7px;

    color: #ccccdd;
    font-size: 14px;
}

.form input {
    width: 100%;

    margin-bottom: 20px;
    padding: 11px 12px;

    color: white;
    background: #0b0b14;

    border: 1px solid #33334a;
    border-radius: 7px;

    font-size: 16px;
}

.form input:focus {
    outline: none;
    border-color: #00d9ff;
}

.form button {
    width: 100%;

    padding: 11px;

    color: #05050b;
    background: #00d9ff;

    border: 0;
    border-radius: 7px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.form button:hover {
    background: #33e1ff;
}

.form button[disabled] {
    background: #058;
    cursor: not-allowed;
}

.form p {
    margin-top: 20px;

    text-align: center;
    color: #88889c;
    font-size: 14px;
}

.form a {
    color: #00d9ff;
    text-decoration: none;
}

.form a:hover {
    text-decoration: underline;
}

.form input[type="checkbox"] {
    width: auto;
}

.form textarea {
    width: 100%;

    min-height: 120px;

    margin-bottom: 20px;
    padding: 11px 12px;

    color: white;
    background: #0b0b14;

    border: 1px solid #33334a;
    border-radius: 7px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;

    resize: vertical;
}

.form textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

/* =========================
   PROFILE
========================= */

.profile-page {
    max-width: 900px;

    margin: 0 auto;

    padding: 60px 20px;
}

.profile {
    background: rgba(15, 15, 28, 0.95);

    border: 1px solid rgba(137, 80, 255, 0.25);
    border-radius: 15px;

    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(137, 80, 255, 0.12),
            rgba(0, 217, 255, 0.05)
        );

    border-bottom: 1px solid rgba(137, 80, 255, 0.2);
}

.profile-find-player {
    align-self: flex-end;

    margin-left: auto;

    color: #9999aa;
    text-decoration: underline;
}

.profile-picture {
    width: 180px;
    height: 180px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 15px;

    border: 1px solid rgba(0, 217, 255, 0.3);

    background: #0b0b14;
}

.profile-picture-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #77778c;

    font-size: 40px;
}

.profile-info {
    min-width: 0;
}

.profile-info h1 {
    margin-bottom: 10px;

    font-size: 36px;
}

.profile-status {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #9999aa;

    font-size: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    border-radius: 50%;
}

.status-online {
    background: #4caf50;
}

.status-offline {
    background: #77778c;
}

.status-in_game {
    background: #2196f3;
}

.profile-aura {
    margin-top: 15px;

    color: #00d9ff;

    font-size: 16px;
    font-weight: bold;
}

.profile-body {
    padding: 35px;
}

.profile-section {
    margin-bottom: 35px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.profile-empty {
    margin: 0;
    color: #aaa;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h2 {
    margin-bottom: 15px;

    font-size: 22px;
}

.profile-bio {
    color: #aaaabd;

    line-height: 1.6;

    white-space: pre-wrap;
}

.profile-stats {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 12px 20px;

    color: #aaaabd;
}

.profile-stats dt {
    color: #77778c;
}

.profile-stats dd {
    margin: 0;
}

.admin-crown {
    margin: 8px;
    color: #eeee66;
}

.profile-dates {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 15px;

    margin-top: 12px;

    color: #77778c;

    font-size: 13px;
}

.profile-friends {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-friend {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;

    color: white;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.profile-friend:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-friend-picture {
    width: 45px;
    height: 45px;

    object-fit: cover;

    border-radius: 50%;
}

.profile-friend-picture.profile-picture-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-friend-alias {
    font-weight: bold;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.profile-action-button {
    padding: 8px 14px;
    font-weight: 600;

    color: white;
    background: transparent;

    border: 1px solid;
    border-radius: 6px;
    height: 45px;

    cursor: pointer;
}

.friend-button {
    color: #b8f5c8;
    border-color: #3c9b58;
    background: rgba(60, 155, 88, 0.1);
}

.friend-button:hover {
    background: #3c9b58;
    color: #05050b;
}

.unfriend-button {
    color: #f5d0d0;
    border-color: #7a2929;
    background: rgba(122, 41, 41, 0.1);
}

.unfriend-button:hover {
    background: #7a2929;
}

.block-button {
    color: #f5d0d0;
    border-color: #7a2929;
}

.block-button:hover {
    background: #7a2929;
}

.edit-button {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.08);
    border-color: #00d9ff;
    text-decoration: none;
}

.edit-button:hover {
    color: #05050b;
    background: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.profile-header {
    position: relative;
}

.message-button {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 3rem;
    text-decoration: none;
}

.group-button {
    padding: 7px 12px;
    margin-bottom: 10px;

    color: #00d9ff;
    text-decoration: none;

    background: rgba(0, 217, 255, 0.08);
    border: 1px solid #00d9ff;
    border-radius: 5px;

    font-size: 0.9rem;
}

.group-button:hover {
    color: #05050b;
    background: #00d9ff;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.6),
        0 0 20px rgba(0, 217, 255, 0.3);
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-item {
    display: block;
    padding: 12px 15px;

    color: white;
    text-decoration: none;

    background: rgba(137, 80, 255, 0.08);
    border: 1px solid rgba(137, 80, 255, 0.3);
    border-radius: 6px;
}

.group-item:hover {
    background: rgba(137, 80, 255, 0.15);
    border-color: rgba(137, 80, 255, 0.6);
}

.group-name {
    font-weight: 500;
}

@media (max-width: 600px) {

    .profile-page {
        padding: 30px 15px;
    }

    .profile-header {
        flex-direction: column;

        align-items: flex-start;

        padding: 25px;
    }

    .profile-picture {
        width: 90px;
        height: 90px;
    }

    .profile-info h1 {
        font-size: 30px;
    }

    .profile-body {
        padding: 25px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .profile-stats dd {
        margin-bottom: 10px;
    }
}

/* =========================
   PLAYERS
========================= */

.players-page {
    padding: 15px;
}

.players-search {
    display: flex;
    gap: 10px;
    width: 100%;
}

.players-search input {
    flex: 1;

    padding: 10px 14px;

    color: white;
    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 6px;

    outline: none;
}

.players-search input:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.players-search button {
    padding: 10px 18px;

    color: #00d9ff;
    background: rgba(0, 217, 255, 0.08);

    border: 1px solid #00d9ff;
    border-radius: 6px;

    cursor: pointer;
}

.players-search button:hover {
    color: #05050b;
    background: #00d9ff;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 20px;
}

.player-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 12px 15px;

    color: white;
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(137, 80, 255, 0.2);
    border-radius: 8px;

    text-decoration: none;
}

.player-card:hover {
    background: rgba(137, 80, 255, 0.1);
    border-color: rgba(137, 80, 255, 0.4);
}

.player-picture {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;
}

.player-info {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.player-info h2 {
    font-size: 1rem;
}

.player-status {
    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 0.85rem;
}

.messages-page {
    display: flex;
    justify-content: center;
    height: calc(100vh - 150px);
    padding: 20px;
}

.messages {
    display: flex;
    flex-direction: column;

    width: min(900px, 100%);
    height: 100%;

    border: 1px solid #00d9ff;
    border-radius: 8px;

    background: rgba(5, 5, 15, 0.8);
}

.messages-header {
    padding: 1rem 1.25rem;

    border-bottom: 1px solid #333;
}

.messages-header h1 {
    font-size: 1.2rem;
}

.messages-list {
    flex: 1;
    overflow-y: auto;

    display: flex;
    flex-direction: column;

    padding: 1rem;
    gap: 0.75rem;
}

.messages-loader {
    height: 1px;
}

.message {
    display: flex;
    gap: 0.75rem;

    max-width: 75%;
}

.message.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-picture {
    width: 36px;
    height: 36px;
    margin-top: 8px

    flex-shrzink: 0;

    border-radius: 50%;
    object-fit: cover;
}

.message-picture-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #222;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.message-author {
    font-size: 0.8rem;
    color: #aaa;
}

.message-text {
    padding: 0.6rem 0.8rem;

    border-radius: 8px;

    background: #191925;

    overflow-wrap: anywhere;
}

.message.mine .message-text {
    background: #123a44;
}

.message-form {
    display: flex;
    gap: 0.75rem;

    padding: 1rem;

    border-top: 1px solid #333;
}

.message-form textarea {
    flex: 1;

    resize: none;

    padding: 0.6rem 0.8rem;

    border: 1px solid #444;
    border-radius: 6px;

    background: #101018;
    color: white;

    font: inherit;
}

.message-form button {
    padding: 0 1rem;

    border: 1px solid #00d9ff;
    border-radius: 6px;

    background: rgba(0, 217, 255, 0.08);
    color: white;

    cursor: pointer;
}

.message-form button:hover {
    background: #00d9ff;
    color: #05050b;
}

.error-page {
    min-height: calc(100vh - 80px);

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

    padding: 40px 20px;
}

.error-container {
    width: min(600px, 90%);
    padding: 2rem;

    text-align: center;

    background: #11111b;
    border: 1px solid #7a2929;
    border-radius: 8px;

    box-shadow: 0 0 20px rgba(122, 41, 41, 0.25);
}

.error-container h1 {
    margin: 0 0 1rem;

    color: #f5d0d0;
}

.error-message {
    margin: 0 0 1.5rem;

    color: #d9baba;
}

.error-home {
    display: inline-block;

    padding: 0.6rem 1.2rem;

    color: #00d9ff;
    text-decoration: none;

    border: 1px solid #00d9ff;
    border-radius: 5px;

    background: rgba(0, 217, 255, 0.08);
}

.error-home:hover {
    color: #05050b;
    background: #00d9ff;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.6),
        0 0 25px rgba(0, 217, 255, 0.3);
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;               
  background: transparent;   
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#00cfff, #6f3cff, #b000ff); 
  border-radius: 100px;      
}

/*tchat room announcements for games*/
.game-announcement {
    width: fit-content;
    max-width: 90%;
    margin: 10px auto;
    padding: 7px 14px;
    border-radius: 8px;
    background: #29293a;
    font-size: 13px;
    text-align: center;
}

/* Battleships */
.battleships-hit {
    color: yellow;
}

.battleships-sunk {
    color: red;
}

/* Chat du lobby, puttparty lookin ahh */

.game-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
    max-height: 100%;
    background: #11111b;
    border: 1px solid #7c3aed;
    border-radius: 12px;
    overflow: hidden;
    align-self: stretch;
}

.game-chat h3 {
    flex-shrink: 0;
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid #33334a;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 12px;
    overflow-y: auto;
    text-align: left;
}

#chat-form {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    padding: 10px;
    margin-top: auto;
    border-top: 1px solid #33334a;
}

#chat-input {
    flex: 1;
    min-width: 0;
}

#chat-form button {
    padding: 9px 12px;
}