/*!
 * mb666 stylesheet
 * Mobile-first casino layout. Root font 62.5% for easy rem math.
 * All custom classes use the dynamic prefix "g43d-".
 */
:root {
  --g43d-primary: #FF0000;
  --g43d-secondary: #26A69A;
  --g43d-accent: #CD853F;
  --g43d-bg: #3A3A3A;
  --g43d-bg-dark: #2a2a2a;
  --g43d-bg-deep: #1c1c1c;
  --g43d-text: #F0FDFF;
  --g43d-muted: #c7d6da;
  --g43d-border: rgba(240, 253, 255, 0.12);
  --g43d-gold: #FFD27A;
  --g43d-radius: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--g43d-bg-deep);
  color: var(--g43d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a {
  color: var(--g43d-secondary);
  text-decoration: none;
}

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

/* ============ Layout container (max-width: 430px for mobile first) ============ */
.g43d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g43d-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.g43d-container {
  width: 100%;
  padding: 0 1.2rem;
}

main {
  padding-bottom: 80px;
}

/* ============ Header ============ */
.g43d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #b00000 0%, var(--g43d-primary) 50%, #8a0000 100%);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--g43d-gold);
}

.g43d-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g43d-text);
  font-weight: 800;
  font-size: 1.9rem;
}

.g43d-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.g43d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g43d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.g43d-btn:active {
  transform: scale(0.96);
}

.g43d-btn-login {
  background: var(--g43d-secondary);
}

.g43d-btn-register {
  background: var(--g43d-gold);
  color: #1c1c1c;
  box-shadow: 0 4px 10px rgba(255, 210, 122, 0.4);
}

.g43d-menu-toggle {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1.8rem;
  cursor: pointer;
  border: none;
  min-width: 44px;
  min-height: 44px;
}

.g43d-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--g43d-bg-dark);
  border-bottom: 1px solid var(--g43d-border);
  padding: 1rem 1.2rem;
  z-index: 9999;
  flex-direction: column;
  gap: 0.4rem;
}

.g43d-mobile-menu.g43d-menu-open {
  display: flex;
}

.g43d-mobile-menu a {
  color: var(--g43d-text);
  padding: 1rem 0.6rem;
  border-radius: 6px;
  border-bottom: 1px solid var(--g43d-border);
  font-size: 1.4rem;
}

.g43d-mobile-menu a:active {
  background: rgba(255, 255, 255, 0.06);
}

/* ============ Carousel ============ */
.g43d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.g43d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g43d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g43d-slide-active {
  opacity: 1;
}

.g43d-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.g43d-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
}

.g43d-dot-active {
  background: var(--g43d-gold);
  width: 24px;
  border-radius: 6px;
}

/* ============ Section headings ============ */
.g43d-section {
  padding: 1.6rem 1.2rem;
}

.g43d-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--g43d-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g43d-h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  color: var(--g43d-text);
  margin: 0 0 0.8rem 0;
}

.g43d-lead {
  color: var(--g43d-muted);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============ Game grid ============ */
.g43d-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.6rem 0 0.8rem;
}

.g43d-cat-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g43d-secondary);
}

.g43d-cat-link {
  font-size: 1.3rem;
  color: var(--g43d-gold);
}

.g43d-game-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g43d-game-card {
  background: var(--g43d-bg-dark);
  border: 1px solid var(--g43d-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.g43d-game-card:active {
  transform: scale(0.97);
}

.g43d-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.g43d-game-name {
  font-size: 1.2rem;
  color: var(--g43d-text);
  padding: 0.4rem 0.3rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards / features ============ */
.g43d-card {
  background: var(--g43d-bg-dark);
  border: 1px solid var(--g43d-border);
  border-radius: var(--g43d-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.g43d-card h2,
.g43d-card h3 {
  color: var(--g43d-gold);
  margin: 0 0 0.6rem;
}

.g43d-card h2 {
  font-size: 1.9rem;
}

.g43d-card h3 {
  font-size: 1.6rem;
}

.g43d-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.g43d-feature-list li {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--g43d-secondary);
  font-size: 1.4rem;
}

.g43d-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.g43d-promo-link {
  color: var(--g43d-gold);
  font-weight: 700;
  text-decoration: underline;
}

.g43d-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(38, 166, 154, 0.15);
  color: var(--g43d-secondary);
  font-size: 1.2rem;
  margin-right: 0.4rem;
}

/* ============ Testimonials / winners ============ */
.g43d-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.g43d-mini-card {
  background: var(--g43d-bg-dark);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g43d-border);
}

.g43d-mini-card .g43d-num {
  color: var(--g43d-gold);
  font-size: 1.8rem;
  font-weight: 800;
}

.g43d-mini-card .g43d-label {
  font-size: 1.2rem;
  color: var(--g43d-muted);
}

/* ============ Payment icons row ============ */
.g43d-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.g43d-icon-row .g43d-icon-box {
  background: #fff;
  color: var(--g43d-bg-deep);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

/* ============ Footer ============ */
.g43d-footer {
  background: var(--g43d-bg-deep);
  padding: 2rem 1.2rem 4rem;
  border-top: 2px solid var(--g43d-primary);
  color: var(--g43d-muted);
  font-size: 1.3rem;
}

.g43d-footer h4 {
  color: var(--g43d-gold);
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.g43d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.g43d-footer-links a {
  color: var(--g43d-text);
  font-size: 1.3rem;
}

.g43d-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.g43d-footer-promos button {
  flex: 1 1 45%;
}

.g43d-copyright {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: #888;
}

/* ============ Mobile bottom nav (fixed, 5 buttons) ============ */
.g43d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border-top: 2px solid var(--g43d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}

.g43d-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g43d-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  gap: 2px;
}

.g43d-bottomnav-btn .material-icons,
.g43d-bottomnav-btn ion-icon,
.g43d-bottomnav-btn i {
  font-size: 24px;
}

.g43d-bottomnav-btn:active {
  transform: scale(0.9);
}

.g43d-bottomnav-btn.g43d-bottomnav-active,
.g43d-bottomnav-btn:hover {
  color: var(--g43d-gold);
}

/* ============ Desktop hide ============ */
@media (min-width: 769px) {
  .g43d-bottomnav {
    display: none;
  }

  main {
    padding-bottom: 0;
  }
}

.g43d-hidden {
  display: none !important;
}

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

.g43d-mt-1 { margin-top: 0.5rem; }
.g43d-mt-2 { margin-top: 1rem; }
.g43d-mt-3 { margin-top: 1.5rem; }
