/* =========================================================
 * hellspin casino - hellspincasino.homes
 * Shared stylesheet (mobile-first HTML5 casino)
 * All custom classes use the "v49d-" prefix.
 * Palette: #E9ECEF | #008000 | #E91E63 | #FF4500 | #2C3E50
 * Root font-size 62.5% (1rem = 10px).
 * =======================================================*/

:root {
  --v49d-bg: #2C3E50;          /* deep background */
  --v49d-bg-2: #1f2c3a;        /* darker surface */
  --v49d-text: #E9ECEF;        /* primary light text */
  --v49d-muted: #a9b3bd;       /* muted text */
  --v49d-primary: #008000;     /* casino green */
  --v49d-accent: #E91E63;      /* pink accent */
  --v49d-flame: #FF4500;       /* orange flame */
  --v49d-gold: #ffd25c;
  --v49d-radius: 14px;
  --v49d-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v49d-bg);
  color: var(--v49d-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v49d-accent); text-decoration: none; }
a:hover { color: var(--v49d-flame); }

/* Layout helpers */
.v49d-container { width: 100%; padding: 0 1.2rem; }
.v49d-wrapper { max-width: 430px; margin: 0 auto; }
.v49d-section { padding: 2rem 1.2rem; }
.v49d-clear::after { content: ""; display: table; clear: both; }

/* ===== Header ===== */
.v49d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1f2c3a 0%, #2C3E50 60%, #143a1a 100%);
  border-bottom: 2px solid var(--v49d-primary);
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.v49d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .55rem .8rem; min-height: 5.2rem;
}
.v49d-logo { display: flex; align-items: center; gap: .6rem; color: var(--v49d-text); }
.v49d-logo img { width: 3rem; height: 3rem; border-radius: 8px; }
.v49d-logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: .3px; color: var(--v49d-text); }
.v49d-logo-text span { color: var(--v49d-gold); }

.v49d-header-actions { display: flex; align-items: center; gap: .4rem; }
.v49d-menu-btn {
  background: transparent; border: 1px solid var(--v49d-primary);
  color: var(--v49d-text); width: 3.6rem; height: 3.6rem; border-radius: 8px;
  font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.v49d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: 1.25rem; font-weight: 700; padding: .65rem 1.1rem; border-radius: 30px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  min-height: 3.6rem; line-height: 1;
}
.v49d-btn:hover { transform: translateY(-1px); }
.v49d-btn-login { background: #fff; color: var(--v49d-bg); }
.v49d-btn-register {
  background: linear-gradient(135deg, var(--v49d-flame), var(--v49d-accent));
  color: #fff; box-shadow: 0 4px 12px rgba(255,69,0,.35);
}

/* ===== Mobile dropdown menu ===== */
.v49d-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--v49d-bg-2);
  border-bottom: 2px solid var(--v49d-primary);
  transform: translateY(-120%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 1.2rem 1.2rem 1.6rem;
  max-height: 85vh; overflow-y: auto;
}
.v49d-mobile-menu.v49d-menu-open { transform: translateY(0); }
.v49d-mobile-menu h4 {
  color: var(--v49d-gold); font-size: 1.3rem; margin: .9rem 0 .4rem;
  border-left: 3px solid var(--v49d-accent); padding-left: .6rem;
}
.v49d-mobile-menu a {
  display: block; padding: .75rem .6rem; border-bottom: 1px dashed #3a4b5c;
  color: var(--v49d-text); font-size: 1.35rem;
}
.v49d-mobile-menu a:hover { background: rgba(0,128,0,.18); color: #fff; }
.v49d-menu-close {
  background: var(--v49d-accent); color: #fff; border: none;
  width: 100%; padding: .9rem; border-radius: 8px; font-size: 1.35rem;
  font-weight: 700; margin-top: 1rem; cursor: pointer;
}

/* ===== Carousel ===== */
.v49d-carousel {
  position: relative; padding: .8rem 1.2rem 0;
}
.v49d-slides { position: relative; border-radius: var(--v49d-radius); overflow: hidden; box-shadow: var(--v49d-shadow); }
.v49d-slide {
  display: none; cursor: pointer; position: relative;
}
.v49d-slide.v49d-slide-active { display: block; }
.v49d-slide img { width: 100%; height: auto; min-height: 150px; object-fit: cover; }
.v49d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  padding: 1.6rem 1rem .9rem; color: #fff;
}
.v49d-slide-caption strong { color: var(--v49d-gold); font-size: 1.5rem; display:block; }
.v49d-dots {
  display: flex; gap: .5rem; justify-content: center; padding: .7rem 0;
}
.v49d-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #6b7a88; cursor: pointer;
  border: none;
}
.v49d-dot.v49d-dot-active { background: var(--v49d-accent); transform: scale(1.2); }

/* ===== Section heading ===== */
.v49d-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--v49d-text);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--v49d-primary);
  display: flex; align-items: center; gap: .5rem;
}
.v49d-section-title i { color: var(--v49d-gold); }
.v49d-section-title em { color: var(--v49d-accent); font-style: normal; }

