/* ============================================================
 * panaloko.cyou - style-004b.css
 * All custom classes use the "s004-" prefix.
 * Color palette: #E91E63 | #4169E1 | #F08080 | #2C2C2C | #FF8A80 | #FAFAFA
 * Mobile-first; rem units (root 62.5% => 1rem = 10px).
 * ============================================================ */

:root {
  --s004-primary: #E91E63;      /* brand pink */
  --s004-accent: #4169E1;       /* royal blue */
  --s004-coral: #F08080;        /* light coral */
  --s004-coral-soft: #FF8A80;   /* softer coral */
  --s004-bg: #2C2C2C;           /* dark background */
  --s004-bg-2: #1a1a1a;         /* deeper dark */
  --s004-bg-3: #383838;         /* card surface */
  --s004-text: #FAFAFA;         /* light text */
  --s004-text-soft: #d7d7d7;
  --s004-text-muted: #9a9a9a;
  --s004-gold: #FFD54F;
  --s004-radius: 14px;
  --s004-radius-sm: 10px;
  --s004-shadow: 0 4px 16px rgba(0,0,0,0.32);
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.s004-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--s004-primary); color: #fff;
  padding: 8px 12px; z-index: 99999;
}
.s004-skip:focus { left: 0; }

/* ---------- Layout ---------- */
.s004-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.s004-wrapper { min-height: 100vh; }

