/* ===========================================================
   PHP One - Core Stylesheet (php-one.css)
   All custom classes use prefix "wa546-" for namespace isolation.
   Mobile-first. Root font-size: 62.5% (1rem = 10px).
   Comments in English only.
   =========================================================== */

:root {
  /* Brand palette: warm gold + cocoa over deep navy + forest green */
  --wa546-primary: #FFB347;
  --wa546-primary-2: #CD853F;
  --wa546-bg: #0F0F23;
  --wa546-bg-2: #14142b;
  --wa546-bg-3: #1c1c3a;
  --wa546-green: #006400;
  --wa546-text: #DEB887;
  --wa546-text-light: #f5e8d0;
  --wa546-white: #ffffff;
  --wa546-muted: #9a8f7a;
  --wa546-border: rgba(255, 179, 71, 0.18);
  --wa546-radius: 1.2rem;
  --wa546-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1c1c3a 0%, #0F0F23 60%, #003012 100%);
  color: var(--wa546-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--wa546-primary); text-decoration: none; }
a:hover { color: var(--wa546-text-light); }

h1, h2, h3 { line-height: 1.4rem; margin: 0.6rem 0; }

/* ---------- Layout ---------- */
.wa546-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.wa546-wrapper { padding: 5.6rem 0 8.5rem; }

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

/* ---------- Header ---------- */
.wa546-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(15,15,35,0.98), rgba(0,100,0,0.85));
  border-bottom: 0.2rem solid var(--wa546-primary);
  z-index: 1000;
  box-shadow: var(--wa546-shadow);
}

.wa546-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

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

.wa546-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }

.wa546-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wa546-primary);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}

.wa546-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 3.6rem;
}

.wa546-btn:hover { transform: translateY(-0.1rem); }

.wa546-btn-register {
  background: linear-gradient(135deg, var(--wa546-primary), var(--wa546-primary-2));
  color: #1a1a2e;
  box-shadow: 0 0.4rem 1rem rgba(255, 179, 71, 0.35);
}

.wa546-btn-login {
  background: transparent;
  color: var(--wa546-text-light);
  border: 0.15rem solid var(--wa546-primary);
}

.wa546-menu-btn {
  background: transparent;
  color: var(--wa546-primary);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

/* ---------- Mobile slide-down menu ---------- */
.wa546-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 15, 35, 0.99);
  border-bottom: 0.2rem solid var(--wa546-border);
  padding: 0.5rem 1rem 1rem;
}

.wa546-mobile-menu.wa546-menu-open { display: flex; }

.wa546-mobile-menu a {
  padding: 1rem 0.4rem;
  color: var(--wa546-text-light);
  font-size: 1.3rem;
  border-bottom: 0.1rem dashed rgba(255,179,71,0.12);
}

.wa546-mobile-menu a:hover { color: var(--wa546-primary); padding-left: 0.8rem; }

/* ---------- Carousel ---------- */
.wa546-carousel {
  position: relative;
  border-radius: var(--wa546-radius);
  overflow: hidden;
  box-shadow: var(--wa546-shadow);
  margin: 1rem 0;
}

.wa546-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.wa546-slide img { width: 100%; height: 17rem; object-fit: cover; }

.wa546-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 1rem 1.2rem 0.8rem;
  color: var(--wa546-text-light);
  font-size: 1.3rem;
  font-weight: 700;
}

.wa546-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.wa546-dot {
  width: 0.7rem; height: 0.7rem;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
}

.wa546-dot.wa546-dot-active { background: var(--wa546-primary); }

/* ---------- Section titles ---------- */
.wa546-section { margin: 2rem 0; }

.wa546-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wa546-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 0.4rem solid var(--wa546-primary-2);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
}

.wa546-h1 {
  font-size: 2rem;
  color: var(--wa546-text-light);
  text-align: center;
  margin: 1.2rem 0;
  font-weight: 800;
  line-height: 1.35;
}

.wa546-h1 b { color: var(--wa546-primary); }

.wa546-text {
  font-size: 1.3rem;
  color: var(--wa546-text);
  line-height: 1.7rem;
}

/* ---------- Game grid ---------- */
.wa546-game-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.6rem 0 1.4rem;
}

.wa546-game-card {
  background: var(--wa546-bg-2);
  border: 0.1rem solid var(--wa546-border);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wa546-game-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1rem rgba(255,179,71,0.25);
  border-color: var(--wa546-primary);
}

.wa546-game-card img { width: 100%; height: 5.6rem; object-fit: cover; }

.wa546-game-card .wa546-game-name {
  font-size: 1rem;
  color: var(--wa546-text-light);
  padding: 0.3rem 0.2rem 0.4rem;
  line-height: 1.2rem;
  height: 2.6rem;
  overflow: hidden;
}

