/* AH33 design stylesheet - all classes use the v339- prefix */
/* Color palette: #FF9500 (amber), #0D1117 (deep ink), #FF6347 (coral) */

:root {
  --v339-primary: #FF9500;
  --v339-bg: #0D1117;
  --v339-accent: #FF6347;
  --v339-text: #F5F6FA;
  --v339-muted: #9AA3B2;
  --v339-card: #161B22;
  --v339-card-2: #1E2530;
  --v339-border: #2A313C;
  --v339-gold: #FFD27A;
  --v339-radius: 14px;
  --v339-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--v339-bg);
  color: var(--v339-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--v339-primary); text-decoration: none; }

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

.v339-container { width: 100%; }

/* ---------- Header ---------- */
.v339-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0B0F15 0%, #11161D 100%);
  border-bottom: 1px solid var(--v339-border);
  box-shadow: var(--v339-shadow);
}

.v339-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.v339-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }

.v339-brand img { width: 28px; height: 28px; border-radius: 8px; }

.v339-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--v339-primary);
  white-space: nowrap;
}

.v339-brand-name span { color: var(--v339-text); }

.v339-header-actions { display: flex; align-items: center; gap: 0.5rem; }

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

.v339-btn {
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  min-height: 40px;
}

.v339-btn:active { transform: scale(0.96); }

.v339-btn-login {
  background: transparent;
  color: var(--v339-text);
  border: 1px solid var(--v339-border);
}

.v339-btn-register {
  background: linear-gradient(135deg, var(--v339-primary), var(--v339-accent));
  color: #1A0F00;
}

/* ---------- Mobile expandable menu ---------- */
.v339-mobile-menu {
  position: fixed;
  top: 60px; right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--v339-card);
  border-left: 1px solid var(--v339-border);
  border-bottom: 1px solid var(--v339-border);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 1.2rem 0.6rem;
}

.v339-mobile-menu.v339-menu-open { transform: translateX(0); }

.v339-mobile-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--v339-text);
  border-radius: 10px;
  font-size: 1.45rem;
  border-bottom: 1px solid var(--v339-border);
}

.v339-mobile-menu a:active { background: var(--v339-card-2); }

.v339-mobile-menu .v339-menu-cta {
  background: linear-gradient(135deg, var(--v339-primary), var(--v339-accent));
  color: #1A0F00;
  font-weight: 800;
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Hero / Slider ---------- */
.v339-hero {
  margin-top: 64px;
  padding: 1rem 0 0;
}

.v339-slider {
  position: relative;
  width: 100%;
  border-radius: var(--v339-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--v339-shadow);
}

.v339-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v339-slide img { width: 100%; height: 100%; object-fit: cover; }

.v339-slide.v339-slide-active { opacity: 1; }

.v339-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(13, 17, 23, 0.78);
  color: var(--v339-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.v339-section { padding: 1.8rem 0; }

.v339-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.v339-section-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v339-text);
}

.v339-section-head .material-icons,
.v339-section-head i { color: var(--v339-primary); font-size: 22px; }

.v339-lead {
  color: var(--v339-muted);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- Game grid ---------- */
.v339-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v339-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--v339-card);
  border: 1px solid var(--v339-border);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.v339-game:active { transform: scale(0.95); border-color: var(--v339-primary); }

