/*!
 * King Casino Ph - Theme stylesheet
 * Every custom class uses the pg03- prefix to isolate styles.
 * Palette: #2D2D2D bg / #495057 slate / #CD853F gold / #DA70D6 orchid / #F8F8FF light
 * Comments in English only.
 */

:root {
  --pg03-bg: #2D2D2D;
  --pg03-bg-2: #1c1c1c;
  --pg03-bg-3: #353535;
  --pg03-slate: #495057;
  --pg03-gold: #CD853F;
  --pg03-gold-2: #e09b54;
  --pg03-orchid: #DA70D6;
  --pg03-orchid-2: #b85bb4;
  --pg03-light: #F8F8FF;
  --pg03-muted: #b9b9c4;
  --pg03-border: rgba(248, 248, 255, 0.08);
  --pg03-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pg03-radius: 14px;
  --pg03-radius-sm: 10px;
  --pg03-header-h: 60px;
  --pg03-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #3a2530 0%, var(--pg03-bg) 55%, var(--pg03-bg-2) 100%);
  color: var(--pg03-light);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg03-gold-2); text-decoration: none; }
a:hover { color: var(--pg03-orchid); }

/* ---------- Layout ---------- */
.pg03-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.pg03-wrapper { padding-top: var(--pg03-header-h); }
main.pg03-main { padding-bottom: calc(var(--pg03-bottom-h) + 24px); }

section.pg03-section { padding: 22px 0; }

.pg03-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--pg03-light);
}
.pg03-section-title .pg03-accent { color: var(--pg03-gold-2); }
.pg03-section-sub {
  font-size: 1.3rem;
  color: var(--pg03-muted);
  margin: 0 0 14px;
}

/* ---------- Header ---------- */
.pg03-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg03-header-h);
  background: linear-gradient(180deg, rgba(28,28,28,0.98), rgba(45,45,45,0.92));
  border-bottom: 1px solid var(--pg03-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.pg03-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pg03-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.pg03-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.pg03-logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg03-logo-text b { color: var(--pg03-gold-2); }

.pg03-header-actions { display: flex; align-items: center; gap: 6px; }
.pg03-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pg03-border);
  background: var(--pg03-bg-3);
  color: var(--pg03-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.pg03-icon-btn:hover { color: var(--pg03-gold-2); }

/* ---------- Buttons ---------- */
.pg03-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  color: #1c1c1c;
}
.pg03-btn:active { transform: scale(.96); }
.pg03-btn-login {
  background: var(--pg03-light);
}
.pg03-btn-register {
  background: linear-gradient(135deg, var(--pg03-gold), var(--pg03-gold-2));
  color: #2D2D2D;
  box-shadow: 0 4px 14px rgba(205,133,63,.4);
}
.pg03-btn-cta {
  background: linear-gradient(135deg, var(--pg03-orchid), var(--pg03-orchid-2));
  color: var(--pg03-light);
  box-shadow: 0 6px 18px rgba(218,112,214,.4);
  padding: 0 22px;
  min-height: 44px;
}
.pg03-btn-ghost {
  background: transparent;
  border: 1px solid var(--pg03-gold);
  color: var(--pg03-gold-2);
}

/* ---------- Mobile menu / overlay ---------- */
.pg03-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.pg03-overlay.pg03-is-visible { opacity: 1; visibility: visible; }

