/* A trading card's page (website/card/index.html): the stadium behind, the card in 3D, the claim box beside it. */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-display: swap; }
:root { --navy: #07172d; --navy2: #163052; --cyan: #19d6f0; --gold: #f7c948; --text: #edfaff; --muted: #a9c5dc; --accent: #ff4d4d; --fx: var(--accent);
  --sport: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--text); font: 18px/1.5 var(--body); background: linear-gradient(180deg, rgba(6, 21, 39, 0.55), rgba(2, 11, 25, 0.92)), url("../art/stadium.webp") center / cover fixed no-repeat, #020b19;
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.hd { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.hd-logo img { display: block; width: 52px; height: 52px; }
.hd-t { flex: 1; font: italic 800 24px/1 var(--sport); letter-spacing: 1px; }
.hd-t em { font-style: italic; color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 2px solid #b6edff; text-decoration: none; cursor: pointer;
  font: italic 800 22px/1 var(--sport); letter-spacing: 1px; color: var(--navy); background: linear-gradient(#53ebff, #19bfdc 55%, #0089b7); box-shadow: 0 4px #005577, inset 0 2px rgba(255, 255, 255, 0.5); transition: transform 0.12s, filter 0.12s; }
.btn.gold { background: linear-gradient(#fff4af, #f7c948 55%, #df9a17); border-color: #ffe79b; box-shadow: 0 4px #89600e, inset 0 2px #ffffd6; }
.btn.ghost { background: linear-gradient(#285073, #122d4b); border-color: #4c7ba0; color: var(--text); box-shadow: 0 4px #07172d; }
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px #07172d; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

#main { overflow-x: clip; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; width: min(100%, 1100px); margin: 0 auto; padding: 10px 20px 30px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scene { perspective: 1200px; padding: 24px; }
.card3d { position: relative; width: 340px; height: 500px; transform-style: preserve-3d; transition: transform 0.12s ease-out; will-change: transform; }
.face { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; border: 3px solid #ffe79b; background: radial-gradient(120% 80% at 50% 0%, #2a5a8f, #0a1d38 60%, #040c1b);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 6px rgba(247, 201, 72, 0.25); }
.face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 12, 27, 0.92) 78%); z-index: 1; }
.art { position: absolute; left: 50%; bottom: 112px; width: auto; max-width: 300px; height: 380px; transform: translateX(-50%); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6)); z-index: 0; object-fit: contain; }
/* a game card drawn over a full scene (cards.json scene): the picture fills the face, the top and bottom shaded for the
   number, the name, the stats and the power laid over it */
.face.scene .art { left: 0; top: 0; bottom: 0; width: 100%; max-width: none; height: 100%; transform: none; filter: none; object-fit: cover; object-position: 50% 35%; }
.face.scene::before { background: linear-gradient(180deg, rgba(4, 12, 27, 0.55), transparent 24%, transparent 48%, rgba(4, 12, 27, 0.94) 78%); }
.rarity { position: absolute; left: 16px; top: 14px; z-index: 2; padding: 4px 10px; border-radius: 8px; background: var(--gold); color: var(--navy); font: italic 800 15px/1.3 var(--sport); letter-spacing: 2px; }
.num { position: absolute; right: 16px; top: 6px; z-index: 2; font: italic 800 56px/1 var(--sport); color: var(--text); text-shadow: 0 4px 0 #031327, 0 0 20px rgba(0, 0, 0, 0.6); }
.pos { position: absolute; right: 18px; top: 62px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font: italic 800 16px/1.3 var(--sport); letter-spacing: 1px; }
.plate { position: absolute; left: 0; right: 0; bottom: 152px; z-index: 2; padding: 0 16px; text-align: center; }
.plate b { display: block; font: italic 800 44px/1 var(--sport); letter-spacing: 1px; color: #fff4ac; text-shadow: 0 3px 0 #3d1d09, 0 0 18px rgba(0, 0, 0, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate small { display: block; margin-top: 4px; font: italic 800 15px/1.2 var(--sport); letter-spacing: 3px; color: var(--cyan); }
.stats { position: absolute; left: 14px; right: 14px; bottom: 80px; z-index: 2; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 10px; }
.stats li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 5px; font: 800 13px/1 var(--sport); letter-spacing: 1px; color: var(--muted); }
.stats li i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.stats li i::before { content: ""; display: block; height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, var(--cyan), #53ebff); }
.stats li b { text-align: right; font: italic 800 16px/1 var(--sport); color: var(--text); }
.power { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; padding: 7px 10px; border-radius: 10px; background: rgba(2, 11, 25, 0.7); border: 1px solid rgba(247, 201, 72, 0.5); }
.power b { display: block; font: italic 800 16px/1.2 var(--sport); letter-spacing: 1px; color: var(--gold); }
.power span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 400 12px/1.3 var(--body); color: var(--muted); }   /* (two lines at most: a third would sit on the stats) */
.holo { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.55;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 90, 90, 0.25) 35%, rgba(255, 220, 90, 0.35) 45%, rgba(90, 255, 180, 0.3) 55%, rgba(90, 160, 255, 0.3) 65%, transparent 80%);
  background-size: 250% 250%; background-position: var(--hx, 50%) var(--hy, 50%); }
.gloss { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.28), transparent 45%); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
/* the printed card's own front (cards.json card): the picture fills the face, the drawn pieces stay out of its way */
.card3d.img { height: 476px; }
.face.img { border-width: 0; background: #07172d; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.face.img::before { display: none; }
.face.img .art { left: 0; bottom: 0; top: 0; width: 100%; max-width: none; height: 100%; transform: none; filter: none; object-fit: cover; }
.face.img .rarity, .face.img .num, .face.img .pos, .face.img .plate, .face.img .stats, .face.img .power { display: none; }
.face.img .holo { opacity: 0.4; }
/* a card with a back: both faces on the one card, the back turned away; a tap turns it round (card.js) */
.card3d.two .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); border-width: 0; background: #07172d; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.face.back[hidden] { display: none; }
.face.back::before { display: none; }
.face.back .art { left: 0; top: 0; bottom: 0; width: 100%; max-width: none; height: 100%; transform: none; filter: none; object-fit: cover; }
.face.back .holo { opacity: 0.35; }
.card3d.two { cursor: pointer; }
/* the ice: cracked glass over the front (the Gulls cards' own look), a sheen sliding over it with the tilt */
.ice { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: 0.85;
  background:
    linear-gradient(calc(110deg + var(--ia, 0deg)), transparent 30%, rgba(255, 255, 255, 0.0) 42%, rgba(230, 245, 255, 0.55) 50%, rgba(255, 255, 255, 0.0) 58%, transparent 70%) var(--hx, 50%) var(--hy, 50%) / 220% 220% no-repeat,
    var(--cracks, none) center / 100% 100% no-repeat,
    radial-gradient(120% 90% at var(--gx, 50%) var(--gy, 30%), rgba(200, 235, 255, 0.22), transparent 55%); }
.ice[hidden] { display: none; }
.ice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(220, 240, 255, 0.18), transparent 25%, transparent 75%, rgba(200, 230, 255, 0.2)); }
/* the holo foil (cards.json fx: "holo", the high-school set's printed cards, front and back): rainbow bands and a streak of
   light that slide with the tilt, a faint rainbow that shows on the dark parts too, and glitter near the light */
