/* Daily x packs and cards. The card frame is in cards.css (built from the approved art page).
   Special versions, the card back, the packs, the ring, the tear and the flips are copied from
   nickname-drafts/index.html (approved 6 Dec 2026). Two animation names are changed so they can't clash with the
   game's own: pop -> xpop, shake -> xshake. The stage's white flash is .st-flash (the game already has .flash). */

/* ---------- special versions (drafts) ---------- */
.xc .badge { position: absolute; top: 20cqw; right: -1.6cqw; z-index: 3; background: var(--ink0); color: var(--white); font: 700 4.6cqw/1 var(--pixel); padding: 1.8cqw 2.6cqw; border-radius: 1.6cqw; box-shadow: 0 0 0 .9cqw var(--rc), 1.4cqw 1.4cqw 0 #000; }
.xc.foil::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 18%, #ff4fd8 32%, #4fe3ff 44%, #fff36b 56%, #6bff9e 66%, transparent 80%); background-size: 300% 300%; animation: sheen 4s linear infinite; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.xc.gold { --rc: #FFE08A; --rc2: #9C6A00; background: linear-gradient(135deg, #7A5200, #FFD76A 22%, #B8860B 40%, #FFF1B8 55%, #9C6A00 75%, #FFD76A); }
.xc.gold .in { background: #1A1406; }
.xc.gold .nm { background: linear-gradient(90deg, #B8860B, #FFE9A3, #B8860B); }
.xc.one { --rc: #FFC94D; background: #000; }
.xc.one::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2.2cqw; background: conic-gradient(from var(--ang, 0deg), #FFC94D, #000 25%, #FFF1B8 50%, #000 75%, #FFC94D);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.xc.one .in { background: #050505; }
.xc .new { position: absolute; top: -2.5cqw; left: -2.5cqw; z-index: 3; background: var(--coral); color: var(--ink0); font: 400 5.4cqw/1 var(--arcade); padding: 1.6cqw 2.4cqw; border-radius: 1.6cqw; transform: rotate(-8deg); box-shadow: 1.2cqw 1.2cqw 0 #000; }

/* ---------- card back: the crew (drafts) ---------- */
.xb { width: var(--w, 100%); aspect-ratio: 5 / 7; container-type: inline-size; border-radius: 6cqw; padding: 3.6cqw; background: var(--white); box-shadow: 2.6cqw 2.6cqw 0 #000; }
.xb > div { height: 100%; border-radius: 3.6cqw; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; }
.xb .lbl { font: 700 5cqw/1 var(--pixel); color: var(--white); letter-spacing: .06em; }
.xb.b2 > div { background-color: var(--ink0); background-image: radial-gradient(rgba(255,255,255,.08) 18%, transparent 20%); background-size: 6cqw 6cqw; gap: 5cqw; }
.xb .ttl { font: 400 11cqw/1 var(--arcade); color: var(--white); text-shadow: 1.2cqw 1.2cqw 0 var(--blue); }
.xb .crew2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; width: 76%; }
.xb .crew2 i { aspect-ratio: 9 / 8; border-radius: 3cqw; overflow: hidden; box-shadow: 1.4cqw 1.4cqw 0 #000; }
.xb .crew2 i svg { display: block; width: 100%; height: 100%; }
.xb .crew2 b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 15cqw; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 1cqw 1cqw 0 #000, 0 0 0 1.2cqw var(--ink0); font: 400 9cqw/1 var(--arcade); color: var(--blue); }
/* Book of Hey x: no art was drawn for it, so it shows the approved crew back inside the 1 of 1 frame */
.xc.heyx .in { display: grid; place-items: stretch; }
.xc.heyx .xb { box-shadow: none; padding: 0; border-radius: 0; background: none; width: 100%; height: 100%; aspect-ratio: auto; }

/* ---------- packs (drafts) ---------- */
.pack { --a: #3982F7; --b: #1F4FA8; --t: #fff; width: var(--w, 128px); aspect-ratio: 5 / 8; container-type: inline-size; position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 4cqw; overflow: hidden;
  background: linear-gradient(155deg, var(--a), var(--b)); box-shadow: 4cqw 4cqw 0 #000; animation: rock 3.2s ease-in-out infinite; display: block; }
@keyframes rock { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
.pack .cr { position: absolute; left: 0; right: 0; height: 7cqw; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1.6cqw, rgba(0,0,0,.18) 1.6cqw 3.4cqw); }
.pack .cr.t { top: 0; } .pack .cr.b { bottom: 0; }
.pack .face { position: absolute; inset: 7cqw 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; color: var(--t); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 4cqw, transparent 4cqw 8cqw); }
.pack .px { font: 400 46cqw/1 var(--arcade); text-shadow: 3cqw 3cqw 0 rgba(0,0,0,.35); transform: rotate(-6deg); }
.pack .pn { font: 400 12cqw/1 var(--arcade); text-shadow: 1.6cqw 1.6cqw 0 rgba(0,0,0,.3); }
.pack .pc { font: 700 7cqw/1 var(--pixel); background: rgba(0,0,0,.35); padding: 2cqw 4cqw; border-radius: 2cqw; }
.pack .shine { position: absolute; inset: -20% -60%; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); animation: shine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.pack.eli { --a: #2A2110; --b: #000; --t: #FFC94D; box-shadow: 4cqw 4cqw 0 #000, inset 0 0 0 2.4cqw #FFC94D; }
.pack .hd { position: relative; width: 64cqw; aspect-ratio: 9 / 8; border-radius: 4cqw; overflow: hidden; background: var(--tile); box-shadow: 2.4cqw 2.4cqw 0 rgba(0,0,0,.45); margin-bottom: 2cqw; }
.pack.eli .hd { box-shadow: 0 0 0 1.6cqw #FFC94D, 2.4cqw 2.4cqw 0 1.6cqw #000; }
.pack .hd svg { display: block; width: 100%; height: 100%; }
.pack .hd b { position: absolute; right: 2cqw; bottom: 2cqw; font: 400 13cqw/1 var(--arcade); color: #fff; text-shadow: 1.4cqw 1.4cqw 0 #000; }

/* ---------- pick a pack: the ring (drafts) ---------- */
.picker { --pw: min(37vw, 150px); position: relative; display: none; align-self: stretch; margin: 0 -20px; height: calc(var(--pw) * 1.6 + 110px); touch-action: none; cursor: grab; outline: none; }
.picker.drag { cursor: grabbing; }
.stage.picking .picker { display: block; }
.stage.picking .zone, .stage.picking .tray, .stage.picking .sum { display: none; }
.pp { position: absolute; left: 50%; top: 58%; width: var(--pw); border: 0; padding: 0; background: none; cursor: pointer; will-change: transform; }
.pp .pack { --w: 100%; animation: none; }
.pp .pack .shine { display: none; }
.pp.mid .pack .shine { display: block; }
.picker:focus-visible .pp.mid { outline: 3px solid var(--blue-soft); outline-offset: 6px; border-radius: 6px; }
.ring-floor { position: absolute; left: 50%; top: 58%; width: calc(var(--pw) * 3.4); height: calc(var(--pw) * .7); translate: -50% calc(var(--pw) * .62); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(57,130,247,.28), rgba(57,130,247,.08) 60%, transparent); }

/* ---------- opening stage (drafts) ---------- */
.stage { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; background: rgba(5,7,10,.97); overflow: hidden; touch-action: none; }
.stage[hidden] { display: none; }
.stage.legend { background: rgba(0,0,0,.97); }
.rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: repeating-conic-gradient(from 0deg, rgba(255,201,77,.22) 0 7deg, transparent 7deg 20deg); animation: turn 14s linear infinite; }
.stage.legend .rays { opacity: 1; }
@keyframes turn { to { rotate: 360deg; } }
.zone { position: relative; width: min(64vw, 240px); aspect-ratio: 5 / 7; display: grid; place-items: center; }
.opack { --w: min(56vw, 210px); position: absolute; width: var(--w); aspect-ratio: 5 / 8; cursor: grab; transition: transform .5s cubic-bezier(.5,0,.6,1), opacity .5s; }
.opack .pack { position: absolute; inset: 0; width: 100%; animation: none; }
.opack { --glow: #FFFFFF; }
.opack .pack.top { clip-path: var(--cpTop); transform-origin: 100% 19%; z-index: 2; }
.opack .pack.body { clip-path: var(--cpBody); }
.opack .pack.top.fly { transition: transform .62s cubic-bezier(.15,.7,.25,1), opacity .62s ease-in; transform: translate(85%, -190%) rotate(42deg) !important; opacity: 0; }
.opack .gap { position: absolute; left: 0; top: calc(18% - 3px); height: 8px; width: calc(var(--p, 0) * 100%); z-index: 1; pointer-events: none; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.2), #fff 70%, var(--glow)); box-shadow: 0 0 14px 5px var(--glow), 0 0 30px 10px color-mix(in srgb, var(--glow) 50%, transparent); }
.opack .guide { position: absolute; left: 4%; right: 4%; top: 18%; height: 2px; z-index: 3; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 6px, transparent 6px 11px); transition: opacity .2s; }
.opack.ripping .guide, .opack.open .guide { opacity: 0; }
.opack .beam { position: absolute; left: -30%; right: -30%; bottom: 82%; height: 140%; z-index: 0; pointer-events: none; opacity: 0; transform-origin: 50% 100%; transform: scaleY(.2);
  background: radial-gradient(ellipse 50% 100% at 50% 100%, color-mix(in srgb, var(--glow) 85%, transparent), transparent 70%); transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.3,1); }
.opack.open .beam { opacity: 1; transform: scaleY(1); }
.opack.open .pack.body { animation: xpop .38s cubic-bezier(.3,1.6,.5,1); }
@keyframes xpop { 40% { transform: scale(1.06, .96); } 70% { transform: scale(.98, 1.02); } }
.opack.gone { transition: transform .55s cubic-bezier(.5,0,.75,0), opacity .45s .1s; transform: translateY(130%) rotate(4deg); opacity: 0; pointer-events: none; }
.stack.rise .fc { animation: rise .6s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes rise { from { transform: translateY(42%) scale(.86); opacity: 0; } }
.flake { position: absolute; z-index: 60; width: 5px; height: 3px; pointer-events: none; border-radius: 1px; }
.opack.wiggle { animation: wig .5s; }
@keyframes wig { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.stack { position: absolute; inset: 0; }
.stack .fc { position: absolute; inset: 0; perspective: 1200px; transition: transform .45s cubic-bezier(.3,0,.3,1), opacity .45s; }
.stack .fc .fl { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.3,.5,1); }
.stack .fc .fl > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.stack .fc .fl > .xc { transform: rotateY(180deg); }
.stack .fc.up .fl { transform: rotateY(180deg); }
.stack .fc.away { transform: translateY(-60%) scale(.4); opacity: 0; }
.stack.glow-R .fc:first-child .xb { box-shadow: 0 0 40px 10px rgba(79,147,255,.75); }
.stack.glow-E .fc:first-child .xb { box-shadow: 0 0 46px 14px rgba(185,139,255,.8); }
.stack.glow-L .fc:first-child .xb { box-shadow: 0 0 60px 20px rgba(255,201,77,.9); }
.stack.glow-R, .stack.glow-E, .stack.glow-L { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }
.stack.xshake { animation: xshake .12s linear infinite; }
@keyframes xshake { 0% { transform: translate(2px, 0) rotate(.6deg); } 50% { transform: translate(-2px, 1px) rotate(-.6deg); } 100% { transform: translate(1px, -1px); } }
.hint { position: relative; font: 700 12px var(--pixel); color: var(--blue-soft); min-height: 18px; text-align: center; }
.tray { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; min-height: 84px; max-width: 420px; }
.tray .xc { animation: drop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes drop { from { transform: translateY(-30px) scale(1.4); opacity: 0; } }
.sum { position: relative; font: 700 12px/1.6 var(--pixel); color: var(--white); text-align: center; max-width: 340px; }
.sum b { color: var(--amber); font-weight: 700; }
.ctrl { position: relative; display: flex; gap: 10px; }
.ctrl button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 5px; background: var(--ink2); color: var(--white); font: 400 15px var(--arcade); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.ctrl button.go { background: var(--blue); }
.ctrl button[hidden] { display: none; }
.st-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.conf { position: absolute; width: 8px; height: 12px; top: 40%; left: 50%; pointer-events: none; }

/* ---------- the game's new screens ---------- */
nav.six { grid-template-columns: repeat(3, 1fr); }
/* coins sit under your name, so the header still fits a 375 px phone */
.head-r { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2px; }
.coins { display: inline-flex; align-items: center; gap: 5px; background: var(--ink2); color: var(--amber); font: 700 11px/1 var(--pixel); padding: 4px 7px 3px 5px; border-radius: 4px; box-shadow: 2px 2px 0 var(--shadow); white-space: nowrap; border: 0; cursor: pointer; margin-right: 34px; }
.coin { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--amber); color: var(--ink0); font: 400 10px/1 var(--arcade); box-shadow: inset 0 0 0 2px var(--amber-deep); flex: none; }
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink1); border-radius: 6px; padding: 14px; box-shadow: 3px 3px 0 var(--shadow); }
.wallet .amt { display: flex; align-items: center; gap: 10px; font: 400 32px/1 var(--arcade); color: var(--amber); }
.wallet .amt .coin { width: 28px; height: 28px; font-size: 17px; box-shadow: inset 0 0 0 3px var(--amber-deep); }
.wallet small { display: block; font: 700 11px/1.5 var(--pixel); color: var(--muted); text-align: right; }
.prow { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; background: var(--ink1); border-radius: 6px; padding: 12px; box-shadow: 3px 3px 0 var(--shadow); }
.prow .pack { --w: 74px; animation: none; box-shadow: 3cqw 3cqw 0 #000; cursor: default; }
.prow .pack.eli { box-shadow: 3cqw 3cqw 0 #000, inset 0 0 0 2.4cqw #FFC94D; }
.prow h3 { margin: 0; font: 400 17px/1.15 var(--arcade); }
.prow p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.prow .odds { font: 700 10px/1.5 var(--pixel); color: var(--blue-soft); margin-top: 4px; }
.prow .act { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sbtn { border: 0; border-radius: 5px; background: var(--blue); color: #fff; font: 400 15px/1 var(--arcade); padding: 11px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.sbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.sbtn.amber { background: var(--amber); color: var(--ink0); }
.sbtn.sure { background: var(--coral); color: var(--ink0); }
.sbtn:disabled { background: var(--ink2); color: var(--muted); cursor: default; box-shadow: none; transform: none; }
.price { display: inline-flex; align-items: center; gap: 5px; font: 700 13px var(--pixel); color: var(--amber); }
.packs-list { display: flex; flex-direction: column; gap: 12px; }
.luck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.luck div { background: var(--ink1); border-radius: 6px; padding: 10px 12px; font: 700 11px/1.5 var(--pixel); color: var(--muted); box-shadow: 3px 3px 0 var(--shadow); }
.luck b { display: block; font: 400 20px/1.1 var(--arcade); color: var(--white); }
.luck .e b { color: #C9A4FF; } .luck .l b { color: #FFC94D; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 2px solid var(--ink2); font: 700 12px var(--pixel); color: var(--muted); }
.hist li b { color: var(--blue-soft); font-weight: 700; } .hist li b.neg { color: var(--coral); }
details.odds-all summary { cursor: pointer; font: 700 12px var(--pixel); color: var(--blue-soft); padding: 6px 0; }
details.odds-all table { margin-top: 6px; }
/* cards tab */
.btabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.btabs button { min-height: 48px; border: 0; border-radius: 5px; background: var(--ink2); color: var(--white); font: 400 14px var(--arcade); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); padding: 4px 2px; }
.btabs button small { display: block; font: 700 10px var(--pixel); color: var(--muted); }
.btabs button[aria-selected="true"] { background: var(--blue); }
.btabs button[aria-selected="true"] small { color: var(--white); }
.bar { height: 10px; border-radius: 3px; background: var(--ink2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.bar.done i { background: var(--amber); }
.binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.slot { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; min-width: 0; }
.slot .xc { box-shadow: 1.6cqw 1.6cqw 0 #000; }
.slot.empty .ghost { aspect-ratio: 5 / 7; border-radius: 6px; background: var(--ink1); box-shadow: inset 0 0 0 2px var(--ink2); display: grid; place-items: center; font: 400 20px/1 var(--arcade); color: var(--line); }
.slot.empty { cursor: default; }
.vchips { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 16px; }
.vchips i { font: 700 9px/1 var(--pixel); font-style: normal; padding: 3px 4px 2px; border-radius: 3px; background: var(--ink2); color: var(--muted); }
.vchips i.foil { background: linear-gradient(90deg, #ff4fd8, #4fe3ff); color: var(--ink0); }
.vchips i.gold { background: #FFD76A; color: var(--ink0); }
.vchips i.num { background: #B98BFF; color: var(--ink0); }
.vchips i.one { background: #000; color: #FFC94D; box-shadow: inset 0 0 0 1px #FFC94D; }
.zoom { position: fixed; inset: 0; z-index: 40; background: rgba(5,7,10,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.zoom .bigcard { width: min(78vw, 320px); }
.zoom .vpick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 340px; }
.zoom .vpick button { border: 0; border-radius: 4px; background: var(--ink2); color: var(--white); font: 700 11px var(--pixel); padding: 8px 10px; cursor: pointer; }
.zoom .vpick button[aria-pressed="true"] { background: var(--white); color: var(--ink0); }
.zoom p { margin: 0; font: 700 11px/1.6 var(--pixel); color: var(--muted); text-align: center; max-width: 320px; }
.claimbox { display: flex; flex-direction: column; gap: 14px; }
.claimbox .who { display: flex; align-items: center; gap: 14px; font: 400 26px var(--arcade); }
@media (prefers-reduced-motion: reduce) { .stage *, .stage *::before, .stage *::after, .xc, .xc::before, .xc::after, .pack, .pack *, .zoom * { animation: none !important; } }
