/* ============================================================
 * okfun ph - Common stylesheet
 * Class prefix   : g33c-
 * Palette        : #708090 (slate gray) | #0D1117 (dark bg)
 * Mobile-first, max-width 430px, rem units (root 62.5%).
 * ============================================================ */

:root {
  --g33c-primary: #708090;
  --g33c-bg: #0D1117;
  --g33c-text: #E6EDF3;
  --g33c-muted: #9aa4b2;
  --g33c-accent: #F5A623;
  --g33c-accent-2: #E94560;
  --g33c-card: #161B22;
  --g33c-border: #2A313C;
  --g33c-radius: 1.2rem;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g33c-bg);
  color: var(--g33c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g33c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.g33c-container { width: 100%; padding: 0 1.2rem; }
.g33c-wrapper { padding-top: 5.6rem; padding-bottom: 7.6rem; }

/* ---------- Header ---------- */
.g33c-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #0D1117 0%, #11161E 100%);
  border-bottom: 1px solid var(--g33c-border);
}
.g33c-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.6rem;
}
.g33c-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--g33c-text); }
.g33c-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.g33c-logo b { font-size: 1.5rem; color: var(--g33c-accent); }

.g33c-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g33c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.4rem; padding: 0 1.2rem; border: none; border-radius: 2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
  transition: transform .12s ease, opacity .12s ease;
}
.g33c-btn:active { transform: scale(.96); }
.g33c-btn-primary { background: linear-gradient(135deg, #F5A623, #E94560); color: #fff; }
.g33c-btn-outline { background: transparent; color: var(--g33c-text); border: 1px solid var(--g33c-primary); }
.g33c-btn-block { width: 100%; }
.g33c-menu-btn {
  background: transparent; border: 1px solid var(--g33c-border); color: var(--g33c-text);
  width: 3.4rem; height: 3.4rem; border-radius: 0.8rem; font-size: 1.6rem; cursor: pointer;
}

/* ---------- Mobile dropdown menu ---------- */
.g33c-mobile-menu {
  position: fixed; top: 5.6rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 9999;
  background: #11161E; border-bottom: 1px solid var(--g33c-border);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.g33c-mobile-menu.g33c-open { max-height: 32rem; }
.g33c-mobile-menu a {
  display: block; padding: 1.2rem 1.6rem; color: var(--g33c-text);
  border-bottom: 1px solid var(--g33c-border); font-size: 1.4rem;
}
.g33c-mobile-menu a:hover { background: #1B2230; text-decoration: none; }

/* ---------- Hero / Carousel ---------- */
.g33c-carousel {
  position: relative; width: 100%; border-radius: var(--g33c-radius); overflow: hidden;
  margin: 1.2rem 0; background: #11161E;
}
.g33c-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.g33c-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
}
.g33c-carousel-slide.g33c-active { opacity: 1; }
.g33c-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g33c-carousel-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; z-index: 2;
}
.g33c-carousel-cap h2 { font-size: 1.8rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.g33c-carousel-cap p { color: #E6EDF3; font-size: 1.3rem; margin-top: .3rem; }
.g33c-carousel-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; text-align: center; z-index: 3; }
.g33c-carousel-dot {
  display: inline-block; width: .8rem; height: .8rem; margin: 0 .25rem;
  border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
}
.g33c-carousel-dot.g33c-active { background: var(--g33c-accent); }

/* ---------- Section titles ---------- */
.g33c-section { margin: 2rem 0; }
.g33c-section-title {
  font-size: 1.7rem; margin-bottom: 1rem; padding-left: 0.8rem;
  border-left: 4px solid var(--g33c-accent); color: var(--g33c-text);
}
.g33c-lead { color: var(--g33c-muted); margin-bottom: 1rem; }

/* ---------- Filter tabs ---------- */
.g33c-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem 0; }
.g33c-filter-tab {
  white-space: nowrap; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: #161B22; color: var(--g33c-text); border: 1px solid var(--g33c-border);
  font-size: 1.2rem; cursor: pointer;
}
.g33c-filter-tab.g33c-active { background: var(--g33c-accent); color: #0D1117; border-color: var(--g33c-accent); }

/* ---------- Game grid ---------- */
.g33c-game-group { margin-bottom: 1.6rem; }
.g33c-game-group h3 {
  font-size: 1.4rem; color: var(--g33c-accent); margin: 1rem 0 0.6rem;
  text-transform: capitalize;
}
.g33c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.g33c-card {
  background: var(--g33c-card); border: 1px solid var(--g33c-border);
  border-radius: 1rem; padding: 0.6rem; text-align: center; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.g33c-card:hover { transform: translateY(-2px); border-color: var(--g33c-accent); }
.g33c-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.8rem; }
.g33c-card .g33c-card-name {
  font-size: 1.1rem; color: var(--g33c-text); margin-top: 0.4rem;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Info / feature blocks ---------- */
.g33c-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.g33c-feature {
  background: var(--g33c-card); border: 1px solid var(--g33c-border);
  border-radius: 1rem; padding: 1rem;
}
.g33c-feature .g33c-ic { font-size: 2.2rem; color: var(--g33c-accent); }
.g33c-feature h4 { font-size: 1.3rem; margin: 0.4rem 0; }
.g33c-feature p { color: var(--g33c-muted); font-size: 1.2rem; }

.g33c-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--g33c-border); font-size: 1.2rem;
}
.g33c-rtp-row span:last-child { color: var(--g33c-accent); font-weight: 700; }

.g33c-testimonial {
  background: var(--g33c-card); border: 1px solid var(--g33c-border);
  border-radius: 1rem; padding: 1rem; margin-bottom: 0.8rem;
}
.g33c-testimonial .g33c-stars { color: var(--g33c-accent); font-size: 1.2rem; }
.g33c-testimonial p { color: var(--g33c-muted); margin: 0.4rem 0; font-size: 1.2rem; }
.g33c-testimonial b { color: var(--g33c-text); }

.g33c-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--g33c-card); border: 1px solid var(--g33c-border);
  border-radius: 1rem; padding: 0.8rem; margin-bottom: 0.6rem;
}
.g33c-winner img { width: 3.6rem; height: 3.6rem; border-radius: 0.6rem; }
.g33c-winner .g33c-winner-amt { color: var(--g33c-accent); font-weight: 700; }

