/* Trading-card rewards (Elie 19 Oct 2026 2:50pm). Shared by Playful, Tech and Pearl; loaded last. */
#rewards.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.tcard{--c1:#b9c7d6;--c2:#eef3f8;--c3:#7d8fa3;--pill:#e3ebf3;--pillt:#18242f;--glow:rgba(185,199,214,.35);
  --in:#0f1d2e;--in2:#16314d;--fg:#fff;--mut:rgba(255,255,255,.72);--box:rgba(255,255,255,.08);--boxl:rgba(255,255,255,.16);--s0:#2a6aa0;--s1:#0b2440;--rf:#123b5e;
  --rx:0deg;--ry:0deg;--mx:50%;--my:50%;--flip:0deg;perspective:1000px;min-width:0;display:flex}
.tcard.r-rare{--c1:#3b82f6;--c2:#bfe0ff;--c3:#1d4ed8;--pill:#1d4ed8;--pillt:#fff;--glow:rgba(59,130,246,.45)}
.tcard.r-epic{--c1:#c026d3;--c2:#f5c6ff;--c3:#7e22ce;--pill:#a21caf;--pillt:#fff;--glow:rgba(192,38,211,.45)}
.tcard.r-legendary{--c1:#f5b301;--c2:#fff2b8;--c3:#c2410c;--pill:#fbbf24;--pillt:#3a2500;--glow:rgba(245,179,1,.5)}
.tc-in{position:relative;flex:1;display:grid;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1);
  transform:rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)))}
.tcard.hot .tc-in{transition:transform .08s linear}
.tcard.flip{--flip:180deg}.tcard.flip .tc-in{transition:transform .85s cubic-bezier(.34,1.4,.5,1)}
.tc-face{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:18px;position:relative;display:flex}
.tc-back{transform:rotateY(180deg)}
.tc-frame{flex:1;display:flex;padding:5px;border-radius:18px;background:linear-gradient(135deg,var(--c3),var(--c1) 22%,var(--c2) 40%,var(--c1) 58%,var(--c3) 80%,var(--c1));background-size:220% 220%;
  box-shadow:0 10px 24px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.25),0 0 18px var(--glow)}