.card3d.foil .holo { opacity: 0.8;
  background:
    linear-gradient(calc(115deg + var(--ia, 0deg)), transparent 38%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.12) 52%, transparent 62%) var(--hx, 50%) var(--hy, 50%) / 250% 250% no-repeat,
    repeating-linear-gradient(calc(125deg + var(--ia, 0deg)), transparent 0%, rgba(255, 70, 130, 0.26) 4%, rgba(255, 200, 60, 0.26) 8%, rgba(90, 255, 160, 0.26) 12%, rgba(60, 190, 255, 0.28) 16%, rgba(170, 110, 255, 0.26) 20%, transparent 25%, transparent 38%) var(--hx, 50%) var(--hy, 50%) / 300% 300%; }
.card3d.foil .gloss { mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.2), transparent 40%),
    repeating-linear-gradient(calc(125deg + var(--ia, 0deg)), transparent 0%, rgba(255, 70, 130, 0.07) 4%, rgba(255, 200, 60, 0.07) 8%, rgba(90, 255, 160, 0.07) 12%, rgba(60, 190, 255, 0.09) 16%, rgba(170, 110, 255, 0.08) 20%, transparent 25%, transparent 38%) var(--hx, 50%) var(--hy, 50%) / 300% 300%; }
.card3d.foil .gloss::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.7px) 3px 5px / 23px 29px, radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.3px, transparent 2px) 11px 17px / 37px 31px, radial-gradient(circle, rgba(200, 240, 255, 0.9) 0 0.8px, transparent 1.4px) 7px 2px / 13px 17px;
  -webkit-mask-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), #000 0, rgba(0, 0, 0, 0.5) 22%, transparent 44%); mask-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), #000 0, rgba(0, 0, 0, 0.5) 22%, transparent 44%); }

