/* Casino Classic — luxury gold/black/cream lobby template */
/* All selectors scoped under .lobby-template--casino-classic */
/* Every visible element exposes a
   --lobby-<slot> CSS variable with the template default as fallback.
   Admin custom palette overrides via inline <style> on the body root. */

.lobby-template--casino-classic {
  --cc-gold: var(--lobby-primary, #d4af37);
  --cc-black: var(--lobby-secondary, #0a0a0a);
  --cc-cream: #f5e6c8;
  --cc-wine: #4a0e1c;
  --cc-card-bg: #0d1421;
  --cc-card-border: rgba(212, 175, 55, 0.45);
  --cc-card-border-hover: rgba(212, 175, 55, 0.95);
  --cc-text-muted: rgba(245, 230, 200, 0.7);
  --cc-shadow-glow: 0 0 24px rgba(212, 175, 55, 0.18);
  --cc-join-bg-default: linear-gradient(180deg, #e8c863 0%, var(--cc-gold) 50%, #b8932a 100%);
  --cc-footer-rule-default: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
  --cc-section-rule-default: var(--cc-gold);
  /* Lobby-preview (Join Table) tokens — gold accent, deep navy card surface,
     classic green felt with a darkened-gold rim. */
  --lobby-accent: var(--cc-gold);
  --lobby-surface: var(--cc-card-bg);
  --lobby-text: var(--cc-cream);
  --lobby-felt-ink: var(--cc-cream);
  --felt-color-1: #1a7a42;
  --felt-color-2: #052c15;
  --rim-color: #b8932a;

  background-color: var(--cc-black);
  background-image: radial-gradient(ellipse at top, rgba(74, 14, 28, 0.55) 0%, var(--cc-black) 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--cc-cream);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  min-height: 100vh;
}

.lobby-template--casino-classic .lobby-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

/* ---------- Hero ---------- */
.lobby-template--casino-classic .lobby-hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  border: 1px solid var(--cc-card-border);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, rgba(10, 10, 10, 0) 100%),
    var(--cc-card-bg);
  overflow: hidden;
  box-shadow: var(--cc-shadow-glow);
}

.lobby-template--casino-classic .lobby-hero::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.lobby-template--casino-classic .lobby-hero__suits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 200px;
  color: rgba(212, 175, 55, 0.04);
  font-family: 'Playfair Display', serif;
}

.lobby-template--casino-classic .lobby-hero__suit {
  position: absolute;
  line-height: 1;
}

.lobby-template--casino-classic .lobby-hero__suit--spade   { top: -30px; left: 4%; transform: rotate(-12deg); }
.lobby-template--casino-classic .lobby-hero__suit--heart   { top: 20%;  right: 6%; font-size: 160px; color: rgba(74, 14, 28, 0.18); }
.lobby-template--casino-classic .lobby-hero__suit--diamond { bottom: -20px; left: 38%; font-size: 140px; color: rgba(74, 14, 28, 0.14); }
.lobby-template--casino-classic .lobby-hero__suit--club    { bottom: 8%; right: 18%; font-size: 110px; transform: rotate(8deg); }

.lobby-template--casino-classic .lobby-hero__logo {
  position: relative;
  margin: 0 auto 18px;
  color: var(--cc-gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
}

.lobby-template--casino-classic .lobby-hero__logo img {
  max-height: 64px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.lobby-template--casino-classic .lobby-hero__title {
  position: relative;
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.01em;
  color: var(--lobby-hero-title-color, var(--cc-gold));
  text-shadow:
    0 0 20px rgba(212, 175, 55, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.5);
  font-feature-settings: "liga" 1, "dlig" 1;
}

.lobby-template--casino-classic .lobby-hero__tagline {
  position: relative;
  margin: 0 auto;
  max-width: 620px;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--lobby-hero-tagline-color, var(--cc-cream));
  letter-spacing: 0.02em;
}

.lobby-template--casino-classic .lobby-hero__divider {
  position: relative;
  margin: 28px auto 0;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
}

.lobby-template--casino-classic .lobby-hero__ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cc-card-bg);
  padding: 0 10px;
  color: var(--cc-gold);
  font-size: 14px;
}

/* ---------- Stats ---------- */
.lobby-template--casino-classic .lobby-stats {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  color: var(--cc-cream);
}

