/* =========================================================
 * phzzz base stylesheet (theme-0158.css)
 * All custom classes use the pg01- prefix.
 * Color palette: #273746 / #808080 / #34495E / #DAA520 / #FFD700
 * Mobile-first, max-width 430px viewport.
 * ========================================================= */

:root {
  --pg01-bg: #273746;
  --pg01-bg-2: #1f2c38;
  --pg01-bg-3: #34495E;
  --pg01-text: #f5f7fa;
  --pg01-muted: #c2ccd6;
  --pg01-gray: #808080;
  --pg01-gold: #DAA520;
  --pg01-gold-2: #FFD700;
  --pg01-accent: #f0c14b;
  --pg01-danger: #e05a5a;
  --pg01-success: #4caf93;
  --pg01-radius: 14px;
  --pg01-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --pg01-shadow-gold: 0 6px 18px rgba(218, 165, 32, .35);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--pg01-bg) 0%, var(--pg01-bg-2) 100%);
  color: var(--pg01-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg01-gold-2); text-decoration: none; }
a:hover { color: var(--pg01-accent); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; }

.pg01-no-scroll { overflow: hidden; }

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

.pg01-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.pg01-section {
  padding: 2.4rem 0 1.6rem;
}

.pg01-section-alt {
  background: rgba(52, 73, 94, .35);
  padding: 2.4rem 0;
}

.pg01-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg01-gold-2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.pg01-section-title::before {
  content: '';
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, var(--pg01-gold-2), var(--pg01-gold));
  border-radius: 3px;
}

.pg01-lead {
  color: var(--pg01-muted);
  margin-bottom: 1.2rem;
  line-height: 1.7rem;
}

/* ---------- Header ---------- */
.pg01-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pg01-bg) 0%, var(--pg01-bg-3) 100%);
  border-bottom: 1px solid rgba(218, 165, 32, .35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.pg01-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.2rem;
  min-height: 56px;
}

.pg01-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--pg01-text);
}

.pg01-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, .45);
}

.pg01-brand-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--pg01-gold-2), var(--pg01-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pg01-header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* ---------- Buttons ---------- */
.pg01-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.35rem;
  min-height: 40px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.pg01-btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); }

.pg01-btn-login {
  background: transparent;
  color: var(--pg01-text);
  border: 1px solid rgba(255, 215, 0, .55);
}

.pg01-btn-register {
  background: linear-gradient(90deg, var(--pg01-gold-2), var(--pg01-gold));
  color: #2c2106;
  box-shadow: var(--pg01-shadow-gold);
}

.pg01-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--pg01-gold-2), var(--pg01-gold));
  color: #2c2106;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--pg01-shadow-gold);
}

.pg01-btn-ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--pg01-text);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: .8rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
}

.pg01-burger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--pg01-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ---------- Mobile drawer menu ---------- */
.pg01-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 1500;
}

.pg01-overlay.pg01-is-visible { opacity: 1; visibility: visible; }

.pg01-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 78%;
  height: 100%;
  background: var(--pg01-bg-2);
  z-index: 9999;
  padding: 1.8rem 1.4rem;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(218, 165, 32, .25);
}

.pg01-mobile-menu.pg01-is-open { right: 0; }

.pg01-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.pg01-menu-head h3 {
  color: var(--pg01-gold-2);
  font-size: 1.7rem;
}

.pg01-menu-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--pg01-text);
  font-size: 1.8rem;
}

.pg01-menu-list { list-style: none; }
.pg01-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.pg01-menu-list a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem .6rem;
  color: var(--pg01-text);
  font-size: 1.45rem;
  font-weight: 600;
}
.pg01-menu-list a i { color: var(--pg01-gold-2); font-size: 1.7rem; }
.pg01-menu-list a:hover { color: var(--pg01-gold-2); }

.pg01-menu-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* ---------- Hero / carousel ---------- */
.pg01-hero { padding-top: 70px; }