/* ---- a printed card turns into its game card (card.js go; the high-school set, owner 10 Nov 2026). Before the swap
   (#scene.charge): a line of light scans up the card, it trembles and glows, rays and an aura grow behind it as it spins up
   off the table. At the swap (#scene.boom): a flash, two shock rings, sparks and pixels thrown outward, and the stage
   shakes as the game card lands. The game card then fills itself in (.face.reveal): the picture settles, a sheen crosses
   it, the name stamps down and the stat bars run up. The card's own spin is card.js (it has to end edge-on for the swap). */
#scene { position: relative; }   /* (by id: a game card's face has the class scene too) */
.card3d { z-index: 1; }
.fx { position: absolute; inset: 24px; z-index: 0; pointer-events: none; }
.fx.over { z-index: 5; }
.fx > i { position: absolute; display: block; opacity: 0; }
.fx-aura { inset: -8%; border-radius: 30%; background: radial-gradient(closest-side, var(--fx), transparent 78%); filter: blur(26px); }
.fx-rays { left: 50%; top: 50%; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0 6deg, var(--fx) 8deg 11deg, transparent 13deg 20deg, rgba(255, 255, 255, 0.9) 21.5deg 22.5deg, transparent 24deg 30deg);   /* (a broad ray in the colour, a thin white one between) */
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%); mask-image: radial-gradient(circle, #000 18%, transparent 60%); }
.fx-scan { left: -6%; right: -6%; top: 100%; height: 5px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 26px var(--fx), 0 0 60px var(--fx); }
.fx-flash { inset: -45%; border-radius: 50%; background: radial-gradient(circle, #fff 0, rgba(255, 255, 255, 0.95) 20%, color-mix(in srgb, var(--fx) 85%, transparent) 42%, transparent 68%); }
.fx-ring { left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 26px var(--fx), inset 0 0 26px var(--fx); }
.fx-ring.r2 { border-color: #fff4ac; box-shadow: 0 0 26px var(--gold), inset 0 0 26px var(--gold); }
/* the school's colours (cards.json fxColor): the second ring in the colour itself, and a third, black with a white edge */
.school .fx-ring.r2 { border: 9px solid var(--fx); box-shadow: 0 0 22px #fff, inset 0 0 22px #fff; }
.fx-ring.r3 { display: none; border: 12px solid #04060d; box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff, 0 0 30px var(--fx); }
.school .fx-ring.r3 { display: block; }
.fx-sparks i.bk { background: #04060d; box-shadow: 0 0 0 1.5px #fff, 0 0 12px var(--fx); }
.fx-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.fx-sparks i { position: absolute; left: 0; top: 0; width: var(--s); height: calc(var(--s) * 4); margin: calc(var(--s) * -2) 0 0 calc(var(--s) * -0.5); border-radius: 50%; opacity: 0; background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 18px var(--c); }
.fx-sparks i.sq { height: var(--s); margin-top: calc(var(--s) * -0.5); border-radius: 2px; }
#scene.charge .fx-aura { animation: fxAura 1.5s ease-in forwards; }
#scene.charge .fx-rays { animation: fxRaysIn 1.5s ease-in forwards; }
#scene.charge .fx-scan { animation: fxScan 0.62s ease-in-out forwards; }
#scene.charge .face { animation: fxGlow 1.5s ease-in forwards; }
#scene.boom { animation: fxShake 0.36s linear 0.5s; }
#scene.boom .fx-aura { animation: fxAuraOut 0.9s ease-out forwards; }
#scene.boom .fx-rays { animation: fxRaysOut 1.1s ease-out forwards; }
#scene.boom .fx-flash { animation: fxFlash 0.7s ease-out forwards; }
#scene.boom .fx-ring { animation: fxRing 0.85s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
#scene.boom .fx-ring.r2 { animation-delay: 0.14s; }
#scene.boom .fx-ring.r3 { animation-delay: 0.07s; animation-duration: 1s; }
#scene.boom .fx-sparks i { animation: fxSpark var(--t) cubic-bezier(0.1, 0.6, 0.3, 1) var(--dl) both; }
#scene.boom.soft .fx-flash { animation-duration: 0.45s; }
#scene.boom.soft, #scene.boom.soft .fx-ring.r2, #scene.boom.soft .fx-ring.r3, #scene.boom.soft .fx-rays, #scene.boom.soft .fx-aura { animation: none; }
.face.reveal { animation: fxGlowOut 1.1s ease-out; }
.face.reveal::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.8) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat; animation: fxSheen 0.9s ease-out 0.35s both; }
.face.scene.reveal .art { animation: fxZoom 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.face.reveal .plate b { animation: fxPop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 0.32s both; }
.face.reveal .rarity, .face.reveal .num, .face.reveal .pos { animation: fxUp 0.4s ease-out 0.28s both; }
.face.reveal .plate small, .face.reveal .power { animation: fxUp 0.45s ease-out 0.5s both; }
.face.reveal .stats li i::before { animation: fxFill 0.8s ease-out 0.45s both; }
.cardnav.go button[data-nav="1"] { border-color: #ffe79b; color: #fff4ac; animation: fxNudge 1.5s ease-in-out infinite; }
@keyframes fxAura { 0% { opacity: 0; transform: scale(0.8); } 40% { opacity: 0.55; transform: scale(1); } 100% { opacity: 1; transform: scale(1.25); } }
@keyframes fxAuraOut { 0% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(2); } }
@keyframes fxRaysIn { 0% { opacity: 0; transform: rotate(0deg) scale(0.6); } 40% { opacity: 0.3; } 100% { opacity: 0.9; transform: rotate(120deg) scale(1); } }
@keyframes fxRaysOut { 0% { opacity: 1; transform: rotate(120deg) scale(1.1); } 100% { opacity: 0; transform: rotate(200deg) scale(1.5); } }
@keyframes fxScan { 0% { top: 100%; opacity: 0; } 10%, 88% { opacity: 1; } 100% { top: 0%; opacity: 0; } }
@keyframes fxGlow { 0% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 0 #fff, 0 0 0 0 var(--fx); } 100% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px #fff, 0 0 46px 10px var(--fx), 0 0 120px 26px var(--fx); } }
@keyframes fxGlowOut { 0% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 60px 14px #fff, 0 0 140px 30px var(--fx); } }
@keyframes fxFlash { 0% { opacity: 0; transform: scale(0.4); } 12% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fxRing { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(5.5); } }
@keyframes fxSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scale(1.2); } 60% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.3); } }
@keyframes fxShake { 0% { transform: translate(0, 0); } 15% { transform: translate(-6px, 5px); } 30% { transform: translate(6px, -4px); } 45% { transform: translate(-4px, 4px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); } 100% { transform: translate(0, 0); } }
@keyframes fxSheen { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes fxZoom { 0% { transform: scale(1.3); filter: brightness(1.8) saturate(1.3); } 100% { transform: scale(1); filter: none; } }
@keyframes fxPop { 0% { opacity: 0; transform: scale(1.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fxUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fxFill { 0% { width: 0; } }
@keyframes fxNudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 201, 72, 0); } 50% { box-shadow: 0 0 18px 4px rgba(247, 201, 72, 0.65); } }
@media (prefers-reduced-motion: reduce) { .cardnav.go button[data-nav="1"] { animation: none; } }

/* the transformation (card.js morph): the four storyboard stages, charge, digitize, rebuild, game on, on an 11 s loop (the
   last held longest). The stages are stacked, each revealed over the one before, so he changes rather than fades: the
   photo charges up (a brightening pulse), the ring climbs from his boots and the digitized version shows only where it
   has passed, the ring comes back down and the rebuilt character shows above it, then the game character bursts out of
   the flash. The band of pixels rides the ring. Each stage's picture and its caption share a class (m-s1..m-s4). The
   pictures sit on a backdrop matching their own, their sides faded into it. */
.morph { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: radial-gradient(60% 16% at 50% 94%, rgba(10, 84, 207, 0.7), transparent), linear-gradient(180deg, #010a25, #000d2e 55%, #001a4f 86%, #000b2a); }
.morph[hidden] { display: none; }
.face.morphing .art, .face.morphing::before { display: none; }
.m-stages { position: absolute; inset: 0; }
.m-s { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.m-s1 { animation: mS1 11s linear infinite; opacity: 1; }
.m-s2 { animation: mS2 11s linear infinite; }
.m-s3 { animation: mS3 11s linear infinite; }
.m-s4 { animation: mS4 11s linear infinite; }
.m-ring { position: absolute; left: 4%; right: 4%; height: 8%; top: 88%; border-radius: 50%; opacity: 0; pointer-events: none; border: 2px solid #d8f9ff;
  box-shadow: 0 0 8px #9df3ff, 0 0 22px #53ebff, 0 0 48px rgba(25, 214, 240, 0.95), inset 0 0 18px rgba(83, 235, 255, 0.8); animation: mRing 11s linear infinite; }
.m-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 3px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, #e8fbff 30%, #e8fbff 70%, transparent); filter: blur(1px); opacity: 0.9; }
.m-pix { position: absolute; left: 0; right: 0; height: 34%; top: 75%; opacity: 0; pointer-events: none; mix-blend-mode: screen; animation: mPix 11s linear infinite;
  background: repeating-linear-gradient(90deg, rgba(140, 225, 255, 0.7) 0 5px, transparent 5px 13px), repeating-linear-gradient(0deg, rgba(140, 225, 255, 0.7) 0 5px, transparent 5px 13px), radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2px) 0 0 / 29px 23px;
  -webkit-mask-image: radial-gradient(ellipse 42% 50% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 42% 50% at 50% 50%, #000 30%, transparent 100%); }
.m-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, #fff, rgba(157, 243, 255, 0.85) 30%, rgba(25, 214, 240, 0.25) 70%); animation: mFlash 11s linear infinite; }
.m-cap { position: absolute; left: 16px; top: 14px; height: 24px; pointer-events: none; }
.m-cap b { position: absolute; left: 0; top: 0; white-space: nowrap; font: italic 800 19px/1.2 var(--sport); letter-spacing: 1.5px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); opacity: 0; }
.m-cap b i { font-style: inherit; color: var(--cyan); }
.m-cap b.m-s1 { animation-name: mC1; }
.m-cap b.m-s2 { animation-name: mC2; }
.m-cap b.m-s3 { animation-name: mC3; }
.m-cap b.m-s4 { animation-name: mC4; }
.morph.again * { animation: none !important; }
/* (the ring's centre sits 4% below its top; each reveal's edge follows it, 92% -> 8% up, then 8% -> 92% down) */
@keyframes mS1 { 0% { filter: brightness(1); transform: scale(1); } 12% { filter: brightness(1.18); transform: scale(1.015); } 17% { filter: brightness(1.5) saturate(1.3); transform: scale(1.03); } 21%, 100% { filter: brightness(1); transform: scale(1); } }
@keyframes mS2 { 0%, 17.9% { opacity: 0; clip-path: inset(92% 0 0 0); } 18% { opacity: 1; clip-path: inset(92% 0 0 0); } 40% { clip-path: inset(8% 0 0 0); } 42%, 73% { clip-path: inset(0 0 0 0); opacity: 1; } 75%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes mS3 { 0%, 43.9% { opacity: 0; clip-path: inset(0 0 92% 0); } 44% { opacity: 1; clip-path: inset(0 0 92% 0); } 66% { clip-path: inset(0 0 8% 0); } 68%, 73% { clip-path: inset(0 0 0 0); opacity: 1; } 75%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes mS4 { 0%, 65.9% { opacity: 0; clip-path: circle(0% at 50% 55%); transform: scale(1.12); } 66% { opacity: 1; clip-path: circle(0% at 50% 55%); transform: scale(1.12); } 73% { clip-path: circle(110% at 50% 55%); transform: scale(1); } 94% { opacity: 1; clip-path: circle(110% at 50% 55%); transform: scale(1); } 100% { opacity: 0; clip-path: circle(110% at 50% 55%); transform: scale(1); } }
@keyframes mRing { 0%, 17.9% { top: 88%; opacity: 0; } 18% { top: 88%; opacity: 1; } 40%, 44% { top: 4%; opacity: 1; } 66% { top: 88%; opacity: 1; } 66.1%, 100% { top: 88%; opacity: 0; } }
@keyframes mPix { 0%, 17.9% { top: 75%; opacity: 0; background-position: 0 0, 0 0, 0 0; } 18% { top: 75%; opacity: 0.9; background-position: 0 0, 0 0, 0 0; } 40%, 44% { top: -9%; opacity: 0.9; } 66% { top: 75%; opacity: 0.9; background-position: 0 -520px, 0 -520px, 0 -520px; } 66.1%, 100% { opacity: 0; background-position: 0 -520px, 0 -520px, 0 -520px; } }
@keyframes mFlash { 0%, 64% { opacity: 0; } 66% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes mC1 { 0%, 24% { opacity: 1; } 28%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mC2 { 0%, 26% { opacity: 0; } 30%, 50% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes mC3 { 0%, 52% { opacity: 0; } 56%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes mC4 { 0%, 67% { opacity: 0; } 70%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-s, .m-cap b { animation: none; opacity: 0; clip-path: none; transform: none; filter: none; } .m-s4, .m-cap b.m-s4 { opacity: 1; } .m-ring, .m-pix, .m-flash { display: none; } }
/* between the cards: arrows and dots */
.cardnav { display: flex; align-items: center; gap: 14px; margin-top: -4px; }
.cardnav[hidden] { display: none; }
.cardnav button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #4c7ba0; background: linear-gradient(#285073, #122d4b); color: var(--text); font: italic 800 28px/1 var(--sport); cursor: pointer; transition: filter 0.12s, transform 0.12s; }
.cardnav button:hover { filter: brightness(1.15); transform: translateY(-2px); }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.4); }
.dots i.on { background: var(--gold); border-color: #ffe79b; box-shadow: 0 0 10px rgba(247, 201, 72, 0.6); }
.cardlabel { font: italic 800 18px/1 var(--sport); letter-spacing: 1px; color: var(--cyan); }

.side { max-width: 460px; }
.eyebrow { display: block; font: 800 15px/1.4 var(--body); letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
h1 { margin: 4px 0 10px; font: italic 800 64px/0.95 var(--sport); color: var(--text); text-shadow: 0 4px #031327; }
.lead { margin: 0 0 20px; font-size: 18px; color: #d7ebf7; }
.claimed { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(25, 214, 240, 0.4); background: rgba(7, 23, 45, 0.7); }
.claimed b { font: italic 800 40px/1 var(--sport); color: var(--cyan); }
.claimed span { font-size: 16px; color: var(--muted); }
#claim { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 2px solid rgba(247, 201, 72, 0.55); background: linear-gradient(145deg, rgba(22, 48, 82, 0.95), rgba(7, 23, 45, 0.98)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
#claim label { font: 800 14px/1.4 var(--body); letter-spacing: 3px; color: var(--gold); }
#code { width: 100%; padding: 14px 12px; border-radius: 14px; border: 1px solid rgba(25, 214, 240, 0.55); background: rgba(2, 11, 25, 0.6); color: #fff; outline: none;
  font: italic 800 34px/1 var(--sport); letter-spacing: 6px; text-align: center; text-transform: uppercase; }
#code:focus { border-color: #53ebff; box-shadow: 0 0 0 3px rgba(25, 214, 240, 0.25); }
.msg { min-height: 20px; margin: 0; font-size: 15px; color: #ffb0a0; text-align: center; }
.small { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.ft { padding: 16px 20px; font-size: 14px; color: var(--muted); text-align: center; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }

#main.loading .card3d { opacity: 0.4; }
#main.none .stage { display: none; }
@media (max-width: 820px) {
  #main { grid-template-columns: 1fr; gap: 10px; padding-bottom: 20px; }
  .side { max-width: none; width: 100%; }
  h1 { font-size: 52px; }
  .hd-t { font-size: 20px; }
}
@media (max-width: 400px) {
  .card3d { width: 300px; height: 440px; }
  .card3d.img { height: 420px; }
  .art { max-width: 262px; height: 330px; bottom: 102px; }
  .plate { bottom: 138px; }
  .plate b { font-size: 38px; }
  .stats { bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .card3d { transition: none; } }
