/**
 * Hann Casino Resort - Core Stylesheet
 * CSS prefix: g42b- | CSS variables: --g42b-
 * Mobile-first design, max-width 430px
 */

/* ===== CSS Variables ===== */
:root {
  --g42b-primary: #0F0F23;
  --g42b-secondary: #1a1a3e;
  --g42b-accent: #FA8072;
  --g42b-text: #E0FFFF;
  --g42b-text-muted: #B2DFDB;
  --g42b-surface: #ECF0F1;
  --g42b-bg-dark: #0F0F23;
  --g42b-bg-card: #15153a;
  --g42b-border: #2a2a5a;
  --g42b-gold: #FFD700;
  --g42b-green: #4CAF50;
  --g42b-radius: 1.2rem;
  --g42b-radius-sm: 0.8rem;
  --g42b-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.5);
  --g42b-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--g42b-primary);
  color: var(--g42b-text);
  font-size: 1.6rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g42b-accent); text-decoration: none; transition: var(--g42b-transition); }
a:hover { color: var(--g42b-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.g42b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: linear-gradient(135deg, var(--g42b-primary) 0%, #1a1a4a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 0.1rem solid var(--g42b-border);
  backdrop-filter: blur(1rem);
}

.g42b-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g42b-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.g42b-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g42b-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.g42b-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g42b-btn-register, .g42b-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--g42b-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g42b-transition);
  white-space: nowrap;
}

.g42b-btn-register {
  background: linear-gradient(135deg, var(--g42b-accent), #ff6b6b);
  color: #fff;
}

.g42b-btn-register:hover { transform: scale(1.05); box-shadow: 0 0.3rem 1rem rgba(250,128,114,0.4); }

.g42b-btn-login {
  background: transparent;
  color: var(--g42b-text);
  border: 0.1rem solid var(--g42b-accent);
}

.g42b-btn-login:hover { background: var(--g42b-accent); color: #fff; }

.g42b-menu-toggle {
  background: none;
  border: none;
  color: var(--g42b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ===== Mobile Menu ===== */
.g42b-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g42b-transition);
}

.g42b-menu-overlay.g42b-active { opacity: 1; visibility: visible; }

.g42b-mobile-menu {
  position: fixed;
  top: 0; right: -28rem;
  width: 28rem;
  max-width: 80vw;
  height: 100vh;
  background: var(--g42b-bg-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  overflow-y: auto;
  border-left: 0.1rem solid var(--g42b-border);
}

.g42b-mobile-menu.g42b-active { right: 0; }

.g42b-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem;
  border-bottom: 0.1rem solid var(--g42b-border);
}

.g42b-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g42b-gold);
}

.g42b-menu-close {
  background: none;
  border: none;
  color: var(--g42b-text);
  font-size: 2rem;
  cursor: pointer;
}

.g42b-menu-links { padding: 1rem 0; }

.g42b-menu-links li a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--g42b-text);
  font-size: 1.5rem;
  transition: var(--g42b-transition);
}

.g42b-menu-links li a:hover {
  background: var(--g42b-bg-card);
  color: var(--g42b-accent);
}

.g42b-menu-links li a i { width: 2rem; text-align: center; font-size: 1.6rem; }

/* ===== Main Content ===== */
.g42b-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

/* ===== Carousel ===== */
.g42b-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.g42b-slide {
  display: none;
  width: 100%;
}

.g42b-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.g42b-slide-active { display: block; animation: g42b-fadeIn 0.6s ease; }

@keyframes g42b-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.g42b-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.g42b-dot {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--g42b-transition);
  border: none;
}

.g42b-dot-active { background: var(--g42b-accent); transform: scale(1.2); }

/* ===== Section Titles ===== */
.g42b-section { padding: 2rem 1.2rem; }

.g42b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g42b-gold);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.2rem solid var(--g42b-accent);
}

.g42b-section-title i { margin-right: 0.6rem; }

/* ===== Game Grid ===== */
.g42b-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g42b-accent);
  margin: 1.6rem 0 1rem;
  padding-left: 0.4rem;
  border-left: 0.3rem solid var(--g42b-gold);
}

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

.g42b-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g42b-transition);
  border-radius: var(--g42b-radius-sm);
  padding: 0.4rem;
}

.g42b-game-item:hover { transform: translateY(-0.3rem); background: var(--g42b-bg-card); }

.g42b-game-item img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--g42b-radius-sm);
  margin-bottom: 0.4rem;
  border: 0.15rem solid var(--g42b-border);
}

.g42b-game-name {
  font-size: 1.1rem;
  color: var(--g42b-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Modules ===== */
.g42b-card {
  background: var(--g42b-bg-card);
  border-radius: var(--g42b-radius);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 0.1rem solid var(--g42b-border);
}

.g42b-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g42b-gold);
  margin-bottom: 1rem;
}

.g42b-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g42b-text-muted);
  margin-bottom: 1rem;
}

.g42b-card ul { padding-left: 1.6rem; }
.g42b-card ul li {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g42b-text-muted);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1rem;
}

.g42b-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7rem;
  width: 0.5rem; height: 0.5rem;
  background: var(--g42b-accent);
  border-radius: 50%;
}

/* ===== Promo Buttons & Links ===== */
.g42b-btn-promo {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--g42b-accent), #ff6b6b);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  border: none;
  border-radius: var(--g42b-radius-sm);
  cursor: pointer;
  transition: var(--g42b-transition);
  text-align: center;
}

