/* =========================================================
 * Casino Game - theme.css
 * All custom classes use the "sa34-" prefix.
 * Palette: #FF0000 (red) | #1A1A1A (dark) + gold/light accents
 * Mobile-first; root font-size 62.5% so 1rem = 10px.
 * ========================================================= */

:root {
  --sa34-primary: #FF0000;
  --sa34-primary-dark: #C00000;
  --sa34-primary-soft: rgba(255, 0, 0, 0.16);
  --sa34-bg: #1A1A1A;
  --sa34-bg-2: #242424;
  --sa34-bg-3: #2E2E2E;
  --sa34-text: #FFFFFF;
  --sa34-text-soft: #E6E6E6;
  --sa34-text-muted: #A8A8A8;
  --sa34-accent: #FFD700;
  --sa34-accent-2: #FFB300;
  --sa34-border: #3A3A3A;
  --sa34-success: #2EC27E;
  --sa34-radius: 12px;
  --sa34-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --sa34-shadow-red: 0 6px 20px rgba(255, 0, 0, 0.35);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sa34-bg);
  color: var(--sa34-text);
  line-height: 1.5;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sa34-accent); text-decoration: none; }
a:hover { color: var(--sa34-primary); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

/* Layout helpers */
.sa34-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sa34-wrapper { width: 100%; }
.sa34-section { padding: 2.2rem 0; }
.sa34-grid { display: grid; gap: 1rem; }
.sa34-hide-mobile { display: none; }
.sa34-text-center { text-align: center; }
.sa34-mt-1 { margin-top: 0.6rem; }
.sa34-mt-2 { margin-top: 1.2rem; }

/* Header */
.sa34-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1f1f1f, #141414);
  border-bottom: 2px solid var(--sa34-primary);
  box-shadow: var(--sa34-shadow);
}
.sa34-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}
.sa34-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sa34-brand-logo { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.sa34-brand-name { font-size: 1.7rem; font-weight: 800; color: var(--sa34-text); letter-spacing: 0.3px; white-space: nowrap; }
.sa34-brand-name span { color: var(--sa34-primary); }
.sa34-header-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Buttons */
.sa34-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: inherit;
}
.sa34-btn:active { transform: scale(0.96); }
.sa34-btn-login { background: transparent; color: var(--sa34-text); border: 1.5px solid var(--sa34-primary); }
.sa34-btn-register { background: linear-gradient(135deg, var(--sa34-primary), var(--sa34-primary-dark)); color: #fff; box-shadow: var(--sa34-shadow-red); }
.sa34-btn-ghost { background: var(--sa34-bg-3); color: var(--sa34-text); min-width: 38px; padding: 0 0.7rem; }
.sa34-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }
.sa34-btn-white { background: #fff; color: var(--sa34-primary); }
.sa34-menu-btn { background: transparent; border: none; color: var(--sa34-text); font-size: 2rem; cursor: pointer; min-width: 40px; min-height: 40px; }

/* Mobile slide-in menu */
.sa34-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; background: var(--sa34-bg-2); z-index: 9999;
  padding: 1.6rem 1.2rem; overflow-y: auto;
  transition: right .3s ease; border-left: 2px solid var(--sa34-primary);
}
.sa34-mobile-menu.sa34-menu-open { right: 0; }
.sa34-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.sa34-menu-overlay.sa34-overlay-on { opacity: 1; pointer-events: auto; }
.sa34-menu-title { font-size: 1.5rem; color: var(--sa34-accent); margin: 1.2rem 0 0.4rem; border-bottom: 1px solid var(--sa34-border); padding-bottom: 0.3rem; }
.sa34-menu-link { display: block; padding: 0.8rem 0.3rem; color: var(--sa34-text); font-size: 1.35rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sa34-menu-link:hover { color: var(--sa34-primary); padding-left: 0.6rem; }
.sa34-menu-close { position: absolute; top: 0.8rem; right: 1rem; background: transparent; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Carousel */
.sa34-carousel { position: relative; border-radius: var(--sa34-radius); overflow: hidden; margin: 1.2rem 0; box-shadow: var(--sa34-shadow); }
.sa34-carousel-track { position: relative; }
.sa34-carousel-slide { display: none; position: relative; cursor: pointer; }
.sa34-carousel-slide.sa34-slide-active { display: block; animation: sa34-fade .6s ease; }
@keyframes sa34-fade { from { opacity: 0.3; } to { opacity: 1; } }
.sa34-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.sa34-carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.88)); padding: 1.4rem 1rem 1rem; color: #fff; }
.sa34-carousel-caption h2 { font-size: 1.8rem; color: var(--sa34-accent); margin-bottom: 0.3rem; }
.sa34-carousel-caption p { font-size: 1.25rem; color: var(--sa34-text-soft); }
.sa34-carousel-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 2; }
.sa34-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: all .25s; border: none; padding: 0; }
.sa34-carousel-dot.sa34-dot-active { background: var(--sa34-primary); width: 22px; border-radius: 4px; }

