/*!
 * theme-aa8e.css - Core stylesheet for casino login (casino-login.click)
 * All custom classes use the "g8e4-" prefix. Mobile-first, max-width 430px.
 * Palette: #FF0000 (primary red), #333333 (dark base), #A0522D (accent brown),
 *          #D3D3D3 (light neutral), #FA8072 (warm salmon highlight).
 */

:root {
  --g8e4-primary: #FF0000;
  --g8e4-bg: #1a1a1a;
  --g8e4-bg-alt: #2a2a2a;
  --g8e4-dark: #333333;
  --g8e4-brown: #A0522D;
  --g8e4-neutral: #D3D3D3;
  --g8e4-salmon: #FA8072;
  --g8e4-text: #f5f5f5;
  --g8e4-text-dim: #c0c0c0;
  --g8e4-gold: #f5c542;
  --g8e4-radius: 10px;
  --g8e4-header-h: 56px;
  --g8e4-bottomnav-h: 62px;
}

/* Base reset scoped to project wrapper to avoid leaking into shared assets. */
html { -webkit-text-size-adjust: 100%; }
body.g8e4-page {
  margin: 0;
  padding: 0;
  background: var(--g8e4-bg);
  color: var(--g8e4-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g8e4-salmon); text-decoration: none; }
a:hover { color: var(--g8e4-gold); }

/* Layout primitives */
.g8e4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.g8e4-container { padding: 0 14px; box-sizing: border-box; }
.g8e4-section { padding: 26px 0 14px; }
.g8e4-section-alt { background: var(--g8e4-bg-alt); }

/* Headings */
.g8e4-h1 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--g8e4-text);
}
.g8e4-h2 {
  font-size: 1.25rem;
  margin: 18px 0 8px;
  color: var(--g8e4-gold);
  border-left: 4px solid var(--g8e4-primary);
  padding-left: 10px;
}
.g8e4-h3 {
  font-size: 1.05rem;
  margin: 14px 0 6px;
  color: var(--g8e4-salmon);
}
.g8e4-lead { color: var(--g8e4-text-dim); margin: 0 0 12px; }
.g8e4-p { margin: 0 0 10px; color: var(--g8e4-text-dim); }