.pg03-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--pg03-bg-2);
  border-left: 1px solid var(--pg03-border);
  transform: translateX(105%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 18px 16px;
  overflow-y: auto;
}
.pg03-mobile-menu.pg03-is-open { transform: translateX(0); }
.pg03-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pg03-menu-head h3 { margin: 0; font-size: 1.8rem; color: var(--pg03-gold-2); }
.pg03-menu-list { list-style: none; margin: 0; padding: 0; }
.pg03-menu-list li { border-bottom: 1px solid var(--pg03-border); }
.pg03-menu-list a {
  display: block;
  padding: 14px 8px;
  color: var(--pg03-light);
  font-size: 1.5rem;
  font-weight: 600;
}
.pg03-menu-list a i { color: var(--pg03-gold-2); margin-right: 8px; }
.pg03-menu-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero carousel ---------- */
.pg03-carousel {
  position: relative;
  border-radius: var(--pg03-radius);
  overflow: hidden;
  box-shadow: var(--pg03-shadow);
  margin-top: 14px;
}
.pg03-carousel-track { position: relative; }
.pg03-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pg03-carousel-slide.pg03-is-active { display: block; }
.pg03-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pg03-carousel-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.pg03-carousel-caption h2 {
  margin: 0 0 4px;
  font-size: 2.1rem;
  font-weight: 800;
}
.pg03-carousel-caption p { margin: 0; font-size: 1.3rem; color: #f0e6e6; }
.pg03-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pg03-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(248,248,255,.45);
  border: none; cursor: pointer;
}
.pg03-carousel-dot.pg03-is-active { background: var(--pg03-gold-2); }

/* ---------- H1 hero strip ---------- */
.pg03-hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 18px 0 8px;
  letter-spacing: .3px;
}
.pg03-hero-title span { color: var(--pg03-gold-2); }
.pg03-hero-sub { font-size: 1.4rem; color: var(--pg03-muted); margin: 0 0 12px; }

/* ---------- Filter tabs ---------- */
.pg03-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: none;
}
.pg03-filter-row::-webkit-scrollbar { display: none; }
.pg03-filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pg03-border);
  background: var(--pg03-bg-3);
  color: var(--pg03-light);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pg03-filter-tab.pg03-is-active {
  background: linear-gradient(135deg, var(--pg03-gold), var(--pg03-orchid));
  color: #1c1c1c;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.pg03-game-group { margin-bottom: 26px; }
.pg03-group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pg03-group-head h3 {
  font-size: 1.7rem; margin: 0; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.pg03-group-head .pg03-pill {
  font-size: 1.1rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(218,112,214,.18);
  color: var(--pg03-orchid);
}
.pg03-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg03-card {
  background: var(--pg03-bg-3);
  border: 1px solid var(--pg03-border);
  border-radius: var(--pg03-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pg03-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg03-gold);
  box-shadow: 0 8px 18px rgba(205,133,63,.25);
}
.pg03-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pg03-card-name {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 6px 4px 8px;
  color: var(--pg03-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg03-card-tag {
  position: absolute;
  /* small HOT label optional */
}

/* ---------- Info / feature blocks ---------- */
.pg03-prose {
  background: var(--pg03-bg-3);
  border: 1px solid var(--pg03-border);
  border-radius: var(--pg03-radius);
  padding: 16px;
}
.pg03-prose h2 {
  font-size: 1.85rem; margin: 0 0 8px; color: var(--pg03-gold-2);
}
.pg03-prose h3 {
  font-size: 1.5rem; margin: 14px 0 6px; color: var(--pg03-light);
}
.pg03-prose p {
  font-size: 1.35rem; line-height: 1.55; color: var(--pg03-muted); margin: 0 0 10px;
}
.pg03-prose ul { padding-left: 18px; color: var(--pg03-muted); font-size: 1.3rem; }
.pg03-prose li { margin-bottom: 6px; line-height: 1.5; }

.pg03-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.pg03-feature {
  background: var(--pg03-bg-3);
  border: 1px solid var(--pg03-border);
  border-radius: var(--pg03-radius-sm);
  padding: 12px;
}
.pg03-feature i { font-size: 22px; color: var(--pg03-orchid); }
.pg03-feature h4 { margin: 6px 0 4px; font-size: 1.35rem; }
.pg03-feature p { margin: 0; font-size: 1.2rem; color: var(--pg03-muted); line-height: 1.45; }

/* ---------- RTP table ---------- */
.pg03-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  margin-top: 10px;
}
.pg03-rtp-table th, .pg03-rtp-table td {
  border: 1px solid var(--pg03-border);
  padding: 8px 10px;
  text-align: left;
}
.pg03-rtp-table th { background: var(--pg03-slate); color: var(--pg03-light); }
.pg03-rtp-table td .pg03-bar {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pg03-gold), var(--pg03-orchid));
  display: block; margin-top: 4px;
}

/* ---------- Testimonials ---------- */
.pg03-testimonial {
  background: var(--pg03-bg-3);
  border-left: 3px solid var(--pg03-gold);
  border-radius: var(--pg03-radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pg03-testimonial .pg03-stars { color: var(--pg03-gold-2); font-size: 1.2rem; }
.pg03-testimonial p { margin: 6px 0; font-size: 1.3rem; color: var(--pg03-light); line-height: 1.5; }
.pg03-testimonial small { color: var(--pg03-muted); }

/* ---------- Payment / winners ---------- */
.pg03-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg03-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--pg03-bg-3); border: 1px solid var(--pg03-border);
  font-size: 1.25rem; font-weight: 600;
}
.pg03-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--pg03-border);
  font-size: 1.3rem;
}
.pg03-winner b { color: var(--pg03-orchid); }

