/* riprival.com: the game fills a phone's screen; on a computer it sits in a phone-sized frame with the policies underneath. */
body.live { margin: 0; background: #000; }
body.live .page { display: flex; flex-direction: column; align-items: center; min-height: 100dvh; padding: 0; max-width: none; gap: 0; }
body.live .phone { position: relative; top: 0; width: 100%; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; box-shadow: none; }
body.live .picks, body.live .test-jump { display: none !important; }
body.live .site-foot { display: none; }
@media (min-width: 640px) and (min-height: 700px) {
  body.live { background: #0b0d12; }
  body.live .page { padding: 18px 16px 10px; }
  body.live .phone { width: min(430px, 100%); height: min(920px, calc(100dvh - 76px)); border-radius: 28px; box-shadow: 0 0 0 6px #000, 0 0 0 7px #2a2f3a; }
  body.live .site-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 640px; padding: 14px 0 6px; color: #8c93a3; font: 500 12px/1.4 -apple-system, system-ui, "Segoe UI", sans-serif; text-align: center; }
  body.live .site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  body.live .site-foot a { color: #c7ccd8; text-decoration: none; }
  body.live .site-foot a:hover { text-decoration: underline; }
}

/* Sign in, over everything. */
.login-layer { z-index: 40; background: #000; }
.login .scr-scroll { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: 24px; }
.login-mark { display: block; margin: 0 auto 6px; }
.login-intro { margin: 0 0 4px; text-align: center; color: #b9c0cf; font: 600 15px/1.4 var(--ui-text, inherit); }
.login-check { margin-top: 2px; }
.login-check a, .fine a { color: inherit; text-decoration: underline; }

/* Small print under forms. */
.fine { margin: 10px 2px 0; color: #8f98aa; font: 500 12.5px/1.45 var(--ui-text, inherit); }

/* A select and Stripe's secure fields look like our inputs. */
.field select { box-sizing: border-box; display: block; width: 100%; height: 50px; padding: 0 12px; border: 0; color: #fff; font: 700 16px/1 var(--ui-text, inherit); background: linear-gradient(#0a0d14, #161b26); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); outline: 0; appearance: none; -webkit-appearance: none; }
.field input:disabled { color: #9aa3b5; }
.stripe-field { box-sizing: border-box; height: 50px; padding: 15px 14px 0; background: linear-gradient(#0a0d14, #161b26); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }

/* The ID check. */
.id-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #ffffff22; border-top-color: #fff; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: liveSpin .9s linear infinite; } }
@keyframes liveSpin { to { transform: rotate(360deg); } }
.id-shot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 16px; cursor: pointer; }
.id-shot span { display: flex; flex-direction: column; gap: 3px; }
.id-shot span span { color: #9aa3b5; font-weight: 500; font-size: 13px; }

/* Add Money: Apple's or Google's own button where Rips' white "Pay with" button sits. */
.dep-live { position: relative; flex: none; width: 100%; min-height: 50px; }
.dep-ece { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dep-ece.is-on { opacity: 1; pointer-events: auto; z-index: 2; }
.dep-live .dep-pay.is-off { visibility: hidden; }
/* Grey, like the disabled pay button, until Apple's or Google's own button can take the payment; a tap says why. */
.dep-live .dep-pay.is-wait, .dep-live .dep-pay.is-wait:active { background: #6d6d6d; color: #262626; cursor: default; }
.dep-live .dep-pay.is-wait .mk { filter: grayscale(1) brightness(.5); }
/* PayPal's and Venmo's buttons draw on a white square; a pill-shaped holder clips it, so the sheet stays black around the button. */
.dep-live .dep-ece.is-pp { border-radius: 999px; overflow: hidden; }
.dep-none { margin: 6px 0 0; text-align: center; color: #9aa3b5; font: 500 12.5px/1.4 -apple-system, system-ui, sans-serif; }

/* Cash Out's "Transfer to:" row. */
.transfer-row { margin-top: 12px; }

/* Buy waits for the server for a moment. */
.ui-buy.is-wait { opacity: .7; pointer-events: none; }

/* ======================================================================================================================================
   Inside our apps (html.rr-app, set by in-app.js) on a screen wider than a phone: the W2 "Big stage" layout for iPad and iPhone Duo.
   Phones are untouched: every rule below needs an app window at least 561 px wide, or one at least 3:5 wide (no phone is; a 16:9 phone is
   0.56). The 3D hall fills the whole screen (its camera already sizes the front pack by the screen's height), the controls sit in a centred
   dock, pages are a centred column with more cards per row, sheets float in the middle, and on the short outer display of iPhone Duo the
   tabs stand in a rail on the right edge. Interface sizes grow by --z with the `scale` property, on whole layers laid out at 1/--z of the
   screen, so WebKit and Chrome measure them the same way (CSS zoom measured differently in each). The 3D canvases are never scaled. The
   page's own scripts read --z to turn finger movement into the scaled layers' distances (it is unset on phones, which read it as 1).
   ====================================================================================================================================== */

/* Any app window 561 px or wider fills the screen: no website frame, no policy footer, and room for the status bar and the home bar.
   (Without this, game.css caps the app at 410 px between 561 and 860 px wide, and live.css frames it from 640 px.) */
@media (min-width: 561px) {
  html.rr-app body.live { background: #000; }
  html.rr-app body.live .page { padding: 0; }
  html.rr-app body.live .phone { width: 100%; max-width: none; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; box-shadow: none; }
  html.rr-app body.live .site-foot { display: none; }
  html.rr-app .hud-top, html.rr-app .pg-top, html.rr-app .scr-bar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  html.rr-app .phone .ui-tabs { padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  html.rr-app .sheet { max-height: calc(100cqh - 34px - env(safe-area-inset-top, 0px)); }
  html.rr-app .phone .forge-back { top: calc(12px + env(safe-area-inset-top, 0px)); }
}

/* ---------- Every wide screen (iPad, both displays of iPhone Duo) ---------- */
@media (min-aspect-ratio: 3/5) {
  html.rr-app body.live { background: #000; }
  html.rr-app body.live .page { padding: 0; }
  html.rr-app body.live .phone { width: 100%; max-width: none; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; box-shadow: none; }
  html.rr-app body.live .site-foot { display: none; }
  /* The rival battle keeps its locked 2:3 scene, never drawn above 1.3x its art's pixels (battle.ts reads --bt-max-px), and the bands
     beside it get artwork instead of flat grey (Apple: fill letterbox padding). The words line up under the scene. */
  html.rr-app .bt-root { isolation: isolate; background: #07080d; --bt-max-px: 1331; }
  html.rr-app .bt-root::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 50% 36%, color-mix(in oklab, var(--tier) 45%, transparent), transparent 75%), url(wide/hall_gold_blur.jpg) 50% 40% / cover no-repeat; opacity: .55; }
  html.rr-app .bt-boxwrap { align-self: center; width: min(100%, calc(var(--bt-sw, 100vw) + 20px)); }
}

/* ---------- iPad and the inner display of iPhone Duo: the dock, the pages and the sheets at tablet size ---------- */
@media (min-aspect-ratio: 3/5) and (min-width: 600px) {
  html.rr-app .phone { --z: 1; --dock: 600px; --col: 600px; }
  /* The top bar and the dock, scaled from their own corner, with tablet margins. */
  html.rr-app .hud-top { box-sizing: border-box; left: 0; right: auto; width: calc(100% / var(--z)); scale: var(--z); transform-origin: 0 0; padding: calc(14px + env(safe-area-inset-top, 0px) / var(--z)) calc(22px + env(safe-area-inset-right, 0px) / var(--z)) 14px calc(22px + env(safe-area-inset-left, 0px) / var(--z)); }
  html.rr-app .hud-low { box-sizing: border-box; left: 0; right: auto; width: calc(100% / var(--z)); scale: var(--z); transform-origin: 0 100%; padding: 44px 0 0; background: linear-gradient(to bottom, transparent, rgba(6, 8, 14, .55) 60px, rgba(6, 8, 14, .5) 140px, rgba(6, 8, 14, .62)); }
  html.rr-app .hud-low > :not(.ui-tabs) { width: calc(100% - 44px); max-width: var(--dock); justify-self: center; }
  html.rr-app .hud-low > .buy-wrap { margin-bottom: 8px; }
  /* The tab bar spans the screen; its five tabs sit together in the middle. */
  html.rr-app .phone .ui-tabs { margin: 0; grid-template-columns: repeat(5, minmax(0, 136px)); justify-content: center; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px) / var(--z)); }
  /* Pages: the whole layer laid out at 1/--z and scaled up, a centred column inside it. */
  html.rr-app #pageLayer { inset: 0 auto auto 0; width: calc(100% / var(--z)); height: calc(100% / var(--z)); scale: var(--z); transform-origin: 0 0; container-type: size; }
  html.rr-app #pageLayer .pg-top { padding-top: calc(12px + env(safe-area-inset-top, 0px) / var(--z)); }
  html.rr-app .pg-top, html.rr-app .pg-scroll { box-sizing: border-box; width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); align-self: center; }
  html.rr-app .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Full screens (a pull's result, a card, shipping, sign-in): the same, so the card still fills the stage by height and the words and
     buttons grow and stay together in the middle. */
  html.rr-app .stack > .scr { inset: 0 auto auto 0; width: calc(100% / var(--z)); height: calc(100% / var(--z)); scale: var(--z); transform-origin: 0 0; container-type: size; }
  html.rr-app .stack > .scr .scr-bar { padding-top: calc(12px + env(safe-area-inset-top, 0px) / var(--z)); }
  html.rr-app .hero-foot .gm-split { max-width: 470px; }
  /* Full-screen forms (sign-in, shipping, cash out, the ID check, settings) keep to the same centred column as the pages. */
  html.rr-app .stack > .scr:not(.scr-hero) > :is(.scr-bar, .scr-scroll, .scr-foot) { box-sizing: border-box; width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); align-self: center; }
  html.rr-app .stack > .scr .scr-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px) / var(--z)); }
  html.rr-app .hero-foot { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px) / var(--z)); }
  /* Sheets float in the middle as a card, the way iPad presents a form sheet, instead of stretching edge to edge. Add money keeps its
     own size (Apple Pay's button is drawn by the app over its pay spot). */
  html.rr-app .sheet-wrap { justify-content: center; align-items: center; }
  html.rr-app .sheet-wrap:not(:has(.sheet-deposit)) { inset: 0 auto auto 0; width: calc(100% / var(--z)); height: calc(100% / var(--z)); scale: var(--z); transform-origin: 0 0; container-type: size; }
  html.rr-app .sheet-wrap:has(.sheet-deposit) { --z: 1; }
  html.rr-app .sheet-shell { width: min(460px, 100% - 40px); }
  html.rr-app .sheet-deposit { height: min(860px, calc(100cqh - 80px)); }
  html.rr-app .sheet { --c: 16px; max-height: calc(100cqh - 34px); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); padding-bottom: 18px; }
}
/* Bigger on taller screens: the iPhone Duo inner display and the smaller iPads in portrait, then the 13-inch iPad. A short landscape
   window stays at 1 so the dock never meets the pack. */
@media (min-aspect-ratio: 3/5) and (min-width: 600px) and (min-height: 800px) { html.rr-app .phone { --z: 1.12; } }
@media (min-aspect-ratio: 3/5) and (min-width: 900px) { html.rr-app .phone { --dock: 620px; --col: 680px; } html.rr-app .grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-aspect-ratio: 3/5) and (min-width: 900px) and (min-height: 1000px) { html.rr-app .phone { --z: 1.28; } }

/* ---------- The outer display of iPhone Duo (short and wide): the tabs become a rail on the right edge ---------- */
@media (min-aspect-ratio: 3/5) and (max-width: 599px) {
  html.rr-app .phone { --rail: calc(66px + env(safe-area-inset-right, 0px)); }
  html.rr-app .hud-top, html.rr-app .pg-top, html.rr-app .scr-bar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  /* The rail: the same metal bar, standing on the right edge, its tabs in the middle (the top stays clear for the camera and status bar). */
  html.rr-app .phone .ui-tabs { position: absolute; z-index: 15; top: 0; bottom: 0; width: var(--rail); margin: 0; padding: 76px env(safe-area-inset-right, 0px) calc(10px + env(safe-area-inset-bottom, 0px)) 0; grid-template-columns: 1fr; grid-auto-rows: 64px; align-content: center; gap: 6px; pointer-events: auto; box-shadow: inset 1.5px 0 #c3cfe4, inset 2.5px 0 #0007, -6px 0 14px #0008; }
  html.rr-app .phone .ui-tab { min-height: 62px; width: 100%; }
  html.rr-app .phone .ui-tab.is-on { transform: translateX(-4px); }
  /* Packs: the stage and the controls keep everything left of the rail; the controls reach the top so the rail can run the full height. */
  html.rr-app #stage { width: calc(100% - var(--rail)); }
  html.rr-app .hud-top { right: var(--rail); padding-left: calc(14px + env(safe-area-inset-left, 0px)); }
  html.rr-app .hud-low { top: 0; right: var(--rail); align-content: end; padding-left: calc(14px + env(safe-area-inset-left, 0px)); background: linear-gradient(to bottom, transparent, rgba(6, 8, 14, .5) 40px, rgba(6, 8, 14, .42) 110px, rgba(6, 8, 14, .5)) bottom / 100% 230px no-repeat; }
  html.rr-app .hud-low .ui-tabs { right: calc(-1 * var(--rail)); }
  html.rr-app .swipe.r { right: calc(var(--rail) + 3px); }
  /* Pages: the column leaves room for the rail, which sits in that room. */
  html.rr-app .pg { padding-right: var(--rail); padding-left: env(safe-area-inset-left, 0px); }
  html.rr-app .pg .ui-tabs { right: 0; }
  html.rr-app .stack > .scr { padding-right: env(safe-area-inset-right, 0px); padding-left: env(safe-area-inset-left, 0px); }
}

/* ---------- Tap targets of at least 44 points on every wide screen (Apple's minimum), drawn at --z ---------- */
@media (min-aspect-ratio: 3/5) {
  /* The app's own buttons grow to 44 points as drawn, never smaller than they already are. */
  html.rr-app .phone .hud-top :is(.ui-select, .ui-capsule), html.rr-app .phone .pg-top :is(.ui-select, .ui-capsule) { min-height: max(38px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .hud-top .ui-capsule-plus, html.rr-app .phone .pg-top .ui-capsule-plus { min-height: max(42px, calc(44px / var(--z, 1))); width: max(42px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .title-row .ui-chip { min-height: max(34px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .gm-pill { min-height: max(38px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .gm-enter { min-height: max(40px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .gm-invite { min-height: max(42px, calc(44px / var(--z, 1))); }
  html.rr-app .phone .gm-ico { width: max(42px, calc(44px / var(--z, 1))); min-height: max(42px, calc(44px / var(--z, 1))) !important; }
  html.rr-app .phone .gm-ico-sm { width: max(34px, calc(44px / var(--z, 1))); min-height: max(34px, calc(44px / var(--z, 1))) !important; }
  /* Add money keeps Rips' look; its close button, method menu and amount pills reach further than they draw. */
  html.rr-app .dep-sel, html.rr-app .dep-chip { position: relative; }
  html.rr-app :is(.dep-sel, .dep-chip)::after { content: ''; position: absolute; inset: -4.5px 0; }
  html.rr-app .dep-x::after { content: ''; position: absolute; inset: -4px; }
}

/* ======================================================================================================================================
   Referral v2 (REFERRAL_V2, the test site first; owner's picks 2026-11-08 from boards/referral-puller). Every class here is new, and only
   referral v2 puts them on the page (screens.ts refTop, offerCard, offerBanner; puller_spin.ts), so with it off nothing changes.
   ====================================================================================================================================== */
/* The referrer's "Spin to reveal" card (lean A: one stacked card with a count) and the "Your packs" row, as on the board's multi.html. */
.rp-claim { box-shadow: none !important; filter: drop-shadow(0 0 12px rgba(242, 194, 79, .28)); }
/* The gold rim follows the panel's cut corners (the ::before frame is clipped to --pl-ch); a box-shadow ring drew a square box around it (owner, 2026-11-10). */
.rp-claim::before { background: linear-gradient(#ffe9a8, #d8a838 30%, #8a6516 62%, #e9bf55) !important; }
.rp-claim h3 { color: #ffe9a8; }
.rp-art { position: relative; flex: none; display: block; width: 84px; margin-right: 4px; }
.rp-art img { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.rp-stack::before, .rp-stack::after { content: ""; position: absolute; z-index: 1; inset: 6% 8%; border-radius: 6px; background: url(ref/referral_pack.png) 50% 50% / contain no-repeat; filter: brightness(.55); }
.rp-stack::before { transform: translate(9px, -6px) rotate(6deg); }
.rp-stack::after { transform: translate(-7px, -3px) rotate(-5deg); filter: brightness(.4); }
.rp-count { position: absolute; z-index: 3; right: -10px; top: -8px; min-width: 34px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(180deg, #ffebb0, #f2c24f 55%, #b57e1f); color: #17140a; font: 900 17px/1.3 Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px #0b0b10, 0 0 14px rgba(242, 194, 79, .55); }
.rp-kept-h { margin-top: 18px !important; }
.rp-kept { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.rp-tile { display: grid; justify-items: center; gap: 3px; padding: 10px 8px 10px !important; text-align: center; }
/* "Your packs" groups each pack type in one box; several of a type show the Spin card's count badge in the box's corner. */
.rp-tile { position: relative; }
.rp-tile .rp-count { right: 6px; top: 6px; min-width: 30px; padding: 1px 8px; font: 900 15px/1.3 Inter, sans-serif; color: #17140a; }
.rp-tile img { width: 76%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); margin-bottom: 4px; }
.rp-tile b { font: 400 15px/1.1 var(--ui-display, "Russo One"), sans-serif; color: #fff; }
/* Every name on one line: one size for the whole grid, fitted to the box so the longest name ("Platinum Pack", 7.34 em) fits with room to
   spare; 15px wherever the box is wide enough (the iPad's). Without container units the name keeps 15px. */
.rp-tile { container-type: inline-size; }
.rp-tile b { white-space: nowrap; font-size: min(15px, calc(100cqi / 7.7)); }
.rp-tile span { font: 600 11px/1.3 Inter, sans-serif; color: rgba(255, 255, 255, .6); }
.phone .rp-tile .rp-rip { width: 100%; min-height: 40px; font-size: 17px; margin-top: 6px; }

/* The new account's free pack with its Yellow upgrade (option 3), and Add money's banner and quick amounts while it is open (option 4). */
.rp-friend .rp-up { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; background: radial-gradient(120% 120% at 0% 50%, rgba(233, 184, 36, .18), rgba(255, 255, 255, .03)); border: 1px solid rgba(233, 184, 36, .45); }
.rp-friend .rp-up img { width: 54px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.rp-friend .rp-up b { display: block; color: #ffe08a; font: 800 14px/1.3 Inter, sans-serif; }
.rp-friend .rp-up span { display: block; color: rgba(255, 255, 255, .72); font: 600 12px/1.35 Inter, sans-serif; margin-bottom: 6px; }
.rp-addmoney { width: 100%; }
.rp-banner { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; margin: 10px 14px 0; padding: 9px 12px; border-radius: 12px; background: rgba(233, 184, 36, .1); border: 1px solid rgba(233, 184, 36, .5); text-align: left; }
.rp-banner img { width: 46px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.rp-banner b { display: block; color: #ffe08a; font: 800 14px/1.3 Inter, sans-serif; }
.rp-banner span { color: rgba(255, 255, 255, .78); font: 600 12px/1.35 Inter, sans-serif; }
.rp-banner.is-met { background: rgba(233, 184, 36, .2); border-color: #e9b824; box-shadow: 0 0 18px rgba(233, 184, 36, .3); }
.dep-chip.rp-hot { border-color: #e9b824 !important; position: relative; }
.dep-chip.rp-hot small { display: block; font: 800 9px/1 Inter, sans-serif; letter-spacing: .08em; color: #e9b824; text-transform: uppercase; margin-top: 2px; }
.dep-chips .dep-chip.is-on { outline: 2px solid #fff; outline-offset: -2px; }

/* The Hall Spin (puller_spin.ts): the hall fills the screen, the reveal's canvas over it, the pulsing prompt, then the end card. */
.rp-ov { position: absolute; inset: 0; z-index: 45; overflow: hidden; background: #05050a; --packc: #f2c24f; }
.rp-ov > canvas, .rp-stage, .rp-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rp-hall { z-index: 1; pointer-events: none; }
.rp-stage { z-index: 2; pointer-events: none; transition: background-color .5s; }
/* The spin's spotlight over the hall: the hall dimmed round a lit oval (a big element moved, never repainted), a soft shaft from above the
   screen turned about its top by puller_spin.ts, and its pool of light on the pedestals, tinted with the pack in front when it lands. */
.rp-spot { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; }
.rp-dim, .rp-cone, .rp-pool { position: absolute; display: block; will-change: transform; }
.rp-dim { left: 0; top: 0; }
.rp-cone { left: -100%; width: 300%; top: -8%; height: 130%; transform-origin: 50% 0;
  background: conic-gradient(from 0deg at 50% 0%, transparent 168deg, rgba(255, 236, 205, .14) 174deg, rgba(255, 244, 224, .28) 178deg, rgba(255, 246, 230, .32) 180deg, rgba(255, 244, 224, .28) 182deg, rgba(255, 236, 205, .14) 186deg, transparent 192deg);
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .2), #000 45%); mask-image: linear-gradient(rgba(0, 0, 0, .2), #000 45%); }
.rp-pool { left: 0; top: 0; width: 30%; aspect-ratio: 2.8; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 248, 232, .5), color-mix(in oklab, var(--packc) 30%, rgba(255, 240, 215, .24)) 55%, transparent); }
.rp-wait { position: absolute; inset: 0; z-index: 9; display: none; place-items: center; background: #05050a; }
.rp-wait img { animation: rp-breathe 1.4s ease-in-out infinite; }
.rp-ov.is-loading .rp-wait { display: grid; }
@keyframes rp-breathe { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
.rp-tapzone { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp-tapzone[hidden], .rp-prompt[hidden] { display: none; }
.rp-prompt { position: absolute; z-index: 7; left: 18px; right: 18px; bottom: calc(14% + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 6px; text-align: center; pointer-events: none; transform: scale(var(--s, 1)); }
.rp-prompt b { font: 400 30px/1.08 var(--ui-display, "Russo One"), sans-serif; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
  background: linear-gradient(180deg, #fff7d6 0%, #f2c24f 55%, #b57e1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .7)) drop-shadow(0 0 16px rgba(242, 194, 79, .45)); }
.rp-prompt > span:last-child { font: 700 14px/1.3 Inter, sans-serif; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); letter-spacing: .04em; }
.rp-x { padding: 4px 18px; border-radius: 99px; background: linear-gradient(180deg, #ffebb0, #f2c24f 55%, #b57e1f); color: #17140a; font: 900 24px/1.25 Inter, sans-serif; box-shadow: 0 0 16px rgba(242, 194, 79, .5); }
.rp-x[hidden] { display: none; }
.rp-hud { position: absolute; inset: 0; isolation: isolate; z-index: 6; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(7.5% + env(safe-area-inset-top, 0px)) 22px calc(7% + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.rp-hud::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1; pointer-events: none; opacity: var(--name, 0); background: linear-gradient(to bottom, rgba(5, 5, 10, 0), rgba(5, 5, 10, .82) 42%, rgba(5, 5, 10, .96)); }
.rp-name { display: grid; justify-items: center; gap: 2px; text-align: center; opacity: var(--name, 0); transform: translateY(calc((1 - var(--name, 0)) * -14px)); }
.rp-kicker { font: 800 12px/1.2 Inter, sans-serif; letter-spacing: .22em; color: rgba(255, 255, 255, .72); }
.rp-name b { font: 400 40px/1.05 var(--ui-display, "Russo One"), sans-serif; letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, color-mix(in oklab, var(--packc) 55%, #fff) 48%, var(--packc) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in oklab, var(--packc) 45%, transparent)); }
.rp-hud.big .rp-name b { font-size: 46px; }
.rp-price { font: 800 15px/1.2 Inter, sans-serif; color: #fff; padding: 3px 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); border: 1px solid color-mix(in oklab, var(--packc) 60%, transparent); margin-top: 4px; }
.rp-sub { font: 600 13px/1.4 Inter, sans-serif; color: rgba(255, 255, 255, .78); margin-top: 6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.rp-btns { display: grid; gap: 10px; opacity: var(--btns, 0); transform: translateY(calc((1 - var(--btns, 0)) * 18px)); pointer-events: none; }
.rp-ov.is-hit .rp-btns { pointer-events: auto; }
.rp-btns .ui-buy { width: 100%; }
.rp-btns .rp-keep { justify-self: center; min-width: 60%; }
/* Wide screens (iPad, iPhone Duo), the way W2 does the battle: the hall fills the screen, the hit plays on a centred 2:3 stage over the dimmed
   hall, and the buttons keep to a centred column. */
@media (min-aspect-ratio: 3/5) {
  .rp-stage { left: 50%; right: auto; width: min(100%, calc(100cqh * 2 / 3)); transform: translateX(-50%); }
  .rp-ov.is-hit .rp-stage { background-color: #05050a; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .rp-btns, .rp-prompt { width: min(100% - 44px, 440px); justify-self: center; margin-inline: auto; }
  .rp-prompt { left: 50%; right: auto; translate: -50% 0; }
}
/* The free Red's "Open it anyway?" sheet (referral v2): Open and Keep it side by side. */
.rp-ask { margin-top: 16px; }

/* The tiered upgrade, option 1 "Full ladder" (owner's pick 2026-11-09; boards/referral-puller tiers.html): the card's ladder, the Add money
   banner, the Open Red Pack sheet. Only referral v2 puts these classes on the page. */
.t-card { border-color: rgba(233, 184, 36, .55) !important; }
.t-up { margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; background: radial-gradient(120% 120% at 0% 0%, rgba(233, 184, 36, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(233, 184, 36, .4); }
.t-head { margin: 0 0 8px; color: #ffe08a; font: 800 14.5px/1.3 Inter, sans-serif; }
.t-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .t-btns button { min-height: 46px; font-size: 17px; }
.t-mini { display: block; width: 40px; height: auto; flex: none; }
.t-ladder { display: grid; gap: 6px; }
.t-ladder.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.t-rung { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.t-rung span { color: rgba(255, 255, 255, .72); font: 600 12px/1.3 Inter, sans-serif; }
.t-rung span b { display: block; color: #fff; font: 800 13.5px/1.25 Inter, sans-serif; }
.t-rung em { font: 800 11px/1.2 Inter, sans-serif; font-style: normal; color: #17140a; background: #f2c24f; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.t-rung.is-next em { background: rgba(255, 255, 255, .14); color: #ffe08a; }
.t-rung.is-got { border-color: #e9b824; background: rgba(233, 184, 36, .16); }
.t-rung.is-past { opacity: .55; }
.t-ladder.compact .t-rung { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; padding: 7px 4px; }
.t-ladder.compact .t-mini { width: 34px; }
.t-ladder.compact .t-rung span { font-size: 10.5px; }
.t-ladder.compact .t-rung span b { font-size: 12px; }
.t-banner { margin: 10px 14px 0; padding: 10px 12px; border-radius: 12px; background: rgba(233, 184, 36, .09); border: 1px solid rgba(233, 184, 36, .45); text-align: left; }
.t-banner.is-met { background: rgba(233, 184, 36, .16); border-color: #e9b824; box-shadow: 0 0 18px rgba(233, 184, 36, .25); }
.t-btitle { margin: 0 0 8px; color: #ffe08a; font: 800 14px/1.3 Inter, sans-serif; text-align: center; }
.t-cvis { margin: 12px 0 4px; }
.t-cbtns { display: grid; gap: 8px; margin-top: 14px; }
.phone .t-cbtns button { min-height: 48px; font-size: 17px; width: 100%; }
/* The quick buttons while the offer is open, the owner's pick "b" (boards/referral-puller quick.html): three equal pills across the sheet's
   content width, each with its pack's art on the left and the amount over the name (or "Your pack", or "$X more"), centred in the pill. */
.dep-chips.q-b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.q-btn { font-family: var(--pad-font, inherit); cursor: pointer; color: #ececec; border: 0; }
.q-btn img { display: block; height: auto; flex: none; }
.q-btn b { font: 700 18px/1 var(--pad-font, inherit); font-variant-numeric: tabular-nums; color: #fff; }
.q-b .q-btn { height: 54px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 10px; border-radius: 99px; background: #212121; box-shadow: inset 0 0 0 1px #2e2e2e; }
.q-b .q-btn img { width: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.q-txt { display: grid; gap: 3px; text-align: left; min-width: 0; }
.q-txt small { font: 700 10.5px/1 var(--pad-font, inherit); letter-spacing: .08em; text-transform: uppercase; color: #a9a9a9; white-space: nowrap; }
.q-btn.is-reached { background: linear-gradient(180deg, rgba(233, 184, 36, .3), rgba(233, 184, 36, .12)); box-shadow: inset 0 0 0 1.5px #e9b824, 0 0 16px rgba(233, 184, 36, .3); }
.q-b .q-btn.is-reached small, .q-btn.is-next small { color: #ffe08a; }
.q-btn.is-past { opacity: .45; }
