/* VALBLOX Affiliates page v2 (pages-v2 preview), on top of styles.css + pages.css. Replaces affiliates.css.
   Calm by construction: one grid (four equal tiles, then a 360px column beside the dashboard), one type scale
   (12 labels, 14 body, 18 card titles, 24 values), light plates only, and nothing cut into a card except its fields.
   Accents are the saturated set the owner asked for (gold, green, ember red, frost), used for what they mean:
   gold = money you have, green = act / active, red = inactive, frost = where you are. */

.aff2 {
  /* the accent set and inks: pages.css (.content--page) */
  --aff-line: var(--v-gold);
  display: flex; flex-direction: column; gap: 24px; min-width: 0;
}
.aff2 > * { min-width: 0; }
.aff2 > .phead { margin-bottom: 0; }
.aff2 [hidden] { display: none !important; }

/* shared type */
.aff2-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; color: var(--ink-2); text-transform: uppercase; }
.aff2-lbl small { font-family: "Skranji", sans-serif; font-size: 12px; letter-spacing: .3px; text-transform: none; color: var(--ink-3); }
.aff2-txt { font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-txt b { font-weight: 700; color: var(--ink); }
.aff2-txt--fine { font-size: 12px; line-height: 17px; color: var(--ink-3); }
.aff2-txt--fine b { font-weight: 400; color: var(--ink-2); }
.aff2-aside { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--ink-3); }

