/* Stage UX11: the Rewards area (Wallet, Store, My prizes, How Bucks work) looks like one place. Gold on charcoal; gold marks Bucks and the one
   main button. The tab row (rewards-tabs.js) sits under the page title: one row on wide screens, two by two on phones so all four fit at
   360px with no sideways scrolling. 44px taps, 150-250ms press and lift, nothing moves with reduced motion. Page looks are scoped to
   body.rewards-page so the shared viewer styles of other pages are untouched.
   Stage UX13: every colour is a shared token (tokens.css). In dark the values are exactly the UX11 ones; the light theme switches them. */
.rewards-tabs{margin:0 0 22px}
/* EARN BUCKS PAGE stage: five tabs now (Earn Bucks added). Wide rows wrap rather than run off; on phones the fifth tab takes the full last row. */
.rewards-tabs-row{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;font-size:14px}
.rewards-tab{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;box-sizing:border-box;border:1px solid var(--edge-strong);border-radius:999px;background:var(--surface);color:var(--gold-text);font-weight:800;text-decoration:none;white-space:nowrap;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}
.rewards-tab:hover{border-color:var(--gold);color:var(--gold-strong)}
.rewards-tab:active{transform:translateY(1px) scale(.98)}
.rewards-tab[aria-current=page]{background:var(--gold-metal,var(--gold));border-color:var(--gold);color:var(--on-gold)}
.rewards-tab:focus-visible,.rewards-button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
/* Site review (31 Oct 2026): on phones the pills are one row that scrolls sideways (the next pill peeks in at the edge) instead of a two-by-two
   grid that filled the first screen. The pill you are on is gold and is scrolled into view (rewards-tabs.js). */
@media(max-width:560px){.rewards-tabs-row{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 0 6px}.rewards-tabs-row::-webkit-scrollbar{display:none}.rewards-tab{flex:0 0 auto;padding:0 16px;scroll-snap-align:start}}
/* Aaron, 4 Nov 2026: on desktop the Rewards and Play pill rows sit centred under the centred page heading. Phones and tablets unchanged. */
@media(min-width:769px){.rewards-tabs-row{justify-content:center}}

/* One short line and one button: the signed-out prompt and every empty state. */
.rewards-signin,.rewards-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0 0 22px;padding:16px;border:1px dashed var(--edge-strong);border-radius:14px;background:var(--surface);color:var(--text)}
.rewards-signin[hidden]{display:none}
.rewards-signin p,.rewards-empty p{margin:0;font-size:15px;line-height:1.5}
.rewards-signin{padding:20px;border:1px solid var(--gold-line);border-radius:var(--ic-radius,14px);background:var(--ic-bg,var(--surface));box-shadow:var(--ic-ring,none)}
.rewards-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;box-sizing:border-box;border-radius:10px;border:1px solid var(--gold);background:var(--gold-metal,var(--gold));color:var(--on-gold);font-size:15px;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.rewards-button:hover{box-shadow:0 4px 14px var(--gold-glow);transform:translateY(-1px);color:var(--on-gold)}
.rewards-button:active{transform:translateY(1px) scale(.98);box-shadow:none}
.rewards-button.secondary{background:var(--raised);border-color:var(--edge-strong);color:var(--gold-text)}
.rewards-coin{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--coin);color:var(--on-coin);font:900 12px/1 Montserrat,Arial,sans-serif}
/* Stage UX13: "Link Your Kick Account To Connect Your Wallet" (rewards-tabs.js), for a signed-in viewer whose chat account isn't linked yet.
   A small gold banner with one button to /settings#linked-accounts; it hides once linked and can be dismissed for this visit. */
.rewards-link{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 18px;padding:12px 14px;border:1px solid var(--gold);border-left:4px solid var(--gold);border-radius:12px;background:var(--gold-tint);color:var(--text)}
.rewards-link[hidden]{display:none}
.rewards-link h2{flex:1 1 220px;margin:0;font-size:16px;line-height:1.35;color:var(--gold-text);overflow-wrap:anywhere}
.rewards-link .rewards-button{margin:0}
.rewards-link-close{display:inline-grid;place-items:center;flex:0 0 auto;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--edge-strong);border-radius:10px;background:var(--surface);color:var(--gold-text);font-size:20px;line-height:1;cursor:pointer}

