.md-reward-page {
    --reward-panel: #1c1d21;
    --reward-line: #2a2b30;
    --reward-muted: #b1b1ba;
    --reward-accent: #ffd39a;
    width: min(100%, 600px);
    min-height: 100vh;
    margin: 0 auto;
    padding: env(safe-area-inset-top, 0px) 14px max(22px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    color: #f5f1eb;
    background: #121214;
    font-size: 14px;
}

.md-reward-header {
    position: relative;
    display: grid;
    min-height: 54px;
    place-items: center;
}

.md-reward-header > a {
    position: absolute;
    inset: 4px auto 4px -5px;
    display: grid;
    width: 44px;
    place-items: center;
    color: inherit;
}

.md-reward-header > a i { font-size: 18px; }
.md-reward-page h1, .md-reward-page h2 { margin: 0; line-height: 1.35; }
.md-reward-page h1 { font-size: 17px; }
.md-reward-page h2 { font-size: 15px; }

.md-reward-balance, .md-reward-card, .md-reward-feedback {
    border: 1px solid var(--reward-line);
    border-radius: 15px;
    background: var(--reward-panel);
}

.md-reward-balance {
    display: flex;
    min-height: 83px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    color: var(--reward-accent);
    background: linear-gradient(122deg, #382919, #212024 72%);
}

.md-reward-balance strong { display: block; margin-top: 3px; font-size: 26px; }
.md-reward-balance > span { white-space: nowrap; }
.md-reward-card, .md-reward-feedback { margin: 12px 0 0; padding: 14px; }
.md-reward-feedback { color: #ffe4c4; }
.md-reward-feedback.is-success { color: #a5e6bb; }

.md-reward-row {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.md-reward-card > h2 + .md-reward-row { margin-top: 10px; }
.md-reward-card .md-reward-row + .md-reward-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--reward-line); }
.md-reward-row > div { min-width: 0; overflow-wrap: anywhere; }
.md-reward-row > div > span { display: block; margin-top: 4px; color: var(--reward-muted); font-size: 12px; }
.md-reward-row form { margin: 0; }

.md-reward-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    color: #25190e;
    background: var(--reward-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.md-reward-page :focus-visible { outline: 2px solid #fff1dc; outline-offset: 3px; }
.md-reward-state { color: var(--reward-muted); font-size: 12px; white-space: nowrap; }
.md-reward-guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
