/* ==========================================================
   MOC ARCANA — unified metal system (loaded last)
   One coin, one crest tile, one lettering, tinted by --t:
   factions (home), opponents (arena lobby + duel modal), stats (spotlight).
   ========================================================== */

/* ---- tone sources ---- */
.factions .faction { --t: var(--fc); }
.opponent-card, .duel-box { --t: var(--oc); }
.spot-medal { --t: var(--mc); }

/* ---- metal tones derived from the tint (alloyed with steel: reads as metal, not plastic) ---- */
.factions .faction, .opponent-card, .duel-box, .spot-medal, .m-tone {
  --m1: color-mix(in srgb, var(--t) 35%, #ffffff);
  --m2: color-mix(in srgb, var(--t) 70%, #c8c8d0);
  --m3: color-mix(in srgb, var(--t) 75%, #3a3a44);
  --m4: color-mix(in srgb, var(--t) 45%, #0b0b12);
  --m5: color-mix(in srgb, var(--t) 20%, #050508);
}

/* ==========================================================
   COIN — milled edge, polished bezel, domed face, embossed motif
   ========================================================== */
.factions .faction .medallion, .opponent-card .opp-medal, .duel-box .duel-medal, .spot-medal .ring-medal, .m-coin {
  position: relative; display: grid; place-items: center; border: 0 !important; border-radius: 50%;
  width: 112px; height: 112px; margin: 0 auto 1.3rem;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 1.2deg, rgba(0,0,0,.28) 1.2deg 2.4deg),
    conic-gradient(from 140deg, var(--m2), var(--m4) 25%, var(--m1) 50%, var(--m4) 75%, var(--m2)) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 18px 30px rgba(0,0,0,.75), 0 6px 8px rgba(0,0,0,.5), 0 0 34px color-mix(in srgb, var(--t) 26%, transparent) !important;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .4s; animation: none; }
.factions .faction .medallion::before, .opponent-card .opp-medal::before, .duel-box .duel-medal::before, .spot-medal .ring-medal::before, .m-coin::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,.35) 76%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 70% 45% at 38% 22%, rgba(255,255,255,.55), transparent 60%),
    conic-gradient(from 225deg, var(--m3), var(--m2) 15%, var(--m1) 25%, var(--m2) 35%, var(--m3) 50%, var(--m4) 65%, var(--m3) 80%, var(--m2) 90%, var(--m3));
  box-shadow: 0 0 0 3px var(--m2), 0 0 0 4px var(--m5), 0 0 0 5px color-mix(in srgb, var(--m1) 60%, transparent),
    inset 0 3px 5px rgba(255,255,255,.35), inset 0 -6px 12px rgba(0,0,0,.45); }
.factions .faction .medallion::after, .opponent-card .opp-medal::after, .duel-box .duel-medal::after, .spot-medal .ring-medal::after, .m-coin::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--t) 25%, transparent) !important; animation: none; pointer-events: none; }

/* embossed motif: raised polished white metal, same on every tint */
.factions .faction .medallion i, .opponent-card .opp-medal .emblem, .duel-box .duel-medal .emblem, .spot-medal .ring-medal b, .spot-medal .ring-medal i, .m-coin > * {
  position: relative; z-index: 1;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.7)) drop-shadow(0 2px 0 var(--m5)) drop-shadow(0 4px 5px rgba(0,0,0,.55)) !important; }