/* ---------- Header ---------- */
.s004-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 60%, #3a1a2a 100%);
  border-bottom: 1px solid rgba(233,30,99,0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.s004-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.6rem;
}
.s004-logo { display: flex; align-items: center; gap: 0.6rem; }
.s004-logo img { width: 3rem; height: 3rem; border-radius: 8px; border: 1px solid rgba(233,30,99,0.5); }
.s004-logo-text { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.s004-logo-text span { color: var(--s004-primary); }
.s004-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s004-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; border-radius: 30px; padding: 0.7rem 1.4rem;
  font-size: 1.3rem; transition: transform .15s ease, box-shadow .15s ease;
  min-height: 38px;
}
.s004-btn:active { transform: scale(0.96); }
.s004-btn-register { background: linear-gradient(135deg, #E91E63, #FF8A80); color: #fff; box-shadow: 0 3px 10px rgba(233,30,99,0.45); }
.s004-btn-login { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.s004-menu-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; border-radius: 8px;
}
.s004-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- Mobile menu drawer ---------- */
.s004-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity .2s;
}
.s004-overlay--show { opacity: 1; visibility: visible; }
.s004-mobile-menu {
  position: fixed; top: 0; right: -80%; right: max(-80%, -340px);
  width: 80%; max-width: 320px; height: 100vh; z-index: 9999;
  background: #1a1a1a; padding: 2rem 1.6rem;
  transition: right .25s ease; overflow-y: auto;
  border-left: 1px solid rgba(233,30,99,0.3);
}
.s004-menu--open { right: 0; }
.s004-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.s004-menu-title { color: var(--s004-primary); font-weight: 800; font-size: 1.8rem; }
.s004-menu-close { color: #fff; font-size: 2.2rem; background: rgba(255,255,255,0.06); border-radius: 50%; width: 36px; height: 36px; }
.s004-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.s004-menu-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.8rem; border-radius: var(--s004-radius-sm);
  color: var(--s004-text-soft); font-size: 1.4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s004-menu-list a:hover { background: rgba(233,30,99,0.12); color: #fff; }
.s004-menu-list a i { color: var(--s004-primary); font-size: 1.6rem; }
.s004-menu-cta { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }
.s004-menu-cta .s004-btn { justify-content: center; }

/* ---------- Main ---------- */
main { padding-top: 5.6rem; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* ---------- Hero / Carousel ---------- */
.s004-hero { margin: 1.2rem 0; }
.s004-carousel { position: relative; border-radius: var(--s004-radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.s004-carousel-viewport { overflow: hidden; }
#s004-carousel-track { display: flex; transition: transform .45s ease; }
.s004-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.s004-carousel-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.s004-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(26,26,26,0.7); padding: 0.8rem 1rem; border-radius: var(--s004-radius-sm);
  border-left: 3px solid var(--s004-primary);
}
.s004-slide-cap h2 { font-size: 1.5rem; color: #fff; font-weight: 800; }
.s004-slide-cap p { font-size: 1.15rem; color: var(--s004-text-soft); margin-top: 0.2rem; }
.s004-carousel-dotwrap { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 2; }
.s004-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.s004-dot--active { background: var(--s004-primary); }

/* ---------- Section / Headings ---------- */
.s004-section { margin: 2rem 0; }
.s004-section-title {
  font-size: 1.9rem; font-weight: 800; color: #fff;
  margin-bottom: 0.6rem; position: relative; padding-left: 1rem;
}
.s004-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: linear-gradient(180deg, var(--s004-primary), #F08080); border-radius: 4px;
}
.s004-subtitle { color: var(--s004-coral); font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.6rem; }
.s004-lead { color: var(--s004-text-soft); line-height: 1.6; }
.s004-text-muted { color: var(--s004-text-muted); }

/* ---------- Game grid ---------- */
.s004-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s004-game-card {
  background: var(--s004-bg-3); border-radius: var(--s004-radius-sm);
  padding: 0.6rem; text-align: center; transition: transform .15s, box-shadow .15s;
  border: 1px solid rgba(255,255,255,0.05); cursor: pointer; position: relative;
}
.s004-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(233,30,99,0.25); border-color: rgba(233,30,99,0.4); }
.s004-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.s004-game-name { font-size: 1.05rem; color: var(--s004-text-soft); margin-top: 0.4rem; font-weight: 600; line-height: 1.25; height: 2.6em; overflow: hidden; }
.s004-game-badge {
  position: absolute; top: 4px; left: 4px; font-size: 0.85rem; font-weight: 800;
  padding: 0.1rem 0.5rem; border-radius: 6px; color: #fff;
  background: linear-gradient(135deg, #E91E63, #FF8A80);
}
.s004-game-badge.hot { background: linear-gradient(135deg, #E91E63, #F08080); }
.s004-game-badge.slot { background: linear-gradient(135deg, #4169E1, #8fb4ff); }
.s004-game-badge.live { background: linear-gradient(135deg, #d62828, #f77f00); }
.s004-game-badge.fish { background: linear-gradient(135deg, #2a9d8f, #8ed1c8); }
.s004-game-badge.card { background: linear-gradient(135deg, #6a4c93, #b39ddb); }

/* ---------- Category nav ---------- */
.s004-cat-nav { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.8rem; scrollbar-width: none; }
.s004-cat-nav::-webkit-scrollbar { display: none; }
.s004-cat-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 20px; font-size: 1.2rem; font-weight: 700;
  background: var(--s004-bg-3); color: var(--s004-text-soft); border: 1px solid rgba(255,255,255,0.08);
}
.s004-cat-chip.active { background: linear-gradient(135deg, #E91E63, #FF8A80); color: #fff; border-color: transparent; }

/* ---------- Info / Feature cards ---------- */
.s004-card {
  background: var(--s004-bg-3); border-radius: var(--s004-radius); padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.06); margin-bottom: 1rem;
}
.s004-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.s004-card p { color: var(--s004-text-soft); font-size: 1.3rem; }
.s004-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1rem; }
.s004-feature {
  background: var(--s004-bg-3); border-radius: var(--s004-radius-sm); padding: 1rem; text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.s004-feature i { font-size: 2.4rem; color: var(--s004-primary); margin-bottom: 0.4rem; }
.s004-feature h4 { color: #fff; font-size: 1.25rem; margin-bottom: 0.2rem; }
.s004-feature p { color: var(--s004-text-muted); font-size: 1.05rem; }

/* ---------- RTP table ---------- */
.s004-rtp-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 1.15rem; }
.s004-rtp-table th, .s004-rtp-table td { padding: 0.6rem 0.4rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.s004-rtp-table th { color: var(--s004-coral); font-weight: 700; }
.s004-rtp-table td { color: var(--s004-text-soft); }
.s004-rtp-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden; }
.s004-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--s004-accent), var(--s004-primary)); }

/* ---------- CTA ---------- */
.s004-cta {
  background: linear-gradient(135deg, #E91E63, #4169E1);
  border-radius: var(--s004-radius); padding: 1.6rem; text-align: center; margin: 1.4rem 0;
  box-shadow: 0 8px 22px rgba(233,30,99,0.35);
}
.s004-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.4rem; }
.s004-cta p { color: rgba(255,255,255,0.92); font-size: 1.25rem; margin-bottom: 1rem; }
.s004-cta .s004-btn { background: #fff; color: #E91E63; font-weight: 800; padding: 0.9rem 2.2rem; font-size: 1.4rem; }
.s004-promo-link { color: var(--s004-primary); font-weight: 800; }

/* ---------- Testimonials ---------- */
.s004-testi { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.s004-testi-item { background: var(--s004-bg-3); border-radius: var(--s004-radius-sm); padding: 1rem; border-left: 3px solid var(--s004-primary); }
.s004-testi-item .s004-stars { color: var(--s004-gold); font-size: 1.2rem; }
.s004-testi-item p { color: var(--s004-text-soft); font-size: 1.25rem; margin: 0.4rem 0; }
.s004-testi-item .s004-testiname { color: var(--s004-coral); font-size: 1.1rem; font-weight: 700; }

/* ---------- Winners ---------- */
.s004-winners { background: var(--s004-bg-3); border-radius: var(--s004-radius); padding: 1rem 1.2rem; border: 1px solid rgba(233,30,99,0.2); }
.s004-winner-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.2rem; }
.s004-winner-row:last-child { border-bottom: none; }
.s004-winner-amount { color: var(--s004-gold); font-weight: 800; }

/* ---------- Payment ---------- */
.s004-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.s004-pay { background: var(--s004-bg-3); border-radius: 8px; padding: 0.8rem; text-align: center; font-size: 1rem; color: var(--s004-text-soft); border: 1px solid rgba(255,255,255,0.05); }
.s004-pay i { font-size: 1.8rem; color: var(--s004-accent); display: block; margin-bottom: 0.2rem; }

/* ---------- VIP ---------- */
.s004-vip-tier { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem; }
.s004-vip-card { flex: 0 0 150px; background: var(--s004-bg-3); border-radius: var(--s004-radius-sm); padding: 1rem; text-align: center; border: 1px solid rgba(255,213,79,0.25); }
.s004-vip-card .s004-vip-icon { font-size: 2rem; color: var(--s004-gold); }
.s004-vip-card h4 { color: #fff; font-size: 1.25rem; margin: 0.3rem 0; }
.s004-vip-card p { color: var(--s004-text-muted); font-size: 1rem; }

/* ---------- App CTA ---------- */
.s004-app-cta { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #1a1a1a, #2C2C2C); border-radius: var(--s004-radius); padding: 1.2rem; border: 1px solid rgba(65,105,225,0.3); }
.s004-app-cta .s004-app-icon { width: 5rem; height: 5rem; border-radius: 12px; background: linear-gradient(135deg, #E91E63, #4169E1); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.s004-app-cta .s004-app-icon i { font-size: 2.6rem; color: #fff; }
.s004-app-cta h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.2rem; }
.s004-app-cta p { color: var(--s004-text-muted); font-size: 1.15rem; margin-bottom: 0.6rem; }
.s004-app-btns { display: flex; gap: 0.6rem; }
.s004-app-btns .s004-btn { padding: 0.5rem 1rem; font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.s004-faq-item { background: var(--s004-bg-3); border-radius: var(--s004-radius-sm); margin-bottom: 0.7rem; border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.s004-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; font-weight: 700; color: #fff; font-size: 1.3rem; width: 100%; text-align: left; }
.s004-faq-q i { color: var(--s004-primary); transition: transform .2s; }
.s004-faq--open .s004-faq-q i { transform: rotate(180deg); }
.s004-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.s004-faq--open .s004-faq-a { max-height: 400px; }
.s004-faq-a p { padding: 0 1.2rem 1rem; color: var(--s004-text-soft); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.s004-footer { background: #1a1a1a; border-top: 1px solid rgba(233,30,99,0.25); padding: 2rem 1.2rem; margin-top: 2rem; }
.s004-footer-brand { color: var(--s004-primary); font-weight: 800; font-size: 1.6rem; margin-bottom: 0.4rem; }
.s004-footer-desc { color: var(--s004-text-muted); font-size: 1.15rem; line-height: 1.5; margin-bottom: 1rem; }
.s004-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.s004-footer-links a { color: var(--s004-coral); font-size: 1.1rem; text-decoration: underline; }
.s004-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.s004-footer-promo .s004-btn { font-size: 1.15rem; padding: 0.6rem 1.2rem; }
.s004-copy { color: var(--s004-text-muted); font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; text-align: center; }

/* ---------- Bottom navigation (mobile) ---------- */
.s004-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; background: #1a1a1a; border-top: 1px solid rgba(233,30,99,0.35);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.45);
}
.s004-bottom-nav a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--s004-text-muted); font-size: 1rem; text-decoration: none; gap: 2px;
  min-width: 60px; min-height: 60px; transition: color .15s, transform .15s;
  position: relative;
}
.s004-bottom-nav a i { font-size: 2rem; }
.s004-bottom-nav a.active { color: var(--s004-primary); }
.s004-bottom-nav a.active::before {
  content: ""; position: absolute; top: 0; width: 30px; height: 3px;
  background: linear-gradient(90deg, #E91E63, #FF8A80); border-radius: 0 0 4px 4px;
}
.s004-bottom-nav a:active { transform: scale(0.92); color: var(--s004-coral); }
.s004-nav-badge {
  position: absolute; top: 4px; right: 16px; background: var(--s004-primary); color: #fff;
  font-size: 0.85rem; font-weight: 800; padding: 0 4px; border-radius: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center;
}
@media (min-width: 769px) {
  .s004-bottom-nav { display: none; }
}

/* ---------- Scroll-to-top ---------- */
#s004-top-btn {
  position: fixed; bottom: 74px; right: 14px; z-index: 1000;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #E91E63, #4169E1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
#s004-top-btn:active { transform: scale(0.9); }

/* ---------- Responsive (desktop preview centering) ---------- */
@media (min-width: 432px) {
  .s004-header-inner, .s004-footer, main .s004-container { max-width: 430px; margin-left: auto; margin-right: auto; }
}