.g33c-pay-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.g33c-pay-chip {
  background: #161B22; border: 1px solid var(--g33c-border); border-radius: 0.8rem;
  padding: 0.6rem 1rem; font-size: 1.2rem; display: inline-flex; align-items: center; gap: .4rem;
}

.g33c-app-cta {
  background: linear-gradient(135deg, #1B2230, #11161E);
  border: 1px solid var(--g33c-accent); border-radius: 1.2rem; padding: 1.4rem; text-align: center;
}
.g33c-app-cta h3 { color: var(--g33c-accent); font-size: 1.5rem; margin-bottom: .4rem; }
.g33c-app-cta p { color: var(--g33c-muted); margin-bottom: 1rem; }

.g33c-faq-item {
  background: var(--g33c-card); border: 1px solid var(--g33c-border);
  border-radius: 1rem; padding: 1rem; margin-bottom: 0.8rem;
}
.g33c-faq-item h4 { color: var(--g33c-accent); font-size: 1.3rem; margin-bottom: 0.4rem; }
.g33c-faq-item p { color: var(--g33c-muted); font-size: 1.2rem; }

.g33c-cta-banner {
  background: linear-gradient(135deg, #F5A623, #E94560); color: #fff;
  border-radius: 1.2rem; padding: 1.4rem; text-align: center; margin: 1.6rem 0;
}
.g33c-cta-banner h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.g33c-cta-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.g33c-cta-banner .g33c-btn { background: #0D1117; color: #fff; margin-top: 0.8rem; }

.g33c-promo-link { color: var(--g33c-accent); font-weight: 700; }
.g33c-promo-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.g33c-footer {
  margin-top: 2rem; padding: 1.6rem 1.2rem 1rem;
  background: #0B0F14; border-top: 1px solid var(--g33c-border);
}
.g33c-footer p { color: var(--g33c-muted); font-size: 1.2rem; margin-bottom: 1rem; }
.g33c-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1rem; }
.g33c-footer-links a { color: var(--g33c-text); font-size: 1.2rem; }
.g33c-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.g33c-footer-promo .g33c-btn { flex: 1 1 auto; }
.g33c-footer-copy { color: var(--g33c-muted); font-size: 1.1rem; border-top: 1px solid var(--g33c-border); padding-top: 1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.g33c-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6rem; z-index: 1000;
  background: #11161E; border-top: 1px solid var(--g33c-border);
  display: flex; justify-content: space-around; align-items: center;
}
.g33c-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem; color: var(--g33c-muted); cursor: pointer;
  background: transparent; border: none; text-decoration: none;
  font-size: 1.1rem; gap: 0.2rem; transition: color .15s ease, transform .12s ease;
}
.g33c-bnav-btn .g33c-ic { font-size: 2.2rem; }
.g33c-bnav-btn span { font-size: 1.1rem; }
.g33c-bnav-btn:active { transform: scale(.92); }
.g33c-bnav-btn.g33c-active { color: var(--g33c-accent); }
.g33c-bnav-badge {
  position: absolute; top: .6rem; right: 1.4rem; background: var(--g33c-accent-2);
  color: #fff; font-size: .9rem; border-radius: 1rem; padding: 0 .4rem; min-width: 1.4rem; text-align: center;
}

/* ---------- Back to top ---------- */
.g33c-top {
  position: fixed; right: 1.2rem; bottom: 7.4rem; z-index: 900;
  width: 3.8rem; height: 3.8rem; border-radius: 50%; background: var(--g33c-primary);
  color: #fff; border: none; cursor: pointer; font-size: 1.6rem; display: none;
}
.g33c-top.g33c-show { display: block; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g33c-bnav { display: none; }
  body { max-width: 960px; }
  .g33c-grid { grid-template-columns: repeat(5, 1fr); }
  .g33c-grid-2 { grid-template-columns: repeat(4, 1fr); }
  .g33c-wrapper { padding-bottom: 3rem; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .g33c-bnav { display: flex; }
  .g33c-wrapper { padding-bottom: 8rem; }
}

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  main.g33c-main { padding-bottom: 8rem; }
}
