/* =====================================================
   SHARED LAYOUT
===================================================== */

body {
    margin: 0;
    background: #eef1f5;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

a {
    color: #0066cc;
}


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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.site-header .brand {
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    color: #222;
}

.site-header .account {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.site-header .player {
    font-weight: bold;
}

.language-form select {
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.site-header button,
.auth-form button {
    border: none;
    border-radius: 9px;
    padding: 9px 18px;
    background: #222;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.site-header button:hover,
.auth-form button:hover {
    background: #444;
}


/* =====================================================
   MESSAGES
===================================================== */

.messages {
    max-width: 900px;
    margin: 16px auto 0;
    padding: 0 20px;
    list-style: none;
}

.messages li {
    background: #e5f7e9;
    border: 1px solid #40a85a;
    border-radius: 9px;
    padding: 10px 14px;
}


/* =====================================================
   AUTH PAGES
===================================================== */

.auth-card {
    width: min(420px, 92%);
    margin: 50px auto;
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.auth-card h1 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
}

.auth-card p {
    text-align: center;
}

.auth-form p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 14px;
}

.auth-form label {
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

.auth-form input {
    padding: 10px;
    border: 2px solid #bbb;
    border-radius: 9px;
    font-size: 16px;
}

.auth-form .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #c62828;
    font-size: 13px;
}

.auth-form .helptext {
    color: #777;
    font-size: 12px;
}

.auth-form button {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}


/* =====================================================
   RESULT HISTORY
===================================================== */

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table th,
.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e6ea;
    text-align: left;
}

.results-table th {
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.results-table tr:hover td {
    background: #f5f8fb;
}

.totals {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #f5f8fb;
    border-radius: 12px;
    font-size: 15px;
}

.totals strong {
    font-size: 17px;
}

@media (max-width: 700px) {
    .results-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
    .site-header {
        padding: 10px 14px;
    }

    .site-header .account {
        gap: 8px;
        font-size: 14px;
    }
}