.pg01-carousel {
  position: relative;
  border-radius: var(--pg01-radius);
  overflow: hidden;
  box-shadow: var(--pg01-shadow);
  margin-bottom: 1.2rem;
}

.pg01-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.pg01-slide.pg01-active { display: block; }
.pg01-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pg01-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
  color: #fff;
}
.pg01-slide-caption h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pg01-gold-2);
  margin-bottom: .3rem;
}
.pg01-slide-caption p { font-size: 1.3rem; color: #f0f0f0; }

.pg01-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.pg01-dot {
  width: 9px; height: 9px;
  background: rgba(255, 255, 255, .45);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pg01-dot.pg01-active {
  background: var(--pg01-gold-2);
  transform: scale(1.2);
}

/* ---------- Category pills ---------- */
.pg01-cat-bar {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .6rem .2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.pg01-cat-bar::-webkit-scrollbar { display: none; }
.pg01-cat-link {
  flex: 0 0 auto;
  padding: .55rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, .06);
  color: var(--pg01-text);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 215, 0, .15);
}
.pg01-cat-link:hover { color: var(--pg01-gold-2); text-decoration: none; }
.pg01-cat-link.pg01-active {
  background: linear-gradient(90deg, var(--pg01-gold-2), var(--pg01-gold));
  color: #2c2106;
}

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

.pg01-game-card {
  background: rgba(52, 73, 94, .55);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(218, 165, 32, .18);
  transition: transform .15s ease, box-shadow .2s ease;
}
.pg01-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pg01-shadow-gold);
  border-color: rgba(255, 215, 0, .45);
}
.pg01-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1f2c38;
}
.pg01-game-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pg01-text);
  padding: .5rem .35rem .65rem;
  line-height: 1.3rem;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Generic card ---------- */
.pg01-card {
  background: rgba(52, 73, 94, .45);
  border-radius: var(--pg01-radius);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: var(--pg01-shadow);
}

.pg01-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pg01-feature {
  background: rgba(39, 55, 70, .85);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(218, 165, 32, .2);
  text-align: center;
}
.pg01-feature i {
  font-size: 2.4rem;
  color: var(--pg01-gold-2);
  margin-bottom: .6rem;
}
.pg01-feature h4 {
  font-size: 1.35rem;
  color: var(--pg01-text);
  margin-bottom: .35rem;
}
.pg01-feature p { font-size: 1.2rem; color: var(--pg01-muted); line-height: 1.4rem; }