/* ---------- CTA band ---------- */
.pg03-cta-band {
  background: linear-gradient(135deg, var(--pg03-gold), var(--pg03-orchid));
  border-radius: var(--pg03-radius);
  padding: 18px;
  color: #1c1c1c;
  text-align: center;
  margin: 18px 0;
}
.pg03-cta-band h3 { margin: 0 0 6px; font-size: 1.9rem; }
.pg03-cta-band p { margin: 0 0 12px; font-size: 1.3rem; }
.pg03-cta-band .pg03-btn { background: var(--pg03-bg-2); color: var(--pg03-light); }

/* ---------- FAQ ---------- */
.pg03-faq details {
  background: var(--pg03-bg-3);
  border: 1px solid var(--pg03-border);
  border-radius: var(--pg03-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.pg03-faq summary {
  font-weight: 700; font-size: 1.4rem; cursor: pointer; color: var(--pg03-light);
  list-style: none;
}
.pg03-faq summary::-webkit-details-marker { display: none; }
.pg03-faq p { margin: 8px 0 0; font-size: 1.3rem; color: var(--pg03-muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.pg03-footer {
  background: var(--pg03-bg-2);
  border-top: 1px solid var(--pg03-border);
  padding: 22px 0 calc(var(--pg03-bottom-h) + 22px);
  margin-top: 18px;
}
.pg03-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin: 12px 0;
}
.pg03-footer-links a {
  font-size: 1.25rem; color: var(--pg03-muted);
}
.pg03-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.pg03-footer-promos .pg03-btn { font-size: 1.2rem; padding: 0 12px; min-height: 34px; }
.pg03-footer p { font-size: 1.2rem; color: var(--pg03-muted); line-height: 1.5; }
.pg03-copy { font-size: 1.15rem; color: #7a7a85; margin-top: 10px; }

/* ---------- Bottom nav ---------- */
.pg03-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg03-bottom-h);
  background: linear-gradient(180deg, rgba(45,45,45,.98), rgba(28,28,28,1));
  border-top: 1px solid var(--pg03-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.45);
}
.pg03-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg03-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color .2s ease, transform .15s ease;
}
.pg03-bottom-nav-btn .material-icons,
.pg03-bottom-nav-btn i,
.pg03-bottom-nav-btn ion-icon { font-size: 22px; }
.pg03-bottom-nav-btn:active { transform: scale(.9); }
.pg03-bottom-nav-btn.pg03-is-current { color: var(--pg03-gold-2); }
.pg03-bottom-nav-btn.pg03-promo { color: var(--pg03-orchid); }

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

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg03-bottom-nav { display: none; }
  .pg03-container { max-width: 760px; }
  .pg03-grid { grid-template-columns: repeat(5, 1fr); }
  .pg03-feature-grid { grid-template-columns: repeat(4, 1fr); }
  main.pg03-main { padding-bottom: 30px; }
  .pg03-footer { padding-bottom: 22px; }
}