/* Shared page look for the four Rewards pages (bucks-viewer.css is shared by every viewer page, so it is overridden here, not changed). */
body.rewards-page{background:var(--bg-art),var(--bg)}
.rewards-page .intro{padding:8px 0 14px}
.rewards-page .intro h1{font-size:clamp(32px,5vw,52px);margin:8px 0 8px}
.rewards-page .intro>p{color:var(--text-muted);font-size:15px;line-height:1.6;margin:0}
/* body.rewards-page matches the weight of viewer-balance.css's older body:has(.viewer-header) colour rules and loads after them. */
body.rewards-page .eyebrow{color:var(--gold)}
body.rewards-page .card{background:var(--ic-bg,var(--surface));border:1px solid var(--gold-line);border-radius:var(--ic-radius,15px);box-shadow:var(--ic-ring,none)}
body.rewards-page main button{border-color:var(--edge-strong)}
body.rewards-page .store-categories button[aria-pressed=true]{background:var(--gold-metal,var(--gold));border-color:var(--gold);color:var(--on-gold)}
body.rewards-page input:focus,body.rewards-page select:focus{outline-color:var(--gold);border-color:var(--gold)}
.rewards-button[hidden]{display:none}
.rewards-page .card h2{color:var(--text)}
.rewards-page .help{color:var(--text-muted)}
.rewards-page #status{font-weight:700;min-height:1.4em}
.rewards-page #status:not(.error){color:var(--gold-text)}
.rewards-page #status:empty{margin:0}

