/* ============================================================
 * Casino game - casino-game.cfd
 * Mobile-first HTML5 casino portal stylesheet.
 * All custom classes use the "g087-" prefix.
 * Color palette: #AFEEEE | #40E0D0 | #1E90FF | #FFCCCB | #141414
 * Root font-size 62.5% => 1rem = 10px.
 * ============================================================ */

:root {
  --g087-bg: #141414;
  --g087-bg-soft: #1f1f24;
  --g087-bg-card: #26262d;
  --g087-primary: #1E90FF;
  --g087-secondary: #40E0D0;
  --g087-light: #AFEEEE;
  --g087-pink: #FFCCCB;
  --g087-text: #f4fbfb;
  --g087-text-muted: #b6c2c5;
  --g087-border: rgba(175, 238, 238, 0.16);
  --g087-gradient: linear-gradient(135deg, #1E90FF 0%, #40E0D0 60%, #AFEEEE 100%);
  --g087-gradient-dark: linear-gradient(160deg, #1b1b22 0%, #141414 100%);
}

* { 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', 'Helvetica Neue', Arial, sans-serif;
  background: var(--g087-bg);
  background-image: var(--g087-gradient-dark);
  color: var(--g087-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g087-light); text-decoration: none; }
a:hover { color: var(--g087-secondary); }
img { max-width: 100%; display: block; }

.g087-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g087-wrapper { width: 100%; }

/* ---------- Header ---------- */
.g087-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g087-border);
  max-width: 430px;
  margin: 0 auto;
}
.g087-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 1rem;
}
.g087-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.g087-brand-logo {
  width: 3.2rem; height: 3.2rem;
  border-radius: 0.8rem;
  background: var(--g087-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #141414; font-weight: 800; font-size: 1.6rem;
}
.g087-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--g087-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.g087-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.g087-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 2.4rem;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  min-height: 3.6rem;
  line-height: 1;
}
.g087-btn:active { transform: scale(0.96); }
.g087-btn-primary {
  background: var(--g087-gradient);
  color: #141414;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.35);
}
.g087-btn-ghost {
  background: transparent;
  color: var(--g087-light);
  border: 1px solid var(--g087-border);
}
.g087-btn-block {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
}
.g087-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g087-light);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile slide-down menu ---------- */
.g087-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(14px);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  max-width: 430px;
  margin: 0 auto;
}
.g087-mobile-menu.g087-menu-open {
  max-height: 80vh;
  overflow-y: auto;
  padding: 6rem 1.2rem 2rem;
}
.g087-mobile-menu a {
  display: block;
  padding: 1.1rem 1rem;
  border-radius: 0.8rem;
  color: var(--g087-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g087-border);
}
.g087-mobile-menu a:hover {
  background: var(--g087-bg-soft);
  color: var(--g087-secondary);
}
.g087-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: transparent; border: none;
  color: var(--g087-light);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
main { padding-top: 6.4rem; padding-bottom: 1rem; }
.g087-hero {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  margin: 1.2rem 0;
}
.g087-hero-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.g087-hero-slide.g087-slide-active { display: block; }
.g087-hero-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.g087-hero-caption {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: linear-gradient(transparent, rgba(20,20,20,0.85));
  padding: 1rem;
  border-radius: 1rem;
}
.g087-hero-caption h2 {
  font-size: 1.8rem;
  color: var(--g087-light);
  margin-bottom: 0.4rem;
}
.g087-hero-caption p { color: var(--g087-text-muted); font-size: 1.3rem; }
.g087-hero-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.6rem 0;
}
.g087-hero-dots span {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(175,238,238,0.3);
}

/* ---------- Section / Headings ---------- */
.g087-section {
  padding: 1.6rem 0;
}
.g087-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.g087-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--g087-light);
  position: relative;
  padding-left: 1.2rem;
}
.g087-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.4rem; height: 1.8rem;
  background: var(--g087-gradient);
  border-radius: 0.4rem;
}
.g087-section-more {
  font-size: 1.2rem;
  color: var(--g087-secondary);
}
.g087-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--g087-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1.2rem 0;
  line-height: 1.3;
}

