/* OnlineSolitare.com — Advanced 3D Design System */
:root {
  --bg-deep: #080c14;
  --bg-main: #0d1117;
  --bg-card: #161b27;
  --bg-panel: #1c2333;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #14532d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #c9a84c;
  --text-100: #f1f5f9;
  --text-300: #94a3b8;
  --text-500: #64748b;
  --border-subtle: rgba(255,255,255,0.06);
  --border-green: rgba(34,197,94,0.3);
  --border-gold: rgba(201,168,76,0.25);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6), 0 8px 40px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7), 0 20px 80px rgba(0,0,0,0.4);
  --glow-green: 0 0 20px rgba(34,197,94,0.35), 0 0 60px rgba(34,197,94,0.12);
  --glow-gold: 0 0 20px rgba(251,191,36,0.35), 0 0 60px rgba(251,191,36,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-100);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(22,163,74,0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 85%, rgba(201,168,76,0.06) 0%, transparent 45%),
    linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,12,20,0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 4px 32px rgba(0,0,0,0.6), 0 0 60px rgba(201,168,76,0.04);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  padding: 0 24px; height: 66px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: 20px; flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #f59e0b, #c9a84c);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(245,158,11,0.45), 0 0 0 1px rgba(245,158,11,0.2),
              0 2px 0 rgba(0,0,0,0.5) inset;
  transform: rotate(-5deg);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.logo:hover .logo-icon { transform: rotate(0deg) scale(1.08); }
.logo-text { font-size: 17px; font-weight: 800; color: var(--gold-400); letter-spacing: -0.4px; line-height: 1; }
.logo-domain { font-size: 11px; color: var(--text-500); font-weight: 400; display: block; margin-top: 2px; letter-spacing: 0.3px; }

.nav-link {
  color: var(--text-300); text-decoration: none;
  font-size: 13.5px; font-weight: 500; padding: 8px 12px;
  border-radius: 8px; transition: all 0.18s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-100); background: rgba(255,255,255,0.07);
}

.nav-spacer { flex: 1; }

.nav-cta {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 700; padding: 9px 20px;
  border-radius: 22px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(22,163,74,0.45), 0 0 0 1px rgba(22,163,74,0.25);
  transition: all 0.22s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(22,163,74,0.55); }

/* ── HERO ── */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(22,163,74,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣';
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; font-size: 22px; letter-spacing: 14px;
  color: rgba(255,255,255,0.04); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.28);
  color: var(--gold-400); padding: 7px 18px; border-radius: 50px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px;
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(201,168,76,0.08);
}
.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900; letter-spacing: -3px;
  line-height: 1.0; margin-bottom: 22px;
}
.hero h1 .grad-white {
  background: linear-gradient(170deg, #fff 30%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 em {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-style: normal;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-300); line-height: 1.75;
  max-width: 560px; margin: 0 auto 40px; font-weight: 400;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-suits {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.suit-float {
  position: absolute; font-size: 32px;
  opacity: 0.04; animation: suitDrift linear infinite;
}
@keyframes suitDrift {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-10vh) rotate(360deg); }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
  padding: 15px 34px; border-radius: 50px;
  box-shadow: 0 4px 22px rgba(22,163,74,0.5), 0 0 0 1px rgba(22,163,74,0.3),
              0 -2px 0 rgba(0,0,0,0.2) inset;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none; font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 36px rgba(22,163,74,0.6), 0 0 0 1px rgba(22,163,74,0.4),
              var(--glow-green);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  font-size: 16px; font-weight: 600;
  padding: 15px 34px; border-radius: 50px;
  transition: all 0.2s; text-decoration: none; font-family: inherit;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* ── SECTION ── */
.section { max-width: 1280px; margin: 0 auto; padding: 60px 24px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-title { font-size: 30px; font-weight: 800; color: var(--text-100); letter-spacing: -0.5px; }
.section-title em { color: var(--gold-400); font-style: normal; }
.see-all { margin-left: auto; font-size: 14px; color: var(--text-300); text-decoration: none; transition: color 0.2s; }
.see-all:hover { color: var(--green-500); }

/* ── STATS ── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 56px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px; padding: 26px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  border-radius: 18px;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow-md), var(--glow-gold); }
.stat-icon { font-size: 38px; margin-bottom: 10px; }
.stat-num { font-size: 40px; font-weight: 900; color: var(--gold-400); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-300); margin-top: 6px; font-weight: 500; }

/* ── GAME CARDS ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  text-decoration: none; color: inherit;
  display: block; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
}
.game-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 55%);
  border-radius: 22px; pointer-events: none; z-index: 1;
}
.game-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  pointer-events: none; z-index: 1;
}
.game-card:hover {
  transform: perspective(700px) translateZ(28px) translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-green), var(--glow-green);
  border-color: rgba(34,197,94,0.35);
}
.game-card-header {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 70px;
  position: relative;
  transition: all 0.35s;
}
.game-card:hover .game-card-header { transform: scale(1.04); }
.game-card-body { padding: 18px 20px 22px; position: relative; z-index: 2; }
.game-card-name { font-size: 17px; font-weight: 700; margin-bottom: 7px; color: var(--text-100); }
.game-card-desc { font-size: 13px; color: var(--text-300); line-height: 1.55; margin-bottom: 18px; }
.game-card-btn {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
  display: block; text-align: center; text-decoration: none;
}
.game-card-btn:hover { background: linear-gradient(135deg, var(--green-500), var(--green-600)); box-shadow: 0 6px 20px rgba(22,163,74,0.5); }

/* ── FEATURE BANNER ── */
.feature-banner {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border-gold);
  border-radius: 26px; padding: 44px;
  display: flex; gap: 44px; align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md), var(--glow-gold);
}
.feature-banner::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.feature-pills {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  min-width: 260px; flex: 0 0 auto;
}
.pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 13px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-100);
}