.tc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding:8px 8px 9px;border-radius:13px;background:linear-gradient(170deg,var(--in2),var(--in));color:var(--fg);aspect-ratio:63/88;box-sizing:border-box}
.tc-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.tc-rar{display:inline-flex;align-items:center;gap:4px;padding:3px 8px 3px 5px;border-radius:99px;background:var(--pill);color:var(--pillt);font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.tc-gem{width:13px;height:13px;fill:currentColor;flex:none}
.tc-cost{display:inline-flex;align-items:baseline;gap:3px;padding:3px 8px;border-radius:9px;background:rgba(0,0,0,.4);border:1.5px solid var(--c1);color:#fff;line-height:1.1;white-space:nowrap}
.tc-cost b{font-family:var(--disp);font-size:13px}.tc-cost small{font-size:9px;font-weight:800;letter-spacing:.06em;opacity:.85}
.tc-name{font-family:var(--disp);font-weight:800;font-size:15.5px;line-height:1.12;padding:4px 8px;border-radius:8px;background:linear-gradient(90deg,var(--box),transparent);border-left:3px solid var(--c1)}
.tc-art{position:relative;flex:1 1 auto;min-height:76px;border-radius:9px;overflow:hidden;border:2px solid var(--c1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.tc-scene{position:absolute;inset:0;width:100%;height:100%}
.tc-s0{stop-color:var(--s0)}.tc-s1{stop-color:var(--s1)}
.tc-rays path{fill:rgba(255,255,255,.07)}.tc-reef path{fill:var(--rf)}.tc-reef .tc-br{fill:none;stroke:var(--rf);stroke-width:3;stroke-linecap:round}
.tc-bub circle{fill:none;stroke:rgba(255,255,255,.45);stroke-width:.6}
.tc-fig{position:absolute;inset:6% 8% 10%;display:grid;place-items:center}
.tc-fig svg{width:100%;height:100%;max-height:92px;--a1:var(--c1);--a2:var(--c2)}
.tc-holo{position:absolute;inset:0;pointer-events:none;opacity:0;mix-blend-mode:color-dodge;transition:opacity .25s;
  background:repeating-linear-gradient(115deg,rgba(255,0,128,.0) 0%,rgba(255,80,160,.55) 8%,rgba(255,220,90,.55) 16%,rgba(90,255,170,.55) 24%,rgba(80,170,255,.55) 32%,rgba(190,90,255,.55) 40%,rgba(255,0,128,0) 48%);
  background-size:300% 300%;background-position:var(--mx) var(--my)}
.tc-glare{position:absolute;inset:0;border-radius:18px;pointer-events:none;opacity:0;transition:opacity .25s;background:radial-gradient(circle at var(--mx) var(--my),rgba(255,255,255,.38),transparent 46%);mix-blend-mode:soft-light}
.tcard.hot .tc-glare{opacity:1}
.tcard.r-rare.hot .tc-holo,.tcard.r-epic.hot .tc-holo,.tcard.r-legendary.hot .tc-holo{opacity:.55}
.tcard.r-epic .tc-holo,.tcard.r-legendary .tc-holo{opacity:.32;animation:tcHolo 6s linear infinite}
.tcard.r-epic .tc-frame,.tcard.r-legendary .tc-frame{animation:tcFoil 5s ease-in-out infinite}
.tcard.r-legendary .tc-holo{opacity:.42}
.tcard.r-epic.hot .tc-holo,.tcard.r-legendary.hot .tc-holo{opacity:.7;animation:none}
@keyframes tcHolo{0%{background-position:0% 50%}100%{background-position:300% 50%}}
@keyframes tcFoil{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.tc-type{display:flex;justify-content:space-between;font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
.tc-text{font-size:11.5px;line-height:1.3;padding:6px 8px;border-radius:8px;background:var(--box);border:1px solid var(--boxl);color:var(--fg)}
.tc-fine{display:block;margin-top:2px;font-size:10px;color:var(--mut)}
.tc-btn{margin-top:auto;min-height:44px;width:100%;padding:10px;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer;position:relative;z-index:1}
.tc-need{margin-top:auto;min-height:44px;box-sizing:border-box;padding:7px 9px;border-radius:12px;background:rgba(0,0,0,.35);text-align:center;font-size:12px}
.tc-need b{color:var(--fg)}
.tc-need i{display:block;height:5px;border-radius:9px;margin-top:6px;background:linear-gradient(90deg,var(--c1) var(--pr),rgba(255,255,255,.14) var(--pr))}
/* locked: greyed, still readable */
.tcard.locked .tc-frame{filter:grayscale(.85) brightness(.82);box-shadow:0 6px 16px rgba(0,0,0,.2)}
.tcard.locked .tc-art{filter:grayscale(1) brightness(.7)}
.tcard.locked .tc-holo{display:none}
.tcard.locked .tc-frame{animation:none}
/* back */
.tc-bk{align-items:center;justify-content:center;text-align:center;gap:8px;background:radial-gradient(circle at 50% 40%,var(--c2),var(--c1) 45%,var(--c3))!important;color:#1a1200}
.tc-bk b{font-family:var(--disp);font-size:20px}.tc-bk span{font-size:12px;font-weight:700}
.tc-logo{width:56px;height:56px}.tc-lc{fill:rgba(255,255,255,.55);stroke:#fff;stroke-width:2}.tc-lb{fill:none;stroke:#1a1200;stroke-width:3.5;stroke-linecap:round}
.tcard.flip .tc-back .tc-frame{animation:tcPop .9s ease-out}
@keyframes tcPop{0%{box-shadow:0 0 0 0 var(--glow)}60%{box-shadow:0 0 0 14px transparent,0 0 40px var(--glow)}100%{box-shadow:0 10px 24px rgba(0,0,0,.28)}}
/* Tech: sharp, mono, dark terminal panel */
.theme-tech .tcard{--in:#05090c;--in2:#0b141a;--s0:#062a2e;--s1:#020608;--rf:#0d3a3c;--box:rgba(0,255,200,.05);--boxl:rgba(0,255,200,.16)}
.theme-tech .tc-frame,.theme-tech .tc-face,.theme-tech .tc-glare{border-radius:6px}.theme-tech .tc-body{border-radius:3px}
.theme-tech .tc-name,.theme-tech .tc-cost b{font-family:var(--mono,ui-monospace,monospace);letter-spacing:-.01em}
.theme-tech .tc-rar,.theme-tech .tc-type{font-family:var(--mono,ui-monospace,monospace)}
.theme-tech .tc-fig svg{color:var(--c2)}
.theme-tech .tc-btn{border-radius:6px}
/* Pearl: light, soft, darker text */
.theme-pearl .tcard{--in:#fffaf7;--in2:#fff;--fg:#3d2b3f;--mut:#7a6679;--box:rgba(123,90,126,.06);--boxl:rgba(123,90,126,.16);--s0:#d9eef0;--s1:#bfdde3;--rf:#e8c9cf}
.theme-pearl .tcard.r-common{--c1:#a9b4c2;--c3:#6b7787;--pill:#e7ecf2;--pillt:#2b3440}
.theme-pearl .tc-cost{background:rgba(255,255,255,.9);color:#3d2b3f}
.theme-pearl .tc-need{background:rgba(123,90,126,.08)}
.theme-pearl .tc-need i{background:linear-gradient(90deg,var(--c1) var(--pr),rgba(123,90,126,.15) var(--pr))}
.theme-pearl .tc-frame{box-shadow:0 10px 22px rgba(123,90,126,.18),0 0 0 1px rgba(123,90,126,.15),0 0 14px var(--glow)}
.theme-pearl .tc-holo{mix-blend-mode:overlay}
.theme-pearl .tcard.locked .tc-frame{filter:grayscale(.85) brightness(1)}.theme-pearl .tcard.locked .tc-art{filter:grayscale(1) brightness(.95) opacity(.75)}
@media (min-width:1024px){#rewards.cards{gap:18px}.tc-name{font-size:17px}.tc-text{font-size:12.5px}.tc-art{min-height:96px}.tc-fig svg{max-height:110px}}
@media (max-width:360px){.tc-name{font-size:14px}.tc-type span:first-child{display:none}}
@media (prefers-reduced-motion:reduce){.tc-in,.tcard.flip .tc-in{transition:none}.tc-holo,.tc-frame{animation:none!important}.tcard .tc-in{transform:rotateY(var(--flip))}}
/* Tech + Pearl art already has its own drawn background: fill the window edge to edge */
.theme-tech .tc-fig,.theme-pearl .tc-fig{inset:0}
.theme-tech .tc-fig svg,.theme-pearl .tc-fig svg{max-height:none}
.theme-tech .tc-art{background:#020608}
/* never wider than the grid cell (stops mobile horizontal overflow) */
.tcard,.tc-in,.tc-face,.tc-frame,.tc-body{min-width:0;max-width:100%}
.tc-in{grid-template-columns:minmax(0,1fr)}
.tc-name{overflow-wrap:anywhere}
@media (max-width:420px){.tc-head{gap:4px}.tc-rar{padding:3px 6px 3px 4px;font-size:9.5px;letter-spacing:.05em}.tc-cost{padding:2px 6px}.tc-cost b{font-size:12px}.tc-body{padding:7px 7px 8px}.tc-frame{padding:4px}}
/* reveal (back) face: sunburst + sparkle */
.tc-bk{position:relative;overflow:hidden}
.tc-bk:before{content:"";position:absolute;inset:-40%;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.34) 0 9deg,transparent 9deg 22deg);animation:tcSun 9s linear infinite;pointer-events:none}
.tc-bk>*{position:relative}
.tc-lt circle{fill:#ff7a5c;stroke:#1a1200;stroke-width:1.4}
.tc-spark{position:absolute!important;inset:0;pointer-events:none;background:radial-gradient(circle at 22% 24%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 78% 30%,#fff 0 2px,transparent 3px),radial-gradient(circle at 30% 78%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 74% 74%,#fff 0 2px,transparent 3px);animation:tcTw 1.4s ease-in-out infinite alternate}
.tcard.flip .tc-logo{animation:tcLogo .9s cubic-bezier(.34,1.56,.64,1) .25s both}
@keyframes tcSun{to{transform:rotate(360deg)}}
@keyframes tcTw{from{opacity:.35}to{opacity:1}}
@keyframes tcLogo{from{transform:scale(.3) rotate(-20deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tc-bk:before,.tc-spark,.tcard.flip .tc-logo{animation:none!important}}
/* Tech: softer holo on the dark terminal art (colour-dodge is strong there) */
.theme-tech .tc-holo{mix-blend-mode:screen}
.theme-tech .tcard.r-epic .tc-holo,.theme-tech .tcard.r-legendary .tc-holo{opacity:.16}
.theme-tech .tcard.r-epic.hot .tc-holo,.theme-tech .tcard.r-legendary.hot .tc-holo,.theme-tech .tcard.r-rare.hot .tc-holo{opacity:.32}
/* Atoll Shipping credit line in the tier perks card (Elie 19 Oct 3:10pm). Drawn SVG in every theme. */
.tier-perks li.tp-ship{list-style:none;margin:6px 0 2px -18px;display:flex;gap:8px;align-items:flex-start;padding:7px 9px;border-radius:10px;
  background:linear-gradient(100deg,rgba(72,171,239,.18),rgba(244,188,94,.14));border:1px solid rgba(72,171,239,.38);line-height:1.35}
.tier-perks li.tp-ship b{font-weight:800}
.tp-ship-ic{flex:none;width:22px;height:22px;margin-top:1px;fill:none;stroke:#48ABEF;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.tp-ship-ic .tp-ship-ar{stroke:#F4BC5E;stroke-width:1.8}
.hv.sc{font-size:12px;font-weight:700;white-space:nowrap}
.theme-tech .tier-perks li.tp-ship{background:rgba(0,255,200,.06);border:1px solid var(--x-line2,rgba(0,255,200,.3));border-radius:4px;font-family:inherit}
.theme-tech .tp-ship-ic{stroke:var(--x-acc,#3cf);filter:drop-shadow(0 0 2px var(--x-glow,rgba(0,255,200,.5)))}.theme-tech .tp-ship-ic .tp-ship-ar{stroke:#ffcf40}
.theme-pearl .tier-perks li.tp-ship{background:linear-gradient(100deg,rgba(234,165,182,.16),rgba(185,220,203,.22));border:1px solid rgba(123,90,126,.18);border-radius:14px;color:#3d2b3f}
.theme-pearl .tp-ship-ic{stroke:#7b5a7e}.theme-pearl .tp-ship-ic .tp-ship-ar{stroke:#d9879b}

/* Silent launch: coming-soon page */
.soon-card .soon-list{margin:14px auto 6px;padding:0;list-style:none;max-width:420px;text-align:left;display:grid;gap:8px}
.soon-card .soon-list li{position:relative;padding-left:26px;line-height:1.45;opacity:.92}
.soon-card .soon-list li::before{content:"";position:absolute;left:4px;top:.45em;width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#ff7aa8,#7ad7ff)}
.soon-card .soon-cta{margin:18px 0 6px}
.theme-tech .soon-card .soon-list li::before{border-radius:2px;background:#39ff9e}
.theme-pearl .soon-card .soon-list li::before{background:#c9a86a}
.theme-tech #soon{position:relative;z-index:1}

/* Equal-height reward cards (Elie 19 Oct 7:33pm "Not aligned"). The body used aspect-ratio 63/88, so a longer description
   (livestock: 2 lines) pushed its Redeem button out of the card and over the next section. Now: the art window has its own
   ratio, the body grows to fit its content, grid rows stretch every card in a row to the tallest one, the description box takes
   the spare height and the button / "Need X more" bar is pinned to the bottom, so buttons line up in every theme. */
#rewards.cards{align-items:stretch;grid-auto-rows:auto}
.tcard{height:auto;align-self:stretch}
.tc-in,.tc-face,.tc-frame{min-height:100%}
.tc-face{height:100%}
.tc-body{aspect-ratio:auto;min-height:0;height:100%;overflow:visible}
/* 5 Nov 2026 Redeem mobile overflow fix: the rule above beat `.tc-bk{overflow:hidden}`, so the back face's rotating sunburst (inset:-40%) spilled ~230px past the card
   and widened the whole page on phones (scrollWidth 619px at 390px). The back face clips its own sunburst again; contain:paint keeps it clipped inside 3D transforms. */
.tc-body.tc-bk{overflow:hidden;contain:paint}
.tc-art{flex:0 0 auto;aspect-ratio:4/3;min-height:0;height:auto}
.tc-text{flex:1 0 auto;display:flex;flex-direction:column;justify-content:flex-start}
.tc-fine{margin-top:auto;padding-top:2px}
.tc-btn,.tc-need{margin-top:0;flex:0 0 auto;align-self:stretch}
@media (min-width:1024px){.tc-art{min-height:0}}
/* Card header always fits (Elie 19 Oct 8:40pm: 'LEGENDARY' + '3,000 PTS' stuck out on a 390px iPhone). The badge and pill
   shrink with the card's own width (container query), and as a last resort the pill wraps under the badge. Never overflows. */
.tc-body{container-type:inline-size;container-name:tcb}
.tc-head{min-width:0;flex-wrap:wrap;row-gap:3px}
.tc-rar,.tc-cost{min-width:0;max-width:100%;box-sizing:border-box}
.tc-cost{margin-left:auto}
@container tcb (max-width:220px){
  .tc-head{gap:3px}
  .tc-rar{font-size:8.5px;letter-spacing:.03em;padding:2px 5px 2px 3px;gap:2px}
  .tc-gem{width:10px;height:10px}
  .tc-cost{padding:2px 5px;gap:2px;border-width:1px;border-radius:7px}
  .tc-cost b{font-size:11px}.tc-cost small{font-size:7.5px;letter-spacing:.02em}
}
@container tcb (max-width:150px){
  .tc-rar{font-size:7.5px;letter-spacing:0;padding:2px 4px 2px 3px}
  .tc-gem{width:9px;height:9px}
  .tc-cost{padding:1px 4px}.tc-cost b{font-size:10px}.tc-cost small{font-size:7px;letter-spacing:0}
}