.v339-game img {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.v339-game-name {
  font-size: 1.1rem;
  color: var(--v339-text);
  line-height: 1.25rem;
  height: 2.5rem;
  overflow: hidden;
}

.v339-cat-title {
  font-size: 1.4rem;
  color: var(--v339-primary);
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---------- Cards / features ---------- */
.v339-card {
  background: var(--v339-card);
  border: 1px solid var(--v339-border);
  border-radius: var(--v339-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.v339-card h3 {
  font-size: 1.5rem;
  color: var(--v339-primary);
  margin-bottom: 0.5rem;
}

.v339-card p { color: var(--v339-muted); font-size: 1.35rem; }

.v339-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.v339-feature {
  background: var(--v339-card);
  border: 1px solid var(--v339-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.v339-feature i, .v339-feature .material-icons {
  font-size: 26px;
  color: var(--v339-primary);
  margin-bottom: 0.4rem;
}

.v339-feature h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }

.v339-feature p { font-size: 1.2rem; color: var(--v339-muted); }

/* ---------- Promo CTA ---------- */
.v339-cta {
  background: linear-gradient(135deg, var(--v339-primary), var(--v339-accent));
  color: #1A0F00;
  border-radius: var(--v339-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}

.v339-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }

.v339-cta p { font-size: 1.3rem; margin-bottom: 0.8rem; color: #2A1B05; }

.v339-cta .v339-btn {
  background: #0D1117;
  color: var(--v339-primary);
  padding: 0.8rem 1.6rem;
}

/* ---------- RTP / data table ---------- */
.v339-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--v339-card);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.3rem;
}

.v339-table th, .v339-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--v339-border);
}

.v339-table th { background: var(--v339-card-2); color: var(--v339-primary); }

.v339-table td { color: var(--v339-muted); }

/* ---------- Testimonials ---------- */
.v339-testimonials { display: grid; gap: 0.8rem; }

.v339-quote {
  background: var(--v339-card);
  border-left: 3px solid var(--v339-primary);
  border-radius: 10px;
  padding: 1rem;
  font-size: 1.3rem;
  color: var(--v339-text);
}

.v339-quote span { display: block; color: var(--v339-primary); margin-top: 0.4rem; font-size: 1.2rem; }

/* ---------- Payment row ---------- */
.v339-payments {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}

.v339-payments .v339-chip {
  background: var(--v339-card);
  border: 1px solid var(--v339-border);
  color: var(--v339-text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Winners ---------- */
.v339-winners { display: grid; gap: 0.6rem; }

.v339-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--v339-card);
  border: 1px solid var(--v339-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 1.3rem;
}

.v339-winner b { color: var(--v339-gold); }

/* ---------- Inline promo text link ---------- */
.v339-promo-link {
  color: var(--v339-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

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

.v339-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.v339-footer {
  background: #090D12;
  border-top: 1px solid var(--v339-border);
  padding: 1.8rem 1.2rem 100px;
  margin-top: 1.5rem;
}

.v339-footer p { color: var(--v339-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }

.v339-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.v339-footer-links a {
  color: var(--v339-text);
  font-size: 1.3rem;
  padding: 0.3rem 0;
}

.v339-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

.v339-footer-buttons .v339-btn { flex: 1 1 45%; }

.v339-copyright {
  color: var(--v339-muted);
  font-size: 1.15rem;
  border-top: 1px solid var(--v339-border);
  padding-top: 1rem;
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.v339-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #090D12;
  border-top: 1px solid var(--v339-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding: 0.3rem 0;
}

.v339-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--v339-muted);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.v339-bottomnav-btn i,
.v339-bottomnav-btn .material-icons,
.v339-bottomnav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }

.v339-bottomnav-btn ion-icon { font-size: 24px; }

.v339-bottomnav-btn:active { transform: scale(0.92); }

.v339-bottomnav-btn.v339-bottomnav-active { color: var(--v339-primary); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v339-bottomnav { display: none; }
  .v339-wrapper { max-width: 760px; }
  .v339-footer { padding-bottom: 2rem; }
}

main { padding-bottom: 80px; }

/* ---------- Mobile tuning ---------- */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .v339-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .v339-game img { width: 52px; height: 52px; }
  .v339-features { grid-template-columns: repeat(2, 1fr); }
  .v339-header-inner { padding: 0.5rem 0.9rem; }
  .v339-btn { padding: 0.6rem 1rem; font-size: 1.25rem; }
  .v339-brand-name { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .v339-grid { grid-template-columns: repeat(2, 1fr); }
  .v339-footer-links { grid-template-columns: 1fr; }
}
