/* =========================================================
   BestRewardz — Stylesheet
   Palette: emerald / gold / cream / dark
   Fonts: Playfair Display (headings) + Source Sans Pro (body)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --emerald: #1a4d3a;
  --emerald-light: #246b51;
  --gold: #d4a843;
  --gold-light: #ecc66a;
  --cream: #faf6ed;
  --dark: #0d2218;
  --dark-2: #112d20;
  --error: #c0392b;
  --success: #27ae60;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --t: 0.3s ease;

  --shadow-gold: 0 0 22px rgba(212, 168, 67, 0.45);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--gold-light); }

ul { padding-left: 1.2rem; }

/* ---------- 3. Base / background ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--dark);
  /* Subtle Art Deco diamond pattern in gold, low opacity */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23d4a843' stroke-width='1' opacity='0.08'><path d='M30 0 L60 30 L30 60 L0 30 Z'/><path d='M30 14 L46 30 L30 46 L14 30 Z'/></g></svg>");
  background-size: 60px 60px;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Decorative divider */
.divider {
  width: 80px;
  height: 2px;
  margin: 1rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--cream);
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.gold        { color: var(--gold); }
.text-center { text-align: center; }
.muted       { color: rgba(250, 246, 237, 0.7); }

/* ---------- 5. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 4.5rem 0; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: var(--r-md);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--dark);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-block { display: block; width: 100%; }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 34, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.logo:hover { color: var(--gold-light); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.main-nav a {
  color: var(--cream);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--t);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.nav-cta { padding: 0.5rem 1.1rem; }

@media (max-width: 600px) {
  .main-nav { gap: 0.85rem; font-size: 0.95rem; width: 100%; justify-content: center; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1rem 4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.25), transparent 60%),
    linear-gradient(180deg, var(--dark-2), var(--dark));
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(212, 168, 67, 0.12) 45%,
    rgba(212, 168, 67, 0.25) 50%,
    rgba(212, 168, 67, 0.12) 55%,
    transparent 70%
  );
  background-size: 250% 250%;
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero .container { position: relative; z-index: 1; }
.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: rgba(250, 246, 237, 0.85);
}

.hero h1 span { color: var(--gold); }

/* ---------- 9. Promo strip ---------- */
.promo-strip {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  color: var(--dark);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
}

/* ---------- 10. Games grid ---------- */
.games-section h2 { text-align: center; }
.games-section .lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: rgba(250, 246, 237, 0.8);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

.game-card {
  position: relative;
  background: var(--dark-2);
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-light);
}
.game-card:hover::before { transform: translateX(100%); }

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(212, 168, 67, 0.4);
}

.game-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.game-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--cream);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.45);
}

.game-card .btn { margin-top: auto; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(212, 168, 67, 0.3);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a { color: var(--cream); font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }


.legal-disclaimer {
  font-size: 0.85rem;
  color: rgba(250, 246, 237, 0.65);
  max-width: 820px;
  margin: 0 auto 1.25rem;
  text-align: center;
  line-height: 1.55;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(250, 246, 237, 0.55);
  text-align: center;
}

.footer-center { text-align: center; }

/* ---------- 12. Age-gate overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 34, 24, 0.96);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease;
}

.overlay[hidden] { display: none; }

.overlay-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-gold);
  padding: 2rem 1.5rem;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.overlay-card .logo {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.overlay-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.overlay-card p {
  margin: 0 0 1.5rem;
  color: rgba(250, 246, 237, 0.8);
}

.overlay-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- 13. Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--dark-2);
  border-top: 2px solid var(--gold);
  padding: 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1 1 280px;
  color: rgba(250, 246, 237, 0.85);
}

.cookie-banner .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ---------- 14. Sign-to-Play modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 34, 24, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  color: var(--dark);
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-gold);
  animation: slideIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  margin: auto;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card h2 {
  margin: 0 0 0.25rem;
  color: var(--emerald);
  font-size: 1.6rem;
  text-align: center;
}

.modal-card .lead {
  text-align: center;
  color: rgba(13, 34, 24, 0.75);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--emerald);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.modal-close:hover { background: rgba(26, 77, 58, 0.1); }

/* ---------- 15. Forms ---------- */
.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--emerald);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--dark);
  background: #fff;
  border: 1.5px solid rgba(26, 77, 58, 0.3);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.25);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: var(--error);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--dark);
}
.checkbox-field input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--emerald);
  flex-shrink: 0;
}
.checkbox-field a { color: var(--emerald); font-weight: 600; text-decoration: underline; }

