:root {
    --bg: #111315;
    --bg-alt: #1a1f23;
    --card: rgba(22, 28, 32, 0.92);
    --line: rgba(255, 255, 255, 0.09);
    --text: #eef3f4;
    --muted: #9eacb1;
    --accent: #8fe36b;
    --accent-strong: #63c340;
    --danger: #d8645a;
    --paypal: #ffc439;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(143, 227, 107, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 196, 57, 0.14), transparent 22%),
        linear-gradient(160deg, #0d1012 0%, #161d21 50%, #0f1317 100%);
    font: 16px/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.auth-shell {
    max-width: 860px;
    display: grid;
    gap: 20px;
    padding-top: 56px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    padding: 24px;
}

.hero-card h1,
.topbar h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.lede,
.muted {
    color: var(--muted);
}

.flash {
    margin-top: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(99, 195, 64, 0.15);
    border-color: rgba(99, 195, 64, 0.45);
}

.flash-error {
    background: rgba(216, 100, 90, 0.14);
    border-color: rgba(216, 100, 90, 0.45);
}

.flash-info {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.stack-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label,
.label-head {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: 2px solid rgba(143, 227, 107, 0.45);
    border-color: rgba(143, 227, 107, 0.45);
}

.check-row {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.check-card {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.check-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar,
.section-head,
.user-actions,
.topbar-actions,
.game-actions,
.donate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-shell,
.admin-shell {
    display: grid;
    gap: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #0f160c;
    border-color: transparent;
}

.button-paypal {
    background: linear-gradient(135deg, var(--paypal) 0%, #f2ab1f 100%);
    color: #182033;
    border-color: transparent;
}

.button-danger {
    background: rgba(216, 100, 90, 0.14);
    border-color: rgba(216, 100, 90, 0.45);
}

.button-disabled,
.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pill-admin,
.pill-scummvm,
.pill-dosbox {
    color: #10130f;
}

.pill-admin,
.pill-scummvm {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.pill-dosbox {
    background: linear-gradient(135deg, #ffd66b 0%, #ffb22e 100%);
}

.game-grid,
.user-list {
    display: grid;
    gap: 16px;
}

.game-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.game-card,
.user-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.game-card {
    display: grid;
    gap: 18px;
}

.user-card {
    display: grid;
    gap: 16px;
}

.compact-form {
    gap: 14px;
}

.danger-form {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding: 20px 0 32px;
    }

    .topbar,
    .section-head,
    .user-actions,
    .topbar-actions,
    .game-actions,
    .donate-card {
        flex-direction: column;
        align-items: stretch;
    }
}