/* H1 */
.v49d-h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.25;
  margin: 1.2rem 0; color: var(--v49d-text);
}
.v49d-h1 span { color: var(--v49d-gold); }

/* ===== Filter buttons ===== */
.v49d-filters { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0 1rem; }
.v49d-filter-btn {
  flex: 0 0 auto; padding: .55rem 1.1rem; border-radius: 20px;
  background: #33475a; color: var(--v49d-text); border: 1px solid #4a5d70;
  font-size: 1.2rem; cursor: pointer; white-space: nowrap;
}
.v49d-filter-btn.v49d-filter-active {
  background: linear-gradient(135deg, var(--v49d-primary), #0a8f2a);
  color: #fff; border-color: var(--v49d-primary);
}

/* ===== Game groups ===== */
.v49d-game-group { margin-bottom: 2rem; }
.v49d-game-group h3 {
  font-size: 1.45rem; color: var(--v49d-gold); margin-bottom: .7rem;
  display: flex; align-items: center; gap: .5rem;
}
.v49d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.v49d-game-card {
  background: var(--v49d-bg-2); border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 1px solid #3a4b5c; transition: transform .15s ease, border-color .15s ease;
  display: block; text-align: center;
}
.v49d-game-card:hover { transform: translateY(-2px); border-color: var(--v49d-accent); }
.v49d-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0e1822; }
.v49d-game-card span {
  display: block; font-size: 1.05rem; padding: .35rem .25rem .5rem;
  color: var(--v49d-text); line-height: 1.25; min-height: 2.6em;
  overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards (info / promo / feature) ===== */
.v49d-card {
  background: var(--v49d-bg-2); border-radius: var(--v49d-radius);
  padding: 1.3rem; margin-bottom: 1rem; border: 1px solid #3a4b5c;
  box-shadow: var(--v49d-shadow);
}
.v49d-card h3 { color: var(--v49d-gold); font-size: 1.4rem; margin-bottom: .5rem; }
.v49d-card p { color: var(--v49d-muted); font-size: 1.2rem; line-height: 1.55; }
.v49d-card a { color: var(--v49d-accent); font-weight: 600; }

/* Promo CTA strip */
.v49d-cta {
  background: linear-gradient(135deg, var(--v49d-primary), #066b06);
  border-radius: var(--v49d-radius); padding: 1.3rem; text-align: center;
  margin: 1.2rem 0; border: 1px dashed var(--v49d-gold);
}
.v49d-cta h3 { color: var(--v49d-gold); font-size: 1.6rem; margin-bottom: .4rem; }
.v49d-cta p { color: #eaf7ea; font-size: 1.2rem; margin-bottom: .8rem; }
.v49d-cta .v49d-btn { background: linear-gradient(135deg, var(--v49d-flame), var(--v49d-accent)); color:#fff; }

/* Inline promo text link */
.v49d-promo-link {
  color: var(--v49d-flame); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}
.v49d-promo-link:hover { color: var(--v49d-accent); }

/* Feature list */
.v49d-feature-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.v49d-feature {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--v49d-bg-2); padding: 1rem; border-radius: 10px;
  border-left: 4px solid var(--v49d-primary);
}
.v49d-feature i { color: var(--v49d-accent); font-size: 2rem; flex: 0 0 auto; }
.v49d-feature h4 { color: var(--v49d-gold); font-size: 1.3rem; margin-bottom: .25rem; }
.v49d-feature p { color: var(--v49d-muted); font-size: 1.15rem; line-height: 1.5; }

/* Testimonials */
.v49d-testimonial {
  background: var(--v49d-bg-2); padding: 1rem; border-radius: 10px;
  border: 1px solid #3a4b5c; margin-bottom: .8rem;
}
.v49d-testimonial .v49d-stars { color: var(--v49d-gold); margin-bottom: .3rem; }
.v49d-testimonial p { color: var(--v49d-text); font-size: 1.18rem; font-style: italic; }
.v49d-testimonial cite { display:block; margin-top: .4rem; color: var(--v49d-muted); font-size: 1.1rem; }

/* Winners */
.v49d-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .8rem; border-bottom: 1px dashed #3a4b5c; font-size: 1.15rem;
}
.v49d-winner-row strong { color: var(--v49d-gold); }

/* Payment chips */
.v49d-pay-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.v49d-pay-chip {
  background: #fff; color: var(--v49d-bg); border-radius: 6px;
  padding: .35rem .7rem; font-size: 1.05rem; font-weight: 700;
}

/* RTP compact grid */
.v49d-rtp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
.v49d-rtp-item { background:#33475a; border-radius:8px; padding:.6rem; text-align:center; }
.v49d-rtp-item .v49d-rtp-name { font-size:1.05rem; color:var(--v49d-text); }
.v49d-rtp-item .v49d-rtp-val { color: var(--v49d-gold); font-weight:800; font-size:1.4rem; }

/* FAQ */
.v49d-faq-item {
  background: var(--v49d-bg-2); border-radius: 10px; margin-bottom: .6rem;
  border: 1px solid #3a4b5c; overflow: hidden;
}
.v49d-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem; cursor: pointer; font-weight: 700; color: var(--v49d-text); font-size: 1.25rem;
}
.v49d-faq-q i { color: var(--v49d-accent); transition: transform .2s; }
.v49d-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 1rem; color: var(--v49d-muted); }
.v49d-faq-item.v49d-faq-open .v49d-faq-a { max-height: 320px; padding: 0 1rem 1rem; }
.v49d-faq-item.v49d-faq-open .v49d-faq-q i { transform: rotate(45deg); }

/* App download CTA */
.v49d-app-cta {
  display: flex; gap: .8rem; align-items: center;
  background: linear-gradient(135deg, #143a1a, var(--v49d-primary));
  padding: 1rem; border-radius: var(--v49d-radius); margin-bottom: 1rem;
}
.v49d-app-cta .v49d-app-icon {
  width: 5.2rem; height: 5.2rem; border-radius: 12px; background:#fff;
  display:flex; align-items:center; justify-content:center; font-size: 2.6rem; color: var(--v49d-primary);
  flex: 0 0 auto;
}
.v49d-app-cta h4 { color: var(--v49d-gold); font-size: 1.35rem; }
.v49d-app-cta p { color:#eaf7ea; font-size:1.1rem; margin:.2rem 0 .5rem; }

/* Article text */
.v49d-article p { color: var(--v49d-muted); font-size: 1.22rem; line-height: 1.6; margin-bottom: .8rem; }
.v49d-article h2 { color: var(--v49d-text); font-size: 1.7rem; margin: 1.4rem 0 .6rem; }
.v49d-article h3 { color: var(--v49d-gold); font-size: 1.4rem; margin: 1rem 0 .4rem; }
.v49d-article ul { padding-left: 1.4rem; margin-bottom: .8rem; }
.v49d-article li { color: var(--v49d-muted); font-size: 1.18rem; line-height: 1.55; margin-bottom: .3rem; }

/* ===== Footer ===== */
.v49d-footer {
  background: var(--v49d-bg-2); border-top: 2px solid var(--v49d-primary);
  padding: 1.8rem 1.2rem 7.5rem; margin-top: 1.5rem;
}
.v49d-footer h4 { color: var(--v49d-gold); font-size: 1.3rem; margin-bottom: .5rem; }
.v49d-footer p { color: var(--v49d-muted); font-size: 1.15rem; line-height: 1.55; margin-bottom: .8rem; }
.v49d-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .8rem 0 1rem;
}
.v49d-footer-links a {
  color: var(--v49d-text); font-size: 1.12rem;
  background:#33475a; padding:.35rem .7rem; border-radius:6px;
}
.v49d-footer-links a:hover { background: var(--v49d-primary); color:#fff; }
.v49d-footer-cta { display:flex; gap:.5rem; flex-wrap:wrap; margin:.6rem 0 1rem; }
.v49d-copy { color: var(--v49d-muted); font-size: 1.1rem; border-top: 1px dashed #3a4b5c; padding-top: .8rem; }

/* ===== Bottom nav (mobile only) ===== */
.v49d-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #1f2c3a, #143a1a);
  border-top: 2px solid var(--v49d-primary);
  height: 62px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -3px 12px rgba(0,0,0,.35);
}
.v49d-bottom-nav a, .v49d-bottom-nav button {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v49d-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; font-size: 1rem; cursor: pointer;
  border-top: 3px solid transparent; transition: transform .12s ease, color .12s ease;
}
.v49d-bottom-nav a i, .v49d-bottom-nav button i { font-size: 2.2rem; }
.v49d-bottom-nav .material-icons { font-size: 2.4rem; }
.v49d-bottom-nav a:hover, .v49d-bottom-nav button:hover { color: var(--v49d-gold); transform: translateY(-1px); }
.v49d-bottom-nav .v49d-active { color: var(--v49d-gold); border-top-color: var(--v49d-accent); }

/* Back to top button */
.v49d-top {
  position: fixed; right: 1rem; bottom: 7.5rem; z-index: 900;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--v49d-accent); color: #fff; border: none;
  font-size: 1.8rem; box-shadow: var(--v49d-shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Desktop: hide bottom nav + back-to-top, widen layout */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .v49d-bottom-nav, .v49d-top { display: none; }
  .v49d-wrapper { max-width: 1200px; }
  .v49d-header-inner { max-width: 1200px; margin: 0 auto; }
  .v49d-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v49d-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .v49d-rtp-grid { grid-template-columns: repeat(4,1fr); }
  .v49d-footer { padding-bottom: 2rem; }
}

/* Ensure main content not hidden behind bottom nav on mobile */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
