/* Graded slab card (gacha "flip it"): used by the game reveal, the launch form, the landing hero and token pages. */
.slab { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%; position: relative; width: min(330px, 78vw); aspect-ratio: 330 / 520; perspective: 1400px; }
.slab-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)); transition: transform .9s cubic-bezier(.3,1.4,.4,1); }
.slab-inner.is-front { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.slab:hover .slab-inner { transition: transform .15s ease-out; }
.slab-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; overflow: hidden; }
.slab-back { transform: rotateY(180deg); background: radial-gradient(120% 80% at 50% 30%, #154a24, #06140b 70%); border: 10px solid #d9dde0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.6); display: grid; place-items: center; }
.slab-back::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(242,193,78,.08) 0 2px, transparent 2px 14px); }
.slab-back-in { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.slab-back-in img { width: 116px; box-shadow: 0 14px 34px -8px rgba(0,200,5,.65), 0 0 0 4px rgba(255,255,255,.12); }
.slab-back-in b { font: 900 26px/1 var(--display); letter-spacing: .04em; }
.slab-back-in span { font: 700 10px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.slab-front { padding: 12px; background: linear-gradient(160deg, #eef1f3, #c9ced3 45%, #e4e7ea); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), inset 0 0 22px rgba(0,0,0,.18), 0 30px 80px rgba(0,0,0,.6); display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.slab-label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; background: linear-gradient(180deg, #fff, #f2f2f2); border: 3px solid #00a806; color: #111; }
.slab-label-l { display: grid; gap: 2px; font: 800 10px/1.15 var(--body); letter-spacing: .02em; }
.slab-label-l b { font-size: 10.5px; } .slab-label-l span { color: #333; }
.slab-grade { text-align: right; display: grid; justify-items: end; }
.slab-grade span { font: 800 9.5px/1 var(--body); color: #333; letter-spacing: .04em; }
.slab-grade b { font: 900 30px/1 var(--display); color: #111; }
.slab-card { position: relative; border-radius: 10px; padding: 9px 10px 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--ty) 70%, #fff8d0), color-mix(in srgb, var(--ty) 45%, #f7d23e)); border: 7px solid #f3cf3c; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); display: grid; grid-template-rows: auto 1fr auto auto auto auto; gap: 6px; color: #1a1a1a; overflow: hidden; }
.pc-top { display: flex; justify-content: space-between; align-items: baseline; font: 900 17px/1 var(--body); }
.pc-top span { font: 800 11px/1 var(--body); } .pc-top em { font: 900 16px/1 var(--display); font-style: normal; color: #b4231c; }
.pc-art { position: relative; border: 3px solid #c9a227; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), color-mix(in srgb, var(--ty) 50%, #fff) 70%); display: grid; place-items: center; min-height: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); overflow: hidden; }
.pc-art img { width: 86%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font: italic 700 10px/1 var(--body); }
.pc-types .type { height: 17px; font-size: 8.5px; padding: 0 6px; color: #fff; background: var(--tc); border-color: rgba(0,0,0,.2); }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font: 800 9px/1 var(--body); }
.pc-stats div { display: grid; grid-template-columns: 30px 1fr 22px; align-items: center; gap: 5px; }
.pc-stats i { height: 5px; border-radius: 3px; background: rgba(0,0,0,.15); position: relative; overflow: hidden; }
.pc-stats i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #1a1a1a; border-radius: 3px; }
.pc-stats b { text-align: right; }
.pc-flavor { margin: 0; font: italic 600 9.5px/1.3 var(--body); padding: 5px 7px; border: 1px solid rgba(0,0,0,.25); background: rgba(255,255,255,.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; font: 700 9.5px/1 var(--body); }
.pc-foot .tier { height: 18px; font-size: 8.5px; background: #1a1a1a; color: var(--tc); }
.slab-shine { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: radial-gradient(circle at var(--sx) var(--sy), rgba(255,255,255,.35), transparent 40%), linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); mix-blend-mode: soft-light; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
/* shiny: holographic foil sweeping across the card, gold label */
.slab.is-shiny .slab-front { background: linear-gradient(160deg, #fff6d6, #e8c96a 40%, #fff1c2 70%, #d9b44a); }
.slab.is-shiny .slab-label { border-color: #d9a400; }
.slab.is-shiny .slab-card { border-color: #ffe27a; }
.slab.is-shiny .slab-shine { background: radial-gradient(circle at var(--sx) var(--sy), rgba(255,255,255,.45), transparent 40%), linear-gradient(115deg, transparent 20%, rgba(255,90,180,.28) 32%, rgba(90,220,255,.28) 44%, rgba(255,240,120,.3) 56%, transparent 68%); background-size: 100% 100%, 250% 250%; mix-blend-mode: color-dodge; animation: foil 3.2s linear infinite; }
@keyframes foil { from { background-position: 0 0, 150% 0; } to { background-position: 0 0, -150% 0; } }
.shiny-mark { display: inline-block; margin-right: 6px; padding: 2px 6px; border-radius: 4px; background: linear-gradient(90deg, #ff6fb5, #ffd34a, #6fe3ff); color: #1a1a1a; font: 900 9px/1.2 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; vertical-align: 3px; }
