/* ============================================================
 * Hann Casino - Base Stylesheet
 * Class prefix: pge1-
 * Palette: #2C2C2C | #FFDFBA | #FF5722 | #F08080 | #ADB5BD
 * Mobile-first, max-width 430px viewport.
 * ============================================================ */

:root {
  --pge1-bg: #2C2C2C;
  --pge1-bg-soft: #1f1f1f;
  --pge1-bg-card: #33312e;
  --pge1-cream: #FFDFBA;
  --pge1-orange: #FF5722;
  --pge1-coral: #F08080;
  --pge1-silver: #ADB5BD;
  --pge1-text: #f7efe6;
  --pge1-text-muted: #c9bdb1;
  --pge1-primary: #FF5722;
  --pge1-accent: #FFDFBA;
  --pge1-border: rgba(255, 223, 186, 0.16);
  --pge1-radius: 14px;
  --pge1-radius-sm: 10px;
  --pge1-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  --pge1-header-h: 58px;
  --pge1-bottom-h: 62px;
  --pge1-font: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--pge1-font);
  background: var(--pge1-bg);
  color: var(--pge1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--pge1-orange); text-decoration: none; }
a:hover { color: var(--pge1-cream); }

/* ===== Layout helpers ===== */
.pge1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.pge1-wrapper { padding: 18px 14px; }

.pge1-grid {
  display: grid;
  gap: 12px;
}

.pge1-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Header ===== */
.pge1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--pge1-header-h);
  background: linear-gradient(90deg, #232323, #33312e);
  border-bottom: 1px solid var(--pge1-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.pge1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.pge1-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.pge1-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pge1-brand .pge1-brand-name {
  font-size: 1.6rem; font-weight: 800;
  color: var(--pge1-cream);
  letter-spacing: 0.3px;
}
.pge1-brand .pge1-brand-name span { color: var(--pge1-orange); }

.pge1-header-actions { display: flex; align-items: center; gap: 8px; }

.pge1-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--pge1-radius-sm);
  padding: 9px 14px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.pge1-btn:active { transform: scale(0.96); }

.pge1-btn-register {
  background: linear-gradient(135deg, var(--pge1-orange), var(--pge1-coral));
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,87,34,0.32);
}
.pge1-btn-login {
  background: transparent;
  color: var(--pge1-cream);
  border: 1px solid var(--pge1-cream);
}

.pge1-menu-btn {
  background: transparent;
  border: 1px solid var(--pge1-border);
  color: var(--pge1-cream);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ===== Mobile slide-down menu ===== */
.pge1-mobile-menu {
  position: fixed;
  top: var(--pge1-header-h);
  left: 0; right: 0;
  background: var(--pge1-bg-soft);
  border-bottom: 1px solid var(--pge1-border);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pge1-menu-open { max-height: 420px; }

.pge1-mobile-menu ul { list-style: none; padding: 8px 0; }
.pge1-mobile-menu li a {
  display: block;
  padding: 12px 18px;
  color: var(--pge1-text);
  font-size: 1.35rem;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pge1-mobile-menu li a i { margin-right: 10px; color: var(--pge1-orange); }

.pge1-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9988;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s;
}
.pge1-overlay-show { opacity: 1; visibility: visible; }

/* ===== Carousel / Banner ===== */
.pge1-hero {
  margin-top: var(--pge1-header-h);
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto; margin-right: auto;
  overflow: hidden;
}
.pge1-carousel { position: relative; }
.pge1-slide {
  display: none;
  position: relative;
}
.pge1-slide-active { display: block; }
.pge1-slide img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.pge1-slide-caption {
  position: absolute;
  left: 16px; right: 16px;
  bottom: 16px;
  background: rgba(44,44,44,0.72);
  padding: 10px 12px;
  border-radius: var(--pge1-radius-sm);
  border-left: 3px solid var(--pge1-orange);
}
.pge1-slide-caption h3 {
  font-size: 1.4rem; color: var(--pge1-cream); font-weight: 800;
}
.pge1-slide-caption p {
  font-size: 1.15rem; color: var(--pge1-text-muted); margin-top: 3px;
}

.pge1-carousel-dots {
  display: flex; justify-content: center;
  gap: 6px;
  padding: 6px 0 10px;
}
.pge1-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,223,186,0.35);
  cursor: pointer;
}
.pge1-dot-active { background: var(--pge1-orange); }

