/* =========================================================
   OK Panalo APK - Core Stylesheet
   Mobile-first HTML5 casino layout (max-width: 430px)
   All custom classes use wc46a- prefix
   ========================================================= */

:root {
  --wc46a-brown-dark: #8B4513;
  --wc46a-salmon: #FA8072;
  --wc46a-light-coral: #F08080;
  --wc46a-grey: #E0E0E0;
  --wc46a-black: #1A1A1A;
  --wc46a-sienna: #A0522D;
  --wc46a-bg: #1A1A1A;
  --wc46a-bg-soft: #241b14;
  --wc46a-bg-card: #2a2018;
  --wc46a-text: #E0E0E0;
  --wc46a-text-muted: #cbb9a8;
  --wc46a-accent: #FA8072;
  --wc46a-accent-2: #F08080;
  --wc46a-gold: #f5c451;
  --wc46a-border: rgba(250, 128, 114, 0.25);
  --wc46a-radius: 14px;
  --wc46a-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  --wc46a-header-h: 60px;
  --wc46a-bottomnav-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--wc46a-bg);
  color: var(--wc46a-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

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

/* ---------- Shell (max-width: 430px) ---------- */
.wc46a-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--wc46a-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Header ---------- */
.wc46a-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1A1A1A 0%, #2a1810 60%, #8B4513 140%);
  border-bottom: 1px solid var(--wc46a-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  min-height: var(--wc46a-header-h);
}

.wc46a-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.wc46a-logo .wc46a-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #FA8072, #F08080);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #1A1A1A; font-weight: 900; font-size: 18px;
  box-shadow: 0 3px 8px rgba(250,128,114,0.4);
}
.wc46a-logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--wc46a-text-muted);
  letter-spacing: 1px;
}

.wc46a-header-actions { display: flex; align-items: center; gap: 8px; }

.wc46a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  text-decoration: none;
  line-height: 1;
}
.wc46a-btn:active { transform: scale(0.96); }

.wc46a-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--wc46a-accent);
}
.wc46a-btn-login:hover { background: rgba(250,128,114,0.12); }

.wc46a-btn-register {
  background: linear-gradient(135deg, #FA8072, #F08080);
  color: #1A1A1A;
  box-shadow: 0 4px 12px rgba(250,128,114,0.4);
}
.wc46a-btn-register:hover { filter: brightness(1.08); }

.wc46a-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 18px;
}