/* Header */
.g8e4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g8e4-header-h);
  background: var(--g8e4-dark);
  border-bottom: 2px solid var(--g8e4-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.g8e4-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
}
.g8e4-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g8e4-brand img { width: 26px; height: 26px; border-radius: 6px; }
.g8e4-brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--g8e4-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g8e4-brand-name span { color: var(--g8e4-primary); }
.g8e4-header-actions { display: flex; align-items: center; gap: 6px; }
.g8e4-menu-btn {
  background: transparent;
  border: 1px solid var(--g8e4-neutral);
  color: var(--g8e4-text);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.g8e4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  line-height: 1;
}
.g8e4-btn-primary { background: var(--g8e4-primary); color: #fff; }
.g8e4-btn-primary:hover { background: #cc0000; }
.g8e4-btn-outline { background: transparent; color: var(--g8e4-text); border: 1px solid var(--g8e4-salmon); }
.g8e4-btn-outline:hover { background: rgba(250, 128, 114, 0.15); }
.g8e4-btn-gold { background: var(--g8e4-gold); color: #333; }
.g8e4-btn-block { display: flex; width: 100%; }
.g8e4-link-text { color: var(--g8e4-salmon); font-weight: 700; }
.g8e4-link-text:hover { color: var(--g8e4-gold); text-decoration: underline; }

/* Expandable mobile menu */
.g8e4-mobile-menu {
  position: fixed;
  top: var(--g8e4-header-h);
  left: 0; right: 0;
  background: var(--g8e4-dark);
  border-bottom: 2px solid var(--g8e4-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  z-index: 9999;
}
.g8e4-mobile-menu.g8e4-menu-open { max-height: 460px; }
.g8e4-mobile-menu ul { list-style: none; margin: 0; padding: 8px 14px; }
.g8e4-mobile-menu li { border-bottom: 1px solid rgba(211, 211, 211, 0.18); }
.g8e4-mobile-menu li:last-child { border-bottom: none; }
.g8e4-mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: var(--g8e4-text);
  font-size: 0.95rem;
}
.g8e4-mobile-menu a:hover { color: var(--g8e4-salmon); }

/* Main content offset for fixed header */
.g8e4-main { padding-top: var(--g8e4-header-h); padding-bottom: 80px; }

/* Carousel */
.g8e4-carousel { position: relative; width: 100%; height: 180px; overflow: hidden; }
.g8e4-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s ease;
  cursor: pointer;
}
.g8e4-slide.g8e4-slide-active { opacity: 1; }
.g8e4-slide img { width: 100%; height: 100%; object-fit: cover; }
.g8e4-slide-cap {
  position: absolute; left: 12px; bottom: 14px; right: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fff;
}
.g8e4-dots { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; }
.g8e4-dot {
  display: inline-block; width: 8px; height: 8px;
  margin: 0 3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none; cursor: pointer; padding: 0;
}
.g8e4-dot.g8e4-dot-active { background: var(--g8e4-primary); }

/* Game grid */
.g8e4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.g8e4-card {
  background: var(--g8e4-bg-alt);
  border-radius: var(--g8e4-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.g8e4-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); border-color: var(--g8e4-primary); }
.g8e4-card img { width: 100%; height: 92px; object-fit: cover; }
.g8e4-card-name {
  font-size: 0.7rem;
  color: var(--g8e4-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Generic card / panel */
.g8e4-panel {
  background: var(--g8e4-bg-alt);
  border-radius: var(--g8e4-radius);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid rgba(211, 211, 211, 0.12);
}
.g8e4-panel-title {
  font-weight: 700;
  color: var(--g8e4-gold);
  margin: 0 0 6px;
  font-size: 1rem;
}

/* List helpers */
.g8e4-list { margin: 6px 0; padding-left: 20px; color: var(--g8e4-text-dim); }
.g8e4-list li { margin-bottom: 6px; }

/* RTP / stats compact rows */
.g8e4-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px dashed rgba(211, 211, 211, 0.18);
  font-size: 0.85rem;
}
.g8e4-stat-row:last-child { border-bottom: none; }
.g8e4-stat-label { color: var(--g8e4-text-dim); }
.g8e4-stat-value { color: var(--g8e4-gold); font-weight: 700; }

/* Testimonial */
.g8e4-quote {
  background: var(--g8e4-bg-alt);
  border-left: 4px solid var(--g8e4-salmon);
  padding: 10px 12px;
  border-radius: 6px;
  margin: 8px 0;
  font-style: italic;
  color: var(--g8e4-text-dim);
}
.g8e4-quote-author { display: block; margin-top: 6px; font-style: normal; color: var(--g8e4-gold); font-size: 0.8rem; }

/* Winner showcase chips */
.g8e4-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g8e4-chip {
  background: var(--g8e4-dark);
  border: 1px solid var(--g8e4-brown);
  color: var(--g8e4-text);
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Payment badges row */
.g8e4-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.g8e4-pay span {
  background: var(--g8e4-dark);
  color: var(--g8e4-neutral);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid rgba(211, 211, 211, 0.25);
}

/* CTA band */
.g8e4-cta {
  background: linear-gradient(135deg, var(--g8e4-primary), var(--g8e4-brown));
  padding: 16px;
  border-radius: var(--g8e4-radius);
  text-align: center;
  margin: 14px 0;
}
.g8e4-cta h3 { color: #fff; margin-top: 0; }
.g8e4-cta p { color: rgba(255, 255, 255, 0.9); margin: 0 0 10px; }

/* Footer */
.g8e4-footer {
  background: #111;
  border-top: 2px solid var(--g8e4-primary);
  padding: 20px 14px calc(var(--g8e4-bottomnav-h) + 18px);
  color: var(--g8e4-text-dim);
  font-size: 0.82rem;
}
.g8e4-footer-brand { color: var(--g8e4-text); margin-bottom: 8px; }
.g8e4-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin: 10px 0;
}
.g8e4-footer-links a { color: var(--g8e4-neutral); font-size: 0.78rem; }
.g8e4-footer-links a:hover { color: var(--g8e4-salmon); }
.g8e4-footer-copy { margin-top: 10px; color: #777; font-size: 0.72rem; }

/* Bottom navigation (mobile only) */
.g8e4-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g8e4-bottomnav-h);
  background: var(--g8e4-dark);
  border-top: 2px solid var(--g8e4-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.g8e4-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--g8e4-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 0.66rem;
  cursor: pointer;
  gap: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g8e4-bottomnav-btn:active { transform: scale(0.9); }
.g8e4-bottomnav-btn .material-icons,
.g8e4-bottomnav-btn ion-icon,
.g8e4-bottomnav-btn i { font-size: 22px; }
.g8e4-bottomnav-btn:hover { color: var(--g8e4-salmon); }
.g8e4-bottomnav-active { color: var(--g8e4-primary); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g8e4-bottomnav { display: none; }
  .g8e4-footer { padding-bottom: 24px; }
  .g8e4-wrapper { max-width: 768px; }
  .g8e4-header-inner { max-width: 768px; }
}

/* Small phone fine-tuning */
@media (max-width: 360px) {
  .g8e4-grid { grid-template-columns: repeat(2, 1fr); }
  .g8e4-card img { height: 110px; }
  .g8e4-h1 { font-size: 1.35rem; }
}

/* Mobile bottom padding safety for very small screens */
@media (max-width: 430px) {
  .g8e4-main { padding-bottom: 84px; }
}