/* Headings & prose */
.sa34-section-title { font-size: 1.9rem; color: var(--sa34-text); margin-bottom: 0.8rem; padding-left: 0.8rem; border-left: 4px solid var(--sa34-primary); }
.sa34-section-subtitle { font-size: 1.3rem; color: var(--sa34-text-muted); margin-bottom: 1.2rem; }
.sa34-h1 { font-size: 2.2rem; color: var(--sa34-text); margin: 1.2rem 0 0.6rem; line-height: 1.3; }
.sa34-h1 span { color: var(--sa34-primary); }
.sa34-text-lead { font-size: 1.35rem; color: var(--sa34-text-soft); margin-bottom: 1rem; }
.sa34-prose p { margin-bottom: 0.9rem; color: var(--sa34-text-soft); font-size: 1.3rem; }
.sa34-prose a { color: var(--sa34-primary); text-decoration: underline; text-underline-offset: 2px; }
.sa34-prose h3 { font-size: 1.55rem; color: var(--sa34-accent); margin: 1.2rem 0 0.5rem; }
.sa34-prose ul.sa34-checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.4rem; color: var(--sa34-text-soft); font-size: 1.3rem; }
.sa34-prose ul.sa34-checklist li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--sa34-primary); position: absolute; left: 0; }

/* Game grid */
.sa34-game-group { margin-bottom: 1.6rem; }
.sa34-game-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.sa34-game-group-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.6rem; color: var(--sa34-accent); }
.sa34-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.sa34-game-card {
  background: var(--sa34-bg-2); border: 1px solid var(--sa34-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.sa34-game-card:hover, .sa34-game-card:active { transform: translateY(-2px); border-color: var(--sa34-primary); box-shadow: var(--sa34-shadow-red); }
.sa34-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #000; }
.sa34-game-name { padding: 0.4rem 0.3rem; font-size: 1.05rem; text-align: center; color: var(--sa34-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards */
.sa34-card { background: var(--sa34-bg-2); border: 1px solid var(--sa34-border); border-radius: var(--sa34-radius); padding: 1.3rem; box-shadow: var(--sa34-shadow); margin-bottom: 1rem; }
.sa34-card-title { font-size: 1.6rem; color: var(--sa34-accent); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.sa34-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.sa34-feature-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem; background: var(--sa34-bg-3); border-radius: 8px; }
.sa34-feature-icon { width: 38px; height: 38px; min-width: 38px; display: flex; align-items: center; justify-content: center; background: var(--sa34-primary-soft); color: var(--sa34-primary); border-radius: 8px; font-size: 1.8rem; }
.sa34-feature-text h4 { font-size: 1.3rem; color: var(--sa34-text); margin-bottom: 0.2rem; }
.sa34-feature-text p { font-size: 1.2rem; color: var(--sa34-text-muted); }

/* Steps */
.sa34-steps { counter-reset: step; }
.sa34-step { display: flex; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sa34-step-num { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--sa34-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; }
.sa34-step-body h4 { font-size: 1.3rem; color: var(--sa34-text); margin-bottom: 0.2rem; }
.sa34-step-body p { font-size: 1.2rem; color: var(--sa34-text-muted); }

/* RTP / stats */
.sa34-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.sa34-rtp-item { background: var(--sa34-bg-3); border-radius: 8px; padding: 0.8rem; text-align: center; }
.sa34-rtp-name { font-size: 1.2rem; color: var(--sa34-text-soft); margin-bottom: 0.2rem; }
.sa34-rtp-value { font-size: 1.6rem; color: var(--sa34-accent); font-weight: 700; }

/* FAQ */
.sa34-faq-item { background: var(--sa34-bg-2); border: 1px solid var(--sa34-border); border-radius: 8px; margin-bottom: 0.7rem; padding: 1rem 1.2rem; }
.sa34-faq-item h3 { font-size: 1.3rem; color: var(--sa34-accent); margin-bottom: 0.3rem; }
.sa34-faq-item p { font-size: 1.2rem; color: var(--sa34-text-soft); }

/* Testimonials */
.sa34-testimonial { background: var(--sa34-bg-2); border-left: 3px solid var(--sa34-primary); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 0.7rem; }
.sa34-testimonial p { font-size: 1.22rem; color: var(--sa34-text-soft); font-style: italic; margin-bottom: 0.3rem; }
.sa34-testimonial cite { font-size: 1.1rem; color: var(--sa34-accent); font-style: normal; font-weight: 700; }

/* Payment chips */
.sa34-payment-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sa34-payment-chip { background: var(--sa34-bg-3); border: 1px solid var(--sa34-border); border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 1.2rem; color: var(--sa34-text-soft); display: inline-flex; align-items: center; gap: 0.4rem; }

/* Winners */
.sa34-winner { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.8rem; background: var(--sa34-bg-3); border-radius: 6px; margin-bottom: 0.4rem; }
.sa34-winner-name { font-size: 1.2rem; color: var(--sa34-text-soft); }
.sa34-winner-game { font-size: 1.05rem; color: var(--sa34-text-muted); }
.sa34-winner-amount { font-size: 1.25rem; color: var(--sa34-accent); font-weight: 700; }

/* Category highlights */
.sa34-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.sa34-cat-card { background: var(--sa34-bg-2); border: 1px solid var(--sa34-border); border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: border-color .2s, transform .15s; }
.sa34-cat-card:hover { border-color: var(--sa34-primary); transform: translateY(-2px); }
.sa34-cat-card .sa34-cat-icon { font-size: 2.4rem; color: var(--sa34-primary); margin-bottom: 0.3rem; }
.sa34-cat-card h4 { font-size: 1.3rem; color: var(--sa34-text); margin-bottom: 0.2rem; }
.sa34-cat-card p { font-size: 1.1rem; color: var(--sa34-text-muted); }

/* CTA banner */
.sa34-cta { background: linear-gradient(135deg, var(--sa34-primary), var(--sa34-primary-dark)); border-radius: var(--sa34-radius); padding: 1.5rem; text-align: center; color: #fff; margin: 1.2rem 0; box-shadow: var(--sa34-shadow-red); }
.sa34-cta h2 { font-size: 1.9rem; margin-bottom: 0.3rem; color: #fff; }
.sa34-cta p { font-size: 1.22rem; margin-bottom: 1rem; color: #ffe9e9; }

/* Footer */
.sa34-footer { background: #111; border-top: 2px solid var(--sa34-primary); padding: 2rem 0 8rem; margin-top: 1.5rem; }
.sa34-footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--sa34-text); margin-bottom: 0.5rem; }
.sa34-footer-brand span { color: var(--sa34-primary); }
.sa34-footer-desc { font-size: 1.2rem; color: var(--sa34-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.sa34-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.sa34-footer-links a { font-size: 1.2rem; color: var(--sa34-text-soft); }
.sa34-footer-links a:hover { color: var(--sa34-primary); }
.sa34-footer-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0; }
.sa34-footer-buttons .sa34-btn { width: 100%; }
.sa34-copy { font-size: 1.1rem; color: var(--sa34-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--sa34-border); }

/* Mobile bottom nav */
.sa34-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: linear-gradient(180deg, #1f1f1f, #0e0e0e);
  border-top: 2px solid var(--sa34-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 16px rgba(0,0,0,0.55);
}
.sa34-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--sa34-text-muted); cursor: pointer; font-size: 1rem; gap: 0.2rem;
  font-family: inherit; transition: color .2s, transform .15s;
}
.sa34-bottom-nav-btn .material-icons { font-size: 24px; }
.sa34-bottom-nav-btn i { font-size: 22px; }
.sa34-bottom-nav-btn ion-icon { font-size: 24px; }
.sa34-bottom-nav-btn:hover, .sa34-bottom-nav-btn.sa34-nav-active { color: var(--sa34-primary); transform: translateY(-1px); }
.sa34-bottom-nav-btn .label { font-size: 1rem; }

/* Responsive: desktop */
@media (min-width: 769px) {
  body { background: #0e0e0e; }
  .sa34-container { max-width: 960px; }
  .sa34-bottom-nav { display: none; }
  .sa34-footer { padding-bottom: 2rem; }
  .sa34-game-grid { grid-template-columns: repeat(6, 1fr); }
  .sa34-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sa34-rtp-grid { grid-template-columns: repeat(4, 1fr); }
  .sa34-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .sa34-carousel-slide img { height: 360px; }
  .sa34-footer-links { grid-template-columns: repeat(3, 1fr); }
  .sa34-h1 { font-size: 2.6rem; }
  .sa34-section-title { font-size: 2.2rem; }
}

/* Mobile: keep content clear of the fixed bottom nav */
@media (max-width: 768px) {
  main.sa34-main, .sa34-main { padding-bottom: 84px; }
}