/* ---------- Cards / blocks ---------- */
.wa546-card {
  background: linear-gradient(160deg, var(--wa546-bg-2), var(--wa546-bg-3));
  border: 0.1rem solid var(--wa546-border);
  border-radius: var(--wa546-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--wa546-shadow);
}

.wa546-card h3 {
  color: var(--wa546-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.wa546-card ul { padding-left: 1.4rem; color: var(--wa546-text); font-size: 1.25rem; }
.wa546-card li { margin: 0.4rem 0; line-height: 1.6rem; }

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

.wa546-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--wa546-primary), var(--wa546-primary-2));
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1.3rem;
  border-radius: var(--wa546-radius);
  margin: 1.4rem 0;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.4rem rgba(255,179,71,0.4);
}

/* ---------- Payment / winners / testimonials ---------- */
.wa546-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.wa546-pay-chip {
  background: var(--wa546-bg-2);
  border: 0.1rem solid var(--wa546-border);
  border-radius: 2rem;
  padding: 0.6rem 1.1rem;
  font-size: 1.15rem;
  color: var(--wa546-text-light);
}

.wa546-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.4rem;
  border-bottom: 0.1rem dashed rgba(255,179,71,0.12);
  font-size: 1.2rem;
}
.wa546-winner span:first-child { color: var(--wa546-text); }
.wa546-winner span:last-child { color: var(--wa546-primary); font-weight: 700; }

.wa546-quote {
  border-left: 0.3rem solid var(--wa546-primary-2);
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0;
  font-style: italic;
  color: var(--wa546-text);
  font-size: 1.25rem;
  background: rgba(255,179,71,0.04);
  border-radius: 0.4rem;
}

.wa546-quote small { display: block; color: var(--wa546-muted); margin-top: 0.3rem; }

/* ---------- RTP table ---------- */
.wa546-rtp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0.4rem;
  border-bottom: 0.1rem dashed rgba(255,179,71,0.12);
  font-size: 1.15rem;
  align-items: center;
}
.wa546-rtp-row span:nth-child(2) { color: var(--wa546-primary); font-weight: 700; }
.wa546-rtp-row span:nth-child(3) { color: var(--wa546-green); font-weight: 700; color: #6bd16b; }

/* ---------- Footer ---------- */
.wa546-footer {
  background: linear-gradient(180deg, #0a0a18, #050510);
  border-top: 0.25rem solid var(--wa546-primary);
  padding: 2rem 1.2rem 1.5rem;
  color: var(--wa546-text);
  font-size: 1.2rem;
}

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

.wa546-footer-links a {
  color: var(--wa546-text-light);
  font-size: 1.15rem;
}

.wa546-footer-cta { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }

.wa546-copyright {
  text-align: center;
  color: var(--wa546-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  border-top: 0.1rem solid rgba(255,179,71,0.1);
  padding-top: 1rem;
}

/* ---------- Mobile bottom navigation ---------- */
.wa546-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, rgba(0,100,0,0.96), rgba(15,15,35,0.99));
  border-top: 0.2rem solid var(--wa546-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}

.wa546-navbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--wa546-text);
  cursor: pointer;
  font-size: 1rem;
  gap: 0.2rem;
  transition: transform 0.15s ease, color 0.15s ease;
  position: relative;
}

.wa546-navbtn i,
.wa546-navbtn .material-icons-outlined,
.wa546-navbtn ion-icon {
  font-size: 2.2rem;
}

.wa546-navbtn ion-icon { font-size: 2.2rem; }

.wa546-navbtn:hover { transform: translateY(-0.15rem) scale(1.05); color: var(--wa546-primary); }

.wa546-navbtn-active { color: var(--wa546-primary); }

.wa546-navbtn-active::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2.4rem; height: 0.3rem;
  background: var(--wa546-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}

.wa546-nav-label { font-size: 1rem; line-height: 1.2rem; }

/* ---------- Mobile padding for main content ---------- */
@media (max-width: 768px) {
  .wa546-wrapper { padding-bottom: 8.5rem; }
}

/* ---------- Mobile-specific tuning <= 430px ---------- */
@media (max-width: 430px) {
  body { max-width: 100%; }
  .wa546-game-list { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .wa546-game-card img { height: 5rem; }
  .wa546-h1 { font-size: 1.8rem; }
  .wa546-section-title { font-size: 1.5rem; }
  .wa546-logo span { font-size: 1.3rem; }
  .wa546-btn { font-size: 1.1rem; padding: 0.6rem 0.9rem; }
  .wa546-rtp-row { font-size: 1.05rem; }
}

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 760px; }
  .wa546-bottom-nav { display: none; }
  .wa546-wrapper { padding-bottom: 3rem; }
  .wa546-grid { grid-template-columns: repeat(6, 1fr); }
  .wa546-game-list { grid-template-columns: repeat(8, 1fr); }
}