.error-msg {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.form-field.error .error-msg,
.checkbox-field.error .error-msg { display: block; }

.success-message {
  display: none;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid var(--success);
  border-radius: var(--r-md);
  color: var(--success);
  font-weight: 600;
  text-align: center;
}
.success-message.is-visible { display: block; }

.modal-card .btn-primary { margin-top: 0.5rem; }

/* ---------- 16. Content pages (legal etc.) ---------- */
.page-header {
  padding: 4rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}

.page-header h1 { color: var(--gold); }
.page-header p { color: rgba(250, 246, 237, 0.8); margin: 0; }

.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.content h2 {
  color: var(--gold);
  margin-top: 2rem;
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  padding-bottom: 0.4rem;
}

.content h3 { color: var(--gold-light); margin-top: 1.5rem; }

.content p, .content li { color: rgba(250, 246, 237, 0.88); }

.content ul, .content ol { margin: 0.5rem 0 1rem; }

.content a { color: var(--gold); text-decoration: underline; }

.last-updated {
  font-size: 0.9rem;
  color: rgba(250, 246, 237, 0.6);
  font-style: italic;
}

/* Resource cards on responsible-gaming page */
.resource-card {
  background: var(--dark-2);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.resource-card h3 { margin-top: 0; }
.resource-card .phone {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
}

/* Contact page two-column layout */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 2fr 1fr; }
}

.contact-info {
  background: var(--dark-2);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.contact-info h3 { color: var(--gold); margin-top: 0; }
.contact-info p { margin: 0.4rem 0; }

.contact-form {
  background: var(--dark-2);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.contact-form .form-field label { color: var(--gold); }
.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea {
  background: var(--dark);
  color: var(--cream);
  border-color: rgba(212, 168, 67, 0.3);
}
.contact-form .form-field input:focus,
.contact-form .form-field select:focus,
.contact-form .form-field textarea:focus {
  border-color: var(--gold);
}

/* ---------- 17. Utility ---------- */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   18. Game pages — coin chip, slots, table cards, video poker
   ========================================================= */

.game-page-header {
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  padding: 2rem 1rem 1.5rem;
}
.game-page-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.game-page-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold);
}
.game-page-header .badge { font-size: 0.78rem; }
.game-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--dark);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.3);
}
.coin-chip .coin-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 38% 35%, #ffe566 0%, #c8860a 100%);
  border-radius: 50%;
  border: 1.5px solid rgba(255,210,60,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}

.lobby-link {
  font-weight: 600;
  color: var(--cream);
}
.lobby-link:hover { color: var(--gold); }

.game-stage {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.25rem;
  background: var(--dark-2);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.game-status {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  min-height: 1.5em;
  color: var(--cream);
}
.game-status.win {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 168, 67, 0.5);
}
.game-status.win-small { color: var(--gold-light); }
.game-status.loss { color: rgba(250, 246, 237, 0.65); }

.bet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.bet-controls label {
  font-weight: 600;
  color: var(--gold);
  margin-right: 0.25rem;
}
.bet-controls select {
  padding: 0.55rem 0.75rem;
  background: var(--dark);
  color: var(--cream);
  border: 1.5px solid rgba(212, 168, 67, 0.4);
  border-radius: var(--r-sm);
  font: inherit;
}
.bet-controls select:focus {
  outline: none;
  border-color: var(--gold);
}
.bet-controls .btn { padding: 0.55rem 1.2rem; }
.btn-bet {
  background: var(--emerald);
  color: var(--cream);
  border: 2px solid var(--gold);
}
.btn-bet:hover:not(:disabled) {
  background: var(--emerald-light);
  box-shadow: var(--shadow-gold);
}
.btn-red    { background: #8b1d22; border-color: #c0392b; }
.btn-black  { background: #111; border-color: #444; }
.btn-green  { background: #15663f; border-color: var(--gold); }
.btn:disabled, .btn-bet:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Locked overlay (when not registered) ---------- */
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 34, 24, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-lg);
  z-index: 10;
}
.locked-card {
  text-align: center;
  max-width: 340px;
  padding: 2rem 1.5rem;
  background: var(--dark);
  border: 2px solid var(--gold);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-gold);
}
.locked-card h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
.locked-card p { margin: 0 0 1.25rem; color: rgba(250, 246, 237, 0.85); }

/* ---------- Slots ---------- */
.slot-machine {
  position: relative;
  background: linear-gradient(180deg, #15402f, #0d2218);
  border: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}
.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.reel {
  background: #fff8e7;
  border: 2px solid var(--gold);
  border-radius: var(--r-md);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
}
.reel .symbol {
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.4;
  width: 100%;
  text-align: center;
  user-select: none;
  transition: transform 0.1s ease;
}
.reel .symbol.payline {
  background: rgba(212, 168, 67, 0.18);
  border-top: 1px dashed var(--gold);
  border-bottom: 1px dashed var(--gold);
}
.reel .symbol.flash {
  animation: flash 0.4s ease-in-out 3;
}
@keyframes flash {
  0%, 100% { background: rgba(212, 168, 67, 0.18); transform: scale(1); }
  50% { background: rgba(212, 168, 67, 0.6); transform: scale(1.08); }
}
.payline-marker {
  position: absolute;
  left: -8px; right: -8px;
  top: 50%; height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateY(-50%);
  opacity: 0.6;
}

.paytable {
  margin: 1.5rem auto 0;
  max-width: 380px;
  padding: 1rem 1.25rem;
  background: var(--dark);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--r-md);
}
.paytable h4 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  text-align: center;
  font-size: 1rem;
}
.paytable ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.paytable li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(212, 168, 67, 0.18);
}
.paytable li:last-child { border-bottom: none; }
.paytable strong { color: var(--gold); }