/* ---------- Hero ---------- */
.wc46a-hero {
  position: relative;
  padding: 18px 14px 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(250,128,114,0.18), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(160,82,45,0.25), transparent 55%),
    linear-gradient(180deg, #201810, #1A1A1A);
  overflow: hidden;
}
.wc46a-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.wc46a-hero-badge {
  display: inline-block;
  background: rgba(245,196,81,0.15);
  color: var(--wc46a-gold);
  border: 1px solid rgba(245,196,81,0.4);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.wc46a-hero h1 {
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 800;
}
.wc46a-hero h1 span { color: var(--wc46a-accent); }
.wc46a-hero p {
  font-size: 14px;
  color: var(--wc46a-text-muted);
  margin-bottom: 16px;
}
.wc46a-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.wc46a-hero-cta .wc46a-btn { padding: 12px 20px; font-size: 14px; }
.wc46a-btn-solid {
  background: linear-gradient(135deg, #FA8072, #A0522D);
  color: #fff;
  box-shadow: 0 6px 16px rgba(160,82,45,0.45);
}

.wc46a-hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wc46a-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--wc46a-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.wc46a-stat b {
  display: block;
  color: var(--wc46a-gold);
  font-size: 16px;
  font-weight: 800;
}
.wc46a-stat small { color: var(--wc46a-text-muted); font-size: 10px; }

/* ---------- Marquee ---------- */
.wc46a-marquee {
  background: linear-gradient(90deg, #8B4513, #A0522D, #8B4513);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.wc46a-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: wc46aMarquee 22s linear infinite;
}
@keyframes wc46aMarquee {
  to { transform: translateX(-100%); }
}

/* ---------- Section ---------- */
.wc46a-section {
  padding: 22px 14px 8px;
}
.wc46a-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wc46a-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.wc46a-section-title i { color: var(--wc46a-accent); font-size: 20px; }
.wc46a-section-link { font-size: 12px; color: var(--wc46a-accent); font-weight: 600; }

/* ---------- Category Tabs ---------- */
.wc46a-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.wc46a-tabs::-webkit-scrollbar { display: none; }
.wc46a-tab {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--wc46a-border);
  color: var(--wc46a-text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.wc46a-tab.active, .wc46a-tab:hover {
  background: linear-gradient(135deg, #FA8072, #F08080);
  color: #1A1A1A;
  border-color: transparent;
}

/* ---------- Game Grid ---------- */
.wc46a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wc46a-card {
  background: var(--wc46a-bg-card);
  border: 1px solid var(--wc46a-border);
  border-radius: var(--wc46a-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wc46a-card:hover, .wc46a-card:active {
  transform: translateY(-3px);
  box-shadow: var(--wc46a-shadow);
  border-color: var(--wc46a-accent);
}
.wc46a-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #120e0a;
}
.wc46a-card-body {
  padding: 7px 8px 10px;
}
.wc46a-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.wc46a-card-play {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #FA8072, #A0522D);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.wc46a-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(245,196,81,0.9);
  color: #1A1A1A;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.wc46a-card-tag.hot { background: var(--wc46a-accent); color: #fff; }

/* ---------- Featured (big cards) ---------- */
.wc46a-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.wc46a-feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--wc46a-bg-card);
  border: 1px solid var(--wc46a-border);
  display: flex;
  align-items: center;
  min-height: 110px;
}
.wc46a-feature-card img {
  width: 110px; height: 110px;
  object-fit: cover;
  flex: 0 0 auto;
}
.wc46a-feature-body {
  padding: 12px 14px;
  flex: 1;
}
.wc46a-feature-body h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.wc46a-feature-body p {
  font-size: 12px;
  color: var(--wc46a-text-muted);
  margin-bottom: 8px;
}
.wc46a-feature-body .wc46a-btn { padding: 7px 14px; font-size: 12px; }

/* ---------- Promo Banner ---------- */
.wc46a-promo {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #FA8072 100%);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 16px 14px;
}
.wc46a-promo h3 { font-size: 18px; margin-bottom: 6px; }
.wc46a-promo p { font-size: 12px; opacity: 0.92; margin-bottom: 12px; }
.wc46a-promo .wc46a-btn {
  background: #1A1A1A;
  color: var(--wc46a-gold);
}

/* ---------- Steps / How to ---------- */
.wc46a-steps {
  display: grid;
  gap: 10px;
}
.wc46a-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--wc46a-bg-card);
  border: 1px solid var(--wc46a-border);
  padding: 12px;
  border-radius: 12px;
}
.wc46a-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FA8072, #F08080);
  color: #1A1A1A;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.wc46a-step-body h4 { font-size: 14px; color: #fff; margin-bottom: 3px; }
.wc46a-step-body p { font-size: 12px; color: var(--wc46a-text-muted); }

/* ---------- SEO Article ---------- */
.wc46a-article {
  background: var(--wc46a-bg-card);
  border: 1px solid var(--wc46a-border);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 14px;
}
.wc46a-article h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wc46a-border);
}
.wc46a-article h3 {
  font-size: 15px;
  color: var(--wc46a-accent);
  margin: 12px 0 6px;
}
.wc46a-article p {
  font-size: 13px;
  color: var(--wc46a-text);
  margin-bottom: 10px;
}
.wc46a-article ul { padding-left: 18px; margin-bottom: 10px; }
.wc46a-article li { font-size: 13px; color: var(--wc46a-text-muted); margin-bottom: 5px; }

/* ---------- FAQ ---------- */
.wc46a-faq-item {
  background: var(--wc46a-bg-card);
  border: 1px solid var(--wc46a-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.wc46a-faq-q {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wc46a-faq-q i { color: var(--wc46a-accent); transition: transform 0.2s; }
.wc46a-faq-item.open .wc46a-faq-q i { transform: rotate(45deg); }
.wc46a-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
  font-size: 12px;
  color: var(--wc46a-text-muted);
}
.wc46a-faq-item.open .wc46a-faq-a {
  max-height: 320px;
  padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.wc46a-footer {
  background: #120c08;
  border-top: 1px solid var(--wc46a-border);
  padding: 22px 14px 18px;
  margin-top: 24px;
}
.wc46a-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.wc46a-footer h4 {
  font-size: 13px;
  color: var(--wc46a-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wc46a-footer ul { list-style: none; }
.wc46a-footer li { margin-bottom: 6px; }
.wc46a-footer a { color: var(--wc46a-text-muted); font-size: 12px; }
.wc46a-footer a:hover { color: var(--wc46a-accent); }
.wc46a-footer-bottom {
  border-top: 1px solid var(--wc46a-border);
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--wc46a-text-muted);
}
.wc46a-footer-pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}
.wc46a-footer-pay span {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Mobile Bottom Nav ---------- */
.wc46a-bottomnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--wc46a-bottomnav-h);
  background: linear-gradient(180deg, #241810, #1A1A1A);
  border-top: 1px solid var(--wc46a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.wc46a-bottomnav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--wc46a-text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.wc46a-bottomnav a i { font-size: 22px; }
.wc46a-bottomnav a.active { color: var(--wc46a-accent); }
.wc46a-bottomnav a:hover { color: var(--wc46a-accent); }
.wc46a-bottomnav a.wc46a-bn-promo {
  color: #fff;
}
.wc46a-bottomnav a.wc46a-bn-promo i {
  background: linear-gradient(135deg, #FA8072, #F08080);
  color: #1A1A1A;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(250,128,114,0.5);
  border: 3px solid #1A1A1A;
}
.wc46a-bottomnav a.wc46a-bn-promo span { font-size: 9px; }

/* ---------- Mobile Menu Drawer ---------- */
.wc46a-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.wc46a-menu-overlay.open { opacity: 1; visibility: visible; }

.wc46a-drawer {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: #1A1A1A;
  z-index: 9999;
  padding: 18px;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wc46a-border);
}
.wc46a-drawer.open { right: 0; }
.wc46a-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wc46a-border);
}
.wc46a-drawer-head h3 { color: #fff; font-size: 18px; }
.wc46a-drawer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.wc46a-drawer a {
  display: block;
  padding: 11px 12px;
  color: var(--wc46a-text);
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}
.wc46a-drawer a:hover {
  background: rgba(250,128,114,0.12);
  border-color: var(--wc46a-border);
  color: var(--wc46a-accent);
}
.wc46a-drawer-cta {
  display: flex; gap: 8px; margin: 14px 0;
}
.wc46a-drawer-cta .wc46a-btn { flex: 1; padding: 11px 0; }

/* ---------- Back to top ---------- */
.wc46a-backtop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--wc46a-bottomnav-h) + 12px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FA8072, #A0522D);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--wc46a-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  border: none;
}
.wc46a-backtop.show { opacity: 1; visibility: visible; }

/* ---------- Helpers ---------- */
.wc46a-text-center { text-align: center; }
.wc46a-mt-12 { margin-top: 12px; }
.wc46a-hide-mobile { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .wc46a-bottomnav { display: none; }
  .wc46a-shell { box-shadow: 0 0 60px rgba(0,0,0,0.6); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 431px) {
  body { background: #0d0d0d; }
}