/* ===== Sections ===== */
.pge1-section {
  padding: 22px 14px;
}
.pge1-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pge1-cream);
  margin-bottom: 4px;
  border-left: 4px solid var(--pge1-orange);
  padding-left: 10px;
}
.pge1-section-intro {
  font-size: 1.2rem;
  color: var(--pge1-text-muted);
  margin-bottom: 14px;
  padding-left: 14px;
}

/* H1 page title */
.pge1-h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pge1-cream);
  text-align: center;
  margin: 6px 0 2px;
  line-height: 1.3;
}
.pge1-h1 span { color: var(--pge1-orange); }
.pge1-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--pge1-silver);
  margin-bottom: 14px;
}

/* ===== Category tabs ===== */
.pge1-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}
.pge1-cat-tab {
  flex: 0 0 auto;
  background: var(--pge1-bg-card);
  color: var(--pge1-text);
  border: 1px solid var(--pge1-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center; gap: 6px;
}
.pge1-cat-tab-active {
  background: linear-gradient(135deg, var(--pge1-orange), var(--pge1-coral));
  color: #fff; border-color: transparent;
}

/* ===== Game grid (compact) ===== */
.pge1-game-section { margin-bottom: 24px; }
.pge1-game-section h3 {
  font-size: 1.45rem; color: var(--pge1-cream); font-weight: 800;
  margin: 10px 0 10px; padding-left: 10px;
  border-left: 3px solid var(--pge1-orange);
}
.pge1-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pge1-game-card {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: var(--pge1-radius-sm);
  padding: 6px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  cursor: pointer;
  min-height: 44px;
}
.pge1-game-card:active {
  transform: scale(0.95);
  border-color: var(--pge1-orange);
  box-shadow: 0 4px 14px rgba(255,87,34,0.25);
}
.pge1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #2a2a2a;
}
.pge1-game-name {
  font-size: 1.05rem;
  color: var(--pge1-text);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Info / feature cards ===== */
.pge1-card {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: var(--pge1-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.pge1-card h3 {
  color: var(--pge1-orange);
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-weight: 800;
}
.pge1-card p { color: var(--pge1-text-muted); font-size: 1.22rem; }

.pge1-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pge1-feature-item {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: var(--pge1-radius-sm);
  padding: 12px;
  text-align: center;
}
.pge1-feature-item i {
  font-size: 2.2rem;
  color: var(--pge1-orange);
  margin-bottom: 6px;
  display: block;
}
.pge1-feature-item h4 {
  color: var(--pge1-cream); font-size: 1.25rem; margin-bottom: 3px;
}
.pge1-feature-item p { color: var(--pge1-text-muted); font-size: 1.1rem; }

/* ===== RTP table (compact) ===== */
.pge1-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pge1-bg-card);
  border-radius: var(--pge1-radius-sm);
  overflow: hidden;
}
.pge1-rtp-table th, .pge1-rtp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--pge1-border);
  font-size: 1.15rem;
  text-align: left;
}
.pge1-rtp-table th { color: var(--pge1-cream); background: #26241f; }
.pge1-rtp-table td.pge1-rtp-rate { color: var(--pge1-orange); font-weight: 800; }

/* ===== Promo banner ===== */
.pge1-promo {
  background: linear-gradient(135deg, #3a241a, #552a1c);
  border: 1px solid var(--pge1-orange);
  border-radius: var(--pge1-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}
.pge1-promo i { font-size: 2.6rem; color: var(--pge1-cream); }
.pge1-promo h4 { color: var(--pge1-cream); font-size: 1.4rem; margin-bottom: 3px; }
.pge1-promo p { color: var(--pge1-text-muted); font-size: 1.15rem; }

/* ===== Testimonials ===== */
.pge1-testimonial {
  background: var(--pge1-bg-card);
  border-left: 3px solid var(--pge1-coral);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.pge1-testimonial p { font-style: italic; color: var(--pge1-text); font-size: 1.18rem; }
.pge1-testimonial .pge1-author {
  display: block; margin-top: 6px;
  color: var(--pge1-silver); font-size: 1.1rem; font-weight: 700;
}

/* ===== Payment methods ===== */
.pge1-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pge1-pay-item {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--pge1-cream);
  font-weight: 700;
}
.pge1-pay-item i { display: block; font-size: 1.8rem; color: var(--pge1-orange); margin-bottom: 4px; }

/* ===== Winners showcase ===== */
.pge1-winner {
  display: flex;
  justify-content: space-between;
  background: var(--pge1-bg-card);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--pge1-border);
}
.pge1-winner .pge1-w-game { color: var(--pge1-cream); font-weight: 700; font-size: 1.15rem; }
.pge1-winner .pge1-w-amount { color: var(--pge1-orange); font-weight: 800; font-size: 1.2rem; }
.pge1-winner .pge1-w-player { color: var(--pge1-silver); font-size: 1.05rem; width: 100%; }
.pge1-winner > div { flex: 1; }

/* ===== VIP / Club tiers ===== */
.pge1-tier {
  display: flex; gap: 10px; align-items: center;
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: var(--pge1-radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.pge1-tier .pge1-tier-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pge1-orange), var(--pge1-coral));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; flex: 0 0 auto;
}
.pge1-tier h4 { color: var(--pge1-cream); font-size: 1.25rem; }
.pge1-tier p { color: var(--pge1-text-muted); font-size: 1.1rem; }

/* ===== App download CTA ===== */
.pge1-app-cta {
  background: linear-gradient(135deg, #44271c, #2c2c2c);
  border: 1px solid var(--pge1-orange);
  border-radius: var(--pge1-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.pge1-app-cta h3 { color: var(--pge1-cream); font-size: 1.5rem; margin-bottom: 6px; }
.pge1-app-cta p { color: var(--pge1-text-muted); font-size: 1.2rem; margin-bottom: 12px; }
.pge1-app-cta .pge1-app-icons {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.pge1-app-cta .pge1-app-btn {
  background: #1d1d1d;
  border: 1px solid var(--pge1-border);
  color: var(--pge1-cream);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
}

/* ===== FAQ ===== */
.pge1-faq-item {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  border-radius: var(--pge1-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.pge1-faq-item h4 {
  color: var(--pge1-orange); font-size: 1.25rem; margin-bottom: 6px; font-weight: 700;
}
.pge1-faq-item p { color: var(--pge1-text-muted); font-size: 1.18rem; }

/* ===== Play now banner ===== */
.pge1-play-now {
  background: linear-gradient(135deg, var(--pge1-orange), var(--pge1-coral));
  border-radius: var(--pge1-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.pge1-play-now h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.pge1-play-now p { color: #fff; font-size: 1.2rem; margin-bottom: 12px; opacity: 0.95; }
.pge1-play-now .pge1-btn {
  background: #2C2C2C; color: var(--pge1-cream);
  padding: 12px 22px; font-size: 1.3rem;
}

/* ===== Footer ===== */
.pge1-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--pge1-border);
  padding: 22px 14px 100px;
  margin-top: 24px;
}
.pge1-footer-brand {
  color: var(--pge1-cream);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pge1-footer-brand span { color: var(--pge1-orange); }
.pge1-footer-desc {
  color: var(--pge1-text-muted);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.pge1-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.pge1-footer-links a {
  background: var(--pge1-bg-card);
  border: 1px solid var(--pge1-border);
  color: var(--pge1-cream);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 600;
}
.pge1-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0;
}
.pge1-footer-promos a {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--pge1-orange), var(--pge1-coral));
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.pge1-footer-copy {
  color: var(--pge1-silver);
  font-size: 1.05rem;
  text-align: center;
  border-top: 1px solid var(--pge1-border);
  padding-top: 12px;
  margin-top: 12px;
}

/* ===== Mobile bottom navigation ===== */
.pge1-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pge1-bottom-h);
  z-index: 1000;
  background: linear-gradient(180deg, #2c2c2c, #161616);
  border-top: 1px solid var(--pge1-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.pge1-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pge1-silver);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  gap: 2px;
}
.pge1-bottom-nav-item:active { transform: scale(0.92); }
.pge1-bottom-nav-item .pge1-nav-icon {
  font-size: 2.2rem; line-height: 1;
}
.pge1-bottom-nav-item .pge1-nav-text {
  font-size: 1.0rem; font-weight: 600;
}
.pge1-bottom-nav-item.pge1-nav-active { color: var(--pge1-orange); }
.pge1-bottom-nav-item.pge1-nav-promo { color: var(--pge1-cream); }
.pge1-bottom-nav-item.pge1-nav-promo .pge1-nav-icon {
  color: var(--pge1-orange);
}

/* ===== Reveal animation ===== */
.pge1-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pge1-reveal-show { opacity: 1; transform: translateY(0); }

/* ===== Desktop handling ===== */
@media (min-width: 769px) {
  .pge1-bottom-nav { display: none; }
  .pge1-container { max-width: 760px; }
  .pge1-hero { max-width: 760px; }
}

/* Ensure mobile bottom nav clearance for main content */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pge1-section { padding-bottom: 14px; }
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 430px) {
  body { font-size: 1.38rem; }
  .pge1-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pge1-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pge1-pay-grid { grid-template-columns: repeat(3, 1fr); }
}