/* Wallet: the balance up top, then recent activity. */
.wallet-balance{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.wallet-amount{display:flex;align-items:center;gap:12px;margin:4px 0 0;font-size:clamp(40px,9vw,56px);font-weight:850;line-height:1.1;color:var(--gold-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wallet-amount .rewards-coin{width:40px;height:40px;font-size:22px}
.wallet-label{margin:0;color:var(--text-soft);font-size:15px;font-weight:700}
.wallet-note{margin:0;color:var(--text-muted);font-size:14px;line-height:1.6}
.wallet-balance .rewards-button{margin-top:10px}
.wallet-activity{list-style:none;margin:0;padding:0}
.wallet-activity li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.wallet-activity li:first-child{border-top:0}
.wallet-what{font-size:15px;font-weight:700;color:var(--text);overflow-wrap:anywhere}
.wallet-when{grid-column:1;font-size:13px;color:var(--faint)}
.wallet-change{grid-column:2;grid-row:1/span 2;display:inline-flex;align-items:center;gap:6px;font-weight:850;font-size:16px;color:var(--gold-strong);font-variant-numeric:tabular-nums;white-space:nowrap}
.wallet-change.spent{color:var(--text-soft)}
.rewards-page .wallet-prizes .button{justify-content:center;padding:10px 20px;box-sizing:border-box;border:1px solid var(--edge-strong);border-radius:10px;background:var(--raised);color:var(--gold-text);font-size:15px;font-weight:800;text-decoration:none}
.rewards-page .wallet-prizes h2,.rewards-page .wallet-history h2{margin:0 0 10px;font-size:20px}

/* Store: controls and the checkout in the same look, every tap at least 44px. */
.rewards-page main input:not([type=checkbox]),.rewards-page main select,.rewards-page main button{min-height:44px}
.rewards-page .store-stock-filter{min-height:44px}
.rewards-page .store-stock-filter input{width:22px;height:22px;accent-color:var(--gold)}
.rewards-page #retry-claim{margin:0 0 16px}
.rewards-page .store-mine h2{margin:0 0 10px;font-size:20px}
.rewards-page .store-mine .rewards-button{margin-top:6px}
.rewards-page #checkout{background:var(--surface);border-color:var(--gold);color:var(--text);width:min(520px,calc(100vw - 24px));max-height:calc(100vh - 24px);box-sizing:border-box;padding:20px;overflow-y:auto;overflow-x:hidden}
.rewards-page #checkout h2{margin:0 0 8px;font-size:20px}
.rewards-page #checkout label{color:var(--text-soft)}
.rewards-page #checkout #delivery label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:10px;min-height:44px}
.rewards-page #checkout input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;accent-color:var(--gold)}
.checkout-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.checkout-actions button{margin:0}
.rewards-page #redeem{background:var(--gold-metal,var(--gold));color:var(--on-gold);font-size:15px;font-weight:800;padding:10px 20px;border-radius:10px}
.rewards-page .subtle{color:var(--gold-text);border-color:var(--edge-strong);font-size:15px;padding:10px 20px;border-radius:10px}

@media(max-width:480px){.rewards-page .store-browse{grid-template-columns:minmax(0,1fr)}.rewards-page .store-stock-filter{grid-column:auto;padding-bottom:0}.checkout-actions>*{width:100%}}
@media(max-width:480px){.rewards-page main{padding:16px 12px 60px}.rewards-page .card{padding:16px}.rewards-button,.rewards-page .wallet-prizes .button{width:100%}.rewards-link .rewards-button{flex:1 1 auto;width:auto}}
/* Stage UX15: the Store on phones. A price is a gold Bucks pill with the B coin (every width). Cards: two per row on phones, one per row
   below 400px (two would squeeze the words at 360px), compact padding, words wrap instead of running off; the Redeem button is full width
   and 48px tall. The redeem confirm keeps Confirm first, then Go back, both full width in a bar that stays in view at the bottom of the
   dialog (the dialog sits above the phone tab strip and fits the visible screen, 100dvh). No sideways scrolling at 360px. */
.rewards-page .store-product{min-width:0}
.rewards-page .store-product h3,.rewards-page .store-product-description{overflow-wrap:anywhere}
.rewards-page .store-product-price{display:inline-flex;flex-wrap:wrap;align-items:center;align-self:flex-start;gap:6px;max-width:100%;box-sizing:border-box;margin-top:auto;margin-bottom:16px;padding:5px 14px 5px 5px;border:1px solid var(--gold);border-radius:999px;background:var(--gold-tint);color:var(--gold-strong)}
.rewards-page .store-product-price strong{font-size:22px;line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rewards-page .store-product-price span:last-child{font-size:12px;font-weight:800;color:var(--gold-text)}
.rewards-page .store-product-price .rewards-coin{width:24px;height:24px;font-size:13px}
.rewards-page .store-product-button{min-height:44px}
@media(max-width:620px){.rewards-page .storefront .reward-catalogue{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rewards-page .store-product-image{aspect-ratio:4/3}.rewards-page .store-product-type{top:8px;left:8px;font-size:10px;padding:4px 7px}.rewards-page .store-product-content{padding:12px}.rewards-page .store-product h3{font-size:15px;margin-bottom:6px}.rewards-page .store-product-description{font-size:13px;line-height:1.5;margin-bottom:12px}.rewards-page .store-product-price{margin-bottom:12px;padding-right:10px}.rewards-page .store-product-price strong{font-size:17px}.rewards-page .store-product-stock{padding:10px 0;font-size:11px}.rewards-page .store-product-button{width:100%;min-height:48px;font-size:15px;padding:10px 8px}}
@media(max-width:399px){.rewards-page .storefront .reward-catalogue{grid-template-columns:minmax(0,1fr)}.rewards-page .store-product-content{padding:16px}.rewards-page .store-product-price strong{font-size:20px}}
@media(max-width:768px){.rewards-page #checkout{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px 16px 0}.rewards-page .checkout-actions{position:sticky;bottom:0;flex-direction:column;gap:10px;margin:12px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--edge)}.rewards-page .checkout-actions>button{width:100%;min-height:48px}}
@media(prefers-reduced-motion:reduce){.rewards-tab,.rewards-button{transition:none}.rewards-tab:active,.rewards-button:active,.rewards-button:hover{transform:none}}

/* Site review (31 Oct 2026): THE WALLET CARD, Gold On Marble like the On Kick card: the real metallic gold balance on marble, a streak chip,
   progress to the next Store reward and two 44px actions side by side (stacked on phones). A soft wash keeps the veins out from behind the number. */
.rewards-page .wallet-card{position:relative;overflow:hidden;align-items:stretch;border:1px solid var(--gold-line,var(--gold));background:var(--ic-bar,linear-gradient(90deg,var(--gold),var(--gold-strong))) top/100% 4px no-repeat,radial-gradient(ellipse 80% 70% at 30% 45%,color-mix(in oklab,var(--surface) 88%,transparent) 30%,transparent 100%),var(--ic-marble,var(--surface))}
.wallet-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.wallet-label{letter-spacing:.14em;text-transform:uppercase;font-size:12px;color:var(--gold-text)}
.wallet-streak{display:inline-flex;align-items:center;min-height:28px;padding:2px 12px;box-sizing:border-box;border:1px solid var(--gold-line,var(--gold));border-radius:999px;font-size:12px;font-weight:800;color:var(--gold-text)}
.wallet-streak[hidden],.wallet-next[hidden]{display:none}
.wallet-card #balance{background:linear-gradient(180deg,var(--gold-soft,var(--gold)) 0%,var(--gold-strong) 55%,var(--gold) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.wallet-next{margin-top:6px}
.wallet-next-line{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:14px;font-weight:700;color:var(--text-soft)}
.wallet-next-line span:last-child{color:var(--gold-text);font-variant-numeric:tabular-nums}
.wallet-next-bar{height:8px;margin-top:6px;border-radius:99px;background:var(--line);overflow:hidden}
.wallet-next-bar span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--gold),var(--gold-strong))}
.wallet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.wallet-actions .rewards-button{flex:1 1 160px;margin:0}
.wallet-card .rewards-button.secondary{background:transparent;border-color:var(--gold-line,var(--gold));color:var(--gold-text)}
/* Wallet activity pages (Aaron, 31 Oct 2026): 5 newest rows, View All Activity (metallic gold), then 20 a page with Previous / Next.
   Fits 360px with no sideways scroll; every control is 44px; theme tokens only. */
.wallet-history .wallet-toggle{display:flex;width:100%;margin-top:12px;border-color:var(--gold-metal-edge,var(--gold));background:var(--gold-metal,var(--gold));color:var(--on-gold-metal,var(--on-gold))}
.wallet-history .wallet-toggle:hover{background:var(--gold-metal-hover,var(--gold-metal,var(--gold)));color:var(--on-gold-metal,var(--on-gold))}
.wallet-history .wallet-toggle[aria-expanded=true]{background:var(--raised);border-color:var(--edge-strong);color:var(--gold-text)}
.wallet-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.wallet-pager .rewards-button{width:100%;min-width:0;min-height:44px;padding:10px 12px;white-space:normal;text-align:center;line-height:1.2}
.wallet-pager .rewards-button:disabled,.wallet-history .wallet-toggle:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.wallet-page-at{font-size:14px;font-weight:700;color:var(--text-soft);white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
.wallet-pager-status{margin:10px 0 0;font-size:14px;color:var(--text-soft)}
.wallet-pager-status[hidden]{display:none}
@media(max-width:480px){.wallet-pager{grid-template-columns:1fr 1fr}.wallet-page-at{grid-column:1/-1;grid-row:1}.wallet-pager .rewards-button{font-size:14px}}
/* R2 (2 Nov 2026): phones, Rewards and Play tab rows. While more tabs sit past the right edge, a soft fade into the page background
   shows the row scrolls (rewards-tabs.js toggles it). It never takes taps; the Store and Become A Clipper rows don't get it. */
@media(max-width:560px){.rewards-tabs-fade{position:relative}.rewards-tabs-fade::after{content:"";position:absolute;top:0;right:0;bottom:6px;width:40px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--bg) 85%);opacity:0;transition:opacity .2s ease}.rewards-tabs-fade.rewards-tabs-more::after{opacity:1}}