/* ── GAME TOOLBAR ── */
.game-toolbar {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 66px; z-index: 100;
}
.game-toolbar-title {
  color: var(--gold-400); font-size: 18px; font-weight: 700; flex: 1;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; font-family: inherit; text-decoration: none;
}
.btn-back:hover { background: rgba(255,255,255,0.14); transform: translateX(-2px); }
.btn-rules {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.12); color: var(--gold-400);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 10px; padding: 9px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-rules:hover { background: rgba(201,168,76,0.22); }

/* ── RULES MODAL ── */
.rules-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto; padding: 30px 20px;
  align-items: flex-start; justify-content: center;
}
.rules-overlay.show { display: flex; }
.rules-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 22px; padding: 34px;
  max-width: 560px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.9), var(--glow-gold);
  margin-top: 24px;
}
.rules-box h2 { font-size: 24px; color: var(--gold-400); margin-bottom: 18px; font-weight: 800; }
.rules-box h3 { font-size: 15px; color: var(--green-500); margin: 16px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.rules-box p, .rules-box li { font-size: 15px; line-height: 1.75; color: var(--text-300); }
.rules-box ul { margin-left: 22px; }
.btn-rules-close {
  background: rgba(255,255,255,0.07); color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 20px;
  font-size: 14px; cursor: pointer;
  margin-bottom: 22px; font-family: inherit;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-rules-close:hover { background: rgba(255,255,255,0.13); }

/* ── SHARED GAME ELEMENTS ── */
.g-wrap {
  display: flex; flex-direction: column; align-items: center;
  min-height: 100%; padding: 24px; gap: 16px; font-family: Georgia, serif;
}
.g-title { font-size: 28px; font-weight: bold; color: #c9a84c; }
.g-info { font-size: 17px; color: #fff; }
.g-btn {
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  color: white; border: none; border-radius: 50px;
  padding: 13px 32px; font-size: 17px; font-weight: bold; cursor: pointer;
  font-family: Georgia, serif; transition: all 0.18s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 -2px 0 rgba(0,0,0,0.3) inset;
}
.g-btn:hover { background: linear-gradient(135deg, #40916c, #2d6a4f); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.g-btn:active { transform: translateY(0); }
.g-btn.red { background: linear-gradient(135deg, #c0392b, #922b21); }
.g-btn.red:hover { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.g-btn.gold { background: linear-gradient(135deg, #c9a84c, #a07832); color: #1b4332; }
.g-btn.gold:hover { background: linear-gradient(135deg, #e5c060, #c9a84c); }
.g-btn.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.g-btn.blue:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.g-msg {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(8,12,20,0.97); color: white; border-radius: 22px;
  padding: 40px 52px; text-align: center; z-index: 300; min-width: 280px;
  max-width: 90vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.95), 0 0 0 1px rgba(201,168,76,0.3), var(--glow-gold);
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(20px);
}
.g-msg h2 { font-size: 32px; color: #c9a84c; margin-bottom: 14px; font-family: Georgia, serif; }
.g-msg p { font-size: 18px; margin-bottom: 22px; line-height: 1.65; color: rgba(255,255,255,0.85); }
.g-msg button { background: linear-gradient(135deg, #2d6a4f, #1b4332); color: white; border: none; border-radius: 50px; padding: 13px 28px; font-size: 17px; font-weight: bold; cursor: pointer; margin: 5px; font-family: Georgia, serif; box-shadow: 0 4px 14px rgba(0,0,0,0.4); transition: all 0.18s; }
.g-msg button:hover { background: linear-gradient(135deg, #40916c, #2d6a4f); transform: translateY(-2px); }
.g-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.g-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ── PLAYING CARDS ── */
.card {
  display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; width: 76px; height: 108px;
  background: white; border: 2px solid #ccc; border-radius: 11px;
  font-size: 22px; font-weight: bold; cursor: default;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.9) inset;
  flex-shrink: 0; transition: transform 0.18s, box-shadow 0.18s;
}
.card.red { color: #c0392b; }
.card.black { color: #1a1a1a; }
.card.back {
  background: repeating-linear-gradient(135deg, #1a5c8a 0, #1a5c8a 10px, #0d3d5c 10px, #0d3d5c 20px);
  border-color: #0a2e4a; cursor: pointer;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-7px); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
.card.selected { border-color: #f39c12; box-shadow: 0 0 0 3px #f39c12, 0 4px 14px rgba(0,0,0,0.4); }
.card.empty-slot {
  background: rgba(0,0,0,0.15); border: 2px dashed rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.35); font-size: 28px;
}
.card .rank { font-size: 1em; line-height: 1.1; }
.card .suit { font-size: 0.85em; }

/* ── ABOUT / CONTACT ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
  border-bottom: 1px solid var(--border-gold);
  padding: 64px 24px; text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 14px; }
.page-hero p { font-size: 18px; color: var(--text-300); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.content-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 32px;
  margin-bottom: 20px; transition: border-color 0.3s;
}
.content-card:hover { border-color: var(--border-gold); }
.content-card h2 { font-size: 20px; font-weight: 700; color: var(--gold-400); margin-bottom: 14px; }
.content-card p { color: var(--text-300); line-height: 1.8; font-size: 15px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-300); margin-bottom: 7px; letter-spacing: 0.4px; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--bg-main);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 13px 16px; color: var(--text-100); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--border-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ── FOOTER ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-gold);
  color: var(--text-300); text-align: center;
  padding: 36px 24px; font-size: 14px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-300); text-decoration: none; transition: color 0.2s; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { font-size: 12.5px; color: var(--text-500); margin-top: 8px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-link:not(.nav-cta) { display: none; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
  .feature-banner { padding: 28px; }
  .feature-pills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero h1 { letter-spacing: -2px; }
}

/* ══════════════════════════════════════════════════════════
   PREMIUM 3D & CASINO ENHANCEMENTS — OnlineSolitare.com
   ══════════════════════════════════════════════════════════ */

/* ── 3D CARD HOVER ── */
.card-3d {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d:hover {
  transform: perspective(800px) rotateY(8deg) translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.65), 0 0 0 2px rgba(34,197,94,0.5), 0 0 28px rgba(34,197,94,0.2);
}

/* ── SPARKLE / PARTICLE ANIMATION ── */
@keyframes sparkle {
  0%   { transform: scale(0) rotate(0deg);   opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: scale(1.4) rotate(180deg); opacity: 0.8; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}
@keyframes sparkleFloat {
  0%   { transform: translateY(0) scale(1);     opacity: 1; }
  100% { transform: translateY(-60px) scale(0); opacity: 0; }
}
.sparkle {
  position: relative; overflow: visible;
}
.sparkle::before,
.sparkle::after {
  content: '✦';
  position: absolute; font-size: 14px; color: var(--gold-400);
  pointer-events: none; animation: sparkle 1.4s ease-in-out infinite;
}
.sparkle::before { top: -8px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.sparkle::after  { top: -8px; right: 10px; font-size: 10px; animation-delay: 0.7s; }

/* ── CASINO CHIP COMPONENT ── */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 13px; font-weight: 900; font-family: 'Inter', sans-serif;
  border: 4px dashed rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55), 0 0 0 2px rgba(255,255,255,0.08),
              0 -3px 0 rgba(0,0,0,0.4) inset;
  cursor: default; user-select: none; flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  position: relative;
}
.chip::before {
  content: '';
  position: absolute; inset: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.chip:hover { transform: translateY(-4px) scale(1.08); }

.chip.chip-gold {
  background: radial-gradient(circle at 35% 35%, #f5d060, #c9a84c 50%, #a07832 100%);
  color: #3d2600; border-color: rgba(255,220,80,0.5);
  box-shadow: 0 4px 16px rgba(201,168,76,0.6), 0 0 24px rgba(201,168,76,0.2);
}
.chip.chip-red {
  background: radial-gradient(circle at 35% 35%, #f87171, #dc2626 50%, #991b1b 100%);
  color: #fff; border-color: rgba(248,113,113,0.45);
  box-shadow: 0 4px 16px rgba(220,38,38,0.55), 0 0 20px rgba(220,38,38,0.2);
}
.chip.chip-blue {
  background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb 50%, #1d4ed8 100%);
  color: #fff; border-color: rgba(96,165,250,0.45);
  box-shadow: 0 4px 16px rgba(37,99,235,0.55), 0 0 20px rgba(37,99,235,0.2);
}
.chip.chip-black {
  background: radial-gradient(circle at 35% 35%, #475569, #1e293b 50%, #0f172a 100%);
  color: #fbbf24; border-color: rgba(100,116,139,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
}
.chip.chip-green {
  background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a 50%, #15803d 100%);
  color: #fff; border-color: rgba(74,222,128,0.45);
  box-shadow: 0 4px 16px rgba(22,163,74,0.55), 0 0 20px rgba(22,163,74,0.2);
}

/* Chip size variants */
.chip.chip-sm { width: 38px; height: 38px; font-size: 11px; border-width: 3px; }
.chip.chip-lg { width: 70px; height: 70px; font-size: 17px; border-width: 5px; }

/* Poker chip counter row */
.chip-counter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.chip-counter-label {
  font-size: 13px; font-weight: 700; color: var(--text-300); letter-spacing: 0.4px;
}
.chip-total {
  font-size: 22px; font-weight: 900; color: var(--gold-400);
  text-shadow: 0 0 16px rgba(251,191,36,0.4);
}

/* ── CTA GLOW PULSE ── */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 4px 22px rgba(22,163,74,0.5), 0 0 0 1px rgba(22,163,74,0.3),
                0 0 0 0 rgba(22,163,74,0.3);
  }
  50% {
    box-shadow: 0 4px 22px rgba(22,163,74,0.5), 0 0 0 1px rgba(22,163,74,0.3),
                0 0 0 10px rgba(22,163,74,0);
  }
}
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(201,168,76,0.5), 0 0 0 1px rgba(201,168,76,0.3),
                0 0 0 0 rgba(201,168,76,0.3);
  }
  50% {
    box-shadow: 0 4px 18px rgba(201,168,76,0.5), 0 0 0 1px rgba(201,168,76,0.3),
                0 0 0 10px rgba(201,168,76,0);
  }
}
.btn-glow-pulse { animation: glowPulse 2s ease-in-out infinite; }
.btn-glow-pulse-gold { animation: goldPulse 2s ease-in-out infinite; }
.btn-primary.btn-glow-pulse { animation: glowPulse 2s ease-in-out infinite; }

/* ── GAME BADGE (NEW / HOT / etc.) ── */
.game-badge {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  padding: 4px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.game-badge.badge-new {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; border: 1px solid rgba(59,130,246,0.4);
  box-shadow: 0 2px 10px rgba(59,130,246,0.5);
}
.game-badge.badge-hot {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0a00; border: 1px solid rgba(245,158,11,0.4);
  box-shadow: 0 2px 10px rgba(245,158,11,0.5);
}
.game-badge.badge-top {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 2px 10px rgba(34,197,94,0.5);
}
.game-badge.badge-premium {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 2px 10px rgba(168,85,247,0.5);
}

/* ── LEADERBOARD ROW ── */
.leaderboard {
  width: 100%; max-width: 600px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.leaderboard-header {
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.04));
  border-bottom: 1px solid var(--border-gold);
  font-size: 15px; font-weight: 800; color: var(--gold-400);
  letter-spacing: 0.3px;
}
.leaderboard-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.18s;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: rgba(255,255,255,0.03); }
.leaderboard-row.top-row { background: rgba(201,168,76,0.06); }
.lb-rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
  background: rgba(255,255,255,0.06); color: var(--text-300);
}
.lb-rank.gold   { background: linear-gradient(135deg, #f5d060, #c9a84c); color: #3d2600; }
.lb-rank.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1e293b; }
.lb-rank.bronze { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }
.lb-name  { flex: 1; font-size: 15px; font-weight: 600; color: var(--text-100); }
.lb-score { font-size: 17px; font-weight: 800; color: var(--gold-400); }
.lb-badge { font-size: 11px; background: rgba(34,197,94,0.12); color: var(--green-500); padding: 3px 8px; border-radius: 8px; font-weight: 700; border: 1px solid rgba(34,197,94,0.2); }

/* ── PREMIUM FELT TABLE TEXTURE ── */
.felt-premium {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(34,197,94,0.06) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px),
    radial-gradient(ellipse at 50% 40%, #0a4a1e 0%, #051a0a 100%);
}

/* ── PLAYING CARD UPGRADE: premium white-gradient face ── */
.card.premium {
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 40%, #f5f5f5 100%);
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.9) inset,
              0 -1px 0 rgba(0,0,0,0.08) inset;
}
.card.premium:hover {
  transform: perspective(800px) rotateY(8deg) translateY(-10px) scale(1.06);
  box-shadow: 0 18px 42px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.card.premium.clickable:hover {
  transform: perspective(800px) rotateY(8deg) translateY(-10px) scale(1.06);
  box-shadow: 0 18px 42px rgba(0,0,0,0.65), 0 0 0 2px rgba(34,197,94,0.7),
              0 0 24px rgba(34,197,94,0.3);
}

/* ── WIN / LOSE FLASH OVERLAYS ── */
@keyframes winFlash {
  0%   { opacity: 0; transform: scale(0.85); }
  40%  { opacity: 1; transform: scale(1.04); }
  70%  { transform: scale(0.98); }
  100% { transform: scale(1); opacity: 1; }
}
.win-flash  { animation: winFlash 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards; }

@keyframes cardFlipIn {
  0%   { transform: perspective(800px) rotateY(-90deg) scale(0.8); opacity: 0; }
  100% { transform: perspective(800px) rotateY(0deg) scale(1);    opacity: 1; }
}
.card-flip-in { animation: cardFlipIn 0.38s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* ── SCORE TICKER ── */
@keyframes tickUp {
  0%   { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}
.score-tick { animation: tickUp 0.3s ease-out; display: inline-block; }

/* ── NEON GLOW VARIANTS ── */
.glow-green-text { color: #4ade80; text-shadow: 0 0 12px rgba(74,222,128,0.6), 0 0 30px rgba(74,222,128,0.3); }
.glow-gold-text  { color: var(--gold-400); text-shadow: 0 0 12px rgba(251,191,36,0.6), 0 0 30px rgba(251,191,36,0.3); }
.glow-red-text   { color: #f87171; text-shadow: 0 0 12px rgba(248,113,113,0.6), 0 0 30px rgba(248,113,113,0.3); }

/* ── FLOATING CARD SUIT DECORATIONS ── */
.suit-decor {
  position: absolute; font-size: 120px; font-weight: 900;
  opacity: 0.03; pointer-events: none; user-select: none;
  line-height: 1;
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 600px) {
  .chip { width: 40px; height: 40px; font-size: 11px; border-width: 3px; }
  .chip.chip-lg { width: 54px; height: 54px; font-size: 14px; }
  .leaderboard-row { padding: 11px 14px; gap: 10px; }
  .lb-score { font-size: 15px; }
}