.g42b-btn-promo:hover { transform: scale(1.05); box-shadow: 0 0.4rem 1.2rem rgba(250,128,114,0.5); }

.g42b-text-link {
  color: var(--g42b-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--g42b-transition);
  text-decoration: underline;
}

.g42b-text-link:hover { color: var(--g42b-gold); }

/* ===== Winner / Stats Bar ===== */
.g42b-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 1.2rem;
  background: var(--g42b-bg-card);
  border-radius: var(--g42b-radius);
  margin: 1rem 0;
  border: 0.1rem solid var(--g42b-border);
}

.g42b-stat-item { text-align: center; }

.g42b-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g42b-accent);
}

.g42b-stat-label {
  font-size: 1.1rem;
  color: var(--g42b-text-muted);
}

/* ===== Payment Methods ===== */
.g42b-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.g42b-payment-item {
  background: var(--g42b-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--g42b-radius-sm);
  border: 0.1rem solid var(--g42b-border);
  font-size: 1.2rem;
  color: var(--g42b-text);
}

/* ===== Testimonials ===== */
.g42b-testimonial {
  background: var(--g42b-bg-card);
  border-radius: var(--g42b-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--g42b-accent);
}

.g42b-testimonial-name {
  font-weight: 700;
  color: var(--g42b-gold);
  font-size: 1.4rem;
}

.g42b-testimonial-text {
  font-size: 1.3rem;
  color: var(--g42b-text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ===== CTA Banner ===== */
.g42b-cta-banner {
  background: linear-gradient(135deg, var(--g42b-accent), #e91e63);
  border-radius: var(--g42b-radius);
  padding: 2rem 1.2rem;
  text-align: center;
  margin: 1.6rem 0;
}

.g42b-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}

.g42b-cta-text {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}

/* ===== Footer ===== */
.g42b-footer {
  background: var(--g42b-bg-dark);
  padding: 2rem 1.2rem;
  border-top: 0.1rem solid var(--g42b-border);
  text-align: center;
}

.g42b-footer-brand {
  font-size: 1.3rem;
  color: var(--g42b-text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.g42b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.g42b-footer-links a {
  font-size: 1.2rem;
  color: var(--g42b-text-muted);
  padding: 0.4rem 0.8rem;
  background: var(--g42b-bg-card);
  border-radius: var(--g42b-radius-sm);
  border: 0.1rem solid var(--g42b-border);
}

.g42b-footer-links a:hover { color: var(--g42b-accent); border-color: var(--g42b-accent); }

.g42b-footer-copy {
  font-size: 1.2rem;
  color: #666;
  margin-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.g42b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #1a1a3e, var(--g42b-primary));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 0.1rem solid var(--g42b-border);
  padding: 0 0.4rem;
}

.g42b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--g42b-text-muted);
  cursor: pointer;
  transition: var(--g42b-transition);
  border-radius: 0.8rem;
  padding: 0.4rem;
}

.g42b-bottom-btn i,
.g42b-bottom-btn .material-icons {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.g42b-bottom-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

.g42b-bottom-btn:hover,
.g42b-bottom-active {
  color: var(--g42b-accent);
  transform: scale(1.08);
}

.g42b-bottom-active i,
.g42b-bottom-active .material-icons {
  text-shadow: 0 0 1rem rgba(250,128,114,0.6);
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .g42b-bottom-nav { display: none; }
  .g42b-main { padding-bottom: 0; }
}

@media (max-width: 768px) {
  .g42b-main { padding-bottom: 8rem; }
  .g42b-footer { padding-bottom: 8rem; }
}

/* ===== Utility Classes ===== */
.g42b-text-center { text-align: center; }
.g42b-text-accent { color: var(--g42b-accent); }
.g42b-text-gold { color: var(--g42b-gold); }
.g42b-mt-1 { margin-top: 1rem; }
.g42b-mb-1 { margin-bottom: 1rem; }
.g42b-hidden { display: none !important; }

/* ===== Help Page Content Styles ===== */
.g42b-help-section { margin-bottom: 2rem; }

.g42b-help-section h2 {
  font-size: 1.8rem;
  color: var(--g42b-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.1rem solid var(--g42b-border);
}

.g42b-help-section h3 {
  font-size: 1.5rem;
  color: var(--g42b-accent);
  margin: 1.2rem 0 0.6rem;
}

.g42b-help-section p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g42b-text-muted);
  margin-bottom: 0.8rem;
}

.g42b-help-section ol,
.g42b-help-section ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

.g42b-help-section ol li,
.g42b-help-section ul li {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g42b-text-muted);
  margin-bottom: 0.5rem;
}

.g42b-faq-item {
  background: var(--g42b-bg-card);
  border-radius: var(--g42b-radius-sm);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 0.1rem solid var(--g42b-border);
}

.g42b-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g42b-gold);
  margin-bottom: 0.5rem;
}

.g42b-faq-a {
  font-size: 1.3rem;
  color: var(--g42b-text-muted);
  line-height: 1.5;
}

/* ===== Winner Marquee ===== */
.g42b-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid var(--g42b-border);
}

.g42b-winner-name {
  font-weight: 600;
  color: var(--g42b-text);
  font-size: 1.3rem;
}

.g42b-winner-game {
  font-size: 1.2rem;
  color: var(--g42b-text-muted);
}

.g42b-winner-amount {
  margin-left: auto;
  font-weight: 700;
  color: var(--g42b-green);
  font-size: 1.4rem;
}