/* ---------- Table games (cards) ---------- */
.table-game {
  display: grid;
  gap: 1.25rem;
}
.hand-area h4 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hand-area h4 span {
  color: rgba(250, 246, 237, 0.7);
  font-weight: 600;
  text-transform: none;
  font-size: 0.95rem;
  margin-left: 0.4rem;
}
.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 92px;
  padding: 0.75rem;
  background: rgba(13, 34, 24, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: var(--r-md);
}

.card {
  position: relative;
  width: 60px;
  height: 84px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 6px;
  font-family: var(--font-heading);
  user-select: none;
  animation: dealIn 0.3s ease;
}
@keyframes dealIn {
  from { opacity: 0; transform: translateY(-12px) rotate(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
.card-red { color: #c0392b; }
.card-black { color: #1a1a1a; }
.card-rank {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.card-suit {
  font-size: 1.6rem;
  align-self: center;
  margin-top: auto;
  margin-bottom: 4px;
}
.card-back {
  background: linear-gradient(135deg, var(--emerald), var(--dark-2));
  color: var(--gold);
  align-items: center;
  justify-content: center;
}
.card-back-pattern {
  font-size: 1.4rem;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
}

@media (min-width: 600px) {
  .card { width: 70px; height: 98px; padding: 6px 8px; }
  .card-rank { font-size: 1.3rem; }
  .card-suit { font-size: 1.9rem; }
}

/* ---------- Roulette ---------- */
.roulette {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.wheel {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold-light), var(--gold));
  border: 6px solid var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.4);
}
.wheel-inner {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  border: 3px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}
.wheel-inner.color-red    { background: #8b1d22; color: #fff; }
.wheel-inner.color-black  { background: #111; color: #fff; }
.wheel-inner.color-green  { background: #15663f; color: var(--gold); }

/* ---------- Video Poker ---------- */
.video-poker {
  display: flex;
  justify-content: center;
}
.vp-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(13, 34, 24, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: var(--r-md);
  min-height: 92px;
}
.vp-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.vp-card-wrap.held .card {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 18px rgba(212, 168, 67, 0.5);
}
.vp-card-wrap.vp-winner .card {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
  box-shadow: 0 0 16px rgba(39, 174, 96, 0.5);
}
.hold-btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--t);
}
.vp-card-wrap.held .hold-btn {
  background: var(--gold);
  color: var(--dark);
}
.hold-btn:hover { background: rgba(212, 168, 67, 0.3); }

.vp-options {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
}
.vp-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(250,246,237,0.8);
  cursor: pointer;
}
.vp-toggle-label input { accent-color: var(--gold); }

.paytable-active {
  background: rgba(212, 168, 67, 0.18);
  border-radius: var(--r-sm);
}
.paytable-active strong { color: var(--gold-light); }

/* =========================================================
   19. Game-specific UI — Slots 5-reel
   ========================================================= */

/* 2×3 lobby grid (max 3 cols) */
.games-grid-6 {
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 1280px) {
  .games-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.game-desc {
  font-size: 0.88rem;
  color: rgba(250, 246, 237, 0.65);
  margin: 0;
}

/* Slot machine 5-reel */
.slot5-machine {
  background: linear-gradient(180deg, #15402f, #0d2218);
  border: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 1.25rem 0.75rem 1rem;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.slot5-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.reel5 {
  background: #fff8e7;
  border: 2px solid var(--gold);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.12);
}

.sym5 {
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  line-height: 1.5;
  width: 100%;
  text-align: center;
  user-select: none;
  padding: 0.1rem 0;
  transition: background 0.15s ease;
}

.sym5.reel5-mid {
  background: rgba(212, 168, 67, 0.15);
  border-top: 1px dashed var(--gold);
  border-bottom: 1px dashed var(--gold);
}

.sym5.sym5-win {
  background: rgba(212, 168, 67, 0.45) !important;
  animation: symFlash 0.4s ease-in-out 3;
}

@keyframes symFlash {
  0%, 100% { background: rgba(212,168,67,0.45); transform: scale(1); }
  50%       { background: rgba(212,168,67,0.75); transform: scale(1.06); }
}

.slot5-payline-bar {
  display: flex;
  justify-content: space-around;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(212, 168, 67, 0.75);
  text-transform: uppercase;
}

.slot5-wins {
  min-height: 1.6rem;
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.win-line {
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--r-sm);
  padding: 0.2rem 0.6rem;
  color: var(--gold-light);
}

.bet-total-label {
  font-size: 0.9rem;
  color: rgba(250,246,237,0.7);
  align-self: center;
}

.paytable-note {
  font-size: 0.8rem;
  color: rgba(250,246,237,0.55);
  text-align: center;
  margin: 0.4rem 0 0;
  font-style: italic;
}

/* =========================================================
   20. Blackjack layout
   ========================================================= */

.bj-table {
  display: grid;
  gap: 1.25rem;
}

.bj-area h4 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bj-area h4 span {
  color: rgba(250,246,237,0.7);
  font-size: 0.95rem;
  text-transform: none;
  margin-left: 0.4rem;
}

.bj-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.bj-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(250,246,237,0.5);
}

.btn-ins {
  background: rgba(139, 29, 34, 0.2);
  border-color: #c0392b;
  color: #e74c3c;
}
.btn-ins:hover { background: rgba(192, 57, 43, 0.3); }

/* =========================================================
   21. Roulette full board
   ========================================================= */

.roulette-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-start;
}

/* Wheel */
.rwheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rwheel {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  /* Roulette segments: alternating red/black pockets (~9.73° each for 37 slots)
     plus a thin gold rim overlay via box-shadow                      */
  background:
    /* thin gold rim on top */
    radial-gradient(circle, transparent 62%, var(--gold) 62% 65%, transparent 65%),
    /* alternating red/black sectors */
    repeating-conic-gradient(
      #8b1d22 0deg 9.73deg,
      #1a1a1a 9.73deg 19.46deg
    );
  border: 4px solid #b8963a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px var(--dark-2),
    0 0 24px rgba(212, 168, 67, 0.45);
}

.rwheel-spin {
  animation: wheelRotate 2s linear infinite, wheelPulse 0.4s ease-in-out infinite alternate;
}
@keyframes wheelRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes wheelPulse {
  from { box-shadow: 0 0 0 3px var(--dark-2), 0 0 18px rgba(212,168,67,0.35); }
  to   { box-shadow: 0 0 0 3px var(--dark-2), 0 0 42px rgba(212,168,67,0.85), 0 0 70px rgba(212,168,67,0.25); }
}

/* ---- Roulette ball animation ---- */
.rwheel-ball {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #c0c0c0 40%, #808080 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  z-index: 10;
}
.rwheel-ball.spinning {
  animation: ballSpin 1.5s linear infinite;
}
@keyframes ballSpin {
  0%   { transform: rotate(0deg) translateX(65px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(65px) rotate(-360deg); }
}
.rwheel-ball.landing {
  animation: ballLand 1s ease-out forwards;
}
@keyframes ballLand {
  0%   { transform: rotate(var(--angle)) translateX(65px); }
  100% { transform: rotate(var(--angle)) translateX(45px); }
}

.rwheel-inner {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  /* system-ui numbers centre reliably (no Playfair descender gap) */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  border: 3px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}

.rwheel-inner.rwheel-red   { background: #8b1d22; color: #fff; }
.rwheel-inner.rwheel-black { background: #111;    color: #fff; }
.rwheel-inner.rwheel-green { background: #15663f; color: var(--gold); }

.rwheel-inner.rwheel-land {
  animation: wheelLand 0.5s ease;
}
@keyframes wheelLand {
  0%   { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.rwheel-color {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(250,246,237,0.65);
}
.rc-red  { color: #e74c3c; }
.rc-black { color: #bbb; }
.rc-green { color: var(--gold); }
.rc-land { font-size: 1rem; }

/* ---- Baccarat SVG Road ---- */
.bac-road-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bac-road-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px currentColor);
}
.bac-road-line-p { stroke: #3498db; }
.bac-road-line-b { stroke: #e74c3c; }
.bac-road-dot {
  r: 6;
  filter: drop-shadow(0 0 4px currentColor);
  animation: roadDotPop 0.3s ease-out forwards;
}
@keyframes roadDotPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.bac-road-dot-p { fill: #3498db; }
.bac-road-dot-b { fill: #e74c3c; }
.bac-road-dot-t { fill: var(--gold); }

/* Tie flash animation */
@keyframes tieFlash {
  0%, 100% { background: transparent; }
  50% { background: radial-gradient(circle, rgba(212,168,67,0.3) 0%, transparent 70%); }
}
.bac-tie-flash {
  animation: tieFlash 1s ease-in-out 3;
}

/* Board */
.rboard {
  flex: 1 1 480px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rnum-grid {
  display: grid;
  grid-template-columns: auto repeat(12, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}

.rnum {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.45rem 0.1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}

.rnum-zero {
  grid-row: 1 / 4;
  grid-column: 1;
  writing-mode: vertical-rl;
  font-size: 1rem;
  padding: 0.4rem;
}

.rnum-red   { background: #8b1d22; color: #fff; }
.rnum-black { background: #1a1a1a; color: #fff; }
.rnum-green { background: #15663f; color: var(--gold); }

.rnum:hover:not(:disabled) {
  transform: scale(1.12);
  box-shadow: 0 0 8px rgba(212,168,67,0.6);
  z-index: 2;
}

.rnum.rnum-hit {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 14px var(--gold);
  animation: numHit 0.5s ease;
}
@keyframes numHit {
  0%   { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* chip badge on number */
.rchip-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

/* Outside bet buttons */
.rboard-outside,
.rboard-dozens,
.rboard-columns {
  display: grid;
  gap: 2px;
}

.rboard-outside { grid-template-columns: repeat(6, 1fr); }
.rboard-dozens  { grid-template-columns: repeat(3, 1fr); }
.rboard-columns { grid-template-columns: repeat(3, 1fr); }

.rout-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.25rem;
  background: var(--emerald);
  color: var(--cream);
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-align: center;
  position: relative;
}

.rout-btn:hover:not(:disabled) {
  background: var(--emerald-light);
  box-shadow: 0 0 8px rgba(212,168,67,0.4);
}

.rout-red   { background: #8b1d22 !important; border-color: #c0392b; }
.rout-black { background: #1a1a1a !important; border-color: #555; }

/* Chip row */
.rchip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
  flex-wrap: wrap;
}

.rchip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.rchip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rchip:hover { background: rgba(212,168,67,0.15); }
.rchip.selected {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 12px rgba(212,168,67,0.5);
  transform: scale(1.1);
}

.rbet-total {
  font-size: 0.9rem;
  color: rgba(250,246,237,0.7);
  align-self: center;
}

.rplaced-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  min-height: 1.4rem;
  margin-top: 0.5rem;
}

.rplaced-chip {
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 999px;
  color: var(--gold-light);
}

/* =========================================================
   22. Baccarat road & table
   ========================================================= */

.bac-road-section {
  margin-bottom: 1.25rem;
  background: rgba(13,34,24,0.5);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
}

.bac-road-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.bac-road {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 28px;
}

.road-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.road-p { background: #1a5fc7; color: #fff; }
.road-b { background: #c0392b; color: #fff; }
.road-t { background: #15663f; color: var(--gold); border: 1px solid var(--gold); }

.bac-road-legend {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(250,246,237,0.55);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.bac-road-legend .road-dot {
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
}

.bac-table {
  display: grid;
  gap: 1.25rem;
}

.bac-area h4 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bac-area h4 span { color: rgba(250,246,237,0.7); text-transform: none; }

.bac-p-btn { background: #1a5fc7; border-color: #4a90d9; }
.bac-b-btn { background: #8b1d22; border-color: #c0392b; }
.bac-t-btn { background: #15663f; border-color: var(--gold); }

.bac-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(250,246,237,0.45);
}

/* =========================================================
   23. Caribbean Stud
   ========================================================= */

.carib-table {
  display: grid;
  gap: 1.25rem;
}

.carib-area h4 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carib-qual-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

.qual-yes { background: rgba(39,174,96,0.2); color: #27ae60; border: 1px solid #27ae60; }
.qual-no  { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid #e74c3c; }

/* =========================================================
   24. Visual game overhauls — per-game theming & felt tables
   ========================================================= */

/* --- Per-game body classes --- */
body.game-blackjack .game-stage,
body.game-baccarat  .game-stage,
body.game-caribbean .game-stage {
  background: radial-gradient(ellipse at 50% 0%, #0f4a28, #071a0f 80%);
  border-color: rgba(212,168,67,0.5);
  padding: 1.5rem 1.25rem;
}
body.game-slots .game-stage {
  background: #0a1206;
  border-color: rgba(212,168,67,0.5);
  padding: 0;
  overflow: hidden;
}
body.game-videopoker .game-stage {
  background: #07070f;
  border-color: rgba(0,184,217,0.45);
  box-shadow: 0 0 40px rgba(0,184,217,0.15), 0 10px 40px rgba(0,0,0,0.4);
  padding: 1.5rem 1.25rem;
}

/* --- Bigger cards on game pages --- */
.game-stage .card {
  width: 82px;
  height: 114px;
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
}
.game-stage .card-rank { font-size: 1.4rem; }
.game-stage .card-suit { font-size: 2.2rem; }
@media (min-width: 600px) {
  .game-stage .card { width: 94px; height: 130px; padding: 7px 10px; }
  .game-stage .card-rank { font-size: 1.6rem; }
  .game-stage .card-suit { font-size: 2.6rem; }
}

/* --- Card slot placeholder --- */
.card-slot {
  width: 82px;
  height: 114px;
  border: 2px dashed rgba(212,168,67,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
@media (min-width: 600px) { .card-slot { width: 94px; height: 130px; } }

/* ---- 3D Card Flip Animation ---- */
.card-3d-wrapper {
  perspective: 1000px;
  display: inline-block;
}
.card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-3d.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  background: #faf6ed;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
}
.card-face-back {
  background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-face-back::before {
  content: "★";
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
}

/* Card deal animation */
@keyframes cardDeal {
  0% { transform: translateY(-30px) rotateZ(-5deg) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) rotateZ(0) scale(1); opacity: 1; }
}
.card-dealing {
  animation: cardDeal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Chip animation */
@keyframes chipDrop {
  0% { transform: translateY(-40px) scale(1.2); opacity: 0; }
  60% { transform: translateY(5px) scale(0.95); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.bj-bet-display.dealing .bj-bet-chip {
  animation: chipDrop 0.5s ease-out forwards;
}

/* Felt texture pattern */
.felt-texture {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.1) 2px,
      rgba(0,0,0,0.1) 4px
    );
}

/* --- Felt zone for card tables --- */
.felt-zone {
  background:
    radial-gradient(ellipse at 50% 30%, #1d6b3a 0%, #0e3820 55%, #061508 100%);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.felt-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='3' height='3'><rect fill='rgba(255,255,255,0.012)' width='1.5' height='1.5'/></svg>");
  background-size: 3px 3px;
  pointer-events: none;
}

.felt-zone .hand {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(212,168,67,0.18);
  min-height: 120px;
  gap: 0.6rem;
}

.felt-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.felt-section-label.dealer { color: rgba(250,246,237,0.5); }
.felt-section-label.player { color: var(--gold); margin-top: 0.9rem; }

.felt-divider {
  height: 1px;
  background: rgba(212,168,67,0.14);
  margin: 0.75rem 0;
}

/* Bet chip display inside felt */
.bj-bet-display {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.bj-bet-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5d76e, #c8920a);
  color: #2a1500;
  font-weight: 900;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(180,130,10,0.7);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
  letter-spacing: -0.5px;
}
.bj-bet-label {
  font-size: 0.65rem;
  color: rgba(250,246,237,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* --- Baccarat side-by-side --- */
@media (min-width: 640px) {
  .bac-table { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.bac-area .hand { min-height: 130px; }

/* --- Video Poker terminal --- */
.vp-terminal {
  background: linear-gradient(180deg, #09091a, #060610);
  border: 2px solid #00b8d9;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,184,217,0.12),
    0 0 35px rgba(0,184,217,0.18),
    inset 0 0 60px rgba(0,0,0,0.7);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.vp-terminal-header {
  background: linear-gradient(90deg, #03060f, #07112a, #03060f);
  text-align: center;
  padding: 0.7rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 6px;
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff, 0 0 22px rgba(0,212,255,0.5);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,184,217,0.2);
}
.vp-terminal-body {
  padding: 1rem 1rem 0.75rem;
}
.vp-terminal .vp-hand {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,184,217,0.18);
  min-height: 150px;
  gap: 0.6rem;
}

/* Neon overrides inside terminal */
.vp-terminal .hold-btn {
  color: #00d4ff;
  border-color: rgba(0,184,217,0.6);
  background: rgba(0,184,217,0.06);
}
.vp-terminal .vp-card-wrap.held .hold-btn {
  background: #00b8d9;
  color: #000;
  border-color: #00d4ff;
}
.vp-terminal .vp-card-wrap.held .card {
  outline-color: #00d4ff;
  box-shadow: 0 0 18px rgba(0,212,255,0.55);
}
.vp-terminal .vp-card-wrap.vp-winner .card {
  outline-color: #2ecc71;
  box-shadow: 0 0 18px rgba(46,204,113,0.55);
}

/* ---- Neon Poker enhanced glow effects ---- */
.vp-card-wrap {
  position: relative;
}
.vp-card-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.vp-card-wrap.neon-auto-hold::before {
  background: linear-gradient(135deg, rgba(0,212,255,0.3) 0%, rgba(0,212,255,0.1) 100%);
  box-shadow: 0 0 20px rgba(0,212,255,0.4), inset 0 0 10px rgba(0,212,255,0.2);
  opacity: 1;
  animation: neonPulse 1.5s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.vp-card-wrap.neon-auto-hold .card {
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0,212,255,0.5);
}
.vp-card-wrap.neon-winner::before {
  background: linear-gradient(135deg, rgba(46,231,159,0.4) 0%, rgba(46,231,159,0.1) 100%);
  box-shadow: 0 0 30px rgba(46,231,159,0.6), inset 0 0 15px rgba(46,231,159,0.3);
  opacity: 1;
  animation: neonWin 0.8s ease-in-out infinite alternate;
}
@keyframes neonWin {
  from { box-shadow: 0 0 20px rgba(46,231,159,0.5); }
  to { box-shadow: 0 0 40px rgba(46,231,159,0.8), 0 0 60px rgba(46,231,159,0.3); }
}
.vp-card-wrap.neon-winner .card {
  border-color: #2ee79f;
  box-shadow: 0 0 25px rgba(46,231,159,0.7);
}

/* Card deal animation */
.vp-card-wrap.dealing {
  animation: vpCardDeal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes vpCardDeal {
  0% { transform: translateY(-30px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Draw card replacement animation */
.vp-card-wrap.replacing .card {
  animation: vpCardReplace 0.3s ease-out forwards;
}
@keyframes vpCardReplace {
  0% { transform: rotateY(90deg); opacity: 0; }
  100% { transform: rotateY(0); opacity: 1; }
}

/* Big win celebration for Royal Flush */
.vp-bigwin-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, transparent 70%);
  z-index: 100;
  animation: vpBigWinFade 0.5s ease forwards;
}
@keyframes vpBigWinFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.vp-bigwin-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 20px #ffd700, 0 0 40px #ff6b00;
  animation: vpBigWinPulse 0.6s ease-in-out infinite alternate;
}
@keyframes vpBigWinPulse {
  from { transform: scale(1); text-shadow: 0 0 20px #ffd700, 0 0 40px #ff6b00; }
  to { transform: scale(1.1); text-shadow: 0 0 30px #ffd700, 0 0 60px #ff6b00, 0 0 80px #ff4500; }
}

.vp-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  border-radius: 14px;
}

/* --- Slot machine chrome --- */
.slot5-chrome {
  background: linear-gradient(180deg, #1c1400, #120e00);
  border-bottom: 4px solid var(--gold);
}
.slot5-marquee {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold), 0 0 28px rgba(212,168,67,0.55);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(212,168,67,0.4);
  background: linear-gradient(180deg, #0d0900, #1a1100);
}
.slot5-marquee .marquee-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: rgba(212,168,67,0.6);
  text-shadow: none;
  margin-top: 2px;
}
.slot5-controls-panel {
  background: linear-gradient(180deg, #1c1400, #0d0900);
  padding: 0.75rem 1rem 1rem;
  border-top: 2px solid rgba(212,168,67,0.3);
}
/* Override slot machine to fit inside chrome */
body.game-slots .slot5-machine {
  border: none !important;
  border-radius: 0 !important;
  margin: 0;
}

/* Game status glow for slots */
body.game-slots .game-status.win {
  font-size: 1.25rem;
}


/* =========================================================
   25. Slots paytable grid + reel bounce animation
   ========================================================= */

/* Proper 4-column grid for slots paytable */
.slots-paytable .spt-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1fr 1fr;
  align-items: center;
  padding: 0.28rem 0.2rem;
  border-bottom: 1px dashed rgba(212,168,67,0.14);
  gap: 0;
}
.slots-paytable .spt-row:last-of-type { border-bottom: none; }

.slots-paytable .spt-head {
  border-bottom: 1px solid rgba(212,168,67,0.35) !important;
  margin-bottom: 0.15rem;
  padding-bottom: 0.35rem;
}
.slots-paytable .spt-head span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(212,168,67,0.7);
  text-align: center;
}
.slots-paytable .spt-head span:first-child { text-align: left; }

.slots-paytable .spt-sym { font-size: 1.5rem; line-height: 1; }
.slots-paytable .spt-row strong {
  color: var(--gold);
  font-size: 0.88rem;
  text-align: center;
  display: block;
}

/* Reel bounce when strip stops */
@keyframes reelBounce {
  0%   { transform: translateY(-5px); }
  55%  { transform: translateY(2px); }
  80%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
.reel5.reel-bounce { animation: reelBounce 0.28s ease-out; }

/* ---- Slot spinning blur effect ---- */
.reel5.spinning {
  filter: blur(2px);
  transition: filter 0.15s ease-out;
}
.reel5.spinning-complete {
  filter: blur(0);
  transition: filter 0.2s ease-out;
}

/* ---- Win lines overlay SVG ---- */
.slot5-win-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.slot5-win-lines line {
  stroke: #d4a843;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(212, 168, 67, 0.8));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: winLineDraw 0.6s ease-out forwards;
}
@keyframes winLineDraw {
  to { stroke-dashoffset: 0; }
}

/* ---- Particle burst for big wins ---- */
.slot5-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
}
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffd700 0%, #d4a843 100%);
  border-radius: 50%;
  opacity: 0;
}
@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ---- Big win celebration ---- */
.slot5-bigwin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  text-align: center;
  animation: bigWinPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes bigWinPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* =========================================================
   26. Slot machine CSS symbols (replace emoji)
   ========================================================= */

/* Reel cell becomes flex container */
.sym5 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: inherit !important;  /* let slot-sym control size */
}

/* Base slot symbol — card-like tile */
.slot-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 62px;
  border-radius: 10px;
  /* Use system-ui so Unicode glyphs (♥♣◆★♪) render with
     consistent metrics instead of falling back from Playfair Display */
  font-family: system-ui, -apple-system, 'Segoe UI Symbol', sans-serif;
  font-weight: 900;
  line-height: 1;
  position: relative;
  user-select: none;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 4px 12px rgba(0,0,0,0.35);
}

/* — Lucky Seven — gold */
.ss-seven {
  background: linear-gradient(155deg, #ffe566 0%, #d49000 55%, #ffb830 100%);
  color: #2d0e00;
  font-size: 2.4rem;
  /* system-ui "7" has tight, predictable metrics — centres reliably */
  font-family: system-ui, -apple-system, sans-serif;
  border: 2px solid rgba(255,225,80,0.7);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* — BAR — metallic silver */
.ss-bar {
  background: linear-gradient(155deg, #e0e0e0 0%, #888 55%, #bbb 100%);
  color: #111;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 2px;
  border: 2px solid rgba(200,200,200,0.55);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* — Star — emerald */
.ss-star {
  background: linear-gradient(155deg, #6dffa0 0%, #0a7a40 55%, #30c870 100%);
  color: #fff;
  font-size: 2rem;
  border: 2px solid rgba(60,220,110,0.5);
  text-shadow: 0 0 8px rgba(0,255,120,0.5);
}

/* — Diamond — sapphire */
.ss-diamond {
  background: linear-gradient(155deg, #88d9ff 0%, #0a5fa0 55%, #3898d8 100%);
  color: #fff;
  font-size: 1.8rem;
  border: 2px solid rgba(90,200,255,0.55);
  text-shadow: 0 0 10px rgba(0,200,255,0.5);
}

/* — Spade — amber/orange */
.ss-bell {
  background: linear-gradient(155deg, #ffe08a 0%, #b86000 55%, #f0a020 100%);
  color: #fff;
  font-size: 1.85rem;
  border: 2px solid rgba(255,195,60,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* — Club — forest green */
.ss-clover {
  background: linear-gradient(155deg, #90ff80 0%, #1a6a10 55%, #3aaa30 100%);
  color: #fff;
  font-size: 1.85rem;
  border: 2px solid rgba(80,200,60,0.5);
  text-shadow: 0 0 6px rgba(0,200,50,0.4);
}

/* — Heart — crimson */
.ss-heart {
  background: linear-gradient(155deg, #ff8888 0%, #950000 55%, #cc2020 100%);
  color: #fff;
  font-size: 1.85rem;
  border: 2px solid rgba(255,90,90,0.5);
  text-shadow: 0 0 8px rgba(255,0,0,0.4);
}

/* Win glow override — pulsing ring */
.sym5-win .slot-sym {
  animation: symWinPulse 0.45s ease-out;
  outline: 3px solid #ffe566;
  outline-offset: 2px;
}
@keyframes symWinPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Paytable small variants */
.slots-paytable .slot-sym {
  width: 34px;
  height: 42px;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 5px rgba(0,0,0,0.3);
}
.slots-paytable .ss-bar    { font-size: 0.55rem; letter-spacing: 1.5px; }
.slots-paytable .ss-star   { font-size: 1.05rem; }


/* =========================================================
   27. Symbol centering fine-tune (per-char baseline offsets)
   ========================================================= */

/* Card suit glyphs (♠♣♥◆★) have slight top-heavy rendering
   in system-ui — pull content down a touch               */
.ss-bell, .ss-clover, .ss-heart, .ss-diamond, .ss-star {
  padding-top: 3px;
}
/* ★ is slightly higher than suits */
.ss-star { padding-top: 4px; }

/* Paytable small — compensate the extra padding */
.slots-paytable .ss-bell,
.slots-paytable .ss-clover,
.slots-paytable .ss-heart,
.slots-paytable .ss-diamond,
.slots-paytable .ss-star { padding-top: 2px; }


/* =========================================================
   28. Footer — help links + 21+ badge
   ========================================================= */

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

.badge-21 {
  color: rgba(250,246,237,0.55);
  flex-shrink: 0;
  transition: color 0.2s;
}
.badge-21:hover { color: var(--gold); }

.footer-help-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-help-link:hover { opacity: 1; }

.partner-logo {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

