*
{
    box-sizing: border-box;
}

body
{
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card
{
    width: min(100%, 640px);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
}

.card.wide
{
    width: min(100%, 1200px);
}

h1
{
    margin-top: 0;
    font-size: 2rem;
}

h2
{
    margin-bottom: 0;
    font-size: 1.25rem;
}

a
{
    color: #1c5ed6;
}

.muted
{
    color: #667085;
}

.actions
{
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.actions-inline
{
    margin-top: 24px;
}

.button,
button
{
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    background: #1c5ed6;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.button-secondary
{
    background: #eef3ff;
    color: #1c5ed6;
}

.form
{
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

input[type="file"]
{
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
}

.notice
{
    padding: 14px 16px;
    border-radius: 10px;
    margin: 18px 0;
}

.notice.success
{
    background: #ecfdf3;
    color: #027a48;
}

.notice.error
{
    background: #fef3f2;
    color: #b42318;
}

.notice.info
{
    background: #eef3ff;
    color: #1c5ed6;
}

table
{
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    overflow-wrap: anywhere;
}

th,
td
{
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    padding: 12px;
    vertical-align: top;
}

th
{
    color: #344054;
    font-size: 0.9rem;
}

@media (max-width: 680px)
{
    .card
    {
        padding: 22px;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td
    {
        display: block;
    }

    thead
    {
        display: none;
    }

    tr
    {
        border-bottom: 1px solid #eaecf0;
        padding: 10px 0;
    }

    td
    {
        border: 0;
        padding: 6px 0;
    }
}

.version
{
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1c5ed6;
    font-size: 0.85rem;
    font-weight: 700;
    vertical-align: middle;
}

.game-cover
{
    width: 48px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    color: #1c5ed6;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(23, 32, 51, 0.12);
}

.game-cover-placeholder
{
    border: 1px solid #d0d5dd;
}

.description-cell
{
    max-width: 280px;
    line-height: 1.45;
}

.identifier-cell
{
    max-width: 220px;
    font-family: monospace;
    font-size: 0.9rem;
}

.notice.warning
{
    background: #fffaeb;
    color: #b54708;
}

input[type="text"],
input[type="email"],
input[type="password"]
{
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
}

.form-actions-row
{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-anonymous
{
    color: #667085;
    font-style: italic;
}

.inline-form
{
    margin: 0;
}

.button-danger
{
    background: #fef3f2;
    color: #b42318;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.account-section
{
    margin-top: 32px;
}

.danger-zone
{
    border-top: 1px solid #eaecf0;
    padding-top: 24px;
}

body
{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", Arial, sans-serif;
}

.language-switcher
{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.language-switcher label
{
    color: #667085;
    font-size: 0.9rem;
}

.language-switcher select
{
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 8px 10px;
    background: #ffffff;
}

html[dir="rtl"] body
{
    direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td
{
    text-align: right;
}

html[dir="rtl"] .version
{
    margin-left: 0;
    margin-right: 10px;
}