/* The Lane Club: collectible character cards.
   A card = metallic frame > light face (name + price, framed art window, caption, perks, footer).
   The holo lives inside the art window, as on a real holo rare: rainbow bands + glitter + shine, following the pointer.
   The pointer drives --mx/--my (0..100%), --rx/--ry (tilt) and --o (0..1, how far from centre). */

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---- stage: a quiet dark room, each card throws its own coloured light ---- */
.club-stage { border-top: 0; margin-top: 56px; padding: 60px 32px 46px; border-radius: 36px; color: #fff; overflow: hidden; isolation: isolate; position: relative;
  background: radial-gradient(120% 70% at 50% 0%, #1d2030 0%, #0c0d12 60%, #08090c 100%);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.55); }
.club-stage::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 60% at 22% 70%, rgba(255,170,40,.22), transparent 70%), radial-gradient(30% 60% at 50% 66%, rgba(60,220,190,.22), transparent 70%), radial-gradient(30% 60% at 78% 70%, rgba(220,90,255,.24), transparent 70%);
  filter: blur(10px); }
.club-head { text-align: center; max-width: 600px; margin: 0 auto 46px; }
.club-stage .eyebrow { color: #ffcf73; letter-spacing: .16em; font-size: 12px; }
.club-stage h3 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.04em; margin-top: 8px; line-height: 1; font-weight: 800; }
.club-stage .lede { color: rgba(255,255,255,.62); font-size: 17px; line-height: 1.45; margin-top: 12px; }
.club-stage .fine { color: rgba(255,255,255,.45); text-align: center; margin-top: 38px; font-size: 13px; }
.club-stage .fine a { color: #ffcf73; }

.tcards { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.tslot { --w: 300px; width: var(--w); flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 16px; perspective: 1200px; position: relative; }
.tslot.featured { --w: 316px; margin-bottom: 18px; }
@media (max-width: 1040px) { .tslot { --w: 276px; } .tslot.featured { --w: 290px; } .tcards { gap: 18px; } }
@media (max-width: 900px) {
  .club-stage { padding: 46px 0 36px; border-radius: 28px; }
  .club-head { padding: 0 22px; margin-bottom: 30px; }
  .tcards { justify-content: flex-start; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 26px 24px 18px; scrollbar-width: none; }
  .tcards::-webkit-scrollbar { display: none; }
  .tslot, .tslot.featured { --w: min(80vw, 316px); margin: 0; scroll-snap-align: center; }
}

/* ---- the card ---- */
.tcard { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0;
  position: relative; border-radius: 20px; cursor: pointer; outline: none;
  transform: rotateY(var(--rx)) rotateX(var(--ry)); transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 8px 18px -8px rgba(0,0,0,.6), 0 0 70px -24px var(--glow); }
.tcard.active { transition: transform .08s linear, box-shadow .4s ease; box-shadow: 0 50px 80px -30px rgba(0,0,0,.95), 0 0 90px -16px var(--glow); }
.tcard:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--glow); }

/* metallic frame: a brushed metal gradient that catches the light as the card turns */
.tc-frame { position: relative; border-radius: 20px; padding: 9px;
  background: linear-gradient(calc(120deg + var(--rx) * 3), var(--m1) 0%, var(--m2) 18%, var(--m3) 34%, var(--m2) 50%, var(--m4) 68%, var(--m2) 84%, var(--m1) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.25); }
.tc-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px); }
.tc-face { position: relative; z-index: 1; border-radius: 12px; padding: 11px 12px 10px; color: var(--ink-c);
  background: linear-gradient(180deg, var(--b1), var(--b2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.7); }

.tc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.tc-name { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tc-cost { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cost); white-space: nowrap; }
.tc-cost small { font-size: 14px; vertical-align: 9px; margin-right: 1px; font-weight: 700; }
.tc-cost i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-c); opacity: .55; margin-left: 2px; letter-spacing: 0; }

