/* =========================================================
 * hann-casino.css
 * Palette: #B22222 (crimson) | #2D2D2D (dark) | #A9A9A9 (gray)
 * All classes use the "pg37-" prefix.
 * Mobile-first, max-width 430px container.
 * ========================================================= */

:root {
  --pg37-primary: #B22222;
  --pg37-primary-dark: #8a1a1a;
  --pg37-primary-light: #d94545;
  --pg37-bg: #2D2D2D;
  --pg37-bg-2: #1c1c1c;
  --pg37-bg-3: #3a3a3a;
  --pg37-text: #f5f5f5;
  --pg37-muted: #A9A9A9;
  --pg37-gold: #e8c468;
  --pg37-radius: 12px;
  --pg37-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --pg37-header-h: 58px;
  --pg37-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  background: var(--pg37-bg);
  color: var(--pg37-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pg37-gold); text-decoration: none; }

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

main.pg37-main {
  padding-top: calc(var(--pg37-header-h) + 8px);
  padding-bottom: calc(var(--pg37-bottomnav-h) + 24px);
}

/* ---------- Header ---------- */
.pg37-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg37-header-h);
  background: linear-gradient(180deg, #3a1010 0%, var(--pg37-bg-2) 100%);
  border-bottom: 2px solid var(--pg37-primary);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.pg37-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.pg37-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg37-brand img {
  width: 28px; height: 28px; border-radius: 6px;
}
.pg37-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--pg37-gold), #fff8dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg37-brand-tag {
  font-size: 1rem;
  color: var(--pg37-muted);
}

.pg37-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg37-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 22px;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: #fff;
}
.pg37-btn:focus-visible { outline: 2px solid var(--pg37-gold); outline-offset: 2px; }
.pg37-btn-login {
  background: transparent;
  border: 1.5px solid var(--pg37-muted);
  color: var(--pg37-text);
  padding: 0.6rem 1.1rem;
}
.pg37-btn-register {
  background: linear-gradient(135deg, var(--pg37-primary) 0%, var(--pg37-primary-dark) 100%);
  box-shadow: 0 3px 8px rgba(178,34,34,0.5);
}
.pg37-btn:hover { transform: translateY(-1px); }
.pg37-btn:active { transform: scale(0.96); }

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

/* ---------- Mobile menu ---------- */
#pg37-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
#pg37-menu-backdrop.pg37-backdrop-on {
  opacity: 1;
  pointer-events: auto;
}
#pg37-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--pg37-bg-2);
  border-left: 2px solid var(--pg37-primary);
  padding: 1.5rem 1.2rem;
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
}
#pg37-mobile-menu.pg37-menu-open { right: 0; }
.pg37-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}
.pg37-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg37-gold);
}
.pg37-menu-close {
  background: transparent;
  border: none;
  color: var(--pg37-text);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.pg37-mobile-menu-list { list-style: none; padding: 0; margin: 0; }
.pg37-mobile-menu-list li { margin-bottom: 0.4rem; }
.pg37-mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  color: var(--pg37-text);
  font-size: 1.4rem;
  background: var(--pg37-bg-3);
  transition: background 0.15s ease;
}
.pg37-mobile-menu-list a:hover { background: var(--pg37-primary-dark); }
.pg37-mobile-menu-list .material-icons,
.pg37-mobile-menu-list i { font-size: 18px; color: var(--pg37-gold); }

/* ---------- Hero / Carousel ---------- */
.pg37-hero {
  margin-top: 1rem;
}
.pg37-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg37-radius);
  box-shadow: var(--pg37-shadow);
  background: #111;
}
.pg37-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.pg37-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.pg37-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.pg37-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-weight: 700;
  font-size: 1.4rem;
}
.pg37-carousel-cap span { color: var(--pg37-gold); }
.pg37-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}
.pg37-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pg37-carousel-dot.pg37-dot-active {
  background: var(--pg37-primary);
  transform: scale(1.3);
}

/* ---------- H1 / Section titles ---------- */
.pg37-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
  color: #fff;
}
.pg37-h1 span { color: var(--pg37-primary-light); }
.pg37-section {
  margin: 2rem 0;
}
.pg37-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pg37-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--pg37-primary);
}
.pg37-subtitle {
  font-size: 1.4rem;
  color: var(--pg37-text);
  margin: 0.6rem 0 1rem;
  font-weight: 600;
}
.pg37-text { color: var(--pg37-muted); font-size: 1.35rem; }
.pg37-text strong { color: var(--pg37-text); }

