/**
 * THE REDEMPTION CENTER.
 *
 * The register is a lit department store at night — deep plum and gold, with
 * every piece on a card that carries its own rarity colour. It is warmer than
 * the Arena's ember and colder than the Casino's brass, because it is neither:
 * it is where what you earned turns into what you own.
 *
 * The one rule the whole sheet is built around: A LOCKED PIECE IS SHOWN, NOT
 * HIDDEN. It sits behind a glass plate with the floor number and the exact XP
 * away. You cannot want what you cannot see.
 */

:root {
  --rc-ink: #f6f0f6;
  --rc-dim: #b3a6b8;
  --rc-faint: #7b6f82;
  --rc-plum: 288 45% 8%;
  --rc-gold: 45 100% 62%;
}

.rc-page { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

/* ── the hero ─────────────────────────────────────────────────────────────── */

.rc-hero {
  position: relative;
  padding: 3.4rem 2rem 2.6rem;
  margin: 3.2rem -1rem 1.6rem;
  border: 1px solid hsl(var(--rc-gold) / .18);
  border-radius: 6px;
  overflow: hidden;
  min-height: 300px;
  display: grid; align-content: center; justify-items: start;
  background:
    linear-gradient(90deg, hsl(260 45% 4% / .88) 0%, hsl(260 45% 4% / .55) 34%, transparent 62%),
    linear-gradient(180deg, transparent 55%, hsl(260 45% 4% / .92) 96%),
    url('/assets/images/districts/redemption/vault.webp') right center / cover no-repeat,
    hsl(260 45% 5%);
}
@media (max-width: 900px) {
  .rc-hero { background:
    linear-gradient(90deg, hsl(260 45% 4% / .9) 0%, hsl(260 45% 4% / .6) 45%, hsl(260 45% 4% / .3) 100%),
    linear-gradient(180deg, transparent 55%, hsl(260 45% 4% / .92) 96%),
    url('/assets/images/districts/redemption/vault-1024.webp') right center / cover no-repeat,
    hsl(260 45% 5%);
  }
}
.rc-eyebrow {
  display: inline-block; margin-bottom: .6rem;
  font: 900 .6rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .34em; text-transform: uppercase; color: hsl(var(--rc-gold));
}
.rc-eyebrow::before { content: '◈ '; }
.rc-hero h1 {
  margin: 0;
  font: 900 clamp(2rem, 5vw, 3.4rem)/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(100deg, #fff, hsl(var(--rc-gold)) 45%, hsl(320 90% 72%) 75%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px hsl(var(--rc-gold) / .3));
}
.rc-hero p {
  margin: .7rem 0 0; max-width: 46ch;
  font-size: .9rem; line-height: 1.6; color: hsl(260 15% 82%);
  text-shadow: 0 1px 8px hsl(260 45% 4% / .9);
}

/* ── the level bar: the thing that opens doors ────────────────────────────── */

/* One slim strip, no clip-path anywhere: the old block stacked two diagonal
   cuts (strip + CTA) and the button's visible corner fell outside its own hit
   area — which is why "Earn XP" did nothing when clicked on its edge. */
.rc-level {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.2rem 0 .6rem; padding: .55rem .8rem;
  background: hsl(0 0% 100% / .04);
  border: 1px solid hsl(0 0% 100% / .1);
  border-left: 3px solid hsl(var(--rc-gold));
  border-radius: 3px;
}
.rc-level-badge {
  display: inline-flex; align-items: baseline; gap: .3rem; flex: none;
  padding: .3rem .6rem; border-radius: 3px;
  background: hsl(var(--rc-gold) / .15); border: 1px solid hsl(var(--rc-gold) / .4);
}
.rc-level-badge small { font: 900 .56rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .16em; color: hsl(var(--rc-gold)); }
.rc-level-badge b { font: 900 1.15rem/1 ui-monospace, Menlo, monospace; color: #fff; }
.rc-level-mid { min-width: 0; flex: 1; display: grid; gap: .3rem; }
.rc-level-bar { height: 7px; border-radius: 99px; background: hsl(0 0% 100% / .1); overflow: hidden; }
.rc-level-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, hsl(var(--rc-gold)), hsl(320 90% 66%)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rc-level-txt { display: flex; align-items: baseline; gap: .3rem; font-size: .72rem; color: var(--rc-dim); white-space: nowrap; overflow: hidden; }
.rc-level-txt b { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.rc-level-txt em { font-style: normal; color: var(--rc-faint); overflow: hidden; text-overflow: ellipsis; }
.rc-level-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: hsl(var(--rc-gold)); align-self: center; }
.rc-level-cta {
  flex: none; padding: .55rem 1rem; border-radius: 3px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(100deg, hsl(var(--rc-gold)), hsl(35 100% 52%));
  color: hsl(40 60% 8%); font: 900 .68rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.rc-level-cta:hover { filter: brightness(1.1); }

.rc-wallet { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
button.rc-wallet-chip { cursor: pointer; font: inherit; }
button.rc-wallet-chip:hover { border-color: hsl(var(--rc-gold) / .6); color: #fff; }
.rc-wallet-chip {
  display: inline-flex; align-items: baseline; gap: .35rem;
  padding: .5rem .9rem;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  border: 1px solid hsl(0 0% 100% / .14); background: hsl(0 0% 100% / .05);
  font: 900 1rem/1 ui-monospace, Menlo, monospace; color: #fff;
}
.rc-wallet-chip small { font-size: .6rem; opacity: .6; }
.rc-wallet-out {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1rem; border: 1px dashed hsl(0 0% 100% / .16); font-size: .8rem; color: var(--rc-dim);
}
.rc-wallet-out b { color: #fff; }
/* The guest CTA lives on a page that does not load launch-surfaces.css, so it
   carries its own gold button rather than an unstyled default one. */
.rc-wallet-join {
  flex: 0 0 auto; padding: .6rem 1.1rem; border: none; border-radius: 5px; cursor: pointer;
  background: linear-gradient(115deg, hsl(var(--rc-gold)), hsl(35 100% 50%));
  box-shadow: 0 0 26px hsl(var(--rc-gold) / .35);
  font: 900 .62rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: hsl(40 60% 8%);
  transition: filter .2s, transform .15s;
}
.rc-wallet-join:hover { filter: brightness(1.1); transform: translateY(-1px); }
.rc-price-cc { color: hsl(45 100% 66%); }
.rc-price-ac { color: hsl(280 85% 76%); }
.rc-price-crate { color: hsl(320 90% 74%); }
.rc-price-key { color: hsl(190 90% 70%); }

/* ── showcase ─────────────────────────────────────────────────────────────── */

.rc-sec-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .8rem; flex-wrap: wrap; }
.rc-sec-k { font: 900 .66rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .28em; text-transform: uppercase; color: hsl(var(--rc-gold)); }
.rc-sec-head small { font-size: .72rem; color: var(--rc-faint); }
.rc-showcase { margin-bottom: 2rem; }
.rc-showcase-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }

/* ── tools ────────────────────────────────────────────────────────────────── */

.rc-tools { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.rc-search {
  flex: 1; min-width: 220px; padding: .7rem 1rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: hsl(0 0% 0% / .4); border: 1px solid hsl(0 0% 100% / .12);
  color: var(--rc-ink); font: 700 .82rem/1 var(--font-body, Inter), sans-serif;
}
.rc-search::placeholder { color: var(--rc-faint); }
.rc-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.rc-tab {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  border: 1px solid hsl(0 0% 100% / .12); background: hsl(0 0% 100% / .04);
  color: var(--rc-dim); cursor: pointer;
  font: 800 .62rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.rc-tab span { padding: .1rem .38rem; border-radius: 999px; background: hsl(0 0% 100% / .1); color: #fff; font: 900 .58rem/1.3 ui-monospace, Menlo, monospace; }
.rc-tab:hover { background: hsl(0 0% 100% / .08); color: #fff; }
.rc-tab.is-on { background: hsl(var(--rc-gold) / .2); border-color: hsl(var(--rc-gold) / .6); color: #fff; }
.rc-tab.is-on span { background: hsl(var(--rc-gold)); color: hsl(40 60% 8%); }

/* ── departments ──────────────────────────────────────────────────────────── */

/* The primary axis. Four tiles, always visible, so the shape of the whole shop
   is legible before a single card is read. */
.rc-depts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem; margin-bottom: 1rem;
}
.rc-dept {
  position: relative; display: grid; gap: .1rem; padding: 1rem 1.1rem 1rem;
  text-align: left; cursor: pointer; overflow: hidden;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background: linear-gradient(150deg, hsl(0 0% 100% / .07), hsl(0 0% 100% / .02));
  border: 1px solid hsl(0 0% 100% / .12); border-left: 3px solid hsl(0 0% 100% / .2);
  color: var(--rc-dim); transition: background .22s, border-color .22s, transform .22s;
}
.rc-dept::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, hsl(var(--rc-gold)), hsl(320 90% 66%));
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.rc-dept:hover { background: linear-gradient(150deg, hsl(0 0% 100% / .11), hsl(0 0% 100% / .03)); transform: translateY(-2px); }
.rc-dept.is-on { border-left-color: hsl(var(--rc-gold)); background: linear-gradient(150deg, hsl(var(--rc-gold) / .16), hsl(0 0% 100% / .03)); }
.rc-dept.is-on::after { transform: scaleX(1); }
.rc-dept.is-empty { opacity: .55; }
.rc-dept-icon { font-size: 1.35rem; line-height: 1; margin-bottom: .35rem; }
.rc-dept-name {
  font: 900 .92rem/1.1 var(--font-display, Inter), sans-serif;
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
}
.rc-dept-count { font: 700 .68rem/1.3 ui-monospace, Menlo, monospace; color: var(--rc-faint); }
.rc-dept-locked {
  position: absolute; top: .7rem; right: .8rem;
  padding: .12rem .4rem; border-radius: 999px;
  background: hsl(var(--rc-gold) / .18); border: 1px solid hsl(var(--rc-gold) / .4);
  font: 800 .55rem/1.4 ui-monospace, Menlo, monospace; color: hsl(var(--rc-gold));
}
/* A coming department is ambition on display: dimmed, ribboned, honest. */
.rc-dept.is-coming { opacity: .6; }
.rc-dept.is-coming:hover { opacity: .85; }
.rc-dept-soon {
  position: absolute; top: .7rem; right: .8rem;
  padding: .14rem .45rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: hsl(190 90% 55% / .2); border: 1px solid hsl(190 90% 60% / .5);
  font: 900 .52rem/1.4 var(--font-display, Inter), sans-serif;
  letter-spacing: .18em; color: hsl(190 90% 70%);
}

.rc-dept-blurb { margin: 0 0 1.2rem; max-width: 70ch; font-size: .82rem; line-height: 1.6; color: var(--rc-dim); }

/* The second axis, inside a department. */
.rc-kinds { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rc-kind {
  padding: .38rem .7rem; cursor: pointer;
  background: transparent; border: 1px solid hsl(0 0% 100% / .14);
  font: 800 .66rem/1 var(--font-body, Inter), sans-serif; letter-spacing: .06em;
  color: var(--rc-dim); transition: background .2s, color .2s, border-color .2s;
}
.rc-kind span { margin-left: .3rem; font-family: ui-monospace, Menlo, monospace; font-size: .6rem; opacity: .65; }
.rc-kind:hover { background: hsl(0 0% 100% / .07); color: #fff; }
.rc-kind.is-on { background: hsl(320 90% 66% / .18); border-color: hsl(320 90% 66% / .6); color: #fff; }

/* ── shelves ──────────────────────────────────────────────────────────────── */

.rc-shelf { margin-bottom: 2.2rem; }
.rc-shelf-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .7rem 1.1rem .7rem .7rem; margin-bottom: .9rem;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  background: linear-gradient(90deg, hsl(0 0% 100% / .07), transparent 72%);
  border-left: 3px solid hsl(var(--rc-gold) / .7);
}
.rc-shelf-head.is-plain { grid-template-columns: 1fr; padding-left: 1.1rem; }
.rc-shelf-art {
  width: 64px; height: 44px; overflow: hidden; flex: none;
  background: hsl(0 0% 100% / .06); border: 1px solid hsl(0 0% 100% / .12);
}
.rc-shelf-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-shelf-art.is-bare { background: linear-gradient(135deg, hsl(var(--rc-gold) / .25), hsl(320 90% 66% / .2)); }
.rc-shelf-name b {
  display: block; font: 900 1.05rem/1.15 var(--font-display, Inter), sans-serif;
  letter-spacing: .07em; text-transform: uppercase;
  color: hsl(var(--rc-gold));
  text-shadow: 0 0 18px hsl(var(--rc-gold) / .45);
}
.rc-shelf-name small { display: block; margin-top: .18rem; font-size: .7rem; color: var(--rc-faint); }
.rc-shelf-play {
  padding: .4rem .8rem; white-space: nowrap; text-decoration: none;
  border: 1px solid hsl(var(--rc-gold) / .45);
  font: 900 .64rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: hsl(var(--rc-gold)); transition: background .2s, color .2s;
}
.rc-shelf-play:hover { background: hsl(var(--rc-gold)); color: hsl(40 60% 8%); }

/* An empty department says what it is for, not "coming soon". */
.rc-empty {
  display: grid; justify-items: center; gap: .5rem; text-align: center;
  padding: 3.5rem 1.5rem; margin-bottom: 2rem;
  border: 1px dashed hsl(0 0% 100% / .16);
}
.rc-empty-glyph { font-size: 2.6rem; line-height: 1; opacity: .7; }
.rc-empty b { font: 900 1rem/1.3 var(--font-display, Inter), sans-serif; letter-spacing: .04em; color: #fff; }
.rc-empty small { max-width: 54ch; font-size: .78rem; line-height: 1.6; color: var(--rc-faint); }

/* ── the floors, now a key rather than a layout ───────────────────────────── */

.rc-floors-key {
  display: grid; gap: .5rem; padding: 1.2rem 1.3rem; margin-top: 2.5rem;
  background: hsl(0 0% 100% / .035); border: 1px solid hsl(0 0% 100% / .1);
}
.rc-floors-key > b {
  font: 900 .66rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .28em; text-transform: uppercase; color: hsl(var(--rc-gold));
}
.rc-floors-key > small { max-width: 66ch; font-size: .76rem; line-height: 1.6; color: var(--rc-faint); }
.rc-floors-key-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.rc-floor-chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .65rem;
  background: hsl(0 0% 100% / .05); border: 1px solid hsl(0 0% 100% / .12);
  font: 700 .68rem/1 var(--font-body, Inter), sans-serif; color: var(--rc-faint);
}
.rc-floor-chip b { font: 900 .72rem/1 ui-monospace, Menlo, monospace; color: hsl(0 0% 100% / .45); }
.rc-floor-chip.is-open { border-color: hsl(150 70% 50% / .5); color: #fff; }
.rc-floor-chip.is-open b { color: hsl(150 70% 62%); }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: .8rem; }
.rc-none { color: var(--rc-faint); font-size: .82rem; padding: 1rem; }

/* ── the card ─────────────────────────────────────────────────────────────── */

.rc-card {
  position: relative; display: flex; flex-direction: column;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(180deg, hsl(var(--r) / .14), hsl(var(--rc-plum) / .9) 45%);
  border: 1px solid hsl(var(--r) / .35);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s;
}
.rc-card:hover { transform: translateY(-4px); border-color: hsl(var(--r) / .8); box-shadow: 0 16px 40px hsl(0 0% 0% / .6), 0 0 40px hsl(var(--r) / .28); }
.rc-card.is-big { grid-column: span 1; }

.rc-card-art {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 30%, hsl(var(--r) / .28), hsl(0 0% 0% / .5));
  display: grid; place-items: center;
}
.rc-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-card-glyph { font-size: 3rem; filter: drop-shadow(0 4px 14px hsl(var(--r) / .8)); }
.rc-card-rarity {
  position: absolute; top: .45rem; left: .45rem; padding: .2rem .45rem;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  background: hsl(var(--r) / .9); color: hsl(0 0% 8%);
  font: 900 .5rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.rc-card-owned {
  position: absolute; top: .45rem; right: .45rem; padding: .2rem .45rem;
  background: hsl(150 70% 45%); color: hsl(160 60% 8%);
  font: 900 .5rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .14em; text-transform: uppercase;
}

/* A LOCKED PIECE IS SHOWN, NOT HIDDEN — behind glass, with the exact distance. */
.rc-card.is-locked .rc-card-art img,
.rc-card.is-locked .rc-card-glyph { filter: grayscale(.85) brightness(.45) blur(1px); }
.rc-card-lock {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .2rem;
  background: linear-gradient(180deg, hsl(var(--rc-plum) / .5), hsl(var(--rc-plum) / .85));
  backdrop-filter: blur(1px);
}
.rc-card-lock b { font: 900 .82rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--rc-gold)); }
.rc-card-lock b::before { content: '🔒 '; }
.rc-card-lock small { font: 700 .64rem/1.2 ui-monospace, Menlo, monospace; color: hsl(0 0% 78%); }

.rc-card-body { padding: .6rem .7rem .3rem; flex: 1; min-width: 0; }
.rc-card-name { display: block; font: 800 .8rem/1.2 var(--font-display, Inter), sans-serif; color: #fff; }
.rc-card-kind { display: block; margin-top: .2rem; font-size: .62rem; color: var(--rc-faint); text-transform: capitalize; }
.rc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem .7rem; }
.rc-price { font: 900 .84rem/1 ui-monospace, Menlo, monospace; }

.rc-buy {
  padding: .45rem .8rem; border: none; cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: linear-gradient(100deg, hsl(var(--r)), hsl(var(--r) / .6));
  color: hsl(0 0% 8%); font: 900 .58rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  transition: filter .15s, transform .12s;
}
.rc-buy:hover { filter: brightness(1.15); transform: translateY(-1px); }
.rc-buy:disabled { filter: grayscale(.6); cursor: wait; }
.rc-buy.is-locked, .rc-buy.is-owned { background: hsl(0 0% 100% / .1); color: var(--rc-faint); cursor: default; }

.rc-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 12px);
  padding: .8rem 1.3rem; z-index: 120; pointer-events: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: hsl(var(--rc-plum) / .97); border: 1px solid hsl(var(--rc-gold) / .5);
  color: #fff; font: 800 .78rem/1 var(--font-body, Inter), sans-serif;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.rc-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .rc-card, .rc-level-bar i, .rc-toast, .rc-dept, .rc-dept::after { transition: none; }
  .rc-dept:hover { transform: none; }
}
@media (max-width: 760px) {
  .rc-level { grid-template-columns: auto 1fr; gap: .8rem; }
  .rc-level-cta { grid-column: 1 / -1; text-align: center; }
  .rc-shelf-head { grid-template-columns: auto 1fr; }
  .rc-shelf-play { grid-column: 1 / -1; text-align: center; }
  .rc-depts { grid-template-columns: repeat(2, 1fr); }
  .rc-grid, .rc-showcase-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Jump buttons offered when a search matches in another department. */
.rc-elsewhere { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.rc-elsewhere .rc-kind { cursor: pointer; }

/* ── special items ────────────────────────────────────────────────────────── */

.rc-specials { margin-bottom: 2rem; }
.rc-specials .rc-sec-k { color: hsl(320 90% 70%); }
/* A featured card earns a warmer frame than a shelf card, so the row reads as
   chosen rather than as more stock. */
.rc-specials .rc-card { border-color: hsl(320 90% 66% / .3); }
.rc-specials .rc-card:hover { border-color: hsl(320 90% 66% / .6); }
/* Shown when a card is displaying the GAME's key art because the item has no
   picture of its own. Never let a player think that is what the item looks like. */
.rc-card-keyart {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: .18rem .4rem;
  background: hsl(260 40% 6% / .82);
  font: 700 .54rem/1.4 var(--font-body, Inter), sans-serif;
  letter-spacing: .04em; color: hsl(0 0% 100% / .62);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rc-card-grant {
  display: block; margin-top: .25rem;
  font: 800 .6rem/1.4 ui-monospace, Menlo, monospace;
  color: hsl(150 70% 62%);
}

/* ── achievements ─────────────────────────────────────────────────────────── */

.rc-achv { margin-top: 1rem; }
.rc-achv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .5rem; margin-top: .9rem;
}
.rc-achv-item {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem;
  padding: .6rem .7rem;
  background: hsl(0 0% 100% / .04); border: 1px solid hsl(0 0% 100% / .1);
  border-left: 2px solid hsl(0 0% 100% / .16);
  opacity: .72;
}
.rc-achv-item.is-done {
  opacity: 1;
  border-left-color: hsl(150 70% 55%);
  background: linear-gradient(90deg, hsl(150 70% 50% / .1), hsl(0 0% 100% / .03) 70%);
}
.rc-achv-icon { font-size: 1.2rem; line-height: 1; }
.rc-achv-txt { min-width: 0; }
.rc-achv-txt b {
  display: block; font: 800 .76rem/1.2 var(--font-body, Inter), sans-serif; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-achv-txt small { display: block; margin-top: .1rem; font-size: .66rem; line-height: 1.4; color: var(--rc-faint); }
.rc-achv-award {
  white-space: nowrap; padding: .16rem .42rem;
  background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .12);
  font: 800 .62rem/1.4 ui-monospace, Menlo, monospace; color: hsl(45 100% 70%);
}
/* The distance to an unearned achievement, in its own units. No bar on rows
   where distance has no meaning — the server sends null and we draw nothing. */
.rc-achv-bar { display: block; height: 4px; margin-top: .35rem; border-radius: 99px; background: hsl(0 0% 100% / .1); overflow: hidden; }
.rc-achv-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, hsl(45 100% 60%), hsl(320 90% 66%)); }
.rc-achv-item.is-done .rc-achv-bar i { background: hsl(150 70% 55%); }
.rc-achv-count { display: block; margin-top: .18rem; font: 700 .6rem/1.3 ui-monospace, Menlo, monospace; color: var(--rc-faint); }
.rc-achv-count b { color: hsl(0 0% 100% / .8); }

.rc-achv-tick {
  position: absolute; top: -1px; right: -1px;
  padding: .05rem .3rem;
  background: hsl(150 70% 50%); color: hsl(150 60% 8%);
  font: 900 .6rem/1.5 ui-monospace, Menlo, monospace;
}


/* ── the earn rail ────────────────────────────────────────────────────────── */

.rc-earn-card {
  padding: 1.2rem 1.3rem; margin-bottom: 1rem;
  background: linear-gradient(150deg, hsl(0 0% 100% / .06), hsl(0 0% 100% / .02));
  border: 1px solid hsl(0 0% 100% / .12);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.rc-earn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.rc-earn-row .rc-earn-card { margin-bottom: 0; height: 100%; }
.rc-earn-none { margin: .4rem 0 0; font-size: .8rem; line-height: 1.6; color: var(--rc-faint); }

/* A section still waiting on its answer. Shaped like what is coming, so the
   page does not jump when it arrives. */
.rc-earn-card.is-loading { opacity: .7; }
.rc-skel-rows { display: grid; gap: .45rem; margin-top: .9rem; }
.rc-skel {
  display: block; height: 14px;
  background: linear-gradient(90deg, hsl(0 0% 100% / .05), hsl(0 0% 100% / .12), hsl(0 0% 100% / .05));
  background-size: 200% 100%;
  animation: rc-skel-slide 1.4s ease-in-out infinite;
}
.rc-skel:nth-child(2) { width: 82%; }
.rc-skel:nth-child(3) { width: 64%; }
.rc-skel:nth-child(4) { width: 73%; }
@keyframes rc-skel-slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rc-skel { animation: none; } }

.rc-preview {
  padding: .16rem .5rem; border-radius: 999px;
  background: hsl(var(--rc-gold) / .18); border: 1px solid hsl(var(--rc-gold) / .45);
  font: 900 .56rem/1.5 var(--font-display, Inter), sans-serif;
  letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--rc-gold));
}
.rc-preview-note {
  margin: .8rem 0 0; padding: .7rem .9rem; max-width: 78ch;
  border-left: 2px solid hsl(var(--rc-gold) / .5); background: hsl(var(--rc-gold) / .07);
  font-size: .76rem; line-height: 1.6; color: var(--rc-dim);
}

/* ── the membership ───────────────────────────────────────────────────────── */

.rc-member { border-color: hsl(280 85% 66% / .35); }
.rc-member.is-on { border-color: hsl(150 70% 55% / .5); background: linear-gradient(150deg, hsl(150 70% 50% / .1), hsl(0 0% 100% / .02)); }
.rc-member-on { background: hsl(150 70% 50% / .18); border-color: hsl(150 70% 55% / .5); color: hsl(150 70% 66%); }
.rc-member-perks {
  display: flex; gap: .4rem; flex-wrap: wrap; list-style: none; margin: .8rem 0 0; padding: 0;
}
.rc-member-perks li {
  padding: .28rem .6rem;
  background: hsl(280 85% 60% / .12); border: 1px solid hsl(280 85% 66% / .3);
  font-size: .7rem; color: var(--rc-dim);
}
.rc-member.is-on .rc-member-perks li { background: hsl(150 70% 50% / .1); border-color: hsl(150 70% 55% / .3); }
.rc-member-foot { display: grid; gap: .5rem; justify-items: start; margin-top: .9rem; }
.rc-member-cta { text-decoration: none; padding: .5rem 1.1rem; }
.rc-member-note { max-width: 70ch; font-size: .72rem; line-height: 1.6; color: var(--rc-faint); }

/* ── the pass ─────────────────────────────────────────────────────────────── */

.rc-pass-state {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  margin: .9rem 0 .2rem;
}
.rc-pass-tier { text-align: center; line-height: 1; }
.rc-pass-tier small { display: block; font: 800 .52rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--rc-faint); }
.rc-pass-tier b { display: block; margin: .15rem 0; font: 900 2rem/1 ui-monospace, Menlo, monospace; color: #fff; text-shadow: 0 0 20px hsl(var(--rc-gold) / .55); }
.rc-pass-tier em { font-style: normal; font-size: .6rem; color: var(--rc-faint); }
.rc-pass-mid { min-width: 0; }
.rc-pass-rail-key { display: grid; gap: .25rem; justify-items: end; }

.rc-pass-grants { margin: .9rem 0 .2rem; font-size: .76rem; color: var(--rc-dim); }
.rc-pass-grants b { color: #fff; font-weight: 800; }

/* Ten tiers read as one line, so the track scrolls rather than wraps — and it
   scrolls inside itself, never taking the page body with it. */
.rc-tiers {
  display: flex; gap: .55rem; list-style: none; margin: 1rem 0 0; padding: 0 0 .7rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: hsl(var(--rc-gold) / .5) transparent;
}
.rc-tiers::-webkit-scrollbar { height: 6px; }
.rc-tiers::-webkit-scrollbar-thumb { background: hsl(var(--rc-gold) / .5); }

.rc-tier {
  flex: 0 0 150px; display: grid; gap: .35rem; padding: .6rem;
  background: hsl(0 0% 100% / .04); border: 1px solid hsl(0 0% 100% / .1);
  border-top: 2px solid hsl(0 0% 100% / .16);
}
.rc-tier.is-earned { border-top-color: hsl(150 70% 55%); background: hsl(150 70% 50% / .07); }
.rc-tier.is-claimed { border-top-color: hsl(150 70% 40%); opacity: .72; }
.rc-tier.is-here { border-color: hsl(var(--rc-gold) / .7); border-top-color: hsl(var(--rc-gold)); box-shadow: 0 0 22px hsl(var(--rc-gold) / .22); }
.rc-tier-n { display: flex; align-items: baseline; gap: .4rem; }
.rc-tier-n b { font: 900 1.1rem/1 ui-monospace, Menlo, monospace; color: hsl(0 0% 100% / .5); }
.rc-tier.is-here .rc-tier-n b { color: hsl(var(--rc-gold)); }
.rc-tier-n em {
  font-style: normal; font: 900 .48rem/1.4 var(--font-display, Inter), sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--rc-gold));
}
.rc-tier-rail { display: grid; gap: .2rem; padding: .4rem .45rem; background: hsl(0 0% 100% / .04); }
.rc-tier-rail.is-premium { background: hsl(280 85% 60% / .12); border-left: 2px solid hsl(280 85% 66% / .6); }
.rc-tier-rail.is-dim { opacity: .45; }
.rc-tier-icon { font-size: .95rem; line-height: 1; }
.rc-tier-label { font-size: .66rem; line-height: 1.35; color: var(--rc-dim); }
.rc-tier-chips { display: flex; gap: .22rem; flex-wrap: wrap; margin-top: .1rem; }
.rc-tier-chip {
  padding: .1rem .34rem; border-radius: 999px;
  background: hsl(0 0% 100% / .1); border: 1px solid hsl(0 0% 100% / .14);
  font: 800 .55rem/1.5 ui-monospace, Menlo, monospace; color: #fff;
}
.rc-tier-chip.is-cc { color: hsl(45 100% 70%); }
.rc-tier-chip.is-key { color: hsl(190 90% 70%); }
.rc-tier-chip.is-crate { color: hsl(320 90% 74%); }
.rc-tier-chip.is-prem.is-on { background: hsl(280 85% 60% / .3); border-color: hsl(280 85% 70% / .6); }

.rc-past { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid hsl(0 0% 100% / .1); }
.rc-past > b { display: block; margin-bottom: .45rem; font: 900 .6rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--rc-faint); }
.rc-past-row { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── crates ───────────────────────────────────────────────────────────────── */

.rc-crate-body { display: grid; grid-template-columns: auto 1fr; gap: .8rem 1rem; align-items: center; margin-top: .9rem; }
.rc-crate-art { width: 74px; height: 74px; object-fit: contain; grid-row: span 2; filter: drop-shadow(0 0 18px hsl(320 90% 60% / .45)); }
.rc-crate-counts { display: flex; gap: .5rem; flex-wrap: wrap; }
.rc-crate-counts .rc-wallet-chip b { font: 900 1rem/1 ui-monospace, Menlo, monospace; color: #fff; }
.rc-crate-open, .rc-ads-watch { justify-self: start; padding: .55rem 1.1rem; }

/* ── ads ──────────────────────────────────────────────────────────────────── */

.rc-ads-body { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; align-items: center; margin-top: .9rem; }
.rc-ads-count { text-align: center; line-height: 1; }
.rc-ads-count b { display: block; font: 900 1.9rem/1 ui-monospace, Menlo, monospace; color: #fff; }
.rc-ads-count em { font-style: normal; font-size: .6rem; color: var(--rc-faint); }
.rc-ads-mid { min-width: 0; }
.rc-ads-watch { grid-column: 1 / -1; }

/* ── invite a friend ──────────────────────────────────────────────────────── */

.rc-referral-body { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.rc-referral-line { flex: 1 1 260px; min-width: 0; font-size: .8rem; line-height: 1.6; color: var(--rc-faint); }
.rc-referral-line b { color: #fff; }
.rc-referral-copy { flex: 0 0 auto; padding: .55rem 1.1rem; }

@media (max-width: 900px) {
  .rc-earn-row { grid-template-columns: 1fr; }
  .rc-pass-state { grid-template-columns: auto 1fr; }
  .rc-pass-rail-key { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; }
}



/* ── the player card ──────────────────────────────────────────────────────── */

/* Layout only: the ring, avatar, level pip and chips are the Lobby's own
   classes out of aaa-experience.css, so this card IS the site's ID card. */
.rc-me {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 1.2rem 0 .8rem; padding: .8rem 1rem;
  background: hsl(0 0% 100% / .04);
  border: 1px solid hsl(0 0% 100% / .1);
  border-left: 3px solid hsl(var(--rc-gold));
  border-radius: 4px;
}
.rc-me-ring { flex: none; }
.rc-me-who { flex: 1; min-width: 220px; display: grid; gap: .3rem; }
.rc-me-name { font: 900 1.05rem/1.1 var(--font-display, Inter), sans-serif; letter-spacing: .04em; color: #fff; }
.rc-me-meta { font-size: .72rem; color: var(--rc-dim); }
.rc-me-meta b { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.rc-me-bar { max-width: 340px; }
.rc-me-next { font-size: .68rem; color: var(--rc-faint); }
.rc-me-next b { color: hsl(var(--rc-gold)); font-family: ui-monospace, Menlo, monospace; }
.rc-me-purse { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.rc-chip-btn { cursor: pointer; font: inherit; }
.rc-chip-btn:hover { border-color: hsl(var(--rc-gold) / .6); }
@media (max-width: 760px) {
  .rc-me-purse { width: 100%; }
}

/* ── the two views ────────────────────────────────────────────────────────── */

/* One thing at a time. The tab bar decides which host is visible; both stay in
   the DOM so a switch is instant and state survives it. */
.rc-views {
  display: flex; gap: .4rem; margin: .4rem 0 1.6rem;
  border-bottom: 1px solid hsl(0 0% 100% / .12);
  /* Three tabs outgrow a phone; the strip scrolls inside itself rather than
     stretching the page (the page must never scroll horizontally). */
  overflow-x: auto; scrollbar-width: none;
}
.rc-views::-webkit-scrollbar { display: none; }
.rc-view { flex: 0 0 auto; white-space: nowrap; }
.rc-view {
  padding: .7rem 1.2rem .8rem; cursor: pointer;
  background: transparent; border: none; border-bottom: 3px solid transparent;
  font: 900 .78rem/1 var(--font-display, Inter), sans-serif;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rc-dim);
  transition: color .2s, border-color .2s;
}
.rc-view span { margin-left: .3rem; padding: .12rem .4rem; border-radius: 999px; background: hsl(0 0% 100% / .1); font: 800 .6rem/1.4 ui-monospace, Menlo, monospace; }
.rc-view:hover { color: #fff; }
.rc-view.is-on { color: #fff; border-bottom-color: hsl(var(--rc-gold)); }
.rc-view.is-on span { background: hsl(var(--rc-gold)); color: hsl(40 60% 8%); }

body[data-rc-tab="market"] #rcEarn, body[data-rc-tab="market"] #rcInventory { display: none; }
body[data-rc-tab="earn"] #rcBody, body[data-rc-tab="earn"] #rcInventory { display: none; }
body[data-rc-tab="inventory"] #rcBody, body[data-rc-tab="inventory"] #rcEarn { display: none; }

/* Inventory-only furniture. */
.rc-inv-qty { background: hsl(45 100% 55%); color: hsl(40 60% 8%); }
.rc-inv-card.is-worn { border-color: hsl(150 70% 55% / .6); box-shadow: 0 0 20px hsl(150 70% 50% / .2); }
.rc-inv-play { justify-self: start; }

/* ── NEW badge + just-listed rail ─────────────────────────────────────────── */

.rc-card-new {
  position: absolute; top: .5rem; right: .5rem; z-index: 1;
  padding: .16rem .45rem; border-radius: 2px;
  background: hsl(150 80% 45%); color: hsl(150 70% 8%);
  font: 900 .56rem/1.3 var(--font-display, Inter), sans-serif; letter-spacing: .14em;
}
.rc-fresh .rc-sec-k { color: hsl(150 70% 60%); }
.rc-fresh .rc-card { border-color: hsl(150 70% 50% / .3); }

/* ── the item sheet ───────────────────────────────────────────────────────── */

.rc-sheet-overlay {
  position: fixed; inset: 0; z-index: 140; display: none;
  align-items: center; justify-content: center; padding: 1.2rem;
  background: hsl(260 45% 4% / .8); backdrop-filter: blur(6px);
}
.rc-sheet-overlay.open { display: flex; }
.rc-sheet {
  position: relative; display: grid; grid-template-columns: minmax(220px, 380px) 1fr;
  width: min(860px, 100%); max-height: min(84vh, 640px); overflow: auto;
  background: linear-gradient(150deg, hsl(var(--rc-plum) / .98), hsl(260 45% 8%));
  border: 1px solid hsl(var(--rc-gold) / .35);
}
.rc-sheet-x {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 34px; height: 34px; cursor: pointer;
  background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .18);
  color: #fff; font: 800 .8rem/1 sans-serif;
}
.rc-sheet-x:hover { background: hsl(0 0% 100% / .16); }
.rc-sheet-art { position: relative; min-height: 260px; background: hsl(260 40% 6%); display: grid; place-items: center; }
.rc-sheet-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-sheet-glyph { font-size: 4.5rem; }
.rc-sheet-body { padding: 1.6rem 1.6rem 1.4rem; display: grid; gap: .55rem; align-content: start; }
.rc-sheet-rarity { justify-self: start; padding: .18rem .55rem; border-radius: 999px; background: hsl(0 0% 100% / .1); font: 900 .58rem/1.4 var(--font-display, Inter), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--rc-dim); }
.rc-sheet-rarity.is-rare { color: hsl(210 90% 70%); }
.rc-sheet-rarity.is-epic { color: hsl(280 85% 74%); }
.rc-sheet-rarity.is-legendary { color: hsl(45 100% 64%); }
.rc-sheet-rarity.is-uncommon { color: hsl(150 70% 60%); }
.rc-sheet-body h2 { margin: 0; font: 900 1.5rem/1.15 var(--font-display, Inter), sans-serif; letter-spacing: .02em; color: #fff; }
.rc-sheet-kind { margin: 0; font-size: .74rem; color: var(--rc-faint); }
.rc-sheet-desc { margin: .3rem 0 0; font-size: .84rem; line-height: 1.65; color: var(--rc-dim); }
.rc-sheet-grants { margin-top: .4rem; padding: .7rem .9rem; background: hsl(150 70% 50% / .08); border-left: 2px solid hsl(150 70% 55% / .6); }
.rc-sheet-grants b { display: block; margin-bottom: .3rem; font: 900 .6rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .2em; text-transform: uppercase; color: hsl(150 70% 62%); }
.rc-sheet-grants ul { margin: 0; padding: 0 0 0 1rem; font-size: .78rem; line-height: 1.7; color: var(--rc-dim); }
.rc-sheet-lock { margin: .2rem 0 0; font-size: .76rem; line-height: 1.6; color: hsl(var(--rc-gold) / .9); }
.rc-sheet-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid hsl(0 0% 100% / .1); }
.rc-sheet-foot .rc-price { font-size: 1.05rem; }
.rc-sheet .rc-card-keyart { font-size: .6rem; }

/* ── the membership banner ────────────────────────────────────────────────── */

.rc-member-banner {
  margin-bottom: 1rem; padding: 1rem 1.2rem;
  background: linear-gradient(100deg, hsl(280 85% 40% / .35), hsl(280 60% 20% / .25) 65%);
  border: 1px solid hsl(280 85% 66% / .5); border-left: 4px solid hsl(280 85% 66%);
}
.rc-member-banner.is-on { background: linear-gradient(100deg, hsl(150 70% 35% / .3), hsl(150 50% 16% / .2) 65%); border-color: hsl(150 70% 55% / .5); border-left-color: hsl(150 70% 55%); }
.rc-member-lead { display: flex; align-items: center; gap: .9rem; }
.rc-member-mark { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 0 12px hsl(280 85% 66% / .8)); }
.rc-member-lead > div { flex: 1; min-width: 0; }
.rc-member-lead b { display: block; font: 900 1rem/1.1 var(--font-display, Inter), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.rc-member-lead small { display: block; margin-top: .2rem; font-size: .76rem; color: var(--rc-dim); }
.rc-member-banner .rc-member-perks { margin-top: .7rem; }
.rc-grant-link {
  padding: 0; cursor: pointer; background: none; border: none;
  font: 800 inherit; color: #fff; text-decoration: underline;
  text-decoration-color: hsl(var(--rc-gold) / .6); text-underline-offset: 3px;
}
.rc-grant-link:hover { text-decoration-color: hsl(var(--rc-gold)); }


/* ── THE 10X PASS — the owner's mockup ────────────────────────────────────── */

/* The hero title carries the mockup's gradient. */
.rc-hero h1 {
  background: linear-gradient(100deg, #fff 30%, hsl(320 90% 74%) 70%, hsl(var(--rc-gold)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Cards wear their rarity: notched corner, ribbon, temperature. */
.rc-card {
  border-color: hsl(var(--r) / .25);
  border-top: 2px solid hsl(var(--r) / .6);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.rc-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--r) / .7);
  box-shadow: 0 14px 34px hsl(260 45% 3% / .7), 0 0 26px hsl(var(--r) / .32);
  cursor: pointer;
}

/* The rarity RIBBON — angled, top-left, cutting the notch. */
.rc-card .rc-card-rarity {
  position: absolute; top: 0; left: 0; right: auto; bottom: auto;
  padding: .24rem .9rem .24rem .7rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: hsl(var(--r));
  color: hsl(260 45% 8%);
  font: 900 .56rem/1.3 var(--font-display, Inter), sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  border: none; border-radius: 0;
}

/* The art gets room and a rarity-tinted stage behind it. */
.rc-card-art {
  min-height: 150px; overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 45%, hsl(var(--r) / .18), transparent 75%),
    hsl(260 40% 6%);
}
.rc-card.is-big .rc-card-art { min-height: 180px; }
.rc-card-art img { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rc-card:hover .rc-card-art img { transform: scale(1.06); }
.rc-card-glyph { filter: drop-shadow(0 0 18px hsl(var(--r) / .55)); }
.rc-card-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, hsl(0 0% 100% / .13) 50%, transparent 58%);
  transform: translateX(-120%);
}
.rc-card:hover .rc-card-art::after { transition: transform .55s ease; transform: translateX(120%); }

/* REDEEM wears the card's own rarity — a rare buys blue, a legendary gold. */
.rc-card .rc-buy:not(.is-locked):not(.is-owned) {
  background: hsl(var(--r));
  color: hsl(260 45% 8%); border: none;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  font-weight: 900; letter-spacing: .12em;
  transition: filter .2s, transform .15s;
}
.rc-card .rc-buy:not(.is-locked):not(.is-owned):hover { filter: brightness(1.15); transform: translateY(-1px); }

/* The sheet's Redeem stays gold — one big commitment button, one colour. */

/* Department tiles light their icon when chosen. */
.rc-dept-icon { transition: filter .25s, transform .25s; }
.rc-dept.is-on .rc-dept-icon { filter: drop-shadow(0 0 10px hsl(var(--rc-gold) / .8)); transform: scale(1.12); }

/* Section headers rule off like shelves. */
.rc-sec-head { position: relative; padding-bottom: .55rem; }
.rc-sec-head::after {
  content: ''; position: absolute; left: 0; right: 30%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, hsl(var(--rc-gold) / .5), transparent);
}
.rc-fresh .rc-sec-head::after { background: linear-gradient(90deg, hsl(150 70% 55% / .5), transparent); }

/* Your tier on the pass track pulses — state-driven, one element. */
@keyframes rc-here-pulse {
  0%, 100% { box-shadow: 0 0 18px hsl(var(--rc-gold) / .18); }
  50% { box-shadow: 0 0 30px hsl(var(--rc-gold) / .45); }
}
.rc-tier.is-here { animation: rc-here-pulse 2.6s ease-in-out infinite; }

/* A crate that CAN open is charged; one that cannot sits dark. */
@keyframes rc-crate-charge {
  0%, 100% { filter: drop-shadow(0 0 14px hsl(320 90% 60% / .35)); }
  50% { filter: drop-shadow(0 0 26px hsl(320 90% 62% / .7)); }
}
.rc-crates:has(.rc-crate-open:not(:disabled)) .rc-crate-art { animation: rc-crate-charge 2.2s ease-in-out infinite; }

/* The ID card warms to the page's gold. */
.rc-me { background: linear-gradient(100deg, hsl(var(--rc-gold) / .08), hsl(0 0% 100% / .03) 55%); }

/* The sheet opens with a settle, not a blink. */
@keyframes rc-sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.rc-sheet-overlay.open .rc-sheet { animation: rc-sheet-in .28s cubic-bezier(.2,.8,.2,1); }

/* Every motion in this pass stops when the player asks it to. */
@media (prefers-reduced-motion: reduce) {
  .rc-card, .rc-card-art img, .rc-dept-icon, .rc-buy { transition: none; }
  .rc-card:hover { transform: none; }
  .rc-card:hover .rc-card-art img { transform: none; }
  .rc-card-art::after { display: none; }
  .rc-tier.is-here, .rc-crates:has(.rc-crate-open:not(:disabled)) .rc-crate-art,
  .rc-sheet-overlay.open .rc-sheet { animation: none; }
}


/* ── the player card, 100x ────────────────────────────────────────────────── */

.rc-me {
  position: relative; overflow: hidden;
  gap: 1.4rem; padding: 1.3rem 1.5rem;
  border: 1px solid hsl(var(--rc-gold) / .35); border-left: 4px solid hsl(var(--rc-gold));
  border-radius: 6px;
  background:
    radial-gradient(60% 140% at 0% 50%, hsl(var(--rc-gold) / .14), transparent 60%),
    radial-gradient(50% 120% at 100% 50%, hsl(280 85% 60% / .1), transparent 60%),
    linear-gradient(100deg, hsl(260 45% 8%), hsl(260 45% 5%));
  box-shadow: 0 10px 40px hsl(260 45% 3% / .6);
}
.rc-me-ring { transform: scale(1.25); margin: .5rem .6rem .5rem .4rem; }
.rc-me-top { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.rc-me-name {
  font: 900 1.5rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .03em; color: #fff;
  text-shadow: 0 0 24px hsl(var(--rc-gold) / .35);
}
.rc-me-title {
  padding: .2rem .6rem; border-radius: 999px;
  background: hsl(280 85% 60% / .16); border: 1px solid hsl(280 85% 66% / .45);
  font: 800 .62rem/1.4 var(--font-display, Inter), sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: hsl(280 85% 78%);
}
.rc-me-streak {
  font: 800 .68rem/1.4 var(--font-body, Inter), sans-serif; color: hsl(25 100% 62%);
}
.rc-me-bigbar {
  display: block; position: relative; height: 14px; margin: .65rem 0 .45rem;
  border-radius: 99px; background: hsl(0 0% 100% / .08);
  border: 1px solid hsl(0 0% 100% / .1); overflow: hidden;
}
.rc-me-bigbar i {
  display: flex; align-items: center; justify-content: flex-end;
  height: 100%; width: var(--p, 0%); border-radius: 99px;
  background: linear-gradient(90deg, hsl(var(--rc-gold)), hsl(320 90% 62%));
  box-shadow: 0 0 18px hsl(var(--rc-gold) / .55);
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.rc-me-bigbar em {
  font: 900 .58rem/1 ui-monospace, Menlo, monospace; font-style: normal;
  color: hsl(260 45% 10%); padding-right: .45rem;
}
.rc-me-meta { font-size: .76rem; color: var(--rc-dim); }
.rc-me-meta b { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.rc-me-meta .rc-me-gold { color: hsl(var(--rc-gold)); }

.rc-me-purse { display: flex; align-items: stretch; gap: .55rem; }
.rc-stat {
  display: grid; justify-items: center; align-content: center; gap: .15rem;
  min-width: 86px; padding: .55rem .8rem; border-radius: 5px;
  background: hsl(45 100% 55% / .1); border: 1px solid hsl(45 100% 55% / .35);
}
.rc-stat img, .rc-stat > span { width: 20px; height: 20px; font-size: 1rem; line-height: 1; }
.rc-stat b { font: 900 1.05rem/1 ui-monospace, Menlo, monospace; color: #fff; }
.rc-stat small { font: 800 .5rem/1.3 var(--font-display, Inter), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--rc-faint); }
.rc-stat.is-ac { background: hsl(280 85% 60% / .12); border-color: hsl(280 85% 66% / .4); }
.rc-stat.is-door { cursor: pointer; font: inherit; background: hsl(0 0% 100% / .05); border-color: hsl(0 0% 100% / .16); transition: border-color .2s, background .2s; }
.rc-stat.is-door:hover { border-color: hsl(var(--rc-gold) / .7); background: hsl(var(--rc-gold) / .1); }

.rc-earnxp {
  display: grid; align-content: center; justify-items: center; gap: .15rem;
  padding: .55rem 1.3rem; border-radius: 5px; text-decoration: none;
  background: linear-gradient(115deg, hsl(var(--rc-gold)), hsl(35 100% 50%));
  box-shadow: 0 0 26px hsl(var(--rc-gold) / .4);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.rc-earnxp b { font: 900 .92rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: hsl(40 60% 8%); }
.rc-earnxp small { font: 800 .56rem/1.3 var(--font-body, Inter), sans-serif; color: hsl(40 60% 16%); }
.rc-earnxp:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 32px hsl(var(--rc-gold) / .55); }

@media (max-width: 900px) {
  .rc-me { gap: .9rem; }
  .rc-me-purse { width: 100%; flex-wrap: wrap; }
  .rc-earnxp { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-me-bigbar i, .rc-earnxp { transition: none; }
  .rc-earnxp:hover { transform: none; }
}


/* Collection meters — the completionist pull. Data is the shelf's own owned flags. */
.rc-meter { display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem; }
.rc-meter i { display: block; width: 90px; height: 4px; border-radius: 99px; background: hsl(0 0% 100% / .1); overflow: hidden; position: relative; }
.rc-meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, hsl(var(--rc-gold)), hsl(320 90% 66%)); }
.rc-meter em { font: 800 .58rem/1 ui-monospace, Menlo, monospace; font-style: normal; color: var(--rc-faint); }
.rc-meter.is-full i::after { background: hsl(150 70% 55%); }
.rc-meter.is-full em { color: hsl(150 70% 62%); }
.rc-dept .rc-meter { margin-top: .35rem; }
.rc-dept .rc-meter i { width: 100%; flex: 1; }


/* TODAY'S DEAL — the marquee. Rarity hue lights the stage; the last hour goes red. */
.rc-deal {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto;
  gap: 1.6rem; align-items: center;
  margin-bottom: 2.2rem; padding: 1.4rem 1.6rem;
  border: 1px solid hsl(var(--r) / .5); border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(70% 130% at 12% 50%, hsl(var(--r) / .2), transparent 60%),
    linear-gradient(110deg, hsl(260 45% 8%), hsl(260 45% 5%));
  box-shadow: 0 12px 44px hsl(260 45% 3% / .6), inset 0 0 60px hsl(var(--r) / .06);
}
.rc-deal-stage {
  position: relative; display: grid; place-items: center;
  min-height: 190px; border-radius: 6px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 55%, hsl(var(--r) / .3), hsl(260 40% 5%) 80%);
  border: 1px solid hsl(var(--r) / .4);
}
.rc-deal-stage img { width: 100%; height: 100%; object-fit: cover; }
.rc-deal-glyph { font-size: 4.4rem; filter: drop-shadow(0 0 26px hsl(var(--r) / .8)); }
.rc-deal-burst {
  position: absolute; top: .7rem; left: .7rem;
  padding: .35rem .7rem; transform: rotate(-6deg);
  clip-path: polygon(8% 0, 100% 6%, 94% 100%, 0 92%);
  background: hsl(0 90% 55%); color: #fff;
  font: 900 1.05rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .04em;
  box-shadow: 0 0 24px hsl(0 90% 55% / .6);
}
.rc-deal-pitch { display: grid; gap: .45rem; justify-items: start; min-width: 0; }
.rc-deal-eyebrow { font: 900 .62rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .26em; text-transform: uppercase; color: hsl(var(--r)); }
.rc-deal-name { margin: 0; font: 900 1.7rem/1.1 var(--font-display, Inter), sans-serif; color: #fff; text-shadow: 0 0 26px hsl(var(--r) / .4); }
.rc-deal-line { margin: 0; max-width: 52ch; font-size: .8rem; line-height: 1.55; color: var(--rc-dim); }
.rc-deal-prices { display: flex; align-items: baseline; gap: .8rem; margin-top: .2rem; }
.rc-deal-prices s { font: 700 1rem/1 ui-monospace, Menlo, monospace; color: var(--rc-faint); }
.rc-deal-prices b { font: 900 2.3rem/1 ui-monospace, Menlo, monospace; color: hsl(var(--rc-gold)); text-shadow: 0 0 26px hsl(var(--rc-gold) / .55); }
.rc-deal-prices b small { font-size: .9rem; }
.rc-deal-save {
  padding: .3rem .6rem; border-radius: 3px; transform: rotate(-2deg);
  background: hsl(150 80% 45%); color: hsl(150 70% 8%);
  font: 900 .72rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .08em;
}
.rc-deal-cta { padding: .8rem 1.6rem; font-size: .8rem; margin-top: .3rem; }
.rc-deal-count { display: grid; gap: .3rem; justify-items: center; text-align: center; }
.rc-deal-count small { font: 800 .56rem/1.4 var(--font-display, Inter), sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--rc-faint); max-width: 16ch; }
.rc-deal-clock { display: flex; align-items: center; gap: .2rem; }
.rc-deal-clock b {
  min-width: 2.2ch; padding: .45rem .5rem; border-radius: 5px;
  background: hsl(260 45% 4%); border: 1px solid hsl(var(--rc-gold) / .5);
  font: 900 1.4rem/1 ui-monospace, Menlo, monospace; color: hsl(var(--rc-gold));
}
.rc-deal-clock em { font-style: normal; font-weight: 900; color: var(--rc-faint); }
/* The last hour: the clock turns red and the banner's pulse quickens. */
.rc-deal.is-late { border-color: hsl(0 90% 55% / .6); }
.rc-deal.is-late .rc-deal-clock b { border-color: hsl(0 90% 55% / .7); color: hsl(0 90% 62%); }
@keyframes rc-deal-late { 0%,100% { box-shadow: 0 12px 44px hsl(260 45% 3% / .6); } 50% { box-shadow: 0 12px 44px hsl(0 90% 40% / .35); } }
.rc-deal.is-late { animation: rc-deal-late 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .rc-deal.is-late { animation: none; } }
@media (max-width: 860px) { .rc-deal { grid-template-columns: 1fr; } .rc-deal-count { justify-items: start; text-align: left; } }


/* The flex shelf: three picks riding the player card, chosen from Inventory. */
.rc-me-flex { display: flex; gap: .4rem; align-items: center; }
.rc-me-flex-slot {
  display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden;
  border-radius: 5px; font-size: 1.2rem;
  background: hsl(0 0% 100% / .06); border: 1px solid hsl(var(--rc-gold) / .5);
  box-shadow: 0 0 14px hsl(var(--rc-gold) / .25);
}
.rc-me-flex-slot img { width: 100%; height: 100%; object-fit: cover; }
.rc-flex {
  padding: .3rem .55rem; cursor: pointer; border-radius: 3px;
  background: transparent; border: 1px solid hsl(0 0% 100% / .2);
  font: 800 .6rem/1 var(--font-body, Inter), sans-serif; color: var(--rc-dim);
}
.rc-flex:hover:not(:disabled) { border-color: hsl(var(--rc-gold) / .7); color: #fff; }
.rc-flex.is-on { background: hsl(var(--rc-gold) / .16); border-color: hsl(var(--rc-gold) / .6); color: hsl(var(--rc-gold)); }
.rc-flex:disabled { opacity: .45; cursor: not-allowed; }


/* The game dropdown — native, because it will one day hold hundreds. */
.rc-game-select {
  padding: .55rem .8rem; min-width: 200px; cursor: pointer;
  background: hsl(0 0% 100% / .06); border: 1px solid hsl(0 0% 100% / .16);
  border-radius: 3px; color: #fff;
  font: 700 .76rem/1.2 var(--font-body, Inter), sans-serif;
}
.rc-game-select:hover, .rc-game-select:focus-visible { border-color: hsl(var(--rc-gold) / .6); }
.rc-game-select option { background: hsl(260 45% 8%); color: #fff; }


/* The sheet's exits, made obvious; Redeem made the star. */
.rc-sheet-x {
  width: auto; height: auto; padding: .45rem .8rem; border-radius: 999px;
  font: 800 .68rem/1 var(--font-body, Inter), sans-serif; letter-spacing: .08em;
}
.rc-sheet-redeem {
  padding: .8rem 1.5rem; font-size: .82rem;
  background: linear-gradient(100deg, hsl(var(--rc-gold)), hsl(35 100% 52%));
  color: hsl(40 60% 8%); border: none;
  box-shadow: 0 0 24px hsl(var(--rc-gold) / .4);
}
.rc-sheet-redeem:hover { filter: brightness(1.1); }
.rc-sheet-side {
  margin-left: auto; font: 700 .72rem/1 var(--font-body, Inter), sans-serif;
  color: var(--rc-faint); text-decoration: underline; text-underline-offset: 3px;
}
.rc-sheet-side:hover { color: #fff; }

/* The real currency marks, sized to ride inline with a price. */
.rc-cur { width: 14px; height: 14px; vertical-align: -2px; }
.rc-sheet-redeem .rc-cur, .rc-deal-prices .rc-cur { width: 18px; height: 18px; vertical-align: -3px; }


/* Affordability: a price you can pay glows; the nudge on the card is a door. */
.rc-price.is-afford { color: hsl(150 80% 60%); text-shadow: 0 0 12px hsl(150 80% 50% / .5); }
.rc-me-afford {
  justify-self: start; padding: .3rem .7rem; margin-bottom: .2rem; cursor: pointer;
  border-radius: 999px; background: hsl(150 70% 45% / .14); border: 1px solid hsl(150 70% 50% / .5);
  font: 700 .7rem/1.3 var(--font-body, Inter), sans-serif; color: hsl(150 70% 66%);
}
.rc-me-afford b { font-family: ui-monospace, Menlo, monospace; color: #fff; }
.rc-me-afford:hover { background: hsl(150 70% 45% / .24); }

/* Fresh stock, counted on the tile. */
.rc-dept-new {
  position: absolute; bottom: .7rem; right: .8rem;
  padding: .14rem .45rem; border-radius: 999px;
  background: hsl(150 80% 45% / .2); border: 1px solid hsl(150 80% 50% / .5);
  font: 900 .54rem/1.4 ui-monospace, Menlo, monospace; color: hsl(150 80% 62%);
}

/* The sort select sits with its sibling. */
.rc-sort-select { min-width: 150px; }
.rc-sheet-copy { background: none; border: none; cursor: pointer; padding: 0; }


/* ── THE VAULT ────────────────────────────────────────────────────────────── */

.rc-vault {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 2.2rem; align-items: center;
  margin-bottom: 1.8rem; padding: 1.8rem 2rem;
  border: 1px solid hsl(var(--rc-gold) / .45); border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(55% 150% at 0% 50%, hsl(var(--rc-gold) / .16), transparent 55%),
    radial-gradient(45% 130% at 100% 50%, hsl(280 85% 60% / .12), transparent 60%),
    linear-gradient(100deg, hsl(260 45% 9%), hsl(260 45% 5%));
  box-shadow: 0 14px 50px hsl(260 45% 3% / .65), inset 0 0 80px hsl(var(--rc-gold) / .05);
}
.rc-vault small { display: block; font: 900 .58rem/1.4 var(--font-display, Inter), sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--rc-faint); }
.rc-vault-door { display: grid; gap: .3rem; justify-items: start; }
.rc-vault-k { font: 900 .68rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .3em; text-transform: uppercase; color: hsl(var(--rc-gold)); }
.rc-vault-pct b { font: 900 3.4rem/1 ui-monospace, Menlo, monospace; color: #fff; text-shadow: 0 0 34px hsl(var(--rc-gold) / .6); }
.rc-vault-pct small { display: inline; font-size: 1.3rem; color: hsl(var(--rc-gold)); }
.rc-vault-line { font-size: .74rem; color: var(--rc-dim); }
.rc-vault-line b { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.rc-vault-door .rc-meter i { width: 170px; height: 7px; }

.rc-vault-worth { display: grid; gap: .3rem; padding-left: 1.6rem; border-left: 1px solid hsl(0 0% 100% / .1); }
.rc-hq-sum { display: inline-flex; align-items: center; gap: .4rem; }
.rc-hq-sum b { font: 900 1.7rem/1 ui-monospace, Menlo, monospace; color: hsl(45 100% 66%); text-shadow: 0 0 18px hsl(45 100% 55% / .4); }
.rc-hq-sum.is-ac b { color: hsl(280 85% 76%); text-shadow: 0 0 18px hsl(280 85% 60% / .4); }
.rc-vault-worth em { font-style: normal; font-size: .6rem; color: var(--rc-faint); }

/* The gem row: owned rarities burn; empty sockets sit dark and say so. */
.rc-vault-gems { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.rc-gem {
  display: grid; justify-items: center; gap: .1rem; min-width: 72px; padding: .7rem .5rem .55rem;
  border-radius: 7px; background: hsl(var(--r, 210 10% 70%) / .1); border: 1px solid hsl(var(--r, 210 10% 70%) / .4);
}
.rc-gem i { font-style: normal; font-size: 1.25rem; line-height: 1; color: hsl(var(--r)); filter: drop-shadow(0 0 10px hsl(var(--r) / .8)); }
.rc-gem b { font: 900 1.05rem/1 ui-monospace, Menlo, monospace; color: #fff; }
.rc-gem small { font-size: .5rem; letter-spacing: .12em; }
.rc-gem em { font-style: normal; font-size: .48rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rc-faint); }
.rc-gem.is-common { --r: 210 10% 70%; } .rc-gem.is-uncommon { --r: 150 70% 55%; }
.rc-gem.is-rare { --r: 210 90% 62%; } .rc-gem.is-epic { --r: 280 85% 68%; }
.rc-gem.is-legendary { --r: 45 100% 60%; }
.rc-gem.is-none { background: hsl(0 0% 100% / .03); border-style: dashed; border-color: hsl(0 0% 100% / .18); }
.rc-gem.is-none i { color: hsl(0 0% 100% / .25); filter: none; }
.rc-gem.is-none b { color: var(--rc-faint); }

/* THE PODIUM: three stands, the centre raised, all lit from below. */
.rc-vault-podium { display: grid; gap: .4rem; justify-items: center; }
.rc-podium { display: flex; gap: .7rem; align-items: flex-end; }
.rc-stand { display: grid; gap: .3rem; justify-items: center; background: none; border: none; padding: 0; }
.rc-stand.is-full { cursor: pointer; }
.rc-stand-art {
  position: relative; display: grid; place-items: center; width: 74px; height: 74px; overflow: hidden;
  border-radius: 8px; font-size: 1.7rem;
  background: hsl(260 40% 6%); border: 1px solid hsl(var(--rc-gold) / .55);
  box-shadow: 0 10px 22px hsl(260 45% 3% / .7), 0 0 22px hsl(var(--rc-gold) / .3);
}
.rc-stand.is-centre .rc-stand-art { width: 92px; height: 92px; box-shadow: 0 12px 26px hsl(260 45% 3% / .7), 0 0 32px hsl(var(--rc-gold) / .45); }
.rc-stand-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-stand.is-empty .rc-stand-art { border-style: dashed; border-color: hsl(0 0% 100% / .25); box-shadow: none; }
.rc-stand.is-empty em { font-style: normal; font: 300 1.8rem/1 sans-serif; color: hsl(0 0% 100% / .3); }
.rc-stand-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .56rem/1.3 var(--font-body, Inter), sans-serif; color: var(--rc-dim); }
.rc-stand.is-empty .rc-stand-name { color: var(--rc-faint); letter-spacing: .08em; text-transform: uppercase; }
.rc-stand.is-full:hover .rc-stand-art { border-color: hsl(var(--rc-gold)); }

/* PEDESTALS: your possessions, staged. Taller art on a lit floor with a plate. */
.rc-pedestal .rc-card-art { min-height: 170px; }
.rc-pedestal .rc-card-art::before {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 6px; height: 16px; z-index: 0;
  border-radius: 50%; background: radial-gradient(50% 100% at 50% 50%, hsl(var(--r) / .45), transparent 75%);
}
.rc-pedestal { border-color: hsl(var(--r) / .45); box-shadow: inset 0 -24px 30px -22px hsl(var(--r) / .35); }
.rc-pedestal.is-worn { border-color: hsl(150 70% 55% / .7); box-shadow: inset 0 -24px 30px -22px hsl(150 70% 50% / .4), 0 0 24px hsl(150 70% 50% / .25); }

/* GROW IT: three full want-cards, not strips. */
.rc-grow { margin-bottom: 2.2rem; }
.rc-grow .rc-sec-k { color: hsl(150 70% 60%); }
.rc-grow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.rc-grow-card {
  display: grid; padding: 0; cursor: pointer; text-align: left; overflow: hidden;
  background: linear-gradient(160deg, hsl(150 70% 40% / .12), hsl(260 45% 6%) 55%);
  border: 1px solid hsl(150 70% 50% / .4); border-radius: 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rc-grow-card:hover { border-color: hsl(150 70% 58%); transform: translateY(-3px); box-shadow: 0 12px 30px hsl(260 45% 3% / .6), 0 0 24px hsl(150 70% 50% / .3); }
.rc-grow-art { display: grid; place-items: center; height: 130px; overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, hsl(150 70% 45% / .18), hsl(260 40% 6%) 80%); }
.rc-grow-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-grow-glyph { font-size: 2.6rem; filter: drop-shadow(0 0 16px hsl(150 70% 50% / .6)); }
.rc-grow-body { display: grid; gap: .15rem; padding: .7rem .9rem .4rem; }
.rc-grow-body b { font: 800 .86rem/1.25 var(--font-body, Inter), sans-serif; color: #fff; }
.rc-grow-body small { font-size: .64rem; color: var(--rc-faint); }
.rc-grow-foot {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin: .5rem .9rem .8rem; padding: .55rem;
  border-radius: 4px; background: hsl(150 80% 45%); color: hsl(150 70% 8%);
  font: 900 .72rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .1em;
}

/* The set line on inventory game shelves. */
.rc-inv-gamehead { grid-template-columns: 1fr auto; }
.rc-set-done {
  padding: .35rem .7rem; border-radius: 3px;
  background: hsl(150 70% 45% / .18); border: 1px solid hsl(150 70% 55% / .5);
  font: 900 .62rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .16em; color: hsl(150 70% 65%);
}
.rc-inv-gamehead .rc-shelf-play { cursor: pointer; background: none; }

@media (max-width: 1100px) { .rc-vault { grid-template-columns: 1fr 1fr; } .rc-vault-gems { justify-content: start; } }
@media (prefers-reduced-motion: reduce) { .rc-grow-card { transition: none; } .rc-grow-card:hover { transform: none; } }


/* ── TODAY'S TABLE — the daily harvest, as a checklist with doors. ────────── */
.rc-today {
  display: grid; gap: .5rem; margin-bottom: 1.2rem; padding: 1.1rem 1.3rem;
  border: 1px solid hsl(45 100% 55% / .5); border-left: 4px solid hsl(var(--rc-gold));
  border-radius: 8px;
  background:
    radial-gradient(60% 160% at 0% 50%, hsl(var(--rc-gold) / .16), transparent 55%),
    linear-gradient(100deg, hsl(260 45% 9%), hsl(260 45% 5%));
}
.rc-today-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .3rem; }
.rc-today-k { font: 900 .7rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .28em; text-transform: uppercase; color: hsl(var(--rc-gold)); }
.rc-today-pot { font-size: .8rem; color: var(--rc-dim); }
.rc-today-pot b { font: 900 1.1rem/1 ui-monospace, Menlo, monospace; color: hsl(45 100% 66%); text-shadow: 0 0 14px hsl(45 100% 55% / .5); }
.rc-today-pot.is-clear { color: var(--rc-faint); }
.rc-today-line {
  display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: .6rem;
  padding: .5rem .7rem; border-radius: 5px;
  background: hsl(0 0% 100% / .04); border: 1px solid hsl(0 0% 100% / .08);
}
.rc-today-line.is-done { opacity: .55; }
.rc-today-tick {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px;
  border: 1px solid hsl(0 0% 100% / .25); font: 900 .7rem/1 sans-serif; color: hsl(150 70% 60%);
}
.rc-today-line.is-done .rc-today-tick { background: hsl(150 70% 45% / .2); border-color: hsl(150 70% 55% / .6); }
.rc-today-ico { font-size: 1rem; }
.rc-today-txt { font-size: .8rem; color: var(--rc-dim); }
.rc-today-txt b { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.rc-today-go {
  padding: .35rem .8rem; cursor: pointer; border-radius: 999px;
  background: hsl(var(--rc-gold) / .16); border: 1px solid hsl(var(--rc-gold) / .55);
  font: 900 .6rem/1 var(--font-display, Inter), sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: hsl(var(--rc-gold));
}
.rc-today-go:hover { background: hsl(var(--rc-gold)); color: hsl(40 60% 8%); }

/* ── the crate's posted odds ──────────────────────────────────────────────── */
.rc-odds { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed hsl(0 0% 100% / .12); }
.rc-odds small { display: block; margin-bottom: .45rem; font: 800 .54rem/1.4 var(--font-display, Inter), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--rc-faint); }
.rc-odds-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.rc-odd {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .55rem; border-radius: 4px;
  background: hsl(var(--r, 210 10% 70%) / .1); border: 1px solid hsl(var(--r, 210 10% 70%) / .4);
}
.rc-odd b { font: 800 .66rem/1.3 var(--font-body, Inter), sans-serif; color: #fff; }
.rc-odd em { font: 900 .6rem/1.3 ui-monospace, Menlo, monospace; font-style: normal; color: hsl(var(--r)); }
.rc-odd.is-common { --r: 210 10% 70%; } .rc-odd.is-rare { --r: 210 90% 62%; }
.rc-odd.is-epic { --r: 280 85% 68%; } .rc-odd.is-legendary { --r: 45 100% 60%; }

/* ── the ad pips ──────────────────────────────────────────────────────────── */
.rc-pips { display: flex; gap: .3rem; margin-bottom: .4rem; }
.rc-pip { flex: 1; height: 9px; border-radius: 99px; background: hsl(0 0% 100% / .1); border: 1px solid hsl(0 0% 100% / .1); }
.rc-pip.is-lit { background: linear-gradient(90deg, hsl(var(--rc-gold)), hsl(320 90% 66%)); border-color: transparent; box-shadow: 0 0 10px hsl(var(--rc-gold) / .5); }

/* ── quest cards: the three you are nearest ───────────────────────────────── */
.rc-quests { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .7rem; margin: .9rem 0 1.1rem; }
.rc-quest {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  padding: .8rem 1rem; border-radius: 7px;
  background: linear-gradient(120deg, hsl(45 100% 50% / .1), hsl(260 45% 6%) 60%);
  border: 1px solid hsl(45 100% 55% / .4);
}
.rc-quest-ico { font-size: 1.6rem; filter: drop-shadow(0 0 12px hsl(45 100% 55% / .5)); }
.rc-quest-mid { display: grid; gap: .3rem; min-width: 0; }
.rc-quest-mid b { font: 800 .84rem/1.2 var(--font-body, Inter), sans-serif; color: #fff; }
.rc-quest-bar { display: block; position: relative; height: 10px; border-radius: 99px; background: hsl(0 0% 100% / .1); overflow: hidden; }
.rc-quest-bar i { display: flex; align-items: center; justify-content: flex-end; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, hsl(45 100% 60%), hsl(320 90% 66%)); box-shadow: 0 0 12px hsl(45 100% 55% / .5); }
.rc-quest-bar em { font: 900 .5rem/1 ui-monospace, Menlo, monospace; font-style: normal; color: hsl(260 45% 10%); padding-right: .3rem; }
.rc-quest-mid small { font-size: .62rem; color: var(--rc-faint); }
.rc-quest-mid small b { color: hsl(0 0% 100% / .8); font-family: ui-monospace, Menlo, monospace; }
.rc-quest-pay { white-space: nowrap; padding: .25rem .5rem; border-radius: 4px; background: hsl(0 0% 100% / .08); font: 800 .64rem/1.4 ui-monospace, Menlo, monospace; color: hsl(45 100% 70%); }

/* ── the pass track becomes a road ────────────────────────────────────────── */
.rc-tiers { position: relative; }
.rc-tiers::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: linear-gradient(90deg, hsl(var(--rc-gold) / .4), hsl(320 90% 60% / .25));
  pointer-events: none;
}
.rc-tier { position: relative; z-index: 1; }


/* ── the shelf while it refreshes: dimmed, never wiped ────────────────────── */
body.rc-refreshing #rcBody, body.rc-refreshing #rcEarn, body.rc-refreshing #rcInventory {
  opacity: .55; pointer-events: none; transition: opacity .2s;
}
body.rc-refreshing::after {
  content: 'updating the shelf…';
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 130;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: hsl(var(--rc-plum) / .97); border: 1px solid hsl(var(--rc-gold) / .5);
  font: 800 .72rem/1 var(--font-body, Inter), sans-serif; color: #fff;
}

/* ── the crate ceremony: shake while the server decides, burst on the answer */
@keyframes rc-crate-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg) translateX(-2px); }
  40% { transform: rotate(6deg) translateX(2px); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(4deg); }
}
.rc-crate-art.is-opening { animation: rc-crate-shake .5s ease-in-out infinite; }
@keyframes rc-crate-burst {
  0% { transform: scale(1); filter: drop-shadow(0 0 20px hsl(320 90% 62% / .7)) brightness(1); }
  45% { transform: scale(1.35); filter: drop-shadow(0 0 60px hsl(45 100% 60% / 1)) brightness(1.8); }
  100% { transform: scale(1); filter: drop-shadow(0 0 18px hsl(320 90% 60% / .4)) brightness(1); }
}
.rc-crate-art.is-burst { animation: rc-crate-burst .6s cubic-bezier(.2,.8,.2,1) 1; }
@media (prefers-reduced-motion: reduce) {
  .rc-crate-art.is-opening, .rc-crate-art.is-burst { animation: none; }
}

/* ── the phone pass: what the 375px audit actually caught ─────────────────── */

/* The deal's struck price wrapped mid-number; prices never break. */
.rc-deal-prices s, .rc-deal-prices b { white-space: nowrap; }

/* The Vault's two-column fallback clipped the podium off the right edge on
   phones. Under 640px it stacks: door, worth, gems, podium — all centred,
   nothing clipped. */
@media (max-width: 640px) {
  .rc-vault { grid-template-columns: 1fr; gap: 1.2rem; justify-items: center; text-align: center; }
  .rc-vault-door { justify-items: center; }
  .rc-vault-worth { padding-left: 0; border-left: none; justify-items: center; }
  .rc-vault-gems { justify-content: center; }
  .rc-gem { min-width: 60px; }
}

/* The Game Pass banner squeezed its pitch into a one-word column beside the
   star. Under 640px the lead stacks and the CTA takes the full row. */
@media (max-width: 640px) {
  .rc-member-lead { flex-wrap: wrap; }
  .rc-member-lead > div { flex: 1 1 100%; order: 3; }
  .rc-member-cta, .rc-member-banner .is-locked { flex: 1; text-align: center; }
}


/* ── THE PASS ART on the earn tab ─────────────────────────────────────────── */

/* The Game Pass membership banner: the owner's pass-on-podium painting, its
   dark left half doing the copy's work. The plaque card is the mark. */
.rc-member-banner {
  background:
    linear-gradient(100deg, hsl(280 60% 10% / .92) 0%, hsl(280 60% 10% / .6) 45%, hsl(280 60% 10% / .2) 75%, transparent),
    url('/assets/images/passes/gamepass-banner.webp') right center / cover no-repeat,
    hsl(280 60% 8%);
  min-height: 120px;
}
.rc-member-banner.is-on {
  background:
    linear-gradient(100deg, hsl(150 60% 10% / .92) 0%, hsl(150 60% 10% / .6) 45%, hsl(150 60% 10% / .25) 75%, transparent),
    url('/assets/images/passes/gamepass-banner.webp') right center / cover no-repeat,
    hsl(150 50% 8%);
}
img.rc-member-mark { width: 84px; height: auto; filter: drop-shadow(0 0 16px hsl(280 85% 66% / .7)); }

/* The Battle Pass section rides the reward-road painting — the disclosures sit
   on its dark left, untouched. */
.rc-pass {
  background:
    linear-gradient(100deg, hsl(260 45% 6% / .97) 0%, hsl(260 45% 6% / .92) 55%, hsl(260 45% 6% / .8) 100%),
    url('/assets/images/passes/battlepass-banner-1024.webp') right top / cover no-repeat,
    hsl(260 45% 6%);
}

@media (max-width: 700px) {
  .rc-member-banner, .rc-member-banner.is-on { background-position: 70% center, 70% center; }
  img.rc-member-mark { width: 64px; }
}


/* The Battle Pass plaque as the section's mark. */
.rc-pass-mark { width: 46px; height: auto; align-self: center; filter: drop-shadow(0 0 14px hsl(320 90% 60% / .6)); }

/* CLS: the head/wallet, earn rail and departments all render after their
   fetches. Reserve roughly settled heights so each landing block does not
   shove the ones below; min-height only, so full shelves still grow. */
#rcHead { min-height: 140px; }
#rcEarn { min-height: 260px; }
#rcBody { min-height: 480px; }