/* the art window, with its own thin metal edge */
.tc-window { position: relative; aspect-ratio: 720 / 612; border-radius: 6px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 2px var(--m3), 0 0 0 3px rgba(0,0,0,.25), 0 6px 14px -6px rgba(0,0,0,.5); background: #222; }
.tc-window img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translate(calc((50% - var(--mx)) * .04), calc((50% - var(--my)) * .04)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tcard.active .tc-window img { transition: transform .08s linear; }
.tc-holo, .tc-glitter, .tc-shine { position: absolute; inset: 0; pointer-events: none; }
.tc-holo { mix-blend-mode: color-dodge; opacity: calc(var(--holo) * (.25 + var(--o) * .75)); filter: brightness(.65) contrast(1.6) saturate(1.3);
  background: repeating-linear-gradient(115deg, hsl(340 100% 70%) 0%, hsl(45 100% 62%) 5%, hsl(150 100% 60%) 10%, hsl(195 100% 64%) 15%, hsl(265 100% 72%) 20%, hsl(340 100% 70%) 25%);
  background-size: 260% 260%; background-position: var(--mx) var(--my);
  -webkit-mask-image: radial-gradient(80% 70% at var(--mx) var(--my), #000 0%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.08) 100%);
          mask-image: radial-gradient(80% 70% at var(--mx) var(--my), #000 0%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.08) 100%); }
/* glitter: a turbulence noise thresholded into specks (inline SVG), only where the light hits */
.tc-glitter { mix-blend-mode: color-dodge; opacity: calc(var(--holo) * (.15 + var(--o) * .85));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 9 -7.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; background-position: calc(var(--mx) * .4) calc(var(--my) * .4);
  -webkit-mask-image: radial-gradient(50% 45% at var(--mx) var(--my), #000, transparent 100%);
          mask-image: radial-gradient(50% 45% at var(--mx) var(--my), #000, transparent 100%); }
.tc-shine { mix-blend-mode: soft-light; opacity: calc(.3 + var(--o) * .7);
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.9), rgba(255,255,255,.1) 35%, rgba(0,0,0,.3) 100%); }
.tcard:not(.active) .tc-holo { animation: holo-idle 10s ease-in-out infinite alternate; }
@keyframes holo-idle { 0% { background-position: 15% 15%; } 100% { background-position: 85% 85%; } }

.tc-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 9px 0 0; padding: 5px 8px; border-radius: 6px;
  background: linear-gradient(90deg, var(--cap1), var(--cap2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  font-size: 11px; font-weight: 600; font-style: italic; letter-spacing: .01em; }
.tc-rar { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cost); }
.tc-rar svg { width: 10px; height: 10px; fill: currentColor; }
.tc-inc { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 12px; font-weight: 700; color: var(--cost); }
.tc-perks { list-style: none; margin: 8px 0 0; padding: 0 2px; display: grid; gap: 0; }
.tc-perks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.tc-perks li + li { border-top: 1px solid rgba(0,0,0,.09); }
.ic { width: 18px; height: 18px; }
.ic.sm { width: 13px; height: 13px; }
.tc-perks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; color: var(--icon); background: var(--icon-bg); }
.tc-foot { display: flex; justify-content: space-between; margin-top: 8px; padding: 6px 2px 0; border-top: 1px solid rgba(0,0,0,.09); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }

.tc-glare { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 3; mix-blend-mode: overlay; opacity: calc(.2 + var(--o) * .6);
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(0,0,0,.18) 100%); }

.tc-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px; color: #062a24; background: linear-gradient(180deg, #a7ffe9, #3fdcb4); box-shadow: 0 6px 18px -4px rgba(63,220,180,.7); }

.tc-join { height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--btn-ink); background: var(--btn);
  box-shadow: 0 10px 26px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .15s ease, filter .15s ease; }
.tc-join:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tc-join:active { transform: scale(.98); }

/* ---- tiers: metal, card body, ink, accents ---- */
.t-regular { --m1: #7a5410; --m2: #e9c766; --m3: #fff1b8; --m4: #b5852a;
  --b1: #fffaf0; --b2: #fff0d2; --ink-c: #2b1d07; --cost: #c0620a; --cap1: #ffe6a6; --cap2: #fff5d9; --icon: #b35a00; --icon-bg: #ffe8bd;
  --holo: .55; --glow: rgba(255, 165, 30, .55); --btn: linear-gradient(180deg, #ffd479, #ffa51f); --btn-ink: #3b1d00; }
.t-insider { --m1: #4b6f74; --m2: #cfe9ea; --m3: #ffffff; --m4: #86b8bb;
  --b1: #f4fffc; --b2: #dcf7ef; --ink-c: #08302a; --cost: #0b8f74; --cap1: #bff3e4; --cap2: #ecfffa; --icon: #0a8a70; --icon-bg: #c9f5e8;
  --holo: .8; --glow: rgba(50, 220, 180, .6); --btn: linear-gradient(180deg, #8ff7dc, #2fd6aa); --btn-ink: #042e27; }
.t-patron { --m1: #ff7ac8; --m2: #ffd27a; --m3: #a4f0ff; --m4: #c18bff;
  --b1: #fff6fb; --b2: #f6e5ff; --ink-c: #2c0b33; --cost: #a32fd0; --cap1: #ffd9f0; --cap2: #eadcff; --icon: #9b2ccc; --icon-bg: #f2dcff;
  --holo: 1; --glow: rgba(210, 90, 255, .65); --btn: linear-gradient(180deg, #ffc9ef, #d98bff); --btn-ink: #2c0633; }
/* the legendary frame is itself holographic and turns slowly */
.t-patron .tc-frame { background: conic-gradient(from var(--spin), #ff7ac8, #ffd27a, #a4f0ff, #c18bff, #ff7ac8); animation: spin 8s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

@media (prefers-reduced-motion: reduce) { .t-patron .tc-frame, .tcard:not(.active) .tc-holo { animation: none; } }

/* ================= polish: type, deal-in, glints, float, dust ================= */
.club-stage h3 em { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffd27a 0%, #fff4d6 30%, #ff9fd8 60%, #a4f0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: ink-shift 9s ease-in-out infinite alternate; padding-right: .06em; }
@keyframes ink-shift { to { background-position: 100% 0; } }
.tc-name, .tc-cost, .tc-flag { font-family: ui-rounded, "SF Pro Rounded", var(--font); }
.tc-caption > span:first-child { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; font-size: 14px; letter-spacing: 0; }

/* deal-in: the cards fly up from below the table one after another, the featured one lands last */
.tslot { --k: 0; }
.tcards[data-deal] .tslot { opacity: 0; translate: 0 80px; rotate: var(--deal); scale: .92;
  transition: opacity .6s ease, translate .9s cubic-bezier(.16,1,.3,1), rotate .9s cubic-bezier(.16,1,.3,1), scale .9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--k) * 120ms + 80ms); }
.tcards[data-deal] .tslot.featured { transition-delay: 420ms; }
.tcards.in .tslot { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }

/* the featured card breathes */
.tcards.in .tslot.featured .tcard { animation: float 6s ease-in-out 1.4s infinite; }
.tcards.in .tslot.featured .tcard.active { animation: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* a glint sweeps across each card now and then, each on its own beat */
.tc-glare { overflow: hidden; }
.tc-glare::after { content: ""; position: absolute; top: -30%; bottom: -30%; width: 38%; left: -60%; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.55) 52%, transparent 80%);
  transform: skewX(-18deg); }
.tcards.in .tc-glare::after { animation: glint 7.5s cubic-bezier(.4,0,.2,1) infinite; animation-delay: calc(1.6s + var(--k) * 1.9s); }
@keyframes glint { 0% { left: -60%; opacity: 0; } 4% { opacity: .9; } 16% { left: 130%; opacity: .9; } 17%, 100% { left: 130%; opacity: 0; } }

/* buttons: a soft sheen passes every few seconds */
.tc-join { position: relative; overflow: hidden; }
.tc-join::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); }
.tcards.in .tc-join::after { animation: sheen 6s ease-in-out infinite; animation-delay: calc(2.4s + var(--k) * 1.3s); }
@keyframes sheen { 0%, 70% { transform: translateX(-130%) skewX(-18deg); } 85%, 100% { transform: translateX(130%) skewX(-18deg); } }

/* "Most loved" flag glows softly */
.tc-flag { animation: flag-glow 3.2s ease-in-out infinite; }
@keyframes flag-glow { 0%, 100% { box-shadow: 0 6px 18px -6px rgba(63,220,180,.6); } 50% { box-shadow: 0 6px 26px -2px rgba(63,220,180,.95); } }

/* golden dust drifting up through the stage */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; left: var(--x); top: calc(40% + var(--y) * .6); width: var(--s); height: var(--s); border-radius: 50%;
  background: #ffe3a3; box-shadow: 0 0 8px 2px rgba(255, 200, 100, .55); opacity: 0;
  animation: mote var(--t) linear infinite; animation-delay: var(--d); }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 60% { opacity: .5; } 100% { transform: translate(24px, -360px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tcards[data-deal] .tslot { opacity: 1; translate: none; rotate: none; scale: 1; transition: none; }
  .tcards.in .tslot.featured .tcard, .tcards.in .tc-glare::after, .tcards.in .tc-join::after, .tc-flag, .motes i, .club-stage h3 em { animation: none; }
  .motes { display: none; }
}