/* ---------- Game grid ---------- */
.g087-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g087-card {
  background: var(--g087-bg-card);
  border: 1px solid var(--g087-border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.g087-card:hover {
  transform: translateY(-2px);
  border-color: var(--g087-secondary);
}
.g087-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0e0e12;
}
.g087-card-name {
  font-size: 1.1rem;
  text-align: center;
  padding: 0.5rem 0.3rem;
  color: var(--g087-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g087-cat-tag {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--g087-secondary);
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--g087-border);
  border-radius: 2rem;
  margin-bottom: 0.6rem;
}

/* ---------- Info / Features / FAQ blocks ---------- */
.g087-text-block {
  background: var(--g087-bg-soft);
  border-radius: 1.2rem;
  padding: 1.4rem;
  margin: 1rem 0;
  border: 1px solid var(--g087-border);
}
.g087-text-block h2 {
  font-size: 1.7rem; color: var(--g087-light); margin-bottom: 0.6rem;
}
.g087-text-block h3 {
  font-size: 1.4rem; color: var(--g087-secondary); margin: 0.8rem 0 0.4rem;
}
.g087-text-block p { color: var(--g087-text-muted); margin-bottom: 0.6rem; }
.g087-text-block ul { padding-left: 1.6rem; color: var(--g087-text-muted); }

.g087-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.g087-feature {
  background: var(--g087-bg-card);
  border: 1px solid var(--g087-border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.g087-feature .material-icons,
.g087-feature i { font-size: 2.6rem; color: var(--g087-secondary); }
.g087-feature h3 { font-size: 1.3rem; margin: 0.4rem 0; color: var(--g087-light); }
.g087-feature p { font-size: 1.1rem; color: var(--g087-text-muted); }

.g087-faq details {
  background: var(--g087-bg-card);
  border: 1px solid var(--g087-border);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}
.g087-faq summary {
  font-weight: 700; color: var(--g087-light); cursor: pointer;
  list-style: none; font-size: 1.35rem;
}
.g087-faq summary::-webkit-details-marker { display: none; }
.g087-faq p { margin-top: 0.6rem; color: var(--g087-text-muted); font-size: 1.25rem; }

.g087-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem; margin: 1rem 0;
}
.g087-stat {
  background: var(--g087-bg-card);
  border-radius: 1rem; padding: 1rem 0.5rem;
  text-align: center; border: 1px solid var(--g087-border);
}
.g087-stat-num {
  font-size: 1.9rem; font-weight: 800;
  background: var(--g087-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g087-stat-label { font-size: 1.05rem; color: var(--g087-text-muted); }

/* ---------- Inline promo link ---------- */
.g087-promo-link {
  color: var(--g087-secondary);
  font-weight: 800;
  cursor: pointer;
  border-bottom: 1px dashed var(--g087-secondary);
}

/* ---------- Footer ---------- */
.g087-footer {
  margin-top: 1.6rem;
  padding: 1.8rem 1.2rem 2rem;
  background: var(--g087-bg-soft);
  border-top: 1px solid var(--g087-border);
}
.g087-footer h3 {
  font-size: 1.5rem; color: var(--g087-light); margin-bottom: 0.6rem;
}
.g087-footer p { color: var(--g087-text-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.g087-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0.8rem 0 1rem;
}
.g087-footer-links a {
  font-size: 1.2rem; color: var(--g087-text-muted);
}
.g087-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1.2rem;
}
.g087-copyright {
  font-size: 1.1rem; color: var(--g087-text-muted); text-align: center;
  border-top: 1px solid var(--g087-border); padding-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.g087-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6rem;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--g087-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
}
.g087-nav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--g087-text-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color .2s ease, transform .15s ease;
  padding: 0.4rem 0.2rem;
}
.g087-nav-btn:active { transform: scale(0.92); }
.g087-nav-btn i,
.g087-nav-btn .material-icons,
.g087-nav-btn ion-icon { font-size: 2.4rem; }
.g087-nav-btn .bi { font-size: 2.2rem; }
.g087-nav-btn:hover { color: var(--g087-light); }
.g087-nav-btn.g087-nav-active { color: var(--g087-secondary); }
.g087-nav-pulse { animation: g087-pulse 0.45s ease; }
@keyframes g087-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); color: var(--g087-secondary); }
  100% { transform: scale(1); }
}
.g087-nav-label { font-size: 1.05rem; }

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .g087-container { max-width: 960px; }
  .g087-header { max-width: 100%; }
  .g087-bottom-nav { display: none; }
  .g087-grid { grid-template-columns: repeat(6, 1fr); }
  .g087-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile clearance for fixed bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
  .g087-footer { padding-bottom: 8rem; }
}