/* ---------- RTP table ---------- */
.pg01-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  background: rgba(39, 55, 70, .7);
  border-radius: 10px;
  overflow: hidden;
}
.pg01-rtp-table th, .pg01-rtp-table td {
  padding: .8rem .6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.pg01-rtp-table th {
  background: rgba(218, 165, 32, .25);
  color: var(--pg01-gold-2);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pg01-rtp-table td.pg01-rt-num {
  color: var(--pg01-success);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.pg01-testimonials {
  display: grid;
  gap: 1rem;
}
.pg01-testimonial {
  background: rgba(52, 73, 94, .55);
  border-radius: 12px;
  padding: 1.2rem;
  border-left: 3px solid var(--pg01-gold);
}
.pg01-testimonial p { color: var(--pg01-muted); margin-bottom: .6rem; }
.pg01-testimonial .pg01-stars { color: var(--pg01-gold-2); margin-bottom: .35rem; }
.pg01-testimonial cite {
  color: var(--pg01-gold-2);
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ---------- Payments ---------- */
.pg01-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.pg01-pay-item {
  background: rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: .9rem .4rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg01-text);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pg01-pay-item i { font-size: 2rem; color: var(--pg01-gold-2); display: block; margin-bottom: .3rem; }

/* ---------- Winners ticker ---------- */
.pg01-winners {
  background: rgba(218, 165, 32, .12);
  border: 1px solid rgba(218, 165, 32, .3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.pg01-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-size: 1.25rem;
}
.pg01-winner-row:last-child { border-bottom: none; }
.pg01-winner-amount { color: var(--pg01-gold-2); font-weight: 700; }

/* ---------- Steps ---------- */
.pg01-steps { display: grid; gap: .9rem; counter-reset: step; }
.pg01-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(52, 73, 94, .4);
  padding: 1rem 1.2rem;
  border-radius: 12px;
}
.pg01-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg01-gold-2), var(--pg01-gold));
  color: #2c2106;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pg01-step h4 { font-size: 1.35rem; margin-bottom: .25rem; color: var(--pg01-text); }
.pg01-step p { color: var(--pg01-muted); font-size: 1.25rem; line-height: 1.5rem; }

/* ---------- FAQ ---------- */
.pg01-faq-item {
  background: rgba(52, 73, 94, .45);
  border-radius: 10px;
  margin-bottom: .8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.pg01-faq-q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.2rem;
  background: transparent;
  color: var(--pg01-text);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pg01-faq-q .pg01-toggle { color: var(--pg01-gold-2); font-size: 1.7rem; transition: transform .2s; }
.pg01-faq-item.pg01-open .pg01-toggle { transform: rotate(45deg); }
.pg01-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--pg01-muted);
  font-size: 1.25rem;
  line-height: 1.6rem;
}
.pg01-faq-a-inner { padding: 0 1.2rem 1.1rem; }
.pg01-faq-item.pg01-open .pg01-faq-a { max-height: 320px; }

/* ---------- Footer ---------- */
.pg01-footer {
  background: var(--pg01-bg-2);
  border-top: 1px solid rgba(218, 165, 32, .25);
  padding: 2.2rem 0 1rem;
  margin-top: 2rem;
}
.pg01-footer h4 {
  color: var(--pg01-gold-2);
  font-size: 1.45rem;
  margin-bottom: .8rem;
}
.pg01-footer p { color: var(--pg01-muted); font-size: 1.25rem; line-height: 1.6rem; }
.pg01-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem 1rem;
  margin: 1.2rem 0;
}
.pg01-footer-links a {
  color: var(--pg01-muted);
  font-size: 1.25rem;
}
.pg01-footer-links a:hover { color: var(--pg01-gold-2); }
.pg01-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.pg01-footer-promos .pg01-btn { font-size: 1.2rem; padding: .6rem 1rem; }
.pg01-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--pg01-gray);
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.pg01-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--pg01-bg-3), var(--pg01-bg));
  border-top: 1px solid rgba(218, 165, 32, .35);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, .35);
}
.pg01-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  background: transparent;
  color: var(--pg01-muted);
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color .2s ease;
}
.pg01-nav-btn i, .pg01-nav-btn .material-icons-outlined,
.pg01-nav-btn ion-icon { font-size: 22px; }
.pg01-nav-btn ion-icon { width: 22px; height: 22px; }
.pg01-nav-btn span { font-size: 1.05rem; font-weight: 600; }
.pg01-nav-btn:hover { color: var(--pg01-gold-2); }
.pg01-nav-btn:active { transform: scale(.92); }
.pg01-nav-btn.pg01-active { color: var(--pg01-gold-2); }
.pg01-nav-btn.pg01-active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--pg01-gold-2);
  border-radius: 0 0 6px 6px;
}
.pg01-nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 22px);
  background: var(--pg01-danger);
  color: #fff;
  font-size: .9rem;
  padding: 0 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.pg01-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.pg01-reveal.pg01-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Main content padding ---------- */
main.pg01-main { padding-bottom: 80px; }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .pg01-bottom-nav { display: none; }
  .pg01-container, .pg01-wrapper, .pg01-header-inner { max-width: 720px; }
  main.pg01-main { padding-bottom: 30px; }
  .pg01-grid { grid-template-columns: repeat(5, 1fr); }
  .pg01-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .pg01-grid { grid-template-columns: repeat(2, 1fr); }
  .pg01-game-name { font-size: 1.05rem; }
}
