:root {
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1b1f24;
    --muted: #5f6b7a;
    --border: #e3e6ea;
    --accent: #1f6feb;
    --accent-text: #ffffff;
    --success: #1a7f37;
    --danger: #c62828;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 14px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.brand { color: var(--text); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { display: block; max-height: 40px; }

.player { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.player-name { font-weight: 600; }

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }

.page-title { margin: 4px 0 16px; font-size: 1.5rem; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.login { max-width: 420px; margin: 24px auto; }
.login h1 { margin-top: 0; font-size: 1.6rem; line-height: 1.25; }

.bonuses { display: grid; gap: 16px; }
.bonus { display: grid; gap: 16px; padding: 0; overflow: hidden; }
.bonus-image { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.bonus-body { padding: 0 20px 20px; }
.bonus:not(:has(.bonus-image)) .bonus-body { padding-top: 20px; }
.bonus h2 { margin: 0 0 6px; font-size: 1.2rem; }

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

label { display: block; margin-bottom: 6px; font-weight: 600; }

input {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--text);
    background: var(--card);
}

button, .button {
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button.link { width: auto; padding: 0; background: none; color: var(--accent); font-weight: 500; }

.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #e8f0fe; }
.notice-error { background: #fdecea; color: var(--danger); }

.result { text-align: center; }
.result .eyebrow { margin: 0 0 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.result h1 { font-size: 1.35rem; }
.result-approved h1, .amount { color: var(--success); }
.amount { margin: 0 0 20px; font-size: 2.2rem; font-weight: 800; }
.result-rejected h1, .result-error h1, .result-review h1 { color: var(--danger); }

.spinner {
    width: 40px;
    height: 40px;
    margin: 8px auto 16px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 32px 0; }

.site-footer { padding: 24px 16px; text-align: center; color: var(--muted); font-size: .85rem; }

@media (min-width: 640px) {
    .bonus { grid-template-columns: 220px 1fr; }
    .bonus-image { height: 100%; aspect-ratio: auto; }
    .bonus-body { padding: 20px 20px 20px 0; }
    .bonus:not(:has(.bonus-image)) { grid-template-columns: 1fr; }
    .bonus:not(:has(.bonus-image)) .bonus-body { padding: 20px; }
    .bonus button { width: auto; }
}
