/* ============================================================
   Black Jack TCG — Table & Card design tokens
   ============================================================ */

.font-display { font-family: 'Cinzel', serif; }
.font-card { font-family: 'Playfair Display', serif; }

/* ---- Felt table: soft top-down lighting + inner shadow ---- */
.felt-surface {
  position: relative;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 110%, rgba(0,0,0,0.35), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 12px 40px rgba(0,0,0,0.45),
    inset 0 -8px 30px rgba(0,0,0,0.35);
}

.felt-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---- Wood + brass rail that frames the felt ---- */
.table-rail {
  background:
    linear-gradient(155deg, #4a2f1a 0%, #2b1810 45%, #1a0f09 100%);
  box-shadow:
    inset 0 0 0 1px rgba(212,175,106,0.35),
    inset 0 2px 6px rgba(255,255,255,0.08),
    inset 0 -4px 10px rgba(0,0,0,0.6),
    0 10px 30px rgba(0,0,0,0.5);
}

/* ---- Card back: ornamental lattice + medallion ---- */
.card-back-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, #1b1230 0%, #2c1c4a 50%, #170f28 100%);
  overflow: hidden;
}
.card-back-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 7px, rgba(212,175,106,0.16) 7px, rgba(212,175,106,0.16) 8px),
    repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(212,175,106,0.16) 7px, rgba(212,175,106,0.16) 8px);
}
.card-back-face::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(212,175,106,0.55);
  border-radius: 6px;
}

/* ---- Gilded button sheen ---- */
.btn-gilded {
  background: linear-gradient(180deg, #f0d78c 0%, #d4af6a 45%, #a97c2f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(122,88,32,0.5),
    0 2px 8px rgba(0,0,0,0.35);
}

/* ---- Card stock subtle paper gradient ---- */
.card-stock {
  background: linear-gradient(160deg, #fdfbf6 0%, #f2ebda 100%);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.gold-shimmer {
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
}