.lobby-template--casino-classic .lobby-stats dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  font-weight: 500;
}

.lobby-template--casino-classic .lobby-stats dd {
  margin: 4px 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--cc-gold);
}

/* ---------- Tables ---------- */
.lobby-template--casino-classic .lobby-tables {
  margin-top: 56px;
}

.lobby-template--casino-classic .lobby-tables__heading {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--lobby-section-heading-color, var(--cc-cream));
  letter-spacing: 0.04em;
  margin: 0 0 32px;
  position: relative;
}

.lobby-template--casino-classic .lobby-tables__heading::after {
  content: '';
  display: block;
  margin: 12px auto 0;
  width: 64px;
  height: 1px;
  background: var(--lobby-section-rule-color, var(--cc-section-rule-default));
  opacity: 0.6;
}

.lobby-template--casino-classic .lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lobby-template--casino-classic .lobby-card {
  position: relative;
  background: var(--lobby-card-bg, var(--cc-card-bg));
  border: 1px solid var(--lobby-card-border, var(--cc-card-border));
  border-radius: 3px;
  padding: 24px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.lobby-template--casino-classic .lobby-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.lobby-template--casino-classic .lobby-card:hover {
  border-color: var(--lobby-card-border, var(--cc-card-border-hover));
  box-shadow: 0 0 28px var(--lobby-card-glow, rgba(212, 175, 55, 0.28));
  transform: translateY(-2px);
}

.lobby-template--casino-classic .lobby-card:hover::before {
  border-color: rgba(212, 175, 55, 0.32);
}

.lobby-template--casino-classic .lobby-card__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--lobby-card-title-color, var(--cc-gold));
  letter-spacing: 0.01em;
}

.lobby-template--casino-classic .lobby-card__meta,
.lobby-template--casino-classic .lobby-card__variant {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lobby-card-variant-color, var(--cc-text-muted));
  margin-bottom: 16px;
}

.lobby-template--casino-classic .lobby-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 20px;
}

.lobby-template--casino-classic .lobby-card__stats dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lobby-card-stat-label-color, var(--cc-text-muted));
  font-weight: 500;
}

.lobby-template--casino-classic .lobby-card__stats dd {
  margin: 2px 0 0;
  font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
  font-size: 15px;
  color: var(--lobby-card-stat-value-color, var(--cc-cream));
  font-variant-numeric: tabular-nums;
}

.lobby-template--casino-classic .lobby-card__cta,
.lobby-template--casino-classic .lobby-card a.lobby-card__cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  background: var(--lobby-join-bg, var(--cc-join-bg-default));
  color: var(--lobby-join-text-color, var(--cc-black));
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.lobby-template--casino-classic .lobby-card__cta:hover {
  box-shadow: 0 0 18px var(--lobby-join-glow, rgba(212, 175, 55, 0.65));
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.lobby-template--casino-classic .lobby-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--cc-text-muted);
  font-style: italic;
  border: 1px dashed var(--cc-card-border);
  border-radius: 3px;
}

/* ---------- Footer ---------- */
.lobby-template--casino-classic .lobby-footer {
  margin-top: 64px;
  padding: 28px 0 12px;
  text-align: center;
}

.lobby-template--casino-classic .lobby-footer__rule {
  width: 180px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--lobby-footer-rule-color, var(--cc-footer-rule-default));
  opacity: 0.5;
}

.lobby-template--casino-classic .lobby-footer__line {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lobby-footer-text-color, var(--cc-text-muted));
  font-variant-caps: small-caps;
}

.lobby-template--casino-classic .lobby-footer__sep {
  margin: 0 10px;
  color: var(--cc-gold);
}

.lobby-template--casino-classic .lobby-footer__tag {
  color: var(--cc-gold);
  font-style: italic;
  letter-spacing: 0.16em;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .lobby-template--casino-classic .lobby-shell { padding: 24px 16px; }
  .lobby-template--casino-classic .lobby-hero { padding: 48px 16px 40px; }
  .lobby-template--casino-classic .lobby-hero__title { font-size: 32px; }
  .lobby-template--casino-classic .lobby-tables { margin-top: 40px; }
  .lobby-template--casino-classic .lobby-grid { grid-template-columns: 1fr; }
}