.factions .faction .medallion i { font-size: 2.7rem; color: #fff; text-shadow: none; opacity: 1; }
.factions .faction .medallion i::before { background: linear-gradient(170deg, #fff 0%, #fff 30%, var(--m1) 55%, var(--m2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.opponent-card .opp-medal .emblem, .duel-box .duel-medal .emblem { width: 60px; height: 60px; transform: none !important; }
.opp-medal .emblem [fill^="url"], .duel-medal .emblem [fill^="url"] { fill: #fff; }
.opp-medal .emblem [stroke^="url"], .duel-medal .emblem [stroke^="url"] { stroke: #fff; }
.opp-medal .emblem [fill="#0c0f29"], .opp-medal .emblem [stroke="#0c0f29"], .duel-medal .emblem [fill="#0c0f29"], .duel-medal .emblem [stroke="#0c0f29"] { fill: var(--m5); stroke: var(--m5); }
.opp-medal .emblem [stroke="#0c0f29"], .duel-medal .emblem [stroke="#0c0f29"] { fill: none; }
.spot-medal .ring-medal b { font-size: 2.6rem; margin-top: 12px; line-height: 1; background: none; color: #fff; -webkit-text-fill-color: #fff; text-shadow: none; }
.spot-medal .ring-medal i { position: absolute; top: 18px; font-size: .9rem; color: #fff; text-shadow: none; }

/* hover: the coin tilts like one picked up */
.factions .faction:hover .medallion, .opponent-card:hover .opp-medal, .spot-medal:hover .ring-medal { transform: rotate(-10deg) scale(1.05);
  box-shadow: 0 1px 0 rgba(255,255,255,.2), 0 22px 34px rgba(0,0,0,.75), 0 6px 8px rgba(0,0,0,.5), 0 0 50px color-mix(in srgb, var(--t) 45%, transparent) !important; }
.duel-box .duel-medal { width: 128px; height: 128px; }

/* ==========================================================
   CREST TILE — matte panel, brushed metal frame, top glow
   ========================================================== */
.factions .faction, .opponent-card, .m-tile {
  position: relative; isolation: isolate; overflow: hidden; border: 0 !important; border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--t) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #11142e 0%, #0b0d22 60%, #080a1a 100%) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05) !important;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.factions .faction::before, .opponent-card::before, .m-tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from 210deg, var(--m4), var(--m1) 8%, var(--m3) 18%, var(--m5) 30%, var(--m2) 45%, var(--m4) 58%, var(--m1) 70%, var(--m3) 82%, var(--m5) 92%, var(--m4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.factions .faction::after, .opponent-card::after, .m-tile::after {
  content: ""; position: absolute; inset: 0; left: 0; right: 0; top: 0; height: auto; border-radius: inherit; pointer-events: none; z-index: 1; box-shadow: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.07) 47%, transparent 56%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s cubic-bezier(.2,.8,.2,1); }
.factions .faction:hover::after, .opponent-card:hover::after, .m-tile:hover::after { background-position: -40% 0; }
.factions .faction:hover, .opponent-card:hover { transform: translateY(-8px);
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--t) 26%, transparent), transparent 70%),
    linear-gradient(180deg, #13163a 0%, #0b0d22 60%, #080a1a 100%) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 34px color-mix(in srgb, var(--t) 22%, transparent) !important; }
.opponent-card:has(input:checked):not(:hover) { transform: none; }
.opponent-card { padding: 2.6rem 1.6rem 1.8rem; display: flex !important; flex-direction: column; align-items: center; }

/* ---- lettering: tinted polished metal, same everywhere ---- */
.factions .faction h3, .opponent-card .opp-level, .duel-box .opp-level, .spot-medal > span, .m-letter {
  font-weight: 900; text-transform: uppercase; letter-spacing: .22em;
  background: linear-gradient(180deg, var(--m1) 0%, var(--m2) 45%, var(--m4) 52%, var(--m2) 78%, var(--m1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)); }
.factions .faction h3 { font-size: 1.12rem; }
.opponent-card .opp-level, .duel-box .opp-level { font-size: .74rem; margin: 0 0 .3rem; }
.spot-medal > span { display: block; margin-top: .9rem; font-size: .74rem; }
/* ornament under the name */
.factions .faction h3::after, .opponent-card .h4::after, .duel-box .duel-name::after { content: ""; display: block; width: 46px; height: 1px; margin: .55rem auto 0;
  background: linear-gradient(90deg, transparent, var(--m2), transparent); box-shadow: 0 0 8px var(--t); }
.opponent-card .h4 { font-family: inherit; font-size: 1.55rem; font-weight: 900; color: #fff; margin-bottom: .5rem !important; }
.opponent-card p { color: #b9b6cc !important; margin-bottom: 1.2rem !important; flex: 1; }

/* ---- difficulty pips: tiny minted studs ---- */
.opponent-card .opp-pips, .duel-box .opp-pips { gap: 7px; margin: -.3rem 0 .9rem; }
.opponent-card .opp-pips span, .duel-box .opp-pips span { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); background: rgba(0,0,0,.3); box-shadow: none; }
.opponent-card .opp-pips span.on, .duel-box .opp-pips span.on { border: 0; background: linear-gradient(135deg, var(--m1), var(--m2) 40%, var(--m4)); box-shadow: 0 0 8px color-mix(in srgb, var(--t) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.5); }

/* ---- pill: tokens count / challenge, same plate ---- */
.factions .fac-count, .opponent-card .opp-cta, .m-pill {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding: .38rem 1rem; border-radius: 999px; opacity: 1;
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--m1); text-shadow: 0 1px 1px rgba(0,0,0,.8);
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 18%, #15182f), color-mix(in srgb, var(--t) 8%, #0b0d1e));
  border: 1px solid color-mix(in srgb, var(--t) 40%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.4);
  transition: background .3s, box-shadow .3s, gap .3s; }
.opponent-card:hover .opp-cta { gap: .8rem; color: #fff; background: linear-gradient(180deg, var(--m2), var(--m3) 55%, var(--m4)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px color-mix(in srgb, var(--t) 40%, transparent); }

/* ---- duel modal: same frame language ---- */
.duel-box { border: 0 !important; }
.duel-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from 210deg, var(--m4), var(--m1) 8%, var(--m3) 18%, var(--m5) 30%, var(--m2) 45%, var(--m4) 58%, var(--m1) 70%, var(--m3) 82%, var(--m5) 92%, var(--m4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.duel-box .duel-name { font-weight: 900; }

@media (max-width: 991px) {
  .spot-medal .ring-medal { width: 92px; height: 92px; } .spot-medal .ring-medal b { font-size: 2rem; }
  .factions .faction .medallion { width: 96px; height: 96px; }
}


/* ==========================================================
   CALLS TO ACTION — premium buttons, header CTAs, hero CTAs, sticky dock
   ========================================================== */
/* ---- every gold / violet button on the site: bevel, glow, sheen, press ---- */
.btn-arcana-gold, .btn-arcana { position: relative; overflow: hidden; isolation: isolate; border: 0 !important; border-radius: 999px !important; font-weight: 800 !important; letter-spacing: .02em;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s, filter .3s !important; }
.btn-arcana-gold { color: #1d1405 !important; background: linear-gradient(180deg, #fff4c2 0%, #f3dc8f 30%, #e9bf55 58%, #b08a33 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 4px rgba(90,60,10,.35), 0 0 0 1px rgba(249,231,161,.65), 0 8px 24px rgba(217,179,90,.4) !important; }
.btn-arcana { color: #fff !important; background: linear-gradient(180deg, #b598f0 0%, #8a66d6 35%, #6f4cb1 65%, #4d3285 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(20,10,50,.4), 0 0 0 1px rgba(190,160,255,.55), 0 8px 24px rgba(111,76,177,.45) !important; }
.btn-arcana-gold::after, .btn-arcana::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: -1; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.75), transparent) !important; animation: cta-sweep 4.5s ease-in-out infinite !important; }
.btn-arcana::after { background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent) !important; animation-delay: 1.2s !important; }
@keyframes cta-sweep { 0%, 60% { left: -70%; } 100% { left: 130%; } }
.btn-arcana-gold:hover, .btn-arcana-gold:focus-visible { transform: translateY(-2px) scale(1.03); filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px #fff4c2, 0 12px 32px rgba(217,179,90,.6), 0 0 44px rgba(217,179,90,.45) !important; }
.btn-arcana:hover, .btn-arcana:focus-visible { transform: translateY(-2px) scale(1.03); filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px #d6c6ff, 0 12px 32px rgba(111,76,177,.6), 0 0 44px rgba(155,123,224,.5) !important; }
.btn-arcana-gold:active, .btn-arcana:active { transform: translateY(1px) scale(.98); }
.btn-arcana-gold:disabled, .btn-arcana:disabled { filter: grayscale(.5) brightness(.75); transform: none; }
.btn-lg.btn-arcana-gold, .btn-lg.btn-arcana { padding: .85rem 1.8rem !important; font-size: 1.05rem !important; }

/* ---- header: Packs + Play, the two main actions ---- */
.nav-packs { display: inline-flex; align-items: center; gap: 8px; padding: .3rem 1.1rem .3rem .4rem; border-radius: 999px; text-decoration: none; color: #fff !important; position: relative; overflow: visible;
  background: linear-gradient(180deg, #b598f0, #6f4cb1 55%, #4d3285); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(190,160,255,.55), 0 6px 18px rgba(111,76,177,.45);
  transition: transform .2s, box-shadow .3s; }
.nav-packs img { width: 30px; margin: -10px 0 -8px; transform: rotate(-10deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .3s; }
.nav-packs span { display: flex; flex-direction: column; line-height: 1.05; }
.nav-packs b { font-size: .9rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nav-packs small { font-size: .66rem; font-weight: 700; color: #f3dc8f; }
.nav-packs:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px #d6c6ff, 0 10px 26px rgba(111,76,177,.6), 0 0 34px rgba(155,123,224,.45); }
.nav-packs:hover img { transform: rotate(-4deg) scale(1.12) translateY(-3px); }

/* ---- home hero: two big CTA tiles ---- */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: .4rem; }
.cta-big { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; border-radius: 18px; text-decoration: none; overflow: visible; isolation: isolate;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s; }
.cta-big .cb-txt { display: flex; flex-direction: column; line-height: 1.1; }
.cta-big b { font-size: 1.2rem; font-weight: 900; }
.cta-big small { font-size: .78rem; font-weight: 700; opacity: .85; }
.cta-pack { color: #1d1405; padding-left: 86px; background: linear-gradient(180deg, #fff4c2 0%, #f3dc8f 30%, #e9bf55 58%, #b08a33 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 6px rgba(90,60,10,.35), 0 0 0 1px rgba(249,231,161,.7), 0 12px 34px rgba(217,179,90,.45), 0 0 50px rgba(217,179,90,.25);
  animation: cta-breathe 3s ease-in-out infinite; }
.cta-pack img { position: absolute; left: 10px; bottom: -6px; width: 66px; transform: rotate(-12deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); transition: transform .35s cubic-bezier(.2,.9,.3,1.4); }
.cta-pack::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); background-size: 260% 100%; animation: play-sheen 3.6s ease-in-out infinite; }
.cta-pack .cb-arrow { font-size: 1.2rem; transition: transform .25s; }
.cta-pack:hover { transform: translateY(-3px) scale(1.03); color: #1d1405; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px #fff4c2, 0 18px 44px rgba(217,179,90,.6), 0 0 70px rgba(217,179,90,.45); }
.cta-pack:hover img { transform: rotate(-4deg) translateY(-12px) scale(1.12); }
.cta-pack:hover .cb-arrow { transform: translateX(5px); }
@keyframes cta-breathe { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 6px rgba(90,60,10,.35), 0 0 0 1px rgba(249,231,161,.9), 0 14px 40px rgba(217,179,90,.55), 0 0 70px rgba(217,179,90,.4); } }
.cta-play { color: #fff; background: linear-gradient(180deg, #b598f0 0%, #8a66d6 35%, #6f4cb1 65%, #4d3285 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(20,10,50,.4), 0 0 0 1px rgba(190,160,255,.6), 0 12px 32px rgba(111,76,177,.5); }
.cta-play .cb-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; color: #1d1405;
  background: radial-gradient(circle at 35% 25%, #fff4c2, #e9bf55 55%, #a8812e); box-shadow: inset 0 1px 2px rgba(255,255,255,.7), 0 0 16px rgba(249,231,161,.6); }
.cta-play:hover { transform: translateY(-3px) scale(1.03); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px #d6c6ff, 0 18px 40px rgba(111,76,177,.6), 0 0 60px rgba(155,123,224,.5); }
.cta-play:hover .cb-ico { animation: ico-zap .5s; }
@keyframes ico-zap { 30% { transform: scale(1.2) rotate(-10deg); } 60% { transform: scale(.95) rotate(6deg); } }
.hero-urgency { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: #cfcbe0; }
.hero-urgency b { color: #f3dc8f; }
.hu-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d63; box-shadow: 0 0 0 0 rgba(255,77,99,.7); animation: hu-ping 1.6s ease-out infinite; flex: none; }
@keyframes hu-ping { 0% { box-shadow: 0 0 0 0 rgba(255,77,99,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,77,99,0); } }

/* ---- sticky dock ---- */
.cta-dock { position: fixed; left: 50%; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 70px; border-radius: 999px;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2,1.1,.3,1), opacity .3s; max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, rgba(23,25,66,.94), rgba(10,12,34,.96)); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(249,231,161,.45), 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(111,76,177,.3); }
.cta-dock.show { transform: translate(-50%, 0); opacity: 1; }
.cd-pack { position: absolute; left: 12px; bottom: 4px; width: 52px; transform: rotate(-12deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); animation: tier-bob 3s ease-in-out infinite; }
.cd-txt { display: flex; flex-direction: column; line-height: 1.15; margin-right: 6px; white-space: nowrap; }
.cd-txt b { font-size: .9rem; color: #fff; }
.cd-txt small { font-size: .72rem; color: #e9cf8a; }
.cd-btn { padding: .55rem 1.2rem !important; font-size: .9rem !important; white-space: nowrap; }
.cd-close { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: #a9a4c4; display: grid; place-items: center; }
.cd-close:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 767px) { .cta-dock { padding-left: 14px; gap: 8px; } .cd-pack, .cd-txt { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn-arcana-gold::after, .btn-arcana::after, .cta-pack, .cta-pack::after, .hu-dot, .cd-pack { animation: none !important; } }

/* ==========================================================
   SHOP — full screen like the arena: no site header, everything visible at once
   ========================================================== */
body.shop-page .arcana-nav, body.shop-page .arcana-footer, body.shop-page .cta-dock { display: none !important; }
body.shop-page .arcana-main { padding-top: 0 !important; min-height: 100vh; }
.shop-screen { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; background: #05060f; }
.shop-screen .arena-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shop-screen .arena-scene::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(3,4,12,.55); }
.lobby-play { color: #1d1405 !important; border: 0 !important; background: linear-gradient(180deg, #fff4c2, #e9bf55 58%, #b08a33) !important; box-shadow: 0 0 0 1px rgba(249,231,161,.6), 0 6px 18px rgba(217,179,90,.4); font-weight: 900 !important; letter-spacing: .1em; text-transform: uppercase; }
.lobby-play:hover { filter: brightness(1.08); }
.shop-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 78px 16px 20px !important; max-width: 1400px; }
.shop-welcome { align-self: center; margin-bottom: 10px; padding: .45rem 1.1rem; border-radius: 999px; font-size: .9rem; color: #e0dcef;
  background: rgba(217,179,90,.1); border: 1px solid rgba(217,179,90,.4); }
.shop-welcome i { color: #e9bf55; margin-right: 4px; }
.shop-welcome b { color: #fff; }

/* the two columns fill the screen height */
body.shop-page .shop-stage { --bs-gutter-y: 0; align-items: center !important; }
body.shop-page .shop-stage .pack-stage { height: min(calc(100vh - 140px), 700px) !important; }
body.shop-page .shop-stage .pack { width: min(330px, calc((100vh - 220px) * .7)) !important; }
body.shop-page .stage-hint { bottom: 6px; }

/* product panel: compact so price, wallet and free packs fit without scrolling */
body.shop-page .product { padding: 1.3rem 1.6rem !important; background: linear-gradient(180deg, rgba(17,20,50,.9), rgba(8,10,28,.92)) !important; backdrop-filter: blur(8px); }
body.shop-page .product-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: .2rem; }
body.shop-page .product-desc { font-size: .9rem; margin-bottom: .7rem; }
body.shop-page .product-odds { gap: .3rem; }
body.shop-page .product-odds li { font-size: .85rem; }
body.shop-page .product-odds-note { margin-top: .4rem; }
body.shop-page .price-row { margin-top: .9rem; padding-top: .9rem; }
body.shop-page .wallet-row { margin-top: .7rem; padding: .6rem .9rem; }
body.shop-page .product-note { margin-top: .5rem; font-size: .72rem; }
body.shop-page .free-panel { margin-top: 12px !important; padding: .9rem 1.2rem !important; gap: 1rem !important; background: linear-gradient(180deg, rgba(17,20,50,.9), rgba(8,10,28,.92)) !important; }
body.shop-page .free-panel .small.text-lightgrey { margin-bottom: .6rem !important; font-size: .76rem; }
body.shop-page .free-stack { transform: scale(.8); transform-origin: left center; }
.tx-details { margin-top: 10px; border-radius: 14px; background: rgba(10,12,32,.75); border: 1px solid rgba(255,255,255,.08); }
.tx-details summary { cursor: pointer; list-style: none; padding: .55rem 1rem; font-size: .8rem; font-weight: 700; color: #cfcbe0; }
.tx-details summary::-webkit-details-marker { display: none; }
.tx-details summary::after { content: "\F282"; font-family: "bootstrap-icons"; float: right; transition: transform .2s; }
.tx-details[open] summary::after { transform: rotate(180deg); }
.tx-details .tx-list { padding: 0 1rem .7rem; max-height: 160px; overflow: auto; }
@media (max-height: 820px) { body.shop-page .product-desc, body.shop-page .product-note { display: none; } }
@media (max-width: 991px) { .shop-screen { overflow: visible; } .shop-body { padding-top: 80px !important; } body.shop-page .shop-stage .pack-stage { height: 460px !important; } }

/* ==========================================================
   SHOP v4 — "the vault": the booster on its altar, info on the sides
   ========================================================== */
.shop-screen.vault { background: radial-gradient(ellipse 70% 60% at 50% 45%, #2a1d64 0%, #120f38 45%, #06071a 80%, #030409 100%); }
.shop-screen.vault .arena-scene { display: none; }
.vault-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.vb-glow { position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,150,.34) 0%, rgba(217,179,90,.16) 25%, rgba(111,76,177,.22) 45%, transparent 68%); animation: aura-breath 5s ease-in-out infinite; }
.vb-rays { position: absolute; left: 50%; top: 52%; width: 1600px; height: 1600px; transform: translate(-50%,-50%);
  background: repeating-conic-gradient(rgba(249,231,161,.07) 0 2deg, transparent 2deg 9deg); -webkit-mask: radial-gradient(circle, #000 5%, transparent 55%); mask: radial-gradient(circle, #000 5%, transparent 55%);
  animation: vb-spin 120s linear infinite; }
@keyframes vb-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
/* sealed cards drifting in the dark */
.vb-cards i { position: absolute; left: var(--x); top: var(--y); width: calc(70px * var(--s)); aspect-ratio: 737 / 1024; border-radius: 6px; opacity: .14;
  background: url('../img/card-back.webp') center / cover; transform: rotate(var(--r)); filter: blur(1px); animation: vb-float 9s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes vb-float { 50% { transform: rotate(calc(var(--r) + 6deg)) translateY(-18px); } }
.vb-dust i { position: absolute; left: var(--x); bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #f9e7a1; box-shadow: 0 0 8px 2px rgba(249,231,161,.7); opacity: 0;
  animation: spark-rise var(--t) linear infinite; animation-delay: var(--d); }
.shop-screen.vault::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 55%, rgba(2,3,10,.8) 100%); }

/* layout */
.vault-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 78px 28px 24px; }
.vault-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(260px, 310px); gap: clamp(16px, 3vw, 48px); align-items: center; max-width: 1500px; width: 100%; margin: 0 auto; }

/* side panels: glass with a thin gold frame */
.vault-side { position: relative; padding: 22px 22px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(20,22,56,.82), rgba(9,10,28,.88)); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.vault-side::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,244,194,.8), rgba(168,129,46,.35) 35%, rgba(61,42,8,.2) 60%, rgba(233,191,85,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.vs-kicker { font-size: .7rem; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: #e9cf8a; }
.vs-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin: 2px 0 14px; }
.vs-note { font-size: .74rem; color: #a9a4c4; margin: 12px 0 0; line-height: 1.4; }

/* odds */
.v-odds { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.v-odds li { display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; }
.vo-gem { grid-row: 1 / 3; width: 18px; height: 18px; transform: rotate(45deg); border-radius: 4px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 35%, #fff), var(--t) 55%, color-mix(in srgb, var(--t) 50%, #000)); box-shadow: 0 0 12px color-mix(in srgb, var(--t) 60%, transparent); }
.vo-name { font-weight: 800; font-size: .92rem; color: color-mix(in srgb, var(--t) 50%, #fff); }
.vo-val { font-weight: 900; font-size: .92rem; color: #fff; }
.vo-bar { grid-column: 2 / 4; height: 6px; border-radius: 6px; background: rgba(0,0,0,.45); overflow: hidden; }
.vo-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 60%, #000), var(--t), color-mix(in srgb, var(--t) 40%, #fff)); box-shadow: 0 0 8px var(--t); }

/* centre */
.v-center { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.v-head { text-align: center; margin-bottom: -10px; position: relative; z-index: 2; }
.v-head span { font-size: .72rem; font-weight: 900; letter-spacing: .35em; text-transform: uppercase; color: #e9cf8a; }
.v-head h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 900; margin: 0; line-height: 1.05;
  background: linear-gradient(180deg, #fff 20%, #f3dc8f 60%, #c99a3b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(0,0,0,.7)); }
body.shop-page .vault .pack-stage { height: min(calc(100vh - 330px), 560px) !important; width: 100%; }
body.shop-page .vault .pack { width: min(300px, calc((100vh - 360px) * .7)) !important; }
body.shop-page .vault .stage-hint { position: static; margin: -6px 0 12px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #cfcbe0; }
.v-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.v-actions .btn { min-width: 220px; }

/* right: price & wallet */
.v-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.v-price b { font-size: 3.6rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff9df, #f3dc8f 40%, #e9bf55 60%, #a8812e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-price span { font-size: 1.1rem; font-weight: 900; color: #e9cf8a; letter-spacing: .1em; }
.v-gas { font-size: .76rem; color: #a9a4c4; margin-bottom: 14px; }
.v-box { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); margin-top: 10px; }
.v-box small { display: block; font-size: .74rem; color: #a9a4c4; line-height: 1.35; }
.vb-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; color: #cfcbe0; }
.vb-row i { color: #e9bf55; margin-right: 4px; }
.vb-wallet { font-size: .74rem; color: #a9a4c4; }
.v-box .cro-balance { font-size: 1.7rem; margin: 4px 0 2px; }
.v-free-count { font-size: 1.5rem; font-weight: 900; color: #f3dc8f; line-height: 1; }
.vault .tx-details { margin-top: 10px; }

@media (max-width: 1199px) {
  .vault-grid { grid-template-columns: 1fr; max-width: 560px; }
  .v-center { order: -1; }
  .shop-screen.vault { overflow: visible; }
}
@media (max-height: 760px) { .v-head span, .vs-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .vb-glow, .vb-rays, .vb-cards i, .vb-dust i { animation: none; } }
.v-box .cro-balance { white-space: nowrap; }
.v-actions .v-free:disabled { display: none; }

/* pack opening: the 10 cards always fit the screen, in the vault's light */
.opening { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(60,40,130,.55), rgba(10,10,32,.97) 60%, #04050f 100%) !important; align-items: center; }
.opening-inner { --gap: 1.2rem; width: min(1180px, 94vw, calc((100vh - 230px) / 2 * (400 / 556) * 5 + 4 * var(--gap))) !important; padding: 1.4rem 0 !important; }
.reveal-grid { column-gap: var(--gap) !important; row-gap: 2.4rem !important; margin-bottom: .6rem !important; }
.opening-actions { margin-top: 1.4rem !important; }
@media (max-width: 768px) { .opening-inner { width: min(94vw, calc((100vh - 260px) / 4 * (400 / 556) * 3 + 2 * var(--gap))) !important; } }

/* ==========================================================
   PACK OPENING — exceptional cards (Epic / Legendary / Mythic)
   ========================================================== */
/* anticipation: the back of a rare card glows and trembles before it is flipped */
.flip-card.hint-rare .flip-back { box-shadow: 0 0 0 2px var(--t), 0 0 26px var(--t), 0 0 60px color-mix(in srgb, var(--t) 50%, transparent); animation: hint-pulse 1.4s ease-in-out infinite; }
.flip-card.hint-rare::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--t) 45%, transparent), transparent 65%); filter: blur(8px); animation: hint-pulse 1.4s ease-in-out infinite; }
.flip-card.hint-rare:hover { animation: hint-shake .35s linear infinite; }
@keyframes hint-pulse { 50% { filter: brightness(1.35); } }
@keyframes hint-shake { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
/* revealed rare cards keep a living aura in the grid */
.flip-card.rare-glow .flip-front { box-shadow: 0 0 0 2px var(--t), 0 0 30px color-mix(in srgb, var(--t) 70%, transparent); border-radius: 12px; animation: rare-aura 2.4s ease-in-out infinite; }
@keyframes rare-aura { 50% { box-shadow: 0 0 0 2px var(--t), 0 0 50px var(--t); } }

/* the showcase */
.showcase-reveal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.sr-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--t) 30%, #0b0a24) 0%, rgba(4,5,15,.96) 60%); opacity: 0; transition: opacity .4s; }
.sr-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; transform: translate(-50%,-50%) scale(.2); opacity: 0;
  background: repeating-conic-gradient(color-mix(in srgb, var(--t) 40%, transparent) 0 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 4%, transparent 40%); mask: radial-gradient(circle, #000 4%, transparent 40%);
  transition: transform 1s cubic-bezier(.2,.9,.2,1) .35s, opacity .6s .35s; }
.showcase-reveal.in .sr-bg { opacity: 1; }
.showcase-reveal.in .sr-rays { opacity: 1; transform: translate(-50%,-50%) scale(1); animation: sr-spin 40s linear 1.2s infinite; }
@keyframes sr-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.sr-ring { position: absolute; left: 50%; top: 45%; width: 300px; height: 300px; border-radius: 50%; transform: translate(-50%,-50%) scale(.2); opacity: 0;
  border: 4px solid color-mix(in srgb, var(--t) 50%, #fff); box-shadow: 0 0 40px var(--t), inset 0 0 30px var(--t); }
.showcase-reveal.in .sr-ring { animation: sr-ring 1.3s cubic-bezier(.1,.7,.3,1) .5s both; }
.showcase-reveal.in .sr-ring.r2 { animation-delay: .68s; }
.showcase-reveal.in .sr-ring.r3 { animation-delay: .86s; }
@keyframes sr-ring { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(4); border-width: 1px; } }

/* the card: rises spinning from the grid, lands big in the centre */
.sr-stage { position: relative; z-index: 2; perspective: 1400px; margin-top: -40px; }
.sr-card { position: relative; width: min(34vh, 320px); aspect-ratio: 400 / 556; border-radius: 16px; transform: translateY(40vh) rotateY(540deg) scale(.3); opacity: 0; transform-style: preserve-3d;
  box-shadow: 0 0 0 3px var(--t), 0 0 60px var(--t), 0 0 140px color-mix(in srgb, var(--t) 60%, transparent), 0 40px 80px rgba(0,0,0,.7); }
.sr-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.showcase-reveal.in .sr-card { animation: sr-land 1s cubic-bezier(.2,1.1,.3,1) .1s forwards, sr-float 4s ease-in-out 1.2s infinite; }
@keyframes sr-land { 0% { opacity: 0; transform: translateY(40vh) rotateY(540deg) scale(.3); } 60% { opacity: 1; transform: translateY(-14px) rotateY(-12deg) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes sr-float { 50% { transform: translateY(-10px) rotateY(6deg); } }
.sr-shine { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, color-mix(in srgb, var(--t) 60%, #fff) 52%, transparent 65%); background-size: 260% 100%; animation: sr-sheen 2.4s ease-in-out 1s infinite; }
@keyframes sr-sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }

/* the rarity title */
.sr-title { position: relative; z-index: 3; text-align: center; margin-top: 18px; opacity: 0; transform: translateY(20px) scale(.9); }
.showcase-reveal.in .sr-title { animation: sr-title .7s cubic-bezier(.2,1.3,.4,1) .75s forwards; }
@keyframes sr-title { to { opacity: 1; transform: none; } }
.sr-title small { display: block; font-size: .8rem; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: color-mix(in srgb, var(--t) 45%, #fff); }
.sr-title b { display: block; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--t) 40%, #fff) 35%, var(--t) 55%, color-mix(in srgb, var(--t) 50%, #000) 85%, color-mix(in srgb, var(--t) 50%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--t) 60%, transparent)); }
.sr-title span { display: block; margin-top: 4px; font-size: 1.05rem; font-weight: 700; color: #fff; }
.sr-mythic .sr-title b { background: linear-gradient(90deg, #ff9ad5, #f9e7a1, #9be3ff, #c9a6ff, #ff9ad5); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: mythic-shift 3s linear infinite; }
@keyframes mythic-shift { to { background-position: 300% 0; } }
.sr-tap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55); opacity: 0; }
.showcase-reveal.in .sr-tap { animation: sr-title .5s ease 1.6s forwards; }
.showcase-reveal.out { animation: sr-out .38s ease forwards; }
@keyframes sr-out { to { opacity: 0; transform: scale(1.04); } }
.sr-epic .sr-card { width: min(30vh, 280px); }
@media (prefers-reduced-motion: reduce) { .showcase-reveal *, .flip-card.hint-rare, .flip-card.hint-rare::before, .flip-card.hint-rare .flip-back { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* ---- vault v2: no title, a big booster, cleaner details ---- */
.vault .v-head { display: none; }
body.shop-page .vault .pack-stage { height: min(calc(100vh - 200px), 760px) !important; }
body.shop-page .vault .pack { width: min(430px, calc((100vh - 270px) * .72)) !important; }
body.shop-page .vault .pack-glow { width: min(760px, 90vw) !important; height: min(760px, 90vw) !important;
  background: radial-gradient(circle, rgba(255,226,150,.35), rgba(217,179,90,.15) 30%, rgba(111,76,177,.3) 50%, transparent 70%) !important; }
/* golden altar under the pack */
body.shop-page .vault .pedestal-disc { bottom: 18px; width: min(520px, 80%); height: 90px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,240,190,.55), rgba(217,179,90,.25) 35%, rgba(111,76,177,.2) 60%, transparent 72%) !important; filter: blur(1px); }
body.shop-page .vault .pedestal-disc::after { inset: 18px 40px; border: 2px solid rgba(249,231,161,.7); box-shadow: 0 0 30px rgba(217,179,90,.6), inset 0 0 24px rgba(217,179,90,.35); animation: altar-pulse 3s ease-in-out infinite; }
@keyframes altar-pulse { 50% { box-shadow: 0 0 50px rgba(249,231,161,.85), inset 0 0 30px rgba(249,231,161,.5); } }
/* the pack floats and catches the light; a ring invites the click */
body.shop-page .vault .pack-tilt { animation: pack-hover 5s ease-in-out infinite; }
@keyframes pack-hover { 50% { translate: 0 -14px; } }
body.shop-page .vault .pack { filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)) drop-shadow(0 0 40px rgba(217,179,90,.35)); transition: filter .3s, transform .3s; }
body.shop-page .vault .pack:hover { filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)) drop-shadow(0 0 70px rgba(249,231,161,.65)); }
body.shop-page .vault .stage-hint { margin: 0 0 14px; }
.v-actions .btn { min-width: 300px; }
/* balance on one line */
.v-box .cro-balance { display: flex; align-items: baseline; gap: 6px; font-family: inherit; font-weight: 900; }
.v-box .cro-balance small { font-size: .8rem; letter-spacing: .1em; }
@media (max-height: 820px) { .vs-note, .v-gas { display: none; } }
.showcase-reveal { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.sr-stage { margin-top: 0; }
.sr-card { width: min(46vh, 400px); }
.sr-epic .sr-card { width: min(40vh, 340px); }
.sr-title { margin-top: 22px; }
.sr-rays, .sr-ring { top: 42%; }
.lobby-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; }

/* pack opening: room to breathe between the cards, the result and the actions */
.opening-inner { width: min(1180px, 94vw, calc((100vh - 320px) / 2 * (400 / 556) * 5 + 4 * var(--gap))) !important; }
.reveal-grid { row-gap: 3rem !important; margin-bottom: 2.6rem !important; }
.opening .rarity-label { margin-top: 10px; }
.pack-summary { display: inline-flex; align-items: center; gap: .5rem; margin: 0 auto !important; padding: .5rem 1.2rem; border-radius: 999px; font-size: .9rem !important;
  background: rgba(255,255,255,.04); border: 1px solid rgba(217,179,90,.3); color: #cfcbe0 !important; min-height: 0 !important; }
.pack-summary:empty { display: none; }
.opening-actions { margin-top: 1.4rem !important; gap: 14px !important; }
.opening-actions .btn { min-width: 170px; padding: .7rem 1.4rem !important; border-radius: 999px !important; }
.opening-actions #openAnother { order: -1; }
.opening-inner { display: flex; flex-direction: column; align-items: center; }
.opening-inner .reveal-grid { width: 100%; }
.opening-inner .pack-summary { order: 1; }
.opening-inner .opening-actions { order: 2; }
.opening .rarity-label { margin-top: 0; bottom: -30px; }
.reveal-grid { row-gap: 3.6rem !important; margin-bottom: 4.4rem !important; }
.opening-inner { width: min(1180px, 94vw, calc((100vh - 360px) / 2 * (400 / 556) * 5 + 4 * var(--gap))) !important; }
/* fix: no filter / shake on the 3D flip cards (Chrome drops the face when a filter or a transform animation hits a preserve-3d card) */
.flip-card.hint-rare::before { display: none !important; }
.flip-card.hint-rare:hover { animation: none !important; }
.flip-card.hint-rare .flip-back { animation: hint-glow 1.4s ease-in-out infinite !important; filter: none !important; }
@keyframes hint-glow { 0%, 100% { box-shadow: 0 0 0 2px var(--t), 0 0 22px var(--t), 0 0 50px color-mix(in srgb, var(--t) 40%, transparent); }
  50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--t) 50%, #fff), 0 0 36px var(--t), 0 0 90px color-mix(in srgb, var(--t) 60%, transparent); } }
.flip-card.hint-rare:not(.flipped):hover .flip-back { box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 50%, #fff), 0 0 50px var(--t), 0 0 110px var(--t) !important; animation: none !important; }
.flip-card.rare-glow .flip-front { animation: none !important; box-shadow: 0 0 0 2px var(--t), 0 0 36px color-mix(in srgb, var(--t) 70%, transparent) !important; }
/* pack opening: bigger cards again, while keeping the result and buttons on screen */
.opening-inner { width: min(1300px, 94vw, calc((100vh - 270px) / 2 * (400 / 556) * 5 + 4 * var(--gap))) !important; padding: 1rem 0 !important; }
.reveal-grid { row-gap: 3rem !important; margin-bottom: 3.4rem !important; }
.opening-actions { margin-top: 1rem !important; }

/* pack opening: one clean action row */
.opening-actions { width: max-content; max-width: 94vw; flex-wrap: nowrap !important; align-items: center; gap: 10px !important; padding: 8px; border-radius: 999px;
  background: rgba(10,12,32,.7); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.opening-actions .btn { min-width: 0 !important; padding: .6rem 1.15rem !important; font-size: .9rem !important; white-space: nowrap; }
.opening-actions #openAnother { padding: .7rem 1.6rem !important; font-size: 1rem !important; color: #1d1405 !important;
  background: linear-gradient(180deg, #fff4c2 0%, #f3dc8f 30%, #e9bf55 58%, #b08a33 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 4px rgba(90,60,10,.35), 0 0 0 1px rgba(249,231,161,.65), 0 8px 24px rgba(217,179,90,.45) !important; }
.opening-actions #goCollection, .opening-actions #goDecks { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.14) !important; color: #e0dcef !important; }
.opening-actions #goCollection:hover, .opening-actions #goDecks:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.opening-actions #closeOpening { order: 9; background: transparent !important; border: 0 !important; color: #a9a4c4 !important; box-shadow: none !important; }
.opening-actions #closeOpening:hover { color: #fff !important; }
.opening-actions #revealAll { padding: .7rem 1.8rem !important; }
.opening-actions:has(> :not([hidden]):only-child) { background: none; border: 0; box-shadow: none; }
.pack-summary { margin-bottom: 0 !important; }
@media (max-width: 767px) { .opening-actions { flex-wrap: wrap !important; border-radius: 22px; justify-content: center; } }
/* shop buy button: richer, warmer gold with a living glow */
.vault .v-buy, .opening-actions #openAnother {
  background: linear-gradient(180deg, #fff1b8 0%, #ffd766 28%, #f2b52e 55%, #c9861a 85%, #e8a93a 100%) !important; color: #2a1800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(120,60,0,.4), 0 0 0 1px #ffe9a0, 0 10px 30px rgba(242,181,46,.55), 0 0 50px rgba(242,181,46,.35) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.4); animation: buy-glow 2.4s ease-in-out infinite; }
.vault .v-buy:hover, .opening-actions #openAnother:hover { filter: brightness(1.08) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px #fff4c2, 0 14px 40px rgba(242,181,46,.7), 0 0 80px rgba(242,181,46,.55) !important; }
@keyframes buy-glow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(120,60,0,.4), 0 0 0 1px #fff4c2, 0 12px 36px rgba(242,181,46,.7), 0 0 80px rgba(242,181,46,.5); } }
@media (prefers-reduced-motion: reduce) { .vault .v-buy, .opening-actions #openAnother { animation: none; } }

/* end-of-pack recap, animated in the centre */
.pack-recap { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; cursor: pointer; background: rgba(4,5,16,0); transition: background .35s; }
.pack-recap.in { background: rgba(4,5,16,.55); backdrop-filter: blur(3px); }
.pr-box { position: relative; text-align: center; padding: 30px 44px 26px; border-radius: 26px; transform: scale(.6) translateY(30px); opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--t) 28%, transparent), transparent 70%), linear-gradient(180deg, #161a48, #0a0c24);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--t) 60%, #fff4c2), 0 40px 90px rgba(0,0,0,.7), 0 0 80px color-mix(in srgb, var(--t) 35%, transparent);
  transition: transform .55s cubic-bezier(.2,1.3,.4,1), opacity .3s; }
.pack-recap.in .pr-box { transform: none; opacity: 1; }
.pack-recap.out { background: rgba(4,5,16,0); backdrop-filter: none; }
.pack-recap.out .pr-box { transform: scale(.85) translateY(40px); opacity: 0; transition: transform .35s ease-in, opacity .3s; }
.pr-kicker { font-size: .78rem; font-weight: 900; letter-spacing: .4em; text-transform: uppercase; color: #e9cf8a; margin-bottom: 16px; }
.pr-stats { display: flex; gap: 34px; justify-content: center; }
.pr-stat { display: flex; flex-direction: column; align-items: center; min-width: 110px; opacity: 0; transform: translateY(16px); }
.pack-recap.in .pr-stat { animation: pr-in .5s cubic-bezier(.2,1.3,.4,1) forwards; }
.pack-recap.in .pr-stat:nth-child(1) { animation-delay: .25s; } .pack-recap.in .pr-stat:nth-child(2) { animation-delay: .4s; } .pack-recap.in .pr-stat:nth-child(3) { animation-delay: .55s; }
@keyframes pr-in { to { opacity: 1; transform: none; } }
.pr-stat b { font-size: 3.4rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff 20%, #f3dc8f 60%, #c99a3b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-stat.pr-best b { font-size: 2.6rem; padding-top: .5rem; background: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--t) 50%, #fff) 45%, var(--t) 70%, color-mix(in srgb, var(--t) 55%, #000)); -webkit-background-clip: text; background-clip: text; text-transform: uppercase; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--t) 50%, transparent)); }
.pr-stat span { margin-top: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a9a4c4; }
.pr-foot { margin-top: 20px; font-size: .85rem; color: #cfcbe0; }
.pack-summary { display: none !important; }
/* shop background a bit darker */
.shop-screen.vault { background: radial-gradient(ellipse 70% 60% at 50% 45%, #1f1650 0%, #0d0b2a 45%, #040512 80%, #020208 100%) !important; }
.vb-glow { opacity: .75; }
.vb-rays { opacity: .7; }
.vb-cards i { opacity: .09; }
.shop-screen.vault::after { background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 45%, rgba(1,2,8,.88) 100%) !important; }

/* ==========================================================
   BOOSTER — studio lighting on the original artwork (no retouching)
   ========================================================== */
body.shop-page .vault .pack-full {
  filter: saturate(1.16) contrast(1.07) brightness(1.05)
          drop-shadow(0 0 1px rgba(255,244,214,.9)) drop-shadow(0 0 18px rgba(155,123,224,.45))
          drop-shadow(0 30px 28px rgba(0,0,0,.6)) drop-shadow(0 60px 60px rgba(0,0,0,.45)) !important; }
/* specular light that follows the pointer, clipped to the pouch shape */
body.shop-page .vault .pack::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light; opacity: .9;
  -webkit-mask: url("../img/booster-arcana.webp") center / 100% 100% no-repeat; mask: url("../img/booster-arcana.webp") center / 100% 100% no-repeat;
  background: radial-gradient(circle at var(--lx, 35%) var(--ly, 20%), rgba(255,255,255,.85) 0%, rgba(255,255,255,.25) 22%, transparent 48%),
              linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%, transparent 75%, rgba(0,0,0,.25)); transition: background .2s; }
body.shop-page .vault .pack.charging::after, body.shop-page .vault .pack.torn::after { opacity: 0; }
/* soft holographic sweep, clipped to the pouch */
body.shop-page .vault .pack-sheen { mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 47%, rgba(249,231,161,.35) 50%, rgba(160,200,255,.3) 53%, transparent 60%) !important; background-size: 320% 100% !important; }
/* reflection on the altar */
body.shop-page .vault .pack-tilt::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -8%; height: 16%; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,231,161,.35), rgba(155,123,224,.15) 45%, transparent 70%); filter: blur(10px); }
/* buy button: always on top, fully lit, a little higher on the screen */
.vault .v-actions, .vault .stage-hint { position: relative; z-index: 20; }
.vault .v-actions { margin-bottom: 2.4vh; }
body.shop-page .vault .pack-stage { height: min(calc(100vh - 230px), 760px) !important; }
.vault .v-buy, .opening-actions #openAnother {
  background: linear-gradient(180deg, #fff6cc 0%, #ffe07a 30%, #ffc93f 60%, #f0b02e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px #fff0b0, 0 10px 30px rgba(255,201,63,.55), 0 0 60px rgba(255,201,63,.4) !important; }
@keyframes buy-glow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px #fff7d6, 0 12px 38px rgba(255,201,63,.75), 0 0 90px rgba(255,201,63,.55); } }
/* the booster must always catch the click: no image drag, no text selection, one solid hit zone */
.pack, .pack * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.pack > * { pointer-events: none; }
.pack { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pack:active { transform: scale(.98); }
/* shop: much darker around the booster */
.shop-screen.vault { background: radial-gradient(ellipse 60% 55% at 50% 45%, #140f38 0%, #090a22 45%, #030410 80%, #010106 100%) !important; }
.vb-glow { opacity: .35 !important; }
.vb-rays { opacity: .3 !important; }
body.shop-page .vault .pack-glow { opacity: .4 !important; }
body.shop-page .vault .stage-rays { opacity: .35 !important; }
body.shop-page .vault .stage-beam { opacity: .35 !important; }
.vb-cards i { opacity: .06 !important; }

/* ==========================================================
   CHECKOUT MODAL — premium order summary
   ========================================================== */
.tx-modal { background: rgba(2,3,10,.78) !important; backdrop-filter: blur(8px) !important; }
.tx-box { position: relative; width: 400px !important; padding: 1.4rem 1.6rem 1.5rem !important; border: 0 !important; border-radius: 24px !important;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(217,179,90,.16), transparent 70%), linear-gradient(180deg, #151946, #090b22) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 60px rgba(111,76,177,.25) !important; animation: tx-rise .35s cubic-bezier(.2,1.2,.4,1) !important; }
.tx-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, #fff4c2, #a8812e 35%, #3d2a08 60%, #e9bf55);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes tx-rise { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.tx-head { border-bottom: 1px solid rgba(255,255,255,.07) !important; color: #a9a4c4 !important; font-weight: 700; }
.tx-head i { color: #e9bf55; }
.txc-order { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.txc-order img { width: 62px; transform: rotate(-8deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(155,123,224,.4)); }
.txc-kicker { font-size: .66rem; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; color: #e9cf8a; }
.txc-item { font-size: 1.15rem; font-weight: 900; color: #fff; }
.txc-item span { color: #a9a4c4; font-weight: 700; font-size: .95rem; }
.txc-sub { font-size: .78rem; color: #a9a4c4; }
.txc-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 18px 0 8px; }
.txc-price b { font-size: 3.4rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff9df, #ffe07a 40%, #f2b52e 70%, #c9861a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.txc-price span { font-weight: 900; color: #e9cf8a; letter-spacing: .1em; }
.tx-box .tx-lines > div { border-bottom-color: rgba(255,255,255,.06) !important; color: #a9a4c4 !important; }
.tx-box .tx-lines > div.fw-bold { color: #fff !important; }
.txc-from { margin-top: 12px; font-size: .72rem; color: #8f8aa8; text-align: center; }
.txc-from i { color: #e9bf55; }
.txc-from code { color: #cbb8ff; font-size: .72rem; }
.txc-skip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .8rem; color: #cfcbe0; cursor: pointer; }
.txc-skip input { accent-color: #e9bf55; width: 16px; height: 16px; }
.txc-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 16px; }
.txc-actions .btn { padding: .75rem 1rem !important; }
#txConfirm { font-size: 1rem !important; background: linear-gradient(180deg, #fff6cc 0%, #ffe07a 30%, #ffc93f 60%, #f0b02e 100%) !important; color: #2a1800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px #fff0b0, 0 10px 26px rgba(255,201,63,.5) !important; }
/* steady cursor: the fixed stage is the hit zone, the moving pack ignores the pointer */
body.shop-page .vault .pack-stage { cursor: pointer; }
body.shop-page .vault .pack-stage * { pointer-events: none; }
body.shop-page .vault .pack-tilt { transition: transform .35s ease-out; }
body.shop-page .vault .pack-stage { cursor: default; }
body.shop-page .vault .pack-stage.over-pack { cursor: pointer; }
body.shop-page .vault .pack-stage.over-pack .pack-full { filter: saturate(1.2) contrast(1.08) brightness(1.1) drop-shadow(0 0 2px rgba(255,244,214,1)) drop-shadow(0 0 30px rgba(249,231,161,.55)) drop-shadow(0 30px 28px rgba(0,0,0,.6)) !important; }

/* new booster artwork (1024x1536, 2:3) */
.pack { aspect-ratio: 2 / 3 !important; }
body.shop-page .vault .pack { width: min(400px, calc((100vh - 280px) * .66)) !important; }
body.shop-page .vault .pack-full { filter: drop-shadow(0 0 1px rgba(255,244,214,.6)) drop-shadow(0 0 22px rgba(155,123,224,.45)) drop-shadow(0 30px 28px rgba(0,0,0,.6)) drop-shadow(0 60px 60px rgba(0,0,0,.45)) !important; }
body.shop-page .vault .pack-stage.over-pack .pack-full { filter: brightness(1.08) drop-shadow(0 0 2px rgba(255,244,214,.9)) drop-shadow(0 0 34px rgba(249,231,161,.55)) drop-shadow(0 30px 28px rgba(0,0,0,.6)) !important; }
.pack-top { background-size: 100% 1250% !important; height: 8% !important; }
.pack-body { top: 8% !important; background-size: 100% 108.7% !important; }
/* booster artwork cropped to the pouch and widened (941x1486) */
.pack { aspect-ratio: 941 / 1486 !important; }
body.shop-page .vault .pack { width: min(420px, calc((100vh - 270px) * .633)) !important; }
/* booster artwork v2: wider pouch, no stretch (928x1422) */
.pack { aspect-ratio: 928 / 1422 !important; }
body.shop-page .vault .pack { width: min(440px, calc((100vh - 270px) * .653)) !important; }

/* booster bigger (shop logo removed: more vertical room) */
body.shop-page .vault .pack-stage { height: min(calc(100vh - 170px), 900px) !important; }
body.shop-page .vault .pack { width: min(540px, calc((100vh - 215px) * .653)) !important; }
/* fit in one screen, sit higher */
body.shop-page .vault .pack-stage { height: min(calc(100vh - 225px), 860px) !important; }
body.shop-page .vault .pack { width: min(540px, calc((100vh - 245px) * .653)) !important; }

/* card corners: the card art is rounded at 25px on 400 x 556 (6.25% / 4.5%); every frame, ring and glow follows it */
.tcg-card, .tcg-card > img, .tcg-card .tcg-shine, .hero-back, .spot-face, .spot-face img, .display-case { border-radius: 6.25% / 4.5% !important; }

/* 1st Edition limited supply: shop odds, edition meter, card page */
.vo-name small { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: #8f89ad; }
.edition-meter { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(217,179,90,.06); border: 1px solid rgba(217,179,90,.28); }
.em-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; font-weight: 800; color: #e9dcb0; letter-spacing: .02em; }
.em-head b { font-size: 1rem; color: #f9e7a1; }
.em-bar, .sb-bar { height: 7px; margin: 8px 0 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.em-bar span, .sb-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6420, #f9e7a1 60%, #fff4c2); box-shadow: 0 0 10px rgba(249,231,161,.6); }
.edition-meter small { font-size: .68rem; color: #a9a4c4; }
.supply-box { padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(217,179,90,.08), rgba(111,76,177,.08)); border: 1px solid rgba(217,179,90,.3); }
.sb-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; color: #e9dcb0; }
.sb-head b { color: #f9e7a1; }
.sb-left { color: #fff; white-space: nowrap; }
.sb-foot { font-size: .78rem; color: #a9a4c4; }
.supply-box.sold-out { border-color: rgba(255,79,107,.5); }
.supply-box.sold-out .sb-left { color: #ff6b81; letter-spacing: .1em; }
@media (max-height: 820px) { .edition-meter small { display: none; } .edition-meter { margin-top: 10px; padding: 9px 12px; } }

/* home counters: dark glass tiles, gold engraved numbers (gold stays an accent, not a slab) */
#counters .counter-box { background: linear-gradient(180deg, rgba(28,24,62,.85), rgba(12,12,34,.92)) !important; border: 1px solid rgba(217,179,90,.32) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06) !important; padding: 22px 16px 20px !important; border-radius: 18px !important; }
#counters .counter-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 1 !important;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(217,179,90,.16), transparent 70%) !important; }
#counters .counter-box::after { inset: 6px !important; border: 1px solid rgba(217,179,90,.12) !important; border-radius: 13px !important; }
#counters .cb-ico { position: relative; z-index: 1; display: block; font-size: 1.15rem; color: #e9c46a; margin-bottom: 4px; opacity: .9; }
#counters .counter-row { display: flex; align-items: baseline; justify-content: center; gap: 6px; position: relative; z-index: 1; }
#counters .counter-box .counter { position: relative; z-index: 1; color: transparent !important; -webkit-text-fill-color: transparent; text-shadow: none !important;
  background: linear-gradient(180deg, #fff6d2 0%, #f3d27a 38%, #c9952e 62%, #f7e3a2 100%) !important; -webkit-background-clip: text !important; background-clip: text !important;
  filter: drop-shadow(0 2px 10px rgba(217,179,90,.25)); animation: none !important; }
#counters .cb-of { font-size: 1.05rem; font-weight: 700; color: #8f87b5; }
#counters .counter-box p { color: #b9b3d6 !important; letter-spacing: .16em !important; font-size: .74rem !important; margin-top: 2px !important; }
#counters .counter-box:hover { transform: translateY(-4px); border-color: rgba(217,179,90,.6) !important; box-shadow: 0 22px 46px rgba(0,0,0,.5), 0 0 30px rgba(217,179,90,.18) !important; }
.rl-supply { margin-top: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #9b95bd; }

/* "x2" owned badge: sits on the artwork's top-right corner instead of covering the TOKEN / EVENT label */
.tcg-card .owned-badge { top: 12.5% !important; right: 8% !important; padding: .1rem .55rem !important; font-size: .7rem !important; font-weight: 800 !important;
  color: #fff4c2 !important; background: rgba(8,8,24,.82) !important; border: 1px solid rgba(217,179,90,.55) !important; box-shadow: 0 4px 12px rgba(0,0,0,.5);
  backdrop-filter: blur(3px); letter-spacing: .02em; }

/* roadmap: finished steps read cleanly (no strike-through), in-progress steps stand out */
.timeline .list-group-item[data-status="finalized"] { text-decoration: none !important; color: #cfc9e6 !important; opacity: 1 !important; }
.timeline .list-group-item[data-status="ongoing"] { color: #fff !important; font-weight: 700; }
.timeline .list-group-item[data-status="pending"] { color: #8f89ad !important; }

/* account menu: tidy spacing, gold active item */
.arcana-nav .dropdown-menu { padding: 6px; border-radius: 14px; min-width: 210px; background: rgba(12,12,32,.97); border: 1px solid rgba(217,179,90,.25); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.arcana-nav .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-weight: 600; }
.arcana-nav .dropdown-item i { width: 18px; text-align: center; color: #e9c46a; }
.arcana-nav .dropdown-item.active, .arcana-nav .dropdown-item:hover { background: rgba(217,179,90,.12); color: #fff; }
.arcana-nav .dropdown-divider { margin: 4px 6px; border-color: rgba(255,255,255,.08); }

/* ===== sealed cards: rarity + faction plaque at the bottom of the card back ===== */
.tcg-card.mystery { container-type: inline-size; }
.mystery-seal { position: absolute; left: 50%; bottom: 7.5%; transform: translateX(-50%); z-index: 3; width: 74%; display: flex; align-items: center; gap: 6cqw;
  padding: 2.6cqw 4cqw 2.6cqw 2.6cqw; border-radius: 99px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,10,38,.92), rgba(6,6,20,.95)); border: 1px solid color-mix(in srgb, var(--mc, #c9cbe0) 55%, transparent);
  box-shadow: 0 4cqw 8cqw rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08), 0 0 6cqw color-mix(in srgb, var(--mc, #c9cbe0) 22%, transparent); }
.mystery-seal > i { flex: none; width: 13cqw; height: 13cqw; display: grid; place-items: center; border-radius: 50%; font-size: 7cqw; color: var(--fc);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fc) 35%, #1a1440), #0b0a1f 75%); border: 1px solid color-mix(in srgb, var(--fc) 60%, transparent);
  box-shadow: 0 0 5cqw color-mix(in srgb, var(--fc) 45%, transparent); }
.mystery-seal > span { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.mystery-seal b { font-size: 7.4cqw; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--mg, linear-gradient(180deg, #ffffff, #c9cfdb 50%, #8b93a6 75%, #e6eaf2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mystery-seal em { font-style: normal; font-size: 5.4cqw; font-weight: 700; letter-spacing: .06em; color: color-mix(in srgb, var(--fc) 70%, #fff); white-space: nowrap; }
/* rarity metals (same as the card frames) */
.mystery-seal.r-common    { --mc: #d9dce6; --mg: linear-gradient(180deg, #ffffff, #dfe2ea 55%, #a9afbf); }
.mystery-seal.r-rare      { --mc: #b9c0cd; --mg: linear-gradient(180deg, #ffffff, #c9cfdb 45%, #8b93a6 75%, #e6eaf2); }
.mystery-seal.r-epic      { --mc: #e6ebf4; --mg: linear-gradient(180deg, #ffffff, #e9edf5 22%, #a9b1c2 50%, #f4f6fb 60%, #8b93a6); }
.mystery-seal.r-legendary { --mc: #e9bf55; --mg: linear-gradient(180deg, #fff8d6, #f9e08a 25%, #d9a63a 55%, #fff1b8 65%, #b07a1c); }
.mystery-seal.r-mythic    { --mc: #ff9ad5; --mg: linear-gradient(100deg, #ff9ad5, #ffe08a, #9dffc9, #8fd8ff, #c9a6ff); }
/* decorative contexts keep a clean back */
.cine-stage .mystery-seal, .mt-slot .mystery-seal, .rs-card .mystery-seal, .hero-flip .mystery-seal { display: none; }

/* ===== personal space (My collection, My decks): own bar like the arena, no site menu / footer ===== */
body.personal-page .arcana-nav, body.personal-page .arcana-footer { display: none !important; }
body.personal-page .arcana-main { padding-top: 0 !important; min-height: 100vh; }
.personal-bar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 28px;
  background: linear-gradient(180deg, rgba(8,8,24,.94), rgba(8,8,24,.78)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(217,179,90,.16); }
.personal-bar > .lobby-exit { justify-self: start; }
.personal-bar .pb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; }
.personal-bar .pb-logo img { height: 36px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.personal-bar .pb-tabs { grid-column: 2; display: none; }
.personal-bar .pb-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
/* tabs live on the right next to the actions on wide screens, under the logo otherwise */
.personal-bar .pb-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  grid-column: 3; justify-self: end; margin-right: 210px; }
.pb-tab { display: inline-flex; align-items: center; gap: 7px; padding: .4rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #b9b3d6; text-decoration: none; white-space: nowrap; }
.pb-tab:hover { color: #fff; }
.pb-tab.active { color: #1a1206; background: linear-gradient(180deg, #fff1b8, #e9bf55 55%, #c08d2c); box-shadow: 0 4px 14px rgba(217,179,90,.35); }
.personal-bar .pb-play { color: #1a1206 !important; border-color: transparent !important; background: linear-gradient(180deg, #fff1b8, #e9bf55 55%, #c08d2c) !important; }
.personal-bar .pb-packs { border-color: rgba(155,123,224,.5) !important; }
.personal-bar .pb-actions { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
body.personal-page .page-hero { padding-top: 84px !important; }
body.personal-page .personal-wrap { padding-top: 40px; }
@media (max-width: 1100px) { .personal-bar .pb-tabs { margin-right: 0; grid-column: 2; justify-self: center; margin-top: 52px; } .personal-bar { padding-bottom: 12px; } }

/* sealed cards are clickable: they lead to the shop */
a.tcg-card.mystery { cursor: pointer; transition: transform .3s cubic-bezier(.2,.9,.3,1), box-shadow .3s, filter .3s; }
a.tcg-card.mystery:hover { transform: translateY(-6px); filter: brightness(1.12); box-shadow: 0 18px 36px rgba(0,0,0,.6), 0 0 0 2px rgba(249,231,161,.75), 0 0 34px rgba(217,179,90,.4) !important; }
.mystery-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); z-index: 4; display: inline-flex; align-items: center; gap: 2.4cqw;
  padding: 3cqw 5.5cqw; border-radius: 99px; white-space: nowrap; font-size: 6cqw; font-weight: 800; color: #1a1206; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, #fff1b8, #e9bf55 55%, #c08d2c); box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 18px rgba(217,179,90,.45); transition: opacity .25s, transform .25s; }
a.tcg-card.mystery:hover .mystery-cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cine-stage .mystery-cta, .mt-slot .mystery-cta, .rs-card .mystery-cta, .hero-flip .mystery-cta { display: none; }

/* personal pages: compact app-like header (title + actions on one line), ambient light */
body.personal-page { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111,76,177,.28), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,179,90,.07), transparent 70%), var(--color-dark, #090a1f); background-attachment: fixed; }
.ph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 6px 0 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(217,179,90,.14); }
.ph-title .eyebrow { margin-bottom: 4px; }
.ph-title h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 900; line-height: 1.05; display: flex; align-items: center; gap: 14px; }
.ph-title h1 small { font-size: .95rem; font-weight: 800; color: #1a1206; padding: 3px 12px; border-radius: 99px; background: linear-gradient(180deg, #fff1b8, #e9bf55 55%, #c08d2c); }
.ph-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ph-rules span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: #c9c3e3;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ph-rules i { color: #e9c46a; }
.ph-actions { display: flex; gap: 10px; }
.ph-actions .btn { padding: .65rem 1.3rem; border-radius: 999px; font-weight: 800; }
body.personal-page .deck-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
body.personal-page .deck-fan { height: 175px; }
body.personal-page .deck-fan img { width: 108px; }
body.personal-page .deck-new { min-height: 380px; }

/* personal pages share the shop vault backdrop (fixed behind the content) */
body.personal-page { background: radial-gradient(ellipse 60% 55% at 50% 45%, #140f38 0%, #090a22 45%, #030410 80%, #010106 100%) fixed !important; }
body.personal-page #starfield { display: none; }
.vault-bg.personal-bg { position: fixed !important; inset: 0; z-index: -1; }
.personal-bg .vb-glow { opacity: .35 !important; }
.personal-bg .vb-rays { opacity: .22 !important; }

/* account menu in the space bars (arena, shop, collection, decks) */
.lobby-account .dropdown-toggle { cursor: pointer; }
.lobby-account .dropdown-toggle::after { margin-left: 4px; }
.lobby-account .dropdown-menu { padding: 6px; border-radius: 14px; min-width: 220px; margin-top: 8px !important; background: rgba(12,12,32,.97); border: 1px solid rgba(217,179,90,.25); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.lobby-account .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: #ddd8f0; }
.lobby-account .dropdown-item i { width: 18px; text-align: center; color: #e9c46a; }
.lobby-account .dropdown-item.active, .lobby-account .dropdown-item:hover { background: rgba(217,179,90,.12); color: #fff; }
.lobby-account .dropdown-divider { margin: 4px 6px; border-color: rgba(255,255,255,.08); }
.personal-bar .lobby-account { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
.lobby-bar { z-index: 30 !important; }

/* arena lobby: the shop vault backdrop instead of the colosseum */
body.arena-page .lobby { background: radial-gradient(ellipse 60% 55% at 50% 45%, #140f38 0%, #090a22 45%, #030410 80%, #010106 100%) !important; }
body.arena-page .lobby::before, body.arena-page .arena-scene { display: none !important; }
.lobby-vault { position: absolute; inset: 0; z-index: -1; }
.lobby-vault .vb-glow { opacity: .35 !important; }
.lobby-vault .vb-rays { opacity: .3 !important; }

/* space bars: Packs + Play + account menu on the right, like the site header */
.lobby-right { display: flex; align-items: center; gap: 10px; }
.personal-bar .lobby-right { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
.personal-bar .lobby-right .lobby-account { position: static; transform: none; }
.lobby-right .lobby-account .dropdown-toggle { padding: .55rem 1.1rem; border-radius: 12px; }

/* personal bar = exactly the arena bar: transparent, same spacing, same logo size, scrolls with the page */
.personal-bar { position: relative !important; display: flex !important; justify-content: space-between; align-items: center; min-height: 0;
  padding: 18px 28px !important; background: none !important; backdrop-filter: none !important; border-bottom: 0 !important; z-index: 30; }
.personal-bar .pb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.personal-bar .pb-logo img { height: 42px !important; }
.personal-bar .lobby-right { position: static !important; transform: none !important; }
body.personal-page .personal-wrap { padding-top: 26px !important; }

/* home hero card a little smaller */
.cine-stage.solo .fan-card { width: 305px !important; margin: -212px 0 0 -152px !important; }
.cine-stage.solo .floor-glow { margin-top: 235px !important; width: 370px !important; margin-left: -185px !important; }
@media (max-width: 1399px) { .cine-stage.solo .fan-card { width: 280px !important; margin: -195px 0 0 -140px !important; } }
/* hero card raised a little: card, rays, glow and reveal effects move together */
.cine-stage.solo .fan-card, .cine-stage.solo::before, .cine-stage.solo > .hr-flash, .cine-stage.solo > .hr-shock, .cine-stage.solo > .hr-burst, .cine-stage.solo .solo-rays { top: 43% !important; }
.cine-stage.solo .floor-glow { margin-top: 190px !important; }

/* shop: while the player still has free packs, "Open a free pack" is the main action (gold, first), buying is secondary */
.vault .v-actions:has(.v-free:not(:disabled)) { flex-wrap: nowrap; }
.vault .v-actions:has(.v-free:not(:disabled)) .btn { min-width: 0; padding-left: 1.6rem; padding-right: 1.6rem; white-space: nowrap; }
.vault .v-actions .v-free:not(:disabled) { order: -1; color: #2a1800 !important; border: 0;
  background: linear-gradient(180deg, #fff1b8 0%, #ffd766 28%, #f2b52e 55%, #c9861a 85%, #e8a93a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(120,60,0,.4), 0 0 0 1px #ffe9a0, 0 10px 30px rgba(242,181,46,.55), 0 0 50px rgba(242,181,46,.35) !important;
  animation: buy-glow 2.4s ease-in-out infinite; }
.vault .v-actions:has(.v-free:not(:disabled)) .v-buy { animation: none; color: #f3dc8f !important; text-shadow: none;
  background: rgba(255,255,255,.05) !important; box-shadow: inset 0 0 0 1px rgba(233,191,85,.55) !important; }
@media (max-width: 575px) { .vault .v-actions:has(.v-free:not(:disabled)) { flex-wrap: wrap; } }

/* ---------- phones: compact player bar (shop, arena, collection, decks) ---------- */
@media (max-width: 575px) {
  .lobby-bar, .personal-bar { padding: 10px 12px !important; gap: 8px; }
  /* "Back" and the account button become icons */
  .lobby-bar > .lobby-exit, .personal-bar > .lobby-exit, .lobby-account > .lobby-exit { font-size: 0 !important; gap: 0; padding: .5rem .62rem; white-space: nowrap; }
  .lobby-bar > .lobby-exit i, .personal-bar > .lobby-exit i, .lobby-account > .lobby-exit i { font-size: 1.05rem; }
  .lobby-account > .lobby-exit::after { margin-left: 4px; font-size: .8rem; }
  .lobby-right { display: flex; align-items: center; gap: 6px; }
  .lobby-right .nav-packs { padding: .25rem .7rem .25rem .3rem; gap: 5px; }
  .lobby-right .nav-packs img { width: 22px; }
  .lobby-right .nav-packs b { font-size: .74rem; }
  .lobby-right .nav-packs small { font-size: .58rem; }
  .lobby-right .nav-play { padding: .45rem .9rem; font-size: .82rem; gap: 5px; }
  .lobby-right .js-connect-wallet span { display: none; }
  /* no room for the centred logo next to the buttons */
  .personal-bar .pb-logo, .lobby-bar .lobby-logo { display: none; }
  /* shop: the pack starts below the bar and fits the phone */
  body.shop-page .vault { padding-top: 64px; }
  body.shop-page .vault .pack { width: min(230px, 60vw) !important; }
}
@media (max-width: 575px) {
  /* pack opening on phones: 3 + 3 + 3 + the 10th card centred, nothing of the shop showing through */
  .reveal-grid > :last-child:nth-child(3n + 1) { grid-column: 2; }
  .opening { background: radial-gradient(ellipse at 50% 35%, rgba(60,40,110,.55), rgba(6,7,20,.97) 70%), #06071a !important; }
}
@media (max-width: 575px) {
  .pr-box { max-width: 92vw; padding: 24px 18px 20px; }
  .pr-stats { gap: 14px; }
  .pr-stat { min-width: 0; }
  .pr-stat b { font-size: 2.5rem; }
  .pr-kicker { letter-spacing: .25em; }
}
@media (max-width: 575px) {
  /* card grids (Codex, My collection, deck builder): 2 cards per row on phones */
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem .7rem !important; }
}
@media (max-width: 575px) {
  /* Codex progress: number + text on one row, the button on its own full-width row */
  .discovery-bar { flex-wrap: wrap; gap: 10px 14px; padding: 16px !important; }
  .discovery-bar .flex-fill { flex: 1 1 0; min-width: 0; }
  .discovery-bar > .btn { flex: 1 1 100%; }
}

/* ---------- phones: the duel board in portrait ---------- */
@media (max-width: 575px) {
  .arena, .arena:has(.board-v8), .board-v8 { --cw: calc((100vw - 56px - 4 * 5px) / 5); }
  .arena { grid-template-columns: 1fr !important; }
  .arena-main.board-v8 {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto 1fr auto 1fr auto auto !important;
    grid-template-areas: "opp ocp" "f1 f1" "center center" "f0 f0" "me mcp" "hand hand" !important;
    column-gap: 8px !important; row-gap: 4px !important; padding: 10px 28px calc(14px + env(safe-area-inset-bottom)) !important; height: 100dvh; }
  .board-v8 .field { gap: 5px !important; }
  .board-v8 #field1 { grid-area: f1; } .board-v8 #field0 { grid-area: f0; }
  .board-v8 .slot { margin-bottom: 16px !important; border-radius: 6px; }
  /* player plates: compact, the CP coin sits at their right */
  .board-v8 .pbar { padding: 4px 10px !important; gap: 8px !important; min-width: 0; }
  .board-v8 .pbar .avatar { width: 30px; height: 30px; }
  .board-v8 .pbar .pname { font-size: .9rem; }
  .board-v8 .pbar-id { min-width: 0 !important; }
  .board-v8 .pbar .hand-opp { flex: none; }
  .board-v8 .pbar .hand-opp .hcard { flex: 0 0 12px !important; width: 12px !important; min-width: 0 !important; height: 18px !important; margin-left: -4px !important; }
  .board-v8 .pstat { align-self: center; }
  .board-v8 .pstat .cp-coin { transform: scale(.62); margin: -14px -10px; }
  .board-v8 .pstat .cp-val b { font-size: 1.9rem !important; }
  .board-v8 .pstat .direct-tag { font-size: .6rem; }
  .board-v8 .pside { display: none !important; }
  .board-v8 .center-bar { min-height: 0 !important; padding: 0 !important; font-size: .7rem; }
  /* hand on its own row, then the hint and End turn side by side */
  .board-v8 .hand-row { flex-direction: column; gap: 6px !important; }
  .board-v8 .hand-row .hand-me { --hw: calc(var(--cw) * 1.05); width: 100%; height: calc(var(--hw) * 1.39 * .7) !important; }
  .board-v8 .hand-actions { width: 100% !important; flex-direction: row !important; align-items: center !important; padding: 0 0 8px !important; gap: 8px !important; }
  .board-v8 .hand-actions .hint { flex: 1; min-width: 0; font-size: .72rem; padding: 6px 8px !important; }
  .board-v8 .hand-actions .phase-btn { width: auto !important; flex: none; padding: .6rem 1rem !important; font-size: .8rem !important; }
  /* card detail + actions: a bottom sheet, only while a card is selected */
  .arena-side { position: fixed !important; left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; max-height: 52dvh !important;
    z-index: 60 !important; border-radius: 18px !important; overflow-y: auto; padding: 12px !important; box-shadow: 0 -10px 40px rgba(0,0,0,.6); }
  .arena-side:has(.detail-empty) { display: none !important; }
  .arena-side .inspect-card img { width: 110px; margin: 0 auto; display: block; }
  .arena-side .log, .arena-side .log-title { display: none !important; }
}
@media (max-width: 575px) {
  /* field cards: small stacked ATK / DEF badges that stay inside the slot */
  .board-v8 .tok .st { left: 0 !important; right: 0 !important; bottom: 3px !important; top: auto !important; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px !important; }
  .board-v8 .tok .st span { font-size: .56rem !important; padding: 0 .3rem !important; line-height: 1.5; }
}
@media (max-width: 575px) {
  /* compact bottom sheet: small card on the left, text on the right, the board stays visible above */
  .arena-side { max-height: 40dvh !important; padding: 10px 12px !important; }
  .arena-side .detail { overflow: visible; }
  .arena-side .inspect-card { float: left; width: 64px; margin: 0 12px 4px 0; }
  .arena-side .inspect-card img { width: 64px !important; }
  .arena-side .detail .d-name, .arena-side .detail .d-meta { text-align: left !important; }
  .arena-side .detail .d-name { font-size: 1.05rem !important; }
  .arena-side .detail .d-meta { font-size: .66rem; }
  .arena-side .detail .d-stats { justify-content: flex-start !important; }
  .arena-side .detail .d-eff { clear: both; font-size: .74rem; }
  .arena-side .actions .btn { padding: .45rem .8rem; font-size: .8rem; }
}
@media (max-width: 575px), (max-height: 700px) { .cine-scroll { display: none !important; } } /* the hero already fills the phone: the scroll cue would sit on the counters */
[data-off] { display: none !important; } /* features switched off (e.g. the Arena before its launch) */
.arena-soon { display: inline-flex; align-items: center; gap: 6px; margin: 1rem 0 0 .8rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #f3dc8f; background: rgba(217,179,90,.1); border: 1px solid rgba(217,179,90,.35); vertical-align: middle; }
/* Arena "coming soon" page */
.arena-soon-page { min-height: 100vh; display: flex; flex-direction: column; }
.arena-soon-page .as-box { position: relative; z-index: 2; margin: auto; max-width: 680px; padding: 120px 20px 60px; text-align: center; }
.arena-soon-page .as-sub { color: #cfcbe0; font-size: 1.08rem; line-height: 1.7; margin: 18px auto 30px; }
.arena-soon-page .as-sub b { color: #f3dc8f; }
.arena-soon-page .as-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.arena-soon-page .vault-bg { position: fixed !important; inset: 0 !important; height: auto !important; }
.arena-soon-page { min-height: 100vh !important; min-height: 100dvh !important; height: auto !important; }
/* wallet sign-in page */
.wallet-box .wallet-steps { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 12px; }
.wallet-box .wallet-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #cfcbe0; line-height: 1.45; }
.wallet-box .wallet-steps i { font-size: 1.2rem; color: #e9bf55; flex: none; margin-top: -1px; }
.wallet-box .wallet-steps b { color: #fff; }
@media (max-width: 767px) {
  /* sign-in on phones: a small booster above, the Connect wallet button visible without scrolling */
  .auth-split .auth-art { max-height: 190px; overflow: hidden; display: flex; justify-content: center; }
  .auth-split .auth-art img { height: 190px; width: auto; object-fit: contain; }
  .auth-split .auth-box { margin-top: 10px; }
  .auth-split .auth-box.reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== after a pack: Buy again · My decks · Close ===== */
.opening-actions { gap: 12px !important; padding: 10px 12px !important; border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(26, 20, 64, .92), rgba(10, 10, 30, .92)) padding-box,
    linear-gradient(90deg, rgba(233, 191, 85, .15), rgba(233, 191, 85, .6), rgba(233, 191, 85, .15)) border-box !important;
  border: 1px solid transparent !important; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(233, 191, 85, .12) !important; }
.opening-actions .btn { display: inline-flex !important; align-items: center; gap: .5rem; border-radius: 999px !important; font-weight: 800 !important; letter-spacing: .02em; }
.opening-actions .btn i { font-size: 1.05em; }
.opening-actions #openAnother { order: 1; padding: .8rem 1.4rem .8rem 1.6rem !important; font-size: 1.05rem !important; }
.opening-actions #openAnother .oa-price { margin-left: .2rem; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 900;
  background: rgba(42, 24, 0, .16); box-shadow: inset 0 1px 2px rgba(42, 24, 0, .25); }
.opening-actions #goDecks { order: 2; padding: .78rem 1.4rem !important; font-size: .98rem !important; color: #fff !important;
  background: linear-gradient(180deg, #b598f0 0%, #8a66d6 40%, #6f4cb1 70%, #4d3285 100%) !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(111, 76, 177, .45) !important; }
.opening-actions #goDecks:hover { filter: brightness(1.1); transform: translateY(-1px); }
.opening-actions #goDecks[data-off] { display: none !important; }
.opening-actions #closeOpening { order: 3; padding: .78rem 1.2rem !important; font-size: .95rem !important; color: #cfcbe0 !important;
  background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .14) !important; box-shadow: none !important; }
.opening-actions #closeOpening:hover { color: #fff !important; background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .3) !important; }
@media (max-width: 575px) { .opening-actions { border-radius: 22px !important; } .opening-actions #openAnother { width: 100%; justify-content: center; } }