/* ---------- Category pills ---------- */
.pg37-cat-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.pg37-cat-bar::-webkit-scrollbar { display: none; }
.pg37-cat-pill {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  background: var(--pg37-bg-3);
  color: var(--pg37-text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #444;
}
.pg37-cat-pill.pg37-cat-active {
  background: var(--pg37-primary);
  border-color: var(--pg37-primary-light);
}

/* ---------- Game grid ---------- */
.pg37-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.pg37-game-card {
  background: var(--pg37-bg-3);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #3a3a3a;
  overflow: hidden;
}
.pg37-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(178,34,34,0.4);
  border-color: var(--pg37-primary);
}
.pg37-game-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}
.pg37-game-name {
  font-size: 1.05rem;
  color: var(--pg37-text);
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Feature / Info cards ---------- */
.pg37-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.pg37-card {
  background: linear-gradient(145deg, var(--pg37-bg-3), var(--pg37-bg-2));
  border-radius: var(--pg37-radius);
  padding: 1.2rem;
  border: 1px solid #3a3a3a;
}
.pg37-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pg37-gold);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg37-card p { margin: 0.3rem 0; color: var(--pg37-muted); }
.pg37-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.pg37-icon-tile {
  background: rgba(178,34,34,0.12);
  border: 1px solid rgba(178,34,34,0.4);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}
.pg37-icon-tile i,
.pg37-icon-tile .material-icons { color: var(--pg37-primary-light); font-size: 22px; }
.pg37-icon-tile span { display: block; margin-top: 0.3rem; font-size: 1.15rem; font-weight: 600; }

/* ---------- RTP compact ---------- */
.pg37-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--pg37-bg-3);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.pg37-rtp-bar {
  flex: 1;
  height: 6px;
  background: #111;
  border-radius: 4px;
  margin: 0 0.8rem;
  overflow: hidden;
}
.pg37-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg37-primary), var(--pg37-gold));
}
.pg37-rtp-name { flex: 0 0 40%; font-weight: 600; }
.pg37-rtp-value { flex: 0 0 auto; color: var(--pg37-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pg37-testimonial {
  background: var(--pg37-bg-3);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--pg37-gold);
}
.pg37-testimonial-stars { color: var(--pg37-gold); font-size: 1.1rem; margin-bottom: 0.3rem; }
.pg37-testimonial-name { font-weight: 700; color: var(--pg37-text); font-size: 1.2rem; }

/* ---------- Payment / winners ---------- */
.pg37-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pg37-chip {
  background: var(--pg37-bg-3);
  border: 1px solid #444;
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--pg37-text);
}
.pg37-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  background: var(--pg37-bg-3);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.pg37-winner-amount { color: var(--pg37-gold); font-weight: 700; }

/* ---------- Play CTA ---------- */
.pg37-cta {
  background: linear-gradient(135deg, var(--pg37-primary), var(--pg37-primary-dark));
  border-radius: var(--pg37-radius);
  padding: 1.3rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--pg37-shadow);
}
.pg37-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; }
.pg37-cta p { margin: 0 0 0.8rem; color: #ffe; font-size: 1.25rem; }
.pg37-cta .pg37-btn {
  background: #fff;
  color: var(--pg37-primary-dark);
  font-size: 1.4rem;
  padding: 0.8rem 1.8rem;
}

/* ---------- Footer ---------- */
.pg37-footer {
  background: var(--pg37-bg-2);
  border-top: 2px solid var(--pg37-primary);
  padding: 2rem 0 calc(var(--pg37-bottomnav-h) + 2rem);
  margin-top: 2rem;
}
.pg37-footer-brand { color: var(--pg37-muted); font-size: 1.25rem; margin: 0.5rem 0 1rem; }
.pg37-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.pg37-footer-promo .pg37-btn {
  background: var(--pg37-primary);
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  border-radius: 18px;
}
.pg37-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}
.pg37-footer-links a {
  color: var(--pg37-muted);
  font-size: 1.2rem;
  text-decoration: underline;
}
.pg37-footer-copy {
  color: #666;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.pg37-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg37-bottomnav-h);
  background: linear-gradient(180deg, var(--pg37-bg-2), #111);
  border-top: 2px solid var(--pg37-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.5);
}
.pg37-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--pg37-muted);
  cursor: pointer;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
  gap: 0.2rem;
  position: relative;
}
.pg37-nav-item i,
.pg37-nav-item .material-icons { font-size: 22px; }
.pg37-nav-item span { font-size: 1rem; line-height: 1; }
.pg37-nav-item:hover { color: var(--pg37-text); transform: translateY(-1px); }
.pg37-nav-item:active { transform: scale(0.92); }
.pg37-nav-item.pg37-nav-current { color: var(--pg37-primary-light); }
.pg37-nav-item.pg37-nav-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--pg37-primary-light);
  border-radius: 0 0 4px 4px;
}
.pg37-nav-promo {
  color: var(--pg37-gold);
}

/* ---------- Reveal animation ---------- */
.pg37-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pg37-reveal.pg37-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg37-bottom-nav { display: none; }
  main.pg37-main { padding-bottom: 24px; }
  .pg37-container { max-width: 760px; }
  .pg37-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg37-cards { grid-template-columns: repeat(2, 1fr); }
  .pg37-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .pg37-carousel-slide img { height: 320px; }
}
