body {
    margin: 0;
    background: #111827;
    color: #f9fafb;
    font-family: Arial, sans-serif;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

h1, h2, h3 {
    margin-top: 0;
}

a, button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

a.secondary, button.secondary {
    background: #475569;
}

button.success {
    background: #16a34a;
}

.muted {
    color: #cbd5e1;
}

.card, section.card {
    background: #020617;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 32px;
}

/* Form common styles */
label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="color"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #f9fafb;
}

.errorlist, .error {
    color: #fca5a5;
}

.helptext {
    color: #cbd5e1;
    font-size: 14px;
}

/* Home page styles */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.hero-actions form {
    margin: 0;
}

.games {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.games h2 {
    grid-column: 1 / -1;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
}

.game-card {
    background: #020617;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
    border-color: #475569;
    transform: translateY(-4px);
}

.game-card h3 {
    margin-bottom: 8px;
}