/* ---------------------------------------------------------------- the plate every card and tile shares (light tier, a deeper face) */
.aff2-tile > .plate, .aff2-card > .plate {
  --c: 14px; --n: 5px; --bt: rgba(var(--hi), .26); --bb: rgba(var(--lo), .6);
  --face: linear-gradient(160deg, #232C3B 0%, #1C2330 100%);
}
/* Your code, the page's one key panel: the heavy tier (styles.css edge tiers: the Norse notch, the forged rim), as live */
.aff2-code.edge-heavy > .plate {
  --c: 18px; --n: 7px;
  --face: radial-gradient(60% 70% at 0% 0%, rgba(var(--v-frost-rgb), .07) 0%, rgba(var(--v-frost-rgb), 0) 100%), linear-gradient(160deg, #252E3E 0%, #1C2330 100%);
}

/* ---------------------------------------------------------------- 1. four equal tiles */
/* minmax(min-content, 1fr): a long amount (115,704,000) always shows whole, as on the profile's stat row */
.aff2-stats { display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); gap: 16px; }
.aff2-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; min-height: 108px; padding: 18px 20px 18px; }
.aff2-tile__l { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; color: var(--ink-2); text-transform: uppercase; }
.aff2-tile__l .ic { width: 16px; height: 16px; color: var(--v-frost); }
.aff2-tile__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.aff2-tile__v { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: .5px; color: var(--ink); white-space: nowrap; }
.aff2-tile__v img { width: 20px; height: 21px; flex: none; }
.aff2-tile__v > span { overflow: hidden; text-overflow: ellipsis; }
.aff2-tile__sub { align-self: flex-end; padding-bottom: 3px; font-family: "Skranji", sans-serif; font-weight: 400; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--ink-3); }
/* Available: Claim rides at the top right, beside the label, so the amount keeps the tile's full width */
.aff2-tile--gold { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; column-gap: 12px; }
.aff2-tile--gold > .aff2-tile__l { grid-column: 1; grid-row: 1; align-self: center; }
.aff2-tile--gold > .aff2-claim { grid-column: 2; grid-row: 1; align-self: center; margin: -9px -6px -9px 0; height: 34px; }
.aff2-tile--gold > .aff2-tile__row { grid-column: 1 / -1; grid-row: 2; align-self: end; }
.aff2-tile--gold > .plate {
  --rim: rgba(var(--v-gold-rgb), .5);
  --face: radial-gradient(90% 120% at 100% 0%, rgba(var(--v-gold-rgb), .16) 0%, rgba(var(--v-gold-rgb), 0) 70%), linear-gradient(160deg, #262C36 0%, #1E2430 100%);
}
.aff2-tile--gold .aff2-tile__l .ic { color: var(--v-gold); }
.aff2-tile--gold .aff2-tile__v { color: var(--v-gold); text-shadow: 0 0 16px rgba(var(--v-gold-rgb), .25); }
.aff2-claim { flex: none; min-width: 0; padding: 0 14px 3px; }
.aff2-claim .ic { width: 16px; height: 16px; }
.aff2-claim.is-done { --rim: rgba(var(--v-green-rgb), .35); filter: none; color: var(--v-green); }
.aff2-status { margin-top: -10px; font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: #FF9C8F; }
.aff2-status__retry { border: 0; padding: 0; background: none; color: var(--v-frost); text-decoration: underline; text-underline-offset: 2px; font-family: inherit; font-size: inherit; }

/* a one-shot sheen across the tile on a claim (and a saved link): a crafted acknowledgement, never a loop */
@media (prefers-reduced-motion: no-preference) {
  .aff2-tile.is-flash > .plate::after, .minput.is-flash::after {
    background-image: linear-gradient(105deg, transparent 0 38%, rgba(var(--v-gold-rgb), .22) 48%, rgba(255, 255, 255, .12) 50%, transparent 62% 100%), var(--face);
    background-size: 260% 100%, auto; background-repeat: no-repeat;
    animation: aff2-sheen 1.1s cubic-bezier(.35, .1, .25, 1) 1 both;
  }
}
@keyframes aff2-sheen { from { background-position: 120% 0, 0 0; } to { background-position: -40% 0, 0 0; } }

/* ---------------------------------------------------------------- 2. the two columns */
.aff2-grid { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.aff2-side, .aff2-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.aff2-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.aff2-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 28px; }
.aff2-card__t { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; line-height: 24px; letter-spacing: 1.1px; color: var(--ink); text-transform: uppercase; }
.aff2-card__t .ic { width: 20px; height: 20px; flex: none; color: var(--v-frost); }
.aff2-card .fld { gap: 8px; }
.aff2-card .fld__msg:empty { min-height: 0; display: none; }

/* your code: Update inside the field; the link with Copy inside */
.aff2-codebox { height: 52px; padding-left: 16px; }
.aff2-codebox input {
  font-family: "GoldenSmile", system-ui, sans-serif; font-size: 20px; line-height: 50px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--v-gold); text-shadow: 0 0 14px rgba(var(--v-gold-rgb), .22);
}
.aff2-codebox input::placeholder { color: rgba(var(--v-gold-rgb), .35); opacity: 1; text-shadow: none; }
.aff2-codebox input[readonly] { cursor: default; }
.aff2-codebox.is-editing { --rim: rgba(var(--v-frost-rgb), .8); --glow: inset 0 0 12px rgba(var(--v-frost-rgb), .16); }
.aff2-codebox.is-editing input { color: var(--ink); text-shadow: none; }
.aff2-codebox .btn, .aff2-linkbox .btn { height: 38px; min-width: 0; padding: 0 13px 3px; }
.aff2-linkbox { height: 52px; }
.aff2-linkbox { padding-left: 16px; }
.aff2-linkbox > .ic { display: none; }   /* the field's label says what it is; the room goes to the whole link */
.aff2-linkbox input { color: var(--ink); font-size: 14px; }
[data-mode="guest"] .aff2-linkbox input { color: var(--ink-3); }
.aff2 .btn[aria-disabled="true"] { filter: saturate(.3) brightness(.75); cursor: default; }
.aff2 .btn.is-copied { color: var(--v-green); }

/* redeem + partner */
.aff2-redeem .minput input { text-transform: uppercase; }
.aff2-redeem .minput input::placeholder { text-transform: none; }
.aff2-redeem .minput .btn { height: 38px; min-width: 92px; }
.aff2-redeem__f { display: flex; flex-direction: column; gap: 8px; }
.aff2-redeem__f .fld__msg:empty { display: none; }
.aff2-partner > .plate {
  --face: radial-gradient(80% 100% at 100% 0%, rgba(var(--v-gold-rgb), .12) 0%, rgba(var(--v-gold-rgb), 0) 70%), linear-gradient(160deg, #232C3B 0%, #1C2330 100%);
}
.aff2-partner .aff2-card__t .ic { color: var(--v-gold); }
.aff2-apply { height: 50px; font-size: 15px; letter-spacing: 1.3px; }
.aff2-apply .ic { width: 20px; height: 20px; }
#redeem:target > .plate { --rim: rgba(var(--v-frost-rgb), .7); }

/* questions: one card, hairlines between, no plates per item */
/* questions: the shared .pfaq card (pages.css) */

/* ---------------------------------------------------------------- 3. the dashboard */
.aff2-dash__top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.aff2-dash__sum { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aff2-dash__v { display: flex; align-items: center; gap: 8px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: .5px; color: var(--ink); white-space: nowrap; }
.aff2-dash__v img { width: 20px; height: 21px; }
.aff2-range { gap: 6px; }
.aff2-range .btn { height: 34px; min-width: 70px; padding: 0 12px 3px; font-size: 12px; letter-spacing: 1.1px; --c: 8px; }
.aff2-range .btn[aria-pressed="true"] { color: var(--ink); --rim: rgba(var(--v-frost-rgb), .8); --face: linear-gradient(rgba(var(--v-frost-rgb), .24) 0%, rgba(var(--v-frost-rgb), .06) 100%), var(--raised); }

.aff2-chart { margin: 0; }
.aff2-chart__plot { position: relative; height: 248px; outline: none; touch-action: pan-y; }
.aff2-chart__plot:focus-visible { box-shadow: 0 0 0 2px rgba(var(--v-frost-rgb), .7); border-radius: 2px; }
.aff2-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aff2-gl line { stroke: rgba(150, 170, 200, .16); stroke-width: 1; stroke-dasharray: 3 5; shape-rendering: crispEdges; }
.aff2-gl line.is-base { stroke: rgba(150, 170, 200, .3); stroke-dasharray: none; }
.aff2-ylab, .aff2-xlab { font-family: "Skranji", sans-serif; font-size: 12px; letter-spacing: .3px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.aff2-line { fill: none; stroke: var(--aff-line); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 6px rgba(var(--v-gold-rgb), .35)); }
.aff2-line.is-flat { stroke: rgba(150, 170, 200, .35); filter: none; stroke-width: 2; }
.aff2-end { fill: var(--aff-line); stroke: #1E2532; stroke-width: 2; }
.aff2-cross { opacity: 0; pointer-events: none; }
.aff2-cross.is-on { opacity: 1; }
.aff2-cross__l { stroke: rgba(var(--v-frost-rgb), .45); stroke-width: 1; shape-rendering: crispEdges; }
.aff2-cross__m { fill: var(--aff-line); stroke: #1E2532; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .aff2-cross { transition: opacity .16s ease; }
  .aff2-cross__m { transition: transform .14s cubic-bezier(.3, .8, .3, 1); }
}
.aff2-chart__tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; isolation: isolate;
  display: flex; flex-direction: column; gap: 1px; padding: 7px 12px 9px; white-space: nowrap;
  --fc: 6px; --frim: rgba(var(--v-frost-rgb), .28); --fface: linear-gradient(180deg, #2C3647 0%, #242D3C 100%);
}
.aff2-chart__tip.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .aff2-chart__tip { transition: opacity .14s ease, transform .14s cubic-bezier(.3, .8, .3, 1); }
  .aff2-chart__tip.is-still { transition: opacity .14s ease; }
}
.aff2-chart__tip b { display: flex; align-items: center; gap: 6px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: .4px; color: var(--ink); }
.aff2-chart__tip b::before { content: ""; width: 14px; height: 15px; background: url("assets/img/coin-16.svg") center / contain no-repeat; }
.aff2-chart__tip span { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-chart__empty {
  position: absolute; left: calc(50% + 24px); top: 42%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 76px));
  padding: 9px 14px 10px; --fc: 6px; --frim: rgba(var(--v-frost-rgb), .24); --fface: #1E2532;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none;
}
.aff2-chart__empty b { font-size: 14px; line-height: 18px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
.aff2-chart__empty span { font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-chart__plot.is-empty .aff2-gl image { opacity: .5; }
/* "just started": the zeros before the first earnings as a quiet frost band, its edge dashed, a chip on it */
.aff2-band { fill: rgba(var(--v-frost-rgb), .035); }
.aff2-band__edge { stroke: rgba(var(--v-frost-rgb), .38); stroke-width: 1; stroke-dasharray: 2 4; shape-rendering: crispEdges; }
.aff2-line--before { stroke: rgba(150, 170, 200, .4); stroke-width: 2; stroke-dasharray: 1 6; filter: none; }
.aff2-chart__note {
  position: absolute; left: 0; top: 8px; z-index: 1; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px 7px; pointer-events: none;
  --fc: 5px; --frim: rgba(var(--v-frost-rgb), .3); --fface: #1E2532;
}
.aff2-chart__note b { font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--v-frost); text-transform: uppercase; }
.aff2-chart__note span { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--ink-2); white-space: nowrap; }

/* your tier: one line of words, then five lozenges on a track (bronze behind you, frost where you are, iron ahead) */
.aff2-tier { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; box-shadow: inset 0 1px 0 rgba(var(--hi), .4); }
.aff2-tier__top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.aff2-tier__now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.aff2-tier__now b { font-weight: 400; font-size: 18px; line-height: 24px; letter-spacing: 1.1px; color: var(--v-frost); text-transform: uppercase; text-shadow: 0 0 12px rgba(var(--v-frost-rgb), .35); }
.aff2-tier__pct { font-family: "Skranji", sans-serif; font-size: 14px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-tier__next { font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--ink-3); }
.aff2-tier__next b { font-weight: 700; color: var(--ink); }
.aff2-steps { --f: 0; list-style: none; position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aff2-steps::before, .aff2-steps::after { content: ""; position: absolute; top: 8px; left: 10%; height: 3px; }
.aff2-steps::before { right: 10%; background: var(--track); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .35); }
.aff2-steps::after { width: calc(80% * var(--f)); background: linear-gradient(90deg, var(--bz2), var(--v-gold)); }
@media (prefers-reduced-motion: no-preference) { .aff2-steps::after { transition: width .9s cubic-bezier(.33, .8, .25, 1); } }
.aff2-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.aff2-step__gem { position: relative; width: 19px; height: 19px; margin-bottom: 5px; }
.aff2-step__gem i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: conic-gradient(var(--g1) 0 90deg, var(--g4) 90deg 180deg, var(--g3) 180deg 270deg, var(--g0) 270deg 360deg); }
.aff2-step__gem i::before { content: ""; position: absolute; inset: 3.5px; background: var(--g2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.aff2-step { --g0: var(--iron-hi2); --g1: var(--iron-hi1); --g2: #283041; --g3: var(--iron-lo1); --g4: var(--iron-lo2); }
.aff2-step.is-on { --g0: var(--bz0); --g1: var(--bz1); --g2: var(--bz2); --g3: var(--bz3); --g4: var(--bz4); }
.aff2-step.is-cur { --g0: #E0F5FF; --g1: #B9E8FE; --g2: #8FD4F3; --g3: #5BA3C9; --g4: #36708F; }
.aff2-step.is-cur .aff2-step__gem { filter: drop-shadow(0 0 7px rgba(var(--v-frost-rgb), .65)); }
.aff2-step__n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--ink-3); text-transform: uppercase; }
.aff2-step__p { font-family: "Skranji", sans-serif; font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-step__f { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--ink-3); }
.aff2-step.is-on .aff2-step__n { color: var(--ink-2); }
.aff2-step.is-on .aff2-step__p { color: var(--v-gold); }
.aff2-step.is-cur .aff2-step__n { color: var(--v-frost); }

/* The small framed boxes (the chart's empty state, tip and note; the referral pills): the site's chamfered plate
   built the same way (styles.css): the element is the rim, cut to an octagon, and its ::before the face, cut to the
   same octagon 1px in, so the rim follows the bevels and every corner meets. (An inset box-shadow under a clip-path
   lost the rim on the four diagonals.) The faces are opaque, so the chart's grid lines stop at the frame. */
:is(.aff2-chart__empty, .aff2-chart__tip, .aff2-chart__note, .aff2-pill) {
  isolation: isolate; background: var(--frim); box-shadow: none;
  clip-path: polygon(var(--fc) 0, calc(100% - var(--fc)) 0, 100% var(--fc), 100% calc(100% - var(--fc)), calc(100% - var(--fc)) 100%, var(--fc) 100%, 0 calc(100% - var(--fc)), 0 var(--fc));
}
:is(.aff2-chart__empty, .aff2-chart__tip, .aff2-chart__note, .aff2-pill)::before {
  --fi: calc(var(--fc) - .4142px);
  content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; background: var(--fface);
  clip-path: polygon(var(--fi) 0, calc(100% - var(--fi)) 0, 100% var(--fi), 100% calc(100% - var(--fi)), calc(100% - var(--fi)) 100%, var(--fi) 100%, 0 calc(100% - var(--fi)), 0 var(--fi));
}

/* ---------------------------------------------------------------- 4. referrals: stripes, not plates */
.aff2-table { display: flex; flex-direction: column; min-width: 0; }
.aff2-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) 96px; align-items: center; column-gap: 14px; min-height: 52px; padding: 0 14px; }
.aff2-th { min-height: 30px; white-space: nowrap; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; color: var(--ink-3); text-transform: uppercase; }
[data-aff-rows] > .aff2-tr:nth-child(odd) { background: rgba(var(--hi), .22);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.aff2-tr .r { text-align: right; justify-content: flex-end; display: flex; }
.aff2-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aff2-who .avatar { width: 32px; height: 32px; padding: 2px; flex: none; }
.aff2-who .avatar img { width: 28px; height: 28px; }
.aff2-who .lvl { width: 24px; height: 24px; font-size: 12px; flex: none; }
.aff2-who__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; letter-spacing: 1px; color: var(--player); text-transform: uppercase; }
.aff2-tr .amt { gap: 6px; }
.aff2-tr .amt img { width: 15px; height: 16px; }
.aff2-tr .num { font-size: 14px; font-variant-numeric: tabular-nums; }
.aff2-wag .num { color: var(--ink-2); font-weight: 400; }
.aff2-cut .num { color: var(--v-gold); }
.aff2-k { display: none; }
.aff2-pill {
  position: relative; height: 22px; padding: 0 10px 1px; display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase;
  --fc: 5px;
}
.aff2-pill--on { color: var(--v-green); --frim: rgba(var(--v-green-rgb), .3); --fface: linear-gradient(rgba(var(--v-green-rgb), .12) 0 0), #1F2735; }
.aff2-pill--off { color: var(--v-red); --frim: rgba(var(--v-red-rgb), .35); --fface: linear-gradient(rgba(var(--v-red-rgb), .13) 0 0), #1F2735; }
.aff2-none { display: flex; align-items: center; gap: 14px; padding: 18px 4px 6px; }
.aff2-none p { display: flex; flex-direction: column; gap: 2px; }
.aff2-none b { font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
.aff2-none span { font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--ink-2); }
.aff2-none__gem { position: relative; width: 34px; height: 34px; flex: none; }
.aff2-none__gem i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: conic-gradient(var(--iron-hi1) 0 90deg, var(--iron-lo2) 90deg 180deg, var(--iron-lo1) 180deg 270deg, var(--iron-hi2) 270deg 360deg); }
.aff2-none__gem i::before { content: ""; position: absolute; inset: 6px; background: #283041; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.aff2-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: -4px; }
.aff2-pager .btn { width: 36px; height: 36px; }
.aff2-pager .btn .ic { width: 16px; height: 16px; }
.aff2-pager .btn[disabled] { filter: saturate(.3) brightness(.7); cursor: default; }
.aff2-pager .ic--fwd { transform: scaleX(-1); }
.aff2-pager__n { min-width: 44px; text-align: center; font-family: "Skranji", sans-serif; font-size: 13px; letter-spacing: .4px; color: var(--ink-3); }
.aff2-pager__n b { font-weight: 700; color: var(--ink); }

/* loading (server mode): the numbers dim until affiliates.me answers */
.aff2.is-loading :is(.aff2-tile__v, .aff2-dash__v) { opacity: .45; }
@media (prefers-reduced-motion: no-preference) { .aff2 :is(.aff2-tile__v, .aff2-dash__v) { transition: opacity .3s ease; } }

/* ---------------------------------------------------------------- narrower */
@container page (max-width: 1100px) {   /* four tiles still fit their whole amounts down to the 900 break */
  .aff2-tr { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, .8fr) 76px; column-gap: 10px; padding: 0 10px; }
  .aff2-th { letter-spacing: .9px; }
  .aff2-tile { padding: 16px 16px 16px; }
  .aff2-tile__v { font-size: 21px; line-height: 28px; gap: 7px; }
  .aff2-tile__l { gap: 6px; letter-spacing: 1px; }
}
@container page (max-width: 900px) {
  /* one column, in the order a phone wants: numbers, your link, the chart, the referrals, then the rest */
  .aff2-grid { grid-template-columns: minmax(0, 1fr); }
  .aff2-side, .aff2-main { display: contents; }
  .aff2-code { order: 1; } .aff2-dash { order: 2; } .aff2-refs { order: 3; } .aff2-redeem { order: 4; } .aff2-partner { order: 5; } .aff2-faq { order: 6; }
  .aff2-stats { grid-template-columns: repeat(2, minmax(min-content, 1fr)); }
}
@container page (max-width: 560px) {
  .aff2 { gap: 16px; }
  .aff2-grid { gap: 16px; }
  /* tiles become equal rows: label left, value right */
  .aff2-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .aff2-tile { min-height: 60px; padding: 10px 14px 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .aff2-tile__l { flex: 1 1 auto; }
  .aff2-tile__row { flex: 0 1 auto; gap: 10px; }
  .aff2-tile__v { font-size: 18px; line-height: 24px; gap: 6px; }
  .aff2-tile__v img { width: 18px; height: 19px; }
  .aff2-tile__sub { display: none; }
  .aff2-tile--gold { display: flex; }
  .aff2-tile--gold > .aff2-claim { order: 3; margin: 0; }
  .aff2-claim { min-width: 0; height: 34px; padding: 0 12px 3px; }
  .aff2-card { padding: 18px 16px 20px; gap: 14px; }
  .aff2-faq { padding: 14px 16px 6px; }
  .aff2-card__t, .aff2-faq .pfaq__t { font-size: 16px; line-height: 22px; }
  .aff2-codebox .btn, .aff2-linkbox .btn, .aff2-redeem .minput .btn { min-width: 0; padding: 0 12px 3px; }
  .aff2-codebox input { font-size: 18px; letter-spacing: 1.8px; }
  .aff2-dash__v { font-size: 20px; line-height: 26px; }
  .aff2-range { width: 100%; }
  .aff2-range .btn { min-width: 0; }
  .aff2-chart__plot { height: 200px; }
  .aff2-step__n { display: none; }
  .aff2-step.is-cur .aff2-step__n { display: block; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: none; }
  .aff2-steps { margin-top: 18px; }
  /* a referral in two short lines: who and your cut, then what they wagered and their status */
  .aff2-th { display: none; }
  .aff2-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who cut" "wag st"; row-gap: 4px; padding: 10px 12px 11px; }
  .aff2-who { grid-area: who; } .aff2-cut { grid-area: cut; } .aff2-wag { grid-area: wag; justify-content: flex-start !important; } .aff2-st { grid-area: st; }
  .aff2-wag { gap: 6px; align-items: center; padding-left: 42px; }
  .aff2-k { display: inline; font-family: "Skranji", sans-serif; font-size: 12px; letter-spacing: .3px; color: var(--ink-3); }
  .aff2-wag .num { font-size: 13px; }
  .aff2-wag .amt img { display: none; }
  .aff2-pill { height: 20px; font-size: 10px; padding: 0 8px 1px; }
}
@container page (max-width: 360px) {
  .aff2-tile__l .ic { display: none; }
}
