/* Flipsy Collectibles page. Builds on gang.css (loaded first). */

/* Hero */
.fc .fg-crumbs{max-width:1200px;margin:0 auto;padding:22px 24px 0}
.fc .fg-crumbs span:last-child{color:var(--muted)}
.fc-actions{display:flex;flex-wrap:wrap;gap:12px}
.fc-boxstage{flex:1 1 420px;min-width:0;height:500px;position:relative;display:flex;align-items:center;justify-content:center;perspective:1600px}
.fc-shadow{position:absolute;left:18%;right:12%;bottom:34px;height:60px;border-radius:50%;background:radial-gradient(closest-side,rgba(30,42,90,.3),rgba(30,42,90,0))}
.fc-box{--w:250px;--h:330px;--d:180px;width:var(--w);height:var(--h);position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(-32deg);animation:fcwobble 6s ease-in-out infinite}
.fc-face{position:absolute;overflow:hidden;backface-visibility:hidden;border:3px solid var(--navy)}
.fc-front{width:var(--w);height:var(--h);transform:translateZ(calc(var(--d)/2));background:var(--navy) radial-gradient(circle,rgba(255,255,255,.1) 2px,transparent 3px) 0 0/28px 28px;display:flex;flex-direction:column;align-items:center;color:#fff}
.fc-side{width:var(--d);height:var(--h);left:calc((var(--w) - var(--d))/2);transform:rotateY(90deg) translateZ(calc(var(--w)/2));background:var(--sun);display:flex;flex-direction:column;align-items:center;padding:22px 12px 0}
.fc-top{width:var(--w);height:var(--d);top:calc((var(--h) - var(--d))/2);transform:rotateX(90deg) translateZ(calc(var(--h)/2));backface-visibility:visible;background:#26346B;display:flex;align-items:center;justify-content:center}
.fc-band{position:absolute;left:0;right:0;bottom:0;height:16px;background:linear-gradient(90deg,var(--tomato) 0 20%,var(--sun) 20% 40%,var(--grass) 40% 60%,var(--sky) 60% 80%,var(--bubble) 80%)}
.fc-top .fc-band{top:0;bottom:auto}
.fc-top span{width:80%;height:30px;border:2px dashed rgba(255,255,255,.6);border-radius:999px;font-size:0;color:transparent}
.fc-logo{margin-top:26px;font-family:'Bagel Fat One',sans-serif;font-size:46px;line-height:1;transform:rotate(180deg);background:linear-gradient(90deg,var(--tomato) 0 20%,var(--sun) 20% 40%,var(--grass) 40% 60%,var(--sky) 60% 80%,var(--bubble) 80%);-webkit-background-clip:text;background-clip:text;color:transparent}
.fc-badge{position:absolute;top:20px;left:-3px;background:var(--grass);font-family:'Bagel Fat One',sans-serif;font-size:11px;padding:4px 10px 4px 12px;border-radius:0 99px 99px 0;display:none}
.fc-q{font-family:'Bagel Fat One',sans-serif;font-size:150px;line-height:1;color:var(--sun);text-shadow:6px 6px 0 var(--tomato);transform:rotate(-6deg);margin-top:4px}
.fc-mm{font-family:'Bagel Fat One',sans-serif;font-size:34px;line-height:.95;text-align:center}
.fc-mm em{font-style:normal;color:var(--bubble)}
.fc-side b{font-family:'Bagel Fat One',sans-serif;font-weight:400;font-size:20px;line-height:1;text-align:center;margin-bottom:12px}
.fc-sils{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.fc-sils img{width:100%;height:46px;object-fit:contain;filter:brightness(0) opacity(.75);background:rgba(255,255,255,.5);border-radius:10px;padding:5px}
.fc-sils img.is-gold{background:var(--navy);filter:brightness(0) invert(77%) sepia(57%) saturate(800%) hue-rotate(358deg)}
@keyframes fcwobble{0%,100%{transform:rotateX(-20deg) rotateY(-32deg)}50%{transform:rotateX(-18deg) rotateY(-22deg) translateY(-8px)}}

/* Starter pack */
.fc-pack{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:28px}
.fc-pack-card{position:relative;background:#fff;border:3px solid var(--navy);border-radius:32px;box-shadow:0 8px 0 var(--navy);overflow:hidden;display:flex;flex-direction:column}
.fc-pack-art{position:relative;height:220px;background:var(--bg);border-bottom:3px solid var(--navy);display:flex;align-items:center;justify-content:center;overflow:hidden}
.fc-pack-card h3{font-size:30px!important;padding:20px 22px 0}
.fc-pack-card p{padding:8px 22px 24px;font-weight:600}
.fc-tick{position:absolute;top:196px;right:20px;width:48px;height:48px;border-radius:50%;background:var(--grass);color:#fff;border:3px solid var(--navy);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;z-index:2}
.fc-fan img{position:absolute;height:150px;width:auto;background:#fff;border-radius:22px;padding:10px;box-shadow:0 0 0 3px var(--navy),0 6px 0 3px var(--navy)}
.fc-fan img:nth-child(1){left:12%;transform:rotate(-12deg)}
.fc-fan img:nth-child(2){z-index:1;transform:translateY(-6px)}
.fc-fan img:nth-child(3){right:12%;transform:rotate(11deg)}
.fc-sheet-paper{width:72%;height:180px;margin-top:30px;background:var(--navy);border-radius:14px;border:3px solid var(--navy);transform:rotate(-4deg);box-shadow:0 8px 0 rgba(30,42,90,.35);display:flex;flex-direction:column;align-items:center;padding:10px}
.fc-sheet-paper b{font-family:'Bagel Fat One',sans-serif;font-weight:400;color:var(--sun);font-size:18px}
.fc-sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%;margin-top:8px}
.fc-sheet-grid i{background:#FFF6E8;border-radius:8px;height:56px;display:flex;align-items:center;justify-content:center}
.fc-sheet-grid img{max-height:46px;width:auto;filter:brightness(0) invert(85%) sepia(10%) saturate(300%) hue-rotate(190deg)}
.fc-sheet-grid i:nth-child(2) img,.fc-sheet-grid i:nth-child(5) img{filter:none}
.fc-minibox{perspective:600px}
.fc-q2{width:120px;height:140px;background:var(--navy);border:3px solid var(--navy);border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:'Bagel Fat One',sans-serif;font-size:90px;color:var(--sun);text-shadow:4px 4px 0 var(--tomato);transform:rotate(-6deg);box-shadow:8px 8px 0 rgba(30,42,90,.35)}
.fc .fc-peek{position:absolute;top:-6px;left:58%;height:96px;width:auto;max-width:none;transform-origin:50% 0;animation:fgbob 3.4s ease-in-out infinite}
.fc-note{margin-top:22px!important;font-weight:700;color:var(--muted);text-align:center}

/* Rarity tags */
.fc-rar{display:inline-block;align-self:center;border:2px solid var(--navy);border-radius:999px;padding:3px 12px;font-weight:900;font-size:13px;background:#fff}
.fc-rar-gang{background:#E5F4FF}
.fc-rar-xmas{background:var(--tomato);color:#fff}
.fc-rar-rare{background:linear-gradient(90deg,#FFB3DE,#B3E5FF,#C8F7C5,#FFF1A8)}
.fc-rar-super{background:linear-gradient(135deg,#F5B800,#FFE27A,#F5B800);}

/* Sticker grid */
.fc-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(46%,200px),1fr));gap:22px}
.fc-stk,.fc-xstk,.fc-mini{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:3px solid var(--navy);border-radius:28px;padding:16px 12px 18px;box-shadow:0 6px 0 var(--navy);text-align:center;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.fc-stk:hover,.fc-xstk:hover{transform:translateY(-5px) rotate(-1.5deg)}
.fc-stk-art{width:100%;height:170px;border-radius:20px;background:var(--bg);display:flex;align-items:center;justify-content:center}
.fc-stk-art img{max-height:140px;width:auto;filter:drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 4px 2px rgba(30,42,90,.3))}
.fc-stk-name{font-family:'Bagel Fat One',sans-serif;font-size:24px;line-height:1}
.fc-num{position:absolute;top:10px;left:10px;z-index:1;min-width:38px;height:38px;border-radius:999px;background:var(--navy);color:#fff;font-weight:900;font-size:14px;display:flex;align-items:center;justify-content:center;padding:0 8px}
.fc-num-x{background:var(--tomato)}
.fc-hidewrap{position:absolute;right:-6px;top:-34px;width:44px;height:58px}
.fc-hidewrap .fg-hide{position:relative}

/* Christmas */
.fc-xmas{margin-top:44px;background:var(--navy) radial-gradient(circle,rgba(255,255,255,.12) 2px,transparent 3px) 0 0/34px 34px;border:3px solid var(--navy);border-radius:36px;padding:32px;color:#fff;box-shadow:0 8px 0 #0D1533}
.fc-xmas-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:24px}
.fc-xmas-head .fc-rar{align-self:flex-start}
.fc-xmas-head h3{font-size:clamp(30px,4vw,42px)!important;color:var(--sun)}
.fc-xmas-head p{font-weight:600;color:#DCE3FF}
.fc-xmas-grid{color:var(--navy);display:grid;grid-template-columns:repeat(auto-fill,minmax(min(46%,200px),1fr));gap:20px}
.fc-xstk{color:var(--navy);box-shadow:0 6px 0 #0D1533}
.fc-xstk-art{width:150px;height:150px;border-radius:50%;overflow:hidden;border:3px solid var(--navy);background:#F4EEE2}
.fc-xstk-art img{width:100%;height:100%;object-fit:cover;transform:scale(1.45) translateY(3%)}
.fc-xstk-t{font-size:14px;font-weight:700;color:var(--muted)}

/* Rares */
.fc-rares{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:28px}
.fc-rare{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;background:#fff;border:3px solid var(--navy);border-radius:32px;padding:0 0 26px;box-shadow:0 8px 0 var(--navy);overflow:hidden}
.fc-rare h3{font-size:34px!important}
.fc-rare p{font-weight:600;padding:0 26px;max-width:440px}
.fc-rare-art{width:100%;height:240px;display:flex;align-items:center;justify-content:center;gap:10px;border-bottom:3px solid var(--navy);margin-bottom:8px}
.fc-prism .fc-rare-art{background:linear-gradient(120deg,#FFD6EC,#D6F0FF,#DDFBD9,#FFF4C2,#FFD6EC);background-size:300% 300%;animation:fcshine 6s linear infinite}
.fc-holo{max-height:170px;width:auto;filter:saturate(1.6) hue-rotate(0deg) drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff);animation:fchue 4s linear infinite}
.fc-holo:nth-child(2){animation-delay:-2s;transform:rotate(6deg)}
.fc-gold .fc-rare-art{background:var(--navy) radial-gradient(circle at 50% 45%,rgba(255,214,90,.55),transparent 60%)}
.fc-goldimg{max-height:190px;width:auto;filter:sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 18px rgba(255,214,90,.8));transform-origin:50% 0;animation:fgbob 3.4s ease-in-out infinite}
@keyframes fcshine{0%{background-position:0% 50%}100%{background-position:300% 50%}}
@keyframes fchue{0%{filter:saturate(1.6) hue-rotate(0deg) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)}100%{filter:saturate(1.6) hue-rotate(360deg) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)}}

/* Minis */
.fc-minis{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(30%,140px),1fr));gap:18px}
.fc-mini{padding:12px 10px 14px;border-radius:24px}
.fc-mini-art{position:relative;width:100%;height:120px;border-radius:18px;background:color-mix(in srgb,var(--bg) 45%,#fff);display:flex;align-items:center;justify-content:center;overflow:hidden}
.fc-sil{max-height:96px;width:auto;filter:brightness(0) opacity(.55)}
.fc-mini-art b{position:absolute;font-family:'Bagel Fat One',sans-serif;font-weight:400;font-size:46px;color:#fff;-webkit-text-stroke:2px var(--navy);paint-order:stroke fill}
.fc-mini .fc-stk-name{font-size:18px}
.fc-mini-gold .fc-mini-art{background:var(--navy)}
.fc-sil-gold{filter:brightness(0) invert(77%) sepia(57%) saturate(800%) hue-rotate(358deg)}
.fc-mini-gold .fc-mini-art b{color:var(--sun)}
.fc-mini-buy{margin-top:28px;display:flex;flex-wrap:wrap;gap:28px;align-items:center}
.fc-mini-buy .fg-prod{flex:0 1 320px}
.fc-mini-buy-text{flex:1 1 280px;font-weight:600}
.fc-mini-buy-text h3{font-size:34px!important;margin-bottom:8px!important}
.fc-soon{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:var(--soft,#FFF1C2);border:3px dashed var(--navy);border-radius:24px;padding:18px 22px;font-weight:700;width:100%}
.fc-soon .fc-rar{align-self:center}

@media (max-width:767px){
  .fc .fg-crumbs{padding:16px 16px 0}
  .fc-boxstage{height:360px;flex-basis:100%}
  .fc-box{--w:200px;--h:264px;--d:144px}
  .fc-logo{font-size:36px;margin-top:20px}
  .fc-q{font-size:118px}
  .fc-mm{font-size:27px}
  .fc-side b{font-size:16px}
  .fc-sils img{height:34px}
  .fc-xmas{padding:22px 16px}
  .fc-stk-art{height:140px}
  .fc-stk-art img{max-height:116px}
  .fc-xstk-art{width:120px;height:120px}
  .fc-stk-name{font-size:20px}
}
@media (prefers-reduced-motion:reduce){.fc-box{animation:none}}
