/* Card type skins (Hex, Sticker, …). Loaded by workshop + live game. */

/* ── Sticker ──────────────────────────────────────────────────────────────
   Cream paper mat · circular art “sticker hole” · capsule title · chip meta.
   Rarity still drives color via --frame-* / --title-* / --art-*.
*/

.mobile-card--type-sticker {
  border-radius: 18px;
  background:
    linear-gradient(160deg, #fff8ec 0%, #f0e2cc 42%, #e2d0b4 100%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mobile-card--type-sticker.mobile-card-flippable {
  background: none;
  box-shadow: none;
}

.mobile-card--type-sticker .mobile-card-bezel {
  border-radius: 18px;
  background:
    linear-gradient(160deg, #fff8ec 0%, #f0e2cc 42%, #e2d0b4 100%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mobile-card--type-sticker .mobile-card-bezel--back {
  background:
    linear-gradient(160deg, #efe4d2 0%, #ddd0ba 50%, #cbbba0 100%);
}

.mobile-card--type-sticker .mobile-card-frame {
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border-width: 3px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--frame-top, #484848) 88%, #fff) 0%,
      color-mix(in srgb, var(--frame-mid, #353535) 82%, #f5ebdc) 22%,
      color-mix(in srgb, var(--frame-bottom, #222222) 78%, #efe2cf) 100%
    );
  box-shadow:
    inset 0 0 0 3px rgba(255, 248, 236, 0.92),
    inset 0 0 0 6px color-mix(in srgb, var(--frame-mid, #353535) 55%, #000);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.mobile-card--type-sticker .mobile-card-title {
  z-index: 2;
  min-height: 22px;
  padding: 3px 12px;
  border-radius: 999px;
  border-width: 3px;
  background: linear-gradient(180deg, var(--title-top, #444444), var(--title-bottom, #141414));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.mobile-card--type-sticker .mobile-card-art {
  align-items: center;
  padding: 2px 0 0;
}

.mobile-card--type-sticker .mobile-card-art-window {
  flex: 0 1 auto;
  width: min(100%, 100%);
  aspect-ratio: 1;
  max-height: 100%;
  padding: 8px;
  border-radius: 50%;
  border: 3px solid #fff8ec;
  outline: 3px solid #000;
  outline-offset: 0;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--art-top, #525252) 35%, #fff8ec) 0%,
      color-mix(in srgb, var(--art-bottom, #2e2e2e) 40%, #f3e7d4) 100%
    );
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.mobile-card--type-sticker .mobile-card-art-window img {
  width: min(72%, 108px);
  max-height: 78%;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22));
}

.mobile-card--type-sticker .mobile-card-meta {
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  min-height: 0;
  padding: 0;
}

.mobile-card--type-sticker .mobile-card-set,
.mobile-card--type-sticker .mobile-card-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 0;
  min-height: 18px;
  padding: 2px 7px;
  border: 2px solid #000;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf2, #f0e4d0);
  color: #1a1208;
  -webkit-text-stroke: 0;
  text-shadow: none;
  paint-order: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
}

.mobile-card--type-sticker .mobile-card-set {
  text-transform: uppercase;
}

/* Additionals: sit on the circular face, not clipped in the dead corner wedges. */
.mobile-card--type-sticker .mobile-card-art-window {
  overflow: visible;
}

.mobile-card--type-sticker .mobile-card-art-window > img.mobile-card-art-img {
  border-radius: 50%;
}

.mobile-card--type-sticker .mobile-card-art-window > [class$="-fx"],
.mobile-card--type-sticker .mobile-card-art-window > [class*="-fx "],
.mobile-card--type-sticker .mobile-card-art-window > [class*="-fx__"],
.mobile-card--type-sticker .mobile-card-art-window > [class$="-particles"] {
  border-radius: 50%;
  overflow: hidden;
}

.mobile-card--type-sticker .mobile-card-stamp-slot,
.mobile-card--type-sticker .mobile-card-stamps {
  width: 26%;
  max-width: 26%;
}

.mobile-card--type-sticker .mobile-card-stamp-slot--top-right {
  top: 12%;
  right: 12%;
}

.mobile-card--type-sticker .mobile-card-stamp-slot--top-left {
  top: 12%;
  left: 12%;
}

.mobile-card--type-sticker .mobile-card-stamp-slot--bottom-right {
  right: 12%;
  bottom: 12%;
}

.mobile-card--type-sticker .mobile-card-stamp-slot--bottom-left {
  left: 12%;
  bottom: 12%;
}

.mobile-card--type-sticker .mobile-card-stamps {
  right: 12%;
  bottom: 12%;
}

.mobile-card--type-sticker .mobile-card-stamp {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.mobile-card--type-sticker .mobile-card-stamp--wax {
  width: 70%;
}

.mobile-card--type-sticker .mobile-card-stamp--limited,
.mobile-card--type-sticker .mobile-card-stamp--one-of-one {
  width: 78%;
}

.mobile-card--type-sticker .mobile-card-stamp--auto {
  width: 88%;
}

.mobile-card--type-sticker .mobile-card-stamp-slot--top-right .mobile-card-stamp--auto {
  transform: rotate(6deg);
}

.mobile-card--type-sticker .mobile-card-stamp-slot--top-left .mobile-card-stamp--auto {
  transform: rotate(-6deg);
}

.mobile-card--type-sticker .mobile-card-stamp-slot--bottom-right .mobile-card-stamp--auto {
  transform: rotate(-6deg);
}

.mobile-card--type-sticker .mobile-card-stamp-slot--bottom-left .mobile-card-stamp--auto {
  transform: rotate(6deg);
}

/* Compact grids — keep the silhouette readable at thumb size */
.mobile-card--type-sticker.mobile-card--compact {
  border-radius: 14px;
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-bezel {
  border-radius: 14px;
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-frame {
  gap: 4px;
  padding: 5px;
  border-radius: 11px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 236, 0.92),
    inset 0 0 0 4px color-mix(in srgb, var(--frame-mid, #353535) 55%, #000);
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-title {
  min-height: 15px;
  padding: 2px 8px;
  font-size: 10px;
  border-width: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-art-window {
  padding: 5px;
  border-width: 2px;
  outline-width: 2px;
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-art-window img {
  width: min(70%, 58px);
}

.mobile-card--type-sticker.mobile-card--compact .mobile-card-set,
.mobile-card--type-sticker.mobile-card--compact .mobile-card-slot {
  min-height: 14px;
  padding: 1px 5px;
  font-size: 8px;
  border-width: 2px;
}

/* ── Hex ─────────────────────────────────────────────────────────
   Matte black stock · full-face hex field · floating type/art/meta (no boxes).
   Accent hexes tint to pull-color tier (lightest = standard rarity hue).
   Live SVG hex field (js/cards/blackhex.js): edge hexes stay black;
   interior hexes slowly fade between black and rarity shades.
   Single thick black outer trim — always rule for every card face.
*/

.mobile-card--type-blackhex {
  --bc-hex-a: #42474f;
  --bc-hex-b: #050608;
  position: relative;
  border-radius: 12px;
  padding: 0;
  border: 5px solid #000;
  overflow: hidden;
  background-color: var(--bc-hex-b);
  background-image: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(210, 220, 235, 0.14);
}

.mobile-card--type-blackhex.mobile-card-flippable {
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}

/* Flippable face shells are square by default — clip so black underlay can't square the corners. */
.mobile-card--type-blackhex .mobile-card-inner,
.mobile-card--type-blackhex .mobile-card-face,
.mobile-card--type-blackhex .mobile-card-front,
.mobile-card--type-blackhex .mobile-card-back {
  border-radius: 12px;
  overflow: hidden;
}

.mobile-card--type-blackhex .mobile-card-front,
.mobile-card--type-blackhex .mobile-card-back {
  background: transparent;
}

.mobile-card--type-blackhex .mobile-card-bezel {
  position: relative;
  border-radius: 12px;
  padding: 0;
  border: 5px solid #000;
  overflow: hidden;
  background-color: var(--bc-hex-b);
  background-image: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(210, 220, 235, 0.14);
}

.mobile-card--type-blackhex .mobile-card-bezel--back {
  padding: 0;
  border: 5px solid #000;
  background-color: #07090d;
  background-image: none;
  filter: brightness(0.88);
}

.mobile-card--type-blackhex .mobile-card-bezel--back .bc-hex-field {
  display: none;
}

.mobile-card--type-blackhex .mobile-card-back-details {
  position: relative;
  z-index: 1;
}

.mobile-card--type-blackhex .bc-hex-field {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  z-index: 0;
  border-radius: 7px;
  overflow: hidden;
  clip-path: inset(0 round 7px);
}

.mobile-card--type-blackhex .bc-hex-field path {
  /* Longer than tick interval so several hexes fade in different phases. */
  transition: fill 1.15s ease;
}

.mobile-card--type-blackhex .mobile-card-frame {
  position: relative;
  z-index: 2;
  gap: 5px;
  padding: 8px;
  border: none;
  border-radius: 7px;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-blackhex .bc-hex-field path {
    transition: none;
  }
}

.mobile-card--type-blackhex .mobile-card-title,
.mobile-card--type-blackhex .mobile-card-title span,
.mobile-card--type-blackhex[data-color] .mobile-card-title,
.mobile-card--type-blackhex[data-color] .mobile-card-title span,
.mobile-card--type-blackhex[data-color="Grey"] .mobile-card-title,
.mobile-card--type-blackhex[data-color="Black"] .mobile-card-title {
  min-height: 20px;
  margin-top: 22px;
  padding: 4px 8px 2px;
  border: none !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f7fc;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.mobile-card--type-blackhex .mobile-card-art {
  padding: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.mobile-card--type-blackhex .mobile-card-art-window {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mobile-card--type-blackhex .mobile-card-art-window img {
  width: min(52%, 78px);
  max-height: 68%;
  filter:
    drop-shadow(0 0 10px rgba(190, 210, 240, 0.18))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.mobile-card--type-blackhex .mobile-card-meta {
  display: none;
}

.mobile-card--type-blackhex .mobile-card-stamp-slot,
.mobile-card--type-blackhex .mobile-card-stamps {
  z-index: 2;
  width: 32%;
  max-width: 32%;
}

.mobile-card--type-blackhex .mobile-card-stamp-slot--top-right {
  top: 4%;
  right: 4%;
}

.mobile-card--type-blackhex .mobile-card-stamp-slot--top-left {
  top: 4%;
  left: 4%;
}

.mobile-card--type-blackhex .mobile-card-stamp-slot--bottom-right {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-blackhex .mobile-card-stamp-slot--bottom-left {
  left: 4%;
  bottom: 5%;
}

.mobile-card--type-blackhex .mobile-card-stamps {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-blackhex .mobile-card-stamp {
  filter:
    drop-shadow(0 0 4px rgba(200, 220, 255, 0.25))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.mobile-card--type-blackhex.mobile-card--compact .mobile-card-frame {
  gap: 3px;
  padding: 5px;
  grid-template-rows: auto minmax(0, 1fr);
}

.mobile-card--type-blackhex.mobile-card--compact .mobile-card-title,
.mobile-card--type-blackhex.mobile-card--compact .mobile-card-title span,
.mobile-card--type-blackhex.mobile-card--compact[data-color] .mobile-card-title,
.mobile-card--type-blackhex.mobile-card--compact[data-color="Grey"] .mobile-card-title {
  min-height: 15px;
  margin-top: 10px;
  font-size: clamp(5.5px, 6.8cqi, 9px);
  padding: 2px 4px 1px;
  letter-spacing: 0.02em;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.mobile-card--type-blackhex.mobile-card--compact .mobile-card-art-window {
  padding: 2px;
}

.mobile-card--type-blackhex.mobile-card--compact .mobile-card-art-window img {
  width: min(50%, 48px);
  max-height: 66%;
}

/*
 * Live SVG hex field + overflow/clip breaks WebKit rotateY/preserve-3d (card vanishes).
 * Same flat scaleX flip as Pearl / Neon.
 */
@keyframes blackhex-card-flip {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(0.02); }
}

.mobile-card--type-blackhex.mobile-card-flippable {
  perspective: none;
  -webkit-perspective: none;
  transform-style: flat;
  -webkit-transform-style: flat;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-inner {
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  transition: none !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-inner:not(.is-blackhex-flip-anim) {
  transform: none !important;
}

/*
 * While the scaleX anim runs, :not(.is-blackhex-flip-anim) no longer applies.
 * Keep transform unset during anim so keyframes own scaleX.
 */
.mobile-card--type-blackhex.mobile-card-flippable.is-flipped .mobile-card-inner:not(.is-blackhex-flip-anim),
.mobile-card--type-blackhex.mobile-card-flippable.is-flipping .mobile-card-inner:not(.is-blackhex-flip-anim) {
  transform: none !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-inner.is-blackhex-flip-anim {
  animation: blackhex-card-flip 260ms ease !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-face {
  transform: none !important;
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-front,
.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-back {
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-bezel,
.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-frame,
.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-back-art,
.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-art-window,
.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-art-window img,
.mobile-card--type-blackhex.mobile-card-flippable .bc-hex-field {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-front {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-blackhex.mobile-card-flippable .mobile-card-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-blackhex.mobile-card-flippable.is-flipped .mobile-card-front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-blackhex.mobile-card-flippable.is-flipped .mobile-card-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

/* Hide live SVG + clip-path field during flip (same idea as Pearl nacre / Neon tube). */
.mobile-card--type-blackhex.mobile-card-flippable.is-flipping .bc-hex-field {
  display: none !important;
}

.mobile-card--type-blackhex.mobile-card-flippable.is-flipping .mobile-card-bezel--back {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-blackhex.mobile-card-flippable .mobile-card-inner.is-blackhex-flip-anim {
    animation: none;
  }
}

/* ── Pearl ─────────────────────────────────────────────────────────────────
   Champagne nacre stock · silver mother-of-pearl bezel · soft pastel rarity wash.
   Iridescent film (not neon rim) — distinct from Neon tube glow.
*/

.mobile-card--type-pearlescent {
  --pearl-glow: #7a8498;
  --pearl-glow-soft: rgba(122, 132, 152, 0.55);
  --pearl-glow-hot: rgba(122, 132, 152, 0.82);
  --pearl-ink: #2a2430;
  --pearl-rim: color-mix(in srgb, var(--pearl-glow) 65%, #e8e0d8);
  --pearl-rim-deep: color-mix(in srgb, var(--pearl-glow) 78%, #b8aea4);
  --pearl-stock-a: color-mix(in srgb, var(--pearl-glow) 34%, #fffaf6);
  --pearl-stock-b: color-mix(in srgb, var(--pearl-glow) 48%, #f7efe8);
  --pearl-stock-c: color-mix(in srgb, var(--pearl-glow) 58%, #ebe2ea);
  position: relative;
  border-radius: 14px;
  padding: 0;
  border: 2.5px solid var(--pearl-rim);
  overflow: hidden;
  isolation: isolate;
  background:
    /* Soft rarity wash through the nacre — never a hot rim. */
    radial-gradient(ellipse 95% 75% at 72% 28%, color-mix(in srgb, var(--pearl-glow) 55%, transparent), transparent 64%),
    radial-gradient(ellipse 80% 60% at 16% 82%, color-mix(in srgb, var(--pearl-glow) 42%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--pearl-glow) 18%, transparent), transparent 70%),
    /* Classic pearl highlight. */
    radial-gradient(ellipse 88% 52% at 28% 12%, rgba(255, 255, 255, 0.95), transparent 58%),
    linear-gradient(155deg, var(--pearl-stock-a) 0%, var(--pearl-stock-b) 48%, var(--pearl-stock-c) 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pearl-rim-deep) 55%, #fff),
    0 10px 22px rgba(60, 48, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 color-mix(in srgb, var(--pearl-glow) 28%, transparent),
    inset 0 0 28px color-mix(in srgb, var(--pearl-glow) 28%, transparent);
}

/* Slow oil-slick film — multi-hue nacre, not a single neon crawl. */
.mobile-card--type-pearlescent::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background: conic-gradient(
    from 20deg,
    color-mix(in srgb, var(--pearl-glow) 55%, rgba(255, 210, 230, 0.7)),
    color-mix(in srgb, var(--pearl-glow) 35%, rgba(210, 245, 235, 0.65)),
    color-mix(in srgb, var(--pearl-glow) 50%, rgba(220, 225, 255, 0.7)),
    color-mix(in srgb, var(--pearl-glow) 30%, rgba(255, 240, 210, 0.65)),
    color-mix(in srgb, var(--pearl-glow) 55%, rgba(255, 210, 230, 0.7))
  );
  mix-blend-mode: soft-light;
  animation: pearl-nacre-drift 9s ease-in-out infinite alternate;
}

.mobile-card--type-pearlescent::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--pearl-glow) 35%, rgba(255, 255, 255, 0.75));
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--pearl-glow) 40%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--pearl-glow) 30%, transparent);
}

@keyframes pearl-nacre-drift {
  0% { transform: rotate(0deg) scale(1.05); }
  100% { transform: rotate(28deg) scale(1.12); }
}

.mobile-card--type-pearlescent.mobile-card-flippable {
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 14px;
  background: none;
  box-shadow: none;
}

.mobile-card--type-pearlescent.mobile-card-flippable::before,
.mobile-card--type-pearlescent.mobile-card-flippable::after {
  display: none;
}

.mobile-card--type-pearlescent .mobile-card-inner,
.mobile-card--type-pearlescent .mobile-card-face,
.mobile-card--type-pearlescent .mobile-card-front,
.mobile-card--type-pearlescent .mobile-card-back {
  border-radius: 14px;
  overflow: hidden;
}

.mobile-card--type-pearlescent .mobile-card-front,
.mobile-card--type-pearlescent .mobile-card-back {
  background: transparent;
}

.mobile-card--type-pearlescent .mobile-card-bezel {
  position: relative;
  border-radius: 14px;
  padding: 0;
  border: 2.5px solid var(--pearl-rim);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 95% 75% at 72% 28%, color-mix(in srgb, var(--pearl-glow) 68%, transparent), transparent 64%),
    radial-gradient(ellipse 80% 60% at 16% 82%, color-mix(in srgb, var(--pearl-glow) 55%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--pearl-glow) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 88% 52% at 30% 12%, rgba(255, 255, 255, 0.78), transparent 58%),
    linear-gradient(155deg, var(--pearl-stock-a) 0%, var(--pearl-stock-b) 48%, var(--pearl-stock-c) 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--pearl-glow) 55%, #fff),
    0 10px 22px rgba(60, 48, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 color-mix(in srgb, var(--pearl-glow) 35%, transparent),
    inset 0 0 32px color-mix(in srgb, var(--pearl-glow) 38%, transparent);
}

.mobile-card--type-pearlescent .mobile-card-bezel::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background: conic-gradient(
    from 20deg,
    color-mix(in srgb, var(--pearl-glow) 55%, rgba(255, 210, 230, 0.7)),
    color-mix(in srgb, var(--pearl-glow) 35%, rgba(210, 245, 235, 0.65)),
    color-mix(in srgb, var(--pearl-glow) 50%, rgba(220, 225, 255, 0.7)),
    color-mix(in srgb, var(--pearl-glow) 30%, rgba(255, 240, 210, 0.65)),
    color-mix(in srgb, var(--pearl-glow) 55%, rgba(255, 210, 230, 0.7))
  );
  mix-blend-mode: soft-light;
  animation: pearl-nacre-drift 9s ease-in-out infinite alternate;
}

.mobile-card--type-pearlescent .mobile-card-bezel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--pearl-glow) 35%, rgba(255, 255, 255, 0.75));
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--pearl-glow) 40%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--pearl-glow) 30%, transparent);
}

.mobile-card--type-pearlescent .mobile-card-bezel--back {
  border: 2px solid #d8d0c8;
  background:
    linear-gradient(165deg, #fffaf6 0%, #f0e8e2 55%, #e6dde8 100%);
  box-shadow:
    0 10px 22px rgba(60, 48, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mobile-card--type-pearlescent .mobile-card-bezel--back::before,
.mobile-card--type-pearlescent .mobile-card-bezel--back::after {
  display: none;
}

.mobile-card--type-pearlescent .mobile-card-back-details {
  position: relative;
  z-index: 1;
}

.mobile-card--type-pearlescent .mobile-card-frame {
  position: relative;
  z-index: 2;
  gap: 5px;
  padding: 8px;
  border: none;
  border-radius: 7px;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr);
}

.mobile-card--type-pearlescent .mobile-card-title,
.mobile-card--type-pearlescent .mobile-card-title span,
.mobile-card--type-pearlescent[data-color] .mobile-card-title,
.mobile-card--type-pearlescent[data-color] .mobile-card-title span,
.mobile-card--type-pearlescent[data-color="Grey"] .mobile-card-title,
.mobile-card--type-pearlescent[data-color="Black"] .mobile-card-title {
  min-height: 28px;
  margin-top: 18px;
  padding: 4px 8px 2px;
  border: none !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  font-family: "Great Vibes", "Segoe Script", "Snell Roundhand", cursive;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
  color: var(--pearl-ink);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mobile-card--type-pearlescent .mobile-card-rarity,
.mobile-card--type-pearlescent[data-color] .mobile-card-rarity {
  bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pearl-glow);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mobile-card--type-pearlescent .mobile-card-art {
  padding: 0;
  min-height: 0;
}

.mobile-card--type-pearlescent .mobile-card-art-window {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.mobile-card--type-pearlescent .mobile-card-art-window img {
  width: min(52%, 78px);
  max-height: 68%;
  filter:
    drop-shadow(0 0 10px var(--pearl-glow-hot))
    drop-shadow(0 0 18px var(--pearl-glow-soft))
    drop-shadow(0 5px 10px rgba(60, 48, 55, 0.22));
}

.mobile-card--type-pearlescent .mobile-card-meta {
  display: none;
}

.mobile-card--type-pearlescent .mobile-card-stamp-slot,
.mobile-card--type-pearlescent .mobile-card-stamps {
  z-index: 2;
  width: 32%;
  max-width: 32%;
}

.mobile-card--type-pearlescent .mobile-card-stamp-slot--top-right {
  top: 4%;
  right: 4%;
}

.mobile-card--type-pearlescent .mobile-card-stamp-slot--top-left {
  top: 4%;
  left: 4%;
}

.mobile-card--type-pearlescent .mobile-card-stamp-slot--bottom-right {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-pearlescent .mobile-card-stamp-slot--bottom-left {
  left: 4%;
  bottom: 5%;
}

.mobile-card--type-pearlescent .mobile-card-stamps {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-pearlescent .mobile-card-stamp {
  filter:
    drop-shadow(0 0 3px color-mix(in srgb, var(--pearl-glow) 30%, transparent))
    drop-shadow(0 2px 3px rgba(60, 48, 55, 0.28));
}

.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-frame {
  gap: 3px;
  padding: 5px;
  grid-template-rows: auto minmax(0, 1fr);
}

.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-title,
.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-title span,
.mobile-card--type-pearlescent.mobile-card--compact[data-color] .mobile-card-title {
  min-height: 22px;
  margin-top: 12px;
  font-size: clamp(14px, 16cqi, 20px);
  padding: 2px 4px 1px;
  letter-spacing: 0.01em;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--pearl-ink);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-rarity,
.mobile-card--type-pearlescent.mobile-card--compact[data-color] .mobile-card-rarity {
  bottom: 2px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--pearl-glow);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-art-window {
  padding: 2px;
}

.mobile-card--type-pearlescent.mobile-card--compact .mobile-card-art-window img {
  width: min(50%, 48px);
  max-height: 66%;
}

.mobile-card--type-pearlescent[data-color="Green"] {
  --pearl-glow: #2fad6a;
}

.mobile-card--type-pearlescent[data-color="Blue"] {
  --pearl-glow: #3b82f6;
}

.mobile-card--type-pearlescent[data-color="Purple"] {
  --pearl-glow: #a855f7;
}

.mobile-card--type-pearlescent[data-color="Red"] {
  --pearl-glow: #e11d48;
}

.mobile-card--type-pearlescent[data-color="Glass"] {
  --pearl-glow: #38bdf8;
}

.mobile-card--type-pearlescent[data-color="Onyx"] {
  --pearl-glow: #64748b;
}

.mobile-card--type-pearlescent[data-color],
.mobile-card--type-pearlescent .mobile-card-bezel {
  --pearl-glow-soft: color-mix(in srgb, var(--pearl-glow) 55%, transparent);
  --pearl-glow-hot: color-mix(in srgb, var(--pearl-glow) 82%, transparent);
  --pearl-rim: color-mix(in srgb, var(--pearl-glow) 65%, #e8e0d8);
  --pearl-rim-deep: color-mix(in srgb, var(--pearl-glow) 78%, #b8aea4);
  --pearl-stock-a: color-mix(in srgb, var(--pearl-glow) 42%, #fffaf6);
  --pearl-stock-b: color-mix(in srgb, var(--pearl-glow) 56%, #f7efe8);
  --pearl-stock-c: color-mix(in srgb, var(--pearl-glow) 68%, #ebe2ea);
}

.mobile-card--type-pearlescent[data-color="Grey"] {
  --pearl-glow: #7a8498;
}

.mobile-card--type-pearlescent[data-color="Black"] {
  --pearl-glow: #6e6a82;
}

.mobile-card--type-pearlescent[data-color="Yellow"] {
  --pearl-glow: #d4a017;
}

/*
 * Pearl nacre film (mix-blend + transform anim + isolation) blanks WebKit rotateY.
 * Flat scaleX flip — same approach as Neon / Prize cards.
 */
@keyframes pearl-card-flip {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(0.02); }
}

.mobile-card--type-pearlescent.mobile-card-flippable {
  perspective: none;
  -webkit-perspective: none;
  transform-style: flat;
  -webkit-transform-style: flat;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-inner {
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  transition: none !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-inner:not(.is-pearl-flip-anim) {
  transform: none !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable.is-flipped .mobile-card-inner:not(.is-pearl-flip-anim),
.mobile-card--type-pearlescent.mobile-card-flippable.is-flipping .mobile-card-inner:not(.is-pearl-flip-anim) {
  transform: none !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-inner.is-pearl-flip-anim {
  animation: pearl-card-flip 260ms ease !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-face {
  transform: none !important;
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-front,
.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-back {
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-front {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-pearlescent.mobile-card-flippable.is-flipped .mobile-card-front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-pearlescent.mobile-card-flippable.is-flipped .mobile-card-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-pearlescent.mobile-card-flippable.is-flipping .mobile-card-bezel::before,
.mobile-card--type-pearlescent.mobile-card-flippable.is-flipping .mobile-card-bezel::after {
  animation-play-state: paused;
  display: none !important;
}

.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-bezel,
.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-frame,
.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-back-art,
.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-art-window,
.mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-art-window img {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-pearlescent::before,
  .mobile-card--type-pearlescent .mobile-card-bezel::before {
    animation: none;
  }

  .mobile-card--type-pearlescent.mobile-card-flippable .mobile-card-inner.is-pearl-flip-anim {
    animation: none;
  }
}

/* ── Neon ────────────────────────────────────────────────────────────
   Ink-black stock · thin tube-light rim that crawls the edge.
   Neon hue from rarity (--nn-neon set by nightneon.js / data-color).
*/

.mobile-card--type-nightneon {
  --nn-neon: #c4ccd8;
  --nn-neon-soft: rgba(196, 204, 216, 0.55);
  --nn-neon-hot: rgba(196, 204, 216, 0.95);
  --nn-stock: #05060a;
  --nn-stock-mid: #0a0d14;
  position: relative;
  border-radius: 12px;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--nn-neon) 55%, #000);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--nn-neon) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--nn-neon) 8%, transparent), transparent 50%),
    linear-gradient(165deg, var(--nn-stock-mid) 0%, var(--nn-stock) 55%, #030408 100%);
  box-shadow:
    0 0 10px var(--nn-neon-soft),
    0 0 22px color-mix(in srgb, var(--nn-neon) 28%, transparent),
    0 12px 26px rgba(0, 0, 0, 0.6),
    inset 0 0 18px color-mix(in srgb, var(--nn-neon) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Moving tube head — masked to a thin rim. */
.mobile-card--type-nightneon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--nn-spin, 0deg),
    transparent 0deg,
    transparent 250deg,
    var(--nn-neon) 295deg,
    #ffffff 312deg,
    var(--nn-neon) 328deg,
    transparent 360deg
  );
  -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,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: nn-tube-crawl 2.6s linear infinite;
}

.mobile-card--type-nightneon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--nn-neon) 35%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--nn-neon) 12%, transparent);
}

@property --nn-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes nn-tube-crawl {
  to { --nn-spin: 360deg; }
}

.mobile-card--type-nightneon.mobile-card-flippable {
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}

.mobile-card--type-nightneon.mobile-card-flippable::before,
.mobile-card--type-nightneon.mobile-card-flippable::after {
  display: none;
}

.mobile-card--type-nightneon .mobile-card-inner,
.mobile-card--type-nightneon .mobile-card-face,
.mobile-card--type-nightneon .mobile-card-front,
.mobile-card--type-nightneon .mobile-card-back {
  border-radius: 12px;
  overflow: hidden;
}

.mobile-card--type-nightneon .mobile-card-front,
.mobile-card--type-nightneon .mobile-card-back {
  background: transparent;
}

.mobile-card--type-nightneon .mobile-card-bezel {
  position: relative;
  border-radius: 12px;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--nn-neon) 55%, #000);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--nn-neon) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--nn-neon) 8%, transparent), transparent 50%),
    linear-gradient(165deg, var(--nn-stock-mid) 0%, var(--nn-stock) 55%, #030408 100%);
  box-shadow:
    0 0 10px var(--nn-neon-soft),
    0 0 22px color-mix(in srgb, var(--nn-neon) 28%, transparent),
    0 12px 26px rgba(0, 0, 0, 0.6),
    inset 0 0 18px color-mix(in srgb, var(--nn-neon) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mobile-card--type-nightneon .mobile-card-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--nn-spin, 0deg),
    transparent 0deg,
    transparent 250deg,
    var(--nn-neon) 295deg,
    #ffffff 312deg,
    var(--nn-neon) 328deg,
    transparent 360deg
  );
  -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,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: nn-tube-crawl 2.6s linear infinite;
}

.mobile-card--type-nightneon .mobile-card-bezel::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--nn-neon) 35%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--nn-neon) 12%, transparent);
}

.mobile-card--type-nightneon .mobile-card-bezel--back {
  border: 2px solid rgba(120, 140, 170, 0.35);
  background: linear-gradient(165deg, #0c1018 0%, #07090d 100%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(210, 220, 235, 0.08);
}

.mobile-card--type-nightneon .mobile-card-bezel--back::before,
.mobile-card--type-nightneon .mobile-card-bezel--back::after {
  display: none;
}

.mobile-card--type-nightneon .mobile-card-back-details {
  position: relative;
  z-index: 1;
}

.mobile-card--type-nightneon .mobile-card-frame {
  position: relative;
  z-index: 2;
  gap: 5px;
  padding: 8px;
  border: none;
  border-radius: 7px;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr);
}

.mobile-card--type-nightneon .mobile-card-title,
.mobile-card--type-nightneon .mobile-card-title span,
.mobile-card--type-nightneon[data-color] .mobile-card-title,
.mobile-card--type-nightneon[data-color] .mobile-card-title span,
.mobile-card--type-nightneon[data-color="Grey"] .mobile-card-title,
.mobile-card--type-nightneon[data-color="Black"] .mobile-card-title {
  min-height: 20px;
  margin-top: 22px;
  padding: 4px 8px 2px;
  border: none !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fbff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 6px var(--nn-neon-hot),
    0 0 14px var(--nn-neon-soft),
    0 1px 2px rgba(0, 0, 0, 0.85);
}

.mobile-card--type-nightneon .mobile-card-rarity,
.mobile-card--type-nightneon[data-color] .mobile-card-rarity {
  bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--nn-neon);
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 6px var(--nn-neon-hot),
    0 0 12px var(--nn-neon-soft);
}

.mobile-card--type-nightneon .mobile-card-art {
  padding: 0;
}

.mobile-card--type-nightneon .mobile-card-art-window {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.mobile-card--type-nightneon .mobile-card-art-window img {
  width: min(52%, 78px);
  max-height: 68%;
  filter:
    drop-shadow(0 0 8px var(--nn-neon-hot))
    drop-shadow(0 0 16px var(--nn-neon-soft))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
}

.mobile-card--type-nightneon .mobile-card-meta {
  display: none;
}

.mobile-card--type-nightneon .mobile-card-stamp-slot,
.mobile-card--type-nightneon .mobile-card-stamps {
  z-index: 2;
  width: 32%;
  max-width: 32%;
}

.mobile-card--type-nightneon .mobile-card-stamp-slot--top-right {
  top: 4%;
  right: 4%;
}

.mobile-card--type-nightneon .mobile-card-stamp-slot--top-left {
  top: 4%;
  left: 4%;
}

.mobile-card--type-nightneon .mobile-card-stamp-slot--bottom-right {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-nightneon .mobile-card-stamp-slot--bottom-left {
  left: 4%;
  bottom: 5%;
}

.mobile-card--type-nightneon .mobile-card-stamps {
  right: 4%;
  bottom: 5%;
}

.mobile-card--type-nightneon .mobile-card-stamp {
  filter:
    drop-shadow(0 0 5px var(--nn-neon-soft))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.mobile-card--type-nightneon.mobile-card--compact .mobile-card-frame {
  gap: 3px;
  padding: 5px;
  grid-template-rows: auto minmax(0, 1fr);
}

.mobile-card--type-nightneon.mobile-card--compact .mobile-card-title,
.mobile-card--type-nightneon.mobile-card--compact .mobile-card-title span,
.mobile-card--type-nightneon.mobile-card--compact[data-color] .mobile-card-title,
.mobile-card--type-nightneon.mobile-card--compact[data-color] .mobile-card-title span {
  min-height: 15px;
  margin-top: 8px;
  font-size: 7px;
  font-weight: 800;
  padding: 2px 3px 1px;
  letter-spacing: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  overflow: hidden;
  max-width: 100%;
  text-shadow:
    0 0 3px var(--nn-neon-hot),
    0 0 7px var(--nn-neon-soft),
    0 1px 1px rgba(0, 0, 0, 0.85);
}

.mobile-card--type-nightneon.mobile-card--compact .mobile-card-rarity,
.mobile-card--type-nightneon.mobile-card--compact[data-color] .mobile-card-rarity {
  bottom: 2px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mobile-card--type-nightneon.mobile-card--compact .mobile-card-art-window {
  padding: 2px;
}

.mobile-card--type-nightneon.mobile-card--compact .mobile-card-art-window img {
  width: min(50%, 48px);
  max-height: 66%;
}

.mobile-card--type-nightneon[data-color="Green"] {
  --nn-neon: #4ade80;
}

.mobile-card--type-nightneon[data-color="Blue"] {
  --nn-neon: #38bdf8;
}

.mobile-card--type-nightneon[data-color="Purple"] {
  --nn-neon: #e879f9;
}

.mobile-card--type-nightneon[data-color="Red"] {
  --nn-neon: #fb7185;
}

.mobile-card--type-nightneon[data-color="Glass"],
.mobile-card--type-nightneon[data-color="Onyx"] {
  --nn-neon: #67e8f9;
}

.mobile-card--type-nightneon[data-color],
.mobile-card--type-nightneon .mobile-card-bezel {
  --nn-neon-soft: color-mix(in srgb, var(--nn-neon) 55%, transparent);
  --nn-neon-hot: color-mix(in srgb, var(--nn-neon) 95%, transparent);
}

.mobile-card--type-nightneon[data-color="Grey"] {
  --nn-neon: #c4ccd8;
}

.mobile-card--type-nightneon[data-color="Black"] {
  --nn-neon: #a78bfa;
}

.mobile-card--type-nightneon[data-color="Yellow"] {
  --nn-neon: #facc15;
  --nn-neon-soft: color-mix(in srgb, var(--nn-neon) 62%, transparent);
  --nn-neon-hot: color-mix(in srgb, var(--nn-neon) 96%, transparent);
}

/*
 * Neon rim mask + @property crawl breaks WebKit rotateY/preserve-3d (card vanishes).
 * Use the same flat scaleX flip pattern as Official Prize cards.
 */
@keyframes nightneon-card-flip {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(0.02); }
}

.mobile-card--type-nightneon.mobile-card-flippable {
  perspective: none;
  -webkit-perspective: none;
  transform-style: flat;
  -webkit-transform-style: flat;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-inner {
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  transition: none !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-inner:not(.is-nightneon-flip-anim) {
  transform: none !important;
}

.mobile-card--type-nightneon.mobile-card-flippable.is-flipped .mobile-card-inner:not(.is-nightneon-flip-anim),
.mobile-card--type-nightneon.mobile-card-flippable.is-flipping .mobile-card-inner:not(.is-nightneon-flip-anim) {
  transform: none !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-inner.is-nightneon-flip-anim {
  animation: nightneon-card-flip 260ms ease !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-face {
  transform: none !important;
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-front,
.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-back {
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-front {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-nightneon.mobile-card-flippable.is-flipped .mobile-card-front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-nightneon.mobile-card-flippable.is-flipped .mobile-card-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-nightneon.mobile-card-flippable.is-flipping .mobile-card-bezel::before,
.mobile-card--type-nightneon.mobile-card-flippable.is-flipping .mobile-card-bezel::after {
  animation-play-state: paused;
  display: none !important;
}

.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-bezel,
.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-frame,
.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-back-art,
.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-art-window,
.mobile-card--type-nightneon.mobile-card-flippable .mobile-card-art-window img {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-nightneon::before,
  .mobile-card--type-nightneon .mobile-card-bezel::before {
    animation: none;
  }

  .mobile-card--type-nightneon.mobile-card-flippable .mobile-card-inner.is-nightneon-flip-anim {
    animation: none;
  }
}

/* ── Royal ─────────────────────────────────────────────────────────────────
   Tier One vibe: cream parchment · metallic gold · emerald marble band.
   Seeded damask filigree field (workshop preview).
*/

.mobile-card--type-royal {
  --royal-ivory: #f7f1e6;
  --royal-gold: #d4af37;
  --royal-gold-deep: #a67c1a;
  --royal-gold-bright: #f0d878;
  --royal-green: #1a6b4a;
  --royal-green-deep: #0e4530;
  position: relative;
  border-radius: 14px;
  padding: 0;
  /* Outer gold rim */
  border: 3px solid var(--royal-gold-deep);
  overflow: hidden;
  background-color: var(--royal-ivory);
  background-image: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--royal-gold) 70%, #fff),
    0 0 0 5px var(--royal-green-deep),
    0 0 0 7px color-mix(in srgb, var(--royal-gold) 85%, var(--royal-gold-deep)),
    0 14px 28px rgba(14, 69, 48, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mobile-card--type-royal.mobile-card-flippable {
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 14px;
  background: none;
  box-shadow: none;
}

/* Hide live damask while flat-flipping — ResizeObserver remount blanks WebKit */
.mobile-card--type-royal.mobile-card-flippable.is-flipping .royal-field {
  display: none !important;
}

.mobile-card--type-royal .mobile-card-inner,
.mobile-card--type-royal .mobile-card-face,
.mobile-card--type-royal .mobile-card-front,
.mobile-card--type-royal .mobile-card-back {
  border-radius: 14px;
  overflow: hidden;
}

.mobile-card--type-royal .mobile-card-front,
.mobile-card--type-royal .mobile-card-back {
  background: transparent;
}

.mobile-card--type-royal .mobile-card-bezel {
  position: relative;
  border-radius: 14px;
  padding: 0;
  border: 3px solid var(--royal-gold-deep);
  overflow: hidden;
  background-color: var(--royal-ivory);
  background-image: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--royal-gold) 70%, #fff),
    0 0 0 5px var(--royal-green-deep),
    0 0 0 7px color-mix(in srgb, var(--royal-gold) 85%, var(--royal-gold-deep)),
    0 14px 28px rgba(14, 69, 48, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Emerald marble inlay ring */
.mobile-card--type-royal .mobile-card-bezel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 3;
  border: 4px solid transparent;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--royal-green-light, #2f8f66) 70%, #fff) 0%,
      var(--royal-green) 28%,
      var(--royal-green-deep) 52%,
      color-mix(in srgb, var(--royal-green) 60%, #8fd4b0) 78%,
      var(--royal-green-deep) 100%) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--royal-gold-bright) 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--royal-gold) 40%, transparent);
}

/* Inner gold hairline */
.mobile-card--type-royal .mobile-card-bezel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--royal-gold) 80%, var(--royal-gold-bright)),
    inset 0 0 12px color-mix(in srgb, var(--royal-gold) 12%, transparent);
}

.mobile-card--type-royal .mobile-card-bezel--back {
  padding: 0;
  border: 3px solid var(--royal-gold-deep);
  background-color: #efe4d0;
  background-image: none;
  filter: brightness(0.95);
}

.mobile-card--type-royal .mobile-card-bezel--back::before,
.mobile-card--type-royal .mobile-card-bezel--back::after,
.mobile-card--type-royal .mobile-card-bezel--back .royal-field {
  display: none;
}

.mobile-card--type-royal .mobile-card-back-details {
  position: relative;
  z-index: 1;
}

.mobile-card--type-royal .royal-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: 11px;
  overflow: hidden;
  clip-path: inset(0 round 11px);
}

.mobile-card--type-royal .royal-field path,
.mobile-card--type-royal .royal-field circle {
  transition: fill 1.4s ease, opacity 1.4s ease, stroke 1.4s ease;
}

.mobile-card--type-royal .mobile-card-frame {
  position: relative;
  z-index: 1;
  gap: 5px;
  padding: 14px 12px 10px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-royal .royal-field path,
  .mobile-card--type-royal .royal-field circle {
    transition: none;
  }
}

.mobile-card--type-royal .mobile-card-title,
.mobile-card--type-royal[data-color] .mobile-card-title,
.mobile-card--type-royal[data-color="Grey"] .mobile-card-title,
.mobile-card--type-royal[data-color="Black"] .mobile-card-title {
  min-height: 20px;
  margin-top: 18px;
  padding: 4px 8px 2px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal-green-deep);
  text-shadow:
    0 1px 0 rgba(255, 250, 235, 0.95),
    0 0 10px color-mix(in srgb, var(--royal-gold) 25%, transparent);
}

.mobile-card--type-royal .mobile-card-art {
  padding: 0;
}

.mobile-card--type-royal .mobile-card-art-window {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.mobile-card--type-royal .mobile-card-art-window img {
  width: min(52%, 78px);
  max-height: 68%;
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--royal-gold) 50%, transparent))
    drop-shadow(0 4px 8px rgba(14, 69, 48, 0.3));
}

.mobile-card--type-royal .mobile-card-meta {
  display: none;
}

.mobile-card--type-royal .mobile-card-stamp-slot,
.mobile-card--type-royal .mobile-card-stamps {
  z-index: 4;
  width: 32%;
  max-width: 32%;
}

.mobile-card--type-royal .mobile-card-stamp-slot--top-right {
  top: 6%;
  right: 6%;
}

.mobile-card--type-royal .mobile-card-stamp-slot--top-left {
  top: 6%;
  left: 6%;
}

.mobile-card--type-royal .mobile-card-stamp-slot--bottom-right {
  right: 6%;
  bottom: 7%;
}

.mobile-card--type-royal .mobile-card-stamp-slot--bottom-left {
  left: 6%;
  bottom: 7%;
}

.mobile-card--type-royal .mobile-card-stamps {
  right: 6%;
  bottom: 7%;
}

.mobile-card--type-royal .mobile-card-stamp {
  filter:
    drop-shadow(0 0 4px color-mix(in srgb, var(--royal-gold) 45%, transparent))
    drop-shadow(0 2px 3px rgba(14, 69, 48, 0.35));
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-frame {
  gap: 3px;
  padding: 9px 7px 6px;
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-title,
.mobile-card--type-royal.mobile-card--compact[data-color] .mobile-card-title {
  min-height: 15px;
  margin-top: 12px;
  font-size: 10px;
  padding: 2px 4px 1px;
  letter-spacing: 0.08em;
  border: none;
  background: none;
  box-shadow: none;
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-art-window {
  padding: 2px;
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-art-window img {
  width: min(50%, 48px);
  max-height: 66%;
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-bezel::before {
  inset: 3px;
  border-width: 3px;
}

.mobile-card--type-royal.mobile-card--compact .mobile-card-bezel::after {
  inset: 7px;
}

/* Pack / listing shells: keep premium skins rounded even when parents use overflow:visible. */
.builder-pack-pull .mobile-card--type-pearlescent,
.builder-pack-pull-motion .mobile-card--type-pearlescent,
.builder-pack-pull .mobile-card--type-blackhex,
.builder-pack-pull-motion .mobile-card--type-blackhex,
.builder-pack-pull .mobile-card--type-nightneon,
.builder-pack-pull-motion .mobile-card--type-nightneon,
.builder-pack-pull .mobile-card--type-marbleswirl,
.builder-pack-pull-motion .mobile-card--type-marbleswirl,
.builder-pack-pull .mobile-card--type-royal,
.builder-pack-pull-motion .mobile-card--type-royal,
.card-view-stage .mobile-card--type-pearlescent,
.card-view-stage .mobile-card--type-blackhex,
.card-view-stage .mobile-card--type-nightneon,
.card-view-stage .mobile-card--type-marbleswirl,
.card-view-stage .mobile-card--type-royal,
.card-view-carousel-slide .mobile-card--type-pearlescent,
.card-view-carousel-slide .mobile-card--type-blackhex,
.card-view-carousel-slide .mobile-card--type-nightneon,
.card-view-carousel-slide .mobile-card--type-marbleswirl,
.card-view-carousel-slide .mobile-card--type-royal,
.auction-item-card .mobile-card--type-pearlescent,
.auction-item-card .mobile-card--type-blackhex,
.auction-item-card .mobile-card--type-nightneon,
.auction-item-card .mobile-card--type-marbleswirl,
.auction-item-card .mobile-card--type-royal,
.shop-item-card .mobile-card--type-pearlescent,
.shop-item-card .mobile-card--type-blackhex,
.shop-item-card .mobile-card--type-nightneon,
.shop-item-card .mobile-card--type-marbleswirl,
.shop-item-card .mobile-card--type-royal,
.collection-grid .mobile-card--type-pearlescent,
.collection-grid .mobile-card--type-blackhex,
.collection-grid .mobile-card--type-nightneon,
.collection-grid .mobile-card--type-marbleswirl,
.collection-grid .mobile-card--type-royal {
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
}

.builder-pack-pull .mobile-card--type-pearlescent,
.builder-pack-pull-motion .mobile-card--type-pearlescent,
.card-view-stage .mobile-card--type-pearlescent,
.card-view-carousel-slide .mobile-card--type-pearlescent,
.auction-item-card .mobile-card--type-pearlescent,
.shop-item-card .mobile-card--type-pearlescent,
.collection-grid .mobile-card--type-pearlescent {
  border-radius: 14px;
}

.builder-pack-pull .mobile-card--type-pearlescent .mobile-card-bezel,
.builder-pack-pull .mobile-card--type-blackhex .mobile-card-bezel,
.builder-pack-pull .mobile-card--type-nightneon .mobile-card-bezel,
.builder-pack-pull .mobile-card--type-marbleswirl .mobile-card-bezel,
.builder-pack-pull .mobile-card--type-royal .mobile-card-bezel,
.card-view-stage .mobile-card--type-pearlescent .mobile-card-bezel,
.card-view-stage .mobile-card--type-blackhex .mobile-card-bezel,
.card-view-stage .mobile-card--type-nightneon .mobile-card-bezel,
.card-view-stage .mobile-card--type-marbleswirl .mobile-card-bezel,
.card-view-stage .mobile-card--type-royal .mobile-card-bezel,
.auction-item-card .mobile-card--type-pearlescent .mobile-card-bezel,
.auction-item-card .mobile-card--type-blackhex .mobile-card-bezel,
.auction-item-card .mobile-card--type-nightneon .mobile-card-bezel,
.auction-item-card .mobile-card--type-marbleswirl .mobile-card-bezel,
.auction-item-card .mobile-card--type-royal .mobile-card-bezel {
  border-radius: 12px;
  overflow: hidden;
}

.builder-pack-pull .mobile-card--type-pearlescent .mobile-card-bezel,
.card-view-stage .mobile-card--type-pearlescent .mobile-card-bezel,
.auction-item-card .mobile-card--type-pearlescent .mobile-card-bezel {
  border-radius: 14px;
}

/* ── Skin × Glass full-art ───────────────────────────────────────────
   Hex / Pearl / Neon keep their chrome; Glass hits use edge-to-edge
   frosted art (same layout as base Glass), not the framed title window.
*/

.mobile-card--type-blackhex.mobile-card--full-art .mobile-card-frame,
.mobile-card--type-blackhex.mobile-card--full-art .mobile-card-frame--full-art,
.mobile-card--type-pearlescent.mobile-card--full-art .mobile-card-frame,
.mobile-card--type-pearlescent.mobile-card--full-art .mobile-card-frame--full-art,
.mobile-card--type-nightneon.mobile-card--full-art .mobile-card-frame,
.mobile-card--type-nightneon.mobile-card--full-art .mobile-card-frame--full-art {
  gap: 0;
  padding: 0;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Drop generic Glass face border — type bezel owns the rim. */
.mobile-card--type-blackhex.mobile-card-flippable.mobile-card--full-art .mobile-card-face,
.mobile-card--type-pearlescent.mobile-card-flippable.mobile-card--full-art .mobile-card-face,
.mobile-card--type-nightneon.mobile-card-flippable.mobile-card--full-art .mobile-card-face {
  padding: 0;
  border: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Hex — black trim + animated hex rim around the frosted slab */
.mobile-card--type-blackhex.mobile-card-flippable.mobile-card--full-art .mobile-card-bezel--full-art {
  height: 100%;
  padding: 5px;
  border: 5px solid #000;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bc-hex-b);
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(210, 220, 235, 0.14);
}

.mobile-card--type-blackhex.mobile-card--full-art:not(.mobile-card-flippable) {
  padding: 5px;
  border: 5px solid #000;
  background-color: var(--bc-hex-b);
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(210, 220, 235, 0.14);
}

.mobile-card--type-blackhex.mobile-card--full-art .mobile-card-full-art {
  border-radius: 5px;
}

/* Pearl — nacre bezel + frosted slab inset inside the pearl rim */
.mobile-card--type-pearlescent.mobile-card-flippable.mobile-card--full-art .mobile-card-bezel--full-art {
  height: 100%;
  padding: 0;
  border: 2.5px solid var(--pearl-rim);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 95% 75% at 72% 28%, color-mix(in srgb, var(--pearl-glow) 68%, transparent), transparent 64%),
    radial-gradient(ellipse 80% 60% at 16% 82%, color-mix(in srgb, var(--pearl-glow) 55%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--pearl-glow) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 88% 52% at 30% 12%, rgba(255, 255, 255, 0.78), transparent 58%),
    linear-gradient(155deg, var(--pearl-stock-a) 0%, var(--pearl-stock-b) 48%, var(--pearl-stock-c) 100%);
  background-clip: padding-box;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--pearl-glow) 55%, #fff),
    0 10px 22px rgba(60, 48, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 color-mix(in srgb, var(--pearl-glow) 35%, transparent),
    inset 0 0 32px color-mix(in srgb, var(--pearl-glow) 38%, transparent);
}

.mobile-card--type-pearlescent.mobile-card--full-art:not(.mobile-card-flippable) {
  border: 2.5px solid var(--pearl-rim);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 95% 75% at 72% 28%, color-mix(in srgb, var(--pearl-glow) 68%, transparent), transparent 64%),
    radial-gradient(ellipse 80% 60% at 16% 82%, color-mix(in srgb, var(--pearl-glow) 55%, transparent), transparent 60%),
    linear-gradient(155deg, var(--pearl-stock-a) 0%, var(--pearl-stock-b) 48%, var(--pearl-stock-c) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mobile-card--type-pearlescent.mobile-card--full-art .mobile-card-full-art {
  margin: 4px;
  border-radius: 10px;
  width: calc(100% - 8px);
  flex: 1 1 auto;
}

/* Neon — tube rim on bezel; frosted slab fills the ink stock */
.mobile-card--type-nightneon.mobile-card-flippable.mobile-card--full-art .mobile-card-bezel--full-art {
  height: 100%;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--nn-neon) 55%, #000);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--nn-neon) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--nn-neon) 8%, transparent), transparent 50%),
    linear-gradient(165deg, var(--nn-stock-mid) 0%, var(--nn-stock) 55%, #030408 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 0 10px var(--nn-neon-soft),
    0 0 22px color-mix(in srgb, var(--nn-neon) 28%, transparent),
    0 12px 26px rgba(0, 0, 0, 0.6),
    inset 0 0 18px color-mix(in srgb, var(--nn-neon) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mobile-card--type-nightneon.mobile-card--full-art:not(.mobile-card-flippable) {
  border: 2px solid color-mix(in srgb, var(--nn-neon) 55%, #000);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--nn-neon) 12%, transparent), transparent 55%),
    linear-gradient(165deg, var(--nn-stock-mid) 0%, var(--nn-stock) 55%, #030408 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 0 10px var(--nn-neon-soft),
    0 12px 26px rgba(0, 0, 0, 0.6);
}

.mobile-card--type-nightneon.mobile-card--full-art .mobile-card-full-art {
  margin: 3px;
  border-radius: 8px;
  width: calc(100% - 6px);
  flex: 1 1 auto;
}

.mobile-card--type-blackhex.mobile-card--compact.mobile-card--full-art .mobile-card-frame,
.mobile-card--type-pearlescent.mobile-card--compact.mobile-card--full-art .mobile-card-frame,
.mobile-card--type-nightneon.mobile-card--compact.mobile-card--full-art .mobile-card-frame {
  gap: 0;
  padding: 0;
}

/* ── Variant FX on Hex / Pearl / Neon ─────────────────────────────────
   Mount on the face host (card/bezel), not the base-sized art window,
   so Foil/Facet/etc. cover the full chrome. Sit above the skin field
   and floating frame; stamps stay on top of the FX layer.
*/
.mobile-card--type-blackhex.mobile-card-effect-host,
.mobile-card--type-pearlescent.mobile-card-effect-host,
.mobile-card--type-nightneon.mobile-card-effect-host,
.mobile-card--type-blackhex .mobile-card-bezel.mobile-card-effect-host,
.mobile-card--type-pearlescent .mobile-card-bezel.mobile-card-effect-host,
.mobile-card--type-nightneon .mobile-card-bezel.mobile-card-effect-host {
  position: relative;
}

.mobile-card--type-blackhex.mobile-card-effect-host > [data-mobile-variant-fx="1"],
.mobile-card--type-pearlescent.mobile-card-effect-host > [data-mobile-variant-fx="1"],
.mobile-card--type-nightneon.mobile-card-effect-host > [data-mobile-variant-fx="1"],
.mobile-card--type-blackhex .mobile-card-bezel.mobile-card-effect-host > [data-mobile-variant-fx="1"],
.mobile-card--type-pearlescent .mobile-card-bezel.mobile-card-effect-host > [data-mobile-variant-fx="1"],
.mobile-card--type-nightneon .mobile-card-bezel.mobile-card-effect-host > [data-mobile-variant-fx="1"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.mobile-card--type-blackhex.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-blackhex.mobile-card-effect-host > .mobile-card-stamps,
.mobile-card--type-pearlescent.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-pearlescent.mobile-card-effect-host > .mobile-card-stamps,
.mobile-card--type-nightneon.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-nightneon.mobile-card-effect-host > .mobile-card-stamps,
.mobile-card--type-blackhex .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-blackhex .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamps,
.mobile-card--type-pearlescent .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-pearlescent .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamps,
.mobile-card--type-nightneon .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamp-slot,
.mobile-card--type-nightneon .mobile-card-bezel.mobile-card-effect-host > .mobile-card-stamps {
  z-index: 6;
}

/* Glass (base full-art) still scopes FX to the art surface. */
.mobile-card--full-art:not([class*="mobile-card--type-"]) .mobile-card-full-art > [class$="-fx"],
.mobile-card--full-art:not([class*="mobile-card--type-"]) .mobile-card-full-art > [class*="-fx "],
.mobile-card--full-art:not([class*="mobile-card--type-"]) .mobile-card-full-art > [class*="-fx__"],
.mobile-card--full-art:not([class*="mobile-card--type-"]) .mobile-card-full-art > [class$="-particles"] {
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.mobile-card--full-art .mobile-card-full-art .mobile-card-stamp-slot,
.mobile-card--full-art .mobile-card-full-art .mobile-card-stamps {
  z-index: 6;
}

/* ── Marble Swirl ─────────────────────────────────────────────────────────
   Cool gray marble · chrome tip · diamond swirl rim (Inception-inspired).
   Distinct from Signature's cream/gold luxury lane.
   Rarity tints the stone veins, inner plate, and diamond swirl (--ms-rarity).
*/

.mobile-card--type-marbleswirl {
  --ms-marble: #eef1f5;
  --ms-chrome: #9aa4b2;
  --ms-chrome-deep: #4a5564;
  --ms-chrome-bright: #e8eef6;
  --ms-rarity: var(--frame-accent, #7a3cff);
  --ms-rarity-deep: color-mix(in srgb, var(--ms-rarity) 74%, #1a1028);
  --ms-rarity-bright: color-mix(in srgb, var(--ms-rarity) 78%, #fff);
  --ms-rarity-soft: color-mix(in srgb, var(--ms-rarity) 42%, transparent);
  --ms-rarity-hot: color-mix(in srgb, var(--ms-rarity) 88%, transparent);
  --ms-vein: color-mix(in srgb, var(--ms-rarity) 48%, rgba(70, 82, 102, 0.34));
  --ms-swirl-a: var(--ms-rarity);
  --ms-swirl-b: color-mix(in srgb, var(--ms-rarity) 72%, var(--ms-chrome-bright));
  --ms-swirl-c: color-mix(in srgb, var(--ms-rarity-bright) 55%, var(--ms-chrome-bright));
  --ms-swirl-d: color-mix(in srgb, var(--ms-rarity-deep) 40%, var(--ms-chrome-deep));
  --ms-swirl-e: color-mix(in srgb, var(--ms-rarity-deep) 70%, var(--ms-chrome));
  position: relative;
  border-radius: 14px;
  border: 3px solid #1a1a1a;
  overflow: hidden;
  background-color: var(--ms-marble);
  background-image:
    radial-gradient(ellipse 60% 40% at 18% 20%, var(--ms-rarity-soft), transparent 70%),
    radial-gradient(ellipse 50% 34% at 82% 24%, var(--ms-rarity-hot), transparent 68%),
    radial-gradient(ellipse 55% 35% at 18% 22%, var(--ms-vein), transparent 70%),
    radial-gradient(ellipse 45% 30% at 78% 28%, rgba(90, 102, 122, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 40% at 62% 72%, color-mix(in srgb, var(--ms-rarity) 22%, rgba(120, 132, 150, 0.24)), transparent 60%),
    radial-gradient(ellipse 40% 28% at 28% 78%, rgba(60, 72, 92, 0.22), transparent 62%),
    linear-gradient(118deg, transparent 46%, color-mix(in srgb, var(--ms-rarity) 28%, rgba(130, 142, 160, 0.22)) 48%, transparent 50%),
    linear-gradient(72deg, transparent 58%, rgba(100, 112, 132, 0.16) 60%, transparent 62%),
    linear-gradient(160deg, #f7f9fc 0%, #e8ecf2 45%, #d5dbe5 100%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 28px var(--ms-rarity-soft);
}

.mobile-card--type-marbleswirl.mobile-card-flippable {
  border: none;
  background: none;
  box-shadow: none;
  overflow: hidden;
}

/*
 * Diamond rim transforms + overflow/clip break WebKit rotateY/preserve-3d (card vanishes).
 * Same flat scaleX flip pattern as Hex / Pearl / Neon.
 */
@keyframes marbleswirl-card-flip {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(0.02); }
}

.mobile-card--type-marbleswirl.mobile-card-flippable {
  perspective: none;
  -webkit-perspective: none;
  transform-style: flat;
  -webkit-transform-style: flat;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-inner {
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  transition: none !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-inner:not(.is-marbleswirl-flip-anim) {
  transform: none !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable.is-flipped .mobile-card-inner:not(.is-marbleswirl-flip-anim),
.mobile-card--type-marbleswirl.mobile-card-flippable.is-flipping .mobile-card-inner:not(.is-marbleswirl-flip-anim) {
  transform: none !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-inner.is-marbleswirl-flip-anim {
  animation: marbleswirl-card-flip 260ms ease !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-face {
  transform: none !important;
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-front,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-back {
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-front {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-marbleswirl.mobile-card-flippable.is-flipped .mobile-card-front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1;
}

.mobile-card--type-marbleswirl.mobile-card-flippable.is-flipped .mobile-card-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2;
}

.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-bezel,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-frame,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-back-art,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-art,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-art-window,
.mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-art-window img {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card--type-marbleswirl.mobile-card-flippable .mobile-card-inner.is-marbleswirl-flip-anim {
    animation: none;
  }
}

.mobile-card--type-marbleswirl .mobile-card-inner,
.mobile-card--type-marbleswirl .mobile-card-face,
.mobile-card--type-marbleswirl .mobile-card-front,
.mobile-card--type-marbleswirl .mobile-card-back {
  border-radius: 14px;
  overflow: hidden;
}

.mobile-card--type-marbleswirl .mobile-card-front,
.mobile-card--type-marbleswirl .mobile-card-back {
  background: transparent;
}

.mobile-card--type-marbleswirl .mobile-card-bezel {
  position: relative;
  border-radius: 14px;
  border: 3px solid #1a1a1a;
  overflow: hidden;
  background-color: var(--ms-marble);
  background-image:
    radial-gradient(ellipse 60% 40% at 18% 20%, var(--ms-rarity-soft), transparent 70%),
    radial-gradient(ellipse 50% 34% at 82% 24%, var(--ms-rarity-hot), transparent 68%),
    radial-gradient(ellipse 55% 35% at 18% 22%, var(--ms-vein), transparent 70%),
    radial-gradient(ellipse 45% 30% at 78% 28%, rgba(90, 102, 122, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 40% at 62% 72%, color-mix(in srgb, var(--ms-rarity) 22%, rgba(120, 132, 150, 0.24)), transparent 60%),
    radial-gradient(ellipse 40% 28% at 28% 78%, rgba(60, 72, 92, 0.22), transparent 62%),
    linear-gradient(118deg, transparent 46%, color-mix(in srgb, var(--ms-rarity) 28%, rgba(130, 142, 160, 0.22)) 48%, transparent 50%),
    linear-gradient(72deg, transparent 58%, rgba(100, 112, 132, 0.16) 60%, transparent 62%),
    linear-gradient(160deg, #f7f9fc 0%, #e8ecf2 45%, #d5dbe5 100%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 28px var(--ms-rarity-soft);
}

.mobile-card--type-marbleswirl .mobile-card-bezel--back {
  filter: brightness(0.94) saturate(0.85);
}

.mobile-card--type-marbleswirl .mobile-card-bezel--back::before,
.mobile-card--type-marbleswirl .mobile-card-bezel--back::after {
  display: none;
}

.mobile-card--type-marbleswirl .mobile-card-frame {
  position: relative;
  z-index: 1;
  gap: 6px;
  padding: 10px 10px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.mobile-card--type-marbleswirl .mobile-card-title,
.mobile-card--type-marbleswirl[data-color] .mobile-card-title,
.mobile-card--type-marbleswirl .mobile-card-title span {
  z-index: 3;
  min-height: 22px;
  padding: 4px 10px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-text-stroke: 0;
  paint-order: normal;
}

.mobile-card--type-marbleswirl .mobile-card-title span {
  min-height: 0;
  padding: 0;
}

.mobile-card--type-marbleswirl .mobile-card-art {
  --ms-plate: min(72%, 140px);
  --ms-rim: min(86%, 168px);
  --ms-plate-radius: 12%;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 6px 0 2px;
  overflow: visible;
}

/* Outer chrome diamond rim — rarity owns the swirl; chrome is a highlight flash */
.mobile-card--type-marbleswirl .mobile-card-art::before {
  content: "";
  position: absolute;
  width: var(--ms-rim);
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: 14%;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      to top left,
      transparent 32%,
      color-mix(in srgb, var(--ms-rarity-bright) 70%, transparent) 68%,
      var(--ms-rarity) 100%
    ),
    conic-gradient(
      from 300deg,
      var(--ms-rarity-bright) 0deg,
      var(--ms-rarity) 42deg,
      var(--ms-rarity-deep) 78deg,
      var(--ms-swirl-b) 110deg,
      var(--ms-swirl-c) 142deg,
      var(--ms-rarity) 188deg,
      var(--ms-rarity-deep) 232deg,
      var(--ms-swirl-e) 278deg,
      var(--ms-rarity) 328deg,
      var(--ms-rarity-bright) 360deg
    );
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ms-rarity-deep) 70%, var(--ms-chrome-deep)),
    0 0 0 5px color-mix(in srgb, var(--ms-rarity-bright) 45%, #fff),
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 18px color-mix(in srgb, var(--ms-rarity-bright) 40%, rgba(255, 255, 255, 0.28));
}

/* Inner plate behind the icon — rarity-washed chrome, not plain gray */
.mobile-card--type-marbleswirl .mobile-card-art::after {
  content: "";
  position: absolute;
  width: var(--ms-plate);
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: var(--ms-plate-radius);
  pointer-events: none;
  z-index: 1;
  background:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0 5px,
      color-mix(in srgb, var(--ms-rarity) 28%, rgba(90, 102, 122, 0.16)) 5px 6px
    ),
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--ms-rarity-bright) 42%, #f0f4f9) 0%,
      color-mix(in srgb, var(--ms-rarity) 52%, #a8b2c0) 42%,
      color-mix(in srgb, var(--ms-rarity-deep) 62%, #4a5564) 100%
    );
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--ms-rarity-bright) 55%, #fff),
    inset 0 0 16px color-mix(in srgb, var(--ms-rarity-deep) 35%, rgba(0, 0, 0, 0.22));
}

/*
  Host matches outer rim so tip stamps have room. Icon is sized on its own
  (not as a % of a shrinking cascade).
*/
.mobile-card--type-marbleswirl .mobile-card-art-window,
.mobile-card--type-marbleswirl .mobile-card-art-window.image-wrap {
  position: relative;
  z-index: 2;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--ms-rim);
  height: var(--ms-rim);
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  transform: none;
  clip-path: none;
  -webkit-clip-path: none;
  isolation: auto;
}

.mobile-card--type-marbleswirl .mobile-card-art-window.mobile-card-effect-host {
  isolation: auto;
}

/* Marble Swirl has no variants — never show FX overlays in the diamond. */
.mobile-card--type-marbleswirl .mobile-card-art-window > [data-mobile-variant-fx="1"],
.mobile-card--type-marbleswirl .mobile-card-art-window > [class$="-fx"],
.mobile-card--type-marbleswirl .mobile-card-art-window > [class*="-fx "],
.mobile-card--type-marbleswirl .mobile-card-art-window > [class*="-fx__"],
.mobile-card--type-marbleswirl .mobile-card-art-window > [class$="-particles"] {
  display: none !important;
}

.mobile-card--type-marbleswirl .mobile-card-art-window > img.mobile-card-art-img,
.mobile-card--type-marbleswirl .mobile-card-art-window img,
.card-view-stage .mobile-card--type-marbleswirl .mobile-card-art-window img {
  position: relative;
  z-index: 2;
  width: 97px;
  max-width: 63%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
  background: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.38));
}

.mobile-card--type-marbleswirl .mobile-card-meta {
  z-index: 3;
  min-height: 24px;
  padding: 4px 10px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mobile-card--type-marbleswirl .mobile-card-set,
.mobile-card--type-marbleswirl .mobile-card-slot {
  color: #222;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-text-stroke: 0;
}

.mobile-card--type-marbleswirl .mobile-card-shine {
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.mobile-card--type-marbleswirl .mobile-card-stamp-slot,
.mobile-card--type-marbleswirl .mobile-card-stamps {
  z-index: 6;
  width: 22%;
  max-width: 52px;
  margin: 0;
}

/*
  Marble cards keep additionals in the open quadrants around the center diamond.
*/
.mobile-card--type-marbleswirl .mobile-card-stamp-slot--top-left {
  inset: auto;
  top: 30%;
  left: 22%;
  width: 22%;
  max-width: 52px;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mobile-card--type-marbleswirl .mobile-card-stamp-slot--top-right {
  inset: auto;
  top: 30%;
  right: 22%;
  width: 22%;
  max-width: 52px;
  transform: translate(50%, -50%) rotate(12deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-card--type-marbleswirl .mobile-card-stamp-slot--bottom-right {
  inset: auto;
  top: 62%;
  right: 22%;
  width: 22%;
  max-width: 52px;
  transform: translate(50%, -50%) rotate(-12deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-card--type-marbleswirl .mobile-card-stamp-slot--bottom-left {
  inset: auto;
  top: 62%;
  left: 22%;
  width: 22%;
  max-width: 52px;
  transform: translate(-50%, -50%) rotate(12deg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mobile-card--type-marbleswirl .mobile-card-stamps {
  inset: auto;
  right: 22%;
  top: 62%;
  transform: translate(50%, -50%) rotate(-12deg);
}

.mobile-card--type-marbleswirl .mobile-card-stamp {
  width: 100%;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.45))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.mobile-card--type-marbleswirl .mobile-card-stamp--auto,
.mobile-card--type-marbleswirl .mobile-card-stamp--wax,
.mobile-card--type-marbleswirl .mobile-card-stamp--limited,
.mobile-card--type-marbleswirl .mobile-card-stamp--one-of-one {
  width: 100%;
}

.mobile-card--type-marbleswirl .mobile-card-stamp-slot--top-left .mobile-card-stamp--auto,
.mobile-card--type-marbleswirl .mobile-card-stamp-slot--top-right .mobile-card-stamp--auto,
.mobile-card--type-marbleswirl .mobile-card-stamp-slot--bottom-right .mobile-card-stamp--auto,
.mobile-card--type-marbleswirl .mobile-card-stamp-slot--bottom-left .mobile-card-stamp--auto {
  transform-origin: 50% 50%;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-frame {
  padding: 7px 7px 6px;
  gap: 4px;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-title,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-title span {
  min-height: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-title span {
  min-height: 0;
  padding: 0;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art {
  --ms-plate: min(58%, 72px);
  --ms-rim: min(72%, 90px);
  padding: 2px 0 0;
  overflow: visible;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art-window {
  width: var(--ms-rim);
  height: var(--ms-rim);
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art-window img,
.card-view-stage .mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art-window img {
  width: 44px;
  max-width: 63%;
  max-height: none;
  transform: none;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamp-slot,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamps {
  width: 24%;
  max-width: 24px;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamp-slot--top-left,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamp-slot--top-right,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamp-slot--bottom-right,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-stamp-slot--bottom-left {
  width: 24%;
  max-width: 24px;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art::before {
  /* Rotated diamond bounding box ≈ width × √2 — keep under the mid-card clip. */
  width: min(62%, 72px);
  border-radius: 16%;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ms-rarity-deep) 70%, var(--ms-chrome-deep)),
    0 0 0 3px color-mix(in srgb, var(--ms-rarity-bright) 45%, #fff),
    0 4px 10px rgba(0, 0, 0, 0.28);
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art::after {
  width: var(--ms-plate);
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art-window {
  width: var(--ms-plate);
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-art-window img {
  width: min(78%, 52px);
  max-height: 78%;
  transform: none;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-meta {
  min-height: 18px;
  padding: 2px 6px;
}

.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-set,
.mobile-card--type-marbleswirl.mobile-card--compact .mobile-card-slot {
  font-size: 9px;
}
