/* =========================================================================
 * Player wallet (skinsflow.com/wallet/*) on the marketing "default" layout.
 * Mobile first; uses the theme tokens and components (card, field, badge,
 * table, datalist, callout) and adds only the wallet pieces:
 *
 *   .wl-hero .wl-hero__inner .wl-id .wl-avatar .wl-tabs .wl-tab.is-active
 *   .wl-body .wl-grid .wl-balance .wl-balance__amount .wl-balance__row .wl-actions .wl-action
 *   .wl-list .wl-row .wl-row__main .wl-row__amount.is-in/.is-out  .wl-presets  .wl-status
 *   .wl-dest .wl-steps .wl-code
 * ========================================================================= */

.wl-hero {
    position: relative; overflow: hidden;
    padding: 36px 0 0;
    background:
        radial-gradient(60% 120% at 85% 0%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 70%),
        radial-gradient(50% 120% at 0% 10%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 70%);
    border-bottom: 1px solid var(--line);
}
/* The floating site header overlaps the page by 74px above 1080px (12px below). */
@media (min-width: 1081px) { .wl-hero { padding-top: 116px; } }
.wl-hero__inner { display: flex; flex-direction: column; gap: 14px; }
.wl-hero h1 { font-size: clamp(26px, 4vw, 36px); }
.wl-hero .lead { font-size: 16px; }

.wl-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wl-id__name { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.wl-id__meta { font-size: 12px; color: var(--muted); }
.wl-avatar { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); object-fit: cover; flex: none; background: var(--panel-2); }
.wl-avatar--lg { width: 64px; height: 64px; border-radius: 16px; }

.wl-tabs { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.wl-tabs::-webkit-scrollbar { display: none; }
.wl-tab { flex: none; padding: 12px 14px 13px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.wl-tab:hover { color: var(--fg); }
.wl-tab.is-active { color: var(--fg); border-bottom-color: var(--mint); }

.wl-body { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 7vw, 80px); }
.wl-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .wl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; } }

.wl-balance { display: flex; flex-direction: column; gap: 18px; background:
    linear-gradient(160deg, color-mix(in srgb, var(--mint) 9%, var(--panel)) 0%, var(--panel) 55%); }
.wl-balance__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wl-balance__amount { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 8vw, 56px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wl-balance__row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wl-balance__row div { background: color-mix(in srgb, var(--panel-2) 70%, transparent); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; min-width: 0; }
.wl-balance__row dt { font-size: 12px; color: var(--muted); }
.wl-balance__row dd { margin: 2px 0 0; font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.wl-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .wl-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wl-action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-weight: 600; font-size: 14px; min-height: 84px; }
.wl-action:hover { border-color: var(--line-2); background: var(--panel-3); color: var(--fg); }
.wl-action svg { width: 20px; height: 20px; color: var(--mint); }
.wl-action--primary { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.wl-action--primary svg { color: var(--ink); }
.wl-action--primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); color: var(--ink); }
.wl-action span { font-weight: 500; font-size: 12px; color: inherit; opacity: .75; }

.wl-list { list-style: none; margin: 0; padding: 0; }
.wl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: 0; }
.wl-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-row__title { font-weight: 600; font-size: 14px; }
.wl-row__meta { font-size: 12px; color: var(--muted); }
.wl-row__amount { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.wl-row__amount.is-in { color: var(--mint); }
.wl-row__amount.is-out { color: var(--fg); }

.wl-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-presets .btn { min-height: 36px; padding: 8px 14px; font-family: var(--f-mono); }

.wl-status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: clamp(28px, 5vw, 44px); }
.wl-status__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel-2); }
.wl-status__icon svg { width: 26px; height: 26px; }
.wl-status--paid .wl-status__icon { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 50%, var(--line)); }
.wl-status--waiting .wl-status__icon { color: var(--warning); }
.wl-status--waiting .wl-status__icon svg { animation: wl-spin 2.4s linear infinite; }
.wl-status--expired .wl-status__icon, .wl-status--failed .wl-status__icon { color: var(--danger); }
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-dest { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wl-dest:last-child { border-bottom: 0; }
.wl-dest__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wl-dest form { margin: 0; }

.wl-steps { list-style: none; counter-reset: wl; padding: 0; margin: 0; display: grid; gap: 12px; }
.wl-steps li { counter-increment: wl; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.wl-steps li::before { content: counter(wl); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); font-family: var(--f-mono); font-size: 12px; }

.wl-code { font-family: var(--f-mono); font-size: 26px; letter-spacing: .4em; text-align: center; max-width: 260px; }

.wl-preview { margin: 0; display: block; }
.wl-preview .datalist__row:last-child { font-weight: 700; }

/* .player-chip / .steam-signin: theme.css (the chip is in the site header on every page). */
.wl-row__side { align-items: flex-end; }
.wl-preview .datalist__row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.wl-preview .datalist__key, .wl-preview .datalist__value { border-bottom: 0; }
.wl-preview .datalist__value { text-align: right; }
